/* Naturel Fitness · thèmes de couleurs (maquette)
   Chaque thème règle toute l'interface : fonds, boutons, textes, encadrés, polices, arrondis.
   style.css et app.css ne lisent que ces variables --t-*.
   Le thème actif est posé sur <html data-theme="..."> par assets/js/theme.js.
   Contrastes vérifiés : texte blanc sur --t-strong et --t-hover au-dessus de 4,5 (AA). */

/* 1. Rose énergie : la charte actuelle, rose et pêche */
:root, html[data-theme="rose"] {
  --t-primary: #fc4192;      /* couleur vive du thème (pastilles du sélecteur) */
  --t-pop: #fc4192;          /* vive mais lisible sur fond clair : mots en couleur, icônes, puces */
  --t-strong: #d81f72;       /* boutons et liens : texte blanc lisible */
  --t-hover: #b8125b;
  --t-soft: #ffe3ef;         /* fonds teintés : étiquettes, numéros d'étapes */
  --t-accent: #ff8a5c;       /* seconde couleur : étoiles, surtitres sur fond sombre */
  --t-accent-soft: #fff0e8;
  --t-ink: #2a2230;          /* texte */
  --t-muted: #6d6472;        /* texte secondaire */
  --t-bg: #ffffff;           /* fond de page */
  --t-bg-alt: #fff6f0;       /* fond des sections alternées et de l'espace membre */
  --t-card: #ffffff;         /* encadrés, cartes, champs */
  --t-line: #f1e4ea;         /* bordures */
  --t-dark: #2a2230;         /* blocs sombres : pied de page, vidéo du mois */
  --t-calm: #3e6b55;         /* sections « bien-être » */
  --t-calm-soft: #eef4ef;
  --t-calm-mid: #b9d3c1;
  --t-grad: linear-gradient(120deg, #fc4192 0%, #ff8a5c 100%);
  --t-radius: 22px;
  --t-btn-radius: 999px;
  --t-shadow: 0 10px 30px rgba(42, 34, 48, .08);
  --t-title: "Montserrat", "Segoe UI", sans-serif;
  --t-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-script: "Caveat", cursive;
}

/* 2. Blanc pur : fond blanc, rose et touche de vert du logo, lignes nettes */
html[data-theme="blanc"] {
  --t-primary: #f0388a;
  --t-pop: #e8287f;          /* vive mais lisible sur fond clair : mots en couleur, icônes, puces */
  --t-strong: #d81f72;
  --t-hover: #b8125b;
  --t-soft: #fde8f1;
  --t-accent: #8dc63f;
  --t-accent-soft: #f1f8e6;
  --t-ink: #1f1d24;
  --t-muted: #64606b;
  --t-bg: #ffffff;
  --t-bg-alt: #f8f8f9;
  --t-card: #ffffff;
  --t-line: #e9e8ec;
  --t-dark: #1f1d24;
  --t-calm: #4a7a2e;
  --t-calm-soft: #f3f8ee;
  --t-calm-mid: #cfe3c0;
  --t-grad: linear-gradient(120deg, #e8338a 0%, #c2185b 100%);
  --t-radius: 14px;
  --t-btn-radius: 999px;
  --t-shadow: 0 4px 18px rgba(31, 29, 36, .07);
  --t-title: "Poppins", "Segoe UI", sans-serif;
  --t-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-script: "Caveat", cursive;
}

/* 3. Citron vert : le vert du logo en vedette, rose en accent, formes rondes */
html[data-theme="citron"] {
  --t-primary: #7cb518;
  --t-pop: #4d8a0e;          /* vive mais lisible sur fond clair : mots en couleur, icônes, puces */
  --t-strong: #3d7a0c;
  --t-hover: #2f5e09;
  --t-soft: #eaf5d6;
  --t-accent: #fc4192;
  --t-accent-soft: #ffe3ef;
  --t-ink: #1f2a17;
  --t-muted: #56604d;
  --t-bg: #ffffff;
  --t-bg-alt: #f5faea;
  --t-card: #ffffff;
  --t-line: #e3eed2;
  --t-dark: #1f2a17;
  --t-calm: #c2185b;
  --t-calm-soft: #fff0f6;
  --t-calm-mid: #f6c3d9;
  --t-grad: linear-gradient(120deg, #2f6b0c 0%, #4a860f 100%);
  --t-radius: 28px;
  --t-btn-radius: 999px;
  --t-shadow: 0 12px 30px rgba(31, 42, 23, .09);
  --t-title: "Fredoka", "Segoe UI", sans-serif;
  --t-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-script: "Kalam", cursive;
}

/* 4. Agrume : orange et jaune soleil, fond crème */
html[data-theme="agrume"] {
  --t-primary: #ff7a1a;
  --t-pop: #ea580c;          /* vive mais lisible sur fond clair : mots en couleur, icônes, puces */
  --t-strong: #c2410c;
  --t-hover: #9a3412;
  --t-soft: #ffe8d1;
  --t-accent: #ffc23c;
  --t-accent-soft: #fff6d6;
  --t-ink: #2b1d14;
  --t-muted: #6b5546;
  --t-bg: #fffdf9;
  --t-bg-alt: #fff4e6;
  --t-card: #ffffff;
  --t-line: #f5e2cf;
  --t-dark: #3a1f12;
  --t-calm: #2c6b66;
  --t-calm-soft: #eaf5f3;
  --t-calm-mid: #b7d9d4;
  --t-grad: linear-gradient(120deg, #c2410c 0%, #d9480f 100%);
  --t-radius: 20px;
  --t-btn-radius: 999px;
  --t-shadow: 0 10px 30px rgba(58, 31, 18, .09);
  --t-title: "Outfit", "Segoe UI", sans-serif;
  --t-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-script: "Caveat Brush", cursive;
}

/* 5. Lagon : turquoise et corail, formes plus sportives */
html[data-theme="lagon"] {
  --t-primary: #14b8a6;
  --t-pop: #0d9488;          /* vive mais lisible sur fond clair : mots en couleur, icônes, puces */
  --t-strong: #0f766e;
  --t-hover: #115e59;
  --t-soft: #d5f5f0;
  --t-accent: #ff6f61;
  --t-accent-soft: #ffe9e6;
  --t-ink: #102a2a;
  --t-muted: #4f6463;
  --t-bg: #ffffff;
  --t-bg-alt: #effaf8;
  --t-card: #ffffff;
  --t-line: #d8eeea;
  --t-dark: #0c3b3a;
  --t-calm: #b3402f;
  --t-calm-soft: #fff1ee;
  --t-calm-mid: #f7c9c1;
  --t-grad: linear-gradient(120deg, #0f766e 0%, #0b8578 100%);
  --t-radius: 14px;
  --t-btn-radius: 14px;
  --t-shadow: 0 10px 28px rgba(12, 59, 58, .09);
  --t-title: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --t-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-script: "Gochi Hand", cursive;
}

/* Sélecteur de thème, dans la barre de démonstration (demo.js) */
.demo-theme { position: relative; }
.demo-theme > button {
  display: inline-flex; align-items: center; gap: 8px; border: none; border-radius: 10px; cursor: pointer;
  background: #43384a; color: #fff; font: inherit; padding: 8px 12px; white-space: nowrap;
}
.demo-theme > button:hover { background: #55485d; }
.demo-theme > button:focus-visible, .theme-pop button:focus-visible { outline: 3px solid #fc4192; outline-offset: 2px; }
.theme-dots { display: inline-flex; }
.theme-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #2a2230; margin-left: -4px; }
.theme-dots i:first-child { margin-left: 0; }
.theme-pop {
  position: absolute; right: 0; bottom: calc(100% + 10px); width: 280px; z-index: 75;
  background: #fff; color: #2a2230; border-radius: 16px; padding: 10px; box-shadow: 0 14px 40px rgba(0, 0, 0, .3);
}
.theme-pop[hidden] { display: none; }
.theme-pop p { margin: 4px 8px 8px; font-size: .75rem; color: #6d6472; font-weight: 600; }
.theme-pop .theme-compare { display: block; margin: 8px 8px 4px; font-size: .82rem; font-weight: 700; color: #2a2230; }
.demo-link { color: #fff; font-size: .78rem; font-weight: 700; white-space: nowrap; text-decoration: none; background: #fc4192; border-radius: 10px; padding: 8px 12px; }
.demo-link:hover { background: #d81f72; }
.demo-link:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 640px) { .demo-link { display: none; } }
.theme-pop button {
  display: flex; align-items: center; gap: 12px; width: 100%; border: 2px solid transparent; border-radius: 12px;
  background: none; cursor: pointer; padding: 8px 10px; text-align: left; font: inherit; color: inherit;
}
.theme-pop button:hover { background: #f6f3f7; }
.theme-pop button[aria-pressed="true"] { border-color: #2a2230; }
.theme-pop .sw { display: grid; grid-template-columns: 1fr 1fr; width: 40px; height: 40px; border-radius: 10px; overflow: hidden; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.theme-pop .sw i:first-child { grid-row: span 2; }
.theme-pop strong { display: block; font-size: .9rem; }
.theme-pop small { display: block; font-size: .74rem; color: #6d6472; font-weight: 600; }
@media (max-width: 640px) {
  .demo-theme > button { padding: 8px; }
  .demo-theme .theme-name { display: none; }
  .theme-pop { position: fixed; left: 8px; right: 8px; bottom: 76px; width: auto; }
}

/* Variantes de textes (theme.js, page valider.html) : une règle par variante, à ajouter avec elle.
   Exemple : html:not([data-var-x="b"]) [data-v="x-b"], html[data-var-x="b"] [data-v="x-a"] { display: none !important; } */
html:not([data-var-paiement="b"]) [data-v="paiement-b"], html[data-var-paiement="b"] [data-v="paiement-a"] { display: none !important; }
