/* DIGIVOLTA — Formation IRVE & métiers de l'électricité */
:root {
  --navy: #0f1f32;
  --navy-2: #16304a;
  --navy-3: #1d3b5a;
  --teal: #039b9a;
  --teal-2: #0bb3a8;
  --green: #5bb534;
  --green-2: #4e9a28;
  --orange: #f28c28;
  --ink: #0f1f32;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f4f8fa;
  --bg-tint: #e6f4f3;
  --grad: linear-gradient(120deg, #039b9a 0%, #2fae6f 55%, #6cc04a 100%);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px -12px rgba(15, 31, 50, .18);
  --shadow-lg: 0 24px 60px -20px rgba(15, 31, 50, .30);
  --font-head: "Lexend", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.bg-soft { background: var(--bg-soft); }
.bg-tint { background: var(--bg-tint); }
.bg-navy { background: var(--navy); color: #cbd5e1; }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: #fff; }
.center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: .78rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--teal);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; }
.center .eyebrow::after { content: ""; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.center .lead { margin-left: auto; margin-right: auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 500; font-size: .98rem;
  cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s, color .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(3, 155, 154, .7); }
.btn-primary:hover { color: #fff; box-shadow: 0 14px 30px -10px rgba(3, 155, 154, .8); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { color: #fff; background: var(--navy-3); }
.btn-ghost { border-color: currentColor; color: var(--navy); background: transparent; }
.btn-ghost-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost-light:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.08); }
.btn-sm { padding: 9px 16px; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Topbar + header */
.topbar { background: var(--navy); color: #cbd5e1; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #e2e8f0; }
.topbar a:hover { color: var(--teal-2); }
.topbar .tb-links { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar .tb-tag { display: inline-flex; gap: 8px; align-items: center; }
.topbar .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(91,181,52,.25); }

.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 20px; }
.brand img { height: 46px; width: auto; mix-blend-mode: multiply; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav .dd > button {
  font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--navy);
  padding: 10px 12px; border-radius: 10px; background: none; border: 0; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav > a:hover, .nav .dd > button:hover, .nav > a.active, .nav .dd.active > button { background: var(--bg-tint); color: var(--teal); }
.nav .dd { position: relative; }
.nav .dd > button svg { transition: transform .2s; }
.nav .dd:hover > button svg, .nav .dd.open > button svg { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px);
  width: 680px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  padding: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px;
  opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
}
.mega::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav .dd:hover .mega, .nav .dd.open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding-bottom: 16px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.mega-head .ico { width: 44px; height: 44px; border-radius: 12px; background: #dcebf0; display: grid; place-items: center; color: var(--green); }
.mega-head strong { font-family: var(--font-head); font-size: 1.2rem; color: var(--navy); font-weight: 600; }
.mega a { display: flex; gap: 12px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; color: var(--navy); font-size: .95rem; line-height: 1.4; }
.mega a:hover { background: var(--bg-soft); color: var(--teal); }
.mega a .chev { color: var(--orange); flex: none; margin-top: 3px; }
.mega a small { display: block; color: var(--muted); font-size: .8rem; }
.mega a .new { display: inline-block; margin-left: 6px; font-size: .64rem; font-weight: 700; letter-spacing: .06em; background: var(--green); color: #fff; padding: 1px 6px; border-radius: 6px; vertical-align: 2px; }
.mega .mega-all { grid-column: 1 / -1; margin-top: 8px; justify-content: center; background: var(--bg-soft); font-weight: 600; font-family: var(--font-head); }
.header-cta { display: flex; gap: 10px; align-items: center; }
.burger { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; align-items: center; justify-content: center; color: var(--navy); }

/* Hero */
.hero { position: relative; background: var(--navy); color: #cbd5e1; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(800px 420px at 85% 10%, rgba(3,155,154,.35), transparent 60%),
              radial-gradient(600px 400px at 10% 110%, rgba(91,181,52,.22), transparent 60%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-top: 84px; padding-bottom: 96px; }
.hero h1 { color: #fff; }
.hero .lead { color: #b6c3d4; }
.hero .eyebrow { color: var(--teal-2); }
.hero-visual { position: relative; }
.hero-visual .ph { border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/4.4; }
.hero-visual .ph img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .float {
  position: absolute; background: #fff; color: var(--navy); border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-size: .9rem; line-height: 1.3;
}
.hero-visual .float b { font-size: 1.5rem; display: block; }
.hero-visual .float .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; flex: none; }
.hero-visual .f1 { left: -34px; bottom: 46px; }
.hero-visual .f2 { right: -20px; top: 34px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 32px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: .86rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #e2e8f0; }
.chip svg { color: var(--green); }
.chip-light { background: var(--bg-tint); border-color: transparent; color: var(--navy); }
.chip-light svg { color: var(--teal); }

/* Page hero (inner pages) */
.page-hero { position: relative; background: var(--navy); color: #b6c3d4; overflow: hidden; }
.page-hero .bgimg { position: absolute; inset: 0; }
.page-hero .bgimg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,31,50,.97) 0%, rgba(15,31,50,.85) 50%, rgba(15,31,50,.55) 100%); }
.page-hero .container { position: relative; z-index: 1; padding-top: 70px; padding-bottom: 76px; }
.page-hero h1 { color: #fff; max-width: 860px; }
.page-hero .lead { color: #b6c3d4; }
.page-hero .eyebrow { color: var(--teal-2); }
.crumbs { font-size: .85rem; margin-bottom: 18px; color: #94a3b8; }
.crumbs a { color: #cbd5e1; }
.crumbs span { margin: 0 8px; opacity: .6; }

/* Facts bar */
.facts { position: relative; z-index: 2; margin-top: -40px; }
.facts-grid { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: repeat(5, 1fr); overflow: hidden; border: 1px solid var(--line); }
.fact { padding: 22px 22px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact .k { font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; display: flex; gap: 8px; align-items: center; }
.fact .k svg { color: var(--teal); }
.fact .v { font-family: var(--font-head); color: var(--navy); font-weight: 500; margin-top: 6px; line-height: 1.35; }

/* Cards & grids */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.wide-left { grid-template-columns: 1.15fr .85fr; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { box-shadow: var(--shadow); border-color: #cfe5e3; }
.card .ic { width: 50px; height: 50px; border-radius: 14px; background: var(--bg-tint); color: var(--teal); display: grid; place-items: center; margin-bottom: 18px; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

.fcard { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; color: inherit; }
.fcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: inherit; }
.fcard .im { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.fcard .im img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.fcard:hover .im img { transform: scale(1.05); }
.fcard .tag { position: absolute; left: 14px; top: 14px; background: rgba(15,31,50,.85); color: #fff; font-size: .75rem; padding: 5px 11px; border-radius: 999px; font-family: var(--font-head); letter-spacing: .02em; }
.fcard .tag.new { background: var(--green); }
.fcard .bd { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.fcard h3 { margin-bottom: .45em; }
.fcard p { color: var(--muted); font-size: .96rem; }
.fcard .meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .85rem; color: var(--navy); margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); }
.fcard .meta span { display: inline-flex; align-items: center; gap: 6px; }
.fcard .meta svg { color: var(--teal); }
.fcard .more { margin-top: 14px; font-family: var(--font-head); font-weight: 500; color: var(--teal); display: inline-flex; gap: 6px; align-items: center; }

/* Pricing / level cards */
.lvl { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; position: relative; }
.lvl.feat { border: 2px solid var(--teal); box-shadow: var(--shadow); }
.lvl .badge { position: absolute; top: -12px; left: 22px; background: var(--grad); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.lvl .code { font-family: var(--font-head); font-weight: 600; font-size: 1.35rem; color: var(--navy); }
.lvl .dur { font-size: .88rem; color: var(--teal); font-weight: 700; margin: 2px 0 12px; }
.lvl .price { font-family: var(--font-head); font-size: 1.5rem; color: var(--navy); font-weight: 600; margin: 4px 0 2px; }
.lvl .price small { font-size: .82rem; color: var(--muted); font-weight: 400; }
.lvl dl { margin: 0 0 14px; font-size: .93rem; }
.lvl dt { font-weight: 700; color: var(--navy); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-top: 10px; }
.lvl dd { margin: 2px 0 0; }
.lvl .hook { font-style: italic; color: var(--navy); font-size: .93rem; }
.lvl .btn { margin-top: auto; }

/* Lists */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 21px; height: 21px; border-radius: 50%;
  background: var(--bg-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23039b9a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.bg-navy .checks li::before { background-color: rgba(255,255,255,.1); }
.chev-list { list-style: none; padding: 0; margin: 0; }
.chev-list li { position: relative; padding-left: 22px; margin-bottom: 9px; }
.chev-list li::before { content: "›"; position: absolute; left: 4px; top: -3px; color: var(--orange); font-weight: 700; font-size: 1.25rem; }

/* Programme / modules */
.modules { counter-reset: m; display: grid; gap: 14px; }
.module { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.module > button {
  width: 100%; text-align: left; background: none; border: 0; padding: 18px 22px; cursor: pointer;
  display: flex; align-items: center; gap: 16px; font-family: var(--font-head); font-size: 1.04rem; color: var(--navy); font-weight: 500;
}
.module > button .n { counter-increment: m; width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--bg-tint); color: var(--teal); display: grid; place-items: center; font-weight: 600; }
.module > button .n::before { content: counter(m); }
.module > button .pl { margin-left: auto; transition: transform .2s; color: var(--muted); }
.module.open > button .pl { transform: rotate(45deg); color: var(--teal); }
.module .mb { display: none; padding: 0 22px 20px 74px; }
.module.open .mb { display: block; }
.module .mb ul { margin: 0; padding-left: 1.1em; }
.module .mb li { margin-bottom: 4px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step { background: #fff; border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--line); position: relative; }
.step::before { counter-increment: s; content: counter(s); font-family: var(--font-head); font-size: 2.6rem; font-weight: 600; line-height: 1; display: block; margin-bottom: 12px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 26px 16px; border-radius: var(--radius-lg); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.stat b { font-family: var(--font-head); font-size: 2.6rem; font-weight: 600; display: block; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: .92rem; color: #b6c3d4; }
.stats.light .stat { background: #fff; border-color: var(--line); }
.stats.light .stat span { color: var(--muted); }

/* Tables */
.tbl-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .96rem; }
.tbl th, .tbl td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.tbl th { background: var(--bg-soft); font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: .88rem; }
.tbl tr:last-child td { border-bottom: 0; }

/* Testimonials */
.quote { background: #fff; border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.quote .stars { color: #f5b301; letter-spacing: 2px; margin-bottom: 10px; }
.quote blockquote { margin: 0 0 18px; color: var(--navy); font-size: 1rem; }
.quote cite { font-style: normal; margin-top: auto; display: flex; align-items: center; gap: 12px; font-size: .9rem; color: var(--muted); }
.quote cite b { color: var(--navy); display: block; font-family: var(--font-head); font-weight: 600; }
.quote .av { width: 42px; height: 42px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; flex: none; }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-family: var(--font-head); color: var(--navy); font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--teal); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 18px; }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 22px; }
.member { text-align: center; }
.member .ph { aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: var(--bg-tint); margin-bottom: 12px; position: relative; }
.member .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.member:hover .ph img { transform: scale(1.05); }
.member b { display: block; font-family: var(--font-head); color: var(--navy); font-weight: 600; }
.member span { font-size: .86rem; color: var(--muted); line-height: 1.35; display: block; }
.team-lg { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.member.hl .ph { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--teal); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 12px; grid-auto-flow: dense; }
.gallery a { border-radius: 14px; overflow: hidden; display: block; position: relative; }
.gallery a img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery a:hover img { transform: scale(1.06); }
.gallery a.big { grid-column: span 2; grid-row: span 2; }
.gallery a.tall { grid-row: span 2; }
.lightbox { position: fixed; inset: 0; background: rgba(8, 16, 28, .92); display: none; align-items: center; justify-content: center; z-index: 200; padding: 24px; }
.lightbox.on { display: flex; }
.lightbox img { max-height: 88vh; max-width: 92vw; border-radius: 12px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.4rem; }
.lightbox .x { top: 20px; right: 20px; }
.lightbox .pv { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .nx { right: 20px; top: 50%; transform: translateY(-50%); }

/* Cities */
.cities { display: flex; flex-wrap: wrap; gap: 10px; }
.city { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-family: var(--font-head); font-size: .92rem; color: var(--navy); }
.city svg { color: var(--teal); }
.city.main { background: var(--navy); color: #fff; border-color: var(--navy); }
.city.main svg { color: var(--green); }

/* Logos strip */
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px 40px; }
.logos img { height: 64px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; mix-blend-mode: multiply; }
.logos img:hover { filter: none; opacity: 1; }
.certs { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.certs .c { background: #fff; border-radius: 14px; padding: 12px 18px; border: 1px solid var(--line); height: 84px; display: flex; align-items: center; }
.certs img { max-height: 58px; width: auto; }

/* Media */
.media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media-stack { position: relative; }
.media-stack .m2 { position: absolute; width: 46%; right: -24px; bottom: -34px; border-radius: 18px; overflow: hidden; border: 6px solid #fff; box-shadow: var(--shadow-lg); }
.ratio-43 { aspect-ratio: 4/3; }
.ratio-45 { aspect-ratio: 4/5; }

/* Callout / CTA */
.cta-band { background: var(--grad); border-radius: 28px; padding: 54px; color: #fff; display: grid; grid-template-columns: 1.3fr .7fr; gap: 30px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.1); }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: rgba(255,255,255,.9); margin: 0; }
.cta-band .btn-row { justify-content: flex-end; position: relative; z-index: 1; }
.cta-band .btn-dark:hover { background: #0a1624; }
.callout { border-left: 4px solid var(--teal); background: var(--bg-tint); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; color: var(--navy); }
.callout.orange { border-color: var(--orange); background: #fff5ea; }
.contact-person { display: flex; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.contact-person img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.contact-person b { font-family: var(--font-head); color: var(--navy); display: block; }

/* Forms */
.form { background: #fff; border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: block; font-size: .84rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.form .f { margin-bottom: 14px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px; border: 1.5px solid var(--line); font: inherit; font-size: .96rem; color: var(--navy); background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(3,155,154,.12); }
.form textarea { min-height: 120px; resize: vertical; }
.form .note { font-size: .8rem; color: var(--muted); margin-top: 12px; }
.form .ok { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--bg-tint); color: var(--navy); font-size: .92rem; }
.form.sent .ok { display: block; }

/* Formats */
.format { text-align: left; }
.format .ic { background: var(--grad); color: #fff; }

/* Map */
.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); min-height: 380px; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* Footer */
.footer { background: var(--navy); color: #94a3b8; font-size: .93rem; padding-top: 72px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer a { color: #cbd5e1; }
.footer a:hover { color: var(--teal-2); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 9px; }
.footer .flogo { height: 58px; width: auto; margin-bottom: 18px; }
.footer .legal { border-top: 1px solid rgba(255,255,255,.08); margin-top: 52px; padding: 26px 0 30px; font-size: .8rem; line-height: 1.6; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; }
.footer .legal p { margin: 0 0 4px; }
.footer .pill { display: inline-flex; gap: 8px; align-items: center; background: rgba(255,255,255,.06); border-radius: 999px; padding: 6px 12px; color: #e2e8f0; font-size: .82rem; margin: 0 6px 6px 0; }
.footer .qualiopi { background: #fff; border-radius: 10px; padding: 8px 12px; display: inline-block; }
.footer .qualiopi img { height: 54px; }

/* Utilities */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; } .mt-4 { margin-top: 56px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 24px; } .mb-3 { margin-bottom: 40px; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.head-row .lead { margin-bottom: 0; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.anchor-nav { position: sticky; top: 78px; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.anchor-nav .container { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.anchor-nav a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; font-size: .9rem; color: var(--navy); font-family: var(--font-head); }
.anchor-nav a:hover { background: var(--bg-tint); color: var(--teal); }


/* Groupes de formations */
.grp { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin: 0 0 18px; color: var(--navy); }
.grp svg { color: var(--teal); }
.stats.two { grid-template-columns: repeat(2, 1fr); }

/* Hero : circuit électrique animé */
.hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero .container { z-index: 1; }
.hero h1 .grad-text {
  background: linear-gradient(100deg, #039b9a 0%, #2fae6f 30%, #e9fff4 45%, #6cc04a 60%, #039b9a 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text;
  animation: shimmer 4.5s ease-in-out infinite;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 60%, 100% { background-position: -50% 0; } }
.hero-visual .ph { position: relative; }
.hero-visual .ph::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 2px rgba(11,179,168,.55), 0 0 40px rgba(11,179,168,.35);
  animation: halo 3s ease-in-out infinite;
}
@keyframes halo { 50% { box-shadow: inset 0 0 0 2px rgba(108,192,74,.7), 0 0 70px rgba(108,192,74,.45); } }
.hero-visual .float .ic { animation: zap 2.8s ease-in-out infinite; }
@keyframes zap { 0%, 88%, 100% { filter: none; } 90%, 94% { filter: brightness(1.8) drop-shadow(0 0 8px #6cc04a); } }

/* Carte de France électrique */
.emap { position: relative; background: radial-gradient(120% 90% at 40% 30%, #16304a 0%, var(--navy) 70%); border-radius: 26px; padding: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.emap svg { width: 100%; height: auto; display: block; }
.emap .land { stroke: none; }
.emap .coast { fill: rgba(11,179,168,.07); stroke: url(#eg); stroke-width: 2.2; stroke-linejoin: round; }
.emap .wire { fill: none; stroke: rgba(11,179,168,.18); stroke-width: 1.2; }
.emap .flow { fill: none; stroke: #6cc04a; stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 2 14; animation: eflow 1.4s linear infinite; opacity: .9; }
@keyframes eflow { to { stroke-dashoffset: -32; } }
.emap .dot { fill: url(#eg); stroke: #0f1f32; stroke-width: 1.5; }
.emap .hub .dot { stroke: #fff; stroke-width: 2.5; }
.emap .bolt { fill: #fff; }
.emap .pulse { fill: none; stroke: #0bb3a8; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: epulse 2.4s ease-out infinite; }
.emap .hub .pulse { stroke: #6cc04a; stroke-width: 3; }
@keyframes epulse { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
.emap .node { cursor: default; }
.emap .node:hover .dot { fill: #6cc04a; }
.emap .labels text { fill: #cbd5e1; font-family: var(--font-head); font-size: 12.5px; text-anchor: middle; paint-order: stroke; stroke: #0f1f32; stroke-width: 4px; }
.emap .labels text.hub { fill: #fff; font-weight: 600; font-size: 15px; }
.emap-legend { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; font-size: .82rem; color: #cbd5e1; margin-top: 6px; }
.emap-legend span { display: inline-flex; align-items: center; gap: 8px; }
.emap-legend i { width: 12px; height: 12px; border-radius: 50%; background: var(--grad); display: inline-block; }
.emap-legend .lg-hub { box-shadow: 0 0 0 2px #fff; }
@media (prefers-reduced-motion: reduce) {
  .emap .flow, .emap .pulse, .hero h1 .grad-text, .hero-visual .ph::after, .hero-visual .float .ic { animation: none; }
}


/* ===== Effets supplémentaires ===== */
.progress-bar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #039b9a, #6cc04a, #e9fff4); box-shadow: 0 0 10px rgba(108,192,74,.8); pointer-events: none; }
body.scrolled .header { box-shadow: 0 8px 30px -18px rgba(15,31,50,.45); }
.page-hero .hero-fx { z-index: 1; opacity: .8; }
.page-hero .container { z-index: 2; }
.spot { position: relative; isolation: isolate; }
.spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0; transition: opacity .25s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(11,179,168,.14), transparent 65%); pointer-events: none; }
.spot:hover::before { opacity: 1; }
.bg-navy .spot::before, .stat.spot::before { background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(108,192,74,.22), transparent 65%); }
.fcard { transition: transform .25s ease, box-shadow .25s; will-change: transform; }
.fcard:hover { border-color: rgba(11,179,168,.45); }
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); transition: left .6s ease; }
.btn-primary:hover::after { left: 120%; }
.spark { position: fixed; width: 5px; height: 5px; border-radius: 50%; background: #c8ff9e; box-shadow: 0 0 8px #6cc04a, 0 0 2px #fff;
  pointer-events: none; z-index: 400; animation: spark .65s ease-out forwards; }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
.eyebrow::before { background: linear-gradient(90deg, #039b9a, #6cc04a, #e9fff4, #039b9a); background-size: 300% 100%; animation: current 2.2s linear infinite; }
@keyframes current { to { background-position: -300% 0; } }
.media img, .page-hero .bgimg img { transition: transform .4s ease-out; }
.reveal .media img, .media.reveal img { transform: scale(1.12); transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.reveal.in .media img, .media.reveal.in img { transform: scale(1.06); }
.card .ic, .fact .k svg { transition: transform .3s; }
.card:hover .ic { transform: rotate(-8deg) scale(1.08); box-shadow: 0 0 0 6px rgba(11,179,168,.08); }
.lvl.feat { animation: featglow 3.2s ease-in-out infinite; }
@keyframes featglow { 50% { box-shadow: 0 0 0 4px rgba(11,179,168,.12), 0 20px 50px -20px rgba(3,155,154,.55); } }
.cta-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%);
  background-size: 250% 100%; animation: sweep 5s ease-in-out infinite; pointer-events: none; }
@keyframes sweep { 0% { background-position: 150% 0; } 60%, 100% { background-position: -100% 0; } }
.facts-grid .fact { transition: background .2s; }
.facts-grid .fact:hover { background: var(--bg-tint); }

/* Formations à venir */
.fcard .tag.soon, .badge-soon { background: var(--orange); color: #fff; }
.mega a .soon { display: inline-block; margin-left: 6px; font-size: .64rem; font-weight: 700; letter-spacing: .06em; background: var(--orange); color: #fff; padding: 1px 6px; border-radius: 6px; vertical-align: 2px; }
.soon-banner { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 8px 16px; border-radius: 999px; background: rgba(242,140,40,.15);
  border: 1px solid rgba(242,140,40,.5); color: #ffd3a6; font-family: var(--font-head); font-size: .9rem; }
.soon-banner .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* Qualiopi + mention obligatoire */
.qualiopi-block { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 16px; max-width: 260px; text-align: center; }
.qualiopi-block img { height: 58px; width: auto; }
.qualiopi-block small { font-size: .72rem; line-height: 1.35; color: var(--navy); }
.qualiopi-block small b { display: block; font-weight: 700; }
.footer .qualiopi-block { color: var(--navy); }
@media (prefers-reduced-motion: reduce) {
  .eyebrow::before, .lvl.feat, .cta-band::before, .soon-banner .dot { animation: none; }
  .reveal .media img, .media.reveal img { transform: none; }
}

/* Responsive */
@media (max-width: 1180px) {
  .nav, .header-cta .btn-ghost { display: none; }
  .burger { display: inline-flex; }
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch; position: fixed; top: 118px; left: 0; right: 0; bottom: 0;
    background: #fff; padding: 16px 20px 40px; overflow-y: auto; gap: 2px; border-top: 1px solid var(--line);
  }
  .nav.open > a, .nav.open .dd > button { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 1.05rem; }
  .nav.open .mega { position: static; transform: none; width: auto; box-shadow: none; border: 0; padding: 0 0 10px 6px; display: none; opacity: 1; visibility: visible; grid-template-columns: 1fr; }
  .nav.open .dd.open .mega { display: grid; transform: none; }
  .nav.open .mega-head { display: none; }
  .facts-grid { grid-template-columns: repeat(3, 1fr); }
  .fact:nth-child(3) { border-right: 0; }
  .fact:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .hero .container, .split, .split.wide-left, .cta-band { grid-template-columns: 1fr; }
  .hero .container { padding-top: 56px; padding-bottom: 72px; gap: 40px; }
  .hero-visual .f1 { left: 10px; } .hero-visual .f2 { right: 10px; }
  .g3, .g4, .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .cta-band { padding: 36px 28px; }
  .cta-band .btn-row { justify-content: flex-start; }
  .media-stack .m2 { right: 10px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .g2, .g3, .g4, .steps, .form .row { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line); }
  .fact:nth-child(2n) { border-right: 0 !important; }
  .topbar .tb-tag { display: none; }
  .brand img { height: 36px; }
  .header-cta .btn-primary { display: none; }
  .footer .cols, .footer .legal { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .hero-visual .float { display: none; }
  .form { padding: 22px; }
  .module .mb { padding-left: 22px; }
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } * { scroll-behavior: auto !important; } }
