/* =====================================================================
   Base : remise à zéro, typographie, utilitaires et éléments de marque.
   Charte : angles droits, aucune ombre, aucun arrondi.
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hauteur-entete) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ch-ivoire);
  color: var(--ch-bleu);
  font-family: var(--ch-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--ch-bleu); }
a:hover { color: var(--ch-or-fonce); }
:focus-visible { outline: 2px solid var(--ch-or); outline-offset: 3px; }
main:focus { outline: none; }
[hidden] { display: none !important; }

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

/* ---------- Accessibilité ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--ch-bleu); color: var(--ch-or-clair); padding: 12px 20px; text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--ch-or-clair); }

/* ---------- Mise en page ---------- */
.wrap { max-width: var(--largeur-max); margin: 0 auto; padding: 0 var(--gouttiere); }
.section { padding: var(--section) 0; position: relative; }
.section--sans-haut { padding-top: 0; }
.section--court { padding: clamp(48px, 6vw, 80px) 0; }
.section--sombre { background: var(--ch-bleu); color: var(--ch-ivoire); }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack--large { gap: clamp(40px, 5vw, 60px); }
.actions { display: flex; gap: 16px 28px; align-items: center; flex-wrap: wrap; }
.actions--centre { justify-content: center; }

/* En-tête de section */
.entete { display: flex; flex-direction: column; gap: 20px; }
.entete__titres { display: flex; flex-direction: column; gap: 20px; }
.entete--duo { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.entete--duo .h2 { max-width: 16ch; }
.entete--duo .lead { max-width: 42ch; }
.entete--centre { align-items: center; text-align: center; }
.entete--centre .h2 { max-width: 20ch; }

/* ---------- Typographie ---------- */
.sur {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--ch-sans); font-weight: 500; font-size: 13px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--ch-or-fonce);
}
.sur::before { content: ""; width: 8px; height: 8px; border: 1px solid currentColor; transform: rotate(45deg); flex: none; }
.sur--clair, .section--sombre .sur { color: var(--ch-or-clair); }
.entete--centre .sur { justify-content: center; }

.h2 {
  font-family: var(--ch-serif); font-weight: 400; font-size: clamp(36px, 4.4vw, 58px);
  line-height: 1.08; letter-spacing: -.005em; text-wrap: balance;
}
.h2 em { font-style: italic; font-weight: 300; color: var(--ch-or-fonce); }
.section--sombre .h2, .panneau .h2 { color: var(--ch-ivoire); }
.section--sombre .h2 em { color: var(--ch-or-clair); }
.h2--moyen { font-size: clamp(32px, 3.4vw, 46px); }

.lead { font-size: 17px; color: var(--ch-texte-doux); max-width: 58ch; text-wrap: pretty; }
.section--sombre .lead { color: var(--ch-champagne); }

.signature { font-family: var(--ch-serif); font-style: italic; font-size: 28px; color: var(--ch-or-clair); }
.chiffre { font-family: var(--ch-serif); font-variant-numeric: lining-nums tabular-nums; }
.citation-courte { font-family: var(--ch-serif); font-size: 23px; line-height: 1.4; }

.texte-long { max-width: 760px; }
.texte-long h2 { font-family: var(--ch-serif); font-weight: 500; font-size: 28px; margin-top: 16px; }
.texte-long p { color: var(--ch-texte-doux); }

