/* ===================================================================
   IceMind — Sous-pages (Confidentialité · CGU · Support · FAQ)
   Thème light, accordé au redesign light & color-blocked du landing.
   Hérite des tokens de style.css.
   =================================================================== */

html { scroll-padding-top: 96px; }

/* ---- Nav opaque sur les sous-pages ---- */
.nav.nav--solid {
  background: rgba(246, 250, 252, 0.68);
  backdrop-filter: blur(36px) saturate(180%);
  -webkit-backdrop-filter: blur(36px) saturate(180%);
  border-bottom: 1px solid var(--hairline);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 12px 28px -22px rgba(7, 28, 50, 0.20);
}
/* Pages secondaires : seulement 2 enfants dans le header (brand + bouton),
   on passe en grille 2 colonnes pour éviter que le bouton occupe la colonne
   1fr du milieu et s'étire en grosse barre. */
.nav.nav--solid .container {
  grid-template-columns: 1fr auto;
}

/* ===================================================================
   EN-TÊTE DE PAGE — bandeau cyan-tinté avec lueur
   =================================================================== */
.page-hero {
  position: relative;
  padding: 60px 0 56px;
  overflow: hidden;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--hairline);
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -320px; left: 50%;
  width: 1020px; height: 680px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0, 200, 255, 0.28), transparent 64%);
  filter: blur(46px);
  pointer-events: none;
}
.page-hero .container { position: relative; max-width: 880px; }

.back-link {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 24px;
  transition: color 0.15s ease, gap 0.15s ease;
}
.back-link:hover { color: var(--ink); gap: 11px; }
.back-link svg { width: 14px; height: 14px; fill: currentColor; }

/* En-tête de page : back-link + toggle de langue sur la même ligne */
.hero-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.hero-top-row .back-link { margin-bottom: 0; }
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--bg-white);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.lang-toggle:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.page-hero h1 {
  font-size: clamp(44px, 7vw, 84px);
  margin-bottom: 16px;
  color: var(--ink);
}
.page-hero .page-sub {
  color: var(--ink-muted);
  font-size: 18px;
  max-width: 580px;
}
.page-meta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--bg-white);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
}
.page-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* ===================================================================
   LAYOUT DOCUMENT  (sommaire + article)
   =================================================================== */
.doc {
  max-width: 1010px;
  margin: 0 auto;
  padding: 56px 24px 110px;
  display: grid;
  grid-template-columns: 232px 1fr;
  gap: 62px;
  align-items: start;
}

/* ---- Sommaire ---- */
.toc { position: sticky; top: 96px; }
.toc-summary { display: none; }
.toc-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.toc-nav { display: flex; flex-direction: column; gap: 1px; }
.toc-nav a {
  padding: 8px 0 8px 16px;
  font-size: 14px;
  color: var(--ink-muted);
  border-left: 2px solid var(--hairline);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.toc-nav a:hover { color: var(--ink); border-color: rgba(10, 24, 40, 0.25); }
.toc-nav a.active { color: var(--blue); border-color: var(--blue); font-weight: 600; }

/* ===================================================================
   CORPS DE L'ARTICLE
   =================================================================== */
.doc-body { max-width: 660px; counter-reset: section; }
.doc-body section { scroll-margin-top: 100px; }
.doc-body section + section { margin-top: 38px; }

.doc-body h2 {
  counter-increment: section;
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: clamp(26px, 3.6vw, 34px);
  margin-bottom: 14px;
  color: var(--ink);
}
.doc-body h2::before {
  content: counter(section, decimal-leading-zero);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--blue);
}
.doc-body h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0;
  color: var(--blue);
  margin: 24px 0 8px;
}
.doc-body p {
  color: var(--ink-muted);
  font-size: 16px;
  margin: 12px 0;
}
.doc-body strong { color: var(--ink); font-weight: 700; }
.doc-body a {
  color: var(--blue);
  border-bottom: 1px solid rgba(0, 182, 229, 0.35);
  transition: border-color 0.15s ease;
}
.doc-body a:hover { border-bottom-color: var(--blue); }

