/* =====================================================================
   Pages de projets — Courvoisier Architecte
   Même système que l'accueil : ivoire #FFFFFA, noir #0D0D0D,
   cinq tailles (28/24 · 21 · 16 · 13), DM Serif Display + Inter,
   deux lignes verticales (texte à gauche, image ou récit à droite).
   ===================================================================== */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter-latin.woff2') format('woff2'); }
@font-face { font-family: 'DM Serif Display'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/dm-serif-display-latin.woff2') format('woff2'); }

:root {
  --bg: #FFFFFA; --ink: #0D0D0D; --text: #444444; --muted: #6B6B6B;
  --line: #E5E3DC; --surface: #F2F0E8;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --wrap: 1400px; --pad: clamp(1.5rem, 5vw, 4rem);
  --gap: clamp(2.5rem, 8vw, 8rem);                 /* même gouttière que l'accueil */
  --col-d: calc((100% - var(--gap)) * 0.490909);   /* largeur de la colonne de droite (ligne verticale de droite) */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --row-pad: clamp(1.75rem, 3.5vw, 3rem);          /* espace au-dessus et au-dessous de chaque partie du récit */
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; font-weight: 400; line-height: 26px;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
address { font-style: normal; }
p { color: var(--text); }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
a:focus { outline: none; }
a:focus-visible, button:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }   /* repère visible au clavier seulement */

/* ===== APPARITIONS EN DOUCEUR ===== */
@view-transition { navigation: auto; }                       /* fondu d'une page à l'autre (navigateurs récents) */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.45s; animation-timing-function: ease; }
main img.img-attente { opacity: 0; transition: opacity 1.1s ease, transform 0.5s var(--ease); }
main img.img-attente.img-vue { opacity: 1; }

