@font-face {
  font-family: 'Bodoni';
  src: url('/assets/fonts/bodoni-moda-latin.woff2') format('woff2');
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Bodoni';
  src: url('/assets/fonts/bodoni-moda-latin-italic.woff2') format('woff2');
  font-weight: 400 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('/assets/fonts/jost-latin.woff2') format('woff2');
  font-weight: 300 500; font-style: normal; font-display: swap;
}

:root {
  --ivoire: #f4f1ea;
  --ivoire-2: #efeade;
  --encre: #111110;
  --gris: #5f5b52;
  --laiton: #765a24;
  --filet: #ddd5c4;
  --serif: 'Bodoni', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivoire);
  color: var(--encre);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ---------- en-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  background: rgba(244, 241, 234, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--filet);
}
.marque {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -.01em;
  text-decoration: none;
}
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); font-size: 14.5px; }
.nav a { text-decoration: none; color: var(--gris); transition: color .2s ease; }
.nav a:hover, .nav a:focus-visible { color: var(--encre); }

.nav a { display: inline-flex; align-items: center; min-height: 44px; }

/* bouton de menu (mobile uniquement) */
.burger {
  display: none; background: none; border: 0; padding: 10px;
  cursor: pointer; width: 44px; height: 44px;
  flex-direction: column; justify-content: center; gap: 5px;
}
.burger span { display: block; height: 1.5px; background: var(--encre); transition: transform .25s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  padding: clamp(56px, 10vh, 120px) clamp(20px, 5vw, 64px) clamp(40px, 7vh, 72px);
  max-width: 1200px;
  margin: 0 auto;
}
.label {
  margin: 0 0 22px;
  font-size: 11.5px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--laiton);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5.4vw, 74px);
  line-height: 1.06;
  letter-spacing: -.02em;
  margin: 0 0 26px;
}
.hero__sous {
  max-width: 56ch;
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--gris);
  margin: 0 0 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin: 0 0 56px; }

.bouton {
  display: inline-block;
  padding: 14px 26px;
  background: var(--encre);
  color: var(--ivoire);
  border: 1px solid var(--encre);
  font-family: var(--sans); font-size: 15px; font-weight: 400;
  text-decoration: none; cursor: pointer;
  transition: background .25s ease, color .25s ease;
}
.bouton:hover, .bouton:focus-visible { background: transparent; color: var(--encre); }

.lien {
  font-size: 15px; text-decoration: none; color: var(--laiton);
  border-bottom: 1px solid rgba(118, 90, 36, .4);
  padding-bottom: 2px;
}

.chiffres {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px; margin: 0; padding-top: 30px; border-top: 1px solid var(--filet);
}
.chiffres dt {
  font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px);
  letter-spacing: -.01em; margin: 0 0 6px;
}
.chiffres dd { margin: 0; font-size: 13.5px; color: var(--gris); line-height: 1.45; }

/* ---------- blocs ---------- */
.bloc {
  padding: clamp(48px, 8vh, 96px) clamp(20px, 5vw, 64px);
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--filet);
}
.bloc h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(26px, 3.2vw, 40px); line-height: 1.15;
  letter-spacing: -.015em; margin: 0 0 16px;
}
.chapeau { max-width: 66ch; color: var(--gris); margin: 0 0 40px; }

.grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--filet); }
.carte { background: var(--ivoire); padding: 28px 24px; }
.carte h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; margin: 0 0 10px; }
.carte .prix { font-size: 15px; letter-spacing: .04em; color: var(--laiton); margin: 0 0 2px; }
.carte .delai { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: #5f5b52; margin: 0 0 14px; }
.carte p { margin: 0; font-size: 15px; color: var(--gris); }
.carte em { color: var(--laiton); font-style: normal; }
.note { margin: 26px 0 0; font-size: 15px; color: var(--gris); }
.note strong { font-weight: 500; color: var(--encre); }

/* ---------- projets ---------- */
.grille--projets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.projet {
  background: var(--ivoire); padding: 30px 26px;
  text-decoration: none;
  transition: background .25s ease;
}
.projet:hover, .projet:focus-visible { background: var(--ivoire-2); }
.projet__type { margin: 0 0 10px; font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--laiton); }
.projet h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 0 0 10px; }
.projet p { margin: 0 0 16px; font-size: 15px; color: var(--gris); }
.projet__lien { font-size: 13px; color: var(--laiton); border-bottom: 1px solid rgba(118, 90, 36, .35); }

