/* ==========================================================================
   Accueil (maquette G, dossier de passation du 24 novembre 2026)
   Genere par design/tools/convertir/accueil.py : ne pas modifier a la main,
   corriger l'assembleur et regenerer.
   Mobile d'abord ; tablette (768-1023 px) : la mise en page mobile, centree
   sur 560 px ; desktop des 1024 px.
   ========================================================================== */

.ac-page { font-family: var(--mz-font-texte); color: var(--mz-ink); background: var(--mz-bg); overflow-x: clip; }
:where(.ac-page) :where(h1, h2, h3, p) { margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.ac-page a:not(.mz-bouton):hover { color: var(--mz-rose); }

/* Lien d'evitement, visible au clavier. */
.ac-evitement { position: absolute; left: -9999px; top: 12px; z-index: 50; padding: 10px 14px; border-radius: var(--mz-r-bouton); background: var(--mz-ink); color: #000000; font-family: var(--mz-font-texte); font-weight: 600; }
.ac-evitement:focus { left: 12px; }

/* Boutons : fond blanc, texte noir, Fraunces 600 (theme.css, .mz-bouton). */
.ac-bouton, .ac-bouton-petit { align-items: center; justify-content: center; box-sizing: border-box; border-radius: var(--mz-r-bouton); background: var(--mz-ink); color: #000000; font-weight: 600; white-space: nowrap; }
.ac-bouton:hover, .ac-bouton-petit:hover { background: #EDEDED; color: #000000; }
.ac-bouton { display: flex; min-height: 54px; padding: 0px 20px; font-size: 17px; }
.ac-bouton-petit { display: inline-flex; padding: 11px 16px; font-size: 14px; }

/* En-tete */
.ac-entete { height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0px 18px; border-bottom: 1px solid var(--mz-line); }
.ac-entete-gauche { display: flex; align-items: center; gap: 40px; }
.ac-logo { display: inline-flex; align-items: center; }
.ac-logo img { width: auto; height: 24px; }
.ac-menu { display: none; }
.ac-compte { display: flex; align-items: center; gap: 16px; font-size: 14px; font-weight: 500; }
.ac-connexion { display: inline-flex; align-items: center; min-height: 44px; }

/* Hero */
.ac-hero { display: flex; flex-direction: column; gap: 18px; padding: 32px 18px 0px; text-align: center; }
.ac-titre { font-weight: 700; font-size: 44px; line-height: 1; }
.ac-accroche { display: block; margin-bottom: 12px; font-family: var(--mz-font-texte); font-variation-settings: normal; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; line-height: 1.4; text-transform: uppercase; color: var(--mz-muted); }
.ac-rose { color: var(--mz-rose); }
.ac-page .ac-sous { margin: -4px 0px 4px; font-size: 16px; line-height: 1.55; color: var(--mz-muted); }
.ac-page .ac-gratuit { margin: 6px 0px -8px; font-size: 16px; line-height: 1.55; color: var(--mz-rose); }
.ac-lien { display: inline-flex; align-items: center; align-self: center; min-height: 44px; font-size: 14px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--mz-dim); text-underline-offset: 5px; }
/* Sur les plus petits ecrans (320 px), l'appel tient sur une ligne. */
@media (max-width: 359px) { .ac-bouton { padding: 0px 12px; font-size: 15px; } }

/* Photo et notification */
.ac-photo { position: relative; }
.ac-page .ac-photo-img { width: 100%; object-position: center top; border-radius: 14px; }
/* 48 px de plus que la maquette (decision de Thibaud) */
.ac-photo-hero .ac-photo-img { height: calc((min(100vw, 560px) - 36px) * 1.1071 - 72px); }
.ac-photo-vocab { display: none; }
.ac-notif { position: absolute; left: 12px; right: 12px; bottom: 14px; display: flex; gap: 12px; align-items: flex-start; box-sizing: border-box; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 20px; background: rgba(28, 28, 30, 0.82); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); text-align: left; }
.ac-notif-icone { display: block; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 9px; }
.ac-notif-corps { flex: 1 1 0%; min-width: 0; }
.ac-notif-haut { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ac-notif-app { font-size: 14px; font-weight: 600; }
.ac-notif-heure { font-size: 12px; color: var(--mz-muted); font-variant-numeric: tabular-nums; }
.ac-notif-titre { margin-top: 2px; font-size: 14px; font-weight: 600; }
.ac-notif-texte { margin-top: 1px; font-size: 13px; line-height: 1.35; color: #D4D4D4; }

/* Sections */
.ac-section { padding: 56px 18px 0px; scroll-margin-top: 16px; }
.ac-h2 { font-weight: 700; font-size: 28px; line-height: 1.06; }
.ac-logo-titre { display: inline-block; width: auto; height: 0.809em; vertical-align: -0.04em; }
.ac-insecable { white-space: nowrap; }
.ac-page .ac-chapo { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--mz-muted); }

/* Comment marche matchiz : quatre etapes */
.ac-concept { display: flex; flex-direction: column; gap: 22px; }
.ac-etapes { display: flex; flex-direction: column; gap: 10px; margin: 0px; padding: 0px; list-style: none; }
.ac-etape { display: grid; grid-template-columns: 36px minmax(0, 1fr); grid-template-areas: "num haut" "num texte"; gap: 6px 14px; align-items: start; padding: 18px; border: 1px solid var(--mz-line); border-radius: var(--mz-r-carte); background: var(--mz-s1); }
.ac-num { grid-area: num; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--mz-s2); font-family: var(--mz-font-titre); font-weight: 700; font-size: 15px; color: var(--mz-rose); }
.ac-etape-haut { grid-area: haut; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ac-etape-titre { grid-area: titre; font-family: var(--mz-font-titre); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.ac-pastille { grid-area: pastille; padding: 3px 8px; border-radius: var(--mz-r-pastille); background: var(--mz-s3); font-size: 11px; font-weight: 600; white-space: nowrap; }
.ac-page .ac-etape-texte { grid-area: texte; font-size: 14px; line-height: 1.5; color: var(--mz-muted); }
/* PERFECTMATCH : un rose plus soutenu que celui du site, ou le texte blanc reste lisible (4,6:1). */
.ac-etape-fete { border-color: #D6336C; background: #D6336C; }
.ac-etape-fete .ac-num { background: var(--mz-ink); color: #D6336C; }
.ac-etape-fete .ac-pastille { background: rgba(0, 0, 0, 0.28); }
.ac-page .ac-etape-fete .ac-etape-texte { color: var(--mz-ink); }
.ac-page .ac-concept-fin { font-size: 14px; line-height: 1.5; color: var(--mz-muted); }

/* Vocabulaire et questions : accordeons natifs (details) */
.ac-vocab, .ac-faq { display: flex; flex-direction: column; gap: 20px; }
.ac-vocab-texte { display: flex; flex-direction: column; gap: 20px; }
.ac-acc { border-top: 1px solid var(--mz-line); }
.ac-acc-item { border-bottom: 1px solid var(--mz-line); }
.ac-acc-ligne { display: flex; align-items: center; gap: 10px; box-sizing: border-box; min-height: 56px; padding: 14px 2px; list-style: none; cursor: pointer; }
.ac-acc-ligne::-webkit-details-marker { display: none; }
.ac-acc-nom { flex: 1 1 0%; min-width: 0; font-family: var(--mz-font-titre); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; transition: color 0.15s ease; }
h3.ac-acc-nom { font-size: 17px; line-height: 1.3; }
.ac-badge { flex: 0 0 auto; padding: 4px 9px; border-radius: var(--mz-r-pastille); background: var(--mz-s3); font-size: 11px; font-weight: 600; white-space: nowrap; }
.ac-badge-plus { border: 1px solid var(--mz-rose-bord); background: var(--mz-rose-fonce); }
.ac-plus-icone { flex: 0 0 auto; width: 20px; height: 20px; color: var(--mz-rose); transition: transform 0.2s ease; }
.ac-acc-item[open] .ac-plus-icone { transform: rotate(45deg); }
.ac-page .ac-acc-texte { padding: 0px 2px 18px; font-size: 15px; line-height: 1.55; color: var(--mz-muted); }
.ac-bouton-fin { margin-top: 8px; padding: 0px 26px; }
.ac-lien-texte { text-decoration: underline; text-decoration-color: var(--mz-dim); text-underline-offset: 3px; }

/* Pied de page */
.ac-pied { margin-top: 56px; border-top: 1px solid var(--mz-line); }
.ac-pied-dedans { display: flex; flex-direction: column; gap: 14px; padding: 24px 18px 28px; font-size: 12px; color: var(--mz-muted); }
.ac-pied-liens { display: flex; flex-wrap: wrap; gap: 10px 18px; }

/* ---- Tablette : la mise en page mobile, centree, 560 px au plus ---- */
@media (max-width: 1023px) {
  .ac-page { max-width: 560px; margin: 0px auto; }
}

/* ---- Desktop ---- */
@media (min-width: 1024px) {
  .ac-entete { flex-wrap: wrap; gap: 12px 24px; height: auto; min-height: 72px; padding: 12px 64px; box-sizing: border-box; }
  .ac-logo img { height: 30px; }
  .ac-menu { display: flex; flex-wrap: wrap; gap: 28px; font-size: 15px; font-weight: 500; }
  .ac-compte { gap: 22px; font-size: 15px; }
  .ac-connexion { min-height: 0px; }
  .ac-bouton-petit { padding: 11px 18px; font-size: 15px; }

  .ac-hero { align-items: center; gap: 24px; box-sizing: border-box; max-width: 1100px; margin: 0px auto; padding: 96px 64px 0px; }
  .ac-titre { max-width: 980px; font-size: clamp(48px, 6.2vw, 88px); }
  .ac-page .ac-titre { letter-spacing: -0.015em; }
  .ac-accroche { margin-bottom: 18px; font-size: 14px; }
  .ac-page .ac-sous { max-width: 600px; margin: 0px; font-size: 19px; }
  .ac-photo-hero { display: none; }
  .ac-page .ac-gratuit { margin: 8px 0px 0px; font-size: 19px; }
  .ac-bouton { display: inline-flex; min-height: 58px; padding: 0px 36px; font-size: 18px; }
  .ac-hero .ac-bouton { margin-top: -12px; }
  .ac-lien { min-height: 0px; font-size: 15px; }

  .ac-section { box-sizing: border-box; max-width: 1440px; margin: 0px auto; padding: 128px 64px 0px; }
  .ac-h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.04; }
  .ac-page .ac-chapo { margin-top: 12px; font-size: 17px; }

  .ac-concept { gap: 40px; }
  .ac-concept .ac-tete { max-width: 760px; margin: 0px auto; text-align: center; }
  .ac-etapes { flex-direction: row; flex-wrap: wrap; gap: 16px; }
  .ac-etape { flex: 1 1 260px; min-width: 0px; box-sizing: border-box; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "num pastille" "titre titre" "texte texte"; align-content: start; gap: 12px; padding: 24px; }
  .ac-etape-haut { display: contents; }
  .ac-etape-titre { margin-top: 4px; font-size: 20px; }
  .ac-pastille { justify-self: end; align-self: center; padding: 4px 9px; }
  .ac-page .ac-etape-texte { font-size: 15px; line-height: 1.55; }
  .ac-page .ac-concept-fin { font-size: 15px; text-align: center; }

  .ac-vocab { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 48px 64px; }
  .ac-photo-vocab { display: block; flex: 1 1 440px; min-width: 0px; max-width: 580px; }
  .ac-photo-vocab .ac-photo-img { height: auto; aspect-ratio: 580 / 640; border-radius: 16px; }
  .ac-photo-vocab .ac-notif { left: 24px; right: 24px; bottom: 24px; max-width: 380px; padding: 14px 16px; }
  .ac-photo-vocab .ac-notif-icone { width: 40px; height: 40px; border-radius: 10px; }
  .ac-photo-vocab .ac-notif-titre { font-size: 15px; }
  .ac-photo-vocab .ac-notif-texte { line-height: 1.4; }
  .ac-vocab-texte { flex: 1 1 480px; min-width: 0px; gap: 28px; }
  .ac-page .ac-vocab .ac-chapo { font-size: 16px; }
  .ac-acc-ligne { gap: 12px; min-height: 60px; padding: 15px 4px; }
  .ac-acc-nom, h3.ac-acc-nom { font-size: 19px; }
  .ac-acc-ligne:hover .ac-acc-nom { color: var(--mz-rose); }
  .ac-plus-icone { width: 22px; height: 22px; }
  .ac-page .ac-acc-texte { padding: 0px 4px 18px; font-size: 16px; }

  .ac-faq { gap: 32px; max-width: 860px; }
  .ac-faq .ac-tete { text-align: center; }
  .ac-faq .ac-acc-ligne { min-height: 64px; padding: 16px 4px; }
  .ac-page .ac-faq .ac-acc-texte { max-width: 680px; padding-bottom: 20px; }
  .ac-bouton-fin { align-self: center; padding: 0px 36px; }

  .ac-pied { margin-top: 128px; }
  .ac-pied-dedans { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; box-sizing: border-box; max-width: 1440px; margin: 0px auto; padding: 28px 64px; font-size: 13px; }
  .ac-pied-liens { gap: 8px 22px; }
}
