/* ────────────────────────────────────────────────────────────────────────────
   Charte graphique billetonline.fr
   Valeurs recopiées à l'identique de Webcaisse_React/tailwind.config.js.
   ⚠️ Source de vérité là-bas, pas ici. Voir docs/cartographie/02-charte-graphique.md.
   ──────────────────────────────────────────────────────────────────────────── */

:root {
  --wc-violet:        #7B2D8B;
  --wc-violet-dark:   #5a1f68;
  --wc-violet-deep:   #4E1E78;
  --wc-violet-light:  #e8d5ed;
  --wc-violet-soft:   #F0E8F6;

  --wc-olive:         #8B9B2A;
  --wc-olive-dark:    #6a7520;
  --wc-olive-light:   #e8eccc;

  --wc-bg:            #F7F7F5;
  --wc-bg-soft:       #FAFAF9;
  --wc-border:        #D0BED8;
  --wc-text:          #2A1540;
  --wc-text-soft:     #7B6080;

  --largeur-max: 1140px;
  --rayon: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--wc-text);
  background: var(--wc-bg-soft);
  line-height: 1.6;
}

.conteneur { max-width: var(--largeur-max); margin: 0 auto; padding: 0 20px; }

a { color: var(--wc-violet); }

/* ── En-tête ─────────────────────────────────────────────────────────────── */
.entete {
  background: #fff;
  border-bottom: 1px solid var(--wc-border);
  position: sticky; top: 0; z-index: 10;
}
.entete .conteneur {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 68px; flex-wrap: wrap;
}
.marque { font-size: 1.25rem; font-weight: 700; color: var(--wc-violet-deep); text-decoration: none; }
.marque span { color: var(--wc-olive); }
.nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--wc-text); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--wc-violet); }

/* ── Boutons ─────────────────────────────────────────────────────────────── */
.bouton {
  display: inline-block; padding: 11px 22px; border-radius: var(--rayon);
  text-decoration: none; font-weight: 600; border: 1px solid transparent; cursor: pointer;
  font-size: 1rem; font-family: inherit;
}
.bouton-principal { background: var(--wc-violet); color: #fff; }
.bouton-principal:hover { background: var(--wc-violet-dark); }
.bouton-secondaire { background: var(--wc-olive); color: #fff; }
.bouton-secondaire:hover { background: var(--wc-olive-dark); }
.bouton-discret {
  background: #fff; color: var(--wc-violet); border-color: var(--wc-border);
}
.bouton-discret:hover { background: var(--wc-violet-soft); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--wc-violet-deep), var(--wc-violet));
  color: #fff; padding: 74px 0 66px;
}
.hero h1 { font-size: 2.4rem; line-height: 1.2; margin: 0 0 16px; max-width: 22ch; }
.hero p { font-size: 1.12rem; max-width: 62ch; margin: 0 0 28px; color: var(--wc-violet-light); }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Sections ────────────────────────────────────────────────────────────── */
.section { padding: 62px 0; }
.section-claire { background: var(--wc-bg); }
.section h2 { font-size: 1.7rem; color: var(--wc-violet-deep); margin: 0 0 10px; }
.section .chapo { color: var(--wc-text-soft); max-width: 68ch; margin: 0 0 32px; }

.grille { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
.carte {
  background: #fff; border: 1px solid var(--wc-border); border-radius: var(--rayon);
  padding: 22px;
}
.carte h3 { margin: 0 0 8px; font-size: 1.08rem; color: var(--wc-violet-deep); }
.carte p { margin: 0; color: var(--wc-text-soft); font-size: 0.96rem; }

/* Cartes des activités : une photo 3:2 au-dessus du texte (photos.py) */
.grille-activites { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.carte-photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.carte-photo img, .carte-photo .sans-photo {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;   /* height:auto : les attributs width/height de <img> ne servent qu'à réserver la place */
  border-bottom: 1px solid var(--wc-border);
}
.carte-photo img { transition: transform .4s ease; }
.carte-photo:hover img { transform: scale(1.04); }
.carte-photo .sans-photo {
  background: linear-gradient(135deg, var(--wc-violet-deep), var(--wc-violet) 60%, var(--wc-olive));
  display: flex; align-items: flex-end; padding: 16px; color: #fff; font-weight: 600; font-size: 1.05rem;
}
.carte-photo .carte-corps { padding: 18px 20px 22px; }
.et-aussi { margin: 22px 0 0; color: var(--wc-text-soft); font-size: .95rem; max-width: 80ch; }

/* Hero avec photo : la photo sous un voile violet, le texte reste lisible */
.hero-photo {
  background-size: cover; background-position: center;
  position: relative; isolation: isolate;
}
.hero-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, rgba(78, 30, 120, .88), rgba(123, 45, 139, .72));
}

.liste-coches { list-style: none; padding: 0; margin: 0; }
.liste-coches li { padding: 8px 0 8px 30px; position: relative; }
.liste-coches li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  color: var(--wc-olive); font-weight: 700;
}

/* ── Formulaire ──────────────────────────────────────────────────────────── */
.colonnes-contact { display: grid; gap: 36px; grid-template-columns: 1.6fr 1fr; align-items: start; }
@media (max-width: 820px) { .colonnes-contact { grid-template-columns: 1fr; } }

.champ { margin-bottom: 16px; }
.champ label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.94rem; }
.champ .obligatoire { color: var(--wc-violet); }
.champ input, .champ select, .champ textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--wc-border);
  border-radius: 8px; font-family: inherit; font-size: 1rem; background: #fff; color: var(--wc-text);
}
.champ input:focus, .champ select:focus, .champ textarea:focus {
  outline: 2px solid var(--wc-violet); outline-offset: 1px; border-color: var(--wc-violet);
}
.champ textarea { min-height: 150px; resize: vertical; }
.duo { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .duo { grid-template-columns: 1fr; } }

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

.consentement { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 22px; }
.consentement input { width: auto; margin-top: 4px; }
.consentement label { font-weight: 400; font-size: 0.92rem; color: var(--wc-text-soft); }

/* ── Messages ────────────────────────────────────────────────────────────── */
.message { border-radius: var(--rayon); padding: 16px 18px; margin-bottom: 24px; }
.message ul { margin: 8px 0 0; padding-left: 20px; }
.message-succes { background: var(--wc-olive-light); border: 1px solid var(--wc-olive); }
.message-erreur { background: #fdecec; border: 1px solid #d05252; }
.message-info { background: var(--wc-violet-soft); border: 1px solid var(--wc-border); }

/* ── Pied de page ────────────────────────────────────────────────────────── */
.pied { background: var(--wc-violet-deep); color: var(--wc-violet-light); padding: 44px 0 28px; margin-top: 12px; }
.pied .grille { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pied h4 { color: #fff; margin: 0 0 10px; font-size: 0.98rem; text-transform: uppercase; letter-spacing: .04em; }
.pied a { color: var(--wc-violet-light); text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { padding: 3px 0; }
.pied .mentions {
  border-top: 1px solid rgba(255,255,255,.18); margin-top: 30px; padding-top: 18px;
  font-size: .87rem; opacity: .82;
}

/* ── Page d'erreur ───────────────────────────────────────────────────────── */
.erreur { padding: 92px 0; }
.erreur .code { font-size: 3.4rem; font-weight: 700; color: var(--wc-violet-light); margin: 0; }
.erreur h1 { font-size: 1.8rem; color: var(--wc-violet-deep); margin: 4px 0 14px; }
.erreur p { max-width: 70ch; color: var(--wc-text-soft); }
