/* Langage visuel commun des gabarits intérieurs.
   Référence : variante-finale.html (validée, voir NOTES.md) + DESIGN.md / EXPERIENCE.md. */

/* Jost hébergée sur le serveur du site (licence SIL OFL) : aucun appel à Google (2026-11-14) */
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url('public/fonts/jost-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url('public/fonts/jost-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Jost'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('public/fonts/jost-italique-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jost'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('public/fonts/jost-italique-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face {
  font-family: 'Marigold-fr';
  src: url('public/fonts/marigold-fr.woff2') format('woff2');
  font-display: swap;
}

:root {
  --grege: #E0D9D3;
  --blanc: #FFFFFF;
  --anthracite: #1F1D1A;
  --or: #C19A72;
  --or-clair: #D6BD9D;
  --erreur: #8E3227;
  --texte-2: rgba(31, 29, 26, 0.72);
  --sur-anthracite: #E8E2DB;
  --serif: 'Marigold-fr', Georgia, serif;
  --sans: 'Jost', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}
* { margin: 0; box-sizing: border-box; }
/* Contenus masqués en attente (attribut hidden) : toujours invisibles, quel que soit le display de leur classe */
[hidden] { display: none !important; }
html { background: var(--blanc); }
body {
  background: var(--grege);
  color: var(--anthracite);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 48px; }

.kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.diamond { width: 7px; height: 7px; background: var(--or); transform: rotate(45deg); flex-shrink: 0; }
.meta { font-size: 12px; letter-spacing: 0.08em; color: var(--texte-2); }

/* ---------- Header (variante finale) ---------- */
header.site {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 34px 48px 30px;
}
header.site nav { display: flex; gap: 36px; font-size: 13px; letter-spacing: 0.06em; }
header.site nav.right { justify-content: flex-end; }
header.site .brand img { height: 76px; width: auto; }
/* Losange doré au-dessus du lien du menu survolé, comme sur l'accueil (décision 2026-11-14) */
header.site nav a:not(.lang) { position: relative; }
header.site nav a:not(.lang)::before {
  content: ""; position: absolute; left: 50%; top: -9px; width: 5px; height: 5px; background: var(--or);
  transform: translateX(-50%) rotate(45deg) scale(0); transition: transform 300ms var(--ease);
}
header.site nav a:not(.lang):hover::before, header.site nav a:not(.lang):focus-visible::before { transform: translateX(-50%) rotate(45deg) scale(1); }
@media (prefers-reduced-motion: reduce) { header.site nav a::before { transition: none; } }
header.site .lang { color: var(--texte-2); letter-spacing: 0.16em; font-size: 12px; }
header.site .lang b { font-weight: 500; color: var(--anthracite); }
header.site nav a.current { font-weight: 500; border-bottom: 1px solid var(--anthracite); padding-bottom: 3px; }

/* ---------- Tête de page intérieure ---------- */
.page-head { text-align: center; padding: 72px 48px 64px; }
.page-head .kicker { justify-content: center; margin-bottom: 32px; }
.page-head h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 47px;
  line-height: 1.06;
  max-width: 24ch;
  margin: 0 auto;
  text-wrap: balance;
}
.page-head .chapo {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--texte-2);
  max-width: 860px;
  margin: 28px auto 0;
  text-wrap: balance;
}

/* ---------- Fil d'Ariane ---------- */
.breadcrumb {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 40px 48px 0;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--texte-2);
}
.breadcrumb .diamond { width: 5px; height: 5px; }

