/* =========================================================
   PHASE SUD — Feuille de style
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0A1628;
  --navy-2: #0f2040;
  --navy-3: #05101e;
  --yellow: #F5C518;
  --yellow-2: #ffd23f;
  --steel: #94A3B8;
  --anthracite: #1E293B;
  --anthracite-2: #243045;
  --white: #ffffff;
  --line: rgba(139,155,174,0.14);
  --line-y: rgba(245,197,24,0.18);
  --header-h: 72px;
  --maxw: 1180px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--navy);
  color: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
::selection { background: var(--yellow); color: var(--navy); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 300;
  background: var(--yellow); color: var(--navy);
  padding: 10px 16px; font-weight: 700; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
.section { padding: 110px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, #0c1a30 0%, var(--navy) 100%); }

/* ---------- Header / navigation ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,22,40,0.7);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled {
  background: rgba(10,22,40,0.96);
  border-bottom-color: var(--line-y);
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.55);
}

.nav {
  height: var(--header-h);
  max-width: 1280px; margin: 0 auto; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.nav-logo {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 1.75rem; letter-spacing: .05em; line-height: 1;
  color: var(--white); text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.nav-logo span { color: var(--yellow); }
.nav-logo-mark { width: 30px; height: 30px; flex-shrink: 0; transition: transform .4s var(--ease); }
.nav-logo:hover .nav-logo-mark { transform: rotate(-8deg) scale(1.08); }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }

.nav-links a:not(.btn) {
  position: relative;
  color: var(--steel); text-decoration: none;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 8px 0; transition: color .2s; white-space: nowrap;
}
.nav-links a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--yellow); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:not(.btn):hover,
.nav-links a[aria-current="page"]:not(.btn) { color: var(--white); }
.nav-links a:not(.btn):hover::after,
.nav-links a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }

.nav-toggle {
  display: none; position: relative;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--line); cursor: pointer;
}
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: var(--white);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 32px;
  font-family: 'Inter', sans-serif; font-size: .82rem; font-weight: 700; line-height: 1;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  border: 0; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), opacity .2s;
}
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:disabled { opacity: .6; cursor: wait; }

.btn-primary {
  background: var(--yellow); color: var(--navy);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.btn-primary:hover { background: var(--yellow-2); transform: translateY(-2px); }

.btn-ghost {
  background: transparent; color: var(--white);
  border: 1px solid rgba(139,155,174,0.4);
}
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }

.btn-dark {
  background: var(--navy); color: var(--yellow);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  padding: 17px 40px;
}
.btn-dark:hover { background: #13254a; transform: translateY(-2px); }

.btn-outline-dark {
  background: transparent; color: var(--navy);
  border: 2px solid var(--navy); padding: 15px 34px;
}
.btn-outline-dark:hover { background: var(--navy); color: var(--yellow); transform: translateY(-2px); }
.cta-band .btn { margin: 6px; }

.btn-sm { padding: 11px 20px; font-size: .74rem; }

/* ---------- Hero accueil ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 60px) 0 90px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(55% 55% at 78% 42%, rgba(245,197,24,0.11), transparent 70%),
    radial-gradient(50% 60% at 8% 95%, rgba(56,97,160,0.28), transparent 70%),
    linear-gradient(135deg, #0A1628 0%, #0f2040 50%, #0A1628 100%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(139,155,174,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,155,174,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 25%, transparent 75%);
          mask-image: radial-gradient(ellipse at 50% 40%, #000 25%, transparent 75%);
}
.circuit-canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: .25; }

.hero-visual {
  position: absolute; z-index: -1; pointer-events: none;
  right: 2%; top: 50%; transform: translateY(-50%);
  width: 38%; max-width: 520px;
}
.bolt-svg { width: 100%; height: auto; animation: flicker 7s infinite; }

@keyframes flicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: .55; }
  94% { opacity: 1; }
  96% { opacity: .7; }
  97% { opacity: 1; }
}

.hero-content { position: relative; max-width: 720px; }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 26px;
}
.eyebrow::before { content: ''; display: block; width: 32px; height: 2px; background: var(--yellow); }

.pulse {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--yellow); box-shadow: 0 0 0 0 rgba(245,197,24,.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245,197,24,.55); }
  70% { box-shadow: 0 0 0 12px rgba(245,197,24,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,197,24,0); }
}

.hero-title {
  font-family: 'Bebas Neue', Impact, sans-serif; font-weight: 400;
  font-size: clamp(4.2rem, 11vw, 8.5rem);
  line-height: .9; letter-spacing: .02em;
  margin-bottom: 28px;
}
.hero-title .accent { color: var(--yellow); text-shadow: 0 0 50px rgba(245,197,24,.35); }
.hero-title .hero-sub {
  display: block; margin-top: 20px;
  font-family: 'Inter', sans-serif; font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.4rem); line-height: 1.35; letter-spacing: 0;
  color: var(--white);
}

.hero-desc { font-size: 1.1rem; line-height: 1.75; color: var(--steel); max-width: 560px; margin-bottom: 44px; }

.hero-stats {
  display: flex; gap: 0; margin-bottom: 48px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  max-width: 600px;
}
.stat-item { flex: 1; display: flex; flex-direction: column; padding: 20px 24px 20px 0; }
.stat-item + .stat-item { padding-left: 24px; border-left: 1px solid var(--line); }
.stat-num { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 3.2rem; color: var(--yellow); line-height: 1; }
.stat-label { font-size: .72rem; color: var(--steel); letter-spacing: .1em; text-transform: uppercase; margin-top: 6px; }

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(139,155,174,.4); border-radius: 14px;
}
.scroll-hint::after {
  content: ''; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--yellow); animation: scrollhint 1.8s infinite;
}
@keyframes scrollhint { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Bandeau normes ---------- */
.ticker { background: var(--yellow); color: var(--navy); overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: ticker 45s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker ul { display: flex; list-style: none; }
.ticker li {
  display: flex; align-items: center; gap: 30px; padding: 15px 0 15px 30px;
  font-family: 'Bebas Neue', Impact, sans-serif; font-size: 1.35rem; letter-spacing: .06em; white-space: nowrap;
}
.ticker li::after { content: ''; width: 7px; height: 7px; background: var(--navy); transform: rotate(45deg); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Titres de section ---------- */
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head:last-child { margin-bottom: 0; }
.section-label {
  font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 16px;
}
.section-title {
  font-family: 'Bebas Neue', Impact, sans-serif; font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; letter-spacing: .01em;
  color: var(--white); margin-bottom: 22px;
}
.section-title .accent { color: var(--yellow); }
.section-body { font-size: 1rem; line-height: 1.85; color: var(--steel); }
.section-body + .section-body { margin-top: 16px; }
.section-body strong { color: var(--white); font-weight: 600; }

/* ---------- Cartes services (accueil) ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: #111d2e; }

.service-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: var(--anthracite); padding: 44px 36px 40px;
  text-decoration: none; color: inherit;
  transition: background .3s, transform .3s var(--ease);
}
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(245,197,24,.09), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.service-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.service-card:hover { background: var(--anthracite-2); }
.service-card:hover::before { opacity: 1; }
.service-card:hover::after { transform: scaleX(1); }

.card-num {
  position: absolute; top: 18px; right: 26px;
  font-family: 'Bebas Neue', Impact, sans-serif; font-size: 4.5rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(245,197,24,.18);
  transition: -webkit-text-stroke-color .3s;
}
.service-card:hover .card-num { -webkit-text-stroke-color: rgba(245,197,24,.45); }

.card-icon {
  width: 52px; height: 52px; margin-bottom: 26px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(245,197,24,0.1); color: var(--yellow);
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.service-card:hover .card-icon { background: var(--yellow); color: var(--navy); transform: rotate(-4deg); }

.card-title {
  font-family: 'Bebas Neue', Impact, sans-serif; font-weight: 400;
  font-size: 1.75rem; letter-spacing: .04em; margin-bottom: 12px;
}
.card-desc { font-size: .9rem; line-height: 1.75; color: var(--steel); margin-bottom: 22px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-bottom: 28px; }
.tag {
  font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--yellow); border: 1px solid rgba(245,197,24,0.3); padding: 4px 10px;
}
.card-arrow {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--yellow);
}
.card-arrow .arrow { transition: transform .25s var(--ease); }
.service-card:hover .card-arrow .arrow { transform: translateX(6px); }

/* ---------- À propos ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-badges { display: flex; flex-direction: column; gap: 14px; }
.badge {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--anthracite); border-left: 3px solid var(--yellow); padding: 22px 24px;
  transition: transform .3s var(--ease), background .3s;
}
.badge:hover { transform: translateX(6px); background: var(--anthracite-2); }
.badge-icon { color: var(--yellow); flex-shrink: 0; margin-top: 2px; }
.badge-text strong { display: block; font-size: .95rem; font-weight: 600; margin-bottom: 4px; }
.badge-text span { font-size: .85rem; line-height: 1.6; color: var(--steel); }

/* ---------- Qui suis-je ---------- */
.whoami-grid { display: grid; grid-template-columns: minmax(260px, 0.8fr) 1.2fr; gap: 80px; align-items: center; }
.portrait {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 4 / 5; max-width: 420px; width: 100%;
  background: linear-gradient(160deg, var(--navy-2) 0%, var(--anthracite) 100%);
  border: 1px solid var(--line-y);
}
.portrait::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(139,155,174,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,155,174,.07) 1px, transparent 1px);
  background-size: 28px 28px;
}
.portrait::after {
  content: ''; position: absolute; top: 0; right: 0; width: 64px; height: 64px;
  background: var(--yellow); clip-path: polygon(0 0, 100% 0, 100% 100%); z-index: 2;
}
.portrait-initials {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-bottom: 60px;
  font-family: 'Bebas Neue', Impact, sans-serif; font-size: 9rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 2px rgba(245,197,24,.45);
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 48px 24px 22px;
  background: linear-gradient(to top, rgba(10,22,40,.95) 30%, transparent);
  border-left: 3px solid var(--yellow);
}
.portrait figcaption strong { display: block; font-family: 'Bebas Neue', Impact, sans-serif; font-weight: 400; font-size: 1.8rem; letter-spacing: .03em; line-height: 1; }
.portrait figcaption span { display: block; margin-top: 6px; font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--yellow); }

