/* FONTS:START polices auto-hébergées (aucun appel à Google Fonts) */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/dmsans-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/dmsans-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/dmsans-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/dmsans-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/dmsans-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/dmsans-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/dmsans-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/dmsans-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/fraunces-latin-ext-italic.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/fraunces-latin-italic.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/fraunces-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/fraunces-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/fraunces-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/fraunces-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/fraunces-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/fraunces-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/fraunces-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/fraunces-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* FONTS:END */
/* =========================================================================
   SEGAO GROUPE — Sécurité · Propreté · Formation
   Design system : 2 directions artistiques, couleurs d'origine conservées
   - Sécurité  : marine #003250 + violet #6400C7 (DA "protection")
   - Formation : violet #6400C7 + marine #003250 (même famille, violet en tête)
   - Propreté  : orange #FF5126 + pointe citron vert (DA "fraîcheur")
   ========================================================================= */

/* ---------- Reset ---------- */
*,*::before,*::after{box-sizing:border-box}
*{margin:0}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{min-height:100vh;line-height:1.6;-webkit-font-smoothing:antialiased;
  font-family:var(--font-body);color:var(--ink);background:var(--bg);
  overflow-x:hidden}
img,picture,video,canvas,svg{display:block;max-width:100%}
input,button,textarea,select{font:inherit;color:inherit}
button{cursor:pointer;background:none;border:0}
a{color:inherit;text-decoration:none}
ul{list-style:none;padding:0}
h1,h2,h3,h4{line-height:1.08;font-weight:700;letter-spacing:-.01em}

/* ---------- Tokens partagés ---------- */
:root{
  --font-body:"DM Sans",system-ui,sans-serif;
  --font-serif:"Fraunces",Georgia,"Times New Roman",serif; /* titres éditoriaux */
  --font-label:"DM Sans",system-ui,sans-serif;             /* labels / boutons / nav */
  --maxw:1180px;
  --gut:clamp(1.2rem,4vw,2.4rem);
  --s-1:.5rem;--s-2:1rem;--s-3:1.5rem;--s-4:2rem;--s-5:3rem;--s-6:4.5rem;--s-7:7rem;
  --sec-pad:clamp(4.5rem,10vw,8rem);
  --rad:3px;--rad-lg:5px;--rad-sm:2px;
  --ease:cubic-bezier(.22,.61,.36,1);
  --ease-out:cubic-bezier(.16,1,.3,1);
  --shadow:0 20px 48px -34px rgba(8,20,30,.42);
  --shadow-soft:0 10px 30px -26px rgba(8,20,30,.32);
  --maxline:64ch;
}
h1,h2,h3,h4{font-feature-settings:"ss01";letter-spacing:-.015em}

/* ====================== DA : ACCUEIL GROUPE (sombre) ====================== */
body.u-groupe{
  --bg:#081520;--bg-2:#0c2131;--surface:#102a3b;--surface-2:#0a1d2a;
  --ink:#eef4f7;--muted:#9db2bf;--line:rgba(255,255,255,.1);--line-2:rgba(255,255,255,.16);
  --brand:#6400C7;--brand-2:#8a3df0;--on-brand:#fff;
  --sec-col:#8a3df0;--net-col:#ff5126;--form-col:#17c0b3;
  --font-head:var(--font-serif);
}

/* ====================== DA : SÉCURITÉ (marine + violet) ====================== */
body.u-securite{
  --bg:#ffffff;--bg-2:#f4f7f9;--surface:#ffffff;--surface-2:#0b2634;
  --ink:#141a1f;--muted:#5a6672;--line:#e3e9ee;--line-2:#d2dbe2;
  --brand:#003250;--brand-2:#064b74;--accent:#6400C7;--accent-2:#7a1fe0;--on-brand:#fff;
  --ink-dark:#eaf2f7;--muted-dark:#a7bccb;
  --font-head:var(--font-serif);--rad:2px;--rad-lg:3px;
}

/* ====================== DA : FORMATION (violet en tête) ====================== */
body.u-formation{
  --bg:#ffffff;--bg-2:#f6f3fc;--surface:#ffffff;--surface-2:#190b33;
  --ink:#171320;--muted:#60596e;--line:#eae4f3;--line-2:#ddd3ee;
  --brand:#6400C7;--brand-2:#7d26e6;--accent:#003250;--accent-2:#064b74;--on-brand:#fff;
  --ink-dark:#efeafb;--muted-dark:#b9abd6;
  --font-head:var(--font-serif);--rad:2px;--rad-lg:3px;
}

