/* =========================================================================
   Auto-École WARNING — Agde
   Refonte design moderne (3D, responsive, animations)
   ========================================================================= */

/* ---------- Variables & thème ---------- */
:root {
  --orange: #ff5a1f;
  --orange-ink: #e0480f; /* orange foncé lisible (AA) pour petit texte */
  --orange-2: #ffb000;
  --navy: #0b1437;
  --navy-2: #131d4a;
  --ink: #1a2238;
  --muted: #5b6480;
  --line: #e7e9f3;
  --bg: #f6f7fc;
  --white: #ffffff;
  --purple: #6c5ce7;
  --teal: #00c2a8;

  --grad-warning: linear-gradient(135deg, #ff5a1f 0%, #ffb000 100%);
  --grad-navy: linear-gradient(160deg, #0b1437 0%, #1a2a6c 100%);

  --shadow-sm: 0 4px 14px rgba(15, 23, 64, .08);
  --shadow-md: 0 16px 40px rgba(15, 23, 64, .14);
  --shadow-lg: 0 30px 70px rgba(15, 23, 64, .22);
  --radius: 20px;
  --radius-lg: 28px;
  --max: 1200px;
  --nav-h: 78px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: "Sora", "Poppins", sans-serif; line-height: 1.12; font-weight: 700; letter-spacing: -.02em; }

.container { width: min(92%, var(--max)); margin-inline: auto; }

.accent { color: var(--orange); }
.grad-text {
  background: var(--grad-warning);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Boutons ---------- */
.btn {
  --b: var(--orange);
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .9rem 1.6rem; border-radius: 999px; font-weight: 600;
  font-size: .98rem; cursor: pointer; border: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad-warning); color: #fff; box-shadow: 0 12px 26px rgba(255, 90, 31, .38); }
.btn-primary:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 20px 38px rgba(255, 90, 31, .5); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border: 1.5px solid rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.btn-ghost:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .22); }
.btn-dark { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-dark:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.btn-outline { background: #fff; color: var(--navy); border: 1.5px solid var(--line); }
.btn-outline:hover { transform: translateY(-4px); border-color: var(--orange); color: var(--orange); box-shadow: var(--shadow-sm); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 100;
  display: flex; align-items: center;
  transition: background .4s, box-shadow .4s, height .4s;
}
.nav.scrolled {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 6px 24px rgba(15, 23, 64, .08);
  height: 66px;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; gap: .7rem; font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.25rem; color: #fff; transition: color .4s; }
.nav.scrolled .brand { color: var(--navy); }
.brand .logo {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--grad-warning); box-shadow: 0 8px 20px rgba(255, 90, 31, .45);
  position: relative; flex: none;
  animation: hazard 2.4s ease-in-out infinite;
}
.brand .logo svg { width: 26px; height: 26px; }
.brand small { display: block; font-size: .62rem; font-weight: 500; letter-spacing: .18em; opacity: .7; font-family: "Poppins"; }
@keyframes hazard { 0%, 100% { box-shadow: 0 8px 20px rgba(255, 90, 31, .45); } 50% { box-shadow: 0 8px 28px rgba(255, 176, 0, .75); } }

.nav-links { display: flex; align-items: center; gap: .35rem; list-style: none; }
.nav-links a {
  padding: .5rem .9rem; border-radius: 999px; font-weight: 500; font-size: .94rem;
  color: rgba(255, 255, 255, .92); transition: background .25s, color .25s;
}
.nav.scrolled .nav-links a { color: var(--ink); }
.nav-links a:hover { background: rgba(255, 90, 31, .14); color: var(--orange); }
.nav-cta { margin-left: .4rem; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { width: 26px; height: 2.5px; background: #fff; border-radius: 3px; transition: .35s var(--ease); }
.nav.scrolled .burger span { background: var(--navy); }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Barre de progression scroll ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 200;
  background: var(--grad-warning); box-shadow: 0 0 10px rgba(255, 90, 31, .7);
  transition: width .1s linear;
}

/* ---------- Bouton retour en haut ---------- */
.to-top {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90;
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-warning); color: #fff; box-shadow: 0 12px 26px rgba(255, 90, 31, .45);
  opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.to-top svg { width: 22px; height: 22px; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-4px) scale(1.05); }

/* ---------- Hero ---------- */
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; opacity: .9; }
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 3rem) 0 5rem; overflow: hidden;
  background: var(--grad-navy); color: #fff;
  perspective: 1400px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(42% 52% at 80% 18%, rgba(255, 90, 31, .5), transparent 70%),
    radial-gradient(46% 56% at 14% 82%, rgba(255, 176, 0, .28), transparent 70%),
    radial-gradient(30% 40% at 58% 92%, rgba(255, 90, 31, .2), transparent 70%);
  animation: heroglow 14s ease-in-out infinite alternate;
}
@keyframes heroglow { 0% { transform: scale(1) translate(0, 0); } 100% { transform: scale(1.15) translate(-3%, 2%); } }

