/* ============================================================
   NEREVA : Home premium, lot O.5.24, candidat du 12 octobre 2026 (mockups définitifs M1 à M8, variante B du hero mobile). Préfixe hp-.
   Hero : seule règle = conteneur graphique du mockup M1 (.hm-stage.hp-hero-stage). Sections H1 à H8 après le hero.
   Système visuel de la Golden « Transport – Fonctionnalités » : eyebrow à point, têtes centrées ou à gauche, colonnes à filet,
   section sombre #0B0C10, surfaces #fff / #F6F7F9, liens texte #2F5BE8, points cochés. Aucun JavaScript.
   ============================================================ */

/* ---------- HERO : conteneur graphique du mockup M1 (trois appareils, PNG détouré, aucun fond ajouté) ----------
   L élément .hm-stage garde ses règles d origine (position, marge, largeur de colonne, max-width 720 px sous 1101 px) : seules deux variables y sont
   posées. À l intérieur, .hp-hero-box reproduit EXACTEMENT la hauteur de l ancien conteneur (fenêtre planning 89 % de la colonne au ratio 920/818 + réserve
   basse clamp(30px, 3.6vw, 48px) ; sous 701 px : 86 % au ratio 900/871 + 26 px) par un pseudo-élément invisible aux mêmes règles de boîte : la hauteur du hero, la position de la colonne
   de texte, le dégradé et le comportement mobile restent identiques à la base, seul le contenu du conteneur change. Le visuel est centré verticalement dans
   cette boîte et déborde horizontalement : à gauche au plus 32 px dans l écart de grille (44 à 56 px : 24 px restent libres devant le texte), à droite au plus
   (largeur de fenêtre − 1200 px) / 2 − 24 px, borné à 300 px, dans la marge de la fenêtre ; sous 701 px : variante B (grille à trois appareils, voir ci-dessous). */
.hm-stage.hp-hero-stage{--hp-bl:0px;--hp-br:clamp(0px,calc((100vw - 1200px) / 2 - 24px),300px)}
.hp-hero-box{position:relative;padding-bottom:clamp(30px,3.6vw,48px)}
.hp-hero-box::before{content:"";display:block;margin:0 11% 0 0;aspect-ratio:920/818;visibility:hidden}   /* même calcul de boîte que l ancienne fenêtre planning (marge droite 11 % de la colonne, ratio 920/818) : hauteur identique au 1/64 px près, vérifié */
.hp-hero-box picture{position:absolute;inset:0 auto 0 calc(-1 * var(--hp-bl));display:flex;align-items:center;width:calc(100% + var(--hp-bl) + var(--hp-br));max-width:none}
.hp-hero-box img{display:block;width:100%;height:auto;aspect-ratio:1512/767}
.hp-hero-box .hp-hero-ph{display:none}
@media(min-width:1101px){.hm-stage.hp-hero-stage{--hp-bl:clamp(0px,calc(4vw - 24px),32px)}}
@media(max-width:1100px){.hm-stage.hp-hero-stage{--hp-br:0px}}
/* ≤ 700 px : VARIANTE B approuvée par Nereva (GO du 12 octobre 2026, logs/go4_O524_varianteB.txt) : lecture Commande chantier → Exploitation Transport → Chauffeur.
   La boîte devient une grille à deux colonnes : tablette Planning Transport (M3) sur toute la largeur en haut, téléphone Nereva Commandes (M3) en bas à gauche,
   téléphone Nereva Transports (M6) en bas à droite. Hauteur du hero adaptée (acceptée par le GO) : le pseudo-élément de hauteur de l ancien visuel est retiré.
   Largeur de composition : colonne + 16 px de débord de chaque côté (dans la marge de page de 20 px : aucun débordement de la fenêtre), bornée à 500 px et centrée
   aux largeurs intermédiaires (431 à 700 px) pour garder des appareils de taille cohérente. Colonnes proportionnelles aux rapports largeur / hauteur des deux
   découpes (333/736 et 451/924) : les deux téléphones ont exactement la même hauteur affichée. Aucun décor ajouté : le fond du hero reste visible entre les appareils. */