/* ====================== DA : PROPRETÉ (orange + citron) ====================== */
body.u-proprete{
  --bg:#ffffff;--bg-2:#f8f8f2;--surface:#ffffff;--surface-2:#16180f;
  --ink:#16180f;--muted:#5f6657;--line:#e9e9df;--line-2:#dcdcce;
  --brand:#ff5126;--brand-2:#ff6a3d;--accent:#111;--accent-2:#000;--on-brand:#fff;
  --pop:#9bcf28;--pop-soft:#eef6d6;
  --ink-dark:#f4f5ea;--muted-dark:#c2c6b4;
  --font-head:var(--font-serif);--rad:3px;--rad-lg:4px;
}

/* ---------- Layout ---------- */
.wrap{width:min(100% - var(--gut)*2,var(--maxw));margin-inline:auto}
.wrap-wide{width:min(100% - var(--gut)*2,1360px);margin-inline:auto}
section{padding-block:var(--sec-pad)}
.section-dark{background:var(--surface-2);color:var(--ink-dark)}
.section-tint{background:var(--bg-2)}
.lead{font-size:clamp(1.05rem,1.6vw,1.22rem);color:var(--muted);max-width:var(--maxline)}
.section-dark .lead{color:var(--muted-dark)}

/* ---------- Eyebrow / headings ---------- */
.eyebrow{display:inline-flex;align-items:center;gap:.6rem;font-family:var(--font-label);
  font-size:.72rem;font-weight:600;letter-spacing:.2em;text-transform:uppercase;
  color:var(--brand)}
.eyebrow::before{content:"";width:28px;height:2px;background:var(--brand);border-radius:2px}
body.u-proprete .eyebrow{color:var(--brand-2)}
.section-dark .eyebrow{color:var(--on-brand)}
.h-xl{font-family:var(--font-head);font-size:clamp(2.1rem,5.2vw,3.7rem)}
.h-lg{font-family:var(--font-head);font-size:clamp(1.7rem,3.6vw,2.6rem)}
.h-md{font-family:var(--font-head);font-size:clamp(1.25rem,2.2vw,1.6rem)}
.title-block{max-width:720px;margin-bottom:var(--s-5)}
.title-block .lead{margin-top:1.1rem}

/* ---------- Boutons ---------- */
.btn{display:inline-flex;align-items:center;gap:.6rem;font-family:var(--font-label);
  font-weight:600;font-size:.95rem;letter-spacing:.01em;padding:.95em 1.6em;border-radius:var(--rad-sm);
  transition:background .25s var(--ease),color .25s,border-color .25s,transform .25s var(--ease)}