/* grille perspective animée */
.hero-grid {
  position: absolute; inset: auto 0 -10% 0; height: 60%;
  background-image:
    linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(420px) rotateX(62deg); transform-origin: bottom;
  mask-image: linear-gradient(transparent, #000 60%);
  animation: gridmove 8s linear infinite;
}
@keyframes gridmove { to { background-position: 0 56px; } }

.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: .55rem; padding: .45rem 1rem;
  border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  font-size: .82rem; font-weight: 500; backdrop-filter: blur(6px); margin-bottom: 1.5rem;
}
.hero-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(0, 194, 168, .7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 194, 168, .7); } 70% { box-shadow: 0 0 0 12px rgba(0, 194, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 194, 168, 0); } }

.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); margin-bottom: 1.2rem; }
.hero h1 span { display: inline-block; }
.hero p.lead { font-size: 1.12rem; color: rgba(255, 255, 255, .82); max-width: 33rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.4rem; }

.hero-stats { display: flex; gap: 2.4rem; flex-wrap: wrap; }
.hero-stats .s b { font-family: "Sora"; font-size: 1.7rem; display: block; }
.hero-stats .s span { font-size: .82rem; color: rgba(255, 255, 255, .82); }

/* carte 3D flottante */
.hero-visual { position: relative; display: grid; place-items: center; transform-style: preserve-3d; }
.float-card {
  width: 330px; max-width: 100%; border-radius: var(--radius-lg); padding: 1.6rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg); transform-style: preserve-3d;
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { transform: translateY(0) rotateX(6deg) rotateY(-9deg); } 50% { transform: translateY(-18px) rotateX(4deg) rotateY(-6deg); } }
.float-card .fc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; transform: translateZ(40px); }
.float-card .fc-chip { width: 46px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, #ffd76a, #ffb000); }
.float-card .fc-cat { font-weight: 700; font-family: "Sora"; }
.float-card .fc-name { font-size: 1.35rem; font-family: "Sora"; font-weight: 700; transform: translateZ(30px); }
.float-card .fc-sub { color: rgba(255, 255, 255, .7); font-size: .85rem; margin-bottom: 1.4rem; }
.float-card .fc-row { display: flex; justify-content: space-between; font-size: .86rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .18); transform: translateZ(20px); }
.float-card .fc-row b { font-family: "Sora"; }

.badge-pill {
  position: absolute; padding: .7rem 1rem; border-radius: 16px; background: #fff; color: var(--navy);
  box-shadow: var(--shadow-md); font-size: .82rem; font-weight: 600; display: flex; align-items: center; gap: .5rem;
}
.badge-pill svg { width: 20px; height: 20px; }
.badge-pill.b1 { top: 4%; left: -6%; animation: floaty 5s ease-in-out infinite; }
.badge-pill.b2 { bottom: 6%; right: -8%; animation: floaty 6.5s ease-in-out .5s infinite; }
.badge-pill .star { color: var(--orange-2); }

