/*
 * Tête de page unique (correctif graphique 3 après le lot 8, gabarit site/_tete.html.twig, rendu de
 * docs/i4s-implantations.html) : une bande pleine largeur, puis le panneau d'identité qui remonte dessus. Feuille
 * commune à toutes les pages (base.html.twig).
 * - Bande photographique (.h1p) : l'image de tête.
 * - Bande graphique (.gh) : aplat navy à trame de points (dégradé CSS, sans image ni data:), portant la carte des
 *   implantations (image SVG servie par le site, la même sur Implantations et Contact) ou la coupe du plan coté (trait bleu
 *   ciel). Une page sans image ni dessin prend une image héritée : pas de bande à trame seule.
 * - .h1p--courte et .gh--courte : la bande plus basse des listes (catalogue, applications, actualités).
 */
/* La bande s'arrête à la largeur du site (1 280 px), centrée ; en deçà, bord à bord (décision d'Alexandre, 29/09/2026 :
   sur un écran large, une image étirée sur toute la fenêtre était recadrée et agrandie à l'excès) */
.h1p,.gh{position:relative;height:clamp(300px,36vw,520px);background:var(--navy);overflow:hidden;max-width:var(--max);margin-inline:auto}
.h1p--courte,.gh--courte{height:clamp(200px,25vw,350px)}
.h1p picture{display:contents}
/* Cadrage par défaut, ou le point focal de l'image (classes pf, pf-x.., pf-y.. de base.css) */
.h1p img{width:100%;height:100%;object-fit:cover;object-position:var(--pf-x,50%) var(--pf-y,58%)}
.h1p--courte img{object-position:var(--pf-x,50%) var(--pf-y,46%)}

.gh{background-image:radial-gradient(circle at 1px 1px,rgba(255,255,255,.13) 1px,transparent 1.4px);background-size:18px 18px}
/* Sous la carte, le fond du bloc fabricant de l'accueil : aplat navy et camouflage en trame de points, fondu depuis le
   bas à gauche (décision d'Alexandre, 22/09/2026) ; la mer de la carte est transparente */
