/* components.css : boutons, cartes, listes, questions, publicité, bannière, articles. */

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 28px;
  font-family: inherit; font-weight: 800; font-size: 19px; text-decoration: none; cursor: pointer;
  color: var(--ink); background: var(--orange);
  border: var(--bw) solid var(--ink); border-radius: 999px; box-shadow: 0 4px 0 var(--ink);
  transition: transform .12s;
}
.btn:hover { color: var(--ink); transform: translateY(2px); }
.btn--white { background: var(--white); }
.btn--dark { background: var(--ink); color: var(--cream); box-shadow: none; }
.btn--dark:hover { color: var(--cream); }
.btn--sm { min-height: 44px; padding: 8px 22px; font-size: 17px; box-shadow: 0 3px 0 var(--ink); }
.btn--onDark { border-color: var(--cream); box-shadow: none; }

.badge {
  display: inline-block; margin-bottom: 14px; padding: 4px 16px;
  font-weight: 800; font-size: 15px; background: var(--yellow);
  border: var(--bw) solid var(--ink); border-radius: 18px;
}

/* Cartes et panneaux */
.card { padding: 24px; background: var(--white); border: var(--bw) solid var(--ink); border-radius: var(--radius); box-shadow: 0 5px 0 var(--ink); }
.panel { padding: clamp(20px, 3vw, 32px); border: var(--bw) solid var(--ink); border-radius: var(--radius); }
.panel--sky { background: var(--sky); }
.panel--pink { background: var(--pink); }
.panel h3 { margin-bottom: 18px; font-weight: 700; font-size: clamp(26px, 4vw, 32px); line-height: 1.1; }

.step__n {
  display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin: 0 0 12px;
  font-family: var(--font-head); font-weight: 700; font-size: 23px;
  background: var(--yellow); border: var(--bw) solid var(--ink); border-radius: 50%;
}

/* Liste à coches */
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px; }
.checks li::before {
  content: "✓"; flex: none; display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; font-weight: 800; font-size: 15px; line-height: 1;
  background: var(--yellow); border: var(--bw) solid var(--ink); border-radius: 50%;
}

/* Avantages sur bande sombre */
.perk__t { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 22px; color: var(--yellow); }
.perk p:last-child { margin: 0; font-size: 16px; }

/* Pastilles */
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.chip { padding: 8px 20px; font-weight: 800; background: var(--cream); border: var(--bw) solid var(--ink); border-radius: 999px; }

/* Cartes de thème */
.tcard { display: flex; flex-direction: column; overflow: hidden; background: var(--white); border: var(--bw) solid var(--ink); border-radius: var(--radius); }
.tcard--live { box-shadow: 0 5px 0 var(--ink); }
.tcard--soon { opacity: .85; }
.tcard__img {
  display: flex; align-items: center; justify-content: center; min-height: 130px; padding: 0 10px; text-align: center;
  font-weight: 800; background: var(--mint); border-bottom: var(--bw) solid var(--ink);
}
.tcard--live .tcard__img { background: var(--orange); }
.tcard__img img { display: block; width: auto; max-width: 100%; height: 200px; padding: 12px 0; object-fit: contain; }
.tcard__body { padding: 18px 20px 20px; }
.tcard__body p { margin-bottom: 14px; }

/* Questions fréquentes */
.faqs { display: flex; flex-direction: column; gap: 14px; }
.faq { padding: 14px 20px; background: var(--white); border: var(--bw) solid var(--ink); border-radius: 22px; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-weight: 600; font-size: 21px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  font-family: var(--font-body); font-weight: 800; font-size: 22px; line-height: 1;
  background: var(--yellow); border: var(--bw) solid var(--ink); border-radius: 50%;
}
.faq[open] summary::after { content: "-"; }
.faq p { margin: 10px 0 4px; font-size: 17px; }

/* Sélecteur de langue */
.lang { display: inline-flex; overflow: hidden; font-size: 15px; font-weight: 800; border: var(--bw) solid var(--ink); border-radius: 999px; }
.lang a { display: flex; align-items: center; min-height: 38px; padding: 6px 14px; text-decoration: none; }
.lang a[aria-current] { background: var(--ink); color: var(--cream); }
.lang--onDark { border-color: var(--cream); }
.lang--onDark a { min-height: 44px; padding-inline: 18px; color: var(--cream); font-size: 16px; }
.lang--onDark a[aria-current] { background: var(--cream); color: var(--ink); }

