/* =========================================================
   E-Tafe – Styles globaux (thème clair)
   Fichier : etafe.css
   Appliquer à : mentions légales, politique de confidentialité, FAQ
   ========================================================= */

/* ---------- Variables de thème ---------- */
:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --acc: #0078d7;
  --border: #e5e7eb;
  --shadow: 0 6px 18px rgba(0,0,0,.05);
}
.wrapper { max-width: 900px; margin: auto; padding: 20px; }

/* ---------- Reset léger / Base ---------- */
* { box-sizing: border-box; }

 svg, video { max-width: 100%; height: auto; }
a { color: var(--acc); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
::selection { background: rgba(0,120,215,.18); }

/* ---------- Layout générique ---------- */
.wrap { max-width: 980px; margin: 0 auto; padding: 20px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow);
  margin: 18px 0;
}

/* ---------- Titres & typographie ---------- */
h1 {
  font-size: 2rem;
  line-height: 1.25;
  margin: 6px 0 6px;
  color: var(--acc);
}
h2 {
  font-size: 1.35rem;
  margin: 28px 0 10px;
  border-left: 4px solid var(--acc);
  padding-left: 8px;
}
h3 { font-size: 1.05rem; margin: 0; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.small { font-size: 0.95rem; }

/* ---------- Grilles utilitaires ---------- */
.kv {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 8px 16px;
  font-size: 0.95rem;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stack > * + * { margin-top: 14px; } /* empilement vertical doux */

/* ---------- Éléments UI (badges, boutons, notes) ---------- */
.badge {
  display: inline-block;
  background: #eaf4ff;
  border: 1px solid var(--border);
  color: #0b57d0;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .8rem;
  margin: 0 .35rem .35rem 0;
}
.cta {
  display: inline-block;
  background: var(--acc);
  color: #fff;
  padding: .7rem 1rem;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  transition: transform .08s ease, opacity .2s ease;
}
.cta:hover { opacity: .95; }
.cta:active { transform: translateY(1px); }

.note {
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin: 12px 0;
  color: #334155;
}

/* ---------- Listes ---------- */
ul { margin: 0 0 1rem 1.25rem; padding: 0; }
li { margin: .25rem 0; }

/* ---------- Table (si besoin) ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
th, td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { background: #f3f6fa; text-align: left; color: #0f172a; }
tr:last-child td { border-bottom: 0; }

/* ---------- Footer ---------- */
footer {
  text-align: center;
  font-size: .9rem;
  color: var(--muted);
  margin: 34px 0 18px;
}
footer a { color: var(--acc); }

/* =========================================================
   BLOCS SPÉCIFIQUES AUX PAGES
   - Mentions légales / Politique de confidentialité : styles communs déjà couverts
   - FAQ : accordéons
   ========================================================= */

/* ---------- FAQ : Accordéons ---------- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  cursor: pointer;
  background: #fff;
  border: 0;
  text-align: left;
}
.faq-q h3 { font-size: 1rem; margin: 0; }
.faq-q .chev { transition: transform .25s ease; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s ease;
  padding: 0 18px;
  background: #fff;
}
.faq-a > div { padding: 0 0 16px 0; color: #374151; }

/* État ouvert (géré par JS) */
.faq-item.open .faq-a { max-height: 420px; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }

/* ---------- Accessibilité : focus visible ---------- */
a:focus, button:focus, .faq-q:focus {
  outline: 3px solid rgba(0,120,215,.35);
  outline-offset: 2px;
  border-radius: 6px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .wrap { padding: 16px; }
}
@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .kv { grid-template-columns: 1fr; }
  body { font-size: 15.5px; }
}
