/* ==========================================================
   AquaLypso — feuille de style du site
   Mise en page : bandeaux bleu nuit pleine largeur, texte aligné à gauche,
   titres condensés qui rappellent le « AQUA » du logo.
   Pour changer une couleur partout, modifiez seulement le bloc :root.
   ========================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-standard-normal.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("../fonts/literata-latin-standard-normal.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("../fonts/literata-latin-standard-italic.woff2") format("woff2");
  font-weight: 200 900; font-style: italic; font-display: swap;
}

:root {
  color-scheme: dark;
  --nuit: #071a2b;        /* fond général, bleu nuit profond */
  --nuit-claire: #0d2a43; /* sections en relief */
  --abysse: #03101b;      /* pied de page */
  --ecume: #e6eef2;       /* texte principal */
  --brume: #9fb4c2;       /* texte secondaire */
  --filet: #22405a;       /* filets et bordures */
  --rouge: #b30000;       /* rouge du logo (« AQUA ») : boutons */
  --rouge-fonce: #8e0000;
  --orange: #ff6700;      /* orange du logo (« LYPSO ») : liens et repères */
  --pointe: #f2c14e;      /* focus clavier */

  --titre: "Archivo", "Arial Narrow", Arial, sans-serif;
  --texte: "Literata", Georgia, "Times New Roman", serif;

  --largeur: 1180px;
  --mesure: 66ch;
  --gouttiere: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--nuit);
  color: var(--ecume);
  font-family: var(--texte);
  font-size: 1.125rem;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--titre); line-height: 1.05; margin: 0 0 .55em; text-wrap: balance; color: #fff; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 760; font-stretch: 72%; letter-spacing: -.005em; line-height: .98; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 720; font-stretch: 76%; }
h3 { font-size: 1.3rem; font-weight: 620; font-stretch: 92%; line-height: 1.2; }
p { margin: 0 0 1em; max-width: var(--mesure); }
strong { color: #fff; font-weight: 600; }

a { color: var(--orange); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: #ff8a3d; }
:focus-visible { outline: 3px solid var(--pointe); outline-offset: 3px; border-radius: 2px; }

.conteneur { max-width: var(--largeur); margin: 0 auto; padding-left: var(--gouttiere); padding-right: var(--gouttiere); }

.lien-evitement { position: absolute; left: -9999px; top: 0; z-index: 10; background: var(--pointe); color: var(--nuit); padding: .6em 1em; font-family: var(--titre); }
.lien-evitement:focus { left: 1rem; top: 1rem; }

/* ---------- En-tête ---------- */

.haut { position: relative; overflow: hidden; isolation: isolate; background: var(--nuit); border-bottom: 1px solid var(--filet); }
.haut .fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.haut.avec-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,26,43,.92) 0%, rgba(7,26,43,.7) 45%, rgba(7,26,43,.25) 100%); }

