/* Site voxane.app : couleurs de la marque (mauve #c58af9, gris foncé #3c4043, anthracite #202124), thème clair et sombre */

:root {
  --fond: #ffffff;
  --fond-doux: #f6f3fa;
  --texte: #202124;
  --texte-doux: #5f6368;
  --trait: #e3dcec;
  --accent: #c58af9;
  --accent-fort: #7b3fb3;     /* liens et boutons : mauve foncé, lisible sur fond clair */
  --sur-accent: #ffffff;
  --ombre: 0 1px 3px rgba(32, 33, 36, .12), 0 4px 16px rgba(32, 33, 36, .06);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fond: #1e1f20;
    --fond-doux: #28292c;
    --texte: #e8eaed;
    --texte-doux: #a8abb0;
    --trait: #3c4043;
    --accent-fort: #d7aefb;
    --sur-accent: #202124;
    --ombre: 0 1px 3px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --fond: #1e1f20;
  --fond-doux: #28292c;
  --texte: #e8eaed;
  --texte-doux: #a8abb0;
  --trait: #3c4043;
  --accent-fort: #d7aefb;
  --sur-accent: #202124;
  --ombre: 0 1px 3px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent-fort); }
a:hover { text-decoration-thickness: 2px; }

.cadre { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* En-tête */

/* En-tête figé en haut, légèrement translucide */
html { scroll-padding-top: 80px; }
.entete { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--trait);
  background: color-mix(in srgb, var(--fond) 85%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.entete-cadre { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.marque { display: flex; align-items: center; gap: 10px; color: var(--texte); text-decoration: none; }
.marque img { border-radius: 8px; }
.mot { height: 22px; width: auto; }
.menu { display: flex; gap: 20px; flex-wrap: wrap; }
.menu a { color: var(--texte-doux); text-decoration: none; font-weight: 500; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--texte); }
.menu a[aria-current="page"] { box-shadow: inset 0 -2px var(--accent); }

/* Contenu */

main { padding-top: 32px; padding-bottom: 48px; }

h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.2; margin: 0 0 16px; letter-spacing: -.01em; }
h2 { font-size: 1.4rem; line-height: 1.3; margin: 40px 0 12px; }
h3 { font-size: 1.1rem; margin: 24px 0 8px; }
p, ul, ol { margin: 0 0 14px; }
li { margin-bottom: 6px; }
.petit { font-size: .875rem; color: var(--texte-doux); }
.maj { color: var(--texte-doux); font-size: .9rem; }

/* Pages de texte (confidentialité, conditions, aide) : ligne de lecture plus courte */
.texte { max-width: 720px; }

table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--trait); }
th { background: var(--fond-doux); font-weight: 600; }
.tableau { overflow-x: auto; }

.encadre { background: var(--fond-doux); border-left: 4px solid var(--accent); border-radius: 8px; padding: 14px 18px; margin: 16px 0 20px; }
.encadre p:last-child { margin-bottom: 0; }

kbd, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: var(--fond-doux); border: 1px solid var(--trait); border-radius: 4px; padding: 1px 5px; }

/* Accueil */

.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 24px 0 16px; }
.hero p.chapeau { font-size: 1.2rem; color: var(--texte-doux); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.bouton { display: inline-block; padding: 12px 20px; border-radius: 999px; font-weight: 600; text-decoration: none; background: var(--accent-fort); color: var(--sur-accent); }
.bouton.secondaire { background: transparent; color: var(--accent-fort); box-shadow: inset 0 0 0 1px var(--trait); }
.bouton[aria-disabled="true"] { opacity: .6; pointer-events: none; }

.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; counter-reset: etape; }
/* Pastille numérotée à gauche, texte à côté */
.etapes li { display: grid; grid-template-columns: 32px 1fr; gap: 24px; align-items: start; background: var(--fond-doux); border-radius: 16px; padding: 20px; counter-increment: etape; margin: 0; }
.etapes li::before { content: counter(etape); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #202124; font-weight: 700; }

.grille { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 40px; list-style: none; padding: 0; }
.grille li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; margin: 0; }
.grille strong { display: block; }

/* Icône au trait sur une tuile mauve pâle (symboles de images/icones.svg) */
.icone { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--fond-doux); color: var(--accent-fort);
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.tarif { background: var(--fond-doux); border-radius: 16px; padding: 24px; }

/* Sections de l'accueil : espacées, une sur deux sur une bande pâle de toute la largeur de l'écran
   (fond étendu par box-shadow et clip-path, sans défilement horizontal) */
.section { padding: 48px 0; }
.section > h2:first-child { margin-top: 0; }
.bande { background: var(--fond-doux); box-shadow: 0 0 0 100vmax var(--fond-doux); clip-path: inset(0 -100vmax); }
.bande .etapes li, .bande .tarif, .bande .icone { background: var(--fond); }
.hero + .section { margin-top: 32px; }
main:has(> .section:last-child.bande) { padding-bottom: 0; }

/* Illustration de mise en situation (images/voxane-scene-v1.svg), à droite du titre de l'accueil */

.illustration { width: 100%; max-width: 440px; height: auto; justify-self: center; border-radius: 24px; box-shadow: var(--ombre); }

/* Pied de page */

.pied { border-top: 1px solid var(--trait); padding: 24px 0 32px; color: var(--texte-doux); font-size: .9rem; }
.pied-liens, .langues { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.pied a { color: var(--texte-doux); }
.langues a[aria-current="true"] { color: var(--texte); font-weight: 600; text-decoration: none; }

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .etapes, .grille { grid-template-columns: 1fr; }
  .menu { gap: 14px; font-size: .95rem; }
  /* En-tête figé sur une seule ligne : l'icône seule, sans le mot */
  .entete-cadre { flex-wrap: nowrap; min-height: 56px; }
  .mot { display: none; }
  th, td { padding: 8px; }
}
