/* Accueil GMD : chargé uniquement par front-page.php */
.home-hero{position:relative;isolation:isolate;background:#0B4A8B linear-gradient(120deg,#0B4A8B 0%,#083a6e 55%,#062c55 100%);color:#fff;overflow:hidden;min-height:max(520px,72vh);display:flex;align-items:center}
.home-hero__in{position:static;width:100%;padding-block:clamp(64px,6vw,120px)}
.home-hero__txt{position:relative;z-index:1;min-width:0;container-type:inline-size}
.home-hero__tag{margin:0 0 20px;font:800 16px/1.4 Montserrat,sans-serif;letter-spacing:.01em;color:rgba(255,255,255,.85)}
.home-hero h1{color:#fff;font:800 clamp(48px,5.6vw,150px)/1 Montserrat,sans-serif;font-size:min(7.2cqi,200px);letter-spacing:-.025em;margin:0 0 .3em}
.home-hero h1 span{display:block;white-space:nowrap}.home-hero h1 em{font-style:normal;color:#F06A1D}
.home-hero__lead{font-family:Montserrat,sans-serif;font-weight:800;font-size:21px;line-height:1.45;color:#fff;max-width:46ch;margin:0}
.home-actions{display:flex;flex-wrap:wrap;gap:16px;margin-top:40px}
.home-hero .btn{font-family:Montserrat,sans-serif;font-size:18px;font-weight:800;padding:16px 30px}
.home-hero__art{position:absolute;z-index:0;top:50%;right:max(5vw,16px);width:min(52vw,92%);max-width:min(760px,86vh);height:auto;aspect-ratio:1;transform:translateY(-50%);opacity:.32;pointer-events:none;overflow:visible}
/* focus visible */
.hm-orbit{transform-box:view-box;transform-origin:300px 300px;animation:hm-spin 24s linear infinite}
.hm-orbit--a{transform:rotate(-38deg)}
.hm-orbit--b{transform:rotate(200deg);animation-duration:36s;animation-direction:reverse;animation-name:hm-spin-b}
@keyframes hm-spin{from{transform:rotate(-38deg)}to{transform:rotate(322deg)}}
@keyframes hm-spin-b{from{transform:rotate(200deg)}to{transform:rotate(560deg)}}
@media(prefers-reduced-motion:reduce){.hm-orbit{animation:none}}
.home-hero a:focus-visible{outline:3px solid #fff;outline-offset:4px}
.home-dom__row:focus-visible,.home-attest:focus-visible,.home-link:focus-visible,.home-duo .btn:focus-visible{outline:3px solid var(--blue);outline-offset:3px}

.home-intro{color:var(--muted);max-width:62ch;margin:0 0 40px}

/* Icônes : une seule couleur, bleu GMD (blanc sur fond bleu) */
.home-ic{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:var(--alt);color:var(--blue);flex:none}
.home-ic svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}

/* Domaines : liste éditoriale en lignes pleine largeur */
.home-dom{list-style:none;margin:0;padding:0;border-top:1px solid #C8D5E4}
.home-dom li{border-bottom:1px solid #C8D5E4}
.home-dom__row{display:grid;grid-template-columns:4.5rem minmax(0,1fr) auto;align-items:center;gap:28px;padding:30px 20px;text-decoration:none;color:var(--ink);transition:background-color .2s}
.home-dom__row:hover{background:#EBF0F6}
.home-dom__n{font-family:Montserrat,sans-serif;font-weight:600;font-size:18px;color:#6B87A8;letter-spacing:.02em}
.home-dom__txt{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:8px 48px;align-items:center}
.home-dom h3{margin:0;font-family:Montserrat,sans-serif;font-weight:800;font-size:clamp(22px,2.1vw,30px);line-height:1.15;color:#0B4A8B}
.home-dom__p{color:var(--muted);font-size:17px;line-height:1.5}
.home-dom__arr{width:34px;height:34px;fill:none;stroke:#0B4A8B;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;transition:transform .25s}
.home-dom__row:hover .home-dom__arr,.home-dom__row:focus-visible .home-dom__arr{transform:translateX(8px)}
@media(prefers-reduced-motion:reduce){.home-dom__arr{transition:none}}
@media(max-width:900px){.home-dom__txt{grid-template-columns:1fr}}
@media(max-width:560px){.home-dom__row{grid-template-columns:2.2rem minmax(0,1fr) auto;gap:14px;padding:22px 4px;align-items:start}.home-dom__n{font-size:15px;padding-top:5px}.home-dom__arr{width:26px;height:26px;margin-top:2px}.home-dom__p{font-size:16px}}

.home-steps{list-style:none;margin:0;padding:0;display:grid;gap:24px;grid-template-columns:repeat(4,minmax(0,1fr));counter-reset:s}
.home-steps li{position:relative;background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:28px}
.home-steps__n{display:block;margin:16px 0 6px;font:700 13px Montserrat,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.home-steps p{color:var(--muted);margin:0}

.home-cibles__list{list-style:none;margin:0;padding:0;display:grid;gap:0 48px;grid-template-columns:repeat(2,minmax(0,1fr))}
.home-cibles__list li{padding:24px 0;border-top:1px solid var(--line)}
.home-cibles__list p{color:var(--muted);margin:0}

.home-duo__in{display:grid;gap:24px;grid-template-columns:repeat(2,minmax(0,1fr))}
.home-panel{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:clamp(24px,3vw,40px)}
.home-panel h2{font-size:clamp(24px,2.6vw,30px)}
.home-panel p{color:var(--muted)}
.home-link{font-weight:700}
.home-attest{display:flex;gap:16px;align-items:center;margin-top:8px;padding:16px;border-radius:var(--r);background:var(--alt);border:1px solid var(--line);text-decoration:none;color:var(--ink)}
.home-attest:hover{border-color:var(--blue)}
.home-attest .home-ic{background:#fff}
.home-attest strong{display:block;color:var(--blue)}
.home-attest:hover strong{text-decoration:underline}
.home-attest span span{color:var(--muted);font-size:15px}


@media(max-width:1000px){
.home-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:820px){
.home-hero{min-height:0;flex-direction:column;align-items:stretch}
.home-hero__in{padding-bottom:48px}.home-hero__art{transform:translateY(-50%)}
.home-hero__txt{max-width:none}
.home-hero__art{width:min(80vw,40vh,360px);margin:0 auto 8px}
.home-cibles__list,.home-duo__in{grid-template-columns:1fr}
}
@media(max-width:600px){.home-hero h1{font-size:clamp(38px,11vw,52px)}.home-hero h1 span{white-space:normal}}
@media(max-width:767.98px){.home-hero{min-height:0}.home-hero__art{display:none}}
@media(max-width:560px){
.home-steps{grid-template-columns:1fr}
.home-actions .btn{flex:1 1 auto;text-align:center}
.home-hero__lead{font-size:18px}
}
@media(min-width:1800px){
.home-hero__art{max-width:min(960px,86vh)}
.home-hero__lead{font-size:23px}.home-hero__tag{font-size:19px}.home-hero .btn{font-size:20px;padding:18px 36px}
.home-dom__row{padding:38px 28px}.home-dom h3{font-size:34px}.home-dom__p{font-size:19px}.home-dom__n{font-size:20px}
}
@media(min-width:2400px){
.home-hero__art{max-width:min(1240px,86vh)}
.home-hero__lead{font-size:30px}.home-hero__tag{font-size:24px}.home-hero .btn{font-size:26px;padding:24px 46px}.home-actions{gap:24px;margin-top:56px}
.home-ic{width:76px;height:76px}.home-ic svg{width:40px;height:40px}
.home-steps,.home-duo__in{gap:36px}
.home-steps li{padding:40px}
.home-dom__row{grid-template-columns:6rem minmax(0,1fr) auto;padding:48px 36px;gap:40px}.home-dom h3{font-size:44px}.home-dom__p{font-size:24px}.home-dom__n{font-size:26px}.home-dom__arr{width:46px;height:46px}
.home-steps__n{font-size:16px}
.home-panel h2{font-size:38px}
}
@media(min-width:3400px){
.home-hero__art{max-width:min(1700px,86vh)}
.home-hero__lead{font-size:40px}.home-hero__tag{font-size:30px}.home-hero .btn{font-size:34px;padding:30px 60px;border-radius:16px}.home-actions{gap:32px;margin-top:72px}
.home-ic{width:100px;height:100px}.home-ic svg{width:54px;height:54px}
.home-steps,.home-duo__in{gap:48px}
.home-steps li{padding:56px;border-radius:18px}
.home-dom__row{grid-template-columns:8rem minmax(0,1fr) auto;padding:64px 48px;gap:56px}.home-dom h3{font-size:60px}.home-dom__p{font-size:32px}.home-dom__n{font-size:34px}.home-dom__arr{width:62px;height:62px}
.home-steps__n{font-size:20px}
.home-panel h2{font-size:50px}
.home-panel{padding:64px}
}

/* Accroche agrandie (taille ajustée en JS à la largeur) + effet machine à écrire sur la 2e ligne */
.home-hero .home-hero__title{font-size:min(8cqi,220px);line-height:.98}
.home-type{display:block;white-space:nowrap;min-height:1em}
.home-type__txt{display:inline}
.home-type__caret{display:inline-block;width:.06em;height:.82em;margin-left:.06em;background:#F06A1D;vertical-align:-.04em;animation:home-caret 1s steps(1) infinite}
.home-type--done .home-type__caret{animation:home-caret 1s steps(1) 3 forwards}
@keyframes home-caret{50%{opacity:0}}
@media (prefers-reduced-motion:reduce){.home-type__caret{display:none}}
/* Le curseur reste collé à la fin du texte (la règle « h1 span{display:block} » le renvoyait à la ligne) */
.home-hero h1 .home-type__txt{display:inline!important;white-space:normal}
.home-hero h1 .home-type__caret{display:inline-block!important}
/* Mobile : l'accroche est ajustée à la largeur de l'écran (une ligne par segment, sans retour à la ligne) */
@media(max-width:600px){.home-hero h1.home-hero__title>span{white-space:nowrap}.home-hero h1.home-hero__title{line-height:1}}
/* Ordinateur : « Cartographier » et « le territoire. » sur la même ligne */
.home-hero h1.home-hero__title--2l>span:nth-child(1),.home-hero h1.home-hero__title--2l>span:nth-child(2){display:inline;white-space:nowrap}
/* Mobile : « Décider l'avenir. » sur une seule ligne */
.home-hero h1 .home-type__txt{white-space:nowrap!important}
/* Ordinateur : interligne plus aéré pour l'accroche */
@media(min-width:601px){.home-hero h1.home-hero__title{line-height:1.12}}
/* Mobile : phrase sous l'accroche masquée (demande du client) */
@media(max-width:600px){.home-hero__lead{display:none}.home-hero h1.home-hero__title{margin-bottom:28px}}
/* Mobile : accroche plus grande, « Décider / l'avenir. » sur deux lignes */
@media(max-width:600px){.home-hero h1 .home-type__txt{white-space:normal!important}.home-hero h1 .home-type{white-space:normal}.home-hero h1.home-hero__title{line-height:1.02}}