/* ---------- méthode ---------- */
.etapes { list-style: none; counter-reset: e; margin: 0; padding: 0; display: grid; gap: 26px; }
.etapes li { counter-increment: e; position: relative; padding-left: 58px; max-width: 78ch; }
.etapes li::before {
  content: counter(e, decimal-leading-zero);
  position: absolute; left: 0; top: -2px;
  font-family: var(--serif); font-size: 20px; color: var(--laiton);
}
.etapes strong { font-weight: 500; }

/* ---------- questions ---------- */
.questions { display: grid; gap: 0; border-top: 1px solid var(--filet); }
details { border-bottom: 1px solid var(--filet); }
summary {
  cursor: pointer; padding: 18px 0; font-size: 17px;
  list-style: none; display: flex; justify-content: space-between; gap: 18px; align-items: baseline;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--laiton); font-size: 20px; line-height: 1; }
details[open] summary::after { content: '−'; }
details p { margin: 0 0 22px; max-width: 78ch; color: var(--gris); font-size: 16px; }

/* ---------- formulaire ---------- */
.bloc--contact { border-top: 1px solid var(--filet); }
.form {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 28px; max-width: 820px;
}
.form__ligne { display: flex; flex-direction: column; gap: 8px; }
.form__ligne--large { grid-column: 1 / -1; }
.form label { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #5f5b52; }
.form label span { text-transform: none; letter-spacing: 0; color: #6b6558; }
.form input, .form textarea {
  font-family: var(--sans); font-size: 16px; font-weight: 300;
  color: var(--encre); background: transparent;
  border: 0; border-bottom: 1px solid var(--filet);
  padding: 10px 2px; resize: vertical;
}
.form input:focus, .form textarea:focus { outline: none; border-bottom-color: var(--laiton); }
.form__piege { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__statut { grid-column: 1 / -1; margin: 0; font-size: 15px; color: var(--laiton); min-height: 22px; }
.form button { grid-column: 1 / -1; justify-self: start; }
.form__mentions { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: #5f5b52; }

/* ---------- pied ---------- */
.pied {
  padding: clamp(36px, 6vh, 64px) clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--filet);
  max-width: 1200px; margin: 0 auto;
  font-size: 14px; color: var(--gris);
}
.pied__marque { font-family: var(--serif); font-size: 19px; color: var(--encre); margin: 0 0 10px; }
.pied p { margin: 0 0 6px; }
.pied__liens a { color: var(--laiton); text-decoration: none; border-bottom: 1px solid rgba(118, 90, 36, .35); }

/* ---------- typographie cinétique du hero ---------- */
.hero h1 .mot {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(14px);
  animation: mot-entree .9s cubic-bezier(.22,.61,.36,1) forwards;
}
@keyframes mot-entree {
  to { opacity: 1; filter: blur(0); transform: none; }
}
/* pas d'animation si mouvement réduit : le texte est lisible d'emblée */
@media (prefers-reduced-motion: reduce) {
  .hero h1 .mot { opacity: 1; filter: none; transform: none; animation: none; }
}

/* ---------- filet de laiton : barre de progression + traits de section ---------- */
.filet-progression {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, #765a24, #a98a44);
  z-index: 60; pointer-events: none;
  transition: transform .12s linear;
}
.bloc h2 { position: relative; }
.bloc h2::before {
  content: ''; position: absolute; left: 0; bottom: -10px;
  width: 64px; height: 1.5px; background: #765a24;
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .9s cubic-bezier(.22,.61,.36,1) .15s;
}
.bloc h2.vu::before { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .bloc h2::before { transform: scaleX(1); transition: none; }
  .filet-progression { transition: none; }
}

/* ---------- apparitions ---------- */
.monte { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.monte.vu { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .monte { opacity: 1; transform: none; transition: none; }
}

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  .grille { grid-template-columns: 1fr; }
  .grille--projets { grid-template-columns: 1fr; }
  .chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .burger { display: flex; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ivoire);
    border-bottom: 1px solid var(--filet);
    padding: 6px clamp(20px, 5vw, 64px) 18px;
    font-size: 16px;
  }
  .nav--ouvert { display: flex; }
  .nav a { min-height: 48px; border-bottom: 1px solid var(--filet); color: var(--encre); }
  .nav a:last-child { border-bottom: 0; }
  
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .form { grid-template-columns: 1fr; }
  .etapes li { padding-left: 44px; }
}

/* ---------- page projets ---------- */
.liste-projets { display: grid; gap: 1px; background: var(--filet); }
.entree-projet {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  background: var(--ivoire); text-decoration: none; color: inherit;
  transition: background .3s ease;
}
.entree-projet:hover, .entree-projet:focus-visible { background: var(--ivoire-2); }
.entree-projet__texte { padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.entree-projet__type { margin: 0 0 12px; font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--laiton); }
.entree-projet h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 38px); margin: 0 0 14px; }
.entree-projet p { margin: 0 0 18px; color: var(--gris); font-size: 16px; max-width: 46ch; }
.entree-projet__chiffres { display: flex; flex-wrap: wrap; gap: 22px; margin: 0 0 22px; }
.entree-projet__chiffres b { font-family: var(--serif); font-weight: 400; font-size: 20px; display: block; }
.entree-projet__chiffres span { font-size: 12.5px; color: var(--gris); }
.entree-projet__media { position: relative; overflow: hidden; min-height: 320px; background: var(--ivoire-2); }
.entree-projet__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.entree-projet__media--portrait { background: var(--ivoire-2); display: flex; align-items: center; justify-content: center; padding: 22px; }
.entree-projet__media--portrait img { object-fit: contain; height: 100%; width: auto; max-height: 420px; border: 1px solid var(--filet); }
.entree-projet__suite { font-size: 14px; color: var(--laiton); }

