/* Tiré de docs/vitrine/refonte/maquettes/res par construire_theme.py : ne pas modifier ici. */
/* Maquettes de la vitrine maxivisa.com (refonte du 10/11/2026), charte graphique v2 d'Achille.
   Nuit #0F172A et sable #C9A96E, bronze #8B6B3D pour les liens sur fond clair, pages claires #F8FAFC,
   titres Poppins SemiBold, texte Nunito. Vert, jaune et rouge réservés au score. */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('polices/Poppins-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('polices/Poppins-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('polices/Nunito-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('polices/Nunito-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --nuit: #0F172A; --nuit2: #1E293B; --ardoise: #334155; --ardoise2: #475569;
  --sable: #C9A96E; --sable-fonce: #B8955A; --bronze: #8B6B3D; --bronze-clair: #7C6A4F;
  --gris: #94A3B8; --gris-texte: #64748B; --trait: #E2E8F0; --filet: #EEF2F6; --champ: #F1F5F9;
  --fond: #F8FAFC; --blanc: #FFFFFF; --sable-pale: #F4EEE2; --sable-pale2: #FAF6EE;
  --vert: #16A34A; --jaune: #D97706; --rouge: #DC2626;
  --degrade: linear-gradient(135deg, #0F172A 0%, #1E293B 45%, #334155 72%, #7C6A4F 100%);
  --ombre: 0 1px 2px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.06);
  --ombre-forte: 0 2px 4px rgba(15,23,42,.08), 0 24px 48px rgba(15,23,42,.16);
  --largeur: 1200px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: 'Nunito', sans-serif; color: var(--ardoise); background: var(--fond); font-size: 17px; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: var(--bronze); text-decoration: none; }
h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; font-weight: 600; color: var(--nuit); line-height: 1.12; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: 60px; letter-spacing: -.025em; }
h2 { font-size: 40px; letter-spacing: -.02em; }
h3 { font-size: 21px; }
p { text-wrap: pretty; }
.sombre h1, .sombre h2, .sombre h3 { color: var(--blanc); }
/* Cartes blanches posées dans une section sombre : titres et boutons à contour en nuit (sinon blancs sur blanc) */
.sombre :is(.carte-test, .depot) :is(h2, h3) { color: var(--nuit); }
.sombre .depot a.bouton:not(.contour) { color: var(--blanc); }
.sombre .depot .bouton.contour { color: var(--nuit); box-shadow: inset 0 0 0 1.5px var(--trait); }
.sombre { color: #CBD5E1; }
.sombre a { color: var(--sable); }
.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 32px; }
.section { padding: 104px 0; }
.section.serree { padding: 72px 0; }
.blanc { background: var(--blanc); }
.sable-pale { background: var(--sable-pale2); }
.degrade { background: var(--degrade); }
.surtitre { font-family: 'Poppins'; font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--bronze); margin-bottom: 14px; display: block; }
.sombre .surtitre { color: var(--sable); }
.chapeau { font-size: 20px; color: var(--ardoise2); max-width: 640px; margin-top: 18px; }
.sombre .chapeau { color: #CBD5E1; }
.centre { text-align: center; } .centre .chapeau { margin-left: auto; margin-right: auto; }
.icone { width: 20px; height: 20px; flex: none; }
.icone [data-color="color-2"] { color: var(--sable); }

/* Boutons : nuit sur fond clair, sable sur fond sombre */
.bouton { display: inline-flex; align-items: center; gap: 10px; font-family: 'Poppins'; font-weight: 600; font-size: 16px; padding: 15px 26px; border-radius: 999px; background: var(--nuit); color: var(--blanc); white-space: nowrap; border: 0; }
.bouton.sable { background: var(--sable); color: var(--nuit); }
.bouton.contour { background: transparent; color: var(--nuit); box-shadow: inset 0 0 0 1.5px var(--trait); }
.sombre .bouton.contour { color: var(--blanc); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.28); }
.bouton.grand { padding: 18px 32px; font-size: 17px; }
.bouton.plein { width: 100%; justify-content: center; }
.bouton .icone { width: 18px; height: 18px; }
.lien { font-family: 'Poppins'; font-weight: 600; font-size: 15px; color: var(--bronze); display: inline-flex; gap: 6px; align-items: center; }
.lien .icone { width: 16px; height: 16px; }
.sombre .lien { color: var(--sable); }
.pastille { display: inline-flex; align-items: center; gap: 6px; font-family: 'Poppins'; font-weight: 600; font-size: 12px; letter-spacing: .04em; padding: 5px 11px; border-radius: 999px; background: var(--sable-pale); color: var(--bronze); }
.pastille.nuit { background: var(--nuit); color: var(--sable); }
.eur { display: none; }
[data-devise="eur"] .eur { display: inline; } [data-devise="eur"] .xof { display: none; }
.pastille.fictif { background: var(--champ); color: var(--ardoise2); font-family: 'Nunito'; font-weight: 700; letter-spacing: 0; }

