/**
 * BrightCushion - Styles principaux
 * Design system et composants
 * Note: Les styles des workflows ont Â©tÂ© dÂ©placÂ©s dans workflow.css
 */

/* ==================== VARIABLES CSS ==================== */
:root {
  /* Couleurs */
  --bg: #060d1a;
  --bg-alt: #0a1628;
  --text: #e8eef4;
  --muted: #9fb1c5;
  --gold: #d4af37;
  --gold-glow: rgba(212, 175, 55, 0.4);
  --gold-600: #b8932f;
  --blue: #0b2340;
  
  /* Styles */
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.5);
  
  /* Layout */
  --container: 1200px;
  --header-height: 80px;
  
  /* Typographie */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-size-base: 17px;
  --line-height-base: 1.6;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.6s ease;
}

/* ==================== RESET & BASE ==================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: var(--line-height-base);
  font-size: var(--font-size-base);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

svg {
  max-width: 100%;
  max-height: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

/* ==================== LAYOUT ==================== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 50px;
  align-items: center;
}

/* ==================== HEADER ==================== */
.site-header {
  background: rgba(10, 26, 42, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--gold);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.brand:hover {
  opacity: 0.8;
}

.logo {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 0 12px var(--gold-glow));
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    filter: drop-shadow(0 0 8px var(--gold-glow));
    opacity: 1;
  }
  50% {
    filter: drop-shadow(0 0 18px var(--gold-glow));
    opacity: 0.85;
  }
}

.brand-name {
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 20px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  color: var(--text);
  border-radius: 12px;
  line-height: 1;
  transition: all var(--transition-fast);
  position: relative;
}

.nav a:hover {
  color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
}

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold-glow);
}

/* SÃ©lecteur de langue */
.nav a.lang-switch {
  font-family: monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 0 16px;
}

.nav a.lang-switch:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-600));
  color: #0b0b0b;
  border-color: var(--gold);
}

/* ==================== HERO SECTION ==================== */
.hero {
  text-align: center;
  padding: 140px 0 100px;
  background: 
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.12), transparent 50%),
    linear-gradient(180deg, var(--bg-alt), var(--bg));
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.3;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-lg);
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero .accent {
  color: var(--gold);
  text-shadow: 0 0 20px var(--gold-glow);
}

.hero .subtitle {
  margin-top: 20px;
  font-size: 19px;
  color: var(--muted);
  max-width: 720px;
  margin-inline: auto;
  line-height: 1.7;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  margin-top: 32px;
  transition: all var(--transition-normal);
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-600) 100%);
  color: #0b0b0b;
  box-shadow: 0 4px 15px var(--gold-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px var(--gold-glow);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ==================== SECTIONS ==================== */
.section {
  padding: 100px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  position: relative;
}

.section.alt {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--gold);
  font-weight: 700;
}

.section p {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: var(--font-size-base);
  line-height: 1.7;
}

/* ==================== CARDS ==================== */
.card {
  background: rgba(10, 26, 42, 0.7);
  backdrop-filter: blur(10px);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 175, 55, 0.15);
  box-shadow: var(--shadow);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: var(--shadow-hover);
}

.card.highlight {
  background: linear-gradient(145deg, rgba(10, 26, 42, 0.9), rgba(15, 32, 56, 0.9));
}

/* Icon Container */
.card-icon,
.step-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  margin: 0 auto 20px auto;
  color: var(--gold);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.card-icon svg,
.step-icon svg {
  width: 40px !important;
  height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  display: block;
  filter: drop-shadow(0 0 8px var(--gold-glow));
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.card h3 {
  color: var(--gold);
  margin-bottom: 12px;
  font-size: 1.5rem;
  text-align: center;
  width: 100%;
}

.card p {
  text-align: center;
  width: 100%;
}

/* ==================== STEPS ==================== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 50px 0 80px;
}

.step {
  background: rgba(10, 26, 42, 0.7);
  backdrop-filter: blur(10px);
  padding: 32px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid rgba(212, 175, 55, 0.15);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step.visible {
  opacity: 1;
  transform: translateY(0);
}

.step:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: var(--shadow-hover);
}

.step h3 {
  color: var(--gold);
  margin-bottom: 12px;
  font-size: 1.3rem;
  width: 100%;
}

.step p {
  text-align: center;
  width: 100%;
}

/* ==================== CONTACT FORM ==================== */
.contact-form {
  background: rgba(10, 26, 42, 0.7);
  backdrop-filter: blur(10px);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 175, 55, 0.15);
  box-shadow: var(--shadow);
  max-width: 600px;
  margin: 0 auto;
}