/* ---------- fiche projet ---------- */
.fiche-hero { padding: clamp(40px, 7vh, 84px) clamp(20px, 5vw, 64px) 0; max-width: 1100px; margin: 0 auto; }
.retour { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--laiton); text-decoration: none; }
.fiche-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5vw, 64px); line-height: 1.05; letter-spacing: -.02em; margin: 18px 0 16px; }
.fiche-hero__resume { max-width: 60ch; color: var(--gris); font-size: clamp(16px, 1.5vw, 19px); margin: 0 0 34px; }
.fiche-chiffres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 26px 0; border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); }
.fiche-chiffres b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 2.2vw, 28px); }
.fiche-chiffres span { font-size: 13px; color: var(--gris); }
.fiche-corps { padding: clamp(34px, 5vh, 64px) clamp(20px, 5vw, 64px) clamp(48px, 8vh, 90px); max-width: 1100px; margin: 0 auto; }
.fiche-corps h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.4vw, 30px); margin: 40px 0 14px; }
.fiche-corps h2:first-of-type { margin-top: 0; }
.fiche-corps p { max-width: 74ch; color: var(--gris); }
.fiche-corps ul { max-width: 74ch; color: var(--gris); padding-left: 20px; }
.fiche-corps li { margin: 0 0 10px; }
.fiche-corps code { font-family: 'Jost', monospace; font-size: .92em; background: var(--ivoire-2); padding: 1px 5px; }
table.resultats { width: 100%; border-collapse: collapse; margin: 18px 0 0; font-size: 15.5px; }
table.resultats th, table.resultats td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--filet); }
table.resultats th { font-weight: 400; color: #5f5b52; width: 46%; }
table.resultats td { color: var(--encre); }
.encart { border-left: 2px solid var(--laiton); padding: 4px 0 4px 18px; margin: 30px 0; color: var(--gris); max-width: 70ch; }
.galerie { display: grid; gap: 26px; margin: 28px 0 0; }
.galerie figure { margin: 0; }
.galerie img { width: 100%; height: auto; display: block; border: 1px solid var(--filet); }
.galerie figcaption { font-size: 13.5px; color: var(--gris); margin-top: 10px; }
.suite-projet { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-top: 60px; padding-top: 26px; border-top: 1px solid var(--filet); }
.suite-projet a { font-family: var(--serif); font-size: 24px; color: var(--encre); text-decoration: none; }
.suite-projet span { font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--laiton); display: block; margin-bottom: 6px; }
@media (max-width: 900px) {
  .entree-projet { grid-template-columns: 1fr; }
  .entree-projet__media { min-height: 220px; order: -1; }
  .fiche-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}