.scroll-cue { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); z-index: 3; font-size: .72rem; letter-spacing: .2em; color: rgba(255, 255, 255, .6); text-align: center; }
.scroll-cue .mouse { width: 24px; height: 38px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 14px; margin: 0 auto .5rem; position: relative; }
.scroll-cue .mouse::before { content: ""; position: absolute; top: 7px; left: 50%; width: 4px; height: 7px; background: #fff; border-radius: 2px; transform: translateX(-50%); animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 1; top: 7px; } 100% { opacity: 0; top: 18px; } }

/* ---------- Bandeau confiance ---------- */
.trust { background: var(--white); padding: 2.2rem 0; border-bottom: 1px solid var(--line); }
.trust .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem; }
.trust .t-item { display: flex; align-items: center; gap: .7rem; color: var(--muted); font-weight: 500; font-size: .92rem; }
.trust .t-item svg { width: 26px; height: 26px; color: var(--orange); flex: none; }
.trust .t-item b { color: var(--ink); }

/* ---------- Sections génériques ---------- */
.section { padding: 6rem 0; }
.section.alt { background: var(--white); }
.section.dark { background: var(--grad-navy); color: #fff; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .16em; color: var(--orange-ink); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--orange); display: inline-block; }
.section-head { max-width: 44rem; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); margin-bottom: 1rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section.dark .section-head p { color: rgba(255, 255, 255, .75); }

/* ---------- Formations (cartes 3D tilt) ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1.6rem; }
.tilt {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.7rem; transition: box-shadow .4s var(--ease), border-color .4s; transform-style: preserve-3d;
  overflow: hidden;
}
.tilt::after { content: ""; position: absolute; inset: 0; background: var(--grad-warning); opacity: 0; transition: opacity .4s; z-index: -1; }
.tilt:hover { box-shadow: var(--shadow-md); border-color: transparent; }
.tilt .t-ico {
  width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.3rem;
  background: linear-gradient(135deg, rgba(255, 90, 31, .12), rgba(255, 176, 0, .12)); color: var(--orange);
  transform: translateZ(40px); transition: transform .4s;
}
.tilt .t-ico svg { width: 32px; height: 32px; }
.tilt h3 { font-size: 1.25rem; margin-bottom: .5rem; transform: translateZ(28px); }
.tilt p { color: var(--muted); font-size: .94rem; transform: translateZ(18px); }
.tilt .t-tag { display: inline-block; margin-top: 1rem; font-size: .78rem; font-weight: 600; color: var(--orange-ink); transform: translateZ(24px); }
.tilt .t-tag::after { content: " →"; transition: margin .3s; }
.tilt:hover .t-tag::after { margin-left: 4px; }

/* ---------- Tarifs ---------- */
.toggle-tabs { display: inline-flex; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 5px; margin-bottom: 2.6rem; box-shadow: var(--shadow-sm); }
.section.alt .toggle-tabs { background: var(--bg); }
.toggle-tabs button { border: 0; background: transparent; padding: .65rem 1.4rem; border-radius: 999px; font-weight: 600; color: var(--muted); cursor: pointer; transition: .3s; font-size: .95rem; display: inline-flex; align-items: center; gap: .5rem; }
.toggle-tabs button.active { background: var(--grad-warning); color: #fff; box-shadow: 0 8px 18px rgba(255, 90, 31, .35); }

.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.7rem; align-items: stretch; }
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem;
  display: flex; flex-direction: column; position: relative; transition: transform .4s var(--ease), box-shadow .4s;
}
.price-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.price-card.featured { border: 0; background: var(--grad-navy); color: #fff; box-shadow: var(--shadow-lg); }
.price-card.featured .pc-price small, .price-card.featured .pc-desc { color: rgba(255, 255, 255, .72); }
.pc-flag { position: absolute; top: 1.4rem; right: 1.4rem; background: var(--grad-warning); color: #fff; font-size: .72rem; font-weight: 700; padding: .35rem .8rem; border-radius: 999px; letter-spacing: .04em; }
.pc-name { font-size: 1.05rem; font-weight: 600; color: var(--muted); }
.price-card.featured .pc-name { color: rgba(255, 255, 255, .8); }
.pc-price { font-family: "Sora"; font-size: 2.7rem; font-weight: 800; margin: .4rem 0 .2rem; display: flex; align-items: baseline; gap: .3rem; }
.pc-price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.pc-desc { font-size: .9rem; color: var(--muted); margin-bottom: 1.4rem; }
.pc-list { list-style: none; display: grid; gap: .7rem; margin-bottom: 1.7rem; flex: 1; }
.pc-list li { display: flex; gap: .6rem; font-size: .92rem; align-items: flex-start; }
.pc-list li svg { width: 18px; height: 18px; color: var(--teal); flex: none; margin-top: 3px; }
.price-card.featured .pc-list li svg { color: var(--orange-2); }
.price-card .btn { width: 100%; justify-content: center; margin-top: auto; }

/* tableau prestations */
.rate-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem; }
.rate-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.rate-card h3 { font-size: 1.15rem; margin-bottom: 1.1rem; display: flex; align-items: center; gap: .6rem; }
.rate-card h3 svg { width: 24px; height: 24px; color: var(--orange); }
.rate-card ul { list-style: none; display: grid; gap: .1rem; }
.rate-card li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.rate-card li:last-child { border-bottom: 0; }
.rate-card li b { font-family: "Sora"; color: var(--navy); white-space: nowrap; }

/* ---------- Code (étapes) ---------- */
.code-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.code-options { display: grid; gap: 1rem; }
.code-opt { display: flex; gap: 1.1rem; padding: 1.3rem; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); transition: .35s var(--ease); }
.code-opt:hover { transform: translateX(6px); background: rgba(255, 255, 255, .1); }
.code-opt .num { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; font-family: "Sora"; font-weight: 800; background: var(--grad-warning); color: #fff; }
.code-opt h4 { font-size: 1.1rem; margin-bottom: .25rem; }
.code-opt p { color: rgba(255, 255, 255, .72); font-size: .92rem; }
.code-visual { position: relative; display: grid; place-items: center; }
.code-3days {
  width: 100%; max-width: 380px; border-radius: var(--radius-lg); padding: 2.2rem;
  background: linear-gradient(150deg, rgba(255, 90, 31, .9), rgba(255, 176, 0, .9));
  box-shadow: var(--shadow-lg); text-align: center; transform: rotate(-3deg); transition: transform .5s var(--ease);
}
.code-3days:hover { transform: rotate(0) scale(1.02); }
.code-3days .big { font-family: "Sora"; font-size: 4.5rem; font-weight: 800; line-height: 1; }
.code-3days .lbl { font-size: 1.2rem; font-weight: 600; margin-bottom: .8rem; }
.code-3days .px { display: inline-block; background: rgba(255, 255, 255, .25); padding: .4rem 1.1rem; border-radius: 999px; font-weight: 700; backdrop-filter: blur(4px); }

/* ---------- Avis ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.review {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem;
  box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s;
}
.review:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.review .stars { color: var(--orange-2); margin-bottom: .8rem; letter-spacing: 2px; }
.review p { font-size: .96rem; color: var(--ink); margin-bottom: 1.2rem; }
.review .who { display: flex; align-items: center; gap: .8rem; }
.review .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; font-family: "Sora"; background: var(--grad-warning); }
.review .who b { display: block; font-size: .95rem; }
.review .who span { font-size: .8rem; color: var(--muted); }

.rating-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 2rem; margin-bottom: 3rem; padding: 1.8rem 2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.rating-hero .big-note { font-family: "Sora"; font-size: 3.4rem; font-weight: 800; color: var(--navy); line-height: 1; }
.rating-hero .ghead .stars { color: var(--orange-2); font-size: 1.2rem; letter-spacing: 2px; }
.rating-hero .ghead span { color: var(--muted); font-size: .92rem; }
.rating-hero .gdivider { width: 1px; align-self: stretch; background: var(--line); }

/* ---------- Équipe ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.4rem; }
.member { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.2rem; transition: .4s var(--ease); }
.member:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.member .ava { width: 86px; height: 86px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; font-family: "Sora"; font-weight: 800; font-size: 1.8rem; color: #fff; background: var(--grad-navy); box-shadow: var(--shadow-sm); }
.member h4 { font-size: 1.1rem; }
.member span { color: var(--muted); font-size: .86rem; }

/* ---------- Stats animées ---------- */
.stats-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; text-align: center; }
.stat b { font-family: "Sora"; font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; display: block; }
.stat span { color: rgba(255, 255, 255, .72); font-size: .95rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.info-list { display: grid; gap: 1rem; margin: 1.8rem 0; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: .35s var(--ease); }
.info-item:hover { transform: translateX(5px); box-shadow: var(--shadow-sm); border-color: var(--orange); }
.info-item .ii-ico { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(255, 90, 31, .12), rgba(255, 176, 0, .12)); color: var(--orange); }
.info-item .ii-ico svg { width: 22px; height: 22px; }
.info-item b { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .15rem; }
.info-item a, .info-item p { font-size: 1.02rem; color: var(--ink); font-weight: 500; }

