/* ==========================================================================
   VIP Animation — système de design, version 3
   Direction : « Type and nothing else » (seed 1784855798)
   Palette   : « Papier journal et laiton » (tirée une seconde fois : la
               première, rose bonbon et citron vert, contredisait la
               promesse d'élégance du client).
   L'idée    : la ligne où la réception bascule dans la nuit. Le papier
               tient le jour, des sections entières passent au noir, et le
               laiton marque un seul détail par écran.
   Les noms de classes de la version précédente sont conservés : les trois
   pages et les deux includes s'y appuient.
   ========================================================================== */

/* --- 1. Jetons ----------------------------------------------------------- */
/* Version 4 : « Noir & or ». Le client préfère l'élégance sombre de son
   ancien site : noir pur, ivoire, or champagne et un serif (Fraunces) pour
   les titres. Les noms des jetons restent ceux de la v3 (les pages s'y
   appuient) ; seules leurs valeurs basculent :
     --paper  = le fond de la page, désormais le noir ;
     --night  = les sections qui « basculent », désormais un noir chaud
                d'un cran plus clair, pour rythmer la page sans la blanchir. */
:root {
  --paper:       #000000;   /* le fond : noir pur, comme l'ancien site */
  --paper-warm:  #0f0d0a;   /* un cran de ton, jamais un filet */
  --ink:         #f2eee3;   /* l'encre : ivoire */
  --ink-soft:    #b9b2a3;   /* ivoire secondaire, 10:1 sur le noir */

  --night:       #14110d;   /* les sections qui basculent : noir chaud */
  --night-warm:  #1e1a14;   /* un cran de ton dans la nuit */
  --ink-on-ink:  #f2eee3;   /* l'ivoire posé sur la nuit */
  --night-soft:  #b9b2a3;   /* secondaire sur la nuit, 9:1 */
  --field:       #14110d;   /* alias conservé pour les pages */

  --accent:      #c8a75d;   /* l'or champagne : l'action et les chiffres */
  --accent-hover:#d9bd7a;
  --accent-ink:  #000000;

  /* Les filets : 1px, or ou ivoire à faible opacité. Un seul par page dans
     le commun (le haut du pied de page) ; les champs de saisie ont le leur. */
  --rule-gold:   rgba(200, 167, 93, 0.45);
  --rule-ivory:  rgba(242, 238, 227, 0.30);

  --face-display: "Fraunces", Georgia, "Times New Roman", serif;
  --face-text:    "Red Hat Text", "Helvetica Neue", Arial, sans-serif;

  /* Cinq tailles. Pas six. */
  --step-small:   clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body:    clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead:    clamp(1.25rem, 1.05rem + 0.9vw, 1.875rem);
  --step-head:    clamp(2.5rem, 1.2rem + 5vw, 5.5rem);
  --step-display: clamp(2.45rem, 10.2vw, 8.75rem);

  --gutter:      clamp(1rem, 3.2vw, 2.5rem);
  --measure:     62ch;
  --section-gap: clamp(6rem, 12vw, 15rem);
  --radius:      0;

  --ease:        cubic-bezier(0.2, 0.7, 0.1, 1);
  --dur:         0.7s;
}

/* --- 2. Remise à zéro ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: dark; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--face-text);
  font-weight: 400;
  font-size: var(--step-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* clip, jamais hidden : hidden ferait du body un conteneur de défilement */
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--face-display);
  font-weight: 460;
  font-optical-sizing: auto;
  letter-spacing: -0.015em;
  line-height: 0.98;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; max-width: var(--measure); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
strong, b { font-weight: 500; }

/* Le focus : un cadre d'or net, 2px, détaché de l'élément. 8.9:1 sur le noir. */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.night :focus-visible, .band :focus-visible { outline-color: var(--accent); }
::selection { background: var(--accent); color: var(--accent-ink); }

/* --- 3. Cadre ------------------------------------------------------------ */
.wrap { width: min(100% - (var(--gutter) * 2), 1440px); margin-inline: auto; }
.wrap--narrow { width: min(100% - (var(--gutter) * 2), 900px); margin-inline: auto; }

.section { padding-block: var(--section-gap); }
.section--tight { padding-block: clamp(4rem, 7vw, 8rem); }

/* Une section qui bascule au noir. */
.night, .band { background: var(--night); color: var(--ink-on-ink); }
.night .note, .band .note { color: var(--night-soft); }