.video-bloc { margin: 30px 0 0; }
.video-bloc video { display: block; width: 100%; max-width: 100%; height: auto; border: 1px solid var(--filet); background: #111110; }
.video-bloc p { font-size: 13.5px; color: var(--gris); margin: 10px 0 0; }

/* ---------- cartes projets de l'accueil ---------- */
.projet { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.projet__media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--ivoire-2); }
.projet__media img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.projet:hover .projet__media img, .projet:focus-visible .projet__media img { transform: scale(1.035); }
.projet--portrait .projet__media { display: flex; align-items: center; justify-content: center; padding: 18px; }
.projet--portrait .projet__media img { object-fit: contain; width: auto; max-width: 100%; max-height: 100%; border: 1px solid var(--filet); }
.projet__corps { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.projet__corps .projet__lien { margin-top: auto; }

/* ---------- compaction mobile des offres ---------- */
@media (max-width: 700px) {
  .carte { padding: 22px 20px; }
  .carte h3 { font-size: 21px; margin-bottom: 6px; }
  .carte .prix { margin-top: 10px; }
  .carte p { font-size: 14.5px; }
  .bloc { padding-top: 64px; padding-bottom: 64px; }
  .projet__corps { padding: 22px 20px 24px; }
  .projet h3 { font-size: 23px; }
}

/* offres en lignes compactes sur mobile : nom + prix sur une ligne */
@media (max-width: 700px) {
  .carte { display: grid; grid-template-columns: 1fr auto; gap: 0 14px; padding: 16px 18px; }
  .carte h3 { grid-column: 1; font-size: 19px; margin: 0 0 2px; }
  .carte .delai { grid-column: 1; margin: 0; font-size: 11px; }
  .carte .prix { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right;
                 margin: 0; font-size: 15px; }
  .carte p:not(.prix):not(.delai) { grid-column: 1 / -1; margin: 8px 0 0; font-size: 13.5px; }
}

/* ---------- tarifs ---------- */
.grille--tarifs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.carte--tarif { display: flex; flex-direction: column; }
.carte--tarif .prix { font-family: var(--serif); font-size: 27px; color: var(--encre); margin: 6px 0 2px; }
.carte--tarif .delai { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
                       color: var(--gris); margin: 0 0 12px; }
.inclus { list-style: none; padding: 0; margin: 10px 0 0; border-top: 1px solid var(--filet); }
.inclus li { font-size: 13.5px; color: var(--gris); padding: 7px 0 0 16px; position: relative; }
.inclus li::before { content: "—"; position: absolute; left: 0; color: var(--laiton); }

/* ---------- équipe ---------- */
.equipe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 26px; }
.membre { background: var(--ivoire); padding: 0 0 22px; }
.membre__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--ivoire-2);
                 display: flex; align-items: center; justify-content: center; }