.hours { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.hours h4 { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.hours h4 svg { width: 22px; height: 22px; color: var(--orange); }
.hours .h-row { display: flex; justify-content: space-between; padding: .55rem 0; border-bottom: 1px dashed var(--line); font-size: .94rem; }
.hours .h-row:last-child { border-bottom: 0; }
.hours .h-row span:last-child { font-weight: 600; }
.hours .h-row.closed span:last-child { color: var(--muted); font-weight: 500; }
.hours .h-cat { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--orange); margin: 1rem 0 .3rem; font-weight: 600; }
.hours .h-cat:first-child { margin-top: 0; }

.map-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); height: 100%; min-height: 320px; }
.map-card iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* Formulaire de contact */
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); display: grid; gap: 1rem; }
.contact-form .cf-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.contact-form label { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: .35rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: 12px; font: inherit;
  color: var(--ink); background: var(--bg); transition: border-color .25s, box-shadow .25s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,90,31,.15); background: #fff;
}
.contact-form textarea { min-height: 96px; resize: vertical; }
.contact-form .cf-note { font-size: .82rem; color: var(--muted); text-align: center; }
.contact-form .cf-note b { color: var(--teal); }
@media (max-width: 520px) { .contact-form .cf-row { grid-template-columns: 1fr; } }