/* ---------- Image d'ouverture, légende de musée ---------- */
.opening { padding: 0 48px 120px; }
.opening .frame { max-width: 1240px; margin: 0 auto; }
.opening img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.opening .caption { display: flex; justify-content: space-between; margin-top: 18px; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section.blanc { background: var(--blanc); }
.section .head { max-width: 1240px; margin: 0 auto 56px; padding: 0 48px; }
.section .head h2 { font-family: var(--serif); font-weight: 500; font-size: 29px; margin-top: 18px; }

/* ---------- Trois volets d'offre ---------- */
.volets {
  max-width: 1240px; margin: 0 auto; padding: 0 48px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px;
}
.volet .num {
  font-family: var(--serif); font-style: normal; font-weight: 400;
  font-size: 12px; color: var(--or); letter-spacing: 0.04em;
}
.volet h3 { font-family: var(--serif); font-weight: 500; font-size: 18px; margin: 12px 0 14px; }
.volet p { color: var(--texte-2); font-size: 15px; }

/* ---------- Cards de réalisation ---------- */
.cards {
  max-width: 1240px; margin: 0 auto; padding: 0 48px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.card { display: block; }
.card .visuel { overflow: hidden; }
.card img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  transition: transform 640ms var(--ease);
}
.card:hover img { transform: scale(1.04); }
.card h3 {
  font-family: var(--serif); font-weight: 500; font-size: 16px;
  margin: 16px 0 6px;
  display: inline-block;
  border-bottom: 1px solid transparent;
}
.card:hover h3 { border-bottom-color: var(--anthracite); }
.card .meta { display: block; }

/* ---------- Témoignage ---------- */
.temoignage { padding: 80px 48px; }
.temoignage .carte {
  background: var(--blanc);
  max-width: 860px; margin: 0 auto;
  padding: 72px 80px; text-align: center;
}
.temoignage .diamond { margin: 0 auto 36px; }
.temoignage blockquote {
  font-family: var(--serif); font-weight: 400; font-style: normal;
  font-size: 20px; line-height: 1.4;
  text-wrap: balance;
}
.temoignage .qui {
  margin-top: 30px;
  font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--texte-2);
}

/* ---------- FAQ ---------- */
.faq { max-width: 1240px; margin: 0 auto; padding: 0 48px; }
.faq details { border-top: 1px solid var(--or-clair); }
.faq details:last-child { border-bottom: 1px solid var(--or-clair); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: 26px 8px;
  font-family: var(--serif); font-weight: 500; font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--sans); font-weight: 300; font-size: 20px; color: var(--texte-2); }
.faq details[open] summary::after { content: '·'; }
.faq .reponse { padding: 0 8px 28px; color: var(--texte-2); max-width: 860px; }

/* ---------- CTA de clôture (variante finale) ---------- */
.cta { text-align: center; padding: 96px 48px 100px; }
.cta .kicker { justify-content: center; margin-bottom: 34px; }
.cta h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: 37px; line-height: 1.08;
  max-width: 20ch; margin: 0 auto 48px;
  text-wrap: balance;
}
.btn {
  display: inline-block;
  background: var(--or);
  color: var(--anthracite);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding: 20px 40px;
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
  white-space: nowrap;
  /* Angles coupés, rappel du losange du logo (décision 2026-11-14) */
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
  transition: background 180ms var(--ease), color 180ms var(--ease);
}
/* Fond doré, texte anthracite (6,5:1) ; survol à l'anthracite (décision 2026-10-21) */
.btn:hover { background: var(--or-clair); color: var(--anthracite); }

/* ---------- Formulaires ---------- */
.formulaire { max-width: 680px; margin: 0 auto; padding: 0 48px; }
.champ { margin-bottom: 44px; }
.champ label {
  display: block;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  margin-bottom: 10px;
}
.champ input, .champ textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--anthracite);
  padding: 10px 2px 12px;
  font-family: var(--sans); font-weight: 300; font-size: 16px;
  color: var(--anthracite);
}
.champ input:focus, .champ textarea:focus {
  outline: none;
  border-bottom-width: 2px;
  padding-bottom: 11px;
}
.champ input::placeholder, .champ textarea::placeholder { color: rgba(31, 29, 26, 0.4); }
.champ .exemple { margin-top: 8px; font-size: 12px; color: var(--texte-2); letter-spacing: 0.04em; }
.consentement { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 44px; font-size: 14px; color: var(--texte-2); }
.consentement input { width: 16px; height: 16px; margin-top: 4px; accent-color: var(--anthracite); }
.consentement a { border-bottom: 1px solid var(--anthracite); color: var(--anthracite); }