.membre__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.membre__attente { font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
                   color: var(--gris); text-align: center; padding: 0 20px; }
.membre h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 18px 22px 4px; }
.membre p { margin: 0 22px; font-size: 14.5px; color: var(--gris); }
.membre .role { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--laiton); margin-bottom: 8px; }
@media (max-width: 900px) {
  .grille--tarifs { grid-template-columns: 1fr; }
  .equipe { grid-template-columns: 1fr; }
}


/* effet de levée des cartes */
.projet { transition: background .25s ease, transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease; }
.projet:hover, .projet:focus-visible {
  background: var(--ivoire-2);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -22px rgba(30, 25, 15, .35);
}
.projet__media img { transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.projet:hover .projet__media img { transform: scale(1.035); }
@media (prefers-reduced-motion: reduce) {
  .projet, .projet__media img { transition: none; }
  .projet:hover, .projet:focus-visible { transform: none; }
}


/* les ancres ne passent plus sous l'en-tete fixe */
section[id], h2, h3 { scroll-margin-top: 104px; }


/* ================= finitions : défilement, en-tête, transitions ================= */
html { scroll-behavior: smooth; scrollbar-color: #765a24 #ebe6da; scrollbar-width: thin; }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #ebe6da; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #8a6c2c, #765a24);
  border-radius: 99px; border: 2px solid #ebe6da;
}
::-webkit-scrollbar-thumb:hover { background: #765a24; }

/* en-tête : logo à gauche, liens centrés, appel à l'action détaché */
.entete { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.entete .marque { grid-column: 1; justify-self: start; margin: 0; }
.entete .nav { grid-column: 2; justify-self: center; display: flex; align-items: center;
               gap: clamp(18px, 2.4vw, 34px); margin: 0; }
.entete .burger { grid-column: 3; justify-self: end; }
@media (max-width: 900px) {
  .entete { grid-template-columns: auto 1fr auto; }
  .entete .nav { grid-column: 2; justify-self: stretch; }
}
.nav__liens { display: flex; align-items: center; gap: clamp(22px, 3vw, 52px); }
.nav__liens a { position: relative; padding: 6px 0; }
.nav__liens a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: #765a24; transform: scaleX(0); transform-origin: left;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.nav__liens a:hover::after, .nav__liens a:focus-visible::after { transform: scaleX(1); }

/* appel à l'action : fond laiton qui monte, texte qui s'inverse */




/* transitions entre pages (API View Transitions, repli en fondu) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-sortie .26s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-entree .46s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes vt-sortie { to { opacity: 0; transform: translateY(-10px) scale(.994); } }
@keyframes vt-entree { from { opacity: 0; transform: translateY(14px) scale(.994); } }
body.page-sortie { opacity: 0; transform: translateY(-8px); transition: opacity .26s ease, transform .26s ease; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  body.page-sortie { opacity: 1; transform: none; transition: none; }
}

/* accueil : quatre projets sur une rangée */
@media (min-width: 620px) {
  .grille--projets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projet__corps { padding: 20px 20px 24px; }
  .projet h3 { font-size: 21px; }
  .projet p { font-size: 13.5px; }
}


/* ---------- fondateur et partenaires ---------- */
.fondateur {
  display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: clamp(26px, 4vw, 56px);
  align-items: start; margin: 6px 0 40px;
}
.fondateur__photo { position: relative; }
.fondateur__photo img {
  width: 100%; height: auto; display: block; border-radius: 3px;
  filter: saturate(.94) contrast(1.03);
  box-shadow: 0 26px 60px -38px rgba(30, 25, 15, .55);
}
.fondateur__photo::after {
  content: ''; position: absolute; inset: 12px -12px -12px 12px; z-index: -1;
  border: 1px solid rgba(118, 90, 36, .55); border-radius: 3px;
}
.fondateur__texte h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.6vw, 34px); margin: 0 0 4px; }
.fondateur__texte .role { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--laiton); margin: 0 0 18px; }
.fondateur__texte p { max-width: 60ch; }
@media (max-width: 720px) {
  .fondateur { grid-template-columns: 1fr; }
  .fondateur__photo { max-width: 260px; }
}