/* Publicité : le cadre ne se révèle que si une annonce est réellement servie */
.ad { margin-inline: var(--pad); }
.ad:not(.is-filled) { max-height: 0; overflow: hidden; margin-block: 0; }
.ad.is-filled { margin-block: 24px; }
.ad__label { display: block; margin-bottom: 4px; font-size: 12px; color: var(--muted); }

/* Bannière de consentement */
.consent {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; max-width: 560px; margin: 0 auto; padding: 16px 18px;
  background: var(--white); border: var(--bw) solid var(--ink); border-radius: 20px; box-shadow: 0 6px 0 var(--ink);
}
.consent__t { margin: 0 0 6px; font-family: var(--font-head); font-weight: 600; font-size: 20px; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* Articles et blog */
.article__cat { margin: 0 0 6px; font-weight: 800; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--hover); }
.article__lead { font-size: 20px; max-width: 34em; }
.article__img { display: block; margin: 0 0 28px; border: var(--bw) solid var(--ink); border-radius: var(--radius); }
.callout { margin: 40px 0 0; padding: clamp(20px, 3vw, 32px); background: var(--sun); border: var(--bw) solid var(--ink); border-radius: var(--radius); }
.callout h2 { font-size: clamp(24px, 3.5vw, 32px); }
.related { margin-top: 40px; }
.postcard {
  display: flex; flex-direction: column; gap: 6px; padding: 20px; text-decoration: none;
  background: var(--white); border: var(--bw) solid var(--ink); border-radius: var(--radius); box-shadow: 0 4px 0 var(--ink);
}
.postcard:hover { transform: translateY(2px); }
.postcard__t { font-family: var(--font-head); font-weight: 600; font-size: 22px; line-height: 1.2; }

/* Page intermédiaire avant l'appli */
.gate { max-width: 520px; }
.gate input[type="email"] { width: 100%; min-height: 48px; padding: 8px 14px; font: inherit; border: var(--bw) solid var(--ink); border-radius: 14px; }
.gate__check { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.gate__check input { width: 22px; height: 22px; margin-top: 3px; flex: none; }

/* Formulaire de contact */
.contact { display: grid; gap: 28px; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
.form { padding: clamp(20px, 3vw, 32px); background: var(--white); border: var(--bw) solid var(--ink); border-radius: var(--radius); box-shadow: 0 5px 0 var(--ink); }
.field { margin: 0 0 18px; }
.field label { display: block; margin-bottom: 6px; font-weight: 800; font-size: 17px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; color: var(--ink);
  background: var(--cream); border: var(--bw) solid var(--ink); border-radius: 14px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--yellow); outline-offset: 2px; background: var(--white); }
.field--check { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.field--check input { width: 22px; min-height: 0; height: 22px; margin-top: 3px; flex: none; }
.field--check label { margin: 0; font-weight: 600; font-size: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { margin: 0 0 20px; padding: 14px 18px; font-weight: 700; border: var(--bw) solid var(--ink); border-radius: 18px; }
.alert--ok { background: var(--mint); }
.alert--err { background: var(--pink); }
.aside { padding: 22px; background: var(--sun); border: var(--bw) solid var(--ink); border-radius: var(--radius); }
.aside h2 { font-size: 26px; }
.aside p:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }

/* Page À propos : langues et histoire */
.story { display: grid; gap: 28px; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); align-items: center; padding: clamp(22px, 4vw, 40px); background: var(--sun); border: var(--bw) solid var(--ink); border-radius: var(--radius); box-shadow: 0 6px 0 var(--ink); }
.story__art { display: flex; justify-content: center; }
.story__art img { display: block; width: 100%; max-width: 200px; height: auto; }
.story h2 { margin-top: 0; }
.story .lead { max-width: 34em; }
.story__steps { display: grid; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.story__steps li { display: flex; gap: 12px; align-items: flex-start; }
.story__steps b { flex: none; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; font-family: var(--font-head); background: var(--white); border: var(--bw) solid var(--ink); border-radius: 50%; }
@media (max-width: 700px) { .story { grid-template-columns: 1fr; } .story__art img { max-width: 140px; } }

/* Pages légales : tableau d'identité */
.idcard { margin: 0 0 1em; padding: 16px 20px; background: var(--white); border: var(--bw) solid var(--ink); border-radius: 18px; }
.idcard p { margin: 0 0 6px; }
.idcard p:last-child { margin-bottom: 0; }
