/* ==========================================================================
   MÉMOIRE 98 — feuille de style
   Charte : noir #111 · rouge #E30613 · papier #FBF9F4
   Typographies : Archivo (texte/titres) · Shrikhand (logo) · Doto (LED)
   ========================================================================== */

:root {
  --noir: #111111;
  --rouge: #E30613;
  --rouge-sombre: #B8050F;
  --papier: #FBF9F4;
  --papier-ombre: #F1EDE4;
  --gris: #6B665E;
  --led: #FF2B2B;

  --fonte-texte: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --fonte-logo: "Shrikhand", "Georgia", serif;
  --fonte-led: "Doto", "Courier New", monospace;

  --bord: 3px solid var(--noir);
  --ombre-dure: 6px 6px 0 var(--noir);
  --largeur-max: 1180px;
}

/* ---------- Base ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--fonte-texte);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--noir);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--rouge); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--rouge-sombre); }

h1, h2, h3 {
  font-family: var(--fonte-texte);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: 1.25rem; line-height: 1.25; }

p { margin: 0 0 1em; }

::selection { background: var(--rouge); color: var(--papier); }

/* ---------- Petits éléments partagés ---------- */

.overline {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rouge);
  margin-bottom: 1.1em;
}

.overline .tick {
  width: 1.6em;
  height: 0.62em;
  background: var(--rouge);
  flex: none;
}

.overline-light { color: var(--papier); }
.overline-light .tick { background: var(--rouge); }

.souligne {
  box-shadow: inset 0 -0.28em 0 var(--rouge);
}

.btn {
  display: inline-block;
  font-family: var(--fonte-texte);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.85em 1.7em;
  border: var(--bord);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn-red {
  background: var(--rouge);
  color: var(--papier);
  box-shadow: var(--ombre-dure);
}
.btn-red:hover {
  background: var(--rouge-sombre);
  color: var(--papier);
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--noir);
}
.btn-red:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--noir); }

.btn-ghost {
  background: transparent;
  color: var(--noir);
}
.btn-ghost:hover { background: var(--noir); color: var(--papier); }

.btn-small { padding: 0.55em 1.1em; font-size: 0.9rem; box-shadow: 4px 4px 0 var(--noir); }
.btn-large { font-size: 1.15rem; }

.btn-enveloppe { font-weight: 400; }

/* ---------- En-tête ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.7rem clamp(1rem, 4vw, 2.5rem);
  background: var(--papier);
  border-bottom: var(--bord);
}

.brand { text-decoration: none; margin-right: auto; }

.brand-word {
  font-family: var(--fonte-logo);
  font-weight: 400;
  font-size: 1.55rem;
  color: var(--rouge);
  letter-spacing: 0.01em;
}

.brand-word sup {
  font-size: 0.55em;
  vertical-align: super;
  margin-left: 0.06em;
}

.site-nav { display: flex; gap: 1.4rem; }

.site-nav a {
  color: var(--noir);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 3px solid transparent;
  padding-bottom: 2px;
}
.site-nav a:hover { border-bottom-color: var(--rouge); }

@media (max-width: 760px) {
  .site-nav { display: none; }
  .site-header .btn-small {
    font-size: 0.82rem;
    padding: 0.5em 0.9em;
    white-space: nowrap;
  }
  .brand-word { font-size: 1.3rem; }
}

/* ---------- Héro ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 0 0, rgba(17,17,17,0.055) 1px, transparent 1.8px) 0 0 / 14px 14px,
    var(--papier);
}

.hero-inner {
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 2.5rem) clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-copy .lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 34em;
  color: #2C2A26;
}

.lead-strong { font-weight: 700; color: var(--noir); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* Totem SVG */

.hero-totem { display: flex; justify-content: center; }

.totem {
  width: min(320px, 78vw);
  filter: drop-shadow(10px 10px 0 rgba(17,17,17,0.14));
}

.led {
  font-family: var(--fonte-led);
  fill: var(--led);
  font-weight: 900;
}
.led-big { font-size: 52px; letter-spacing: 2px; }
.led-small { font-size: 17px; opacity: 0.85; }

.totem-txt {
  font-family: var(--fonte-texte);
  font-size: 13.5px;
  font-weight: 700;
  fill: var(--rouge);
}

.totem-logo {
  font-family: var(--fonte-logo);
  font-size: 26px;
  fill: none;
  stroke: var(--papier);
  stroke-width: 1;
  letter-spacing: 0.5px;
}

.totem-logo-sup {
  font-family: var(--fonte-logo);
  font-size: 15px;
  fill: var(--papier);
}

.totem-tagline {
  font-family: var(--fonte-texte);
  font-style: italic;
  font-size: 9.5px;
  font-weight: 500;
  fill: var(--papier);
}