/* image de maquette téléphone : jamais rognée */
.projet--device .projet__media img { object-fit: contain; }

/* ===== pages projets (genere, ne pas editer a la main) ===== */

/* ---------- page projets ---------- */
.liste-projets { display: grid; gap: 1px; background: var(--filet); }
.entree-projet {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  background: var(--ivoire); text-decoration: none; color: inherit;
  transition: background .3s ease;
}
.entree-projet:hover, .entree-projet:focus-visible { background: var(--ivoire-2); }
.entree-projet__texte { padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.entree-projet__type { margin: 0 0 12px; font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--laiton); }
.entree-projet h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 38px); margin: 0 0 14px; }
.entree-projet p { margin: 0 0 18px; color: var(--gris); font-size: 16px; max-width: 46ch; }
.entree-projet__chiffres { display: flex; flex-wrap: wrap; gap: 22px; margin: 0 0 22px; }
.entree-projet__chiffres b { font-family: var(--serif); font-weight: 400; font-size: 20px; display: block; }
.entree-projet__chiffres span { font-size: 12.5px; color: var(--gris); }
.entree-projet__media { position: relative; overflow: hidden; min-height: 320px; background: var(--ivoire-2); }
.entree-projet__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.entree-projet__suite { font-size: 14px; color: var(--laiton); }

/* ---------- fiche projet ---------- */
.fiche-hero { padding: clamp(40px, 7vh, 84px) clamp(20px, 5vw, 64px) 0; max-width: 1100px; margin: 0 auto; }
.retour { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--laiton); text-decoration: none; }
.fiche-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5vw, 64px); line-height: 1.05; letter-spacing: -.02em; margin: 18px 0 16px; }
.fiche-hero__resume { max-width: 60ch; color: var(--gris); font-size: clamp(16px, 1.5vw, 19px); margin: 0 0 34px; }
.fiche-chiffres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 26px 0; border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); }
.fiche-chiffres b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 2.2vw, 28px); }
.fiche-chiffres span { font-size: 13px; color: var(--gris); }
.fiche-corps { padding: clamp(34px, 5vh, 64px) clamp(20px, 5vw, 64px) clamp(48px, 8vh, 90px); max-width: 1100px; margin: 0 auto; }
.fiche-corps h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.4vw, 30px); margin: 44px 0 14px; }
.fiche-corps p { max-width: 74ch; color: var(--gris); }
.fiche-corps ul { max-width: 74ch; color: var(--gris); padding-left: 20px; }
.fiche-corps li { margin: 0 0 10px; }
.fiche-corps code { font-family: 'Jost', monospace; font-size: .92em; background: var(--ivoire-2); padding: 1px 5px; }
table.resultats { width: 100%; border-collapse: collapse; margin: 18px 0 0; font-size: 15.5px; }
table.resultats th, table.resultats td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--filet); }
table.resultats th { font-weight: 400; color: #5f5b52; width: 46%; }
table.resultats td { color: var(--encre); }
.encart { border-left: 2px solid var(--laiton); padding: 4px 0 4px 18px; margin: 30px 0; color: var(--gris); max-width: 70ch; }
.galerie { display: grid; gap: 26px; margin: 28px 0 0; }
.galerie figure { margin: 0; }
.galerie .zoom { display: block; cursor: zoom-in; }
.galerie img { width: 100%; height: auto; display: block; border: 1px solid var(--filet); }
.zoom__aide { display: none; color: #6b6558; }
@media (max-width: 900px) { .zoom__aide { display: inline; } }
.galerie figcaption { font-size: 13.5px; color: var(--gris); margin-top: 10px; }
.video-bloc { margin: 30px 0 0; }
.video-bloc video { width: 100%; height: auto; display: block; border: 1px solid var(--filet); background: #111110; }
.video-bloc p { font-size: 13.5px; color: var(--gris); margin: 10px 0 0; }
.suite-projet { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-top: 60px; padding-top: 26px; border-top: 1px solid var(--filet); }
.suite-projet a { font-family: var(--serif); font-size: 24px; color: var(--encre); text-decoration: none; }
.suite-projet span { font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--laiton); display: block; margin-bottom: 6px; }
@media (max-width: 900px) {
  .entree-projet { grid-template-columns: 1fr; }
  .entree-projet__media { min-height: 220px; order: -1; }
  .fiche-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}

/* balayage lumineux sur le bouton principal */
.bouton { position: relative; overflow: hidden; }
.bouton::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-18deg); transition: left .75s cubic-bezier(.2, .7, .2, 1);
}
.bouton:hover::after, .bouton:focus-visible::after { left: 120%; }
@media (prefers-reduced-motion: reduce) { .bouton::after { display: none; } }