.btn svg{width:18px;height:18px}
.btn-primary{background:var(--brand);color:var(--on-brand)}
.btn-primary:hover{background:var(--brand-2);transform:translateY(-1px)}
.btn-accent{background:var(--accent);color:#fff}
body.u-proprete .btn-accent{background:var(--pop);color:#1b2007}
.btn-accent:hover{transform:translateY(-1px)}
.btn-ghost{border:1px solid var(--line-2);color:var(--ink)}
.btn-ghost:hover{border-color:var(--brand);color:var(--brand)}
.section-dark .btn-ghost,.hero .btn-ghost{border-color:rgba(255,255,255,.35);color:#fff}
.section-dark .btn-ghost:hover,.hero .btn-ghost:hover{background:rgba(255,255,255,.12);border-color:#fff;color:#fff}
.btn-arrow{position:relative}
.btn-arrow svg{transition:transform .35s var(--ease)}
.btn-arrow:hover svg{transform:translateX(4px)}

/* ---------- Header ---------- */
.site-head{position:fixed;inset:0 0 auto;z-index:60;padding-block:.85rem;
  transition:background .4s var(--ease),box-shadow .4s,border-color .4s;
  border-bottom:1px solid transparent}
.site-head.is-solid{background:color-mix(in srgb,var(--bg) 97%,transparent);
  border-color:var(--line);box-shadow:0 10px 30px -24px rgba(0,0,0,.5)}
.head-inner{display:flex;align-items:center;justify-content:space-between;gap:1.2rem}
.brand{display:flex;align-items:center;gap:.7rem;font-family:var(--font-label);
  font-weight:700;font-size:1.16rem;letter-spacing:.14em;color:var(--ink)}
.hero-dark .brand,.site-head:not(.is-solid) .brand{color:#fff}
.brand .mark{width:38px;height:38px;flex:none}
/* Vrais logos de marque (emblème) à la place du bouclier SVG, par univers */
body.u-securite .brand svg.mark,
body.u-proprete .brand svg.mark{display:none}
body.u-securite .brand::before,
body.u-proprete .brand::before{content:"";width:44px;height:40px;flex:none;
  background-position:center;background-repeat:no-repeat;background-size:contain}
body.u-securite .brand::before{background-image:url(../img/logo-sec-emblem.png)}
body.u-proprete .brand::before{background-image:url(../img/logo-prop-emblem.png)}
.brand small{display:block;font-size:.6rem;font-weight:600;letter-spacing:.24em;
  text-transform:uppercase;opacity:.7;font-family:var(--font-body)}
.nav{display:flex;align-items:center;gap:.5rem}
.nav-links{display:flex;align-items:center;gap:.2rem}
.lang-switch{display:inline-flex;border:1px solid var(--line-2);border-radius:var(--rad-sm);overflow:hidden;font-family:var(--font-label)}
.site-head:not(.is-solid) .lang-switch{border-color:rgba(255,255,255,.32)}
.lang-switch button{padding:.42rem .62rem;font-size:.76rem;font-weight:600;letter-spacing:.04em;color:var(--muted);transition:background .2s,color .2s}
.site-head:not(.is-solid) .lang-switch button{color:rgba(255,255,255,.82)}
.lang-switch button + button{border-left:1px solid var(--line)}
.site-head:not(.is-solid) .lang-switch button + button{border-left-color:rgba(255,255,255,.22)}
.lang-switch button.active{background:var(--brand);color:var(--on-brand)}
.drawer .lang-switch{align-self:flex-start;margin-top:1.6rem;border-color:rgba(255,255,255,.3)}
.drawer .lang-switch button{color:rgba(255,255,255,.85);padding:.5rem .9rem;font-size:.9rem}
.nav a{font-family:var(--font-label);font-weight:500;font-size:.92rem;padding:.5rem .8rem;border-radius:var(--rad-sm);
  color:var(--ink);transition:color .25s,background .25s}
.site-head:not(.is-solid) .nav a{color:rgba(255,255,255,.88)}
.nav a:hover,.nav a.active{color:var(--brand)}
.site-head:not(.is-solid) .nav a:hover,.site-head:not(.is-solid) .nav a.active{color:#fff;background:rgba(255,255,255,.14)}
.nav .btn{padding:.6em 1.1em;font-size:.9rem}
.nav-switch{display:flex;gap:.25rem;padding:.25rem;border-radius:999px;
  background:var(--bg-2);border:1px solid var(--line)}
.site-head:not(.is-solid) .nav-switch{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.2)}
.nav-switch a{font-family:var(--font-head);font-weight:600;font-size:.82rem;padding:.42rem .9rem}
.nav-switch a[data-u="s"].active{background:#003250;color:#fff}
.nav-switch a[data-u="n"].active{background:#ff5126;color:#fff}
.nav-switch a[data-u="f"].active{background:#6400C7;color:#fff}
.burger{display:none;width:44px;height:44px;border-radius:12px;border:1px solid var(--line-2);
  align-items:center;justify-content:center;flex-direction:column;gap:5px}
.site-head:not(.is-solid) .burger{border-color:rgba(255,255,255,.3)}
.burger span{width:20px;height:2px;background:currentColor;color:var(--ink);transition:.3s}
.site-head:not(.is-solid) .burger span{color:#fff}

/* mobile drawer */
.drawer{position:fixed;inset:0;z-index:70;background:var(--surface-2);color:#fff;
  padding:5.5rem var(--gut) 2.5rem;display:flex;flex-direction:column;gap:.3rem;
  transform:translateX(100%);transition:transform .5s var(--ease-out);visibility:hidden}
.drawer.open{transform:none;visibility:visible}
.drawer a{font-family:var(--font-head);font-size:1.5rem;font-weight:600;padding:.7rem 0;
  border-bottom:1px solid rgba(255,255,255,.12)}
.drawer .drawer-switch{display:flex;gap:.6rem;margin-top:1.4rem;flex-wrap:wrap}
.drawer .drawer-switch a{font-size:.95rem;border:0;padding:.6rem 1.1rem;border-radius:999px;
  background:rgba(255,255,255,.1)}
.drawer a.drawer-cta{margin-top:1.8rem;border:0;justify-content:center;font-size:1rem;
  color:var(--on-brand,#fff);background:var(--brand,#6400C7)}
.drawer-close{position:absolute;top:1.4rem;right:var(--gut);width:46px;height:46px;
  border-radius:12px;border:1px solid rgba(255,255,255,.25);font-size:1.5rem;color:#fff}

/* ---------- Hero ---------- */
.hero{position:relative;min-height:92vh;display:flex;align-items:flex-end;
  padding-block:8rem 4rem;overflow:hidden;isolation:isolate}
.hero-dark{color:#fff}
.hero-media{position:absolute;inset:0;z-index:-2;background:#0a1c27}
.hero-media img,.hero-media video{width:100%;height:100%;object-fit:cover}
.hero-media::after{content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(6,16,24,.55) 0%,rgba(6,16,24,.25) 40%,rgba(6,16,24,.92) 100%)}
body.u-proprete .hero-media::after{
  background:linear-gradient(180deg,rgba(10,10,6,.35) 0%,rgba(10,10,6,.15) 45%,rgba(10,10,6,.8) 100%)}
.hero-inner{position:relative;max-width:820px}
.hero h1{font-family:var(--font-head);font-size:clamp(2.6rem,7vw,5.2rem);line-height:1}
.hero .lead{color:rgba(255,255,255,.9);font-size:clamp(1.1rem,1.9vw,1.4rem);margin-top:1.4rem}
.hero-cta{display:flex;flex-wrap:wrap;gap:.9rem;margin-top:2.2rem}
.hero-badges{display:flex;flex-wrap:wrap;gap:1.6rem;margin-top:2.6rem;
  padding-top:1.8rem;border-top:1px solid rgba(255,255,255,.2)}
.hero-badge{display:flex;align-items:center;gap:.7rem;font-weight:500}
.hero-badge b{font-family:var(--font-head);font-size:1.5rem;display:block;line-height:1}
.hero-badge span{font-size:.82rem;color:rgba(255,255,255,.75)}
.hero-badge .ic{width:40px;height:40px;border-radius:var(--rad-sm);display:grid;place-items:center;
  background:color-mix(in srgb,var(--brand) 85%,#fff 0%);flex:none}
.hero-badge .ic svg{width:20px;height:20px;color:#fff}
.scroll-hint{display:none}
.scroll-hint .line{width:2px;height:40px;background:rgba(255,255,255,.4);overflow:hidden;position:relative}
.scroll-hint .line::after{content:"";position:absolute;inset:0;background:#fff;
  animation:scrolldot 2.1s var(--ease) infinite}
@keyframes scrolldot{0%{transform:translateY(-100%)}60%,100%{transform:translateY(100%)}}

/* ---------- Univers portals (accueil) ---------- */
.portals{display:grid;grid-template-columns:repeat(3,1fr);gap:1.3rem}
.portal{position:relative;display:flex;flex-direction:column;justify-content:flex-end;
  min-height:420px;border-radius:var(--rad-lg);overflow:hidden;isolation:isolate;
  padding:1.8rem;color:#fff;border:1px solid var(--line);background:#0f2735}
.portal img{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;
  transition:transform .9s var(--ease)}
.portal::after{content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(180deg,transparent 20%,rgba(5,12,18,.5) 55%,var(--pc,#08121a) 105%)}
.portal:hover img{transform:scale(1.07)}
.portal .p-tag{font-family:var(--font-head);font-size:.72rem;letter-spacing:.2em;
  text-transform:uppercase;color:rgba(255,255,255,.85)}
.portal h3{font-family:var(--font-head);font-size:1.8rem;margin:.4rem 0 .6rem}
.portal p{color:rgba(255,255,255,.82);font-size:.95rem;max-width:34ch}
.portal .p-go{display:inline-flex;align-items:center;gap:.5rem;margin-top:1.2rem;
  font-family:var(--font-head);font-weight:600;font-size:.9rem}
.portal .p-go .circle{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;
  background:var(--pc-accent,#fff);color:#081520;transition:transform .4s var(--ease)}
.portal:hover .p-go .circle{transform:translateX(5px)}
.portal.p-sec{--pc:#06243a;--pc-accent:#8a3df0}
.portal.p-net{--pc:#2a1006;--pc-accent:#ff5126}
.portal.p-form{--pc:#180a30;--pc-accent:#9b5cf6}
.portal .num{position:absolute;top:1.4rem;right:1.6rem;font-family:var(--font-head);
  font-size:1rem;opacity:.6}

/* ---------- Service cards ---------- */
.grid{display:grid;gap:1.3rem}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-2{grid-template-columns:repeat(2,1fr)}
.grid-4{grid-template-columns:repeat(4,1fr)}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--rad-lg);
  padding:1.9rem;transition:transform .5s var(--ease),box-shadow .5s,border-color .5s;
  position:relative;overflow:hidden}
.card:hover{transform:translateY(-6px);box-shadow:var(--shadow);border-color:color-mix(in srgb,var(--brand) 40%,var(--line))}
.card .ic{width:50px;height:50px;border-radius:var(--rad-sm);display:grid;place-items:center;
  background:color-mix(in srgb,var(--brand) 10%,transparent);color:var(--brand);margin-bottom:1.3rem;
  transition:background .4s,color .4s}
.card:hover .ic{background:var(--brand);color:var(--on-brand)}
.card .ic svg{width:26px;height:26px}
.card h3{font-family:var(--font-head);font-size:1.2rem;margin-bottom:.55rem}
.card p{color:var(--muted);font-size:.95rem}
.card .tag{display:inline-block;margin-top:1rem;font-size:.78rem;font-weight:600;
  color:var(--brand);font-family:var(--font-label);letter-spacing:.04em}
.card.card-dark{background:var(--surface-2);color:var(--ink-dark);border-color:rgba(255,255,255,.1)}
.card.card-dark p{color:var(--muted-dark)}
.card .corner{position:absolute;inset:auto -30px -30px auto;width:120px;height:120px;border-radius:50%;
  background:color-mix(in srgb,var(--brand) 9%,transparent);transition:transform .6s var(--ease)}
.card:hover .corner{transform:scale(1.5)}

/* feature photo card (service with image) */
.svc{position:relative;border-radius:var(--rad-lg);overflow:hidden;min-height:340px;
  display:flex;flex-direction:column;justify-content:flex-end;padding:1.7rem;color:#fff;isolation:isolate;background:#13222e}
.svc img{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;transition:transform .8s var(--ease)}
.svc::after{content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(180deg,transparent 30%,rgba(6,14,20,.86) 100%)}
.svc:hover img{transform:scale(1.06)}
.svc-link{position:absolute;inset:0;z-index:4}
.card .svc-link{border-radius:inherit}
.svc h3{font-family:var(--font-head);font-size:1.35rem;margin-bottom:.4rem}
.svc p{color:rgba(255,255,255,.85);font-size:.92rem}
.svc .chip{align-self:flex-start;margin-bottom:.9rem;font-family:var(--font-label);font-size:.68rem;
  letter-spacing:.16em;text-transform:uppercase;padding:.4rem .75rem;border-radius:var(--rad-sm);
  background:color-mix(in srgb,var(--brand) 88%,transparent);color:#fff}

/* ---------- Split (texte + media) ---------- */
.split{display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(2rem,5vw,4.5rem);align-items:center}
.split.rev .split-media{order:-1}
.split-media{position:relative;border-radius:var(--rad-lg);overflow:hidden;aspect-ratio:4/3;background:#13222e}
.split-media img{width:100%;height:100%;object-fit:cover}
.split-media .float{position:absolute;left:1.2rem;bottom:1.2rem;background:var(--surface);
  color:var(--ink);border-radius:var(--rad);padding:1rem 1.2rem;box-shadow:var(--shadow);
  display:flex;align-items:center;gap:.8rem;max-width:72%}
.split-media .float b{font-family:var(--font-head);font-size:1.6rem;display:block;line-height:1;color:var(--brand)}
.split-media .float span{font-size:.8rem;color:var(--muted)}
.feat-list{display:flex;flex-direction:column;gap:1.1rem;margin-top:1.8rem}
.feat-list li{display:flex;gap:.9rem;align-items:flex-start}
.feat-list .fi{width:30px;height:30px;border-radius:var(--rad-sm);background:color-mix(in srgb,var(--brand) 12%,transparent);
  color:var(--brand);display:grid;place-items:center;flex:none}
.feat-list .fi svg{width:16px;height:16px}
.feat-list b{font-family:var(--font-head);display:block;margin-bottom:.1rem}
.feat-list span{color:var(--muted);font-size:.92rem}
.section-dark .feat-list span{color:var(--muted-dark)}

/* ---------- Stats ---------- */
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:1.3rem}
.stat{text-align:center;padding:1.6rem 1rem;border-radius:var(--rad-lg);
  background:color-mix(in srgb,var(--brand) 6%,var(--surface));border:1px solid var(--line)}
.section-dark .stat{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.1)}
.stat b{font-family:var(--font-head);font-size:clamp(2.2rem,4vw,3rem);color:var(--brand);
  display:block;line-height:1}
.section-dark .stat b{color:#fff}
.stat span{font-size:.85rem;color:var(--muted);letter-spacing:.02em}
.section-dark .stat span{color:var(--muted-dark)}

/* ---------- Steps / process ---------- */
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:1.3rem;counter-reset:st}
.step{position:relative;padding-top:2.6rem}
.step::before{counter-increment:st;content:counter(st,decimal-leading-zero);
  font-family:var(--font-head);font-size:1rem;font-weight:700;color:var(--brand);
  position:absolute;top:0;left:0}
.step::after{content:"";position:absolute;top:.4rem;left:2.4rem;right:0;height:1px;background:var(--line)}
.step:last-child::after{display:none}
.step h3{font-family:var(--font-head);font-size:1.12rem;margin-bottom:.4rem}
.step p{color:var(--muted);font-size:.92rem}
.section-dark .step p{color:var(--muted-dark)}

/* ---------- Tarifs / formations list ---------- */
.course{display:grid;grid-template-columns:auto 1fr auto;gap:1.4rem;align-items:center;
  padding:1.5rem 1.7rem;border:1px solid var(--line);border-radius:var(--rad-lg);background:var(--surface);
  transition:border-color .4s,transform .4s var(--ease),box-shadow .4s}
.course:hover{border-color:var(--brand);transform:translateX(4px);box-shadow:var(--shadow-soft)}
.course .cnum{font-family:var(--font-head);font-size:1.5rem;color:var(--brand);width:2.4ch}
.course h3{font-family:var(--font-head);font-size:1.2rem;margin-bottom:.25rem}
.course p{color:var(--muted);font-size:.9rem;max-width:60ch}
.course .meta{display:flex;flex-direction:column;align-items:flex-end;gap:.3rem;text-align:right;flex:none}
.course .dur{font-family:var(--font-head);font-weight:700;color:var(--ink)}
.course .lvl{font-size:.78rem;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}

/* ---------- CTA band ---------- */
.cta-band{position:relative;border-radius:var(--rad-lg);overflow:hidden;isolation:isolate;
  padding:clamp(2.5rem,6vw,4.5rem);color:#fff;text-align:center;background:var(--surface-2)}
.cta-band::before{content:"";position:absolute;inset:0 0 auto;height:3px;background:var(--brand)}
.cta-band h2{font-family:var(--font-head);font-size:clamp(1.8rem,4vw,2.8rem);max-width:18ch;margin-inline:auto}
.cta-band p{margin:1rem auto 0;max-width:52ch;color:rgba(255,255,255,.82)}
.cta-band .hero-cta{justify-content:center;margin-top:2rem}

/* ---------- Partenaires ---------- */
.logos{display:flex;flex-wrap:wrap;gap:.8rem;justify-content:center}
.logos li{font-family:var(--font-label);font-weight:600;font-size:.9rem;letter-spacing:.02em;color:var(--muted);
  padding:.7rem 1.2rem;border:1px solid var(--line);border-radius:var(--rad-sm);background:var(--surface);
  transition:color .3s,border-color .3s}
.logos li:hover{color:var(--brand);border-color:var(--brand)}

/* ---------- Contact ---------- */
.contact-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:clamp(2rem,5vw,4rem)}
.info-list{display:flex;flex-direction:column;gap:1.3rem;margin-top:1.8rem}
.info-list li{display:flex;gap:1rem;align-items:flex-start}
.info-list .ic{width:46px;height:46px;border-radius:var(--rad-sm);background:color-mix(in srgb,var(--brand) 10%,transparent);
  color:var(--brand);display:grid;place-items:center;flex:none}
.info-list .ic svg{width:22px;height:22px}
.info-list b{font-family:var(--font-head);display:block}
.info-list a,.info-list span{color:var(--muted)}
.info-list a:hover{color:var(--brand)}
.form{background:var(--surface);border:1px solid var(--line);border-radius:var(--rad-lg);
  padding:clamp(1.6rem,3vw,2.4rem);box-shadow:var(--shadow-soft)}
.field{margin-bottom:1.1rem}
.field label{display:block;font-family:var(--font-head);font-weight:600;font-size:.85rem;margin-bottom:.45rem}
.field input,.field select,.field textarea{width:100%;padding:.85rem 1rem;border:1px solid var(--line-2);
  border-radius:var(--rad);background:var(--bg);transition:border-color .25s,box-shadow .25s}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--brand);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 18%,transparent)}
.field textarea{min-height:130px;resize:vertical}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:1.1rem}
.form .note{font-size:.8rem;color:var(--muted);margin-top:.5rem}
.form-ok{display:none;padding:1rem 1.2rem;border-radius:var(--rad);margin-bottom:1rem;
  background:color-mix(in srgb,var(--brand) 12%,transparent);color:var(--brand);font-weight:600}
.form-ok.show{display:block}

/* ---------- Footer ---------- */
.site-foot{background:var(--surface-2);color:var(--ink-dark,#eef4f7);padding-block:4rem 2rem}
body.u-groupe .site-foot{background:#050e16}
.foot-top{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:2rem}
.foot-brand .brand{color:#fff}
/* Footer : logo complet (avec slogan) pour Sécurité et Propreté, sur fond sombre */
body.u-securite .foot-brand .brand span,
body.u-proprete .foot-brand .brand span{display:none}
body.u-securite .foot-brand .brand::before,
body.u-proprete .foot-brand .brand::before{width:150px;height:116px;background-position:left center}
body.u-securite .foot-brand .brand::before{background-image:url(../img/logo-securite.png)}
body.u-proprete .foot-brand .brand::before{background-image:url(../img/logo-proprete.png)}
.foot-brand p{color:rgba(255,255,255,.65);margin-top:1rem;max-width:34ch;font-size:.92rem}
.foot-col h4{font-family:var(--font-label);font-size:.76rem;letter-spacing:.16em;text-transform:uppercase;
  color:rgba(255,255,255,.55);margin-bottom:1.1rem}
.foot-col a,.foot-col li{display:block;color:rgba(255,255,255,.8);padding:.3rem 0;font-size:.95rem}
.foot-col a:hover{color:#fff}
.foot-bottom{display:flex;flex-wrap:wrap;gap:1rem;justify-content:space-between;align-items:center;
  margin-top:3rem;padding-top:1.6rem;border-top:1px solid rgba(255,255,255,.12);
  color:rgba(255,255,255,.55);font-size:.85rem}
.foot-switch{display:flex;gap:.5rem}
.foot-switch a{padding:.4rem .9rem;border-radius:var(--rad-sm);border:1px solid rgba(255,255,255,.18);
  font-family:var(--font-label);font-size:.8rem;font-weight:600}
.foot-switch a:hover{background:rgba(255,255,255,.12)}

/* ---------- Reveal (GSAP fallback) ---------- */
[data-reveal]{opacity:0;transform:translateY(10px)}
html.no-js [data-reveal]{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  [data-reveal]{opacity:1!important;transform:none!important}
  .portal img,.svc img,.card{transition:none}
}

/* ---------- Pager / breadcrumb ---------- */
.subhero{position:relative;padding:9rem 0 3.5rem;color:#fff;isolation:isolate;overflow:hidden}
.subhero-media{position:absolute;inset:0;z-index:-2}
.subhero-media img{width:100%;height:100%;object-fit:cover}
.subhero::after{content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(180deg,rgba(6,16,24,.7),rgba(6,16,24,.86))}
.crumb{font-size:.8rem;color:rgba(255,255,255,.72);margin-bottom:.9rem;font-family:var(--font-label);
  letter-spacing:.08em;text-transform:uppercase}
.crumb a:hover{color:#fff}
.subhero h1{font-family:var(--font-head);font-size:clamp(2.2rem,5.5vw,3.8rem)}
.subhero p{color:rgba(255,255,255,.85);max-width:60ch;margin-top:1rem}

/* ---------- Utilities ---------- */
.center{text-align:center}
.mt-s{margin-top:var(--s-3)}
.cols-intro{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:end}
@media (max-width:900px){.cols-intro{grid-template-columns:1fr;gap:1.4rem}}

/* ---------- Responsive ---------- */
@media (max-width:980px){
  .nav .nav-links,.nav-switch,.nav .btn{display:none}
  .burger{display:flex}
  .split{grid-template-columns:1fr;gap:2rem}
  .split.rev .split-media{order:0}
  .portals{grid-template-columns:1fr}
  .grid-3,.grid-4{grid-template-columns:repeat(2,1fr)}
  .stats{grid-template-columns:repeat(2,1fr)}
  .steps{grid-template-columns:repeat(2,1fr)}
  .step::after{display:none}
  .contact-grid{grid-template-columns:1fr}
  .foot-top{grid-template-columns:1fr 1fr}
}
@media (max-width:560px){
  .grid-3,.grid-4,.grid-2{grid-template-columns:1fr}
  .stats{grid-template-columns:1fr 1fr}
  .steps{grid-template-columns:1fr}
  .field-row{grid-template-columns:1fr}
  .foot-top{grid-template-columns:1fr}
  .course{grid-template-columns:auto 1fr;gap:.8rem 1rem}
  .course .meta{grid-column:2;align-items:flex-start;text-align:left;flex-direction:row;gap:1rem}
  .hero{min-height:82vh;align-items:center;padding-block:7rem 3rem}
  .hero-badges{gap:1.1rem}
}

/* ====================== FORMATIONS : faits clés + programme (UV et heures) ====================== */
.facts-band{padding-block:0;border-bottom:1px solid var(--line);background:var(--bg)}
.facts{display:grid;grid-template-columns:repeat(4,1fr)}
.fact{padding:1.5rem 1.4rem 1.6rem;border-left:1px solid var(--line)}
.fact:first-child{border-left:0;padding-left:0}
.fact span{display:block;font-size:.74rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);font-family:var(--font-label);font-weight:600}
.fact b{display:block;margin-top:.4rem;font-family:var(--font-head);font-size:clamp(1.15rem,2vw,1.5rem);font-weight:600;color:var(--ink);line-height:1.2}
.prog-grid{display:grid;gap:1.4rem}
.prog{background:var(--surface);border:1px solid var(--line);border-radius:var(--rad-lg);padding:clamp(1.3rem,3vw,2rem)}
.prog-head{display:flex;justify-content:space-between;align-items:baseline;gap:1.2rem;padding-bottom:1rem;border-bottom:2px solid var(--ink)}
.prog-head h3{font-family:var(--font-head);font-size:clamp(1.15rem,2.2vw,1.45rem)}
.prog-total{flex:none;font-family:var(--font-head);font-weight:700;font-size:clamp(1.15rem,2.2vw,1.45rem);color:var(--brand);white-space:nowrap}
.prog-rows{list-style:none;padding:0;margin:0}
.prog-rows li{display:flex;justify-content:space-between;align-items:baseline;gap:1.5rem;padding:.8rem 0;border-bottom:1px solid var(--line);font-size:.97rem}
.prog-rows li span{color:var(--ink)}
.prog-rows li b{flex:none;font-family:var(--font-label);font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.prog-rows li b:empty{display:none}
.prog-note{margin-top:1rem;font-size:.86rem;color:var(--muted);max-width:76ch}
/* catalogue du pôle formation : lignes cliquables + sous-titres */
a.course{color:inherit}
.cat-title{font-family:var(--font-label);font-size:.78rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--muted);margin:2.2rem 0 .9rem;display:flex;align-items:center;gap:.9rem}
.cat-title::after{content:"";flex:1;height:1px;background:var(--line-2)}
.cat-title:first-of-type{margin-top:0}
.course .lvl b{font-weight:700;color:var(--ink)}
@media (max-width:820px){
  .facts{grid-template-columns:1fr 1fr}
  .fact{padding:1.1rem 1rem;border-left:0;border-top:1px solid var(--line)}
  .fact:nth-child(-n+2){border-top:0}
  .fact:nth-child(odd){padding-left:0}
  .fact:nth-child(even){border-left:1px solid var(--line)}
  .prog-rows li{font-size:.92rem;gap:1rem}
}

/* ====================== RGPD : bandeau cookies, pages légales ====================== */
.cookie-box{position:fixed;left:clamp(.8rem,2vw,1.6rem);bottom:clamp(.8rem,2vw,1.6rem);z-index:90;
  width:min(430px,calc(100vw - 1.6rem));background:#0b1a26;color:#eef4f7;border:1px solid rgba(255,255,255,.14);
  border-radius:4px;padding:1.3rem 1.4rem 1.4rem;box-shadow:0 24px 60px -30px rgba(0,0,0,.7);
  transform:translateY(16px);opacity:0;transition:transform .35s var(--ease),opacity .35s var(--ease)}
.cookie-box.on{transform:none;opacity:1}
.cookie-box h2{font-family:var(--font-serif);font-size:1.12rem;font-weight:600;margin-bottom:.5rem;color:#fff}
.cookie-box p{font-size:.88rem;line-height:1.55;color:rgba(238,244,247,.78);margin-bottom:1.1rem}
.cookie-box p a{color:#fff;text-decoration:underline;text-underline-offset:3px}
.cookie-actions{display:flex;gap:.6rem}
.cookie-actions button{flex:1;padding:.72rem .9rem;font-family:var(--font-label);font-size:.86rem;font-weight:600;
  border-radius:2px;border:1px solid #fff;transition:background .2s,color .2s}
/* refuser est aussi simple qu'accepter : deux boutons de même taille et de même niveau */
.cookie-actions [data-ok]{background:#fff;color:#0b1a26}
.cookie-actions [data-no]{background:transparent;color:#fff}
.cookie-actions button:hover{background:rgba(255,255,255,.86);color:#0b1a26}
.cookie-actions button:focus-visible{outline:2px solid #fff;outline-offset:3px}
@media (prefers-reduced-motion:reduce){.cookie-box{transition:none}}
@media (max-width:480px){.cookie-box{left:.6rem;right:.6rem;bottom:.6rem;width:auto}}

.legal{max-width:780px}
.legal h1{margin:.5rem 0 .6rem}
.legal .maj{font-size:.84rem;color:var(--muted);margin-bottom:1.6rem}
.legal h2{font-family:var(--font-head);font-size:1.3rem;margin:2.4rem 0 .8rem}
.legal h3{font-family:var(--font-label);font-size:1rem;margin:1.4rem 0 .4rem}
.legal p,.legal li{color:var(--muted);margin-bottom:.8rem;max-width:72ch}
.legal ul{list-style:disc;padding-left:1.2rem}
.legal a{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.legal a.btn{text-decoration:none}
.legal table{width:100%;border-collapse:collapse;margin:1rem 0 1.4rem;font-size:.92rem}
.legal th,.legal td{text-align:left;padding:.7rem .8rem .7rem 0;border-bottom:1px solid var(--line);vertical-align:top;color:var(--muted)}
.legal th{color:var(--ink);font-family:var(--font-label);font-size:.76rem;letter-spacing:.1em;text-transform:uppercase}
.legal td:first-child{color:var(--ink);font-weight:600;white-space:nowrap}
.legal .table-wrap{overflow-x:auto}
.form .note a{text-decoration:underline;text-underline-offset:3px}

.foot-legal{margin-top:2.4rem;font-size:.78rem;line-height:1.55;color:rgba(255,255,255,.55);max-width:90ch}
.foot-legal + .foot-bottom{margin-top:1.2rem}

.hp{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}

/* mention du créateur du site, discrète */
.foot-bottom > span a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.foot-bottom > span a:hover{color:#fff}