.totem-jci {
  font-family: var(--fonte-texte);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 3px;
  fill: var(--noir);
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-totem { order: 2; }
}

/* ---------- Bandeau défilant ---------- */

.marquee {
  overflow: hidden;
  background: var(--noir);
  color: var(--papier);
  border-top: var(--bord);
  border-bottom: var(--bord);
  padding: 0.65rem 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: defile 28s linear infinite;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes defile {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Sections génériques ---------- */

.section { padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1rem, 4vw, 2.5rem); }

.section-inner { max-width: var(--largeur-max); margin: 0 auto; }
.section-inner-etroite { max-width: 820px; }

.section-intro {
  max-width: 40em;
  font-size: 1.12rem;
  margin-bottom: 2.5rem;
}

/* ---------- L'histoire ---------- */

.histoire-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(200px, 0.6fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.histoire-texte p { font-size: 1.12rem; max-width: 38em; }

.histoire-rosace svg {
  width: min(260px, 60vw);
  margin: 0 auto;
  animation: rotation 90s linear infinite;
}

@keyframes rotation {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .histoire-rosace svg { animation: none; }
}

@media (max-width: 760px) {
  .histoire-grid { grid-template-columns: 1fr; }
}

/* Chronologie */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: var(--bord);
  background: var(--papier);
  box-shadow: var(--ombre-dure);
}

.timeline li {
  padding: 1.6rem 1.4rem 1.8rem;
  border-right: var(--bord);
  position: relative;
}
.timeline li:last-child { border-right: none; }

.timeline-year {
  display: inline-block;
  font-weight: 900;
  font-size: 2rem;
  letter-spacing: -0.02em;
  color: var(--rouge);
  margin-bottom: 0.5rem;
}

.timeline h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.05em; }
.timeline p { font-size: 0.95rem; margin: 0; color: #3A3731; }

.timeline-jourj { background: var(--noir); color: var(--papier); }
.timeline-jourj .timeline-year { color: var(--led); }
.timeline-jourj p { color: #D8D4CC; }

@media (max-width: 980px) {
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline li:nth-child(2) { border-right: none; }
  .timeline li:nth-child(-n+2) { border-bottom: var(--bord); }
}

@media (max-width: 560px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline li { border-right: none !important; border-bottom: var(--bord); }
  .timeline li:last-child { border-bottom: none; }
}

/* ---------- Le jour J (section sombre) ---------- */

.section-dark {
  background:
    radial-gradient(circle at 0 0, rgba(251,249,244,0.06) 1px, transparent 1.8px) 0 0 / 14px 14px,
    var(--noir);
  color: var(--papier);
}

.section-dark h2 { color: var(--papier); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  margin-top: 2.5rem;
}

@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  border: 3px solid var(--papier);
  padding: 1.6rem 1.4rem 1.8rem;
  position: relative;
  background: transparent;
  transition: background 0.15s ease;
}

.step:hover { background: rgba(251,249,244,0.05); }

.step-num {
  display: inline-grid;
  place-items: center;
  width: 2.4em;
  height: 2.4em;
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--papier);
  background: var(--rouge);
  border: 3px solid var(--papier);
  margin-bottom: 1.1rem;
}

