/* FRBTP Martinique — page d'attente */
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-var.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  --bleu: #002179;        /* bleu du logo */
  --bleu-nuit: #00164F;
  --bleu-vif: #2F62E0;    /* décors sur fond nuit */
  --orange: #F57C00;      /* arc orange du logo : fonds et décors, jamais en texte sur blanc */
  --vert: #00893A;        /* arc vert du logo : décors */
  --vert-texte: #007A34;  /* vert assombri pour le texte (5,1:1 sur --fond) */
  --encre: #141A2E;
  --gris: #4A4F5C;
  --ligne: #DDE1EA;
  --fond: #F5F7FB;
  --blanc: #FFFFFF;
  --brume: #DCE3F5;       /* texte secondaire sur fond nuit */
  --a-confirmer: #FFF1A8;
  --rayon: 14px;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sortie: cubic-bezier(.16, 1, .3, 1);
  --rideau: cubic-bezier(.77, 0, .18, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--blanc); color: var(--encre); font: 400 1.0625rem/1.65 "Montserrat", "Segoe UI", Roboto, Arial, sans-serif; }
img, svg { display: block; max-width: 100%; }
a { color: var(--bleu); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; border-radius: 4px; }
.entete--photo :focus-visible, .accueil :focus-visible, .section--nuit :focus-visible, .encart :focus-visible, .pied :focus-visible, .cookies :focus-visible { outline-color: var(--orange); } /* orange sur blanc : 2,6:1, trop faible */
h1, h2, h3 { line-height: 1.15; margin: 0; }

.conteneur { width: min(1120px, 100% - 32px); margin-inline: auto; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: 16px; top: -64px; z-index: 20; background: var(--orange); color: var(--bleu-nuit); padding: 12px 18px; border-radius: 10px; font-weight: 700; }
.evitement:focus { top: 12px; }
.icone { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Valeur en attente de confirmation : surlignée tant qu'elle n'est pas validée */
mark.a-confirmer { background: var(--a-confirmer); color: inherit; padding: 0 3px; border-radius: 3px; }

/* Décors absents par défaut : ils n'existent que si le mouvement est permis */
.rideau { display: none; }

/* Barre de progression de la lecture, posée par le script */
.progression { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 30; display: flex; transform: scaleX(0); transform-origin: left; pointer-events: none; }
.progression span:nth-child(1) { flex: 2; background: var(--vert); }
.progression span:nth-child(2) { flex: 5; background: var(--orange); }
.progression span:nth-child(3) { flex: 3; background: var(--bleu-vif); }

/* En-tête des pages sans photo (mentions légales) */
.entete { background: var(--blanc); border-bottom: 1px solid var(--ligne); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--bleu); }
.marque img { width: 64px; height: 64px; }
.marque span { font-weight: 800; font-size: 1.05rem; line-height: 1.2; }
.marque small { display: block; font-weight: 600; font-size: .78rem; color: var(--gris); }
.reseaux { display: flex; gap: 8px; }
.reseaux a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--bleu); border: 1px solid var(--ligne); }
.reseaux a:hover { background: var(--fond); }