.doc-body ul { list-style: none; margin: 14px 0; padding: 0; }
.doc-body ul li {
  position: relative;
  padding-left: 22px;
  margin: 8px 0;
  color: var(--ink-muted);
  font-size: 16px;
}
.doc-body ul li::before {
  content: '';
  position: absolute;
  left: 2px; top: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

/* ---- Tableau ---- */
.doc-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 18px 0;
  font-size: 14px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-white);
}
.doc-table th, .doc-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.doc-table th {
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
}
.doc-table td { color: var(--ink-muted); }
.doc-table tr:last-child td { border-bottom: none; }

/* ---- Encadré ---- */
.callout {
  display: flex;
  gap: 14px;
  margin: 22px 0;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--bg-white);
  border: 1px solid var(--hairline);
}
.callout .callout-ico { flex-shrink: 0; width: 26px; height: 26px; margin-top: 1px; }
.callout .callout-ico svg { width: 100%; height: 100%; }
.callout p { margin: 0; font-size: 15px; color: var(--ink); }
.callout p + p { margin-top: 8px; }
.callout .callout-title { display: block; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.callout--warn { background: rgba(255, 77, 109, 0.06); border-color: rgba(255, 77, 109, 0.28); }
.callout--warn .callout-ico svg { fill: var(--red); }
.callout--info { background: rgba(0, 182, 229, 0.06); border-color: rgba(0, 182, 229, 0.30); }
.callout--info .callout-ico svg { fill: var(--blue); }

/* ===================================================================
   FAQ
   =================================================================== */
.faq-wrap { max-width: 760px; margin: 0 auto; padding: 56px 24px 70px; }
.faq-cat {
  font-family: var(--display);
  font-weight: 700;
  font-size: 27px;
  letter-spacing: -0.015em;
  margin: 46px 0 14px;
  color: var(--ink);
}
.faq-cat:first-of-type { margin-top: 0; }

details.faq {
  background: var(--bg-white);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  margin-bottom: 10px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 4px 18px -10px rgba(7, 28, 50, 0.08);
}
details.faq:hover { border-color: rgba(0, 182, 229, 0.28); }
details.faq[open] { border-color: rgba(0, 182, 229, 0.42); box-shadow: 0 10px 30px -10px rgba(0, 182, 229, 0.22); }
details.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}
details.faq summary::-webkit-details-marker { display: none; }
.faq-plus { flex-shrink: 0; position: relative; width: 18px; height: 18px; }
.faq-plus::before, .faq-plus::after {
  content: '';
  position: absolute;
  background: var(--blue);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.faq-plus::before { top: 8px; left: 1px; width: 16px; height: 2px; }
.faq-plus::after  { left: 8px; top: 1px; width: 2px; height: 16px; }
details.faq[open] .faq-plus::after { transform: rotate(90deg); opacity: 0; }
.faq-answer {
  padding: 0 20px 20px;
  color: var(--ink-muted);
  font-size: 15px;
}
details.faq[open] .faq-answer { animation: faqReveal 0.26s ease both; }
.faq-answer p { margin: 0 0 10px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer a { color: var(--blue); }
@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ===================================================================
   SUPPORT
   =================================================================== */
.support-wrap { max-width: 880px; margin: 0 auto; padding: 56px 24px 70px; }

/* Carte contact : bloc cyan-bleu vif, écho du CTA final */
.contact-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 44px 36px;
  text-align: center;
  background: linear-gradient(160deg, var(--blue-bright) 0%, var(--blue) 55%, var(--blue-deep) 100%);
  color: #ffffff;
  box-shadow: 0 26px 60px -22px rgba(0, 182, 229, 0.50);
}
.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 580px 360px at 50% 110%, rgba(255, 255, 255, 0.22), transparent 66%);
  pointer-events: none;
}
.contact-card > * { position: relative; }
.contact-card .eyebrow { color: rgba(255, 255, 255, 0.85); margin-bottom: 14px; }
.contact-card .eyebrow::before { background: currentColor; }
.contact-card h2 { font-size: clamp(30px, 4vw, 42px); color: #ffffff; margin-bottom: 8px; }
.contact-card .reply { color: rgba(255, 255, 255, 0.86); font-size: 15px; max-width: 420px; margin: 0 auto; }
.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 14px;
  padding: 14px 24px;
  border-radius: 14px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 800;
  font-size: 17px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 16px 38px -10px rgba(7, 28, 50, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.contact-mail:hover {
  background: var(--ink-2);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 24px 46px -10px rgba(7, 28, 50, 0.55);
}
.contact-mail svg { width: 20px; height: 20px; fill: #ffffff; }

.help-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 26px;
}
.help-card {
  background: var(--bg-white);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 26px 24px;
  box-shadow: 0 6px 22px -12px rgba(7, 28, 50, 0.10);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.help-card:hover {
  border-color: rgba(0, 182, 229, 0.28);
  box-shadow: 0 18px 40px -18px rgba(0, 182, 229, 0.24);
  transform: translateY(-3px);
}
.help-card .ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--blue-bright), var(--blue));
  box-shadow: 0 10px 22px -10px rgba(0, 182, 229, 0.55);
  margin-bottom: 16px;
}
.help-card .ico svg { width: 22px; height: 22px; fill: #ffffff; }
.help-card h3 { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.015em; margin-bottom: 8px; color: var(--ink); }
.help-card p { color: var(--ink-muted); font-size: 15px; }
.help-card p a { color: var(--blue); }

.section-label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.015em;
  margin: 42px 0 16px;
  color: var(--ink);
}