.gh--carte{background-image:none}
.gh--carte::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.13;
  background-image:url("../../images/site/trame-camouflage-1-fifnXe7.svg");
  background-size:1500px 620px;background-position:left center;background-repeat:no-repeat;
  -webkit-mask-image:radial-gradient(104% 96% at 0% 106%,#000 0%,rgba(0,0,0,.58) 36%,transparent 70%);
  mask-image:radial-gradient(104% 96% at 0% 106%,#000 0%,rgba(0,0,0,.58) 36%,transparent 70%)}
.gh__carte{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.gh__plan{position:absolute;inset:0;width:100%;height:100%}
.gh__plan--etroit{display:none}
.pv--gh .pv-o{fill:rgba(92,193,236,.07);stroke:#5CC1EC;stroke-width:1.6}
.pv--gh .pv-sol{stroke:#5CC1EC;stroke-width:2;stroke-opacity:.6}
.pv--gh .pv-u{fill:none;stroke:#5CC1EC;stroke-width:1.2;stroke-dasharray:6 4;stroke-opacity:.8}
.pv--gh .pv-d{stroke:#7FA3B8;stroke-width:1}
.pv--gh .pv-h{fill:#7FA3B8}
.pv--gh .pv-c,.pv--gh .pv-s{fill:#7FA3B8;font-family:var(--ui);font-weight:700;font-size:9px;letter-spacing:.02em}
@media (max-width:1000px){.gh--carte::before{background-size:1100px 620px;opacity:.11}}
@media (max-width:900px){
  .gh{height:clamp(260px,60vw,360px)}
  .gh--courte,.h1p--courte{height:clamp(200px,50vw,300px)}
  .gh__plan--large{display:none}
  .gh__plan--etroit{display:block}
}

/* ---------- panneau d'identité : remonte sur la bande ---------- */
.id{position:relative;z-index:2;margin-top:-84px;background:#fff;
  border:1px solid var(--line);border-top:5px solid var(--sky);
  display:grid;grid-template-columns:minmax(0,1.18fr) minmax(0,1fr)}
.id__l{padding:clamp(24px,3vw,42px);display:grid;gap:16px;align-content:start;
  justify-items:start}
.id__g{display:inline-flex;align-items:center;gap:11px;font-family:var(--ui);font-weight:800;
  font-size:.76rem;letter-spacing:.15em;text-transform:uppercase;color:var(--blue)}
.id__g i{display:block;width:26px;height:3px;background:var(--sky)}
/* Titre des pages internes : 30 % sous la maquette (décision d'Alexandre, 22/09/2026) */
.id__l h1{font-size:clamp(1.54rem,3.08vw,2.45rem);letter-spacing:-.034em;line-height:1;overflow-wrap:anywhere;hyphens:auto}
/* Un titre d'un seul long mot (« Acknowledgement », un terme cherché) : la colonne ne s'élargit pas pour lui, il se coupe
   (break-word ne réduit pas la largeur minimale d'une piste de grille, anywhere oui) */
.id__l{grid-template-columns:minmax(0,1fr)}
.id__l > p{font-size:1.06rem;color:var(--body);max-width:44ch}
.id__a{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px}
.id__r{display:grid;grid-template-columns:1fr 1fr;border-left:1px solid var(--line);
  background:var(--wash)}
/* Calés en haut (décision d'Alexandre, 29/09/2026) : les étiquettes d'une même rangée restent alignées quand une
   valeur passe sur deux lignes */
.id__r div{padding:clamp(18px,2vw,28px) clamp(18px,2.2vw,30px);display:grid;gap:6px;
  align-content:start;border-bottom:1px solid var(--line)}
.id__r div:nth-child(odd){border-right:1px solid var(--line)}
.id__r div:nth-last-child(-n+2){border-bottom:0}
.id__r dt{display:flex;align-items:center;gap:9px;font-family:var(--ui);font-weight:700;
  font-size:.72rem;letter-spacing:.13em;text-transform:uppercase;color:var(--mute)}
.id__r dt .ic{color:var(--blue);font-size:.95rem}
.id__r dd{font-family:var(--ui);font-weight:800;color:var(--navy);
  font-size:clamp(1.45rem,2.3vw,2rem);letter-spacing:-.03em;line-height:1.05;
  font-variant-numeric:tabular-nums;white-space:nowrap}
.id__r dd small{display:block;font-family:var(--tx);font-weight:500;font-size:.86rem;
  letter-spacing:0;line-height:1.35;color:var(--body);margin-top:5px;white-space:normal}

.id__r .ic{width:1em;height:1em}
/* Sans repère, il tient sur une colonne */
.id--sans-reperes{grid-template-columns:minmax(0,1fr)}
/* Un surtitre sans lien (recherche, page légale) garde le style du surtitre, pas celui de l'accroche */
.id__l > p.id__g{margin:0;font-size:.76rem;color:var(--blue);max-width:none}
/* Un à trois repères : la grille se resserre, sans case vide */
.id__r--1{grid-template-columns:1fr}
.id__r--1 div,.id__r--2 div{border-bottom:0}
.id__r--1 div:nth-child(odd){border-right:0}
.id__r--3 div:last-child{grid-column:1/-1;border-right:0}
.id__r--3 div:nth-last-child(2){border-bottom:1px solid var(--line)}
@media (max-width:1000px){
  .id{grid-template-columns:minmax(0,1fr)}
  .id__r{border-left:0;border-top:1px solid var(--line)}
}
@media (max-width:700px){
  .id{margin-top:-40px}
  .id__a .btn{flex:1 1 100%}
}
@media (max-width:420px){
  .id__r dd{font-size:1.3rem}
  .id__r div{padding:16px 14px}
}

/* Repère dont la valeur est une phrase : elle s'écrit plus petit (application, page, référence) */
.id__r dd.t{font-size:clamp(1.25rem,1.9vw,1.6rem);white-space:normal;line-height:1.1}