/* En-tête posé sur la photo : le logo sur une plaque de chantier */
.entete--photo { position: absolute; inset: 0 0 auto 0; z-index: 5; background: none; border: 0; }
.entete--photo .conteneur { width: min(1360px, 100% - 32px); align-items: flex-start; min-height: 0; }
.entete--photo .marque { color: var(--blanc); gap: 14px; }
.plaque { display: block; padding: 12px 12px 10px; background: #FEFEFE; border-radius: 0 0 14px 14px; box-shadow: 0 12px 32px rgba(0, 22, 79, .35); }
.entete--photo .marque-texte { margin-top: 14px; padding: 6px 12px; border-radius: 8px; font-size: 1rem; background: rgba(0, 22, 79, .78); }
.entete--photo .marque small { color: var(--blanc); }
.entete--photo .reseaux { margin-top: 16px; }
.entete--photo .reseaux a { color: var(--blanc); background: rgba(0, 22, 79, .45); border-color: rgba(255, 255, 255, .45); }
.entete--photo .reseaux a:hover { background: var(--orange); border-color: var(--orange); color: var(--bleu-nuit); }

/* Bandeau d'accueil : une affiche, le texte en bas et la photo au-dessus */
.accueil { position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: var(--blanc); overflow: hidden; background: var(--bleu-nuit); }
.accueil-photo { position: absolute; inset: 0; z-index: -2; will-change: transform; }
.accueil-cadre { position: absolute; inset: 0; transform-origin: 52% 28%; }
.accueil-cadre img, .plan { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.accueil-cadre img { object-fit: cover; object-position: 50% 50%; }
.accueil-voile { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(to bottom, rgba(0, 22, 79, .74) 0, rgba(0, 22, 79, 0) 140px),
  linear-gradient(to top, rgba(0, 22, 79, .99) 0%, rgba(0, 22, 79, .95) 32%, rgba(0, 22, 79, .62) 50%, rgba(0, 22, 79, .1) 70%, rgba(0, 22, 79, 0) 100%); }

/* Le plan : tracé sur la dalle et les poteaux de la photo, au même cadrage qu'elle (slice = cover) */
.plan { fill: none; stroke: var(--blanc); stroke-width: 1.6; stroke-linecap: round; }
.plan--etroit { display: none; }
.plan--etroit text { font-size: 20px; }
.plan .pointille { stroke-dasharray: 8 6; }
.plan .axe { stroke-dasharray: 18 5 3 5; opacity: .85; stroke-width: 1.1; }
.plan-avenir .pointille, .plan-avenir .axe { stroke-width: 1.8; }
.plan-avenir .pointille { fill: rgba(255, 255, 255, .06); }
.plan .plan-avenir text { font-weight: 700; }
.plan text { fill: var(--blanc); stroke: none; font: 600 13px var(--mono); letter-spacing: .08em; }
.plan circle { fill: rgba(0, 22, 79, .55); }

.accueil-texte { position: relative; width: min(1360px, 100% - 32px); padding-block: 120px 44px; }
.accueil-texte::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; margin-left: -50vw; background: linear-gradient(to bottom, rgba(0, 22, 79, 0) 0, rgba(0, 22, 79, .66) 118px, rgba(0, 22, 79, .9) 230px, rgb(0, 22, 79) 360px); }
.pastille { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 14px; border-radius: 999px; background: rgba(0, 22, 79, .84); border: 1px solid rgba(255, 255, 255, .34); font-size: .88rem; font-weight: 600; line-height: 1.35; }
.pastille .icone { width: 18px; height: 18px; color: var(--orange); }
.accueil h1 { margin-top: 18px; font-weight: 700; }
.accroche { display: block; font-size: clamp(3rem, min(7vw, 15svh), 7.8rem); font-weight: 900; line-height: 1.02; letter-spacing: -.025em; }
.mot { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .1em .06em; margin-block: -.1em -.06em; }
.mot > span { display: inline-block; }
.mot--fort > span { color: var(--orange); }
.nom { display: block; margin-top: 22px; font-size: 1.15rem; font-weight: 800; line-height: 1.3; }
.nom small { display: block; font-size: .95rem; font-weight: 500; color: var(--brume); }
.accueil-bas { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 48px; }
.accueil-bas > div:first-child { flex: 1 1 520px; max-width: 760px; }
.accueil .chapo { margin: 10px 0 0; font-size: 1.02rem; line-height: 1.55; color: #E9EEF9; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.accueil-bas .actions { margin-top: 0; }
.bouton { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: background-color .25s, color .25s, border-color .25s; }
.bouton--plein { background: var(--orange); color: var(--bleu-nuit); }
.bouton--plein:hover { background: #FF9324; }
.bouton--contour { color: var(--blanc); border-color: rgba(255, 255, 255, .7); }
.bouton--contour:hover { background: var(--blanc); color: var(--bleu-nuit); border-color: var(--blanc); }
.barres { display: flex; height: 8px; }
.barres span:nth-child(1) { flex: 2; background: var(--vert); }
.barres span:nth-child(2) { flex: 5; background: var(--orange); }
.barres span:nth-child(3) { flex: 3; background: var(--bleu); }

/* Écrans en hauteur : le cadrage serré, la photo en haut et le texte sous le visage */
@media (max-aspect-ratio: 1/1) {
  .accueil-photo { inset: 0 0 auto 0; height: 68%; }
  .accueil-cadre { transform-origin: 50% 30%; }
  .accueil-cadre img { object-position: 50% 0; }
  .plan--large { display: none; }
  .plan--etroit { display: block; }
  .accueil-voile { background:
    linear-gradient(to bottom, rgba(0, 22, 79, .62) 0, rgba(0, 22, 79, 0) 120px),
    linear-gradient(to top, rgba(0, 22, 79, 1) 0%, rgba(0, 22, 79, 1) 32%, rgba(0, 22, 79, 0) 68%); }
  .accroche { font-size: clamp(2.5rem, min(12.6vw, 7.2svh), 5.6rem); }
  .accueil-texte { padding-block: 100px 26px; }
  .accueil-texte::before { background: linear-gradient(to bottom, rgba(0, 22, 79, 0) 0, rgba(0, 22, 79, .72) 92px, rgba(0, 22, 79, .9) 170px, rgb(0, 22, 79) 280px); }
  .nom { margin-top: 14px; font-size: 1.05rem; }
  .nom small { font-size: .84rem; }
  .accueil .chapo { font-size: .94rem; line-height: 1.5; }
  .accueil-bas .actions { width: 100%; gap: 10px; }
  .accueil-bas .bouton { flex: 1 1 auto; min-height: 50px; padding-inline: 14px; gap: 8px; font-size: .95rem; white-space: nowrap; }
}
@media (max-width: 640px) {
  .entete--photo .marque-texte { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .entete--photo .marque img { width: 58px; height: 58px; }
}
@media (max-height: 720px) and (max-aspect-ratio: 1/1) { .chapo-suite { display: none; } }

/* Bande défilante */
.defile { background: var(--bleu-nuit); }
.defile-bande { overflow: hidden; background: var(--orange); color: var(--bleu-nuit); clip-path: polygon(0 0, 100% 14%, 100% 100%, 0 86%); padding-block: .85em; font-size: clamp(1.05rem, 2.6vw, 1.7rem); font-weight: 900; text-transform: uppercase; letter-spacing: .04em; line-height: 1.2; }
.defile-piste { display: flex; flex-wrap: nowrap; width: max-content; }
.defile-piste span { display: inline-flex; align-items: center; white-space: nowrap; }
.defile-piste span::after { content: ""; width: .55em; height: .55em; margin-inline: 1.1em; background: var(--bleu-nuit); transform: rotate(45deg); }

/* Sections */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--fond { background: var(--fond); }
.section--nuit { background-color: var(--bleu-nuit); background-image: linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px); background-size: 32px 32px; color: var(--blanc); }
.surtitre { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--vert-texte); }
.surtitre::before { content: ""; width: 36px; height: 3px; background: currentColor; }
.section h2 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 900; letter-spacing: -.02em; line-height: 1.08; color: var(--bleu); }
.intro { margin: 14px 0 0; max-width: 62ch; color: var(--gris); }
.section--nuit .surtitre { color: var(--orange); }
.section--nuit h2 { color: var(--blanc); }
.section--nuit .intro { color: var(--brume); }

/* Six priorités, un seul édifice : sans script, l'immeuble est bâti et les cartes empilées */
#missions { padding-bottom: 0; }
.scene { margin-top: 32px; padding-bottom: clamp(56px, 8vw, 104px); }
.plateau { display: grid; gap: 28px; width: min(1200px, 100% - 32px); margin-inline: auto; }
.edifice { width: 100%; max-width: 400px; height: auto; margin-inline: auto; }
.missions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.missions li { position: relative; padding: 22px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18); border-top: 4px solid var(--orange); border-radius: var(--rayon); }
.missions li:nth-child(3n+2) { border-top-color: #17B45C; }
.missions li:nth-child(3n) { border-top-color: var(--bleu-vif); }
.carte-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.numero { font: 700 1.5rem var(--mono); color: var(--orange); }
.missions .icone { width: 30px; height: 30px; color: var(--blanc); }
.missions h3 { margin-top: 12px; font-size: 1.2rem; font-weight: 800; color: var(--blanc); }
.missions p { margin: 8px 0 0; color: var(--brume); font-size: 1rem; line-height: 1.55; }
.etapes { display: none; }

/* Dessin de l'immeuble et de la grue */
.sol { stroke: rgba(255, 255, 255, .6); stroke-width: 2; }
.sol-hachures { stroke: rgba(255, 255, 255, .28); stroke-width: 1; }
.trace { fill: none; stroke: rgba(255, 255, 255, .34); stroke-width: 1.2; stroke-dasharray: 5 5; }
.cote { fill: rgba(255, 255, 255, .9); font: 600 11px var(--mono); paint-order: stroke; stroke: #00164F; stroke-width: 3px; stroke-linejoin: round; }
.crete { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1.2; }
.vagues { fill: none; stroke: rgba(255, 255, 255, .3); stroke-width: 1; stroke-dasharray: 16 11; }
.tronc { fill: none; stroke: #D9B98A; stroke-linecap: round; }
.palme { fill: #2BC56F; }
.toit-tole { fill: #B23A2A; stroke: rgba(255, 255, 255, .5); stroke-width: 1; }
.toit-ondes { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: 1; }
.etage-corps, .charge-corps { stroke: rgba(255, 255, 255, .42); stroke-width: 1; }
.etage-icone { fill: none; stroke: var(--blanc); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.soleil { will-change: transform; }
.etage-dalle, .charge-dalle { fill: var(--blanc); }
.etage:nth-child(3n+1) .etage-dalle { fill: #17B45C; }
.etage:nth-child(3n+2) .etage-dalle { fill: var(--orange); }
.etage:nth-child(3n) .etage-dalle { fill: #6E93FF; }
.vitres rect { fill: #FFC877; }
.charge .vitres rect { fill: #5B7BC9; }
.drapeau-mat { stroke: var(--blanc); stroke-width: 2; }
.grue { fill: none; stroke: var(--orange); stroke-width: 2.2; stroke-linejoin: round; }
.grue-cabine { fill: var(--orange); stroke: none; }
.grue-tirant { stroke: var(--orange); stroke-width: 1.2; }
.grue-lest { fill: var(--brume); stroke: none; }
.chariot { fill: var(--blanc); }
.cable { stroke: var(--blanc); stroke-width: 1.4; }
.charge, .chariot-groupe { display: none; }

/* Le script pose .anime : la scène se fige à l'écran et le défilement pilote la grue */
.scene.anime { height: calc(100svh + 6.5 * 62svh); margin-top: 8px; padding: 0; }
.anime .plateau { position: sticky; top: 0; height: 100svh; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); align-items: center; gap: 32px; }
.anime .edifice { width: 100%; height: 100%; max-width: none; max-height: 86svh; }
.anime .etage { opacity: 0; transition: opacity .12s; }
.anime .etage.pose { opacity: 1; }
.anime .vitres rect { transition: fill .3s; fill: #5B7BC9; }
.anime .pose .vitres rect { fill: #FFC877; }
.anime .pose .vitres rect:nth-child(2) { transition-delay: .08s; }
.anime .pose .vitres rect:nth-child(3) { transition-delay: .16s; }
.anime .pose .vitres rect:nth-child(4) { transition-delay: .24s; }
.anime .charge, .anime .chariot-groupe { display: block; }
.anime .drapeau { opacity: 0; transform: translateY(16px); transition: opacity .35s, transform .5s var(--sortie); }
.anime.fini .drapeau { opacity: 1; transform: none; transition-delay: .25s; }
.anime .toit { opacity: 0; transform: translateY(-22px); transition: opacity .3s, transform .5s var(--sortie); }
.anime.fini .toit { opacity: 1; transform: none; }
.anime .missions { display: grid; grid-template-columns: minmax(0, 1fr); }
.anime .missions .icone { width: 40px; height: 40px; }
.anime .missions li { grid-area: 1 / 1; opacity: 0; transform: translateY(26px); transition: opacity .15s, transform .15s; padding: 28px; background: rgba(0, 22, 79, .82); }
.anime .missions li.actif { opacity: 1; transform: none; transition: opacity .35s .13s, transform .55s var(--sortie) .13s; }
.anime .numero { font-size: clamp(3rem, 6vw, 5.4rem); font-weight: 800; line-height: .95; letter-spacing: -.04em; }
.anime .missions h3 { font-size: clamp(1.25rem, 2.8vw, 2.25rem); }
.anime .missions p { font-size: 1.14rem; }
.anime .etapes { display: flex; gap: 6px; margin-bottom: 16px; }
.etapes span { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .2); transition: background-color .3s; }
.etapes span.fait { background: var(--orange); }
@media (max-aspect-ratio: 1/1) {
  .anime .plateau { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 10px; padding-block: 14px 18px; }
  .anime .edifice { max-height: none; min-height: 0; }
  .anime .missions li { padding: 18px; }
  .anime .numero { font-size: 1.9rem; letter-spacing: -.02em; }
  .anime .missions .icone { width: 28px; height: 28px; }
  .anime .missions h3 { margin-top: 6px; font-size: 1.14rem; }
  .anime .missions p { margin-top: 4px; font-size: .94rem; line-height: 1.45; }
  .anime .etapes { margin-bottom: 10px; }
}

/* Nos métiers : le texte sur l'aplat, la photo commence sous le texte, le casque dépasse du cadre */
.portrait { overflow: hidden; background-color: var(--bleu-nuit); background-image: linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px); background-size: 32px 32px; color: var(--blanc); }
.portrait-texte { position: relative; z-index: 1; padding-top: clamp(28px, 3.4vw, 48px); container-type: inline-size; }
.portrait-texte > * { max-width: 60%; }
.portrait .surtitre { width: fit-content; color: var(--orange); }
/* Titre sur 2 lignes à toutes les largeurs : la 2e, la plus longue, fait 11 em ; la police suit la largeur du bloc (repli en vw sans les unités de conteneur) */
.portrait h2 { font-size: min(clamp(2rem, 4.6vw, 4.4rem), calc(min(1120px, 100vw - 32px) * .6 / 11.4)); font-size: min(clamp(2rem, 4.6vw, 4.4rem), 60cqi / 11.4); font-weight: 900; letter-spacing: -.02em; line-height: 1.04; }
.portrait-texte > p:last-child { margin: 14px 0 0; color: #E9EEF9; font-size: 1.05rem; line-height: 1.55; }
.portrait-photo { position: relative; margin-top: calc(clamp(26px, 2.6vw, 36px) - 7.5926%); }
.portrait-photo img { display: block; width: 100%; height: auto; }
@media (max-width: 600px) {
  .portrait-texte > * { max-width: none; }
  .portrait h2 { font-size: min(clamp(2rem, 4.6vw, 4.4rem), calc((100vw - 32px) / 11.4)); font-size: min(clamp(2rem, 4.6vw, 4.4rem), 100cqi / 11.4); }
  .portrait-photo { margin-top: 4px; }
}

/* Au national */
.national { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; margin-top: 36px; }
.carte-lien { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 30px; min-height: 148px; border-radius: var(--rayon); border: 1px solid var(--ligne); background: var(--blanc); text-decoration: none; color: var(--encre); transition: color .35s, border-color .35s; }
.carte-lien::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bleu); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--sortie); }
.carte-lien:focus-visible { border-color: var(--bleu); color: var(--blanc); }
.carte-lien:focus-visible::before { transform: scaleX(1); }
.carte-lien strong { display: block; font-size: clamp(2.4rem, 6vw, 3.8rem); font-weight: 900; letter-spacing: -.02em; line-height: 1.05; color: var(--bleu); transition: color .35s; }
.carte-lien span { display: block; color: var(--gris); font-size: .98rem; transition: color .35s; }
.carte-lien:focus-visible strong, .carte-lien:focus-visible span { color: var(--blanc); }
.carte-lien .icone { width: 30px; height: 30px; color: var(--bleu); transition: color .35s, transform .35s var(--sortie); }
.carte-lien:focus-visible .icone { color: var(--orange); transform: translate(4px, -4px); }
@media (hover: hover) {
  .carte-lien:hover { border-color: var(--bleu); color: var(--blanc); }
  .carte-lien:hover::before { transform: scaleX(1); }
  .carte-lien:hover strong, .carte-lien:hover span { color: var(--blanc); }
  .carte-lien:hover .icone { color: var(--orange); transform: translate(4px, -4px); }
}

/* Contact */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 40px; margin-top: 36px; align-items: start; }
.liens-directs { display: grid; gap: 6px; margin-bottom: 30px; }
.lien-direct { display: flex; align-items: center; gap: 12px; min-height: 44px; width: fit-content; max-width: 100%; color: var(--bleu); font-weight: 800; letter-spacing: -.015em; line-height: 1.15; text-decoration: none; background: linear-gradient(var(--orange), var(--orange)) left bottom / 0 3px no-repeat; transition: background-size .4s var(--sortie); }
.lien-direct:hover, .lien-direct:focus-visible { background-size: 100% 3px; }
.lien-direct--tel { font-size: clamp(1.85rem, 8.6vw, 3.4rem); font-weight: 900; }
.lien-direct--mail { font-size: clamp(1rem, 4.5vw, 1.8rem); overflow-wrap: anywhere; }
.lien-direct .icone { color: var(--vert-texte); }
.lien-direct--tel .icone { width: 30px; height: 30px; }
.coordonnees { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.coordonnees li { display: flex; gap: 14px; }
.coordonnees .icone { margin-top: 3px; color: var(--vert-texte); }
.coordonnees strong { display: block; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--gris); }
.coordonnees a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.coordonnees address { font-style: normal; }
.encart { position: relative; overflow: hidden; background: var(--bleu); color: var(--blanc); border-radius: var(--rayon); padding: 34px 30px 30px; }
.encart::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--vert) 20%, var(--orange) 20% 70%, var(--bleu-vif) 70%); }
.encart h3 { font-size: 1.5rem; font-weight: 900; letter-spacing: -.01em; }
.encart p { margin: 10px 0 0; color: var(--brume); }
.encart .actions { margin-top: 22px; }
.encart .bouton { flex: 1 1 auto; }

/* Pied de page */
.pied { background: var(--bleu-nuit); color: #C9D2EA; font-size: .95rem; }
.pied-geant { overflow: hidden; margin: 0; padding-top: 32px; text-align: center; font-size: min(29vw, 25rem); font-weight: 900; letter-spacing: -.03em; line-height: .86; color: transparent; background: linear-gradient(90deg, #17B45C 20%, var(--orange) 20% 70%, var(--bleu-vif) 70%) left center / var(--rempli, 100%) 100% no-repeat, linear-gradient(rgba(255, 255, 255, .1), rgba(255, 255, 255, .1)); -webkit-background-clip: text; background-clip: text; }
.pied .conteneur { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 32px; }
.pied img { width: 72px; height: auto; }
.pied p { margin: 0; }
.pied a { color: var(--blanc); }
.pied nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.pied nav a, .pied nav button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.pied nav button { padding: 0; border: 0; background: none; color: var(--blanc); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pied nav button:hover { text-decoration-thickness: 2px; }

/* Bandeau de consentement, posé par le script : Accepter et Refuser au même niveau */
.cookies { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; max-width: 560px; margin-inline: auto; padding: 16px 18px; background: var(--bleu-nuit); color: var(--blanc); border: 1px solid rgba(255, 255, 255, .34); border-radius: var(--rayon); box-shadow: 0 18px 50px rgba(0, 10, 40, .55); font-size: .92rem; line-height: 1.45; }
.cookies p { margin: 0; }
.cookies a { display: inline-flex; align-items: center; min-height: 44px; color: var(--blanc); font-weight: 700; }
.cookies-choix { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.cookies-choix button { min-height: 46px; padding: 0 14px; border: 2px solid var(--blanc); border-radius: 999px; background: var(--blanc); color: var(--bleu-nuit); font: 700 .95rem "Montserrat", "Segoe UI", Roboto, Arial, sans-serif; cursor: pointer; }
.cookies-choix button:hover { background: var(--orange); border-color: var(--orange); }

/* Mentions légales */
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--bleu); }
.legal h2 { margin-top: 36px; font-size: 1.25rem; font-weight: 800; letter-spacing: 0; line-height: 1.15; color: var(--bleu); }
.legal dl { display: grid; grid-template-columns: minmax(0, 15rem) 1fr; gap: 8px 20px; margin: 16px 0 0; }
.legal dt { font-weight: 700; }
.legal dd { margin: 0; }
.legal dd a { display: inline-flex; align-items: center; min-height: 44px; }
.legal p a { padding-block: 12px; }
.legal p { max-width: 70ch; }
.legal ul { max-width: 70ch; padding-left: 20px; }
.retour { margin-top: 40px; }
.retour a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 560px) {
  .legal dl { grid-template-columns: 1fr; }
  .legal dd { margin-bottom: 8px; }
  .marque small { display: none; }
}

/* Tout le mouvement est ici : sans cette permission, la page s'affiche directement dans son état final */
@media (prefers-reduced-motion: no-preference) {
  /* Lever de rideau tricolore */
  .rideau { display: flex; position: fixed; inset: 0; z-index: 50; pointer-events: none; animation: rideau-fin 0s linear 1.45s forwards; }
  .rideau span { animation: rideau-monte .78s var(--rideau) both; }
  .rideau span:nth-child(1) { flex: 2; background: var(--vert); animation-delay: .34s; }
  .rideau span:nth-child(2) { flex: 5; background: var(--orange); animation-delay: .44s; }
  .rideau span:nth-child(3) { flex: 3; background: var(--bleu); animation-delay: .54s; }
  .rideau img { position: absolute; left: 50%; top: 50%; width: 150px; margin: -68px 0 0 -75px; animation: rideau-logo .62s ease both; }

  /* La photo se pose, puis le plan se dessine dessus */
  .accueil-cadre { animation: photo-recule 16s var(--sortie) both; }
  .accueil-cadre img { animation: prend-couleur 1.7s ease 1.1s both; }
  .accueil-voile::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .22) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .22) 1px, transparent 1px); background-size: 40px 40px; animation: trame-part 1.9s ease 1s both; }
  .plan [pathLength] { stroke-dasharray: 1; animation: trace 1.5s cubic-bezier(.6, 0, .2, 1) both; }
  .plan .pointille, .plan .axe { animation: apparait .8s ease 2s both; }
  .plan g:nth-of-type(2) [pathLength] { animation-delay: 1.3s; }
  .plan g:nth-of-type(3) [pathLength] { animation-delay: 1.5s; }
  .plan text, .plan circle { animation: apparait .6s ease 2.3s both; }

  /* Le titre monte mot à mot depuis son masque */
  .mot > span { animation: mot-monte 1s var(--sortie) both; animation-delay: calc(.9s + var(--rang, 0) * .09s); }
  .mot:nth-child(1) { --rang: 0; }
  .mot:nth-child(2) { --rang: 1; }
  .mot:nth-child(3) { --rang: 2; }
  .mot:nth-child(4) { --rang: 3; }
  .pastille { animation: monte .8s var(--sortie) .75s both; }
  .nom { animation: monte .8s var(--sortie) 1.35s both; }
  .accueil .chapo { animation: monte .8s var(--sortie) 1.45s both; }
  .accueil-bas .actions { animation: monte .8s var(--sortie) 1.55s both; }
  .entete--photo .plaque { animation: plaque-descend .8s var(--sortie) 1s both; }

  .cookies { animation: monte .7s var(--sortie) 1.8s both; }

  /* Reflet sur le bouton principal */
  .bouton--plein::after { content: ""; position: absolute; inset: -2px auto -2px -40%; width: 30%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent); transform: skewX(-18deg); animation: reflet 5s ease-in-out 2.4s infinite; }

  /* Bande défilante */
  .defile-piste { animation: defile 34s linear infinite; }

  /* La photo se pose quand le texte de « Nos métiers » entre à l'écran */
  .portrait:has(.a-reveler) img { transform: translateY(24px); }
  .portrait:has(.revele) img { transition: transform 1.4s var(--sortie); }

  /* Révélations au défilement : la classe n'est posée que sur ce qui est encore hors de l'écran */
  .a-reveler { opacity: 0; transform: translateY(34px); }
  .revele { transition: opacity .8s ease, transform .9s var(--sortie); }
}
@keyframes rideau-monte { to { transform: translateY(-101%); } }
@keyframes rideau-fin { to { visibility: hidden; } }
@keyframes rideau-logo { 0% { opacity: 0; transform: scale(.86); } 40% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-36px); } }
@keyframes photo-recule { from { transform: scale(1.16); } to { transform: scale(1.015); } }
@keyframes prend-couleur { from { filter: grayscale(1) brightness(.72) contrast(1.15); } to { filter: none; } }
@keyframes trame-part { from { opacity: 1; } to { opacity: 0; } }
@keyframes trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes apparait { from { opacity: 0; } }
@keyframes mot-monte { from { transform: translateY(112%); } }
@keyframes monte { from { opacity: 0; transform: translateY(18px); } }
@keyframes plaque-descend { from { transform: translateY(-110%); } }
@keyframes reflet { 0% { left: -40%; } 22%, 100% { left: 120%; } }
@keyframes defile { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .rideau, .cookies, .progression { display: none !important; } }