/* ---- Liens annexes ---- */
.page-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.page-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: var(--bg-white);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.page-links a:hover { color: var(--ink); border-color: var(--ink); background: var(--bg-white); }
.page-links a svg { width: 15px; height: 15px; fill: var(--blue); }

/* ---- Mini-CTA bas de page ---- */
.mini-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  margin: 48px auto 0;
  max-width: 760px;
  padding: 48px 30px;
  border-radius: 26px;
  background: linear-gradient(160deg, var(--blue-bright) 0%, var(--blue) 55%, var(--blue-deep) 100%);
  color: #ffffff;
  box-shadow: 0 26px 60px -22px rgba(0, 182, 229, 0.50);
}
.mini-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 640px 380px at 50% 110%, rgba(255, 255, 255, 0.22), transparent 66%);
  pointer-events: none;
}
.mini-cta > * { position: relative; }
.mini-cta h2 { font-size: clamp(30px, 4.4vw, 50px); color: #ffffff; margin-bottom: 10px; }
.mini-cta p { color: rgba(255, 255, 255, 0.88); margin-bottom: 24px; }
.mini-cta .btn-store {
  margin: 0 auto;
  background: var(--ink);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 18px 40px -10px rgba(7, 28, 50, 0.45);
}
.mini-cta .btn-store:hover { background: var(--ink-2); }
.mini-cta .btn-store .apple { fill: #ffffff; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 860px) {
  .doc { grid-template-columns: 1fr; gap: 0; }
  .toc {
    position: static;
    margin-bottom: 32px;
    border: 1px solid var(--hairline);
    border-radius: 14px;
    background: var(--bg-white);
    overflow: hidden;
  }
  .toc-label { display: none; }
  .toc-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
  }
  .toc-summary::-webkit-details-marker { display: none; }
  .toc-summary .chev {
    width: 16px; height: 16px;
    fill: var(--blue);
    transition: transform 0.2s ease;
  }
  .toc[open] .toc-summary .chev { transform: rotate(180deg); }
  .toc-nav { padding: 4px 18px 16px; }
  .doc-body { max-width: none; }
  .help-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .doc { padding: 40px 20px 80px; }
  .contact-card, .mini-cta { padding: 34px 22px; }
}