/* Choix du formulaire : texte seul, petit losange devant le choix retenu, texte plus appuyé (décision 2026-11-14) */
.segments { display: flex; flex-wrap: wrap; gap: 12px 36px; margin-bottom: 56px; }
.segment {
  position: relative;
  border: 0; background: transparent;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 0;
  font-size: 16px; font-weight: 400; color: var(--texte-2);
  letter-spacing: 0.02em;
  cursor: pointer; transition: color 180ms var(--ease);
}
/* Le losange se place dans la marge, à gauche du texte, pour que les choix restent alignés */
.segment::before, .champ .budget-option::before { content: ""; position: absolute; left: -16px; top: 50%; width: 6px; height: 6px; margin-top: -3px; transform: rotate(45deg); background: transparent; }
.segment:hover, .champ .budget-option:hover { color: var(--anthracite); }
.segment.actif, .segment:has(input:checked) { color: var(--anthracite); font-weight: 500; }
.segment.actif::before, .segment:has(input:checked)::before, .budget-option:has(input:checked)::before { background: var(--anthracite); }
/* Le bouton radio reste accessible au clavier et aux lecteurs d'écran, mais invisible */
.segment input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.segment:has(input:focus-visible) { outline: 2px solid var(--anthracite); outline-offset: 3px; }

/* ---------- Footer (variante finale) ---------- */
footer.site { background: var(--blanc); color: var(--anthracite); padding: 88px 0 40px; }
footer.site .cols {
  max-width: 1240px; margin: 0 auto; padding: 0 48px 72px;
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(40px, 6vw, 96px); align-items: start;
}
footer.site .cachet { width: 128px; height: 128px; }
/* La navigation passe à la ligne entre 760 et 1100 px au lieu de déborder */
footer.site nav { display: flex; flex-wrap: wrap; gap: 14px 32px; min-width: 0; font-size: 13px; letter-spacing: 0.06em; padding-top: 8px; }
footer.site nav a { opacity: 1; }
footer.site .contact { text-align: right; font-size: 13px; line-height: 2.1; padding-top: 4px; }
footer.site .contact .geo { color: var(--anthracite); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 10px; }
footer.site .bottom {
  max-width: 1240px; margin: 0 auto; padding: 26px 48px 0;
  border-top: 1px solid rgba(31, 29, 26, 0.18);
  display: flex; justify-content: space-between;
  font-size: 11px; letter-spacing: 0.08em; color: var(--texte-2);
}

/* ---------- Hero des pages d'offre (2026-10-21) ----------
   Même geste que l'accueil v2, à environ 75 % : grand titre en capitales,
   l'image recouvre le dernier tiers des lettres de la dernière ligne. */
.hero-offre { text-align: center; padding: 64px 32px 0; position: relative; z-index: 2; }
.hero-offre .kicker { justify-content: center; margin-bottom: 30px; }
.hero-offre h1 {
  font-family: var(--serif);
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(25px, 4.6vw, 72px);
  line-height: 0.94;
  letter-spacing: 0.01em;
  margin: 0 auto;
  text-wrap: balance;
}
.hero-offre h1[hidden] { display: none; }
.opening-offre { padding: 0 32px 80px; margin-top: -0.37em; font-size: clamp(25px, 4.6vw, 72px); }
.opening-offre .frame { max-width: 1380px; margin: 0 auto; font-size: 16px; }
.opening-offre img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.opening-offre .caption { display: flex; justify-content: space-between; margin-top: 18px; }
.opening-offre .chapo {
  font-family: var(--serif); font-weight: 400; font-size: 16px; line-height: 1.5;
  color: var(--texte-2); text-align: center;
  max-width: 860px; margin: 64px auto 0; text-wrap: balance;
}