/* ===== MENU (identique à l'accueil) ===== */
.nav { position: sticky; top: 0; z-index: 60; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: var(--wrap); margin-inline: auto; padding: 1rem var(--pad); display: flex; align-items: center; gap: 1.5rem; }
.nav-logo { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.nav-logo svg { height: 26px; width: auto; }
.nav-logo path { fill: var(--ink); }
.nav-name {
  display: flex; flex-direction: column; justify-content: space-between; height: 26px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--ink); white-space: nowrap;
}
.nav-name span { display: block; line-height: 0.727em; }
.nav-name span + span { letter-spacing: 0.1875em; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 3rem); white-space: nowrap; }
.nav-right > a { font-size: 13px; line-height: 1.5; letter-spacing: 0.015em; color: var(--ink); transition: color 0.25s var(--ease); }
.nav-right > a:hover { color: var(--muted); }
.nav-hamburger { display: none; width: 36px; height: 36px; align-items: center; justify-content: center; position: relative; z-index: 60; padding: 0; }
.nav-hamburger span, .nav-hamburger span::before, .nav-hamburger span::after {
  display: block; width: 20px; height: 1.5px; background: var(--ink); position: absolute;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.nav-hamburger span::before, .nav-hamburger span::after { content: ''; }
.nav-hamburger span::before { transform: translateY(-6px); }
.nav-hamburger span::after { transform: translateY(6px); }
.nav-hamburger.open span { background: transparent; }
.nav-hamburger.open span::before { transform: rotate(45deg); }
.nav-hamburger.open span::after { transform: rotate(-45deg); }
.mobile-overlay {
  display: none; position: fixed; inset: 0; z-index: 55; background: var(--bg);
  flex-direction: column; justify-content: center; align-items: flex-start; padding: 0 var(--pad);
  opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease);
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-overlay a { display: block; font-family: var(--font-display); font-size: 24px; letter-spacing: 0.01em; color: var(--ink); padding: 0.8rem 0; }
.mobile-overlay .mobile-phone { font-family: var(--font); font-size: 16px; letter-spacing: 0; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
@media (max-width: 720px) {
  .nav-right > a { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-overlay { display: flex; }
}
@media (max-width: 360px) {
  .nav-name { letter-spacing: 0.08em; }
  .nav-name span + span { letter-spacing: 0.1319em; }
}

/* ===== MENU EN COLONNE À GAUCHE, à partir de 1180 px (identique à l'accueil) ===== */
.nav-home, .nav-sub, .nav-sub2 { display: none; }
@media (min-width: 1180px) {
  :root {
    --side: 252px; --shell: 1560px;
    --edge: max(0px, calc((100vw - var(--shell)) / 2));
    --hero-top: clamp(150px, 24vh, 280px);          /* ligne commune : « Accueil » et le titre de la page */
  }
  .nav { position: fixed; top: 0; bottom: 0; left: 0; width: calc(var(--edge) + var(--side)); border-bottom: 0; overflow-y: auto; }
  .nav-inner { position: relative; max-width: none; margin: 0; height: 100%; padding: clamp(2.5rem, 6vh, 4rem) 0 2.5rem calc(var(--edge) + var(--pad)); flex-direction: column; align-items: flex-start; }
  .nav-logo { gap: 0.825rem; }
  .nav-logo svg { height: 28.6px; }
  .nav-name { height: 28.6px; font-size: 0.792rem; }
  .nav-right { position: absolute; top: var(--hero-top); left: calc(var(--edge) + var(--pad)); margin-left: 0; flex-direction: column; align-items: flex-start; gap: 1.1rem; }
  .nav-right > a.nav-home { display: block; }
  .nav-hamburger { display: none; }
  /* Sous-menus repliés par défaut ; ils se déplient pour la section en cours, au survol, et au pied de page */
  .nav-sub { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; padding-left: 1.1rem;
             margin-top: -1.1rem; padding-top: 0; max-height: 0; opacity: 0; overflow: hidden; visibility: hidden;
             transition: max-height 0.45s var(--ease), padding-top 0.45s var(--ease), opacity 0.3s ease, visibility 0s linear 0.45s; }
  .nav-sub.ouvert, .nav.survol .nav-right > a:hover + .nav-sub, .nav-right > a:focus-visible + .nav-sub, .nav.survol .nav-sub:hover, .nav-sub:focus-within {
             max-height: 24rem; padding-top: 0.75rem; opacity: 1; visibility: visible;
             transition: max-height 0.45s var(--ease), padding-top 0.45s var(--ease), opacity 0.4s ease 0.05s, visibility 0s; }
  .nav.mesure .nav-sub { transition: none; }
  /* au pied de page, les sous-menus sont repliés : il ne reste que les cinq entrées principales */
  .nav.pied .nav-sub.ouvert:not(:focus-within) { max-height: 0; padding-top: 0; opacity: 0; visibility: hidden;
             transition: max-height 0.45s var(--ease), padding-top 0.45s var(--ease), opacity 0.3s ease, visibility 0s linear 0.45s; }
  .nav.pied.mesure .nav-sub { max-height: 0 !important; padding-top: 0 !important; transition: none !important; }
  .nav-sub a { font-size: 13px; line-height: 1.5; letter-spacing: 0.015em; color: var(--muted); transition: color 0.25s var(--ease); }
  .nav-sub a:hover, .nav-sub a.actif { color: var(--ink); }
  /* troisième niveau : les parties de la page ouverte ; la partie affichée est soulignée */
  .nav-sub2 { display: flex; flex-direction: column; align-items: flex-start; gap: 0.42rem; padding-left: 1.1rem; margin: 0.05rem 0 0.2rem; }
  .nav.pied .nav-sub2 { display: none; }
  .nav-right > a.ici { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }   /* page ouverte */
  .nav-sub2 a.vu { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }   /* page consultée : souligné discret */
  .wrap { max-width: none; margin-left: calc(var(--edge) + var(--side)); margin-right: var(--edge); padding-left: clamp(1rem, 2vw, 2rem); }
}

/* ===== EN-TÊTE DU PROJET : texte à gauche, image à droite ===== */
.cas-hero { padding-block: clamp(3rem, 6vw, 6rem) clamp(3rem, 7vw, 6.5rem); }
.cas-hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--gap); align-items: stretch; }
.cas-hero-text { display: flex; flex-direction: column; }
.cas-retour { display: inline-block; font-size: 13px; line-height: 1.5; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.25rem; transition: color 0.25s var(--ease); }
.cas-retour::before { content: '← '; letter-spacing: 0; }
.cas-retour:hover { color: var(--ink); }
.cas-hero-top { margin-top: -5px; }
h1 { font-family: var(--font); font-size: 21px; font-weight: 400; line-height: 1.4; letter-spacing: 0.01em; color: var(--text); max-width: 24ch; text-wrap: balance; }
.cas-edito { font-family: var(--font-display); font-size: 28px; line-height: 1.3; letter-spacing: 0.02em; color: var(--ink); margin-block: auto; padding-block: 2rem; max-width: 18ch; text-wrap: balance; }
.cas-hero-text { container-type: inline-size; }
.cas-edito-lignes { max-width: none; font-size: clamp(20px, calc(var(--cqi, 8.1) * 1cqi), 28px); }
.cas-edito-lignes span { display: block; white-space: nowrap; }
.cas-faits { font-size: 13px; line-height: 1.7; color: var(--muted); margin-bottom: -4px; }
.cas-hero-fig { width: 90%; margin-left: auto; align-self: start; }
.cas-hero-fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(1); }