/* CTA final */
.cta-final { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 4rem 2rem; text-align: center; background: var(--grad-warning); color: #fff; box-shadow: var(--shadow-lg); }
.cta-final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 60% at 80% 10%, rgba(255, 255, 255, .25), transparent 60%); }
.cta-final h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .8rem; position: relative; }
.cta-final p { max-width: 36rem; margin: 0 auto 2rem; position: relative; font-size: 1.05rem; opacity: .95; }
.cta-final .hero-actions { justify-content: center; position: relative; margin: 0; }
.cta-final .btn-ghost { border-color: rgba(255, 255, 255, .6); }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255, 255, 255, .7); padding: 4rem 0 1.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2.4rem; margin-bottom: 2.6rem; }
.footer .brand { color: #fff; margin-bottom: 1rem; }
.footer p { font-size: .92rem; }
.footer h5 { color: #fff; font-family: "Sora"; font-size: 1rem; margin-bottom: 1.1rem; }
.footer ul { list-style: none; display: grid; gap: .6rem; }
.footer ul a { font-size: .92rem; transition: color .25s, padding .25s; }
.footer ul a:hover { color: var(--orange); padding-left: 4px; }
.footer .socials { display: flex; gap: .7rem; margin-top: 1rem; }
.footer .socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); transition: .3s; }
.footer .socials a:hover { background: var(--grad-warning); transform: translateY(-3px); }
.footer .socials svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 1.6rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; }
.footer-bottom a:hover { color: var(--orange); }

