/* L.Paysage — feuille de style du site */
@font-face { font-family: "Hanken Grotesk"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/hanken-grotesk-latin-700-normal.woff2") format("woff2"); }

:root {
  --bleu: #0D3A42;
  --texte: #17262A;
  --texte-2: #3B4B4E;
  --gris: #56686A;
  --filet: #E2E2DF;
  --fond: #FFFFFF;
  --fond-2: #F3F3F1;
  --marge: clamp(16px, 5.5vw, 80px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--bleu); }
a:hover { color: #3F6F68; }
main { flex: 1 0 auto; }

/* En-tête */
.entete {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 32px; padding: 12px var(--marge); min-height: 84px;
  border-bottom: 1px solid var(--filet);
}
.entete .logo img { width: 55px; height: 60px; }
.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 36px; font-size: 17px; letter-spacing: 0.04em; }
.menu a { color: var(--texte); font-weight: 600; text-decoration: none; padding: 10px 0; border-bottom: 1px solid transparent; }
.menu a[aria-current="page"] { border-bottom-color: var(--texte); }
.entete { position: sticky; top: 0; z-index: 60; background: #fff; }
.menu-bouton { display: none; }

.logo { display: block; width: 55px; height: 60px; }

/* Menu mobile (burger) */
@media (max-width: 760px) {
  .entete { flex-wrap: nowrap; }
  .js .menu-bouton {
    display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 48px; height: 48px; margin-right: -10px;
    padding: 0 10px; background: none; border: 0; cursor: pointer;
  }
  .menu-bouton span { display: block; height: 2px; background: var(--texte); transition: transform 0.2s, opacity 0.2s; }
  .entete.ouvert .menu-bouton span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .entete.ouvert .menu-bouton span:nth-child(2) { opacity: 0; }
  .entete.ouvert .menu-bouton span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .js .menu { display: none; }
  .js .entete.ouvert .menu {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; padding: 8px var(--marge) 24px; border-bottom: 1px solid var(--filet); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  }
  .js .entete.ouvert .menu a { padding: 14px 0; font-size: 17px; }
}

/* Accueil */
.accueil-photo { width: 100%; height: calc(100vh - 85px); height: calc(100svh - 85px); min-height: 420px; object-fit: cover; object-position: center 60%; }
.bandeau {
  background: var(--bleu); color: #fff; padding: 28px var(--marge) 32px;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px;
}
.bandeau .texte { max-width: 820px; display: flex; flex-direction: column; gap: 8px; }
.bandeau h1 { margin: 0; font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
.bandeau p { margin: 0; font-size: 15px; line-height: 1.55; color: #D5E1DE; }
.bandeau a { color: #fff; font-size: 15px; letter-spacing: 0.04em; padding: 12px 0; text-decoration: none; border-bottom: 1px solid #fff; }

.actuels { padding: 48px var(--marge) 96px; display: flex; flex-direction: column; gap: 40px; }
.actuels-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; }
.actuels h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.lien-souligne { font-size: 15px; letter-spacing: 0.04em; padding: 12px 0; text-decoration: none; border-bottom: 1px solid var(--bleu); }
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 36px 20px; }
.vignette { display: flex; flex-direction: column; gap: 16px; text-decoration: none; color: var(--texte); }
a.vignette:hover { color: var(--texte); }
a.vignette:hover img { opacity: 0.9; }
.vignette img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity 0.2s; }
.vignette .infos { display: flex; flex-direction: column; gap: 4px; }
.vignette .type { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gris); }
.vignette .titre { font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.vignette .lieu { font-size: 15px; color: var(--gris); }

/* Pages de contenu */
.page-titre { padding: 48px var(--marge) 32px; }
.page-titre h1 { margin: 0; font-size: clamp(26px, 2.4vw, 32px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.bloc { margin: 0 var(--marge); border-top: 1px solid var(--filet); padding: 32px 0 56px; display: flex; flex-wrap: wrap; gap: 20px clamp(24px, 4vw, 64px); }
.bloc > h2 { flex: 4 1 240px; margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.bloc > .contenu { flex: 7 1 420px; min-width: 0; }

.presentation { padding: 0 var(--marge) 56px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px clamp(24px, 4vw, 64px); }
.presentation figure { flex: 0 1 240px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.presentation figure img { width: 100%; height: auto; aspect-ratio: 286 / 314; object-fit: cover; }
.presentation .texte { flex: 1 1 480px; max-width: 760px; display: flex; flex-direction: column; gap: 14px; color: var(--texte-2); }
.presentation .texte p { margin: 0; }
.presentation .texte p:first-child { font-size: 16px; color: var(--texte); }
figcaption { font-size: 14px; color: var(--gris); }

.liste { margin: 0; padding: 0; list-style: none; font-size: 15px; }
.liste li { padding: 9px 0; border-bottom: 1px solid var(--filet); }
.parcours > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--filet); }
.parcours .date { color: var(--gris); }
.parcours .poste { font-weight: 500; display: block; }
.parcours .detail { color: var(--texte-2); font-size: 15px; display: block; }
.partenaires { display: flex; flex-direction: column; gap: 28px; }
.partenaires .groupe { display: flex; flex-direction: column; gap: 6px; }
.etiquette { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gris); }
.photo-pleine img { width: 100%; height: 72vh; min-height: 320px; object-fit: cover; }
.photo-pleine figcaption { padding: 12px var(--marge) 72px; }

/* Contact */
.contact-page { padding: 48px var(--marge) 96px; }
.contact-infos { max-width: 720px; display: flex; flex-direction: column; gap: 32px; }
.contact-infos h1 { margin: 0; font-size: clamp(30px, 3vw, 40px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.contact-infos p { margin: 0; color: var(--texte-2); }
.coordonnees > div { display: flex; flex-direction: column; gap: 2px; padding: 16px 0; border-top: 1px solid var(--filet); }
.coordonnees > div:first-child { border-top-color: var(--texte); }
.coordonnees > div:last-child { border-bottom: 1px solid var(--filet); }
.coordonnees a:hover { text-decoration: underline; }
.coordonnees a, .coordonnees .valeur { font-size: clamp(17px, 1.5vw, 20px); text-decoration: none; color: var(--texte); overflow-wrap: anywhere; }

/* Mentions légales */
.mentions { padding: 0 var(--marge) 72px; max-width: 900px; }
.mentions h2 { font-size: 18px; font-weight: 600; margin: 32px 0 8px; }
.mentions p { margin: 0 0 8px; color: var(--texte-2); }

/* Pied de page */
.pied { background: var(--bleu); color: #E4ECEA; padding: 56px var(--marge) 32px; display: flex; flex-direction: column; gap: 40px; font-size: 15px; }
.pied a { color: #E4ECEA; text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; }
.pied-haut { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 48px; }
.pied-nom { display: flex; flex-direction: column; gap: 8px; }
.pied-nom strong { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.pied-nom span, .pied .etiquette { color: #A9C0BC; }
.pied-colonnes { display: flex; flex-wrap: wrap; gap: 32px 80px; }
.pied-colonnes > div { display: flex; flex-direction: column; gap: 6px; }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid #2E5A60; padding-top: 20px; font-size: 13px; color: #A9C0BC; }
.pied-bas a { color: #A9C0BC; text-decoration: underline; }

/* Accessibilité */
.evitement { position: absolute; left: -9999px; }
.evitement:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }
:focus-visible { outline: 2px solid var(--bleu); outline-offset: 2px; }

/* Fiches projets */
.fiche-hero { margin: 0; position: relative; }
.fiche-hero img { width: 100%; height: 82vh; min-height: 340px; max-height: 1100px; object-fit: cover; }
@media (max-width: 760px) { .fiche-hero img { height: calc(100vh - 85px); height: calc(100svh - 85px); max-height: none; } }
.fiche-image { margin: 0; position: relative; }
.fiche-image img { width: 100%; height: auto; }
.fiche-paire { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fiche-paire .fiche-image img { aspect-ratio: 4 / 3; object-fit: cover; }
.fiche-hero figcaption, .fiche-image figcaption {
  position: absolute; left: 16px; right: 16px; bottom: 12px; color: #fff; font-size: 13px; line-height: 1.35;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 0 12px rgba(0, 0, 0, 0.35);
}
.fiche-hero figcaption { left: var(--marge); bottom: 16px; }
.fiche { padding: 8px var(--marge) 72px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px clamp(24px, 4vw, 64px); }
.fiche-images { flex: 7 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.fiche-texte { flex: 4 1 280px; position: sticky; top: 100px; display: flex; flex-direction: column; gap: 12px; padding-top: 16px; }
.fiche-texte h1 { margin: 0; font-size: clamp(24px, 2.2vw, 30px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.fiche-lieu { font-size: 14px; color: var(--gris); }
.fiche-texte p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--texte-2); }
.fiche-texte .fiche-chapeau { margin-top: 6px; font-size: 16px; line-height: 1.5; color: var(--texte); }
.fiche-infos { margin: 8px 0 4px; font-size: 13px; line-height: 1.45; border-bottom: 1px solid var(--filet); }
.fiche-infos div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 7px 0; border-top: 1px solid var(--filet); }
.fiche-infos dt { color: var(--gris); }
.fiche-infos dd { margin: 0; }
.fiche-nav { margin: 0 var(--marge); border-top: 1px solid var(--filet); padding: 20px 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; }
.fiche-nav a { display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: var(--texte); }
.fiche-prec { grid-column: 1; align-items: flex-start; text-align: left; }
.fiche-suiv { grid-column: 2; align-items: flex-end; text-align: right; }
.fiche-nav .etiquette { font-size: 12px; letter-spacing: 0.08em; color: var(--texte-2); font-weight: 600; }
.fiche-nav .titre { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.fiche-nav a:hover .titre { text-decoration: underline; }
@media (max-width: 640px) {
  .fiche-nav { grid-template-columns: 1fr; }
  .fiche-prec, .fiche-suiv { grid-column: 1; align-items: flex-start; text-align: left; }
  .fiche-suiv { order: -1; }
}

@media (max-width: 760px) {
  .fiche-texte { order: -1; position: static; }
}

/* Book */
.book { position: relative; height: calc(100vh - 85px); height: calc(100svh - 85px); min-height: 420px; padding: 8px 8px 4px; background: #fff; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.book-scene { flex: 1 1 auto; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; }
.book-zone { position: relative; overflow: hidden; flex: 0 0 auto; background: #fff; box-shadow: 0 2px 22px rgba(0, 0, 0, 0.14); touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.book-zone.zoome { touch-action: none; cursor: grab; }
.book-zone.zoome.saisie { cursor: grabbing; }
.book-pages { display: grid; grid-template-columns: 1fr 1fr; background: #fff; width: 100%; height: 100%; transform-origin: 0 0; will-change: transform; }
.book-pages.seule { grid-template-columns: 1fr; }
.book-pages img { cursor: zoom-in; }
.book-zone.zoome .book-pages img, .book-zone.zoome .book-pages button { cursor: inherit; }
.book-pages button { padding: 0; border: 0; background: #fff; cursor: pointer; display: block; min-width: 0; min-height: 0; }
.book-pages button[hidden] { display: none; }
.book-pages:not(.seule) #page-droite { border-left: 1px solid var(--filet); }
.book-pages img { width: 100%; height: 100%; object-fit: contain; display: block; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.book-fleche {
  flex: 0 0 52px; width: 52px; height: 52px; border-radius: 999px; border: 1px solid var(--bleu); background: #fff; color: var(--bleu);
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.book-fleche:disabled { opacity: 0.25; cursor: default; }
.book-infos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 24px; font-size: 13px; }
.book-compteur { color: var(--texte-2); }
.book-zoom { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 600; color: var(--bleu); background: none; border: 0; padding: 8px 0; cursor: pointer; }
body.sans-defilement { overflow: hidden; }
@media (max-width: 699px) {
  .book-scene { gap: 0; position: relative; }
  .book-fleche { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; background: rgba(255, 255, 255, 0.85); }
  #precedent { left: 4px; } #suivant { right: 4px; }
}
.fiche-paire .fiche-image figcaption { left: 10px; right: 10px; bottom: 8px; font-size: 12px; }
@media (max-width: 520px) { .fiche-paire { grid-template-columns: 1fr; } }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Book sur ordinateur : un clic sur une page l'ouvre en plus grand (lecteur), avec défilement vertical */
.book-aide { color: var(--gris); }
@media (max-width: 699px) { .book-aide { display: none; } }
@media (min-width: 700px) { .book-zoom { display: none; } }
@media (max-width: 699px) { .book-pages img { cursor: pointer; } }
.lecteur { position: fixed; inset: 0; z-index: 200; background: rgba(16, 28, 31, 0.97); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lecteur[hidden] { display: none; }
.lecteur-defil { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; padding: 28px 96px 56px; display: flex; justify-content: center; align-items: flex-start; }
.lecteur-page { display: block; width: min(940px, 100%); height: auto; background: #fff; box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5); cursor: zoom-out; -webkit-user-select: none; user-select: none; }
.lecteur-fermer, .lecteur-fleche {
  position: absolute; z-index: 2; width: 48px; height: 48px; border-radius: 999px; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.55); background: rgba(30, 43, 46, 0.7); color: #fff;
}
.lecteur-fermer:hover, .lecteur-fleche:hover { background: rgba(60, 80, 84, 0.9); }
.lecteur-fermer { top: 18px; right: 28px; }
.lecteur-fleche { top: 50%; transform: translateY(-50%); }
.lecteur-fleche:disabled { opacity: 0.25; cursor: default; }
#lecteur-prec { left: 24px; } #lecteur-suiv { right: 24px; }
.lecteur-compteur { position: absolute; z-index: 2; top: 28px; left: 28px; color: #DCE6E4; font-size: 13px; letter-spacing: 0.04em; }
@media (max-width: 1100px) { .lecteur-defil { padding-left: 24px; padding-right: 24px; } #lecteur-prec { top: auto; bottom: 20px; left: 24px; } #lecteur-suiv { top: auto; bottom: 20px; right: 24px; } }