/* Barre d'essai (retirée de la version finale) */
.essai {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 50;
  display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: center;
  background: rgba(31,29,26,0.92); color: var(--sur-anthracite, #E8E2DB);
  font-size: 11px; letter-spacing: 0.08em; padding: 10px 14px; max-width: calc(100vw - 32px);
}
.essai span { opacity: 0.7; text-transform: uppercase; letter-spacing: 0.16em; }
.essai button {
  font: inherit; color: inherit; background: transparent; border: 1px solid rgba(232,226,219,0.35);
  padding: 4px 9px; cursor: pointer;
}
.essai button[aria-pressed="true"] { background: #E8E2DB; color: var(--anthracite); }

@media (max-width: 760px) {
  .opening-offre { padding: 0 16px 80px; }
  .opening-offre img { aspect-ratio: 4 / 5; }
  .opening-offre .chapo { font-size: 16px; margin-top: 40px; }
  /* Image au haut trop foncé une fois recadrée en hauteur : le titre ne la chevauche pas */
  .opening-offre.sans-chevauchement-mobile { margin-top: 20px; }
  .btn { letter-spacing: 0.14em; padding: 18px 26px; }
  /* Trois choix de type sur une ligne : lettres moins espacées */
  .segments { gap: 8px 28px; }
}

@media (max-width: 760px) {
  header.site { grid-template-columns: 1fr; justify-items: center; gap: 14px; padding: 24px 16px; }
  header.site nav { gap: 18px; flex-wrap: wrap; justify-content: center; }
  header.site nav.right { justify-content: center; }
}

  /* Introductions sous les images : Marigold épaissie (contour de 0,3 px) et foncée, en anthracite (décision 2026-11-14) */
  .page-head .chapo, .opening-offre .chapo { color: var(--anthracite); -webkit-text-stroke: 0.3px currentColor; }
  /* Marigold-fr : capitales seules, espacées (décision 2026-11-14) */
  .page-head h1,
  .page-head .chapo,
  .section .head h2,
  .volet .num,
  .volet h3,
  .card h3,
  .temoignage blockquote,
  .faq summary,
  .cta h2,
  .hero-offre h1,
  .opening-offre .chapo {
    text-transform: uppercase; letter-spacing: 0.05em; font-weight: 400; font-style: normal;
  }

/* Texte courant des articles et réalisations en Jost 400 (graisse validée le 2026-11-14, doc 17) */
.page-article .colonne p:not(.meta):not(.chapo):not(.sig) { font-weight: 400; }

/* Sur téléphone, Jost passe de 300 à 400 pour le texte courant : plus confortable à lire (décision 2026-11-14) */
@media (max-width: 760px) {
  body, body .affirmations .detail, body .champ input, body .champ textarea, body .champ select,
  body .invites-valeur small, body .invites-valeur.vide { font-weight: 400; }
}

/* Téléphone : blocs en trois colonnes empilés, marges latérales réduites (correctif 2026-11-14) */
@media (max-width: 760px) {
  .volets, .cards { grid-template-columns: 1fr; padding: 0 16px; gap: 44px; }
  .section .head, .faq, .formulaire { padding-left: 16px; padding-right: 16px; }
  .temoignage { padding: 64px 16px; }
  .cta { padding: 72px 16px 80px; }
  body .deux-colonnes { grid-template-columns: 1fr; gap: 0; }
  body .articles { grid-template-columns: 1fr; padding: 0 16px 80px; }
  body .filtres { padding: 0 16px 40px; }
  .page-head { padding-left: 16px; padding-right: 16px; }
  body .page-head h1 { font-size: 30px; }
  body .naissance { grid-template-columns: 1fr; gap: 40px; padding: 0 16px; }
}
