:root {
  --accent: #A61E22;
  --ink: #1F2F28;
  --ground: #E3ECE2;
  --card: #FFFDF8;
  --gold: #B8862B;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 22px/1.45 'Cormorant Garamond', Georgia, serif;
  overflow-x: hidden;
}
p, h1, h2, h3 { margin: 0; text-wrap: balance; }
a { color: inherit; }
a:hover { opacity: .8; }
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
h2 { font-weight: 300; font-style: italic; font-size: clamp(40px, 6.5vw, 64px); line-height: 1; }
h2.moyen { font-size: clamp(36px, 5.5vw, 52px); line-height: 1.05; }
h3 { font-weight: 500; font-size: 32px; line-height: 1.1; }

/* Ruban madras */
.madras {
  height: 16px;
  background-color: #C4302B;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 16px, rgba(232,179,58,.9) 16px 22px, transparent 22px 28px, rgba(31,90,69,.85) 28px 42px, transparent 42px 46px, rgba(255,253,248,.85) 46px 48px, transparent 48px 58px, rgba(224,123,46,.9) 58px 62px, transparent 62px 74px),
    repeating-linear-gradient(0deg, transparent 0 5px, rgba(232,179,58,.75) 5px 7px, transparent 7px 11px, rgba(31,90,69,.6) 11px 15px, transparent 15px 18px);
}
.madras.fin { height: 10px; }

/* Petits textes en capitales */
.sur { font-weight: 600; font-size: 15px; letter-spacing: .28em; text-transform: uppercase; }
.petit-cap { font-weight: 600; font-size: 15px; letter-spacing: .24em; text-transform: uppercase; }
.rouge { color: var(--accent); }
.note { font-size: 18px; font-style: italic; }
.note.droit { font-size: 19px; font-style: normal; }
.mesure { max-width: 27em; }
.esperluette { font-family: 'Pinyon Script', cursive; font-style: normal; font-weight: 400; color: var(--accent); }
.lotus { color: var(--accent); }
.filet { width: 56px; border-top: 1px solid var(--gold); }

