/* TOTALment Gatsby — formulaire d'inscription */

@font-face { font-family: "Limelight"; src: url("fonts/limelight-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Poiret One"; src: url("fonts/poiret-one-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Josefin Sans"; src: url("fonts/josefin-sans-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Josefin Sans"; src: url("fonts/josefin-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Josefin Sans"; src: url("fonts/josefin-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --fond: #161614;
  --panneau: #2b2726;
  --or: #eebe65;
  --cuivre-1: #98431c;
  --cuivre-2: #febe77;
  --cuivre-3: #ad502e;
  --cuivre: linear-gradient(160deg, var(--cuivre-1), var(--cuivre-2) 50%, var(--cuivre-3));
  --texte: #f4ead8;
  --doux: #bfae95;
  --erreur: #ff8a6b;
  --deco: "Limelight", "Poiret One", Georgia, serif;
  --sans: "Josefin Sans", "Futura", "Century Gothic", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.55;
  padding: clamp(14px, 4vw, 48px) clamp(10px, 3vw, 24px);
}

/* ───── Cadre Art Déco ───── */
.cadre {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 64px) clamp(22px, 6vw, 72px) clamp(36px, 6vw, 64px);
  border: 3px solid transparent;
  border-image: var(--cuivre) 1;
}
.cadre::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px solid transparent;
  border-image: var(--cuivre) 1;
  pointer-events: none;
}
.coin { position: absolute; width: clamp(54px, 10vw, 92px); height: clamp(54px, 10vw, 92px); background: var(--fond); }
.coin.hg { top: -3px; left: -3px; }
.coin.hd { top: -3px; right: -3px; transform: scaleX(-1); }
.coin.bg { bottom: -3px; left: -3px; transform: scaleY(-1); }
.coin.bd { bottom: -3px; right: -3px; transform: scale(-1, -1); }
.chevron {
  position: absolute; top: 50%; width: 22px; height: 56px; margin-top: -28px;
  background: var(--cuivre);
  clip-path: polygon(0 0, 100% 50%, 0 100%, 0 86%, 76% 50%, 0 14%);
}
.chevron.g { left: 14px; }
.chevron.d { right: 14px; transform: scaleX(-1); }

/* ───── En-tête ───── */
.entete { text-align: center; }
.soleil { display: block; width: 100%; max-width: 560px; height: auto; margin: -8px auto 0; overflow: visible; }
.soleil text { text-anchor: middle; fill: var(--or); font-family: var(--deco); }
.badge-t1 { font-size: 28px; letter-spacing: 1px; }
.badge-t2 { font-size: 39px; letter-spacing: 1px; }
.badge-t3 { font-size: 17px; letter-spacing: 1px; }

h1 {
  margin: 6px 0 0;
  font-family: var(--deco);
  font-weight: 400;
  font-size: clamp(32px, 7vw, 56px);
  line-height: 1.1;
  color: var(--or);
  letter-spacing: .02em;
}
.logo { display: block; width: clamp(120px, 26vw, 170px); height: auto; margin: 26px auto 0; }

h2 {
  margin: 0 0 22px;
  font-family: var(--deco);
  font-weight: 400;
  font-size: clamp(24px, 4.4vw, 32px);
  color: var(--or);
  text-align: center;
}
h2::after {
  content: "";
  display: block;
  width: 90px; height: 2px;
  margin: 12px auto 0;
  background: var(--cuivre);
}

/* ───── Programme ───── */
.programme { margin: 44px auto 0; max-width: 500px; }
.programme ol { list-style: none; margin: 0; padding: 0; }
.programme li {
  display: grid;
  grid-template-columns: 9.5em 1fr;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid #3e2d20;
}
.programme li:last-child { border-bottom: 0; }
.heure { color: var(--or); font-weight: 600; letter-spacing: .04em; }
.dress { text-align: center; color: var(--doux); margin: 18px 0 0; }
.dress strong { color: var(--or); font-weight: 400; }

/* ───── Formulaire ───── */
.zone {
  position: relative;
  margin: 48px auto 0;
  max-width: 560px;
  padding: clamp(26px, 5vw, 42px) clamp(20px, 5vw, 44px);
  background: var(--panneau);
  border: 2px solid transparent;
  border-image: var(--cuivre) 1;
}
.ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.champ { margin-bottom: 22px; }
.champ label, .sous {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cuivre-2);
}
input[type="text"], input[type="email"] {
  width: 100%;
  padding: 10px 2px 8px;
  font: inherit;
  font-weight: 400;
  color: var(--texte);
  background: transparent;
  border: 0;
  border-bottom: 1px solid #8a5a38;
  border-radius: 0;
  outline: none;
  transition: border-color .2s;
}
input[type="text"]:focus, input[type="email"]:focus { border-bottom-color: var(--or); box-shadow: 0 1px 0 var(--or); }
.err input { border-bottom-color: var(--erreur); }
.msg { display: block; margin-top: 6px; font-size: 14px; color: var(--erreur); }

.choix { margin: 6px 0 8px; }
.sous { margin: 22px 0 10px; }
.case { display: flex; align-items: center; gap: 14px; padding: 6px 0; cursor: pointer; font-weight: 400; }
.case input {
  appearance: none; -webkit-appearance: none;
  flex: 0 0 auto;
  width: 16px; height: 16px;
  margin: 0 3px;
  border: 2px solid var(--cuivre-2);
  transform: rotate(45deg);
  cursor: pointer;
  transition: background .15s;
}
.case input:checked { background: var(--or); box-shadow: inset 0 0 0 3px var(--panneau); }
.case input:focus-visible { outline: 2px solid var(--or); outline-offset: 4px; }
.case.err input { border-color: var(--erreur); }

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

button {
  display: block;
  width: 100%;
  margin-top: 30px;
  padding: 17px 24px 14px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #1c120b;
  background: var(--cuivre);
  border: 0;
  cursor: pointer;
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%);
  transition: filter .2s, transform .1s;
}
button:hover { filter: brightness(1.12); }
button:active { transform: translateY(1px); }

.alerte { padding: 12px 14px; border: 1px solid var(--erreur); color: var(--erreur); margin: 0 0 22px; }
.rgpd { margin: 20px 0 0; font-size: 13px; color: var(--doux); text-align: center; line-height: 1.5; }

.merci { text-align: center; }
.merci .orn { color: var(--cuivre-2); letter-spacing: .6em; margin: 0 0 14px; }
.merci p { margin: 0 0 12px; }
.merci small { color: var(--doux); }
.merci .fin { margin-top: 20px; font-family: var(--deco); color: var(--or); font-size: 19px; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .ligne { grid-template-columns: 1fr; }
  .programme li { grid-template-columns: 1fr; gap: 0; }
  .chevron { display: none; }
  button { letter-spacing: .14em; font-size: 14px; }
  .cadre { padding-left: 26px; padding-right: 26px; }
}

/* ───── Page d'export ───── */
.admin .cadre { max-width: 1100px; }
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 10px 0 28px; }
.stat { min-width: 140px; padding: 14px 18px; text-align: center; background: var(--panneau); border: 1px solid #8a5a38; }
.stat b { display: block; font-family: var(--deco); font-weight: 400; font-size: 34px; color: var(--or); line-height: 1.1; }
.stat span { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--doux); }
.actions { text-align: center; margin-bottom: 24px; }
.btn {
  display: inline-block; padding: 13px 28px 10px; text-decoration: none;
  font-weight: 600; font-size: 14px; letter-spacing: .2em; text-transform: uppercase;
  color: #1c120b; background: var(--cuivre);
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%);
}
.tableau { overflow-x: auto; }
table.liste { width: 100%; border-collapse: collapse; font-size: 15px; }
.liste th { text-align: left; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--cuivre-2); padding: 10px 10px; border-bottom: 2px solid #8a5a38; white-space: nowrap; }
.liste td { padding: 9px 10px; border-bottom: 1px solid #3e2d20; font-weight: 400; }
.liste td.c { text-align: center; color: var(--or); }
.liste tr:hover td { background: #221f1d; }
.vide { text-align: center; color: var(--doux); }