@media(max-width:700px){
.hm-stage.hp-hero-stage{--hp-bl:16px;--hp-br:16px}
.hp-hero-box{--hp-w:min(calc(100% + var(--hp-bl) + var(--hp-br)),500px);display:grid;grid-template-columns:4524fr 4881fr;gap:14px;align-items:start;width:var(--hp-w);margin-left:calc((100% - var(--hp-w)) / 2);padding-bottom:0}
.hp-hero-box::before{content:none}
.hp-hero-box picture{position:static;grid-column:1 / -1;display:block;width:100%;max-width:none}
.hp-hero-box picture img{width:100%;margin:0;aspect-ratio:1113/835}
.hp-hero-box .hp-hero-ph{display:block;position:static;width:100%;height:auto;max-width:none}
.hp-hero-box .hp-hero-ph.pl{aspect-ratio:333/736}
.hp-hero-box .hp-hero-ph.pr{aspect-ratio:451/924}
}

/* ---------- Composants communs ---------- */
.hp-duo,.hp-order,.hp-follow,.hp-stats,.hp-fleet,.hp-driver,.hp-sync{position:relative}
.hp-eyebrow{display:inline-flex;align-items:center;gap:9px;font-size:.75rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#2E52D6;margin:0 0 14px;max-width:none}
.hp-eyebrow .dot{width:6px;height:6px;border-radius:50%;background:#356BFD;flex:none}
.hp-eyebrow.on-dark{color:#C9D8FF}
.hp-eyebrow.on-dark .dot{background:#7FB0FF}
.hp-head{max-width:760px;margin:0 auto clamp(28px,3.6vw,44px);text-align:center}
.hp-head.left{margin-inline:0;text-align:left}
.hp-head h2{font-size:clamp(1.75rem,2.6vw,2.25rem);font-weight:700;letter-spacing:-.022em;line-height:1.08;margin:0;color:var(--ink);text-wrap:balance}
.hp-head p{font-size:1.02rem;line-height:1.65;color:rgba(12,14,18,.7);margin:14px auto 0;max-width:680px}
.hp-head.left p{margin-inline:0}
.hp-head.on-dark h2{color:#fff}
.hp-head.on-dark p{color:rgba(255,255,255,.74)}
.hp-nw{white-space:nowrap}
.hp-k{display:block;font-size:.72rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#2F5BE8;margin:0 0 10px;max-width:none}
.hp-link{display:inline-flex;align-items:center;gap:8px;font-weight:600;color:#2F5BE8}
.hp-link .ar{transition:transform .22s ease}
.hp-link:hover .ar{transform:translateX(4px)}
.hp-link:hover{text-decoration:underline;text-underline-offset:3px}
.hp-links{display:flex;flex-wrap:wrap;gap:10px 24px;align-items:center;margin:0}
.hp-points{list-style:none;margin:0 0 18px;padding:0;display:grid;gap:10px;max-width:52ch}
.hp-points li{display:grid;grid-template-columns:22px 1fr;gap:12px;align-items:start;color:#475467;line-height:1.55;font-size:1rem}
.hp-points li::before{content:"";width:22px;height:22px;border-radius:50%;background:rgba(53,107,253,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E52D6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat;margin-top:1px}
.hp-ill{margin:14px 0 0;font-size:.88rem;line-height:1.5;color:rgba(12,14,18,.56)}

/* Visuels : un seul appareil (M1 géré au hero, M7, M8) ou paires recomposées (découpes réelles) */
.hp-shot{max-width:1100px;margin:0 auto}
.hp-shot img{display:block;width:100%;height:auto}
.hp-pair{display:grid;align-items:end;max-width:1100px;margin:0 auto}
.hp-pair img{display:block;width:100%;height:auto;min-width:0}
/* M2 : deux tablettes (Construction 827 px, Transport 659 px), écart 1 px, la tablette Construction 10 px plus haute */
.hp-m2{grid-template-columns:827fr 659fr;column-gap:.067%}
.hp-m2 img:first-child{margin-bottom:1.209%}
/* M3 : téléphone 333 px + tablette 1113 px, écart 21 px, tablette 20 px plus haute */
.hp-m3{grid-template-columns:333fr 1113fr;column-gap:1.431%}
.hp-m3 img:last-child{margin-bottom:1.797%}
/* M4 : deux téléphones 410 px + 395 px, écart 58 px, même haut */
.hp-m4{grid-template-columns:410fr 395fr;column-gap:6.721%;align-items:start;max-width:560px}
/* M5 : tablette 1096 px + téléphone 348 px, écart 7 px, tablette 4 px plus haute */
.hp-m5{grid-template-columns:1096fr 348fr;column-gap:.482%}
.hp-m5 img:first-child{margin-bottom:.365%}
/* M6 : deux téléphones 451 px + 453 px, écart 66 px, téléphone de droite 13 px plus bas */
.hp-m6{grid-template-columns:451fr 453fr;column-gap:6.804%;align-items:start;max-width:560px}
.hp-m6 img:last-child{margin-top:2.87%}

/* ---------- H1 DEUX LOGICIELS, DEUX MÉTIERS (blanc) : tête centrée, M2 pleine largeur, deux colonnes à filet ---------- */
.hp-duo{background:#fff;padding:clamp(60px,6.2vw,90px) 0 clamp(56px,7vw,84px)}
.hp-duo .hp-pair{margin-bottom:clamp(30px,4vw,48px)}
.hp-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto auto auto;column-gap:clamp(32px,5vw,72px);row-gap:0;position:relative;align-items:start;max-width:1100px;margin:0 auto}
.hp-split::before{content:"";position:absolute;left:50%;top:0;bottom:0;width:1px;background:var(--line)}
.hp-half{display:contents}
.hp-half .hp-k{grid-row:1}
.hp-half h3{grid-row:2;font-size:clamp(1.3rem,1.9vw,1.6rem);font-weight:700;letter-spacing:-.02em;line-height:1.15;margin:0 0 12px;color:var(--ink);text-wrap:balance}
.hp-half p{grid-row:3;margin:0 0 16px;font-size:1.02rem;line-height:1.62;color:#475467;max-width:52ch}
.hp-half .hp-link{grid-row:4;align-self:start;justify-self:start}
.hp-half.c>*{grid-column:1}
.hp-half.t>*{grid-column:2}
@media(max-width:900px){.hp-split{display:block}.hp-split::before{display:none}.hp-half{display:block}.hp-half+.hp-half{margin-top:clamp(28px,5vw,40px);padding-top:clamp(24px,4vw,32px);border-top:1px solid var(--line)}}

/* ---------- H2 COMMANDER (gris) et H5 EXPLOITATION (gris) : tête à deux colonnes (texte + points), puis la composition pleine largeur ---------- */
.hp-order,.hp-fleet{background:#F6F7F9;padding:clamp(56px,7vw,84px) 0}
.hp-headrow{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:clamp(24px,4vw,64px);align-items:end;max-width:1100px;margin:0 auto clamp(30px,4vw,48px)}
.hp-headrow h2{font-size:clamp(1.55rem,2.3vw,2rem);font-weight:700;letter-spacing:-.022em;line-height:1.12;margin:0 0 14px;color:var(--ink);text-wrap:balance}
.hp-headrow p{margin:0 0 16px;font-size:1.04rem;line-height:1.65;color:#475467;max-width:52ch}
.hp-headrow .hp-links{margin:0}
.hp-headrow .hp-points{margin:0}
@media(max-width:900px){.hp-headrow{grid-template-columns:1fr;gap:18px}.hp-headrow .hp-links{margin-bottom:4px}}

/* ---------- H3 SUIVRE (blanc) et H6 CHAUFFEUR (blanc) : texte et paire de téléphones côte à côte ---------- */
.hp-follow,.hp-driver{background:#fff;padding:clamp(56px,7vw,84px) 0}
.hp-row{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(28px,5vw,72px);align-items:center}
.hp-row.vis-left{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}
.hp-row.vis-left .hp-vis{order:-1}
.hp-row h2{font-size:clamp(1.55rem,2.3vw,2rem);font-weight:700;letter-spacing:-.022em;line-height:1.12;margin:0 0 14px;color:var(--ink);text-wrap:balance}
.hp-row p{margin:0 0 16px;font-size:1.04rem;line-height:1.65;color:#475467;max-width:52ch}
.hp-vis{position:relative;margin:0}
@media(max-width:900px){.hp-row,.hp-row.vis-left{grid-template-columns:1fr;gap:26px}.hp-row.vis-left .hp-vis{order:0}.hp-vis .hp-pair{margin:0}}

/* ---------- H4 STATISTIQUES CONSTRUCTION et H7 STATISTIQUES TRANSPORT (sombre) : tête centrée, tablette très grande, trois points en ligne ;
   sous 701 px, trois agrandissements réels de l écran redressé sous la tablette (recadrages authentiques, fenêtres à filet fin, aucun effet) ---------- */
.hp-zoom{display:none}
@media(max-width:700px){.hp-stats .hp-shot{margin-bottom:12px}.hp-zoom{display:grid;gap:12px;--hp-zw:min(calc(100% + 40px),440px);width:var(--hp-zw);margin:0 0 clamp(26px,3.4vw,40px) calc((100% - var(--hp-zw)) / 2)}   /* pleine largeur (débord 20 px) jusqu à 430 px ; bornée à 440 px et centrée de 431 à 700 px : un agrandissement n est jamais affiché à plus de 1,4 CSS px par pixel source */.hp-zoom img{display:block;width:100%;height:auto;border-radius:12px;box-shadow:0 0 0 1px rgba(255,255,255,.12)}}
.hp-stats{background:#0B0C10;color:#fff;padding:clamp(56px,7vw,84px) 0}
.hp-stats .hp-shot{margin-bottom:clamp(26px,3.4vw,40px)}
.hp-under{max-width:1100px;margin:0 auto}
.hp-under .hp-points{max-width:none;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px clamp(20px,3vw,40px);margin:0 0 18px}
.hp-stats .hp-points li{color:rgba(255,255,255,.82)}
.hp-stats .hp-points li::before{background:rgba(255,255,255,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DCE6FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat}
.hp-under .hp-foot{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px 24px;padding-top:16px;border-top:1px solid rgba(255,255,255,.14)}
.hp-stats .hp-ill{margin:0;color:rgba(255,255,255,.58)}
.hp-stats .hp-link{color:#fff}
.hp-stats .hp-link:hover{color:#fff}
@media(max-width:760px){.hp-under .hp-points{grid-template-columns:1fr}}

/* ---------- H8 SEUL OU CONNECTÉS (gris) : deux situations en colonnes à filet bleu, cas hybride, notes EVA et QSE conservées ---------- */
.hp-sync{background:#F6F7F9;padding:clamp(56px,7vw,84px) 0}
.hp-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(24px,4vw,56px)}
.hp-cols>div{border-top:2px solid #2E52D6;padding-top:18px}
.hp-cols h3{font-size:1.25rem;font-weight:700;letter-spacing:-.02em;margin:0 0 10px;color:var(--ink);line-height:1.2}
.hp-cols p{margin:0 0 12px;font-size:1rem;line-height:1.65;color:rgba(12,14,18,.7)}
.hp-cols p:last-child{margin-bottom:0}
.hp-hybrid{margin:clamp(24px,3.5vw,36px) 0 0;padding-top:clamp(20px,2.8vw,28px);border-top:1px solid var(--line);text-align:center;color:rgba(12,14,18,.7);line-height:1.6;font-size:1.02rem}
.hp-hybrid b{color:var(--ink);font-weight:600}
.hp-hybrid .hp-link{margin-left:6px}
@media(max-width:760px){.hp-cols{grid-template-columns:1fr}}

/* ---------- Mobile (≤ 700 px) : réorganisation des paires (découpes réelles) pour la lisibilité ---------- */
@media(max-width:700px){
.hp-shot,.hp-pair{margin-left:-20px;margin-right:-20px;max-width:none}
.hp-m2{grid-template-columns:1fr;row-gap:16px}
.hp-m2 img:first-child{margin-bottom:0}
.hp-m3{grid-template-columns:1fr;row-gap:16px}
.hp-m3 img:first-child{order:2;width:58%;justify-self:center}
.hp-m3 img:last-child{order:1;margin-bottom:0}
.hp-m5{grid-template-columns:1fr;row-gap:16px}
.hp-m5 img:first-child{margin-bottom:0}
.hp-m5 img:last-child{width:56%;justify-self:center}
.hp-m4,.hp-m6{column-gap:5%;max-width:none}
.hp-m6 img:last-child{margin-top:0}
}

@media(max-width:430px){.hp-eyebrow{font-size:.7rem;letter-spacing:.1em}}

/* ---------- Accessibilité et mouvements ---------- */
@media(prefers-reduced-motion:reduce){.hp-link .ar{transition:none}}
.hp-duo a:focus-visible,.hp-order a:focus-visible,.hp-follow a:focus-visible,.hp-fleet a:focus-visible,.hp-driver a:focus-visible,.hp-sync a:focus-visible{outline:2px solid #2F5BE8;outline-offset:3px}
.hp-stats a:focus-visible{outline:2.5px solid #fff;outline-offset:3px}