/* ===== LISTE DES PROJETS (/projets/) : image à gauche, texte sur la ligne de droite ===== */
.liste { padding-block: clamp(2rem, 5vw, 4rem) clamp(4rem, 9vw, 8rem); }
.liste-titre { font-family: var(--font-display); font-size: 28px; font-weight: 400; line-height: 1.3; letter-spacing: 0.02em; color: var(--ink); max-width: none; }
.projets { display: grid; grid-template-columns: 1fr; row-gap: clamp(4.5rem, 12vw, 11rem); margin-top: 2.5rem; }
.projet { display: flex; flex-direction: column; }
.projet-img { display: block; overflow: hidden; }
.projet-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(1); transition: transform 0.5s var(--ease); }
.projet:hover .projet-img img { transform: scale(1.03); }
.projet-corps { display: flex; flex-direction: column; align-items: flex-start; padding-top: 1.2rem; }
.projet-lieu { font-size: 13px; line-height: 1.5; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.9rem; }
.projet-titre { font-family: var(--font-display); font-size: 21px; font-weight: 400; line-height: 1.3; letter-spacing: 0.01em; color: var(--ink); margin-bottom: 1rem; }
.projet-corps p + p { margin-top: 0.75em; }
.projet-corps > p:not(.projet-lieu) { max-width: 44ch; }
.projet-lien { display: inline-block; margin-top: 1.5rem; font-size: 13px; line-height: 1.5; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.projet-lien:hover { color: var(--muted); border-color: var(--muted); }
@media (min-width: 861px) {
  .projet { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr) var(--col-d); }
  .projet-img { grid-column: 1; align-self: start; }
  .projet-corps { grid-column: 3; padding-top: 0; margin-top: -4px; }
  .projet-lien { margin-top: auto; }
  .projet-corps > p:last-of-type { margin-bottom: 1.5rem; }
}
@media (max-width: 600px) { .liste-titre { font-size: 24px; } }

/* ===== RÉCIT : repère à gauche, texte sur la ligne de droite ===== */
.cas-corps { padding-block: clamp(1rem, 3vw, 2.5rem); }
.cas-row { display: grid; grid-template-columns: minmax(0, 1fr) var(--col-d); align-items: start; padding-block: var(--row-pad); }
.cas-label { font-family: var(--font); font-size: 13px; font-weight: 400; line-height: 26px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.cas-text p { max-width: 62ch; }
.cas-text p + p { margin-top: 0.75em; }
.cas-text blockquote p { color: var(--text); }
.cas-auteur { font-size: 13px; line-height: 1.5; color: var(--muted); margin-top: 1rem !important; }

/* ===== IMAGES ===== */
.cas-images { padding-block: clamp(2rem, 5vw, 4.5rem); }
/* « Avant » sur la ligne de gauche, « Après » sur la ligne de droite, à la largeur de la photo d'en-tête */
.pair, .galerie { display: grid; grid-template-columns: var(--col-d) var(--col-d); justify-content: space-between; row-gap: clamp(2.5rem, 5vw, 4.5rem); }
.pair + .pair { margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.pair img, .galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface); }
.pair img.vertical, .galerie img.vertical { object-fit: contain; object-position: left center; background: none; }   /* photo verticale : entière, dans le même cadre */
.pair img.avant { filter: grayscale(1); }
.pair figcaption { font-size: 13px; line-height: 1.5; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 0.75rem; }
.cas-legende { font-size: 13px; line-height: 1.5; color: var(--muted); margin-top: 1rem; }

