/* Site de L&#39;Écart : tiré de sa charte (couleurs, police, motif, trame). Généré par fabrique/site.py. */
@font-face {
  font-family: "Montserrat";
  src: url("/assets/Montserrat.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --fond: #0E0E10;
  --texte: #F6F4EF;
  --accent: #FFD23F;
  --doux: #8E8C8B;
  --surface: #222226;
  --trait: #5F616A;
  --trame: #161618;
  --rayon: 18px;
  --large: 1120px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background-color: var(--fond);
  color: var(--texte);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 500;
  overflow-x: hidden;
}
body.trame-lignes { background-image: repeating-linear-gradient(to bottom, transparent 0 38px, var(--trame) 38px 40px); }
body.trame-points { background-image: radial-gradient(var(--trame) 2.5px, transparent 3px); background-size: 40px 40px; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
img { max-width: 100%; display: block; }

/* ---------------------------------------------------------------- en-tête et pied */
.entete, .pied, main > section, .texte-legal { width: min(var(--large), 100% - 32px); margin-inline: auto; }
.entete { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--texte); text-decoration: none; font-weight: 900; font-size: 22px; letter-spacing: 0.02em; }
.logo .motif { height: 26px; width: auto; }
.logo.petit { font-size: 17px; }
.logo.petit .motif { height: 20px; }
.nav-entete { display: flex; align-items: center; gap: 18px; }
.nav-entete a { color: var(--texte); font-weight: 700; font-size: 15px; text-decoration: none; }
.nav-entete a:hover { color: var(--accent); }
.nav-entete .nav-defi { color: var(--accent); }

.pied { border-top: 1px solid var(--trait); margin-top: 96px; padding: 32px 0 40px; display: grid; gap: 18px; }
.pied p { margin: 4px 0 0; color: var(--doux); font-size: 14px; }
.pied nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.pied nav a { color: var(--texte); font-size: 14px; font-weight: 600; text-decoration: none; }
.pied nav a:hover { color: var(--accent); }
.pied .copyright { font-size: 13px; }

/* ---------------------------------------------------------------- éléments communs */
.pastille {
  display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px;
  background: var(--accent); color: var(--fond); font-weight: 800; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
}
.accroche { font-size: clamp(19px, 2.2vw, 23px); font-weight: 700; margin: 18px 0 0; max-width: 34ch; }
.carte { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 24px; }
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 14px 28px;
  border: 0; border-radius: 999px; background: var(--accent); color: var(--fond); font: inherit; font-weight: 800; font-size: 18px;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.bouton:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px var(--accent); text-decoration: none; }
.bouton:disabled { opacity: .6; cursor: progress; transform: none; box-shadow: none; }

/* ---------------------------------------------------------------- accueil */
.haut { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; padding: 40px 0 24px; }
.haut h1 { font-size: clamp(44px, 6.4vw, 78px); font-weight: 900; }

.inscription { margin-top: 32px; display: grid; gap: 14px; max-width: 520px; }
.inscription > label { font-weight: 800; font-size: 15px; }
.inscription input[type=email] {
  width: 100%; min-height: 56px; padding: 0 18px; border-radius: 14px; border: 2px solid var(--trait);
  background: var(--fond); color: var(--texte); font: inherit; font-size: 18px; font-weight: 600;
}
.inscription input[type=email]::placeholder { color: var(--doux); opacity: .8; }
.inscription input[type=email]:focus { outline: none; border-color: var(--accent); }
.consentement { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--doux); cursor: pointer; }
.consentement input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.consentement a { color: var(--texte); }
.inscription .bouton { width: 100%; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.erreur { margin: 0; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--accent); font-weight: 700; font-size: 15px; }
.rassure { margin: 0; font-size: 13px; color: var(--doux); }

.telephones { position: relative; height: min(640px, 62vw); }
.telephone {
  position: absolute; margin: 0; width: 62%; aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden;
  border: 6px solid var(--surface); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px var(--trait);
}
.telephone img { width: 100%; height: 100%; object-fit: cover; }
.telephone.t1 { right: 0; top: 6%; transform: rotate(6deg); opacity: .9; }
.telephone.t2 { left: 0; top: 0; transform: rotate(-4deg); z-index: 1; }

.bloc { padding-top: 96px; }
.bloc h2 { font-size: clamp(32px, 4.2vw, 48px); font-weight: 900; }
.bloc .intro { color: var(--doux); max-width: 62ch; margin: 16px 0 0; }

.jours { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.jour { display: flex; gap: 18px; padding: 22px; border-radius: var(--rayon); background: var(--surface); border: 1px solid var(--trait); }
.jour .numero { flex: none; font-weight: 900; font-size: 30px; line-height: 1; color: var(--accent); min-width: 2.1em; }
.jour .pilier { margin: 0 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--doux); }
.jour h3 { font-size: 20px; font-weight: 800; }
.jour .croyance { margin: 10px 0 0; font-size: 14px; color: var(--doux); }
.jour .croyance span { display: block; font-weight: 700; }