.section-head { font-size: var(--step-head); max-width: 16ch; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.lead { font-size: var(--step-lead); line-height: 1.3; max-width: 34ch; }
.note { font-size: var(--step-small); color: var(--ink-soft); }

/* --- 4. Petites pièces --------------------------------------------------- */
/* Le losange plein, conservé pour les pages qui l'emploient. */
.diamond {
  display: inline-block; width: 7px; height: 7px;
  background: currentColor; transform: rotate(45deg);
  vertical-align: middle; margin-inline: 0.7em; flex: none;
}
/* Rangée de ronds pleins (perforation) : jamais un filet pointillé. */
.perf { display: flex; gap: 10px; align-items: center; justify-content: center; padding-block: 14px; }
.perf i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: 0.55; flex: none; }

/* Le bouton : un aplat d'or, carré, en capitales légèrement espacées.
   Sa variante --inverse est le même bouton au trait : l'or sur le noir,
   qui se remplit au survol (le geste des boutons de l'ancien site). */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px;
  padding: 0.9em 2em;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--face-text); font-weight: 500; font-size: var(--step-small);
  letter-spacing: 0.14em; text-transform: uppercase;
  line-height: 1.1; text-decoration: none;
  border: 1px solid var(--accent); border-radius: var(--radius); cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
              color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:active { transform: translateY(2px); }