/* ---------- Bloc Qualiopi (accueil) ---------- */
.quali-band { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.4rem; align-items: center; }
.quali-cert {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2.2rem; box-shadow: var(--shadow-md);
}
.quali-cert .qc-badge {
  width: 92px; height: 92px; border-radius: 20px; display: grid; place-items: center; flex: none;
  background: var(--grad-navy); color: #fff; font-family: "Sora"; font-weight: 800; text-align: center;
  line-height: 1.05; box-shadow: var(--shadow-sm); font-size: .82rem; letter-spacing: .02em;
}
.quali-cert .qc-head { display: flex; gap: 1.2rem; align-items: center; margin-bottom: 1.3rem; }
.quali-cert h3 { font-size: 1.3rem; }
.quali-cert .qc-sub { color: var(--muted); font-size: .9rem; }
.quali-cert .qc-legal { font-size: .92rem; background: var(--bg); border-radius: 14px; padding: 1rem 1.1rem; border: 1px dashed var(--line); }
.quali-cert .qc-meta { display: grid; gap: .45rem; margin-top: 1.2rem; font-size: .9rem; }
.quali-cert .qc-meta div { display: flex; justify-content: space-between; gap: 1rem; }
.quali-cert .qc-meta b { font-family: "Sora"; color: var(--navy); text-align: right; }
.todo { color: #c2410c; background: #fff7ed; border: 1px dashed #fdba74; padding: .05rem .4rem; border-radius: 6px; font-size: .82em; font-weight: 600; }

.indic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.indic { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.3rem; text-align: center; box-shadow: var(--shadow-sm); }
.indic b { display: block; font-family: "Sora"; font-size: 2rem; font-weight: 800; color: var(--orange); }
.indic span { font-size: .82rem; color: var(--muted); }

/* ---------- Sous-pages (réglementaire) ---------- */
.page-hero {
  background: var(--grad-navy); color: #fff; padding: calc(var(--nav-h) + 3.5rem) 0 3rem; position: relative; overflow: hidden;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 60% at 85% 10%, rgba(255, 90, 31, .35), transparent 65%); }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: .6rem; }
.page-hero p { color: rgba(255, 255, 255, .8); max-width: 42rem; }
.crumb { font-size: .85rem; color: rgba(255, 255, 255, .65); margin-bottom: 1rem; }
.crumb a:hover { color: #fff; }

.doc-layout { display: grid; grid-template-columns: 250px 1fr; gap: 3rem; align-items: start; }
.doc-toc { position: sticky; top: calc(var(--nav-h) + 1rem); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow-sm); }
.doc-toc h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .8rem; }
.doc-toc ul { list-style: none; display: grid; gap: .15rem; }
.doc-toc a { display: block; padding: .5rem .7rem; border-radius: 10px; font-size: .9rem; color: var(--ink); transition: .25s; }
.doc-toc a:hover { background: rgba(255, 90, 31, .1); color: var(--orange); }

.doc-body .doc-sec { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); margin-bottom: 1.6rem; scroll-margin-top: calc(var(--nav-h) + 1rem); }
.doc-body h2 { font-size: 1.5rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .7rem; }
.doc-body h2 .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(255, 90, 31, .14), rgba(255, 176, 0, .14)); color: var(--orange); flex: none; }
.doc-body h2 .ic svg { width: 22px; height: 22px; }
.doc-body h3 { font-size: 1.08rem; margin: 1.3rem 0 .5rem; }
.doc-body p, .doc-body li { color: var(--ink); font-size: .96rem; }
.doc-body p { margin-bottom: .8rem; }
.doc-body ul { padding-left: 1.2rem; margin-bottom: .9rem; display: grid; gap: .35rem; }
.doc-body .lead-p { color: var(--muted); }
.kv { display: grid; gap: .5rem; margin: .6rem 0 1rem; }
.kv div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .9rem; background: var(--bg); border-radius: 10px; font-size: .93rem; }
.kv b { font-family: "Sora"; color: var(--navy); text-align: right; }
.callout { border-left: 4px solid var(--orange); background: #fff7ed; border-radius: 0 12px 12px 0; padding: 1rem 1.2rem; margin: 1rem 0; font-size: .93rem; }
.formation-fiche { border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem 1.4rem; margin-bottom: 1rem; }
.formation-fiche summary { font-family: "Sora"; font-weight: 700; cursor: pointer; font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; }
.formation-fiche summary::-webkit-details-marker { display: none; }
.formation-fiche[open] summary { color: var(--orange); margin-bottom: .8rem; }

@media (max-width: 860px) {
  .quali-band, .doc-layout { grid-template-columns: 1fr; }
  .doc-toc { position: static; }
}

/* ---------- Animations au scroll ---------- */
/* Filet no-JS : sans la classe .js (posée par un script inline), le contenu reste visible */
.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.js .reveal { opacity: 0; transform: translateY(34px); }
html.js .reveal.in, .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* ---------- Utilitaires a11y ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 300; background: var(--navy); color: #fff;
  padding: .8rem 1.2rem; border-radius: 0 0 12px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* Garde-fou : ne jamais publier un placeholder de rédaction (sauf <body class="draft">) */
body:not(.draft) .todo { display: none; }

/* Carte .tilt utilisée comme lien */
a.tilt { color: inherit; text-decoration: none; display: block; }

/* ---------- Accessibilité : focus visible ---------- */
a:focus-visible, button:focus-visible, .btn:focus-visible, summary:focus-visible {
  outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px;
}

/* ---------- Hero : rotateur de catégories ---------- */
.rotator { display: inline-grid; vertical-align: bottom; }
.rotator > span {
  grid-area: 1 / 1; opacity: 0; transform: translateY(14px) rotateX(-40deg);
  transform-origin: bottom; animation: rotword 10s infinite; will-change: transform, opacity;
}
.rotator > span:nth-child(1) { animation-delay: 0s; }
.rotator > span:nth-child(2) { animation-delay: 2s; }
.rotator > span:nth-child(3) { animation-delay: 4s; }
.rotator > span:nth-child(4) { animation-delay: 6s; }
.rotator > span:nth-child(5) { animation-delay: 8s; }
@keyframes rotword {
  0% { opacity: 0; transform: translateY(14px) rotateX(-40deg); }
  4%, 18% { opacity: 1; transform: translateY(0) rotateX(0); }
  22% { opacity: 0; transform: translateY(-14px) rotateX(40deg); }
  100% { opacity: 0; }
}

/* ---------- Parcours (timeline 4 étapes) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 38px; left: 12%; right: 12%; height: 3px;
  background: repeating-linear-gradient(90deg, var(--orange) 0 14px, transparent 14px 26px);
  opacity: .35; z-index: 0;
}
.step { position: relative; z-index: 1; text-align: center; }
.step .s-num {
  width: 76px; height: 76px; margin: 0 auto 1rem; border-radius: 22px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-family: "Sora"; font-weight: 800; font-size: 1.5rem; color: var(--orange);
  transition: transform .4s var(--ease), box-shadow .4s; position: relative;
}
.step .s-num::after { content: attr(data-step); position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; background: var(--grad-warning); color: #fff; font-size: .8rem; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(255,90,31,.4); }
.step:hover .s-num { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step .s-num svg { width: 34px; height: 34px; }
.step h4 { font-size: 1.1rem; margin-bottom: .3rem; }
.step p { color: var(--muted); font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: .9rem; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 1.4rem;
  box-shadow: var(--shadow-sm); transition: border-color .3s, box-shadow .3s;
}
.faq details[open] { border-color: var(--orange); box-shadow: var(--shadow-md); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.2rem 0; font-family: "Sora"; font-weight: 600;
  font-size: 1.04rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { width: 30px; height: 30px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; flex: none; transition: .35s var(--ease); }
.faq summary .chev svg { width: 16px; height: 16px; color: var(--orange); }
.faq details[open] summary .chev { transform: rotate(180deg); background: var(--grad-warning); }
.faq details[open] summary .chev svg { color: #fff; }
.faq .faq-a { padding: 0 0 1.3rem; color: var(--muted); font-size: .96rem; animation: fadein .4s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Google rating block ---------- */
.google-rating {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem 2.4rem; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem 2.4rem;
  box-shadow: var(--shadow-sm); max-width: 880px; margin: 0 auto;
}
.google-rating .gr-logo { font-family: "Sora"; font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; }
.google-rating .gr-logo b { font-size: 1.3rem; }
.google-rating .gr-g { font-weight: 800; }
.google-rating .gr-g span:nth-child(1){color:#4285F4}.google-rating .gr-g span:nth-child(2){color:#EA4335}.google-rating .gr-g span:nth-child(3){color:#FBBC05}.google-rating .gr-g span:nth-child(4){color:#4285F4}.google-rating .gr-g span:nth-child(5){color:#34A853}.google-rating .gr-g span:nth-child(6){color:#EA4335}
.google-rating .gr-note { font-family: "Sora"; font-size: 2.6rem; font-weight: 800; color: var(--navy); line-height: 1; }
.google-rating .gr-stars { color: var(--orange-2); font-size: 1.3rem; letter-spacing: 3px; }
.google-rating .gr-sub { color: var(--muted); font-size: .9rem; }
.google-rating .gr-sep { width: 1px; align-self: stretch; background: var(--line); }

/* ---------- Barre d'appel mobile ---------- */
.mobile-call { display: none; }
@media (max-width: 760px) {
  .mobile-call {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: grid; grid-template-columns: 1fr 1fr;
    gap: .5rem; padding: .6rem .7rem calc(.6rem + env(safe-area-inset-bottom, 0)); background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(15,23,64,.1);
    transform: translateY(120%); transition: transform .35s var(--ease);
  }
  .mobile-call.show { transform: none; }
  .mobile-call a { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem; border-radius: 14px; font-weight: 600; font-size: .95rem; }
  .mobile-call svg { width: 18px; height: 18px; }
  .mobile-call .mc-call { background: var(--grad-warning); color: #fff; }
  .mobile-call .mc-mail { background: var(--navy); color: #fff; }
  .to-top { bottom: 5.2rem; }
  body { padding-bottom: 4.4rem; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { order: -1; }
  .float-card { animation: none; transform: rotateX(4deg) rotateY(-6deg); }
  .code-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: rgba(255, 255, 255, .97); backdrop-filter: blur(16px); padding: 1rem; gap: .2rem;
    box-shadow: var(--shadow-md); transform: translateY(-130%); transition: transform .4s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { color: var(--ink); padding: .85rem 1rem; }
  .nav-links .nav-cta { margin: .4rem 0 0; }
  .nav-links .nav-cta .btn { width: 100%; justify-content: center; }
  .burger { display: flex; }
  .section { padding: 4.2rem 0; }
  .badge-pill.b1 { left: 0; } .badge-pill.b2 { right: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .rating-hero .gdivider { display: none; }
}
@media (max-width: 460px) {
  .hero-stats { gap: 1.4rem; }
  .toggle-tabs { width: 100%; }
  .toggle-tabs button { flex: 1; justify-content: center; padding: .65rem .5rem; }
}

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 1.6rem 1rem; }
  .steps::before { display: none; }
}
@media (max-width: 420px) { .steps { grid-template-columns: 1fr; } .google-rating .gr-sep { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .rotator > span { opacity: 0; }
  .rotator > span:first-child { opacity: 1; transform: none; }
}