/* Mise en page */
section { padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 80px); }
.clair { background: var(--card); }
.col { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.col.etroit { max-width: 640px; }
.col.large { max-width: 900px; }
.col.gauche { align-items: stretch; text-align: left; }
.col.intro { margin-bottom: 24px; }
.carte { background: var(--card); border: 1px solid var(--gold); outline: 1px solid var(--gold); outline-offset: -11px; }
.boutons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.boutons.haut { margin-top: 18px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  border: 1px solid var(--ink); border-radius: 2px;
  background: transparent; color: var(--ink);
  font-weight: 600; font-size: 16px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
}
.btn.plein { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.encre { background: var(--ink); color: #fff; }
.btn.grand { min-height: 56px; padding: 0 40px; font-size: 17px; letter-spacing: .22em; }

/* Faire-part */
.entete { padding: clamp(28px, 6vw, 80px) clamp(16px, 5vw, 80px) clamp(48px, 7vw, 96px); }
.faire-part {
  max-width: 760px; margin: 0 auto;
  padding: clamp(44px, 8vw, 88px) clamp(26px, 6vw, 72px);
  display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center;
}
.noms {
  margin-top: 6px;
  font-weight: 300; font-style: italic; font-size: clamp(60px, 13vw, 124px); line-height: .92;
  display: flex; flex-direction: column; align-items: center;
}
.noms .esperluette { font-size: .62em; line-height: 1.15; }
.annonce { margin-top: 10px; font-style: italic; font-size: clamp(22px, 3vw, 27px); }
.date-hero { font-weight: 500; font-size: clamp(24px, 3.6vw, 34px); line-height: 1.2; }
.decompte { margin-top: 6px; font-style: italic; font-size: 19px; }

/* Histoire */
.etape { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.etape.premiere { margin-top: 26px; }
.trait { width: 1px; height: 44px; background: var(--gold); margin-top: 12px; }

/* Lieu */
.jours { width: 100%; margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.jour { background: var(--card); border: 1px solid var(--gold); padding: 32px 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.jour h3 { margin-top: 10px; font-size: 28px; }
.jour-chiffre { font-weight: 300; font-style: italic; font-size: 76px; line-height: 1.05; color: var(--accent); }

/* Formulaire */
.reponse { display: flex; flex-direction: column; gap: 40px; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.legende { padding: 0; margin-bottom: 16px; font-weight: 600; font-size: 16px; letter-spacing: .22em; text-transform: uppercase; }
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.choix {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 20px 16px; border: 1px solid var(--ink); border-radius: 2px;
  background: transparent; color: var(--ink);
}
.choix[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.choix.ligne { min-height: 50px; padding: 10px 16px; font-size: 20px; font-style: italic; }
.choix-titre { font-size: 28px; font-weight: 500; line-height: 1.15; }
.choix-note { font-size: 19px; font-style: italic; }
.compteurs { display: flex; flex-wrap: wrap; gap: 18px 48px; margin-bottom: 4px; }
.compteur { flex: 1 1 260px; max-width: 340px; display: flex; align-items: center; gap: 12px; }
.compteur-nom { flex: 1; min-width: 0; line-height: 1.2; }
.compteur-nom em { font-size: 18px; }
.compteur-valeur { min-width: 1.2em; text-align: center; font-size: 38px; font-weight: 500; line-height: 1; }
.rond { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 26px; line-height: 1; }
.champ-bloc { display: flex; flex-direction: column; gap: 6px; font-size: 20px; }
.champ {
  width: 100%; min-height: 50px; padding: 10px 14px;
  border: 1px solid #6F7F75; border-radius: 2px; background: #fff; color: var(--ink);
  font: 400 21px/1.3 'Cormorant Garamond', Georgia, serif;
}
.champ.centre { min-height: 54px; text-align: center; font-size: 24px; }
textarea.champ { min-height: 110px; resize: vertical; }
.alerte { color: var(--accent); font-style: italic; }
.alerte.cadre { padding: 12px 16px; border: 1px solid var(--accent); text-align: center; font-style: normal; }
.envoi { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.envoi .note { max-width: 26em; }
.merci { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; outline-offset: -9px; padding: clamp(36px, 6vw, 60px) clamp(24px, 5vw, 48px); }
.merci-titre { font-weight: 300; font-style: italic; font-size: clamp(36px, 5.5vw, 52px); line-height: 1.05; }
.merci .mesure { max-width: 24em; }

/* Pied de page */
.pied { background: var(--card); padding: 48px clamp(20px, 5vw, 80px) 40px; }
.pied .col { gap: 12px; }
.sceau {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent); color: var(--card);
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; line-height: 1;
  font-family: 'Songti SC', 'Noto Serif CJK SC', 'Noto Serif SC', 'SimSun', serif;
}
.sortir { margin-top: 14px; font-size: 15px; letter-spacing: .04em; }
.sortir a { display: inline-block; padding: 12px 16px; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.pied-noms { margin-top: 10px; font-weight: 300; font-style: italic; font-size: 34px; line-height: 1; }

/* Page d'accès */
body.acces { min-height: 100vh; display: flex; flex-direction: column; }
.acces-centre { flex: 1; display: flex; align-items: center; justify-content: center; padding: clamp(24px, 6vw, 72px) clamp(16px, 5vw, 80px); }
.acces-carte {
  width: 100%; max-width: 560px;
  padding: clamp(44px, 8vw, 72px) clamp(28px, 6vw, 60px);
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
}
.acces-noms { margin-top: 4px; font-weight: 300; font-style: italic; font-size: clamp(44px, 9vw, 68px); line-height: 1; }
.acces-carte .filet { margin: 6px 0; }
.acces-texte { max-width: 20em; }
.acces-form { width: 100%; max-width: 340px; margin-top: 10px; display: flex; flex-direction: column; gap: 14px; }
.acces-form .champ-bloc { gap: 8px; }
.acces-contact { margin-top: 10px; font-size: 19px; }

/* ---------- Téléphone ---------- */
@media (max-width: 600px) {
  body { font-size: 19px; line-height: 1.5; }
  h2 { font-size: 36px; }
  h2.moyen { font-size: 32px; }
  h3 { font-size: 25px; }
  .sur { font-size: 12.5px; letter-spacing: .26em; }
  .petit-cap { font-size: 12.5px; letter-spacing: .2em; }
  .note { font-size: 16.5px; }
  .note.droit { font-size: 17px; }
  .mesure { max-width: 19em; }
  .madras { height: 12px; }
  .madras.fin { height: 8px; }

  section { padding: 60px 30px; }
  .col { gap: 12px; }
  .col.intro { margin-bottom: 14px; }
  .carte { outline-offset: -8px; }
  .btn { min-height: 48px; padding: 0 22px; font-size: 13.5px; letter-spacing: .18em; }
  .btn.grand { min-height: 52px; padding: 0 28px; font-size: 14px; letter-spacing: .2em; }
  .boutons { gap: 10px; }

  /* Faire-part : un vrai carton, avec de l'air autour */
  .entete { padding: 22px 18px 48px; }
  .faire-part { padding: 52px 26px 44px; gap: 14px; }
  .faire-part .lotus { width: 72px; }
  .noms { font-size: 58px; line-height: .95; }
  .annonce { font-size: 19px; margin-top: 6px; }
  .date-hero { font-size: 21px; }
  .faire-part .boutons { flex-direction: column; align-self: stretch; margin: 12px 14px 0; }
  .decompte { font-size: 17px; }

  /* Histoire */
  .etape { gap: 8px; }
  .etape.premiere { margin-top: 18px; }
  .trait { height: 30px; margin-top: 10px; }

  /* Lieu */
  .jours { margin-top: 16px; gap: 14px; }
  .jour { padding: 26px 20px; gap: 6px; outline: 1px solid var(--gold); outline-offset: -7px; }
  .jour h3 { font-size: 23px; margin-top: 6px; }
  .jour-chiffre { font-size: 58px; }

  /* Formulaire */
  .reponse { gap: 34px; }
  .legende { font-size: 13px; letter-spacing: .2em; margin-bottom: 12px; }
  .grille { gap: 10px; }
  .choix { padding: 14px 14px; }
  .choix.ligne { min-height: 46px; font-size: 17.5px; }
  .choix-titre { font-size: 23px; }
  .choix-note { font-size: 16.5px; }
  .compteurs { gap: 12px; }
  .compteur { max-width: none; }
  .compteur-nom em { font-size: 16px; }
  .compteur-valeur { font-size: 30px; }
  .rond { width: 44px; height: 44px; font-size: 22px; }
  .champ-bloc { font-size: 17.5px; gap: 5px; }
  .champ { min-height: 46px; padding: 8px 12px; font-size: 19px; }
  textarea.champ { min-height: 96px; }
  .merci { padding: 40px 24px; gap: 14px; }
  .merci-titre { font-size: 32px; }

  /* Pied de page */
  .pied { padding: 40px 30px 34px; }
  .sceau { width: 54px; height: 54px; font-size: 28px; }
  .pied-noms { font-size: 29px; }

  /* Page d'accès */
  .acces-centre { padding: 22px 18px; }
  .acces-carte { padding: 48px 26px 40px; gap: 13px; }
  .acces-noms { font-size: 40px; }
  .acces-texte { max-width: 17em; }
  .acces-form { max-width: 280px; }
  .champ.centre { min-height: 48px; font-size: 21px; }
  .acces-contact { font-size: 17px; }
}
