/* =========================================================
   Mission Locale de la Dhuys — Page d'accueil
   Charte réseau des Missions Locales (UNML, sept. 2022)
   ========================================================= */

/* ---------- Polices (hébergées sur le site) ---------- */
@font-face {
    font-family: 'Akrobat';
    src: url('../fonts/akrobat-bold.woff2') format('woff2'), url('../fonts/akrobat-bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Akrobat';
    src: url('../fonts/akrobat-extrabold.woff2') format('woff2'), url('../fonts/akrobat-extrabold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* ---------- Couleurs de la charte ---------- */
:root {
    --bleu: #2897D5;
    --vert: #95C11F;
    --orange: #F39200;
    --rose: #D60B52;
    --prune: #A3195B;
    --ink: #1D1D1B;
    --ciel: #EAF4FB;
    --blanc: #fff;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-out: cubic-bezier(.2, .7, .3, 1); /* survols : doux, sans rebond */
    --titre: 'Akrobat', Arial, Helvetica, sans-serif;
    --texte: Arial, Helvetica, sans-serif;
    --inset: clamp(20px, 5vw, 72px); /* marge intérieure des blocs */
    --side: calc(12px + var(--inset)); /* marge des sections sans fond */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--texte); -webkit-font-smoothing: antialiased; }
.page { overflow-x: clip; max-width: 1920px; margin: 0 auto; }
img { max-width: 100%; }
a { color: var(--prune); }
a:hover { color: var(--rose); }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; }
.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; }
.container { margin: 0 auto; }

.eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow-line { display: flex; align-items: center; gap: 12px; }
.eyebrow-line::before { content: ''; width: 28px; height: 3px; background: currentColor; display: block; }
.h2 { margin: 14px 0 0; font: 800 clamp(40px, 5.4vw, 80px)/1 var(--titre); text-wrap: balance; }
.lead { margin: 26px auto 0; font-size: 18px; line-height: 1.5; max-width: 560px; }
.center { text-align: center; }
.mark { position: relative; display: inline-block; }
.mark svg { position: absolute; left: -2%; bottom: -.18em; width: 104%; height: .3em; overflow: visible; }

/* ---------- Barre de progression de lecture ---------- */
#scroll-progress {
    position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 100;
    transform-origin: left; transform: scaleX(0);
    background: linear-gradient(90deg, var(--orange), var(--vert), var(--bleu), var(--rose), var(--prune));
}