label {
  display: block;
  margin-top: 20px;
  font-weight: 600;
  color: var(--text);
}

input,
textarea {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  transition: all var(--transition-normal);
}

input:focus,
textarea:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}

.checkbox input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
  cursor: pointer;
}

.hp {
  display: none;
}

/* ==================== NOTICES ==================== */
.notice {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-weight: 600;
  border: 1px solid;
}

.notice.success {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
}

.notice.error {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

/* ==================== APPROACH MODAL ==================== */
.approach-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.approach-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.approach-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 700px;
  max-height: 80vh;
  background: linear-gradient(145deg, rgba(10, 26, 42, 0.98), rgba(15, 32, 56, 0.98));
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.approach-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.approach-modal-header {
  padding: 32px 40px 24px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-shrink: 0;
}

.approach-modal-title {
  flex: 1;
  min-width: 0;
}

.approach-modal-title h3 {
  font-size: 1.8rem;
  color: var(--gold);
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.approach-modal-title .step-number {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.approach-modal-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.approach-modal-close:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold);
  color: var(--gold);
  transform: rotate(90deg);
}

.approach-modal-close svg {
  width: 20px;
  height: 20px;
}

.approach-modal-body {
  padding: 32px 40px 40px;
  overflow-y: auto;
  flex: 1;
}

.approach-modal-body::-webkit-scrollbar {
  width: 8px;
}

.approach-modal-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.approach-modal-body::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 4px;
}

.approach-modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.5);
}

.approach-modal-section {
  margin-bottom: 32px;
}

.approach-modal-section:last-child {
  margin-bottom: 0;
}

.approach-modal-section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 12px;
  padding: 6px 12px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.approach-modal-content {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}

.approach-modal-content p {
  margin: 0;
}

.approach-expertise-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.expertise-tag {
  display: inline-block;
  padding: 8px 14px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  transition: all 0.2s ease;
}

.expertise-tag:hover {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
}

/* Rendre les steps cliquables */
.step {
  cursor: pointer;
  user-select: none;
  position: relative;
}

.step::after {
  content: '';
  position: absolute;
  bottom: 16px;
  right: 20px;
  font-size: 24px;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.step:hover::after {
  opacity: 0.6;
  transform: translateX(0);
}

/* ==================== FOOTER ==================== */
.site-footer {
  padding: 40px 0;
  text-align: center;
  background: rgba(5, 10, 21, 0.8);
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .hero {
    padding: 100px 0 60px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .section {
    padding: 60px 0;
  }

  .section h2 {
    font-size: 2rem;
  }

  .nav {
    gap: 4px;
  }

  .nav a {
    padding: 0 12px;
    font-size: 14px;
  }

  .approach-modal {
    width: 95%;
    max-height: 90vh;
    padding: 0;
  }

  .approach-modal-header {
    padding: 24px 20px 20px;
  }

  .approach-modal-title h3 {
    font-size: 1.4rem;
  }

  .approach-modal-body {
    padding: 24px 20px 32px;
  }

  .approach-modal-section {
    margin-bottom: 24px;
  }

  .expertise-tag {
    font-size: 12px;
    padding: 6px 12px;
  }
}

@media (max-width: 480px) {
  :root {
    --font-size-base: 16px;
  }

  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero .subtitle {
    font-size: 17px;
  }
}

/* ==================== PRINT STYLES ==================== */
@media print {
  .site-header,
  .site-footer,
  .btn {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .section {
    page-break-inside: avoid;
  }
}