.btn--inverse { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn--inverse:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--block { display: flex; width: 100%; }

/* Le lien : l'ivoire, souligné d'un trait d'or qui s'épaissit au survol. */
.link {
  text-decoration: underline; text-underline-offset: 0.28em;
  text-decoration-thickness: 1px; text-decoration-color: var(--accent);
  transition: text-decoration-thickness 0.2s var(--ease), color 0.2s var(--ease);
}
.link:hover { text-decoration-thickness: 2px; color: var(--accent-hover); }

/* --- 5. Mouvement -------------------------------------------------------- */
/* Entrée par parties : le titre, puis le texte, puis l'image. */
[data-rise] {
  opacity: 0; transform: translateY(24px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: var(--rise-delay, 0s);
}
[data-rise].is-in { opacity: 1; transform: none; }
.no-js [data-rise], .rise-all [data-rise] { opacity: 1; transform: none; }

/* Le geste signature : chaque ligne d'un titre monte de derrière sa
   propre ligne de base. Pur CSS : rien n'attend un script. */
.mask-line { display: block; overflow: clip; padding-block: 0.04em; margin-block: -0.04em; }
.mask-line > span { display: block; animation: monte 0.95s var(--ease) both; }
.mask-line:nth-child(2) > span { animation-delay: 0.11s; }
@keyframes monte { from { transform: translateY(108%); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-rise] { opacity: 1 !important; transform: none !important; }
}

/* --- 6. La barre du haut ------------------------------------------------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 1em 1.4em; font-size: var(--step-small); font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
}
.skip-link:focus { left: 0; }
.skip-link:focus-visible { outline-color: var(--ink); outline-offset: -6px; }

.topbar { padding-block: clamp(1rem, 2.2vw, 1.75rem); }
.topbar-inner {
  width: min(100% - (var(--gutter) * 2), 1440px); margin-inline: auto;
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 0.7rem; margin-right: auto;
  text-decoration: none;
  font-family: var(--face-display); font-weight: 560; font-size: var(--step-body);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.wordmark img { width: 30px; height: 30px; object-fit: contain; }
/* La navigation : des capitales espacées, l'ivoire secondaire au repos ;
   la page en cours et le survol passent à l'ivoire, soulignés d'un trait d'or. */
.topnav ul { display: flex; gap: clamp(1rem, 2.6vw, 2.25rem); }
.topnav a {
  display: inline-block; padding-block: 0.75em;
  text-decoration: none; font-size: var(--step-small); font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft);
  text-decoration-color: var(--accent); text-underline-offset: 0.7em; text-decoration-thickness: 1px;
  transition: color 0.2s var(--ease);
}
.topnav a:hover { color: var(--ink); text-decoration-line: underline; }
.topnav a[aria-current="page"] { color: var(--ink); text-decoration-line: underline; }
/* L'action de la barre : le bouton au trait. Le plein d'or reste au héros
   de l'accueil et au bouton d'envoi des formulaires. */
.topbar-action {
  min-height: 44px; padding: 0.6em 1.4em;
  background: transparent; color: var(--accent); border-color: var(--accent);
}
.topbar-action:hover { background: var(--accent); color: var(--accent-ink); }

.wordmark, .topbar-action { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 1000px) {
  .topbar-inner { gap: 1.1rem; }
  .wordmark { letter-spacing: 0.04em; gap: 0.55rem; }
  .topnav ul { gap: 1rem; }
  .topnav a { letter-spacing: 0.1em; }
  .topbar-action { padding: 0.6em 1em; letter-spacing: 0.1em; }
}
@media (max-width: 760px) {
  .topbar-inner { flex-wrap: wrap; gap: 0.25rem 1rem; }
  .topnav { flex-basis: 100%; order: 3; }
  .topnav ul { gap: 1.4rem; }
  .topbar-action { min-height: 44px; padding: 0.5em 0.85em; letter-spacing: 0.08em; }
}
/* Sur un téléphone, le nom et l'action tiennent sur une seule ligne. */
@media (max-width: 480px) {
  .topbar-inner { column-gap: 0.75rem; }
  .wordmark { gap: 0.5rem; font-size: 1rem; letter-spacing: 0.03em; }
  .wordmark img { width: 26px; height: 26px; }
  .topbar-action { padding: 0.5em 0.7em; letter-spacing: 0.05em; }
}
@media (max-width: 380px) {
  .topbar-inner { column-gap: 0.5rem; }
  .wordmark { font-size: 0.9375rem; letter-spacing: 0.01em; gap: 0.4rem; }
  .wordmark img { width: 24px; height: 24px; }
  .topbar-action { padding: 0.5em 0.6em; letter-spacing: 0.02em; }
  .topnav ul { gap: 1rem; }
  .topnav a { letter-spacing: 0.07em; }
}

/* --- 7. Le pied de page : colonnes, puis la mention de copyright ---------- */
.page-main { position: relative; z-index: 1; background: var(--paper); }

.site-footer {
  /* Le pied reste sur le noir de la page ; un filet d'or, le seul du
     commun, le détache de la dernière section. */
  background: var(--paper); color: var(--ink);
  /* Le plan voulait un pied d'un écran entier, rangée centrale vide. La page
     a déjà sa respiration (la photographie de la salle) : une seule. */
  display: grid; grid-template-rows: auto auto;
  padding-block: 0 clamp(1.25rem, 2.5vw, 2rem);
  /* Rendu différé tant que le pied est loin de l'écran. Il est le dernier
     bloc de chaque page et sous toutes les ancres (#devis, #le-deroule…) :
     rien ne bouge au-dessus de lui, aucun saut d'ancre ne se décale.
     « auto » : le navigateur retient ensuite sa vraie hauteur. */
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}
.foot-cols {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2.5rem clamp(1.25rem, 2.5vw, 2.5rem);
  border-top: 1px solid var(--rule-gold); /* taste-skill-ignore : le seul filet du commun, il structure le pied */
  padding-top: clamp(3.5rem, 7vw, 6rem);
}
.foot-signoff { grid-column: 1 / span 5; }
.foot-signoff h2 { font-size: var(--step-head); font-weight: 380; max-width: 11ch; margin-bottom: 1.4rem; }
.foot-signoff p { color: var(--ink-soft); max-width: 40ch; }
/* La signature du DJ : le détail d'or du pied. */
.foot-signoff .foot-sign {
  color: var(--accent); font-family: var(--face-display); font-weight: 400;
  font-size: var(--step-lead); line-height: 1.2; margin-top: 1.4rem;
}

.foot-list { grid-column: span 2; font-size: var(--step-body); }
.foot-list:first-of-type { grid-column: 7 / span 3; }
.foot-list li { padding-block: 0.15em; color: var(--ink-soft); }
.foot-list li:first-child { color: var(--ink); }
.foot-list a {
  text-decoration: none; display: inline-block; padding-block: 0.3em;
  text-decoration-color: var(--accent); text-underline-offset: 0.3em; text-decoration-thickness: 1px;
  transition: color 0.2s var(--ease);
}
.foot-list a:hover { text-decoration-line: underline; color: var(--ink); }
.foot-stamp { grid-column: 12 / span 1; justify-self: end; }
.foot-stamp img { width: 88px; height: 107px; object-fit: cover; object-position: center 20%; }

.foot-imprint {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  margin: clamp(3rem, 6vw, 5rem) 0 0; max-width: none;
  font-size: var(--step-small); color: var(--ink-soft);
}

@media (max-width: 900px) {
  .foot-signoff { grid-column: 1 / -1; }
  .foot-list, .foot-list:first-of-type { grid-column: span 6; }
  .foot-stamp { grid-column: 7 / -1; justify-self: start; align-self: start; }
}
@media (max-width: 480px) {
  .foot-stamp img { width: 64px; height: 78px; }
}

/* --- 8. Utilitaires ------------------------------------------------------ */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.tabular { font-variant-numeric: tabular-nums; }