/* ---------- Étapes (accueil) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: #111d2e; list-style: none; counter-reset: step; }
.step {
  position: relative; background: var(--anthracite); padding: 36px 30px 34px;
}
.step::before {
  counter-increment: step; content: '0' counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-bottom: 22px;
  border: 2px solid var(--yellow); color: var(--yellow);
  font-family: 'Bebas Neue', Impact, sans-serif; font-size: 1.3rem;
}
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: .87rem; line-height: 1.7; color: var(--steel); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-size: 1.05rem; font-weight: 600; transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--yellow); }
.faq summary::after {
  content: '+'; flex-shrink: 0;
  font-family: 'Bebas Neue', Impact, sans-serif; font-size: 2rem; line-height: 1; color: var(--yellow);
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--steel); line-height: 1.85; padding: 0 48px 26px 0; }
.faq details p a { color: var(--yellow); }

/* ---------- Bandeau CTA ---------- */
.cta-band {
  position: relative; overflow: hidden; text-align: center;
  background: var(--yellow); padding: 72px 0;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(-45deg, rgba(10,22,40,.05) 0 14px, transparent 14px 28px);
}
.cta-band .container { position: relative; }
.cta-band h2 {
  font-family: 'Bebas Neue', Impact, sans-serif; font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem); line-height: 1; color: var(--navy); margin-bottom: 14px;
}
.cta-band p { color: rgba(10,22,40,0.78); font-size: 1.02rem; margin-bottom: 32px; }