.step h3 { color: var(--papier); font-size: 1.12rem; }
.step p { color: #CFCBC3; font-size: 0.97rem; margin: 0; }
.step strong { color: var(--papier); }

.jourj-cta { text-align: center; margin-top: 3rem; }
.jourj-cta .btn-red { box-shadow: 6px 6px 0 var(--rouge-sombre); border-color: var(--papier); }
.jourj-cta .btn-red:hover { box-shadow: 8px 8px 0 var(--rouge-sombre); }

/* ---------- Formulaire ---------- */

.section-formulaire {
  background:
    radial-gradient(circle at 0 0, rgba(17,17,17,0.045) 1px, transparent 1.8px) 0 0 / 14px 14px,
    var(--papier-ombre);
}

.lettre {
  position: relative;
  background: var(--papier);
  border: var(--bord);
  box-shadow: var(--ombre-dure);
  padding: clamp(1.5rem, 4vw, 3rem);
  max-width: 860px;
}

.lettre-timbre {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 74px;
  padding: 8px 6px 6px;
  border: 2px dashed var(--rouge);
  text-align: center;
  color: var(--rouge);
  font-weight: 700;
  font-size: 0.7rem;
  line-height: 1.1;
  background: var(--papier);
  transform: rotate(4deg);
}

.lettre-timbre svg { width: 44px; margin: 0 auto 4px; }

@media (max-width: 640px) {
  .lettre-timbre { display: none; }
}

.champ-groupe {
  border: none;
  border-top: var(--bord);
  margin: 0 0 1.8rem;
  padding: 1.4rem 0 0;
}

.champ-groupe legend {
  font-weight: 900;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-right: 0.8em;
}

.champ { margin-bottom: 1.1rem; flex: 1; }

.champ label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.req { color: var(--rouge); }
.opt {
  font-weight: 500;
  color: var(--gris);
  font-size: 0.85em;
  text-transform: none;
}

.champ input,
.champ textarea {
  width: 100%;
  font: inherit;
  color: var(--noir);
  background: var(--papier);
  border: 2px solid var(--noir);
  border-radius: 0;
  padding: 0.65em 0.8em;
}

.champ input:focus,
.champ textarea:focus,
.radio-carte input:focus-visible + .radio-carte-corps,
.consentement input:focus-visible {
  outline: 3px solid var(--rouge);
  outline-offset: 1px;
}

.champ input:user-invalid { border-color: var(--rouge); }

.champ-aide {
  display: block;
  color: var(--gris);
  font-size: 0.83rem;
  margin-top: 0.3rem;
}

.champ-aide-groupe { margin: -0.2rem 0 1rem; }

.champ-rangee { display: flex; gap: 1.2rem; }
.champ-npa { flex: 0 0 110px; }

@media (max-width: 640px) {
  .champ-rangee { flex-direction: column; gap: 0; }
  .champ-npa { flex: 1; }
}

/* Cartes radio */

.radio-cartes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.radio-carte { cursor: pointer; }

.radio-carte input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-carte-corps {
  display: block;
  height: 100%;
  border: 2px solid var(--noir);
  padding: 0.9rem 1rem;
  transition: background 0.12s ease, box-shadow 0.12s ease;
}

.radio-carte-corps strong { display: block; margin-bottom: 0.25rem; }
.radio-carte-corps small { color: var(--gris); line-height: 1.4; display: block; }

.radio-carte input:checked + .radio-carte-corps {
  background: var(--noir);
  color: var(--papier);
  box-shadow: 4px 4px 0 var(--rouge);
}
.radio-carte input:checked + .radio-carte-corps small { color: #CFCBC3; }

/* Pot de miel (anti-spam) — champ invisible pour les humains */

.champ-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Consentement */

.consentement {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 1.6rem 0;
  padding: 1rem 1.1rem;
  border: 2px dashed var(--noir);
  cursor: pointer;
}

.consentement input {
  flex: none;
  width: 1.25em;
  height: 1.25em;
  margin-top: 0.15em;
  accent-color: var(--rouge);
}

.lettre-envoi { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }

.form-statut { margin: 0; font-weight: 700; }
.form-statut.erreur { color: var(--rouge); }

/* Confirmation */

.confirmation {
  max-width: 860px;
  background: var(--papier);
  border: var(--bord);
  box-shadow: var(--ombre-dure);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}

.confirmation svg { width: 130px; margin: 0 auto 1.5rem; }
.confirmation h3 { font-size: 1.6rem; }
.confirmation p { max-width: 32em; margin-left: auto; margin-right: auto; }

.lien-bouton {
  font: inherit;
  font-weight: 700;
  color: var(--rouge);
  background: none;
  border: none;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 0;
}

/* ---------- FAQ ---------- */

.faq-item {
  border: var(--bord);
  background: var(--papier);
  margin-bottom: 1rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 1.1rem 3.2rem 1.1rem 1.3rem;
  list-style: none;
  position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--rouge);
  transition: transform 0.15s ease;
}

.faq-item[open] summary::after { content: "–"; }

.faq-item[open] summary { border-bottom: 2px solid var(--noir); }

.faq-item p { padding: 1rem 1.3rem 1.2rem; margin: 0; color: #2C2A26; }

/* ---------- Pied de page ---------- */

.site-footer {
  background: var(--noir);
  color: var(--papier);
  border-top: 6px solid var(--rouge);
}

.footer-inner {
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.brand-word-footer { font-size: 2rem; color: var(--rouge); }

.footer-tagline { font-style: italic; color: #CFCBC3; margin-top: 0.6rem; }

.footer-infos p, .footer-contact p { color: #CFCBC3; }
.footer-infos strong, .footer-contact strong { color: var(--papier); }

.footer-contact a { color: var(--papier); }

.footer-jci { margin-top: 1rem; font-size: 0.9rem; }

.footer-ligne {
  border-top: 1px solid #33302B;
  padding: 1.1rem clamp(1rem, 4vw, 2.5rem);
  text-align: center;
}

.footer-ligne p { margin: 0; font-size: 0.83rem; color: #8B867D; }

/* ---------- Apparition au défilement ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