/* Bandeau du haut et en-tête */
.bandeau { background: var(--nuit); color: #CBD5E1; font-size: 14px; text-align: center; padding: 9px 16px; }
.bandeau a { color: var(--sable); font-weight: 700; margin-left: 6px; }
.entete { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--filet); position: relative; z-index: 5; }
.entete.transparent { background: transparent; border-bottom-color: rgba(255,255,255,.1); }
.entete .conteneur { display: flex; align-items: center; gap: 32px; height: 76px; max-width: 1380px; }
.logo { height: 54px; width: auto; margin-left: -10px; }
.nav { display: flex; gap: 24px; flex: 1; white-space: nowrap; }
.nav a { font-family: 'Poppins'; font-weight: 600; font-size: 14.5px; color: var(--ardoise); }
.nav a.actif { color: var(--nuit); box-shadow: 0 2px 0 var(--sable); padding-bottom: 3px; }
.entete.transparent .nav a { color: #CBD5E1; } .entete.transparent .nav a.actif { color: var(--blanc); }
.entete .droite { display: flex; align-items: center; gap: 22px; white-space: nowrap; }
.entete .connexion { font-family: 'Poppins'; font-weight: 600; font-size: 15px; color: var(--bronze); }
.entete.transparent .connexion { color: var(--sable); }
.entete .bouton { padding: 12px 20px; font-size: 15px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; background: var(--champ); align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: var(--nuit); border-radius: 2px; position: relative; content: ''; }
.burger span::before { position: absolute; top: -6px; } .burger span::after { position: absolute; top: 6px; }
.entete.transparent .burger { background: rgba(255,255,255,.1); }
.entete.transparent .burger span, .entete.transparent .burger span::before, .entete.transparent .burger span::after { background: var(--blanc); }

/* Cartes, grilles */
.grille { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.carte { background: var(--blanc); border-radius: 24px; padding: 32px; box-shadow: var(--ombre); border: 1px solid var(--filet); }
.carte p { color: var(--ardoise2); }
.carte h3 + p { margin-top: 10px; }
.puce-icone { width: 48px; height: 48px; border-radius: 14px; background: var(--sable-pale); color: var(--nuit); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.puce-icone .icone { width: 22px; height: 22px; }
.sombre .puce-icone { background: rgba(201,169,110,.14); color: var(--blanc); }
.liste-coches { list-style: none; display: grid; gap: 12px; margin-top: 20px; }
.liste-coches li { display: flex; gap: 12px; align-items: flex-start; }
.liste-coches li .icone { width: 18px; height: 18px; margin-top: 4px; color: var(--bronze); }
.sombre .liste-coches li .icone { color: var(--sable); }
.tete-section { margin-bottom: 56px; }
.tete-section.flex { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }

/* Téléphone : vrai iPhone 15 Pro (cadre Craftwork) avec la capture de l'application, barre d'état comprise */
.telephone { width: 290px; aspect-ratio: 763 / 1566; flex: none; filter: drop-shadow(0 28px 36px rgba(15,23,42,.22)) drop-shadow(0 4px 8px rgba(15,23,42,.12)); }
.telephone img { width: 100%; height: 100%; display: block; }
.telephone.petit { width: 230px; }

/* Champs */
.champ { display: block; }
.champ label, .etiquette { display: block; font-family: 'Poppins'; font-weight: 600; font-size: 13px; color: var(--ardoise2); margin-bottom: 7px; }
.saisie { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 54px; padding: 0 18px; border-radius: 14px; background: var(--champ); border: 1px solid var(--trait); font-size: 16px; color: var(--nuit); font-weight: 700; }
.saisie.vide { color: var(--gris-texte); font-weight: 400; }
.saisie .icone { width: 16px; height: 16px; color: var(--gris-texte); }
.saisie.zone { height: 110px; align-items: flex-start; padding-top: 14px; }
.choix { display: flex; flex-wrap: wrap; gap: 8px; }
.choix span { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--trait); font-weight: 700; font-size: 15px; color: var(--nuit); background: var(--blanc); display: inline-flex; gap: 8px; align-items: center; }
.choix span.oui { background: var(--nuit); color: var(--blanc); border-color: var(--nuit); }
/* Vrais choix (boutons radio cachés, la pastille montre le choix) et vraies listes déroulantes */
.choix label { cursor: pointer; }
.choix input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choix input:checked + span { background: var(--nuit); color: var(--blanc); border-color: var(--nuit); }
.choix input:focus-visible + span { outline: 2px solid var(--sable); outline-offset: 2px; }
fieldset.champ { border: 0; padding: 0; margin: 0; min-width: 0; }
legend.etiquette { padding: 0; }
.liste { position: relative; display: block; }
.liste select { appearance: none; -webkit-appearance: none; width: 100%; font: inherit; cursor: pointer; padding-right: 44px; }
.liste .icone { position: absolute; right: 18px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--gris-texte); pointer-events: none; }
button.bouton { cursor: pointer; line-height: inherit; justify-content: center; }
/* Titre réservé aux lecteurs d'écran (plan de la page sans titre visible en plus) */
.cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.choix span .icone { width: 16px; height: 16px; }

/* Score (couleurs réservées) */
.jauge { --v: 72; --c: var(--jaune); width: 150px; height: 150px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--v) * 1%), var(--filet) 0); display: flex; align-items: center; justify-content: center; flex: none; }
.jauge > div { width: 120px; height: 120px; border-radius: 50%; background: var(--blanc); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.jauge b { font-family: 'Poppins'; font-weight: 600; font-size: 40px; color: var(--nuit); line-height: 1; }
.jauge small { font-size: 13px; color: var(--gris-texte); }
.niveau { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.niveau::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
/* Texte en nuit (lisible), la pastille porte la couleur du score */
.niveau { color: var(--nuit); }
.niveau.jaune::before { background: var(--jaune); } .niveau.vert::before { background: var(--vert); } .niveau.rouge::before { background: var(--rouge); }

/* Avis (exemples fictifs) */
.avis { display: flex; flex-direction: column; gap: 18px; }
.avis blockquote { font-size: 17px; color: var(--nuit); line-height: 1.55; }
.auteur { display: flex; align-items: center; gap: 12px; }
.auteur img, .auteur .initiales { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.auteur .initiales { background: var(--sable-pale); color: var(--bronze); font-family: 'Poppins'; font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.auteur b { display: block; color: var(--nuit); font-size: 15px; } .auteur small { color: var(--gris-texte); font-size: 14px; }

/* Mentions obligatoires */
.mentions { font-size: 14px; color: var(--gris-texte); display: flex; gap: 10px; align-items: flex-start; }
.mentions .icone { width: 16px; height: 16px; margin-top: 3px; }
.sombre .mentions { color: #CBD5E1; }

/* Grand appel final */
.appel { border-radius: 32px; overflow: hidden; position: relative; padding: 80px 72px; background: var(--degrade); display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.appel .photo-fond { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .22; mix-blend-mode: luminosity; }
.appel > * { position: relative; }

/* Pied de page */
.pied { background: var(--nuit); color: var(--gris); padding: 80px 0 40px; font-size: 15px; }
.pied .haut { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.08); }
.pied h4 { color: var(--blanc); font-size: 14px; margin-bottom: 16px; }
.pied ul { list-style: none; display: grid; gap: 10px; }
.pied a { color: #CBD5E1; }
.pied .logo { height: 44px; margin-bottom: 20px; }
.pied .bas { padding-top: 28px; display: flex; justify-content: space-between; gap: 32px; font-size: 13px; }
.pied .bas p { max-width: 760px; }
.pied .whatsapp { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--sable); font-family: 'Poppins'; font-weight: 600; font-size: 15px; }

/* Téléphone (affichage 393 px) */
@media (max-width: 760px) {
  body { font-size: 16px; }
  h1 { font-size: 38px; } h2 { font-size: 29px; } h3 { font-size: 19px; }
  .conteneur { padding: 0 20px; }
  .section { padding: 64px 0; } .section.serree { padding: 48px 0; }
  .chapeau { font-size: 17px; }
  .nav, .entete .connexion, .entete .droite .bouton { display: none; }
  .burger { display: flex; }
  .entete .conteneur { height: 64px; justify-content: space-between; }
  .logo { height: 46px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .carte { padding: 24px; border-radius: 20px; }
  .tete-section { margin-bottom: 32px; } .tete-section.flex { display: block; } .tete-section.flex .lien { margin-top: 16px; }
  .appel { grid-template-columns: 1fr; padding: 44px 24px; border-radius: 24px; gap: 28px; }
  .pied { padding: 56px 0 32px; } .pied .haut { grid-template-columns: 1fr 1fr; gap: 32px; } .pied .haut > :first-child { grid-column: 1 / -1; }
  .pied .bas { flex-direction: column; }
  .bouton.grand { padding: 16px 26px; font-size: 16px; }
  .telephone { width: 250px; }
}

/* Tête des pages intérieures */
.tete-page { padding: 88px 0 72px; background: var(--blanc); border-bottom: 1px solid var(--filet); }
.tete-page h1 { max-width: 860px; }
.tete-page.centre h1 { margin: 0 auto; }
.fil { font-size: 14px; color: var(--gris-texte); margin-bottom: 22px; display: flex; gap: 8px; }
.fil a { color: var(--gris-texte); }

/* Carte du rapport (exemple fictif) : seule place du vert, du jaune et du rouge */
.rapport { background: var(--blanc); border-radius: 24px; box-shadow: var(--ombre-forte); padding: 28px; border: 1px solid var(--filet); }
.rapport .haut { display: flex; gap: 24px; align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--filet); }
.rapport .haut h4 { font-size: 18px; } .rapport .haut p { font-size: 14px; color: var(--gris-texte); margin-top: 6px; }
.rapport ul { list-style: none; margin-top: 18px; display: grid; gap: 12px; }
.rapport li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--nuit); padding: 12px 14px; border-radius: 14px; background: var(--fond); }
.rapport li small { display: block; color: var(--gris-texte); font-size: 13px; }
.rapport li .point { width: 10px; height: 10px; border-radius: 50%; flex: none; margin-top: 7px; }
.rapport .pied-rapport { margin-top: 18px; display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--gris-texte); }
.rapport .pied-rapport .icone { width: 16px; height: 16px; color: var(--bronze); }

/* Questions en accordéon */
.question { border-bottom: 1px solid var(--trait); padding: 24px 0; }
.question summary, .question .q { display: flex; justify-content: space-between; gap: 24px; font-family: 'Poppins'; font-weight: 600; font-size: 18px; color: var(--nuit); list-style: none; }
.question .q .plus { width: 32px; height: 32px; border-radius: 50%; background: var(--champ); display: flex; align-items: center; justify-content: center; flex: none; }
.question .q .plus .icone { width: 16px; height: 16px; }
.question.ouverte .q .plus { background: var(--nuit); color: var(--blanc); }
.question.ouverte .q .plus .icone { transform: rotate(180deg); }
.question .r { margin-top: 12px; color: var(--ardoise2); max-width: 760px; }
.question:not(.ouverte) .r { display: none; }

@media (max-width: 760px) {
  .tete-page { padding: 48px 0 44px; }
  .question .q { font-size: 16px; }
  .rapport { padding: 20px; } .rapport .haut { gap: 16px; } .rapport .jauge { --t: 1; width: 110px; height: 110px; } .rapport .jauge > div { width: 88px; height: 88px; } .rapport .jauge b { font-size: 30px; }
}

/* Pages par public : grande photo et carte de test à droite */
.public { position: relative; overflow: hidden; margin-top: -76px; padding-top: 76px; }
.public > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.public::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,23,42,.92) 0%, rgba(15,23,42,.7) 45%, rgba(15,23,42,.2) 100%); }
.public .conteneur { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: 64px; align-items: center; padding-top: 72px; padding-bottom: 96px; }
.carte-test { background: var(--blanc); border-radius: 28px; padding: 30px; box-shadow: var(--ombre-forte); display: grid; gap: 18px; }
.carte-test h2 { font-size: 22px; }
.carte-test .resultat { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 18px; background: var(--sable-pale2); }
.carte-test .resultat .jauge { width: 76px; height: 76px; } .carte-test .resultat .jauge > div { width: 60px; height: 60px; } .carte-test .resultat .jauge b { font-size: 22px; }
.carte-test .resultat p { font-size: 14px; color: var(--ardoise2); }
.carte-test .petit { font-size: 13px; color: var(--gris-texte); text-align: center; }
.erreurs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.erreur { display: flex; gap: 18px; align-items: flex-start; }
.erreur .avant { text-decoration: line-through; text-decoration-color: var(--rouge); color: var(--gris-texte); }
.villes { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; }
.villes figure { position: relative; border-radius: 24px; overflow: hidden; height: 340px; }
.villes img { width: 100%; height: 100%; object-fit: cover; }
.villes figcaption { position: absolute; left: 20px; bottom: 18px; color: var(--blanc); font-family: 'Poppins'; font-weight: 600; font-size: 20px; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
@media (max-width: 760px) {
  .public::after { background: linear-gradient(180deg, rgba(15,23,42,.75), rgba(15,23,42,.92)); }
  .public .conteneur { grid-template-columns: minmax(0,1fr); gap: 32px; padding-top: 36px; padding-bottom: 48px; }
  .carte-test { padding: 22px; border-radius: 22px; }
  .erreurs, .villes { grid-template-columns: 1fr; }
  .villes figure { height: 220px; }
}