/* ---------- Pages intérieures ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + 72px) 0 76px;
  background:
    radial-gradient(50% 80% at 85% 30%, rgba(245,197,24,.08), transparent 70%),
    linear-gradient(160deg, #0f1f38 0%, #0A1628 100%);
  border-bottom: 1px solid var(--line-y);
}
.page-hero .hero-grid { z-index: -1; }
.page-hero-inner { max-width: 820px; }

.breadcrumb ol {
  display: flex; flex-wrap: wrap; gap: 8px; list-style: none;
  font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--steel); margin-bottom: 30px;
}
.breadcrumb li + li::before { content: '/'; margin-right: 8px; color: rgba(139,155,174,.5); }
.breadcrumb a { color: var(--steel); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--yellow); }
.breadcrumb [aria-current] { color: var(--yellow); }

.page-hero-title {
  font-family: 'Bebas Neue', Impact, sans-serif; font-weight: 400;
  font-size: clamp(3.2rem, 7vw, 6rem); line-height: .95; margin-bottom: 24px;
}
.page-hero-title .accent { color: var(--yellow); }
.page-hero-desc { font-size: 1.12rem; line-height: 1.75; color: var(--steel); max-width: 640px; margin-bottom: 34px; }

.page-stripe {
  position: absolute; z-index: -1; pointer-events: none;
  right: 4%; top: 50%; transform: translateY(-45%);
  width: min(34vw, 420px); color: var(--yellow); opacity: .07;
}
.page-stripe svg { width: 100%; height: auto; }

/* ---------- Grille de prestations ---------- */
.offerings-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  background: rgba(139,155,174,0.08);
}
/* Nombre de cartes non multiple de 3 : la dernière s'élargit pour ne pas laisser de trou */
.offerings-grid > .offering-item:last-child:nth-child(3n+2) { grid-column: span 2; }
.offering-item {
  position: relative; background: var(--anthracite); padding: 36px 32px;
  transition: background .3s;
}
.offering-item::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--yellow); transform: scaleY(0); transform-origin: top; transition: transform .35s var(--ease);
}
.offering-item:hover { background: var(--anthracite-2); }
.offering-item:hover::after { transform: scaleY(1); }
.offering-num {
  font-family: 'Bebas Neue', Impact, sans-serif; font-size: 3rem; line-height: 1;
  color: rgba(245,197,24,0.2); margin-bottom: 12px; transition: color .3s;
}
.offering-item:hover .offering-num { color: var(--yellow); }
.offering-title { font-size: 1.02rem; font-weight: 700; margin-bottom: 10px; }
.offering-desc { font-size: .87rem; line-height: 1.75; color: var(--steel); }