/* ===== FIN DE PAGE : retour aux projets, flèche « Revenir en haut » ===== */
.cas-toutes { text-align: center; padding-block: clamp(1rem, 3vw, 2rem) clamp(4rem, 8vw, 7rem); }
.cas-toutes a { font-size: 13px; line-height: 1.5; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px; transition: color 0.25s var(--ease), border-color 0.25s var(--ease); }
.cas-toutes a:hover { color: var(--muted); border-color: var(--muted); }
.haut { position: fixed; right: clamp(1rem, 3vw, 2.5rem); bottom: clamp(1rem, 3vw, 2.5rem); z-index: 50; padding: 8px 10px; color: var(--ink); line-height: 0; transition: color 0.25s var(--ease); }
.haut:hover { color: var(--muted); }
.haut[hidden] { display: none; }
.haut svg { width: 12px; height: 33px; }

/* ===== PIED DE PAGE (identique à l'accueil) ===== */
footer { background: var(--surface); border-top: 1px solid var(--line); padding-top: clamp(5rem, 9vw, 7rem); padding-bottom: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.footer-label { font-size: 13px; line-height: 1.5; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.5rem; }
.footer-identity-name { font-family: var(--font-display); font-size: 21px; line-height: 1.3; letter-spacing: 0.01em; color: var(--ink); margin-bottom: 0.6rem; }
.footer-identity-tagline, .footer-address { font-size: 16px; line-height: 26px; color: var(--text); }
.footer-contact-phone { display: block; font-size: 16px; line-height: 26px; color: var(--ink); margin-bottom: 0.3rem; }
.footer-contact-note { font-size: 13px; line-height: 1.5; color: var(--muted); margin-top: 0.3rem; margin-bottom: 0.8rem; }
.footer-contact-hours { font-size: 13px; line-height: 1.5; color: var(--muted); }
.footer-link { display: block; font-size: 13px; line-height: 1.5; color: var(--ink); white-space: nowrap; padding-block: 0.15rem; }
.footer-link[href^="mailto:"] { font-size: 16px; line-height: 26px; }
.footer-contact-phone:hover, .footer-link:hover { color: var(--muted); }
.footer-bottom { margin-top: 90px; padding-top: 30px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 13px; line-height: 1.5; color: var(--muted); letter-spacing: 0.02em; }
.footer-bottom-links { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.footer-bottom-links a { color: var(--ink); }
.footer-bottom-links a:hover { text-decoration: underline; }
@media (max-width: 900px) { .footer-grid { gap: 2.5rem 2rem; } }
@media (max-width: 480px) {
  .footer-grid { gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.6rem; align-items: flex-start; }
}
/* Contact : les coordonnées (téléphone, e-mail, WhatsApp, adresse) en 16 px noir ; les précisions en 13 px gris */
.footer-contact-phone, .footer-link[href^="mailto:"], .footer-link[href*="wa.me"], .footer-address {
  font-size: 16px; line-height: 26px; font-weight: 400; letter-spacing: 0; color: var(--ink); padding-block: 0; margin: 0;
}
.footer-contact-note, .footer-contact-hours { font-size: 13px; line-height: 26px; color: var(--muted); margin: 0; }
.footer-grid .footer-link:not([href^="mailto:"]):not([href*="wa.me"]) { font-size: 13px; line-height: 26px; color: var(--ink); padding-block: 0; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
/* Pied de page : la phrase du bureau en titre, puis trois colonnes ; pas de filet */
.footer-phrase { font-family: var(--font-display); font-size: 21px; font-weight: 400; line-height: 1.3; letter-spacing: 0.01em; color: var(--ink); }
.footer-grid { grid-template-columns: 1fr 1.2fr 1fr; }
.footer-grid > div:first-child { grid-column: 1 / -1; }
.footer-bottom { border-top: 0; padding-top: 0; }
.footer-bottom-links { margin-left: auto; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom-links { margin-left: 0; } }


/* ===== MOBILE ===== */
@media (max-width: 860px) {
  .cas-hero { padding-block: 1.5rem 2.5rem; }
  .cas-hero-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .cas-hero-top { margin-top: 0; }
  .cas-edito { font-size: 24px; margin-block: 1rem 0; padding-block: 0; max-width: none; }
  .cas-edito-lignes { font-size: clamp(18px, calc(var(--cqi, 8.1) * 1cqi), 24px); }
  .cas-faits { margin-top: 1rem; margin-bottom: 0; }
  .cas-hero-fig { width: 100%; }
  h1 { max-width: none; }
  .cas-row { grid-template-columns: 1fr; row-gap: 0.5rem; }
  .pair, .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.25rem; }
}
@media (max-width: 600px) {
  .pair, .galerie { grid-template-columns: 1fr; row-gap: 1.5rem; }
  .pair figure + figure { margin-top: 0.25rem; }
}
/* Menu à gauche : le titre de la page se pose sur la ligne de « Accueil » */
@media (min-width: 1180px) {
  /* le premier écran ne montre que l'en-tête : le récit commence sous le pli */
  .cas-hero { padding-top: var(--hero-top); min-height: 100vh; box-sizing: border-box; }
  .cas-retour { display: none; }
  .cas-hero-top { margin-top: -7px; }
  .liste { padding-top: calc(var(--hero-top) - 12.5px); }
  .projet { scroll-margin-top: var(--hero-top); }
  /* Pied de page : le nom du bureau sur sa ligne, puis trois colonnes sans retour à la ligne forcé */
  .footer-grid { grid-template-columns: auto auto auto; justify-content: space-between; column-gap: clamp(2rem, 4vw, 4rem); row-gap: clamp(2.5rem, 5vw, 4rem); }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-address, .footer-contact-note { white-space: nowrap; }
  .footer-link[href^="mailto:"] { padding-block: 0; }
  .footer-contact-phone { margin-bottom: 0; }
  /* les trois colonnes ont la même hauteur ; leur dernière ligne (horaires, langues, itinéraire) est sur une même ligne */
  .footer-grid { align-items: stretch; }
  .footer-grid > div:not(:first-child) { display: flex; flex-direction: column; align-items: flex-start; }
  .footer-grid > div:not(:first-child) > :last-child { margin-top: auto !important; margin-bottom: 0; padding-block: 0; }
  /* Pied de page = un écran : le nom du bureau sur la ligne de « Accueil », la ligne © en bas,
     à la même distance du bord que le logo en haut */
  footer { min-height: 100vh; box-sizing: border-box; display: flex; flex-direction: column;
           padding-top: calc(var(--hero-top) - 7.7px); padding-bottom: clamp(2.5rem, 6vh, 4rem); }
  footer > .wrap { flex: 1; display: flex; flex-direction: column; }
  .footer-bottom { margin-top: auto; }
  .haut { bottom: 5.5rem; }
  /* un clic dans le menu pose la partie sur la ligne de « Accueil » */
  /* récit resserré : toutes les parties tiennent ensemble dans l'écran */
  :root { --row-pad: clamp(0.6rem, 1.1vw, 0.9rem); }
  .cas-row { scroll-margin-top: calc(var(--hero-top) - 3px - var(--row-pad)); }
  .cas-images { scroll-margin-top: calc(var(--hero-top) + 2px - clamp(2rem, 5vw, 4.5rem)); }
  /* une paire de photos par écran : la suivante commence sous le bas de la fenêtre */
  .pair { min-height: calc(100vh - var(--hero-top)); align-items: start; align-content: start; }
  .pair + .pair { margin-top: 0; }
  .galerie { grid-auto-rows: minmax(calc(100vh - var(--hero-top)), auto); align-items: start; row-gap: 0; }
  .cas-images { padding-bottom: 0; }
  /* après la dernière partie du récit, assez d'espace pour que les photos restent sous l'écran */
  .cas-corps .cas-row:last-child { min-height: calc(100vh - var(--hero-top) + var(--row-pad) + 4px); box-sizing: border-box; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ===== PRESTATIONS : /prestations/ (liste) et pages de prestation ===== */
.presta-intro { max-width: 44ch; margin-top: 1.25rem; }
.prestas { margin-top: clamp(2rem, 4vw, 3.5rem); }
.presta-row { display: grid; grid-template-columns: minmax(0, 1fr) var(--col-d); align-items: start; padding-block: clamp(1.25rem, 2.4vw, 2rem); }
.presta-nom { font-family: var(--font-display); font-size: 21px; font-weight: 400; line-height: 1.3; letter-spacing: 0.01em; color: var(--ink); max-width: 14ch; }
.presta-nom a { transition: color 0.25s var(--ease); }
.presta-nom a:hover { color: var(--muted); }
.presta-texte { display: flex; flex-direction: column; align-items: flex-start; }
.presta-texte p { max-width: 44ch; }
.presta-texte .projet-lien { margin-top: 1rem; }
.cas-text a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color 0.25s var(--ease); }
.cas-text a:hover { color: var(--muted); }
@media (min-width: 861px) { .presta-nom { margin-top: -2.5px; } }   /* même ligne de base que le texte de droite */
@media (max-width: 860px) { .presta-row { grid-template-columns: 1fr; row-gap: 0.6rem; } .presta-nom { max-width: none; } }
@media (min-width: 1180px) {
  .presta-corps { --row-pad: clamp(1rem, 1.8vw, 1.6rem); }
  .presta-corps.cas-corps .cas-row:last-child { min-height: 0; }
  /* la liste des trois prestations tient dans le premier écran */
  .liste-prestas .prestas { margin-top: 1.75rem; }
  .liste-prestas .presta-row { padding-block: 0.7rem; }
}

/* Pages de prestations : les parties de la page sont repliées dans le menu ; elles se déplient au survol
   de la prestation ouverte et dès qu'on descend dans la page (même mouvement que le sous-menu des projets) */
@media (min-width: 1180px) {
  .nav-sub2.pli { max-height: 0; opacity: 0; overflow: hidden; visibility: hidden; margin: -0.5rem 0 0;
                  transition: max-height 0.45s var(--ease), margin 0.45s var(--ease), opacity 0.3s ease, visibility 0s linear 0.45s; }
  .nav-sub2.pli.ouvert, .nav.survol .nav-sub a.actif:hover + .nav-sub2.pli, .nav-sub a.actif:focus-visible + .nav-sub2.pli, .nav.survol .nav-sub2.pli:hover, .nav-sub2.pli:focus-within {
                  max-height: 12rem; opacity: 1; visibility: visible; margin: 0.05rem 0 0.2rem;
                  transition: max-height 0.45s var(--ease), margin 0.45s var(--ease), opacity 0.4s ease 0.05s, visibility 0s; }
}

/* Chevron « poursuivre la lecture » : en bas de l'écran d'en-tête, au centre du contenu ; il part avec l'en-tête quand on descend.
   La flèche verticale reste réservée au retour en haut. */
.suite { display: none; }
@media (min-width: 1180px) {
  .cas-hero { position: relative; }
  .suite { display: block; position: absolute; bottom: clamp(2.5rem, 6vh, 4rem);
           left: calc(var(--edge) + var(--side) + (100% - 2 * var(--edge) - var(--side)) / 2); transform: translateX(-50%);
           padding: 10px; line-height: 0; color: var(--ink); transition: color 0.25s var(--ease); }
  .suite:hover { color: var(--muted); }
  .suite svg { width: 24px; height: 13px; }
}

/* Liste des projets : le même chevron, en bas du premier écran */
@media (min-width: 1180px) {
  .liste { position: relative; }
  .liste > .suite { bottom: auto; top: calc(100vh - clamp(2.5rem, 6vh, 4rem) - 33px); }
}
@media (min-width: 1180px) {
  .suite { transition: color 0.25s var(--ease), opacity 0.3s ease, visibility 0s; }
  .suite.parti { opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0s linear 0.3s; }
}
.cas-hero-fig img.couleur { filter: none; }   /* image d'en-tête gardée avec ses couleurs */
@media (min-width: 1180px) {
  /* au pied de page, la flèche « Revenir en haut » monte au-dessus des trois colonnes pour ne pas toucher l'adresse */
  .haut { transition: color 0.25s var(--ease), bottom 0.45s var(--ease); }
  .nav.pied ~ .haut { bottom: 45vh; }
}
@media (min-width: 1180px) {
  /* menu replié au pied de page : « Contact » remonte ; la phrase tient sur une ligne pour laisser la place aux colonnes */
  .footer-phrase br { display: none; }
  .footer-phrase { white-space: nowrap; }
}
@media (min-width: 1180px) {
  /* menu principal plus aéré : environ 50 px d'une entrée à l'autre (taille des caractères inchangée) */
  .nav-right { gap: 1.9rem; }
  .nav-sub { margin-top: -1.9rem; }
}

/* Page Ariane & Christian (28.11.2026) : les deux portraits dans l'en-tête, puis un écran par personne */
.duo-fig { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 2rem); }
.duo-fig img { aspect-ratio: auto; object-fit: contain; filter: none; mix-blend-mode: multiply; }
.duo-nom { font-family: var(--font-display); font-size: 21px; font-weight: 400; line-height: 1.3; letter-spacing: 0.01em; color: var(--ink); }
.duo-role { margin-top: 0.6rem; font-size: 13px; line-height: 1.6; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); max-width: 30ch; }   /* comme sur l'accueil */
.duo-tete { padding-right: var(--gap, 2rem); }
.nav-sub.parties a.vu { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
@media (max-width: 1179px) {
  .duo-tete { padding-right: 0; margin-bottom: 0.75rem; }
}
@media (min-width: 1180px) {
  .duo-corps { --row-pad: clamp(1rem, 1.8vw, 1.6rem); }
  .duo-corps .duo-row { min-height: calc(100vh - var(--hero-top) + var(--row-pad)); box-sizing: border-box; }
  .duo-corps .duo-row:last-child { min-height: calc(100vh - var(--hero-top) + var(--row-pad) + 4px); }
}

/* Page Ariane & Christian (29.11.2026) : parcours en parties, l'accroche à gauche de son texte */
.duo-accroche { font-family: var(--font-display); font-size: 21px; font-weight: 400; line-height: 1.35; color: var(--ink); max-width: 18ch; text-wrap: balance; }
.duo-debut .duo-accroche { margin-top: 2.5rem; }
@media (max-width: 1179px) {
  .duo-debut .duo-accroche { margin-top: 1.75rem; }
  .duo-partie .duo-tete { margin-bottom: 1rem; }
}
@media (min-width: 1180px) {
  .duo-corps .duo-partie { min-height: 0; }
  .duo-corps .duo-partie + .duo-partie { padding-top: clamp(3rem, 6vw, 5rem); }
  .duo-corps .duo-partie:not(.duo-debut) { scroll-margin-top: calc(var(--hero-top) - 3px - clamp(3rem, 6vw, 5rem)); }
}

/* Page Ariane & Christian (29.11.2026) : un écran par partie (on ne voit ni la partie d'avant ni celle d'après),
   le titre se pose sur la ligne d'« Accueil », un chevron en bas de l'écran invite à descendre */
.suite-bas { display: none; }
@media (min-width: 1180px) {
  .duo-corps .duo-row, .duo-corps .duo-partie, .duo-corps .duo-partie + .duo-partie {
    position: relative; box-sizing: border-box; min-height: 100vh;
    padding-top: calc(var(--hero-top) - 3px); padding-bottom: calc(clamp(2.5rem, 6vh, 4rem) + 3.5rem);
    scroll-margin-top: 0; }
  .suite-bas { display: block; position: absolute; bottom: clamp(2.5rem, 6vh, 4rem); left: 50%; transform: translateX(-50%);
               padding: 10px; line-height: 0; color: var(--ink); transition: color 0.25s var(--ease); }
  .suite-bas:hover { color: var(--muted); }
  .suite-bas svg { width: 24px; height: 13px; }
}
@media (min-width: 1180px) {
  .duo-corps .duo-row:last-child { min-height: 100vh; }   /* « Pourquoi à deux » occupe aussi tout l'écran : le contact n'apparaît qu'en descendant */
}
/* portraits cliquables : ils mènent au parcours de chacun */
.duo-fig a { display: block; line-height: 0; }
.duo-fig a img { width: 100%; height: auto; transition: opacity 0.3s var(--ease); }
.duo-fig a:hover img { opacity: 0.75; }
@media (min-width: 1180px) {
  /* accroches plus larges : deux lignes plutôt que trois quand l'écran le permet (taille inchangée) */
  .duo-accroche { max-width: 27ch; }
}

/* Colonne de texte élargie, la même sur tout le site : Ariane & Christian, prestations et projets (30.11) */
@media (min-width: 1180px) {
  .cas-row, .presta-row, .duo-corps .duo-row { grid-template-columns: minmax(0, 1fr) min(calc(var(--col-d) + 120px), 35rem); }
}
/* Accroche coupée à la main (<br>) : la ligne garde sa longueur naturelle */
.duo-accroche:has(br) { max-width: none; }
@media (min-width: 1180px) { .duo-accroche:has(br) { white-space: nowrap; } }

/* Liste des prestations : le chevron mène au contact ; plus bas, pour ne pas toucher le dernier lien (30.11) */
@media (min-width: 1180px) and (max-height: 800px) {
  .liste-prestas > .suite { top: calc(100vh - 1rem - 33px); }
}