/* ---------- Boutons (angles droits) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 50px; padding: 0 30px;
  font-family: var(--ch-sans); font-weight: 500; font-size: 13px; letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none; text-align: center; cursor: pointer;
  border: 1px solid var(--ch-bleu); border-radius: 0;
  background: var(--ch-bleu) linear-gradient(var(--ch-or), var(--ch-or)) no-repeat left / 0% 100%;
  color: var(--ch-or-clair);
  transition: background-size .5s var(--ease-glisse), color .4s, border-color .4s;
}
.btn:hover { background-size: 100% 100%; color: var(--ch-nuit); border-color: var(--ch-or); }
.btn svg { transition: transform .4s; }
.btn:hover svg { transform: translateX(5px); }
.btn--contour { background-color: transparent; border-color: var(--ch-or); color: var(--ch-or-clair); }
.btn--contour:hover { color: var(--ch-nuit); }
.btn--clair { background-color: transparent; color: var(--ch-bleu); }
.btn--clair:hover { color: var(--ch-nuit); }
.btn--or { background-color: var(--ch-or); border-color: var(--ch-or); color: var(--ch-nuit); }
.btn--or:hover { background-image: linear-gradient(var(--ch-or-clair), var(--ch-or-clair)); }
.btn--discret { border-color: var(--ch-champagne-a45); color: var(--ch-ivoire); }
.btn--large { width: 100%; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

.lnk {
  font-weight: 500; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
  color: var(--ch-bleu); padding-bottom: 4px;
  background: linear-gradient(var(--ch-or), var(--ch-or)) no-repeat left bottom / 0% 1px;
  transition: background-size .5s;
}
.lnk:hover { background-size: 100% 1px; color: var(--ch-bleu); }

/* ---------- Éléments graphiques ---------- */
.filet { height: 1px; border: 0; margin: 0; background: var(--ch-filet-or); }
.filet--court { width: 160px; }
.frise { height: 14px; background-image: var(--ch-frise); background-size: 20px 14px; background-repeat: repeat-x; }
.frise--nuit { background-image: var(--ch-frise-nuit); background-color: var(--ch-nuit); }
.motif-nuit { background-color: var(--ch-nuit); background-image: var(--ch-motif-nuit); background-size: 48px 36px; }
.motif-ivoire { background-color: var(--ch-ivoire); background-image: var(--ch-motif-ivoire); background-size: 48px 36px; }
.cadre-double { border: 1px solid var(--ch-or); outline: 1px solid var(--ch-or); outline-offset: 6px; }
.crown-clip { clip-path: polygon(0 7%, 12.5% 0, 25% 7%, 37.5% 0, 50% 7%, 62.5% 0, 75% 7%, 87.5% 0, 100% 7%, 100% 100%, 0 100%); }
.voile { position: absolute; inset: 0; background: linear-gradient(180deg, var(--ch-nuit-a55) 0%, color-mix(in srgb, var(--ch-nuit) 35%, transparent) 40%, var(--ch-nuit-a92) 100%); }

/* Listes à puces losange or */
.lst { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.lst li { display: flex; gap: 14px; align-items: baseline; }
.lst li::before { content: ""; width: 7px; height: 7px; background: var(--ch-or); transform: rotate(45deg) translateY(-2px); flex: none; }
.lst--doux { font-size: 15px; color: var(--ch-texte-doux); }
.section--sombre .lst li { color: var(--ch-ivoire); }

/* Photos : zoom au survol */
.zoom { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-sortie); }
.card:hover .zoom, .zh:hover .zoom, .svc:hover .zoom { transform: scale(1.08); }

/* ---------- Apparitions ---------- */
.fade-in { opacity: 0; animation: fIn 1s ease forwards; }
.fade-in:nth-child(2) { animation-delay: .2s; }
.fade-in:nth-child(3) { animation-delay: .9s; }
.fade-in:nth-child(4) { animation-delay: 1.1s; }
.fade-in:nth-child(5) { animation-delay: 1.3s; }
@keyframes fIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Apparitions au défilement : amélioration progressive, ignorée sans support. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .rv { animation: rvUp linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
    .rv-l { animation: rvL linear both; animation-timeline: view(); animation-range: entry 0% entry 50%; }
    .rv-r { animation: rvR linear both; animation-timeline: view(); animation-range: entry 0% entry 50%; }
    .rv-img { animation: rvImg linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    .rv-line { transform-origin: left; animation: rvLine linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
    .para { animation: para linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  }
}
@keyframes rvUp { from { opacity: 0; transform: translateY(56px); } to { opacity: 1; transform: none; } }
@keyframes rvL { from { opacity: 0; transform: translateX(-70px); } to { opacity: 1; transform: none; } }
@keyframes rvR { from { opacity: 0; transform: translateX(70px); } to { opacity: 1; transform: none; } }
@keyframes rvImg { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rvLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes para { from { transform: translateY(-8%) scale(1.12); } to { transform: translateY(8%) scale(1.12); } }