/* ---------- Onglets ---------- */
.tab-nav { display: flex; gap: 2px; background: #111d2e; }
.tab-btn {
  flex: 1; background: var(--anthracite); color: var(--steel);
  border: 0; border-bottom: 2px solid transparent; cursor: pointer;
  padding: 18px 24px;
  font-family: 'Inter', sans-serif; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s;
}
.tab-btn:hover { color: var(--white); }
.tab-btn[aria-selected="true"] { background: var(--navy); color: var(--yellow); border-bottom-color: var(--yellow); }
.tab-panel { padding-top: 2px; }
.tab-panel[hidden] { display: none; }
.js .tab-panel:not([hidden]) { animation: fadeUp .45s var(--ease); }
.no-tabs-title { display: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.panel-intro { padding: 44px 0 32px; max-width: 720px; }
.panel-intro h3 { font-family: 'Bebas Neue', Impact, sans-serif; font-weight: 400; font-size: 2.2rem; line-height: 1; margin-bottom: 14px; }

/* ---------- Deux colonnes & processus ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }

.process-line { position: relative; margin-top: 44px; list-style: none; }
.process-line::before {
  content: ''; position: absolute; left: 24px; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, var(--yellow), transparent);
}
.process-step { display: flex; gap: 28px; margin-bottom: 40px; position: relative; }
.process-step:last-child { margin-bottom: 0; }
.step-dot {
  width: 48px; height: 48px; flex-shrink: 0; position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  background: var(--anthracite); border: 2px solid var(--yellow);
  font-family: 'Bebas Neue', Impact, sans-serif; font-size: 1.25rem; color: var(--yellow);
  transition: background .3s, color .3s;
}
.process-step:hover .step-dot { background: var(--yellow); color: var(--navy); }
.step-content h3 { font-size: 1rem; font-weight: 700; margin: 4px 0 6px; }
.step-content p { font-size: .88rem; line-height: 1.75; color: var(--steel); }

.check-list { list-style: none; display: grid; gap: 12px; margin-top: 32px; }
.check-list li {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--anthracite); border-left: 3px solid var(--yellow);
  padding: 16px 20px; font-size: .93rem; font-weight: 600;
  transition: transform .3s var(--ease);
}
.check-list li:hover { transform: translateX(6px); }
.check-list svg { color: var(--yellow); flex-shrink: 0; margin-top: 1px; }
.check-list small { display: block; font-size: .84rem; font-weight: 400; color: var(--steel); margin-top: 3px; line-height: 1.6; }

.chip-grid { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin-top: 28px; }
.chip {
  font-size: .8rem; font-weight: 600; color: var(--white);
  background: var(--anthracite); border: 1px solid var(--line);
  padding: 10px 16px; transition: border-color .2s, color .2s;
}
.chip:hover { border-color: var(--yellow); color: var(--yellow); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; }
.contact-info { list-style: none; margin-top: 36px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; }
.contact-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(245,197,24,0.1); color: var(--yellow);
}
.contact-detail strong {
  display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--steel); margin-bottom: 4px;
}
.contact-detail span, .contact-detail a { font-size: 1.02rem; color: var(--white); text-decoration: none; }
.contact-detail a:hover { color: var(--yellow); }

.contact-card { background: var(--anthracite); padding: 44px 40px; border-top: 3px solid var(--yellow); }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.form-group label .req { color: var(--yellow); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  background: var(--navy); color: var(--white);
  border: 1px solid rgba(139,155,174,0.22);
  padding: 13px 16px; font-family: 'Inter', sans-serif; font-size: 1rem;
  outline: none; border-radius: 0; transition: border-color .2s, box-shadow .2s;
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(148,163,184,.55); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(245,197,24,.15);
}
.form-group select option { background: var(--anthracite); }
.form-hp { position: absolute; left: -9999px; }
.form-note { font-size: .78rem; line-height: 1.6; color: var(--steel); }
.form-note a { color: var(--steel); }
.form-status { font-size: .9rem; line-height: 1.6; min-height: 1.4em; }
.form-status.is-ok { color: #6ee7a8; }
.form-status.is-error { color: #fca5a5; }
.contact-form .btn { width: 100%; }

/* ---------- Mentions légales ---------- */
.prose { max-width: 780px; }
.prose h2 { font-family: 'Bebas Neue', Impact, sans-serif; font-weight: 400; font-size: 2rem; margin: 48px 0 14px; color: var(--yellow); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--steel); line-height: 1.85; }
.prose ul { padding-left: 20px; margin: 8px 0; }
.prose strong { color: var(--white); }
.prose a { color: var(--yellow); }
.todo { background: rgba(245,197,24,.15); color: var(--yellow); padding: 0 6px; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-3); padding: 72px 0 32px; border-top: 1px solid rgba(245,197,24,0.12); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1.2fr; gap: 60px; margin-bottom: 52px; }
.footer-brand {
  display: inline-block; margin-bottom: 16px;
  font-family: 'Bebas Neue', Impact, sans-serif; font-size: 2rem; color: var(--white); text-decoration: none;
}
.footer-brand span { color: var(--yellow); }
.footer-tagline { font-size: .9rem; color: var(--steel); line-height: 1.75; max-width: 360px; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; list-style: none; }
.footer-title {
  font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col address { color: var(--steel); text-decoration: none; font-size: .9rem; font-style: normal; line-height: 1.7; transition: color .2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid rgba(139,155,174,0.12);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.footer-bottom p, .footer-bottom a { font-size: .8rem; color: rgba(148,163,184,.75); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Apparition immédiate (haut de page, sans attendre le JS) ---------- */
.intro { animation: fadeUp .9s var(--ease) both; animation-delay: calc(var(--d, 0) * 110ms); }

/* ---------- Apparition au scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { gap: 20px; }
  .offerings-grid { grid-template-columns: repeat(2, 1fr); }
  .offerings-grid > .offering-item:last-child:nth-child(3n+2) { grid-column: auto; }
  .offerings-grid > .offering-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

/* Menu burger (6 entrées : bascule dès 1100 px pour éviter les retours à la ligne) */
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 28px;
    background: rgba(10,22,40,0.98); border-bottom: 1px solid var(--line-y);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links a:not(.btn) { display: block; padding: 18px 0; font-size: .9rem; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links a[aria-current="page"]:not(.btn) { color: var(--yellow); }
  .nav-links .nav-cta-item { border-bottom: 0; padding-top: 22px; }
  .nav-links .nav-cta-item .btn { width: 100%; padding: 16px; font-size: .82rem; }
}

@media (max-width: 960px) {
  .hero-visual { opacity: .3; width: 60%; right: -15%; }
  .services-grid { grid-template-columns: 1fr; }
  .about-grid, .two-col, .contact-grid, .whoami-grid { grid-template-columns: 1fr; gap: 52px; }
  .portrait { max-width: 380px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-inner > :first-child { grid-column: 1 / -1; }
  .page-stripe { opacity: .04; width: 60vw; right: -10%; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .container, .nav { padding-left: 20px; padding-right: 20px; }
  .section { padding: 76px 0; }
  .hero { padding-bottom: 80px; }
  .hero-stats { max-width: none; }
  .stat-item { padding-right: 12px; }
  .stat-item + .stat-item { padding-left: 14px; }
  .stat-num { font-size: 2.5rem; }
  .stat-label { font-size: .64rem; letter-spacing: .06em; }
  .hero-cta .btn { flex: 1 1 100%; }
  .scroll-hint { display: none; }
  .offerings-grid, .steps { grid-template-columns: 1fr; }
  .offerings-grid > .offering-item:last-child:nth-child(odd) { grid-column: auto; }
  .tab-nav { flex-direction: column; }
  .tab-btn { text-align: left; }
  .form-row { grid-template-columns: 1fr; }
  .contact-card { padding: 32px 22px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .faq details p { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
