/* ==========================================================================
   QUICKFIX — Base : réinitialisation, typographie, conteneurs, accessibilité
   Le site est sombre par défaut, comme l'enseigne ; les sections « atelier »
   (.section--atelier) repassent en blanc, comme l'intérieur de la boutique.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.25rem;
  background: var(--nuit);
}

body {
  margin: 0;
  background: var(--nuit);
  color: var(--argent-doux);
  font-family: var(--font-texte);
  font-size: var(--pas-md);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-family: var(--font-titre);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--argent);
  text-wrap: balance;
}

h1 { font-size: var(--pas-3xl); }
h2 { font-size: var(--pas-2xl); }
h3 { font-size: var(--pas-xl); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* <address> porte le sens « voici les coordonnées » sans l'italique du navigateur. */
address { font-style: normal; }

sup { font-size: .62em; line-height: 0; vertical-align: super; }

a { color: var(--bleu-clair); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--argent); }

ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

button { font: inherit; color: inherit; }

/* --- Conteneurs ---------------------------------------------------------- */

.enveloppe { width: var(--enveloppe); margin-inline: auto; }

.section { position: relative; padding-block: var(--section); }
.section > .enveloppe { position: relative; z-index: 1; }
.section--haut { background: var(--nuit-haut); }

/* L'atelier : les sections blanches, comme l'intérieur de la boutique. */
.section--atelier {
  background: var(--blanc);
  color: var(--encre-douce);
}
/* Au passage de la nuit au blanc, un souffle de lumière bleue. */
.section--atelier::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5rem;
  background: linear-gradient(180deg, rgba(59, 169, 232, .085), transparent);
  z-index: 0;
  pointer-events: none;
}
.section--atelier + .section--atelier::before { display: none; }
.section--atelier h1,
.section--atelier h2,
.section--atelier h3,
.section--atelier h4 { color: var(--encre); }
.section--atelier a { color: var(--bleu-encre); }
.section--atelier a:hover { color: var(--encre); }

/* --- Titres de section --------------------------------------------------- */

.chapo {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: var(--e-2);
  font-family: var(--font-titre);
  font-size: var(--pas-xs);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bleu-clair);
}
.chapo::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--bleu);
  border-radius: 2px;
  box-shadow: var(--lueur-bleue);
}
.section--atelier .chapo { color: var(--bleu-encre); }
.section--atelier .chapo::before { box-shadow: none; }

.entete { max-width: 46rem; margin-bottom: var(--e-5); }
.entete--centre { margin-inline: auto; text-align: center; }
.entete--centre .chapo { justify-content: center; }

.intro {
  font-size: var(--pas-lg);
  color: var(--argent-doux);
  line-height: 1.7;
}
.section--atelier .intro { color: var(--encre-douce); }

/* --- Chrome et bleu de l'enseigne ---------------------------------------- */

.chrome {
  color: var(--argent);                       /* solution de repli */
  background: linear-gradient(178deg,
              #FFFFFF 0%, #E4EDF8 34%, #93A9C4 50%,
              #FBFDFF 60%, #C3D2E6 82%, #E9F1FA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.chrome--bleu {
  color: var(--bleu);
  background: linear-gradient(178deg,
              #C9E9FD 0%, #5EBEF7 32%, #1878B6 50%,
              #93D6FB 60%, #2E9BE0 84%, #7CCBF5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .chrome { color: var(--argent); background: none; }
  .chrome--bleu { color: var(--bleu); background: none; }
}

/* --- Utilitaires --------------------------------------------------------- */

.visuellement-cache {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --- Accessibilité ------------------------------------------------------- */

:focus-visible {
  outline: 3px solid var(--bleu);
  outline-offset: 3px;
  border-radius: var(--arrondi-sm);
}

.saut-contenu {
  position: absolute;
  top: -100%;
  left: .75rem;
  z-index: 100;
  padding: .7rem 1.1rem;
  background: var(--bleu);
  color: var(--nuit);
  border-radius: var(--arrondi-sm);
  font-weight: 600;
  text-decoration: none;
}
.saut-contenu:focus { top: .75rem; color: var(--nuit); }

/* --- Apparitions progressives -------------------------------------------- */

.js .apparait {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--duree-longue) var(--courbe),
              transform var(--duree-longue) var(--courbe);
}
.js .apparait.est-visible { opacity: 1; transform: none; }

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