.regles { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; max-width: 720px; }
.regles li { display: flex; gap: 16px; align-items: center; font-weight: 700; font-size: 18px; }
.regles li span {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: var(--fond); font-weight: 900;
}

.sources p { max-width: 68ch; color: var(--doux); margin: 16px 0 0; }
.sources ul { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sources li { padding: 8px 14px; border: 1px solid var(--trait); border-radius: 999px; font-size: 14px; font-weight: 700; }

.final { text-align: center; }
.final h2 { max-width: 20ch; margin: 0 auto 28px; }

/* ---------------------------------------------------------------- articles */
.titre-bloc { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.titre-bloc a { font-weight: 700; text-decoration: none; }
.cartes-articles { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.carte-article a { display: grid; gap: 8px; height: 100%; padding: 22px; border-radius: var(--rayon); background: var(--surface);
  border: 1px solid var(--trait); color: var(--texte); text-decoration: none; transition: border-color .15s ease; }
.carte-article a:hover { border-color: var(--accent); }
.carte-article .pilier { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.carte-article .titre-carte { font-size: 20px; font-weight: 800; line-height: 1.25; }
.carte-article .resume-carte { font-size: 15px; color: var(--doux); }
.carte-article time { font-size: 13px; color: var(--doux); align-self: end; }
.liste-articles h1 { font-size: clamp(38px, 5.4vw, 60px); font-weight: 900; }

/* lecture longue : le texte de l'article dans un encadré de couleur atténuée (sans trame derrière),
   le fond de la page reste celui du site ; texte moins éclatant, lignes aérées */
.article { width: min(780px, 100% - 32px); margin-inline: auto; padding-top: 32px; }
.cadre-lecture { background: #212022; border: 1px solid var(--trait); border-radius: 24px;
  padding: clamp(22px, 5vw, 52px); }
.cadre-lecture .carte { background: #0E0E10; }
.article section > p, .article .faq p, .article .source p { color: #D6D4D0; font-weight: 400;
  font-size: 18px; line-height: 1.75; }
.fil-ariane { font-size: 14px; color: var(--doux); margin-bottom: 20px; }
.fil-ariane a { color: var(--doux); }
.article h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 900; }
.meta-article { color: var(--doux); font-size: 14px; margin: 14px 0 0; }
.chapo { font-size: clamp(19px, 2.2vw, 22px); font-weight: 700; margin: 24px 0 0; }
.article h2 { font-size: 26px; font-weight: 800; margin: 44px 0 12px; }
.article section > p { margin: 0 0 16px; }
.video-lien, .video-lien-simple a { display: inline-block; margin-top: 24px; font-weight: 800; }
.gestes { margin-top: 44px; }
.gestes h2 { margin-top: 0; }
.faq details { border-bottom: 1px solid var(--trait); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 10px 0 0; color: var(--doux); }
.source { margin-top: 44px; }
.source p { margin: 0; }
.source p + p { margin-top: 8px; }
.etiquette-source { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.appel { margin-top: 24px; text-align: center; }
.appel h2 { margin: 0 0 8px; }
.appel p { margin: 0 0 20px; color: var(--doux); }

/* ---------------------------------------------------------------- pages de message */
.message { padding: 56px 0 0; max-width: 680px; }
.message h1 { font-size: clamp(38px, 5.4vw, 60px); font-weight: 900; }
.message .accroche { max-width: none; margin-bottom: 28px; }
.message .regles { margin: 0 0 28px; }
.message .regles li { font-size: 16px; }
.message form { margin: 0; }
.aide { margin-top: 28px; }
.aide p { margin: 0; }
.aide p + p { margin-top: 10px; color: var(--doux); }
.lien-suite { margin-top: 24px; color: var(--doux); }

/* ---------------------------------------------------------------- pages légales */
.texte-legal { max-width: 760px; padding-top: 40px; }
.texte-legal h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 900; margin-bottom: 28px; }
.texte-legal h2 { font-size: 22px; font-weight: 800; margin: 40px 0 10px; }
.texte-legal p, .texte-legal li { color: var(--texte); }
.texte-legal ul { padding-left: 22px; }
.texte-legal li + li { margin-top: 8px; }
.texte-legal .resume { font-size: 18px; }
.mise-a-jour { margin-top: 40px; color: var(--doux) !important; font-size: 14px; }

/* ---------------------------------------------------------------- téléphone */
@media (max-width: 860px) {
  .haut { grid-template-columns: 1fr; gap: 8px; padding-top: 16px; }
  .telephones { height: 420px; width: min(100%, 380px); margin: 32px auto 0; }
  .nav-entete { gap: 14px; }
  .nav-entete a { font-size: 14px; }
  .bloc { padding-top: 72px; }
}
@media (max-width: 420px) {
  body { font-size: 16px; }
  .telephones { height: 360px; }
  .carte { padding: 20px; }
  .jour { padding: 18px; gap: 14px; }
}