/* le CTA fonctionne aussi dans le contenu (page À propos) */


.projet p { font-size: 14.5px; }

/* navbar : liens centrés, CTA à droite */
.entete { display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); position: relative; }
.entete .marque { flex: 0 0 auto; }

.entete .nav__liens { display: flex; align-items: center; gap: clamp(24px, 3.4vw, 54px); margin: 0 auto; }
.entete 
.entete 
@media (max-width: 900px) {
  .entete .nav { flex: none; }
  .entete 
  .entete .nav__liens { margin: 0; }
}

/* navbar desktop : liens centrés à la fenêtre, CTA sur la gouttière droite */
@media (min-width: 901px) {
  .entete { position: sticky; }
  .entete .nav { flex: 1 1 auto; position: static; }
  .entete .nav__liens {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    margin: 0;
  }
  .entete 
  .entete 
}

/* ---------- CTA « Parler d'un projet » : carré, filet laiton ---------- */
.nav__cta {
  position: relative; overflow: hidden; isolation: isolate; display: inline-block;
  padding: 12px 22px; border: 1px solid var(--laiton); border-radius: 2px;
  color: var(--laiton) !important; letter-spacing: .03em; text-decoration: none;
  transition: color .45s cubic-bezier(.2,.7,.2,1), transform .35s ease, box-shadow .35s ease;
}
.nav__cta::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--laiton);
  transform: translateY(101%); transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.nav__cta:hover, .nav__cta:focus-visible {
  color: var(--ivoire) !important; box-shadow: 0 14px 28px -18px rgba(118, 90, 36, .8);
}
.nav__cta:hover::before, .nav__cta:focus-visible::before { transform: translateY(0); }

@media (min-width: 901px) {
  .entete .nav { flex: 1 1 auto; position: static; }
  .entete .nav__liens { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; }
  .entete .nav__cta { position: absolute; right: clamp(20px, 5vw, 64px); top: 50%; transform: translateY(-50%); }
  .entete .nav__cta:hover, .entete .nav__cta:focus-visible { transform: translateY(calc(-50% - 1px)); }
}
@media (max-width: 900px) {
  .entete .nav { flex: none; }
  .entete .nav__liens { margin: 0; }
  .entete .nav__cta { position: static; transform: none; margin: 16px 0 4px; text-align: center; }
}

/* ---------- pied : mentions légales à droite ---------- */
.pied { display: flex; flex-direction: column; }
.pied__liens { margin: 10px 0 0; }
@media (min-width: 700px) {
  .pied__liens { align-self: flex-end; margin-top: 16px; text-align: right; }
}

/* mobile : le menu est un panneau déroulant, jamais une barre */
@media (max-width: 900px) {
  .entete .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex: none; }
  .entete .nav.nav--ouvert { display: flex; }
}