/* ---------- Boutons ---------- */
.btn-dark {
    display: inline-flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; font-weight: 700; font-size: 16px;
    padding: 8px 8px 8px 24px; border-radius: 999px; text-decoration: none; transition: background .3s var(--ease-out);
}
.btn-dark:hover { background: var(--prune); color: #fff; }
.btn-dark .btn-ico { width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.btn-dark .btn-ico svg { transition: transform .35s var(--ease-out); }
.btn-dark:hover .btn-ico svg { transform: translate(2px, -2px); }
.btn-dark .btn-ico.is-white { background: #fff; }
.btn-outline {
    display: inline-flex; align-items: center; gap: 10px; border: 1.5px solid var(--ink); color: var(--ink); background: #fff; font-weight: 700; font-size: 16px;
    padding: 0 24px; min-height: 56px; border-radius: 999px; text-decoration: none; transition: background .3s var(--ease-out), color .3s var(--ease-out);
}
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-outline svg { transition: transform .35s var(--ease-out); }
.btn-outline:hover svg { transform: translateX(3px); }
.btn-outline.is-sm { min-height: 52px; }

/* ---------- Filets (motif de la charte) ---------- */
.filets { position: absolute; left: 0; right: 0; height: 66px; pointer-events: none; }
.filets.is-static { position: relative; }
.filets .l { position: absolute; right: 0; height: 3px; transform-origin: right center; }
.filets .l1 { left: 58%; top: 0; background: var(--orange); }
.filets .l2 { left: 48%; top: 14px; background: var(--vert); }
.filets .l3 { left: 33%; top: 28px; background: var(--bleu); }
.filets .l4 { left: 20%; top: 42px; background: var(--rose); }
.filets .l5 { left: 12%; top: 56px; background: var(--prune); }
.filets .dot { position: absolute; left: calc(12% - 13px); top: 50.5px; width: 14px; height: 14px; border: 3px solid var(--prune); border-radius: 50%; }

/* =========================================================
   EN-TÊTE
   ========================================================= */
.hero-wrap { padding: 12px; }
.header-slot { position: relative; z-index: 30; min-height: 96px; }
.site-header {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 14px clamp(14px, 2vw, 28px); border-radius: 32px 32px 0 0;
}
.site-header .logo { display: flex; flex: none; }
.site-header .logo img { height: 68px; width: auto; display: block; transition: height .4s var(--ease); }
.main-nav { display: none; align-items: center; gap: 2px; }
.main-nav a { color: var(--ink); text-decoration: none; font-size: 15px; padding: 10px 13px; border-radius: 999px; transition: background .3s, color .3s; white-space: nowrap; }
.main-nav a:hover, .main-nav a.is-active { background: #fff; color: var(--ink); }
.main-nav a.is-active { font-weight: 700; }
.main-nav a.nav-emp { color: #fff; font-weight: 700; padding: 10px 16px; background: var(--prune); margin: 0 4px; }
.main-nav a.nav-emp:hover { background: var(--rose); color: #fff; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.btn-espace {
    display: inline-flex; align-items: center; gap: 8px; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 999px;
    padding: 11px 16px; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .3s, color .3s;
}
.btn-espace:hover { background: var(--ink); color: #fff; }
.burger { width: 46px; height: 46px; border-radius: 50%; border: none; background: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; }
.burger span { width: 18px; height: 2px; background: #fff; display: block; transition: transform .35s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
    position: absolute; top: 96px; left: 12px; right: 12px; z-index: 40; background: #fff; border-radius: 24px; padding: 10px;
    display: flex; flex-direction: column; box-shadow: 0 30px 60px -20px rgba(29, 29, 27, .35);
    opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.98); transform-origin: top center;
    transition: opacity .3s, transform .4s var(--ease), visibility 0s .4s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .4s var(--ease), visibility 0s; }
.mobile-nav a { color: var(--ink); text-decoration: none; font: 700 22px/1 var(--titre); padding: 16px; border-radius: 16px; }
.mobile-nav a.nav-emp { color: #fff; background: var(--prune); }

/* En-tête flottant au défilement */
.site-header.is-floating {
    position: fixed; top: 10px; left: 12px; right: 12px; z-index: 60; border-radius: 999px; padding: 8px 10px 8px clamp(14px, 2vw, 24px);
    background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    box-shadow: 0 18px 40px -22px rgba(29, 29, 27, .45); animation: headerIn .5s var(--ease);
}
.site-header.is-floating .logo img { height: 50px; }
.site-header.is-floating .main-nav a:hover, .site-header.is-floating .main-nav a.is-active { background: var(--ciel); }
.site-header.is-floating + .mobile-nav { position: fixed; top: 82px; }
@keyframes headerIn { from { transform: translateY(-120%); } to { transform: none; } }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; background: var(--ciel); border-radius: 32px; overflow: hidden; overflow: clip; }
.hero-deco { display: none; position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.float-card { position: absolute; }
.float-card .ph { position: relative; border-radius: 24px; background-color: #fff; background-repeat: no-repeat; box-shadow: 0 30px 60px -24px rgba(29, 29, 27, .45); }
.tag { position: absolute; top: 12px; color: var(--ink); font: 700 13px/1 var(--texte); padding: 7px 11px; border-radius: 999px; }
.tag.r { right: 12px; } .tag.l { left: 12px; }
/* Photos du hero : images/hero-photo-1.jpg, -2.jpg, -3.jpg (format 4:5, 800 x 1000 px) */
.fc1 { --w: clamp(200px, 17vw, 300px); left: 3.5%; top: 270px; width: var(--w); transform: rotate(-7deg); }
.fc2 { --w: clamp(200px, 17vw, 300px); right: 3.5%; top: 110px; width: var(--w); transform: rotate(6deg); }
.fc3 { --w: clamp(170px, 14vw, 250px); right: 12%; top: 500px; width: var(--w); transform: rotate(-4deg); }
.float-card .ph { aspect-ratio: 4/5; background-size: cover; background-position: center; }
.fc1 .ph, .hero-photos .p1 { background-image: url(../images/hero-photo-1.jpg); }
.fc2 .ph, .hero-photos .p2 { background-image: url(../images/hero-photo-2.jpg); }
.fc3 .ph, .hero-photos .p3 { background-image: url(../images/hero-photo-3.jpg); }
.arrow1 { position: absolute; left: calc(3.5% + clamp(200px, 17vw, 300px) - 10px); top: 200px; overflow: visible; }
.arrow2 { position: absolute; right: calc(12% + clamp(170px, 14vw, 250px) + 8px); top: 590px; overflow: visible; }

.hero-body { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(36px, 5vw, 80px) 20px 0; }
.hero-badge {
    margin: 0 16px; display: inline-block; text-align: center; text-wrap: balance;
    background: #fff; border-radius: 999px; padding: 7px 20px 7px 20px; box-shadow: 0 14px 30px -18px rgba(29, 29, 27, .4); rotate: -1.5deg;
    font: 700 clamp(17px, 1.5vw, 21px)/1.2 var(--titre);
}
.hero-badge .age { display: inline-block; margin: 0 4px; background: var(--vert); font: 800 clamp(20px, 1.8vw, 26px)/1 var(--titre); padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.hero h1 {
    font: 800 clamp(46px, 6.8vw, 104px)/.98 var(--titre); margin: 24px 0 0; text-wrap: balance;
    max-width: min(860px, calc(100vw - 24px - 2 * clamp(200px, 17vw, 300px) - 140px));
}
.hero h1 .w { display: inline-block; }
.hero h1 .accent { position: relative; color: var(--prune); }
.hero h1 .accent svg { position: absolute; left: -4%; bottom: -.16em; width: 108%; height: .32em; overflow: visible; }
.hero-sub { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; max-width: 540px; margin: 30px 0 0; text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
.hero-photos { display: none; justify-content: center; margin-top: 40px; }
.hero-photos .ph { position: relative; width: clamp(96px, 28vw, 170px); aspect-ratio: 4/5; border-radius: 18px; background-color: #fff; background-repeat: no-repeat; box-shadow: 0 20px 40px -18px rgba(29, 29, 27, .45); }
.hero-photos .ph .tag { top: 8px; font-size: 11px; padding: 5px 8px; }
.hero-photos .ph .tag.r { right: 8px; } .hero-photos .ph .tag.l { left: 8px; }
.hero-photos .ph { background-size: cover; background-position: center; }
.hero-photos .p1 { rotate: -6deg; }
.hero-photos .p2 { rotate: 4deg; margin: -14px -8px 0; z-index: 1; }
.hero-photos .p3 { rotate: -3deg; }

.hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 28px clamp(24px, 4vw, 64px); margin-top: clamp(44px, 5vw, 64px); }
.hero-stats .n { margin: 0; font: 800 clamp(36px, 3.2vw, 50px)/1 var(--titre); }
.hero-stats .t { margin: 6px 0 0; font-size: 14px; }

.pile { position: relative; width: 100%; max-width: 1000px; height: 170px; margin-top: clamp(28px, 4vw, 48px); }
.pill {
    --l: var(--ld); --b: var(--bd); --r: var(--rd);
    position: absolute; left: calc(var(--l) * 1%); bottom: calc(var(--b) * 1px); transform: rotate(calc(var(--r) * 1deg));
    padding: 16px 32px; font: 700 30px/1 var(--titre); border-radius: 999px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
    white-space: nowrap; box-shadow: 0 12px 24px -12px rgba(29, 29, 27, .45);
}
.pill.is-dragging { cursor: grabbing; z-index: 5; }
.c-o { background: var(--orange); color: var(--ink); }
.c-v { background: var(--vert); color: var(--ink); }
.c-b { background: var(--bleu); color: var(--ink); }
.c-r { background: var(--rose); color: #fff; }
.c-p { background: var(--prune); color: #fff; }
.c-w { background: #fff; color: var(--ink); }
.c-k { background: var(--ink); color: #fff; }

/* =========================================================
   ILS NOUS SOUTIENNENT
   ========================================================= */
.soutiens { padding: clamp(56px, 6vw, 88px) 0 clamp(72px, 8vw, 110px); overflow: hidden; overflow: clip; }
.soutiens h2 { margin: 0 0 clamp(28px, 3vw, 40px); padding: 0 20px; text-align: center; font: 800 clamp(32px, 3.6vw, 52px)/1 var(--titre); }
.marquee { display: flex; gap: 14px; width: max-content; padding: 4px 0; }
.marquee.is-running { animation: marquee 60s linear infinite; }
.marquee:hover { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }
.logo-tile {
    flex: none; display: flex; align-items: center; justify-content: center; height: clamp(76px, 8vw, 100px); width: clamp(150px, 15vw, 200px);
    padding: 12px 22px; background: #fff; border: 2.5px solid var(--c); border-radius: 20px; overflow: hidden;
}
.logo-tile img { max-height: var(--h, 56px); max-width: 100%; width: auto; object-fit: contain; }

/* =========================================================
   TERRITOIRE
   ========================================================= */
.territoire { position: relative; padding: clamp(72px, 9vw, 120px) 0; }
.territoire > .filets { top: 0; }
.territoire .container { padding: clamp(40px, 5vw, 60px) var(--side) 0; }
.communes { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.commune {
    position: relative; overflow: hidden; background: #fff; border: 2px solid var(--ciel); border-radius: 24px; padding: 28px 16px 20px;
    display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; transition: transform .5s var(--ease), box-shadow .5s;
}
.commune::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--c); transition: height .5s var(--ease); }
.commune .lg { height: 64px; width: 100%; display: flex; align-items: center; justify-content: center; }
.commune .lg img { max-height: 60px; max-width: 80%; width: auto; object-fit: contain; transition: transform .5s var(--ease); }
.commune .lg img.big { transform: scale(1.7); }
.commune .nm { font: 700 clamp(18px, 1.5vw, 21px)/1.1 var(--titre); }

.bento {
    display: grid; gap: 14px; margin-top: clamp(36px, 4vw, 56px);
    grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(220px, 15vw, 300px);
    grid-template-areas: "a a b c" "a a d d" "e f g g";
}
.bento > * { border-radius: 28px; }
.bento .ph { background-color: var(--ciel); background-size: cover; background-repeat: no-repeat; }
.b-a { grid-area: a; background-image: url(../images/hero-2.jpg); background-position: 50% 60%; }
.b-b { grid-area: b; background-image: url(../images/hero-1.jpg); background-position: 38% center; }
.b-e { grid-area: e; background-image: url(../images/hero-3.jpg); background-position: 60% center; }
.b-c { grid-area: c; background: var(--bleu); padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; }
.b-c p { margin: 0; font: 800 clamp(34px, 3.4vw, 52px)/.92 var(--titre); }
.b-f { grid-area: f; background: var(--vert); padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; }
.b-f .big { margin: 0; font: 800 clamp(40px, 4vw, 60px)/.9 var(--titre); }
.b-f .sm { margin: 10px 0 0; font-size: 15px; font-weight: 700; }
.b-g, .b-d { text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.b-g { grid-area: g; background: var(--orange); color: var(--ink); padding: clamp(22px, 2.6vw, 32px); transition: background .35s var(--ease-out); }
.b-g:hover { color: var(--ink); }
.b-g .chip { align-self: flex-start; background: #fff; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.b-g .row, .b-d .row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.b-g .big { font: 800 clamp(26px, 2.8vw, 42px)/1.02 var(--titre); text-wrap: balance; max-width: 520px; }
.b-d { grid-area: d; background: var(--prune); color: #fff; padding: clamp(20px, 2.4vw, 30px); transition: background .4s; }
.b-d:hover { background: var(--rose); color: #fff; }
.b-d .sm { font-size: 14px; font-weight: 700; }
.b-d .big { font: 800 clamp(30px, 3.2vw, 48px)/.95 var(--titre); }
.round-arrow { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; transition: transform .4s var(--ease); }
.b-g .round-arrow { background: var(--ink); color: #fff; }
.b-d .round-arrow { background: #fff; color: var(--prune); }
.b-g:hover .round-arrow, .b-d:hover .round-arrow { transform: translateX(4px); }

/* =========================================================
   ACTUALITÉS
   ========================================================= */
.actus { position: relative; margin: 0 12px; border-radius: 32px; background: var(--ciel); padding: clamp(64px, 8vw, 110px) 0 clamp(56px, 7vw, 96px); overflow: hidden; overflow: clip; }
.actus-head { padding: 0 var(--inset); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.actus-head .txt { max-width: 640px; }
.actus-head .lead { margin-left: 0; }
.actus-head .side { position: relative; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.handle { background: var(--rose); color: #fff; font: 700 20px/1 var(--titre); padding: 10px 18px; border-radius: 999px; rotate: -6deg; }
.actus-rail-wrap { position: relative; }
.actus-arrow { display: none; position: absolute; right: 6%; top: -8px; overflow: visible; }
.actus-rail {
    display: flex; gap: 16px; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    padding: 56px var(--inset) 40px; scrollbar-width: none;
}
.actus-rail::-webkit-scrollbar { display: none; }
.post {
    flex: none; width: 78vw; scroll-snap-align: center; display: block; background: #fff; border-radius: 28px; padding: 12px 12px 20px; color: var(--ink); text-decoration: none;
    box-shadow: 0 30px 60px -30px rgba(29, 29, 27, .45); transform: rotate(var(--rot)) translateY(var(--y, 0px));
    transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.post:hover { transform: rotate(0deg) translateY(calc(var(--y, 0px) - 4px)); box-shadow: 0 36px 60px -30px rgba(29, 29, 27, .5); color: var(--ink); }
.post .ph { position: relative; aspect-ratio: 1/1; border-radius: 20px; background-color: var(--ciel); background-size: cover; background-repeat: no-repeat; }
.post .tag { left: 12px; }
.post .ttl { margin: 18px 8px 0; font: 700 clamp(21px, 1.8vw, 25px)/1.15 var(--titre); text-wrap: balance; }
.post .more { margin: 12px 8px 0; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--prune); }
.post .more svg { transition: transform .4s var(--ease); }
.post:hover .more svg { transform: translate(2px, -2px); }

/* =========================================================
   ANTENNES
   ========================================================= */
.antennes { padding: clamp(72px, 9vw, 120px) var(--side); }
.ant-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; margin-top: clamp(40px, 5vw, 64px); }
.ant-list { display: flex; flex-direction: column; gap: 12px; }
.ant {
    width: 100%; text-align: left; cursor: pointer; font: inherit; color: var(--ink); border: 2px solid transparent; background: var(--ciel); border-radius: 24px;
    padding: 20px 20px 20px 22px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: start;
    transition: background .35s var(--ease-out), border-color .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.ant:hover { background: #fff; }
.ant.is-selected { background: #fff; border-color: var(--c); box-shadow: 0 24px 48px -28px rgba(29, 29, 27, .45); }
.ant .sq { width: 14px; height: 14px; border-radius: 4px; background: var(--c); margin-top: 7px; }
.ant .nm { display: block; font: 800 clamp(24px, 2vw, 28px)/1.05 var(--titre); }
.ant .ad { display: block; margin-top: 8px; font-size: 15px; line-height: 1.45; }
.ant .ad2 { display: block; font-size: 15px; line-height: 1.45; }
.ant .tel { display: block; margin-top: 4px; font-size: 15px; font-weight: 700; }
.status { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; background: #d9d9d9; color: var(--ink); font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 999px; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: block; }
.status.is-open { background: var(--vert); color: var(--ink); }
.status.is-closed { background: var(--rose); color: #fff; }
.ant .go { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; transition: background .4s, color .4s; }
.ant.is-selected .go { background: var(--c); color: var(--cf, var(--ink)); }

.map-box { position: relative; height: 540px; border-radius: 32px; overflow: hidden; overflow: clip; background: var(--ciel); border: 6px solid #fff; box-shadow: 0 30px 60px -36px rgba(29, 29, 27, .45); }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-hide {
    position: absolute; top: 14px; right: 14px; z-index: 2; background: #fff; color: var(--ink); border: none; border-radius: 999px; padding: 11px 16px;
    font: 700 14px var(--texte); cursor: pointer; box-shadow: 0 10px 24px -10px rgba(29, 29, 27, .4); transition: background .3s, color .3s;
}
.map-hide:hover { background: var(--ink); color: #fff; }
.map-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px 24px 110px; }
.map-consent .pin { width: 64px; height: 64px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 30px -14px rgba(29, 29, 27, .4); }
.map-consent .pin span { width: 20px; height: 20px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--sel, var(--bleu)); transition: background .4s; }
.map-consent .lbl { margin: 22px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.map-consent .addr { margin: 10px 0 0; max-width: 440px; font: 800 clamp(24px, 2.4vw, 32px)/1.1 var(--titre); transition: opacity .15s; text-wrap: balance; }
.map-consent .info { margin: 18px 0 0; max-width: 420px; font-size: 14px; line-height: 1.55; }
.map-consent .info a { font-weight: 700; }
.map-consent .acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
.btn-prune { background: var(--prune); color: #fff; border: none; border-radius: 999px; padding: 0 24px; min-height: 52px; font: 700 16px var(--texte); cursor: pointer; transition: background .3s, transform .3s var(--ease); }
.btn-prune:hover { background: var(--ink); }
.map-consent .filets { bottom: 28px; }
[hidden] { display: none !important; }

/* =========================================================
   DHUYS ACADÉMIE
   ========================================================= */
.academie { padding: clamp(72px, 9vw, 120px) 12px 0; }
.acad-card { position: relative; background: var(--ink); color: #fff; border-radius: 32px; padding: clamp(28px, 5vw, 72px); overflow: hidden; overflow: clip; }
.acad-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
.acad-logo { height: clamp(52px, 5vw, 72px); width: auto; display: block; }
.acad-card h2 { margin: 28px 0 0; font: 800 clamp(42px, 5.6vw, 84px)/.98 var(--titre); text-wrap: balance; }
.acad-card h2 .w { display: inline-block; }
.acad-card h2 .accent { position: relative; color: var(--orange); }
.acad-card h2 .accent svg { position: absolute; left: -2%; bottom: -.18em; width: 104%; height: .3em; overflow: visible; }
.acad-txt { margin: 28px 0 0; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; max-width: 560px; color: rgba(255, 255, 255, .88); text-wrap: pretty; }
.acad-txt strong { color: #fff; }
.btn-orange { margin-top: 32px; display: inline-flex; align-items: center; gap: 10px; background: var(--orange); color: var(--ink); font-weight: 700; font-size: 16px; padding: 0 26px; min-height: 56px; border-radius: 999px; text-decoration: none; transition: background .3s, transform .3s var(--ease); }
.btn-orange:hover { background: #fff; color: var(--ink); }
.btn-orange svg { transition: transform .3s var(--ease); }
.btn-orange:hover svg { transform: translateX(3px); }
.acad-visual { display: flex; justify-content: center; padding: 20px 20px 40px; }
.acad-photo { position: relative; width: min(100%, 460px); rotate: 3deg; }
.acad-photo .ph { aspect-ratio: 1/1; border-radius: 28px; background: #fff url(../images/insta-1.jpg) center/cover no-repeat; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.acad-badge { position: absolute; left: -22px; bottom: -26px; rotate: -7deg; background: var(--orange); color: var(--ink); border-radius: 22px; padding: 16px 22px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); }
.acad-badge .k { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.acad-badge .v { margin: 4px 0 0; font: 800 clamp(22px, 2vw, 28px)/1 var(--titre); }
.road { position: relative; margin-top: clamp(56px, 6vw, 88px); }
.road-wave { display: none; position: absolute; left: 13px; right: 0; top: -7px; width: calc(100% - 13px); height: 40px; overflow: visible; }
.road-line { position: absolute; left: 12px; top: 13px; bottom: 13px; width: 2px; background: rgba(255, 255, 255, .35); }
.road-steps { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); }
.step { position: relative; display: flex; flex-direction: row; gap: 18px; align-items: flex-start; }
.step .num { flex: none; width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 0 0 6px var(--ink); transition: transform .4s var(--ease); }
.step .t { margin: 0; font: 700 clamp(22px, 2vw, 26px)/1.1 var(--titre); }
.step .d { margin: 6px 0 0; font-size: 15px; color: rgba(255, 255, 255, .8); }

/* =========================================================
   ESPACE EMPLOYEURS
   ========================================================= */
.employeurs { padding: clamp(56px, 7vw, 96px) 12px; }
.emp-card { position: relative; background: var(--vert); color: var(--ink); border-radius: 32px; padding: clamp(28px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: center; overflow: hidden; overflow: clip; }
.emp-card h2 { margin: 24px 0 0; font: 800 clamp(42px, 5.6vw, 84px)/1 var(--titre); text-wrap: balance; }
.emp-card h2 .w { display: inline-block; }
.emp-card h2 .hl { background: #fff; padding: 0 .14em; border-radius: .18em; rotate: -1.5deg; }
.emp-pile { position: relative; height: 120px; margin-bottom: 20px; }
.emp-pile .pill { font-size: clamp(17px, 1.5vw, 21px); padding: 12px 20px; }
.emp-txt { margin: 0; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; text-wrap: pretty; }
.emp-card .btn-dark { margin-top: 28px; }
/* Photo de la section recruteurs : images/recruteur.jpg (format 3:2, 1200 x 800 px) */
.emp-photo { margin: clamp(28px, 3vw, 40px) 0 0; max-width: 560px; background: #fff; padding: 10px; border-radius: 26px; rotate: -2deg; box-shadow: 0 30px 50px -30px rgba(29, 29, 27, .5); }
.emp-photo .ph { aspect-ratio: 3/2; border-radius: 18px; background: var(--ciel) url(../images/recruteur.jpg) center/cover no-repeat; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { position: relative; margin: 0 12px; border-radius: 32px; background: var(--prune); color: #fff; padding: clamp(56px, 7vw, 110px) var(--inset); overflow: hidden; overflow: clip; }
.contact-symbol { position: absolute; right: -6%; top: -12%; width: clamp(300px, 40vw, 620px); opacity: .13; pointer-events: none; }
.contact-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.contact .eyebrow-line::before { background: var(--orange); }
.contact h2 { margin: 18px 0 0; font: 800 clamp(44px, 6vw, 92px)/.98 var(--titre); }
.contact h2 .w { display: inline-block; }
.contact-intro { margin: 24px 0 0; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; max-width: 520px; }
.contact-links { display: flex; flex-direction: column; gap: 12px; margin-top: 36px; max-width: 460px; }
.contact-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1.5px solid rgba(255, 255, 255, .45); border-radius: 22px; padding: 16px 20px; color: #fff; text-decoration: none; transition: background .3s, border-color .3s; }
.contact-link:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.contact-link .k { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.contact-link .v { display: block; margin-top: 4px; font: 800 clamp(24px, 2.2vw, 30px)/1 var(--titre); }
.contact-link .v.mail { margin-top: 6px; font: 700 clamp(18px, 1.6vw, 22px)/1.1 var(--titre); overflow-wrap: anywhere; }
.contact-link svg { flex: none; transition: transform .3s var(--ease); }
.contact-link:hover svg { transform: translateX(3px); }

.form-card { background: #fff; color: var(--ink); border-radius: 28px; padding: clamp(22px, 3vw, 40px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .5); }
.f-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.f-field { margin-top: 16px; position: relative; }
.f-row .f-field { margin-top: 0; }
.f-field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.f-field input, .f-field select, .f-field textarea {
    width: 100%; padding: 16px; border-radius: 14px; border: 2px solid transparent; background: var(--ciel); font: 16px var(--texte); color: var(--ink);
    outline: none; transition: border-color .3s, background .3s;
}
.f-field input:focus, .f-field select:focus, .f-field textarea:focus { border-color: var(--bleu); background: #fff; }
.f-field select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.f-field .chev { position: absolute; right: 18px; bottom: 21px; width: 10px; height: 10px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); pointer-events: none; }
.f-field textarea { resize: vertical; }
.f-error { margin: 16px 0 0; display: flex; gap: 12px; align-items: flex-start; border: 2px solid var(--rose); border-radius: 14px; padding: 14px 16px; font-size: 14px; line-height: 1.5; }
.f-error .i { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--rose); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.f-submit {
    margin-top: 22px; width: 100%; min-height: 62px; border: none; border-radius: 16px; background: var(--orange); color: var(--ink); font: 700 18px var(--texte);
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 12px; transition: background .3s, color .3s;
}
.f-submit:hover { background: var(--ink); color: #fff; }
.f-submit:disabled { cursor: progress; background: var(--orange); color: var(--ink); opacity: .85; }
.spinner { width: 18px; height: 18px; border: 3px solid rgba(29, 29, 27, .25); border-top-color: var(--ink); border-radius: 50%; display: inline-block; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.f-legal { margin: 16px 0 0; font-size: 12px; line-height: 1.6; }
.f-legal a { text-decoration: underline; }
.f-success { min-height: 460px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.f-success .ok { width: 76px; height: 76px; border-radius: 50%; background: var(--vert); display: flex; align-items: center; justify-content: center; animation: pop .6s var(--ease); }
.f-success .ok span { width: 16px; height: 30px; border-right: 5px solid var(--ink); border-bottom: 5px solid var(--ink); transform: rotate(45deg) translate(-3px, -3px); }
.f-success h3 { margin: 26px 0 0; font: 800 clamp(32px, 3vw, 44px)/1 var(--titre); }
.f-success p { margin: 14px 0 0; font-size: 17px; line-height: 1.55; max-width: 360px; }
.f-success .btn-outline { margin-top: 28px; min-height: 50px; font-size: 15px; padding: 0 22px; cursor: pointer; font-family: var(--texte); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* =========================================================
   PIED DE PAGE
   ========================================================= */
.site-footer { padding: clamp(64px, 8vw, 110px) 0 0; }
.foot-grid { padding: 0 var(--side); display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.foot-logo { height: clamp(110px, 11vw, 150px); width: auto; display: block; margin-left: -14px; }
.foot-desc { margin: 14px 0 0; font-size: 15px; line-height: 1.6; max-width: 400px; }
.foot-links { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.foot-links a { color: var(--ink); text-decoration: none; transition: color .3s; }
.foot-links a:hover { color: var(--prune); }
.foot-links a.strong { color: var(--prune); font-weight: 700; }
.foot-links a.strong:hover { color: var(--ink); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.socials { gap: 12px; }
.socials a {
    position: relative; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none;
    transition: background .3s var(--ease-out), color .3s var(--ease-out), transform .35s var(--ease-out);
}
.socials a svg { width: 22px; height: 22px; }
.socials a:hover { transform: translateY(-2px); }
.socials a.c-b:hover { background: var(--ink); color: #fff; }
.socials a.c-r:hover { background: var(--ink); color: #fff; }
.socials a.c-p:hover { background: var(--ink); color: #fff; }
.socials a.c-k:hover { background: var(--prune); color: #fff; }
.site-footer > .filets { margin-top: clamp(20px, 3vw, 36px); }
.foot-bottom { margin: 28px var(--side) 0; padding: 22px 0 32px; border-top: 1px solid var(--ciel); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; font-size: 13px; }
.foot-bottom .lk { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.foot-bottom a { color: var(--ink); }
.foot-bottom a:hover { color: var(--prune); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 719px) {
    .hero-badge { border-radius: 24px; padding: 10px 16px; line-height: 1.7; }
    .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pile { height: 190px; }
    .pile .pill { --l: var(--lm); --b: var(--bm); --r: var(--rm); font-size: 19px; padding: 11px 20px; }
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; grid-template-areas: "a a" "b c" "d d" "e f" "g g"; }
    .communes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-header .logo img { height: 56px; }
    .btn-espace .lbl { display: none; }
    .btn-espace { padding: 0; width: 46px; height: 46px; justify-content: center; }
}
@media (min-width: 720px) {
    .f-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .post { width: 300px; }
    .road-wave { display: block; }
    .road-line { display: none; }
    .road-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .step { flex-direction: column; }
    .foot-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); }
    .map-box { height: 520px; }
}
@media (min-width: 720px) and (max-width: 1099px) {
    .communes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "a a b" "a a c" "d d e" "f g g"; }
}
@media (max-width: 1099px) {
    .hero-photos { display: flex; }
    .hero h1 { max-width: 720px; }
}
@media (min-width: 1100px) and (max-width: 1439px) {
    .arrow2 { display: none; }
    .fc3 { right: 3%; top: 620px; }
}
@media (min-width: 1100px) {
    .main-nav { display: flex; }
    .burger, .mobile-nav { display: none; }
    .hero-deco { display: block; }
    .actus-arrow { display: block; }
    .actus-rail { justify-content: space-between; overflow: visible; gap: clamp(20px, 3vw, 48px); }
    .post { width: calc((100% - 2 * clamp(20px, 3vw, 48px)) / 3); max-width: 560px; }
    .ant-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
    .map-box { position: sticky; top: 100px; height: 640px; }
    .acad-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
    .emp-card { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
    .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
    .foot-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
}

/* =========================================================
   ANIMATIONS (actives seulement si JavaScript est chargé)
   ========================================================= */
.js [data-reveal] { opacity: 0; translate: 0 20px; transition: opacity .8s var(--ease-out), translate .9s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }
.js [data-words] .w { opacity: 0; translate: 0 .3em; transition: opacity .7s var(--ease-out), translate .8s var(--ease-out); }
.js [data-words].is-in .w { opacity: 1; translate: 0 0; }
.js [data-filets] .l { transform: scaleX(0); transition: transform 1.6s var(--ease); }
.js [data-filets] .l2 { transition-delay: .14s; }
.js [data-filets] .l3 { transition-delay: .28s; }
.js [data-filets] .l4 { transition-delay: .42s; }
.js [data-filets] .l5 { transition-delay: .56s; }
.js [data-filets] .dot { opacity: 0; transform: scale(.3); transition: opacity .6s var(--ease) 1.5s, transform .6s var(--ease) 1.5s; }
.js [data-filets].is-in .l { transform: scaleX(1); }
.js [data-filets].is-in .dot { opacity: 1; transform: none; }
.js [data-draw] { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease); }
.js [data-draw].is-in { stroke-dashoffset: 0; }
.js [data-pile] .pill { opacity: 0; }
.js [data-pile].is-in .pill { animation: pillDrop 1.3s ease-out both; animation-delay: var(--pd, 0s); }
@keyframes pillDrop {
    0% { opacity: 0; transform: translateY(-380px) rotate(calc(var(--r) * -.6deg)); }
    70% { opacity: 1; transform: translateY(0) rotate(calc(var(--r) * 1.1deg)); }
    84% { transform: translateY(-14px) rotate(calc(var(--r) * 1deg)); }
    100% { opacity: 1; transform: rotate(calc(var(--r) * 1deg)); }
}
[data-float] { animation: floaty var(--fd, 4s) ease-in-out var(--fdel, 0s) infinite alternate; }
@keyframes floaty { from { translate: 0 0; } to { translate: 0 -8px; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js [data-reveal], .js [data-words] .w, .js [data-pile] .pill { opacity: 1 !important; translate: none !important; filter: none !important; }
    .js [data-filets] .l, .js [data-filets] .dot { transform: none !important; opacity: 1 !important; }
    .js [data-draw] { stroke-dashoffset: 0 !important; }
}
