/* ==========================================================================
   franosselin.com — feuille de style
   Ne pas modifier : les textes se changent dans index.html (repères ✏️)
   et les projets dans contenu/projets.js
   ========================================================================== */

/* ---------- Polices auto-hébergées (aucun appel à Google) ---------- */
@font-face { font-family: "Barlow Condensed"; font-weight: 300; font-style: normal; font-display: swap; src: url("../polices/barlow-condensed-300.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 400; font-style: normal; font-display: swap; src: url("../polices/barlow-condensed-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-style: normal; font-display: swap; src: url("../polices/barlow-condensed-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("../polices/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("../polices/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("../polices/barlow-600.woff2") format("woff2"); }

/* ---------- Jetons ---------- */
:root {
  --vert: #009b6f;
  --vert-fonce: #00895f;
  --jaune: #ffed00;
  --blanc: #ffffff;
  --jaune-50: rgba(255, 237, 0, .5);
  --jaune-75: rgba(255, 237, 0, .75);
  --cond: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --texte: "Barlow", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --h-entete: 110px;
  --h-degrade: 65px;
  --pos-entete: absolute;                              /* en-tête : « absolute » = reste en haut du site ; « fixed » = suit le défilement */
  --g: max(190px, calc((100% - 1280px) / 2));          /* gouttière (place du menu) */
  --droite-nav: max(18px, calc((100% - 1280px) / 2 - 168px));
  --top-nav: 240px;
  --ancre: 64px;                                       /* après un clic dans le menu (≥ 1180 px) : distance du haut de la fenêtre au titre de la section, voir « Ancres du menu » */
  --ease: cubic-bezier(.22, .8, .24, 1);
  --label: 400 17px/1 var(--cond);
  --espacement-label: .23em;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--vert);
  color: var(--blanc);
  scrollbar-gutter: stable;
  scrollbar-color: var(--jaune) var(--vert-fonce);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font: 400 16px/26px var(--texte);
  background: var(--vert);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--jaune); color: var(--vert); }
:focus-visible { outline: 2px solid var(--jaune); outline-offset: 4px; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.jaune { color: var(--jaune); }
.evitement { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--jaune); color: var(--vert); padding: 10px 14px; font: 600 15px var(--cond); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.evitement:focus { top: 12px; }

html.verrou, html.verrou body { overflow: hidden; }
html.intro-active, html.intro-active body { overflow: hidden; overscroll-behavior: none; }

/* ---------- Introduction ---------- */
.intro {
  position: fixed; inset: 0; z-index: 200;
  background: var(--vert);
  overflow: hidden;
  touch-action: none;
  -webkit-user-select: none; user-select: none;
}
.intro.pret { background: transparent; }
/* Avant le départ de l'intro (le script pose .pret à sa première image), on ne montre que le fond vert. Sans cette règle, la scène, pas encore placée
   au centre par le script, laisse voir « ART DIRECTION / GRAPHIC DESIGN » en haut à gauche, et le bouton SKIP s'affiche alors qu'il ne réagit pas encore.
   Attente mesurée avant le départ : de 0 à 0,07 s en local, 0,24 à 0,3 s en 4G émulée, 0,65 à 0,8 s avec l'aperçu de 20 Mo (v1.2.1). */
.intro:not(.pret) .intro__scene, .intro:not(.pret) .intro__skip { visibility: hidden; }
html.sans-intro .intro { display: none; }
.intro__fond { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro__scene { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.intro__scene img { max-width: none; }
.intro__logo { position: absolute; left: -395px; top: -120px; width: 358px; height: 240px; will-change: transform; }
.intro__textes { position: absolute; left: 141.6px; top: -78px; width: 470px; height: 182px; will-change: transform; }
.intro__nom { position: absolute; left: 10px; top: 0; margin: 0; font: 400 48px/1 var(--cond); white-space: nowrap; color: var(--blanc); }
.intro__ligne { position: absolute; overflow: hidden; }
.intro__ligne img { width: 100%; height: 100%; }
.intro__ligne--1 { left: 0; top: 63px; width: 450px; height: 50px; }
.intro__ligne--2 { left: 8.4px; top: 130px; width: 460px; height: 50px; }
.intro__skip {
  position: absolute; right: clamp(20px, 5.8vw, 112px); bottom: clamp(20px, 6.2vh, 67px);
  padding: 12px; margin: -12px;
  font: 400 15px/1 var(--cond); letter-spacing: .3em; text-transform: uppercase; color: var(--blanc);
  opacity: .9; transition: color .2s;
}
.intro__skip:hover { color: var(--jaune); }
.intro__indice {
  position: absolute; left: 50%; bottom: clamp(20px, 6.2vh, 67px); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font: 400 13px/1 var(--cond); letter-spacing: .3em; text-transform: uppercase; color: var(--blanc);
  opacity: 0; transition: opacity .6s; pointer-events: none;
}
.intro__indice.visible { opacity: .75; }
.intro__indice::after { content: ""; width: 1px; height: 34px; background: var(--blanc); transform-origin: top; animation: indice 1.8s var(--ease) infinite; }
@keyframes indice { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- En-tête (reste en haut du site ; fixe sur tablette et mobile, pour garder le bouton du menu) ---------- */
.entete { position: fixed; position: var(--pos-entete, fixed); inset: 0 0 auto 0; z-index: 90; pointer-events: none; }
.entete__bandeau { position: relative; height: var(--h-entete); background: var(--vert); display: flex; align-items: center; justify-content: center; pointer-events: auto; }
.entete__logo { display: block; }
.entete__logo img { width: 215px; height: 55px; }
.entete__fonction {
  position: absolute; top: 50%; right: calc(var(--droite-nav) + 11px); transform: translateY(-50%);
  margin: 0 -.23em 0 0; font: var(--label); letter-spacing: var(--espacement-label); text-transform: uppercase; white-space: nowrap;
}
.entete__degrade {
  height: var(--h-degrade);
  background: linear-gradient(to bottom, rgba(255,237,0,1) 0%, rgba(255,237,0,.80) 9%, rgba(255,237,0,.64) 18%, rgba(255,237,0,.49) 28%, rgba(255,237,0,.36) 38%, rgba(255,237,0,.26) 48%, rgba(255,237,0,.18) 57%, rgba(255,237,0,.11) 66%, rgba(255,237,0,.06) 77%, rgba(255,237,0,.02) 89%, rgba(255,237,0,0) 100%);
}
.entete__menu { display: none; }

/* ---------- Menu de navigation (colonne de droite) ---------- */
.nav { position: fixed; z-index: 55; right: var(--droite-nav); top: var(--top-nav); }
.nav__liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 29px; }
.nav__lien {
  position: relative; display: inline-block; white-space: nowrap; padding: 6px 11px 6px 12px;
  font: var(--label); letter-spacing: var(--espacement-label); text-transform: uppercase; text-decoration: none;
  transition: color .2s;
}
.nav__lien span { position: relative; margin-right: -.23em; }
.nav__lien::before {
  content: ""; position: absolute; inset: 0; background: var(--jaune);
  transform: scaleX(0); transform-origin: right center; transition: transform .28s var(--ease);
}
.nav__lien:hover { color: var(--jaune); }
.nav__lien.actif { color: var(--vert); font-weight: 600; }
.nav__lien.actif::before { transform: scaleX(1); }
.nav__pied { display: none; }

.retour-haut {
  position: fixed; z-index: 55; right: calc(var(--droite-nav) + 11px); top: calc(var(--top-nav) - 48px);
  width: 40px; height: 20px; color: var(--blanc);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease), color .2s;
}
.retour-haut svg { width: 40px; height: 20px; overflow: visible; }
.retour-haut.visible { opacity: 1; transform: none; pointer-events: auto; }
.retour-haut:hover { color: var(--jaune); }

/* ---------- Blocs communs ---------- */
.cadre { width: min(1280px, calc(100% - 2 * var(--g))); margin-inline: auto; }
.titre { margin: 0 auto; display: flex; justify-content: center; }
.titre img { height: auto; max-width: 78vw; }
.titre--projets img { width: 320px; }
.titre--apropos img { width: 370px; }
.titre--prestations img { width: 500px; }
.titre--contact img { width: 340px; }

/* ---------- Zone Highlight ---------- */
.highlight { padding-top: calc(var(--h-entete) + 60px); text-align: center; }
.highlight__cadre { position: relative; width: min(1280px, calc(100% - 2 * var(--g))); margin-inline: auto; aspect-ratio: 16 / 9; }
.highlight__piste { position: absolute; inset: 0; overflow: hidden; }
.highlight__diapo { position: absolute; inset: 0; background: var(--vert); }
.highlight__diapo img, .highlight__diapo video { width: 100%; height: 100%; object-fit: cover; }
.highlight__lien { position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.highlight__legende {
  margin: 21px 0 0; min-height: 16px;
  font: 600 16px/1 var(--cond); letter-spacing: .2em; text-transform: uppercase; color: var(--jaune);
}
.highlight__legende .sep { color: var(--blanc); font-weight: 400; letter-spacing: 0; margin: 0 .1em 0 -.1em; }
.highlight__legende .annee { color: var(--blanc); font-weight: 400; letter-spacing: .02em; }
.highlight__points { position: relative; display: flex; justify-content: center; align-items: center; gap: 12px; width: min(1280px, calc(100% - 2 * var(--g))); margin: 20px auto 0; }
.highlight__point { width: 17px; height: 17px; border-radius: 50%; background: var(--vert-fonce); transition: background .3s, transform .3s; }
.highlight__point:hover { transform: scale(1.15); }
.highlight__point[aria-current="true"] { background: var(--blanc); }
/* flèches de part et d'autre des boutons, centrées sur eux (maquette MISE_EN_AVANT : centres aux 1/6 et 5/6 de la largeur de l'image) ; même tracé que les flèches de la fiche */
.highlight__fleche { position: absolute; top: 50%; width: 22px; height: 42px; margin-top: -21px; color: var(--blanc); transition: color .2s, transform .25s var(--ease); }
.highlight__fleche::before { content: ""; position: absolute; inset: -10px -18px; }   /* zone de clic plus large que le tracé */
.highlight__fleche svg { width: 22px; height: 42px; overflow: visible; }
.highlight__fleche--prec { left: calc(100% / 6 - 11px); }
.highlight__fleche--suiv { right: calc(100% / 6 - 11px); }
.highlight__fleche:hover { color: var(--jaune); }
.highlight__fleche--prec:hover { transform: translateX(-4px); }
.highlight__fleche--suiv:hover { transform: translateX(4px); }

.filet { width: 200px; height: 2px; margin: 75px auto 0; border: 0; background: var(--jaune-50); }

/* ---------- Zone Projets ---------- */
.projets { padding-top: 85px; scroll-margin-top: calc(var(--h-entete) + 10px); }
.filtres { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 86px; margin: 66px auto 0; padding: 0 12px; }
.filtre {
  position: relative; padding: 2px 0 7px; white-space: nowrap;
  font: var(--label); letter-spacing: var(--espacement-label); text-transform: uppercase;
  transition: color .2s;
}
.filtre span { margin-right: -.23em; }
.filtre::after {
  content: ""; position: absolute; left: 0; right: .23em; bottom: 0; height: 2px; background: var(--jaune);
  transform: scaleX(0); transition: transform .3s var(--ease);
}
.filtre:hover, .filtre[aria-pressed="true"] { color: var(--jaune); }
.filtre[aria-pressed="true"]::after { transform: scaleX(1); }

.mosaique { position: relative; width: min(1200px, calc(100% - 2 * var(--g))); margin: 34px auto 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); align-content: start; overflow-anchor: none; }
/* pendant un changement de filtre (site.js §5) : la zone est découpée à sa hauteur animée, donc rien ne déborde sur le bloc suivant ; les tuiles ne réagissent plus à la souris */
.mosaique.en-transition { overflow: hidden; overflow: clip; }
html.filtre-en-cours { overflow-anchor: none; }   /* précaution : Chrome ne doit pas faire défiler la page pour garder en place le bloc « À propos » que la mosaïque repousse (vu sur une version intermédiaire ; aucun décalage mesuré sur celle-ci, avec ou sans cette règle) */
.mosaique.en-transition .tuile__bouton { pointer-events: none; }
.tuile { position: relative; aspect-ratio: 1; }
.tuile__bouton { position: absolute; inset: 0; display: block; width: 100%; overflow: hidden; text-align: center; }
.tuile__cadre { position: absolute; inset: 0; overflow: hidden; }
.tuile__img { width: 100%; height: 100%; object-fit: cover; }
.tuile__bande {
  position: absolute; left: 0; right: 0; bottom: 0; height: 20%;
  display: flex; align-items: center; justify-content: center;
  background: var(--jaune); color: var(--vert);
  transform: scaleY(0); transform-origin: bottom center;
  transition: transform .32s var(--ease) .14s;
}
.tuile__texte { display: flex; flex-direction: column; gap: 9px; opacity: 0; transform: translateY(6px); transition: opacity .14s, transform .14s; }
.tuile__titre { font: 600 clamp(15px, 1.2vw, 23px)/1 var(--cond); letter-spacing: .2em; text-transform: uppercase; margin-right: -.2em; }
.tuile__cat { font: 400 clamp(12px, .82vw, 16px)/1 var(--cond); letter-spacing: .3em; text-transform: uppercase; margin-right: -.3em; }
@media (hover: hover) {
  .tuile__bouton:hover .tuile__bande, .tuile__bouton:focus-visible .tuile__bande { transform: scaleY(1); transition-delay: 0s; }
  .tuile__bouton:hover .tuile__texte, .tuile__bouton:focus-visible .tuile__texte { opacity: 1; transform: none; transition: opacity .25s .3s, transform .3s var(--ease) .3s; }
}
.tuile__bouton:focus-visible { outline-offset: -4px; }
.mosaique__erreur { grid-column: 1 / -1; padding: 30px; background: var(--jaune); color: var(--vert); font: 500 18px/1.5 var(--cond); }

.voir-plus { width: min(1200px, calc(100% - 2 * var(--g))); margin: 20px auto 0; display: flex; justify-content: flex-end; }
.voir-plus__bouton {
  display: inline-flex; white-space: nowrap; align-items: center; gap: 19px;
  font: var(--label); letter-spacing: var(--espacement-label); text-transform: uppercase; transition: color .2s;
}
.voir-plus__icone { position: relative; width: 41px; height: 41px; border: 1px solid currentColor; border-radius: 50%; transition: transform .45s var(--ease), background .3s, border-color .3s; }
.voir-plus__icone::before, .voir-plus__icone::after { content: ""; position: absolute; left: 50%; top: 50%; width: 15px; height: 1px; margin: -.5px 0 0 -7.5px; background: currentColor; }
.voir-plus__icone::after { transform: rotate(90deg); }
.voir-plus__bouton:hover { color: var(--jaune); }
.voir-plus__bouton:hover .voir-plus__icone { transform: rotate(90deg); }

/* ---------- Zone À propos ---------- */
.apropos { padding-top: 139px; scroll-margin-top: calc(var(--h-entete) + 10px); }
.apropos__grille { width: min(1192px, calc(100% - 2 * var(--g))); margin: 80px auto 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 42px; align-items: start; }
.apropos__gauche { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.exergue {
  margin: -9px -.09em 0 0; font: 600 clamp(26px, 2.08vw, 40px)/1.65 var(--cond); letter-spacing: .09em;
}
.exergue .ligne { display: block; overflow: hidden; }
.exergue .ligne > span { display: inline-block; }
@media (min-width: 901px) { .exergue .ligne > span { white-space: nowrap; } }
.apropos__photo { width: min(425px, 100%); aspect-ratio: 425 / 270; margin: 22px 0 0; overflow: hidden; background: var(--blanc); }
.apropos__photo img { width: 100%; height: 100%; object-fit: cover; }
.apropos__texte { max-width: 420px; margin-top: 7px; }
.apropos__texte p { margin: 0 0 26px; }
.apropos__texte p:last-child { margin-bottom: 0; }

/* ---------- Zone Prestations ---------- */
.prestations { position: relative; margin-top: 162px; padding: 115px 0 96px; scroll-margin-top: calc(var(--h-entete) - 20px); }
.prestations::before, .prestations::after { content: ""; position: absolute; left: 0; right: 0; height: 50px; pointer-events: none; }
.prestations::before { bottom: 100%; background: linear-gradient(to top, rgba(255,237,0,1) 0%, rgba(255,237,0,.74) 12%, rgba(255,237,0,.53) 25%, rgba(255,237,0,.36) 37%, rgba(255,237,0,.23) 50%, rgba(255,237,0,.13) 62%, rgba(255,237,0,.06) 75%, rgba(255,237,0,.02) 88%, rgba(255,237,0,0) 100%); }
.prestations::after { top: 100%; background: linear-gradient(to bottom, rgba(255,237,0,1) 0%, rgba(255,237,0,.74) 12%, rgba(255,237,0,.53) 25%, rgba(255,237,0,.36) 37%, rgba(255,237,0,.23) 50%, rgba(255,237,0,.13) 62%, rgba(255,237,0,.06) 75%, rgba(255,237,0,.02) 88%, rgba(255,237,0,0) 100%); }
.prestations__sous-titre { margin: 17px 0 0; text-align: center; font: 600 clamp(26px, 2.03vw, 39px)/1.2 var(--cond); letter-spacing: .1em; }
.logiciels { list-style: none; margin: 46px auto 0; padding: 0; display: flex; justify-content: center; gap: 29px; }
.logiciels li { width: 60px; height: 60px; }
.logiciels img { width: 60px; height: 60px; object-fit: contain; }
.logiciel-vide { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; border: 1px dashed rgba(255,255,255,.6); font: 500 10px/1.15 var(--cond); letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.colonnes { width: min(1320px, calc(100% - 2 * var(--g) + 40px)); margin: 42px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.colonne { padding: 0 12px; }
.colonne h3 { margin: 0; font: 500 24px/1.2 var(--cond); letter-spacing: .09em; }
.colonne h3::after { content: ""; display: block; width: 200px; max-width: 100%; height: 1px; margin: 14px auto 14px; background: var(--jaune-75); transform-origin: center; }
.colonne p { margin: 0; text-wrap: balance; }
/* Les retours à la ligne écrits dans index.html sont calés sur la maquette 1920 : ils tiennent tant que la colonne mesure au moins ~350 px de texte.
   En dessous (portables en 1280 ou 1366 px de large…), ils laissaient des mots seuls sur une ligne : on les ignore, le texte se coupe seul, en lignes équilibrées. */
@media (max-width: 1499px) { .colonne p br { display: none; } }

/* ---------- Zone Contact ---------- */
.contact { padding-top: 114px; scroll-margin-top: calc(var(--h-entete) - 10px); }

/* ---------- Ancres du menu (v1.3) ----------
   Dès 1180 px, l'en-tête reste en haut de la page : il ne suit plus le défilement, donc il n'y a plus de place à lui laisser. Après un clic dans le menu,
   le titre de la section se pose à --ancre (64 px) du haut de la fenêtre et plus rien de la section précédente ne reste à l'écran. Avant, 120, 120, 90 et 100 px
   de la section précédente restaient visibles (dont les boutons, les flèches et le filet jaune de la mise en avant). 64 px : la capture ANCRAGE_PROJETS_CORRECTION
   de François. Les nombres retranchés sont le padding-top de chaque section (85, 139, 115 et 114 px) : les changer s'ils changent plus haut.
   Contact est la dernière section : sans rien d'autre, la page s'arrêterait avant que son titre n'arrive à 64 px dès que la fenêtre dépasse 1 110 px de haut
   (celle de François : 1 148 px). La règle « .pied » plus bas (« Ancre Contact ») rallonge alors le bas de la page de ce qui manque.
   RÉGLAGE : --ancre dans :root (plus petit = le titre monte). RETOUR À LA v1.2.2 : supprimer ce bloc et la règle « Ancre Contact ». Sous 1180 px l'en-tête est fixe : rien ne change. */
@media (min-width: 1180px) {
  .projets { scroll-margin-top: calc(var(--ancre) - 85px); }
  .apropos { scroll-margin-top: calc(var(--ancre) - 139px); }
  .prestations { scroll-margin-top: calc(var(--ancre) - 115px); }
  .contact { scroll-margin-top: calc(var(--ancre) - 114px); }
}
.contact__grille { width: min(900px, calc(100% - 2 * var(--g))); margin: 66px auto 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 41px; align-items: start; }
.contact__texte { text-align: right; padding-top: 1px; }
.contact__accroche { margin: -4px 0 10px; font: 400 26px/1 var(--cond); letter-spacing: .03em; }
.contact__texte p { margin: 0; }
.contact__mail { display: inline-block; margin-top: 51px; padding-bottom: 8px; border-bottom: 1px solid var(--blanc); font: 400 20px/1 var(--texte); text-decoration: none; transition: color .2s, border-color .2s; }
.contact__mail:hover { color: var(--jaune); border-color: var(--jaune); }
.formulaire { position: relative; max-width: 420px; padding-top: 12px; }
.champ { display: block; margin-bottom: 46px; }
.champ__label { display: block; font: 500 15px/1 var(--texte); letter-spacing: .14em; text-transform: uppercase; }
.champ__saisie {
  display: block; width: 100%; height: 44px; margin-top: 6px; padding: 0;
  background: transparent; border: 0; border-bottom: 1px solid var(--blanc); border-radius: 0;
  color: var(--blanc); font: 400 18px/1.4 var(--texte); outline: none; transition: border-color .2s;
}
textarea.champ__saisie { height: 153px; padding-top: 10px; resize: vertical; }
.champ__saisie:focus { border-bottom-color: var(--jaune); }
.champ__saisie:focus-visible { outline: none; box-shadow: 0 1px 0 var(--jaune); }
.champ--piege { position: absolute; left: -9999px; }
.envoyer {
  width: 240px; height: 50px; margin-top: -28px; background: var(--jaune); color: var(--vert);
  font: 600 16px/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; transition: background .2s, color .2s;
}
.envoyer:hover { background: var(--blanc); }
.envoyer[disabled] { opacity: .6; cursor: progress; }
.formulaire__etat { position: absolute; left: 0; right: 0; top: 100%; margin: 14px 0 0; font: 500 18px/1.4 var(--cond); letter-spacing: .04em; }
.formulaire__etat.ok { color: var(--jaune); }

/* ---------- Pied de page ---------- */
.pied { width: min(1280px, calc(100% - 2 * var(--g))); margin: 110px auto 0; padding: 34px 0 118px; border-top: 1px solid rgba(255,255,255,.85); display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; font: 400 15px/1.2 var(--texte); }
.pied__gauche { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.pied p { margin: 0; }
.pied__mentions { text-decoration: none; transition: color .2s; }
.pied__mentions:hover { color: var(--jaune); }
/* Ancre Contact (v1.3) : la page s'arrête 1 046 px sous le titre « Contact ». Pour que ce titre puisse monter à --ancre dans une fenêtre haute (le navigateur ne défile
   pas au-delà de la fin de la page), on ajoute sous le pied de page la hauteur qui manque : fenêtre − --ancre − 1 036 px (1 046 moins 10 px de marge), jamais moins que 0.
   Rien ne change tant que la fenêtre fait moins de 1 100 px de haut (à 1 148 px : 48 px de vert en plus, invisibles). Sous 1180 px : inutile, l'en-tête est fixe. */
@media (min-width: 1180px) {
  .pied { padding-bottom: calc(118px + max(0px, 100vh - var(--ancre) - 1036px)); }
}

/* ---------- Pop-up projet : fond vert (95 %) sur toute la page ---------- */
.fiche {
  position: fixed; inset: 0; z-index: 120;                 /* au-dessus de l'en-tête (90) et du menu (55) */
  --cadre-fiche: min(1280px, calc(100% - 2 * var(--g)));
  /* En-tête de la fiche proportionnel à la hauteur de la fenêtre (retour 3 de la série 02 ; repris en v1.2.2).
     Repères de la maquette POP_UP_02 à 1920 × 1080 : croix à 39 px du haut, titre à 102 px, texte sur une ligne, 1re image à 255 px.
     (Avant la v1.2 : 165, 249 et 402 px, soit 147 px plus bas.) À partir de 955 px de haut, rien ne bouge : ce sont les valeurs de la maquette.
     En dessous, tout se resserre en proportion de la hauteur (croix, titre, texte, espaces), si bien que la 1re image reste vers 27 % de la
     hauteur de la fenêtre avec un texte d'une ligne, au lieu de descendre. Cas typique : un écran 1920 × 1080 réglé à 150 % donne 1280 × 590.
     RÉGLAGE : « 10.7vh » dans --f-titre (plus petit = tout monte, plus grand = tout descend ; 10.7vh × 955 = 102 px).
     RETOUR À LA v1.2.1 : --f-titre: min(clamp(92px, calc(61.3vh - 302.8px), 102px), 13vw);
                          --f-croix: max(16px, calc(var(--f-titre) + var(--f-taille) / 2 - 93px));
                          padding bas de .fiche__entete : clamp(24px, 6vh, 52px) ; .fiche__desc : 20px ; croix : 42 px (et top: 18px sous 1180 px). */
  --f-taille: clamp(30px, 3.13vw, 60px);                   /* taille du titre */
  --f-titre: min(clamp(56px, 10.7vh, 102px), 13vw);        /* hauteur au-dessus du titre */
  --f-croix-t: clamp(34px, calc(2.03vh + 22.7px), 42px);   /* taille de la croix */
  --f-croix: max(8px, calc(var(--f-titre) + var(--f-taille) / 2 - 21px - var(--f-croix-t) - clamp(16px, 3.15vh, 30px)));   /* croix : toujours au moins 16 px au-dessus de la flèche de droite */
  --f-bas: clamp(18px, calc(7.3vh - 17.7px), 52px);        /* espace sous l'en-tête */
  --f-desc: clamp(17px, calc(0.6vh + 14.3px), 20px);       /* taille du texte de présentation */
}
.fiche__panneau {
  position: absolute; inset: 0;
  background: rgba(0, 155, 111, .95);
  display: flex; flex-direction: column; outline: none;
}
.fiche__fermer { position: absolute; z-index: 3; top: var(--f-croix); right: calc((100% - var(--cadre-fiche)) / 2 - 11px); width: var(--f-croix-t); height: var(--f-croix-t); color: var(--blanc); transition: color .2s, transform .3s var(--ease); }
.fiche__fermer svg { width: 100%; height: 100%; }
.fiche__fermer:hover { color: var(--jaune); transform: rotate(90deg); }
.fiche__entete { position: relative; flex: none; width: var(--cadre-fiche); margin: 0 auto; padding: var(--f-titre) 64px var(--f-bas); text-align: center; }
.fiche__fleche { position: absolute; z-index: 2; top: calc(var(--f-titre) + var(--f-taille) / 2 - 21px); width: 22px; height: 42px; color: var(--blanc); transition: color .2s, transform .25s var(--ease); }   /* z-index : le bloc du titre, élargi depuis la v1.2.2, passait par-dessus la flèche de gauche et avalait le clic (v1.3) */
.fiche__fleche svg { width: 22px; height: 42px; overflow: visible; }
.fiche__fleche--prec { left: 0; }
.fiche__fleche--suiv { right: 0; }
.fiche__fleche:hover { color: var(--jaune); }
.fiche__fleche--prec:hover { transform: translateX(-4px); }
.fiche__fleche--suiv:hover { transform: translateX(4px); }
.fiche__titre { position: relative; top: -.04em; margin: 0 -.28em 0 0; font: 600 var(--f-taille)/1 var(--cond); letter-spacing: .28em; text-transform: uppercase; color: var(--jaune); }
.fiche__desc { max-width: 900px; margin: clamp(8px, 1.3vh, 12px) auto 0; font: 400 var(--f-desc)/1.45 var(--texte); }
.fiche__desc p { margin: 0 0 .6em; }
.fiche__desc p:last-child { margin-bottom: 0; }
.fiche__desc strong { font-weight: 600; }
@media (min-width: 901px) {
  .fiche__contenu--texte { margin: 0 -64px; }      /* le texte de présentation peut prendre toute la largeur du cadre (moins de lignes, donc des images plus hautes) ; le titre reste à l'écart des flèches */
  .fiche__titre { padding: 0 64px; }
}
.fiche__corps { position: relative; flex: 1; min-height: 0; }
.fiche__defilement { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.fiche__defilement::-webkit-scrollbar { display: none; }
.fiche__medias { width: var(--cadre-fiche); margin: 0 auto; padding-bottom: 60px; display: flex; flex-direction: column; gap: 53px; }
.fiche__media { width: 100%; margin: 0; background: transparent; }   /* margin: 0 — un <figure> a sinon 40 px de marge de chaque côté, qui décalait les images */
.fiche__media img, .fiche__media video { width: 100%; height: auto; }
.fiche__media--embed { position: relative; aspect-ratio: 16 / 9; }
.fiche__media--embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fiche__media--local { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; background: var(--vert-fonce); text-align: center; font: 500 clamp(16px, 1.4vw, 22px)/1.4 var(--cond); letter-spacing: .04em; }
.fiche__media--local p { margin: 0; max-width: 720px; }
.fiche__media--local a { color: var(--jaune); text-transform: uppercase; letter-spacing: .16em; }
/* ascenseur : 28 px à droite des images (jamais dessus) */
.fiche__ascenseur { position: absolute; top: 0; bottom: 40px; left: calc(50% + var(--cadre-fiche) / 2 + 28px); width: 11px; border-radius: 6px; background: var(--vert-fonce); }
.fiche__curseur { position: absolute; left: 3px; top: 2px; width: 5px; min-height: 40px; border-radius: 3px; background: var(--jaune); cursor: grab; touch-action: none; }
.fiche__curseur:active { cursor: grabbing; }
.fiche__contenu { will-change: transform, opacity; }
.fiche__media.a-reveler { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .9s var(--ease); }
.fiche__media.a-reveler.vu { opacity: 1; transform: none; }

/* ---------- Mentions légales ---------- */
.mentions { width: min(860px, calc(100% - 32px)); max-height: min(86vh, 900px); padding: 0; border: 0; background: var(--vert); color: var(--blanc); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.mentions::backdrop { background: rgba(0, 60, 43, .55); }
.mentions__corps { padding: 56px clamp(22px, 5vw, 64px) 48px; font: 400 15px/1.6 var(--texte); }
.mentions h2 { margin: 0 0 28px; font: 600 clamp(22px, 2.4vw, 30px)/1.1 var(--cond); letter-spacing: .18em; text-transform: uppercase; color: var(--jaune); }
.mentions h3 { margin: 26px 0 6px; font: 600 18px/1.2 var(--cond); letter-spacing: .1em; text-transform: uppercase; }
.mentions p { margin: 0 0 8px; }
.mentions__fermer { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; color: var(--blanc); }
.mentions__fermer:hover { color: var(--jaune); }

/* ---------- Bandeau de contrôle (aperçu local uniquement) ---------- */
.controle { position: fixed; left: 16px; bottom: 16px; z-index: 400; width: min(520px, calc(100% - 32px)); max-height: 45vh; overflow: auto; padding: 16px 18px 14px; background: #fff; color: #222; border-left: 6px solid #e5484d; box-shadow: 0 10px 40px rgba(0,0,0,.3); font: 400 14px/1.45 var(--texte); }
.controle strong { display: block; margin-bottom: 6px; font-size: 15px; }
.controle ul { margin: 0; padding-left: 18px; }
.controle button { position: absolute; top: 6px; right: 10px; font-size: 20px; color: #666; }

/* ==========================================================================
   Tablette et mobile
   ========================================================================== */
@media (max-width: 1179px) {
  :root { --g: clamp(20px, 5vw, 48px); --droite-nav: 20px; --pos-entete: fixed; }
  .entete__fonction { display: none; }
  .entete__menu {
    display: flex; position: absolute; right: var(--g); top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  }
  .entete__menu span { display: block; width: 26px; height: 2px; background: var(--blanc); transition: transform .3s var(--ease); }
  .entete__menu[aria-expanded="true"] span:first-child { transform: translateY(5px) rotate(45deg); }
  .entete__menu[aria-expanded="true"] span:last-child { transform: translateY(-5px) rotate(-45deg); }
  .nav {
    inset: var(--h-entete) 0 0 0; top: var(--h-entete); right: 0; z-index: 58;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px;
    background: var(--vert); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s;
  }
  .nav.ouvert { opacity: 1; visibility: visible; transition: opacity .3s; }
  .nav__liste { align-items: center; gap: 26px; }
  .nav__lien { font-size: 22px; padding: 8px 14px 8px 16px; }
  .nav__lien::before { transform-origin: right center; }
  .nav__pied { display: block; margin: 0; font: var(--label); letter-spacing: var(--espacement-label); text-transform: uppercase; opacity: .9; }
  .retour-haut { top: auto; right: 16px; bottom: 16px; width: 46px; height: 46px; border-radius: 50%; background: var(--vert-fonce); display: flex; align-items: center; justify-content: center; }
  .retour-haut svg { width: 20px; height: 10px; }
  .colonnes { width: calc(100% - 2 * var(--g)); }
  .fiche__ascenseur { left: auto; right: 6px; width: 7px; }
  .fiche__curseur { left: 1px; width: 5px; }
  .fiche__fermer { right: calc(var(--g) - 6px); top: min(18px, var(--f-croix)); }
}

@media (max-width: 900px) {
  .apropos__grille { grid-template-columns: 1fr; row-gap: 40px; }
  .apropos__gauche { align-items: center; text-align: center; }
  .exergue { margin-right: 0; }
  .apropos__texte { max-width: 560px; margin: 0 auto; }
  .contact__grille { grid-template-columns: 1fr; row-gap: 50px; }
  .contact__texte { text-align: center; }
  .formulaire { margin: 0 auto; width: 100%; }
}

@media (max-width: 759px) {
  :root { --h-entete: 72px; --h-degrade: 44px; --label: 400 15px/1 var(--cond); }
  .entete__logo img { width: 161px; height: 41px; }
  .highlight { padding-top: calc(var(--h-entete) + 34px); }
  .highlight__legende { font-size: 14px; }
  .highlight__points { margin-top: 18px; }
  .filet { margin-top: 50px; width: 140px; }
  .projets { padding-top: 56px; }
  .titre--projets img { width: 224px; }
  .titre--apropos img { width: 259px; }
  .titre--prestations img { width: 300px; }
  .titre--contact img { width: 238px; }
  .filtres { gap: 14px 26px; margin-top: 38px; }
  .mosaique { grid-template-columns: repeat(2, 1fr); margin-top: 22px; }
  .tuile__bande { display: none; }
  .voir-plus { justify-content: center; margin-top: 26px; }
  .apropos { padding-top: 90px; }
  .apropos__grille { margin-top: 44px; }
  .exergue { font-size: 25px; letter-spacing: .07em; }
  .apropos__photo { margin-top: 24px; }
  .prestations { margin-top: 110px; padding: 80px 0 70px; }
  .logiciels { gap: 18px; margin-top: 34px; }
  .colonnes { grid-template-columns: 1fr; row-gap: 44px; margin-top: 44px; }
  .colonne p br { display: none; }
  .colonne p { max-width: 360px; margin: 0 auto; }
  .contact { padding-top: 84px; }
  .contact__grille { margin-top: 44px; }
  .contact__texte p br { display: none; }
  .pied { flex-direction: column; align-items: center; text-align: center; margin-top: 80px; padding-bottom: 90px; }
  .fiche__entete { padding: 64px 44px 26px; }
  .fiche__fleche { top: 60px; width: 16px; height: 32px; }
  .fiche__fleche svg { width: 16px; height: 32px; }
  .fiche__desc { font-size: 16px; margin-top: 16px; }
  .fiche__medias { gap: 20px; width: calc(100% - 32px); }
  .fiche__fermer { width: 36px; height: 36px; top: 14px; }
  .fiche__fermer svg { width: 36px; height: 36px; }
}

@media (max-height: 520px) and (orientation: landscape) {
  :root { --h-entete: 60px; --h-degrade: 34px; }
  .entete__logo img { width: 141px; height: 36px; }
  .fiche__entete { padding: 22px 60px 14px; }
  .fiche__fleche { top: 18px; }
  .fiche__fermer { top: 6px; right: 6px; width: 32px; height: 32px; }
  .fiche__fermer svg { width: 32px; height: 32px; }
  .fiche__desc { margin-top: 8px; font-size: 15px; }
  .nav { gap: 18px; }
  .nav__liste { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
