/* ISPTAE — Feuille de style principale
   Layout : éditorial asymétrique ; bandes pleine largeur alternant blanc / bleu nuit,
   compositions photo décalées, grille 12 colonnes max 1200px.            */
:root {
  --navy: #0A2A5E;          /* bleu institutionnel */
  --navy-2: #123A7A;
  --sky: #4FAEE3;           /* bleu ciel du logo */
  --sky-soft: #E6F3FB;
  --gold: #E3A21A;          /* jaune doré des épis */
  --gold-soft: #FCF3DF;
  --ochre: #C8874A;         /* façade du bâtiment, ton naturel discret */
  --paper: #FFFFFF;
  --mist: #F4F7FB;          /* neutre teinté bleu */
  --ink: #0E1B33;
  --ink-2: #44526B;
  --line: #DCE4EE;

  --f-display: "Spectral", Georgia, "Times New Roman", serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-label: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1200px;
  --r: 14px;
  --shadow: 0 18px 40px -22px rgba(10, 42, 94, .35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--paper);
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.section { padding-block: clamp(64px, 9vw, 120px); }
.eyebrow {
  font: 500 12px/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase;
  color: var(--sky); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold); }
.h2 { font-size: clamp(30px, 4.2vw, 48px); color: var(--navy); }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); max-width: 62ch; }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 760px; }
.section-head.split { max-width: none; grid-template-columns: 1fr 1fr; align-items: end; gap: 24px 48px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font: 600 15px/1 var(--f-body); text-decoration: none; cursor: pointer;
  padding: 15px 24px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #F0B33A; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-line { border-color: var(--navy); color: var(--navy); }
.btn-line:hover { background: var(--navy); color: #fff; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.nav.scrolled { border-color: var(--line); box-shadow: 0 8px 24px -18px rgba(10,42,94,.4); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 48px; height: 48px; }
.brand-txt { display: grid; line-height: 1.1; }
.brand-txt b { font: 700 20px/1 var(--f-display); color: var(--navy); letter-spacing: .04em; }
.brand-txt span { font: 500 10px/1.3 var(--f-label); color: var(--ink-2); letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; }
.menu { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.menu a {
  display: block; padding: 9px 11px; font-size: 14.5px; font-weight: 500; color: var(--ink);
  text-decoration: none; border-radius: 8px; position: relative; white-space: nowrap;
}
.menu a::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.menu a:hover::after, .menu a.active::after { transform: scaleX(1); }
.menu a.active { color: var(--navy); }
.nav .btn { padding: 12px 20px; }
.burger {
  display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; cursor: pointer; place-items: center;
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px;
  position: relative; transition: transform .25s, background .25s;
}
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.nav.open .burger span { background: transparent; }
.nav.open .burger span::before { transform: translateY(6px) rotate(45deg); }
.nav.open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(79,174,227,.28), transparent 60%),
    radial-gradient(40% 50% at 0% 100%, rgba(227,162,26,.12), transparent 70%);
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding-block: clamp(56px, 7vw, 96px) clamp(64px, 8vw, 110px);
}
.hero-copy { display: grid; gap: 24px; min-width: 0; animation: rise .8s ease both; }
.hero .eyebrow { color: #A9D8F4; }
.hero h1 { font-size: clamp(40px, 5.6vw, 70px); line-height: 1.04; }
.hero h1 em { font-style: italic; color: var(--gold); font-weight: 500; }
.hero-sub { font-size: clamp(16px, 1.5vw, 18.5px); color: #C9D8EE; max-width: 56ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero-domains {
  display: flex; flex-wrap: wrap; gap: 6px 10px; padding-top: 22px; margin-top: 6px;
  border-top: 1px solid rgba(255,255,255,.14);
  font: 500 12.5px/1.6 var(--f-label); letter-spacing: .04em; color: #9FB6D8;
}
.hero-domains i { font-style: normal; color: var(--gold); }
.hero-visual { position: relative; min-width: 0; animation: rise .9s .1s ease both; }
.hero-main {
  border-radius: 22px 22px 22px 120px; overflow: hidden; aspect-ratio: 4/4.6; max-width: 100%;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.hero-main img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.hero-inset {
  position: absolute; left: -40px; bottom: 36px; width: 46%; aspect-ratio: 16/10;
  border-radius: 14px; overflow: hidden; border: 5px solid var(--navy);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.7);
}
.hero-inset img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; right: -14px; top: 28px; background: #fff; color: var(--navy);
  border-radius: 14px; padding: 12px 16px; display: flex; gap: 12px; align-items: center;
  box-shadow: var(--shadow); font-size: 13px; line-height: 1.3;
}
.hero-badge img { width: 40px; height: 40px; }
.hero-badge b { display: block; font: 700 15px/1.2 var(--f-display); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Institut ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about-photos { position: relative; padding: 0 0 70px 0; }
.about-photos .p1 { border-radius: var(--r); overflow: hidden; aspect-ratio: 4/3; }
.about-photos .p2 {
  position: absolute; right: -6%; bottom: 0; width: 55%; aspect-ratio: 4/3;
  border-radius: var(--r); overflow: hidden; border: 6px solid #fff; box-shadow: var(--shadow);
}
.about-photos img { width: 100%; height: 100%; object-fit: cover; }
.about-photos .tag {
  position: absolute; left: 16px; top: 16px; background: rgba(10,42,94,.88); color: #fff;
  font: 500 11px/1 var(--f-label); letter-spacing: .1em; text-transform: uppercase; padding: 8px 10px; border-radius: 6px;
}
.about-copy { display: grid; gap: 22px; min-width: 0; }
.mission {
  margin: 6px 0 0; padding: 22px 24px; background: var(--sky-soft); border-radius: var(--r);
  font: 500 italic 19px/1.5 var(--f-display); color: var(--navy); position: relative;
}
.mission small { display: block; font: 500 11px/1 var(--f-label); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); margin-bottom: 10px; }
.facts { display: flex; flex-wrap: wrap; gap: 12px 36px; padding: 6px 0 4px; }
.facts div { display: grid; }
.facts b { font: 600 34px/1 var(--f-display); color: var(--navy); }
.facts span { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }

/* ---------- Domaines ---------- */
.domains { background: var(--mist); }
.domain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.domain {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 30px 28px 28px;
  display: grid; gap: 14px; align-content: start; min-width: 0;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.domain:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #C5D6EA; }
.domain .ic {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--sky-soft); color: var(--navy); transition: background .25s, color .25s;
}
.domain:hover .ic { background: var(--navy); color: var(--gold); }
.domain .ic svg { width: 28px; height: 28px; }
.domain h3 { font-size: 23px; color: var(--navy); }
.domain p { color: var(--ink-2); font-size: 15.5px; }

/* ---------- Niveaux ---------- */
.levels { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.levels .h2 { color: #fff; }
.levels .lead { color: #C3D3EA; }
.levels .eyebrow { color: #A9D8F4; }
.ladder { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; align-items: end; }
.step {
  border-radius: 14px 14px 4px 4px; padding: 22px 20px; display: grid; align-content: space-between; gap: 18px;
  background: linear-gradient(180deg, rgba(79,174,227,.22), rgba(79,174,227,.08));
  border: 1px solid rgba(169,216,244,.25); min-width: 0;
  transition: background .25s, transform .25s;
}
.step:hover { background: linear-gradient(180deg, rgba(79,174,227,.36), rgba(79,174,227,.12)); transform: translateY(-3px); }
.step:nth-child(1) { min-height: 190px; } .step:nth-child(2) { min-height: 230px; }
.step:nth-child(3) { min-height: 270px; } .step:nth-child(4) { min-height: 310px; }
.step:nth-child(5) { min-height: 350px; background: linear-gradient(180deg, rgba(227,162,26,.35), rgba(227,162,26,.1)); border-color: rgba(227,162,26,.5); }
.step .n { font: 500 12px/1 var(--f-label); letter-spacing: .12em; color: #A9D8F4; }
.step:nth-child(5) .n { color: var(--gold); }
.step h3 { font-size: clamp(19px, 1.8vw, 24px); color: #fff; }
.step p { font-size: 13.5px; color: #B9CBE4; margin-top: 8px; }
.levels-note { margin-top: 22px; font-size: 13.5px; color: #93A9CB; display: flex; gap: 8px; align-items: center; }
.levels-note::before { content: "i"; width: 18px; height: 18px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; font: 600 11px/1 var(--f-label); flex-shrink: 0; }

/* ---------- Pourquoi ---------- */
.why-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.why-item { display: grid; gap: 8px; padding-top: 18px; border-top: 2px solid var(--line); min-width: 0; }
.why-item:hover { border-top-color: var(--gold); }
.why-item h3 { font-size: 20px; color: var(--navy); }
.why-item p { font-size: 15px; color: var(--ink-2); }
.why-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; position: sticky; top: 110px; }
.why-photos figure { margin: 0; border-radius: var(--r); overflow: hidden; }
.why-photos figure:first-child { grid-column: 1 / -1; aspect-ratio: 16/10; }
.why-photos figure:not(:first-child) { aspect-ratio: 1; }
.why-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.why-photos figure:hover img { transform: scale(1.04); }

/* ---------- Formation pratique ---------- */
.practice { position: relative; color: #fff; min-height: 560px; display: grid; align-items: end; overflow: hidden; }
.practice > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.practice::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(10,42,94,.94) 0%, rgba(10,42,94,.78) 38%, rgba(10,42,94,.15) 75%, rgba(10,42,94,0) 100%);
}
.practice .wrap { position: relative; z-index: 2; width: 100%; padding-block: clamp(64px, 9vw, 110px); }
.practice-box { max-width: 560px; display: grid; gap: 22px; }
.practice .eyebrow { color: #A9D8F4; }
.practice h2 { font-size: clamp(36px, 5vw, 60px); line-height: 1.05; }
.practice h2 span { display: block; }
.practice h2 span:nth-child(2) { color: var(--sky); }
.practice h2 span:nth-child(3) { color: var(--gold); font-style: italic; font-weight: 500; }
.practice p { color: #D4E1F2; font-size: 17px; }
.pillars { display: flex; flex-wrap: wrap; gap: 10px; }
.pillars span {
  font: 500 12.5px/1 var(--f-label); letter-spacing: .04em; padding: 10px 14px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
}

/* ---------- Vie étudiante ---------- */
.life-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.life-card { display: grid; gap: 16px; align-content: start; min-width: 0; }
.life-card figure { margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 4/3.2; position: relative; }
.life-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.life-card:hover img { transform: scale(1.05); }
.life-card h3 { font-size: 22px; color: var(--navy); }
.life-card p { font-size: 15px; color: var(--ink-2); }
.life-card .k { font: 500 11px/1 var(--f-label); letter-spacing: .12em; text-transform: uppercase; color: var(--sky); }

/* ---------- Admissions ---------- */
.admissions { background: var(--mist); }
.adm-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.adm-side { display: grid; gap: 22px; position: sticky; top: 110px; min-width: 0; }
.adm-steps { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 0; counter-reset: s; }
.adm-steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.adm-steps li::before {
  content: counter(s); width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: var(--gold);
  display: grid; place-items: center; font: 600 13px/1 var(--f-label);
}
.adm-steps b { display: block; color: var(--navy); }
.adm-steps span { font-size: 14.5px; color: var(--ink-2); }
.acc { display: grid; gap: 12px; min-width: 0; }
.acc details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.acc details[open] { border-color: #BCD0E8; box-shadow: var(--shadow); }
.acc summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 20px 22px;
  font: 600 18px/1.3 var(--f-display); color: var(--navy);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--sky-soft); display: grid; place-items: center; flex-shrink: 0; }
.acc summary .ico svg { width: 20px; height: 20px; }
.acc summary::after {
  content: ""; margin-left: auto; width: 10px; height: 10px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy);
  transform: rotate(45deg) translateY(-3px); transition: transform .25s; flex-shrink: 0;
}
.acc details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.acc .body { padding: 0 22px 22px 74px; color: var(--ink-2); font-size: 15.5px; display: grid; gap: 12px; }
.acc .body ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.tbc {
  display: inline-flex; align-items: center; gap: 6px; font: 500 11.5px/1 var(--f-label); letter-spacing: .04em;
  color: #8A5A00; background: var(--gold-soft); border: 1px dashed #D9A541; padding: 6px 9px; border-radius: 6px;
}
.fees-wrap { overflow-x: auto; }
.fees { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 420px; }
.fees th { text-align: left; font: 500 11px/1 var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); padding: 10px 8px; border-bottom: 2px solid var(--line); }
.fees td { padding: 12px 8px; border-bottom: 1px solid var(--line); }
.fees td:first-child { color: var(--navy); font-weight: 600; }

/* Formulaires */
.form { display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 13px; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  font: 400 15.5px/1.4 var(--f-body); color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(79,174,227,.18); }
.form-note { font-size: 13px; color: var(--ink-2); }
.form-status { font-size: 14px; font-weight: 600; color: #1C7A45; }
.apply-card { background: #fff; border-radius: 18px; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 18px; margin-top: 12px; }
.apply-card h3 { font-size: 24px; color: var(--navy); }

/* ---------- Actualités ---------- */
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.news { display: grid; grid-template-rows: auto 1fr; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: #fff; min-width: 0; transition: transform .25s, box-shadow .25s; }
.news:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news figure { margin: 0; aspect-ratio: 16/11; overflow: hidden; position: relative; }
.news img { width: 100%; height: 100%; object-fit: cover; }
.news .cat {
  position: absolute; left: 12px; top: 12px; background: #fff; color: var(--navy);
  font: 500 10.5px/1 var(--f-label); letter-spacing: .1em; text-transform: uppercase; padding: 7px 9px; border-radius: 6px;
}
.news .txt { padding: 18px 18px 20px; display: grid; gap: 10px; align-content: start; }
.news h3 { font-size: 18.5px; color: var(--navy); line-height: 1.25; }
.news p { font-size: 14px; color: var(--ink-2); }
.news time { font: 500 11.5px/1 var(--f-label); color: var(--ink-2); letter-spacing: .04em; }

/* ---------- Galerie ---------- */
.gallery { background: var(--navy); }
.gallery .h2 { color: #fff; }
.gallery .lead { color: #C3D3EA; }
.gallery .eyebrow { color: #A9D8F4; }
.g-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 12px; }
.g-item { position: relative; border: 0; padding: 0; margin: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--navy-2); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .3s; }
.g-item:hover img { transform: scale(1.05); }
.g-item span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; text-align: left;
  background: linear-gradient(transparent, rgba(5,20,46,.85)); color: #fff; font-size: 13.5px; font-weight: 500;
}
.g-item.wide { grid-column: span 2; } .g-item.tall { grid-row: span 2; } .g-item.big { grid-column: span 2; grid-row: span 2; }
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(4,14,34,.94); display: grid; place-items: center;
  padding: max(20px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(20px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.lightbox figure { margin: 0; display: grid; gap: 12px; max-width: 1100px; width: 100%; }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 10px; }
.lightbox figcaption { color: #C9D8EE; text-align: center; font-size: 14px; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; font-size: 22px; cursor: pointer; display: grid; place-items: center; }
.lb-close { top: max(18px, env(safe-area-inset-top, 0px)); right: max(18px, env(safe-area-inset-right, 0px)); }
.lb-prev { left: max(14px, env(safe-area-inset-left, 0px)); top: 50%; } .lb-next { right: max(14px, env(safe-area-inset-right, 0px)); top: 50%; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 64px); }
.contact-info { display: grid; gap: 26px; align-content: start; min-width: 0; }
.c-list { display: grid; gap: 0; }
.c-row { display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.c-row .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--sky-soft); color: var(--navy); display: grid; place-items: center; }
.c-row .ico svg { width: 22px; height: 22px; }
.c-row small { display: block; font: 500 11px/1 var(--f-label); letter-spacing: .12em; text-transform: uppercase; color: var(--sky); margin-bottom: 8px; }
.c-row div { min-width: 0; }
.c-row a { color: var(--navy); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.c-row a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.c-row p { color: var(--ink); }
.btn-wa { background: #1FA855; color: #fff; }
.btn-wa:hover { background: #18914A; }
.map { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/9; background: var(--mist); max-width: 100%; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact-form { background: var(--mist); border-radius: 18px; padding: clamp(22px, 3vw, 36px); display: grid; gap: 18px; align-content: start; min-width: 0; }
.contact-form h3 { font-size: 26px; color: var(--navy); }

/* ---------- Footer ---------- */
.footer { background: #071E45; color: #AFC2DE; padding-top: 72px; }
.f-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.f-grid > div { min-width: 0; }
.footer .brand-txt b { color: #fff; }
.footer .brand-txt span { color: #8EA6C9; }
.footer p { font-size: 14.5px; margin-top: 18px; max-width: 36ch; }
.footer h4 { font: 500 11.5px/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 6px 0 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14.5px; }
.footer a { text-decoration: none; color: #D2DEEF; }
.footer a:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.socials a:hover { background: var(--sky); border-color: var(--sky); }
.socials svg { width: 18px; height: 18px; }
.f-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; }

.wa-float {
  position: fixed; z-index: 40; right: max(18px, calc(env(safe-area-inset-right, 0px) + 12px)); bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 12px));
  width: 56px; height: 56px; border-radius: 50%; background: #1FA855; color: #fff; display: grid; place-items: center;
  box-shadow: 0 14px 30px -10px rgba(31,168,85,.6); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .nav .brand-txt span { display: none; }
  .menu a { padding: 9px 8px; font-size: 14px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .burger { display: grid; }
  .nav .nav-cta { display: none; }
  .menu {
    position: fixed; left: 0; right: 0; top: calc(76px + env(safe-area-inset-top, 0px)); bottom: 0; margin: 0;
    flex-direction: column; gap: 2px; background: #fff;
    padding: 18px max(20px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
    opacity: 0; transform: translateY(-8px); transition: opacity .25s ease, transform .25s ease, visibility .25s; overflow-y: auto; visibility: hidden;
  }
  .nav.open .menu { opacity: 1; transform: none; visibility: visible; }
  .menu a { font: 600 22px/1.2 var(--f-display); color: var(--navy); padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .menu a::after { display: none; }
  .menu .m-cta { display: block; margin-top: 20px; }
  .menu .m-cta a { border: 0; font: 600 16px/1 var(--f-body); color: var(--navy); }
  .hero-grid, .about-grid, .why-grid, .adm-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin-left: 40px; }
  .section-head.split { grid-template-columns: 1fr; }
  .domain-grid, .life-grid { grid-template-columns: repeat(2, 1fr); }
  .ladder { grid-template-columns: 1fr; }
  .step, .step:nth-child(n) { min-height: 0; border-radius: 12px; display: grid; grid-template-columns: 60px 1fr; align-items: start; }
  .step:nth-child(1) { margin-right: 32%; } .step:nth-child(2) { margin-right: 24%; } .step:nth-child(3) { margin-right: 16%; } .step:nth-child(4) { margin-right: 8%; }
  .why-photos, .adm-side { position: static; }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .g-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
}
@media (min-width: 981px) { .menu .m-cta { display: none; } }
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-inner { height: 68px; }
  .menu { top: calc(68px + env(safe-area-inset-top, 0px)); }
  .brand img { width: 42px; height: 42px; }
  .brand-txt span { display: none; }
  .hero-visual { margin-left: 0; }
  .hero-inset { left: 12px; bottom: 12px; width: 50%; border-width: 4px; }
  .hero-badge { right: 10px; top: 10px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .domain-grid, .life-grid, .why-list, .news-grid, .f-grid { grid-template-columns: 1fr; }
  .about-photos .p2 { right: 0; }
  .step, .step:nth-child(n) { margin-right: 0 !important; grid-template-columns: 44px 1fr; padding: 18px 16px; }
  .practice::before { background: linear-gradient(180deg, rgba(10,42,94,.55) 0%, rgba(10,42,94,.92) 55%); }
  .practice { min-height: 0; }
  .form .row { grid-template-columns: 1fr; }
  .acc .body { padding: 0 18px 20px 18px; }
  .g-grid { grid-auto-rows: 150px; }
  .g-item.big { grid-row: span 2; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Ajouts plaquette officielle ---------- */
.hero-agree { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: #DCE8F7; font-weight: 500; }
.hero-agree svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; }
.official { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.official > div { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 4px; min-width: 0; }
.official small { font: 500 10.5px/1 var(--f-label); letter-spacing: .12em; text-transform: uppercase; color: var(--sky); }
.official b { font-size: 14px; color: var(--navy); overflow-wrap: anywhere; }
.official span { font-size: 13.5px; color: var(--ink-2); }
.motto { font: 500 italic 19px/1.4 var(--f-display); color: var(--navy); border-left: 3px solid var(--gold); padding-left: 14px; }
.cond { list-style: none; padding: 0 !important; display: grid; gap: 0 !important; }
.cond li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cond li:last-child { border-bottom: 0; }
.cond b { color: var(--navy); }
.docs { margin: 0; padding-left: 20px; display: grid; gap: 7px; }
.docs li::marker { color: var(--sky); font-weight: 700; }
.fee-chips, .pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fee-chips div, .pay div { background: var(--mist); border-radius: 12px; padding: 14px; display: grid; gap: 4px; min-width: 0; }
.fee-chips span, .pay span { font-size: 13px; color: var(--ink-2); }
.fee-chips b, .pay b { font: 600 22px/1.1 var(--f-display); color: var(--navy); font-variant-numeric: tabular-nums; }
.fee-chips small { font: 500 11px/1 var(--f-label); color: var(--ink-2); }
.pay b { color: var(--navy); }
.pay div:first-child { background: var(--navy); } .pay div:first-child b { color: var(--gold); } .pay div:first-child span { color: #C9D8EE; }
.fees td { font-variant-numeric: tabular-nums; }
.fees td:not(:first-child), .fees th:not(:first-child) { text-align: right; }
.practical { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 40px; }
.pr-item { background: var(--mist); border-radius: var(--r); padding: 24px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.pr-item .k { font: 500 11px/1 var(--f-label); letter-spacing: .12em; text-transform: uppercase; color: var(--sky); }
.pr-item p { font-size: 15px; color: var(--ink-2); }
.swatches { display: flex; gap: 8px; }
.swatches i { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.hours { list-style: none; padding: 0; margin: 0; display: grid; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.hours li:last-child { border-bottom: 0; }
.hours b { color: var(--navy); font-weight: 600; } .hours span { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.phones { display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (max-width: 640px) {
  .official, .practical { grid-template-columns: 1fr; }
  .fee-chips, .pay { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .fee-chips b, .pay b { font-size: 18px; }
}