.entete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 2rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.marque { display: block; }
.marque img { height: 54px; width: auto; }
.navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem 1.7rem; }
.navigation a { font-family: var(--titre); font-size: 1.02rem; font-weight: 520; color: var(--ecume); text-decoration: none; padding: .35em 0; border-bottom: 2px solid transparent; }
.navigation a:hover { color: #fff; border-bottom-color: var(--orange); }
.navigation a[aria-current="page"] { color: #fff; border-bottom-color: var(--rouge); }

/* Accueil : logo en grand + phrase d'accroche */
.accroche { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: center; gap: 2rem 4rem; padding-top: 2.5rem; padding-bottom: 5rem; }
.accroche h1 { max-width: 14ch; }
.accroche .chapo { font-size: clamp(1.12rem, 1.6vw, 1.3rem); color: var(--ecume); max-width: 42ch; }
.accroche .logo-grand { width: 100%; max-width: 340px; justify-self: end; }

/* Titre des pages intérieures */
.titre-page { padding-top: 2.4rem; padding-bottom: 3.2rem; }
.titre-page h1 { max-width: 20ch; }
.titre-page .chapo { font-size: 1.22rem; color: var(--ecume); max-width: 50ch; margin-bottom: 0; }
.fil { font-family: var(--titre); font-size: .98rem; margin: 0 0 1.2rem; }
.fil a { color: var(--brume); text-decoration: none; }
.fil a:hover { color: var(--orange); }

.fiche { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem 2rem; margin: 2rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--filet); max-width: 980px; }
.fiche div { margin: 0; min-width: 0; }
.fiche dt { font-family: var(--titre); font-size: .92rem; color: var(--brume); margin-bottom: .15rem; }
.fiche dd { margin: 0; font-family: var(--titre); font-size: 1.04rem; font-weight: 540; color: #fff; line-height: 1.35; }

/* ---------- Boutons ---------- */

.actions { display: flex; flex-wrap: wrap; gap: .8rem 1rem; margin-top: 1.8rem; }
.bouton { display: inline-block; font-family: var(--titre); font-weight: 640; font-size: 1.04rem; padding: .8em 1.3em; border-radius: 3px; text-decoration: none; border: 1.5px solid transparent; }
.bouton-principal { background: var(--rouge); color: #fff; }
.bouton-principal:hover { background: var(--rouge-fonce); color: #fff; }
.bouton-discret { border-color: rgba(230,238,242,.5); color: var(--ecume); }
.bouton-discret:hover { border-color: #fff; color: #fff; }

/* ---------- Sections ---------- */

.section { padding-top: clamp(3.5rem, 8vw, 6rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.section-relief { background: var(--nuit-claire); }
.intro { font-size: 1.2rem; color: var(--brume); max-width: 58ch; }
.entete-section { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 2rem; }
.entete-section a { font-family: var(--titre); font-weight: 560; }

/* Liste des projets */
.projets { list-style: none; margin: 2.4rem 0 0; padding: 0; border-bottom: 1px solid var(--filet); }
.projet { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: .8rem 3rem; padding: 2rem 0; border-top: 1px solid var(--filet); }
.projet > div { min-width: 0; }
.projet h3 { font-size: clamp(1.7rem, 2.8vw, 2.25rem); font-weight: 760; font-stretch: 72%; margin: 0 0 .3rem; }
.projet h3 a { color: #fff; text-decoration: none; }
.projet h3 a:hover { color: var(--orange); }
.projet .sous-titre { font-family: var(--titre); font-size: 1.05rem; color: var(--brume); margin: 0; line-height: 1.4; }
.projet p { margin-bottom: .7rem; }
.projet .statut { font-family: var(--titre); font-size: .98rem; color: var(--brume); }
.projet .statut strong { color: var(--orange); font-weight: 600; }

/* Savoir-faire */
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 2.4rem 3.5rem; margin-top: 2.4rem; }
.grille > div { min-width: 0; border-top: 2px solid var(--rouge); padding-top: 1rem; }
.grille h3 { margin-bottom: .35rem; }
.grille p { margin: 0; color: var(--brume); }

/* Déroulé d'une mission : une vraie séquence, donc numérotée */
.etapes { list-style: none; counter-reset: etape; margin: 2.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem 2.4rem; }
.etapes li { counter-increment: etape; min-width: 0; }
.etapes li::before { content: counter(etape); display: block; font-family: var(--titre); font-weight: 780; font-stretch: 70%; font-size: 3rem; line-height: 1; color: var(--orange); margin-bottom: .5rem; }
.etapes h3 { margin-bottom: .3rem; }
.etapes p { margin: 0; color: var(--brume); font-size: 1.05rem; }

/* À propos */
.deux-colonnes { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 2.5rem 4rem; align-items: start; }
.reperes { margin: 0; padding: 1.5rem 1.7rem; background: var(--nuit-claire); border-left: 3px solid var(--orange); }
.reperes div + div { margin-top: 1rem; }
.reperes dt { font-family: var(--titre); font-weight: 620; font-size: 1rem; color: #fff; }
.reperes dd { margin: .1rem 0 0; color: var(--brume); font-size: 1.02rem; line-height: 1.5; }

/* Contact */
.bandeau-contact { background: var(--nuit-claire); border-top: 1px solid var(--filet); }
.bandeau-contact .conteneur { padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.courriel { display: inline-block; margin: .4rem 0 1rem; font-family: var(--titre); font-weight: 680; font-stretch: 80%; font-size: clamp(1.45rem, 4.2vw, 2.6rem); color: #fff; overflow-wrap: anywhere; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.courriel:hover { color: var(--orange); }
.coordonnees { font-family: var(--titre); font-size: 1.1rem; line-height: 1.6; }
.coordonnees a { color: var(--ecume); }

/* Pied de page */
.pied { background: var(--abysse); color: var(--brume); font-family: var(--titre); font-size: .96rem; }
.pied .conteneur { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; padding-top: 1.6rem; padding-bottom: 1.6rem; }
.pied p { margin: 0; max-width: none; }
.pied a { color: var(--ecume); }
.pied ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }

/* ---------- Pages intérieures : texte courant ---------- */

.article { padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.article .conteneur > * { max-width: var(--mesure); }
.article h2 { margin-top: 2.6rem; font-size: clamp(1.65rem, 3vw, 2.2rem); }
.article h2:first-child { margin-top: 0; }
.article ul, .article ol { padding-left: 1.2em; }
.article li { margin-bottom: .45em; }
.article li::marker { color: var(--orange); }

.tableau-defilant { overflow-x: auto; margin: 1.6rem 0 2rem; }
table { border-collapse: collapse; width: 100%; font-size: 1rem; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: .65rem .9rem .65rem 0; border-bottom: 1px solid var(--filet); }
thead th { font-family: var(--titre); font-weight: 600; font-size: .96rem; color: var(--brume); border-bottom: 2px solid var(--brume); }
td.nombre, th.nombre { text-align: right; font-variant-numeric: tabular-nums; padding-right: 0; }
tfoot td { font-weight: 600; color: #fff; border-bottom: none; }

figure { margin: 2rem 0 2.4rem; }
figure svg { width: 100%; height: auto; display: block; background: var(--nuit-claire); border: 1px solid var(--filet); }
figcaption { font-size: .98rem; color: var(--brume); margin-top: .7rem; }

.calendrier { list-style: none; padding: 0 !important; margin: 1.6rem 0 2rem; border-left: 2px solid var(--filet); }
.calendrier li { position: relative; padding: 0 0 1.2rem 1.6rem; margin: 0; }
.calendrier li::before { content: ""; position: absolute; left: -7px; top: .5em; width: 12px; height: 12px; border-radius: 50%; background: var(--nuit); border: 2px solid var(--orange); }
.calendrier .quand { display: block; font-family: var(--titre); font-weight: 620; color: #fff; }

.encadre { background: var(--nuit-claire); border-left: 3px solid var(--orange); padding: 1.3rem 1.6rem; margin: 2rem 0; }
.encadre p:last-child { margin-bottom: 0; }
.retour { font-family: var(--titre); margin-top: 3rem; }

/* Texte à compléter avant la mise en ligne : volontairement très visible */
.a-completer { background: var(--pointe); color: var(--nuit); padding: 0 .3em; border-radius: 2px; font-family: var(--titre); font-weight: 600; }

/* ---------- Téléphone ---------- */
@media (max-width: 760px) {
  body { font-size: 1.06rem; }
  .accroche, .projet, .deux-colonnes { grid-template-columns: 1fr; }
  .accroche { padding-top: 1rem; padding-bottom: 3.2rem; }
  .accroche .logo-grand { justify-self: start; max-width: 170px; order: -1; }
  .marque img { height: 46px; }
  .navigation ul { gap: .1rem 1.15rem; }
  .navigation a { font-size: .98rem; }
}

/* ---------- Photos ---------- */

/* Bandeau du haut avec photo : la photo est assombrie à gauche pour garder le texte lisible */
.haut.avec-photo .titre-page { padding-top: clamp(4rem, 10vw, 7.5rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.haut.avec-photo::after { background:
  linear-gradient(90deg, rgba(7,26,43,.9) 0%, rgba(7,26,43,.55) 50%, rgba(7,26,43,.05) 100%),
  linear-gradient(0deg, rgba(7,26,43,.85) 0%, rgba(7,26,43,0) 40%); }
.haut.avec-photo .entete { position: relative; }

/* Accueil : photo à droite de l'accroche */
.photo-accroche { margin: 0; justify-self: end; width: 100%; max-width: 420px; }
.photo-accroche img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 2px; }
.photo-accroche figcaption { font-family: var(--titre); font-size: .9rem; color: var(--brume); margin-top: .5rem; }

/* Projets avec vignette */
.projet.avec-vignette { grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 6fr); }
.vignette { display: block; }
.vignette img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; transition: opacity .2s; }
.vignette:hover img { opacity: .85; }

/* Mosaïque de photos */
.mosaique { list-style: none; margin: 2.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.mosaique li { margin: 0; }
.mosaique img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.mosaique li:first-child { grid-column: span 2; grid-row: span 2; }

/* Photos d'espèces */
.especes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.6rem 0 2rem; max-width: none !important; }
.especes figure { margin: 0; }
.especes img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 2px; }
.especes figcaption { font-style: italic; }

.photo-large { margin: 2rem 0 2.4rem; }
.photo-large img { width: 100%; border-radius: 2px; }
.credit { font-family: var(--titre); font-size: .88rem; color: var(--brume); }

@media (max-width: 900px) {
  .projet.avec-vignette { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .projet.avec-vignette > div:last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .photo-accroche { justify-self: start; max-width: none; order: -1; }
  .photo-accroche img { aspect-ratio: 16 / 10; }
  .projet.avec-vignette { grid-template-columns: 1fr; }
  .mosaique { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .especes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
}

/* ==========================================================
   Version 3 : logo entier, accueil photo plein cadre, réalisations
   ========================================================== */

.marque img { height: 104px; width: auto; }
.entete { align-items: center; }

/* Accueil : la photo du plongeur occupe tout le bandeau et se fond dans le bleu nuit */
.haut-accueil { min-height: min(88vh, 840px); display: flex; flex-direction: column; border-bottom: none; }
.haut-accueil .fond { object-position: 60% 35%; }
.haut-accueil::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(0deg, var(--nuit) 0%, rgba(7,26,43,.75) 22%, rgba(7,26,43,0) 55%),
  linear-gradient(90deg, rgba(7,26,43,.85) 0%, rgba(7,26,43,.45) 45%, rgba(7,26,43,0) 75%); }
.haut-accueil .accroche { display: flex; flex-direction: column; justify-content: flex-end; flex: 1; min-height: 0; padding-top: 2rem; padding-bottom: clamp(3rem, 7vw, 5rem); }
.haut-accueil .accroche h1 { max-width: 16ch; text-shadow: 0 2px 24px rgba(3,16,27,.5); }
.haut-accueil .accroche .chapo { max-width: 46ch; }

.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Réalisations : grandes photos alternées */
.realisations { list-style: none; margin: 2.8rem 0 0; padding: 0; display: grid; gap: clamp(3.5rem, 8vw, 6rem); }
.realisation { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.6rem clamp(2rem, 4vw, 3.5rem); align-items: center; }
.realisation:nth-child(even) .realisation-photo { order: 2; }
.realisation-photo { display: block; overflow: hidden; border-radius: 2px; }
.realisation-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s ease; }
.realisation-photo:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .realisation-photo img { transition: none; } .realisation-photo:hover img { transform: none; } }
.realisation-texte { min-width: 0; }
.realisation .statut { font-family: var(--titre); font-weight: 600; font-size: .98rem; color: var(--orange); margin: 0 0 .5rem; }
.realisation h3, .realisation h2 { font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 780; font-stretch: 70%; line-height: 1; margin: 0 0 .4rem; }
.realisation h3 a, .realisation h2 a { color: #fff; text-decoration: none; }
.realisation h3 a:hover, .realisation h2 a:hover { color: var(--orange); }
.realisation .sous-titre { font-family: var(--titre); font-size: 1.12rem; color: var(--brume); line-height: 1.4; margin: 0 0 1.2rem; }
.interventions { list-style: none; margin: 0 0 1.3rem; padding: 0; display: grid; gap: .55rem; }
.interventions li { position: relative; padding-left: 1.3rem; font-size: 1.04rem; line-height: 1.5; }
.interventions li::before { content: ""; position: absolute; left: 0; top: .62em; width: .55rem; height: 2px; background: var(--rouge); }
.meta { display: flex; flex-wrap: wrap; gap: .6rem 2rem; margin: 0 0 1.2rem; padding-top: 1rem; border-top: 1px solid var(--filet); }
.meta div { min-width: 0; }
.meta dt { font-family: var(--titre); font-size: .88rem; color: var(--brume); }
.meta dd { margin: 0; font-family: var(--titre); font-size: 1rem; font-weight: 540; color: #fff; }
.lien-fiche { font-family: var(--titre); font-weight: 600; }

/* À propos */
.texte-a-propos h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin-top: 2.2rem; }
.texte-a-propos h2:first-child { margin-top: 0; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.trio img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

@media (max-width: 760px) {
  .marque img { height: 80px; }
  .haut-accueil { min-height: 0; }
  .haut-accueil .fond { object-position: 70% 30%; }
  .haut-accueil .accroche { padding-top: 9rem; }
  .realisation { grid-template-columns: 1fr; }
  .realisation:nth-child(even) .realisation-photo { order: 0; }
  .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
}
.haut-accueil > .conteneur { width: 100%; }
.haut-accueil .accroche { align-items: flex-start; }
.haut-accueil .accroche h1 { margin-bottom: .35em; } .haut-accueil .accroche .actions { margin-top: .8rem; }

/* ---------- Vidéo d'ouverture ---------- */
video.fond { pointer-events: none; }
.haut-accueil .accroche { position: relative; }
.pause-video {
  position: absolute; right: var(--gouttiere); bottom: clamp(3rem, 7vw, 5rem);
  font-family: var(--titre); font-size: .9rem; color: var(--ecume);
  background: rgba(3,16,27,.55); border: 1px solid rgba(230,238,242,.35); border-radius: 3px;
  padding: .45em .8em; cursor: pointer;
}
.pause-video:hover { border-color: #fff; color: #fff; }

/* ---------- À la une ---------- */
.a-la-une { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.une { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.6rem clamp(2rem, 4vw, 3.5rem); align-items: center; }
.une-vignette { position: relative; display: block; overflow: hidden; border-radius: 2px; }
.une-vignette img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s ease; }
.une-vignette:hover img { transform: scale(1.03); }
.lecture { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--rouge); box-shadow: 0 6px 30px rgba(3,16,27,.5); transition: transform .2s; }
.lecture::after { content: ""; position: absolute; left: 31px; top: 24px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
.une-vignette:hover .lecture { transform: scale(1.08); }
.une-texte { min-width: 0; }
.une-texte .statut { font-family: var(--titre); font-weight: 600; font-size: .98rem; color: var(--orange); margin: 0 0 .5rem; }
.une-texte h2 { margin-bottom: .5em; }
.une-texte .bouton { margin-top: .6rem; }
@media (prefers-reduced-motion: reduce) { .une-vignette img, .lecture { transition: none; } .une-vignette:hover img, .une-vignette:hover .lecture { transform: none; } }
@media (max-width: 760px) {
  .une { grid-template-columns: 1fr; }
  .pause-video { position: static; margin-top: 1.4rem; align-self: flex-start; }
}

/* ---------- Chef de projet / participation ---------- */
.badge { display: inline-block; font-family: var(--titre); font-weight: 650; font-size: .82rem; line-height: 1; padding: .42em .7em; border-radius: 3px; vertical-align: .15em; margin-right: .5rem; white-space: nowrap; }
.badge-porte { background: var(--rouge); color: #fff; border: 1.5px solid var(--rouge); }
.badge-participation { background: transparent; color: var(--orange); border: 1.5px solid var(--orange); }
.groupe { font-size: clamp(1.35rem, 2.4vw, 1.7rem); font-weight: 680; font-stretch: 84%; margin: 3.2rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--filet); }
.groupe + .realisations { margin-top: 2rem; }
h2.groupe { margin-top: 0; padding-top: 0; border-top: none; }
h2.groupe + .intro { margin-top: .4rem; }
.realisation .statut { color: var(--brume); font-weight: 520; }

/* ---------- À la une : la vidéo en grand, le texte replié dessous ---------- */
.une { grid-template-columns: 1fr; gap: 1.6rem; }
.une-texte { max-width: var(--mesure); }
.une-texte h2 { margin-bottom: .4em; }
.une-resume p { margin-bottom: .8em; }
.une-resume.replie { max-height: 3.4em; overflow: hidden; position: relative; }
.une-resume.replie::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.8em; background: linear-gradient(rgba(7,26,43,0), var(--nuit)); }
.une-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; margin-top: .9rem; }
.une-actions .bouton { margin-top: 0; }
.lire-suite { font-family: var(--titre); font-weight: 600; font-size: 1rem; color: var(--orange); background: none; border: none; padding: .3em 0; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.lire-suite:hover { color: #ff8a3d; }
@media (max-width: 760px) { .une-resume.replie { max-height: 5.1em; } }
.slogan { font-family: var(--texte); font-style: italic; font-weight: 400; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.3; color: var(--ecume); margin: .2rem 0 .6rem; }

/* ---------- Barre de navigation fixe ---------- */
:root { --barre: 136px; --barre-reduite: 76px; }
.barre {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(7,26,43,.94); border-bottom: 1px solid var(--filet);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color .3s, border-color .3s;
}
.barre .entete { padding-top: .55rem; padding-bottom: .55rem; transition: padding .3s; }
.barre .marque img { height: 60px; transition: height .3s, opacity .3s; }
.barre.en-haut { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.barre.en-haut .entete { padding-top: 1rem; padding-bottom: 1rem; }
.barre.en-haut .marque img { height: 104px; }
/* Accueil : en haut de page, le grand logo est sur la photo, donc pas de petit logo dans la barre */
.accueil .barre.en-haut .marque { visibility: hidden; }
.accueil .barre.en-haut .marque img { opacity: 0; }
.haut { padding-top: var(--barre); }
@media (prefers-reduced-motion: reduce) { .barre, .barre .entete, .barre .marque img { transition: none; } }

/* ---------- Accueil : grand logo sur la photo du plongeur ---------- */
.haut-accueil .fond { object-position: 68% 40%; }
.haut-accueil .accroche { justify-content: center; padding-top: 0; }
.logo-accueil { width: auto; height: clamp(220px, 38vh, 380px); margin: 0 0 1.4rem -.6rem; filter: drop-shadow(0 6px 30px rgba(3,16,27,.45)); }
.haut-accueil .accroche h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-stretch: 76%; max-width: 20ch; margin-bottom: .3em; }
.haut-accueil .slogan { font-size: clamp(1.05rem, 1.5vw, 1.25rem); margin: 0 0 .4rem; color: var(--ecume); }

@media (max-width: 760px) {
  :root { --barre: 128px; }
  .barre .marque img { height: 46px; }
  .barre.en-haut .marque img { height: 64px; }
  .barre .entete { flex-wrap: nowrap; gap: .8rem; }
  .navigation ul { flex-wrap: nowrap; gap: .9rem; }
  .navigation a { font-size: .92rem; white-space: nowrap; }
  .haut { padding-top: 96px; }
  .accueil .barre.en-haut .entete { justify-content: flex-end; }
  .logo-accueil { height: 210px; margin-left: -.4rem; }
  .haut-accueil .accroche { padding-top: 1rem; }
  .haut-accueil .fond { object-position: 72% 30%; }
}

/* ---------- Bandeau vidéo en boucle, sous la photo d'accueil ---------- */
.bandeau-video { position: relative; overflow: hidden; background: var(--nuit); }
.bandeau-video video { display: block; width: 100%; height: clamp(260px, 56vw, 720px); object-fit: cover; }
.bandeau-video::before, .bandeau-video::after { content: ""; position: absolute; left: 0; right: 0; height: 22%; pointer-events: none; z-index: 1; }
.bandeau-video::before { top: 0; background: linear-gradient(var(--nuit), rgba(7,26,43,0)); }
.bandeau-video::after { bottom: 0; background: linear-gradient(rgba(7,26,43,0), var(--nuit)); }
.bandeau-video .pause-video { right: max(16px, var(--gouttiere)); bottom: 1.2rem; z-index: 2; }
@media (max-width: 760px) {
  .bandeau-video video { height: 62vw; }
  .bandeau-video .pause-video { position: absolute; margin: 0; font-size: .82rem; }
}

/* ---------- Réseaux sociaux ---------- */
.reseaux { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.reseau {
  display: inline-block; font-family: var(--titre); font-weight: 600; font-size: .92rem; line-height: 1;
  color: var(--ecume); text-decoration: none; padding: .55em .85em; border-radius: 999px;
  border: 1.5px solid rgba(230,238,242,.4); background: rgba(3,16,27,.35);
}
.reseau:hover { color: #fff; border-color: var(--orange); background: rgba(255,103,0,.14); }
.entete { gap: .8rem 1.6rem; }
.navigation { margin-left: auto; }
.reseaux-barre .reseau { font-size: .82rem; padding: .45em .7em; }
.reseaux-accroche { margin-top: 1.6rem; }
.reseaux-accroche span { font-family: var(--titre); font-size: .98rem; color: var(--ecume); margin-right: .4rem; }
.reseaux-grand { margin-top: 1.4rem; gap: .7rem; }
.reseaux-grand .reseau { font-size: 1.05rem; padding: .7em 1.15em; }
@media (max-width: 980px) { .reseaux-barre { display: none; } }
@media (min-width: 761px) {
  .logo-accueil { height: clamp(200px, 31vh, 330px); margin-bottom: 1rem; }
  .haut-accueil .accroche { padding-bottom: clamp(2rem, 5vw, 3.5rem); }
  .haut-accueil .accroche h1 + .slogan { margin-top: -.2rem; }
  .reseaux-accroche { margin-top: 1.2rem; }
}
.video-projet { margin: 1.2rem 0 1rem; max-width: none; }
.article .conteneur > .video-projet { max-width: 900px; }
.lien-video { margin-top: .8rem; }

/* ---------- Bandeau « Parlons de votre projet » ---------- */
.bandeau-contact { position: relative; overflow: hidden; isolation: isolate; background: var(--nuit); border-top: none; }
.bandeau-contact .fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; z-index: -2; }
.bandeau-contact::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, var(--nuit) 0%, rgba(7,26,43,0) 18%, rgba(7,26,43,0) 82%, var(--abysse) 100%),
  linear-gradient(90deg, rgba(7,26,43,.92) 0%, rgba(7,26,43,.62) 45%, rgba(7,26,43,.18) 100%); }
.bandeau-contact .contact-grille { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 2.5rem clamp(2rem, 5vw, 4.5rem); align-items: center; padding-top: clamp(4rem, 9vw, 7rem); padding-bottom: clamp(4rem, 9vw, 7rem); }
.contact-intro { min-width: 0; }
.contact-intro h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-stretch: 70%; font-weight: 780; line-height: .98; margin-bottom: .45em; }
.contact-intro p { font-size: 1.15rem; color: var(--ecume); max-width: 44ch; margin-bottom: 1.6rem; }
.carte-contact {
  margin: 0; min-width: 0; padding: clamp(1.4rem, 3vw, 2.1rem);
  background: rgba(7,26,43,.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(230,238,242,.14); border-top: 3px solid var(--orange); border-radius: 4px;
  display: grid; gap: 1.3rem;
}
.carte-contact div { min-width: 0; }
.carte-contact div + div { padding-top: 1.3rem; border-top: 1px solid rgba(230,238,242,.12); }
.carte-contact dt { font-family: var(--titre); font-size: .9rem; color: var(--brume); margin-bottom: .3rem; }
.carte-contact dd { margin: 0; }
.carte-contact .courriel { margin: 0; font-size: clamp(1.15rem, 2vw, 1.55rem); font-stretch: 86%; }
.carte-contact .telephone { font-family: var(--titre); font-weight: 650; font-size: clamp(1.15rem, 2vw, 1.5rem); color: #fff; text-decoration: none; letter-spacing: .01em; }
.carte-contact .telephone:hover { color: var(--orange); }
.carte-contact .reseaux { gap: .5rem; }
@media (max-width: 760px) {
  .bandeau-contact .contact-grille { grid-template-columns: 1fr; }
  .bandeau-contact::after { background: linear-gradient(180deg, var(--nuit) 0%, rgba(7,26,43,.7) 25%, rgba(7,26,43,.85) 100%); }
}
.grille-a-propos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.6rem clamp(2rem, 5vw, 4.5rem); margin-top: 0; }
.grille-a-propos h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin-bottom: .45em; }
.grille-a-propos p { color: var(--ecume); max-width: 52ch; }
@media (max-width: 760px) { .grille-a-propos { grid-template-columns: 1fr; } }
.pied .credit { flex-basis: 100%; font-size: .84rem; color: var(--brume); padding-top: .8rem; border-top: 1px solid var(--filet); }
.pied .credit a { color: var(--ecume); }
