/* CULTIVA by Zisty · page de vente : ambiances nuit (par défaut) et jour (20/11/2026)
   Même réglage que l'appli : le choix est gardé dans le navigateur (cv_ambiance) et posé
   sur <html data-ambiance> avant l'affichage. Le bouton soleil/lune de l'en-tête bascule.
   Chargée après site.css, en trois parties :
   1. nuit : violet profond (pas du noir), texte clair ;
   2. jour : lavande claire, comme l'ambiance jour de l'appli ;
   3. l'arc-en-ciel de ZISTY STUDIO, commun aux deux, en dernier pour l'emporter. */

:root {
  --s1: #ff3b3b; --s2: #ff8a1f; --s3: #ffd400; --s4: #3ddc84; --s5: #22b8ff; --s6: #4d5bff; --s7: #a24dff;
  --spectre: linear-gradient(90deg, var(--s1), var(--s2), var(--s3), var(--s4), var(--s5), var(--s6), var(--s7));
  --encre-spectre: #1E1033;
}

/* ============================== 1. NUIT ============================== */
html[data-ambiance="nuit"] {
  --prune: #C9A7FF;
  --prune-fonce: #E2CCFF;
  --encre: #F4EEFB;
  --texte-2: #CBB8E8;
  --rose: #24163D;
  --rose-ligne: #3D2A63;
  --rose-vif: #5A4483;
  --mauve: #C9A7FF;
  --creme: #1F1236;
  --blanc: #2A1946;
  --ligne: #3D2A63;
  --bord-champ: #6B5594;
  --soleil: #ffd400;
  --mq-a: #D9C2FF; --mq-a-doux: #3A2560;
  --mq-b: #FFB08A; --mq-b-doux: #45281F;
  --mq-c: #D3E58A; --mq-c-doux: #2E3320;
  --spectre-texte: var(--spectre);
  --ico-1: var(--s7); --ico-2: var(--s5); --ico-3: var(--s4);
  --halo: .45;
  color-scheme: dark;
}
html[data-ambiance="nuit"] body { background: var(--creme); color: var(--encre); }
html[data-ambiance="nuit"] ::placeholder { color: #8E7BAE; }
html[data-ambiance="nuit"] .tete { background: rgba(31, 18, 54, .94); border-bottom: 1px solid #3D2A63; }
html[data-ambiance="nuit"] .lien-connexion { color: #F4EEFB; }

html[data-ambiance="nuit"] .bouton { background: #F4EEFB; border-color: #F4EEFB; color: #2B1747; }
html[data-ambiance="nuit"] .bouton:hover { background: #FFFFFF; border-color: #FFFFFF; color: #2B1747; }
html[data-ambiance="nuit"] .bouton.secondaire { background: transparent; border-color: #5A4483; color: #F4EEFB; }
html[data-ambiance="nuit"] .bouton.secondaire:hover { background: #2A1946; border-color: #C9A7FF; color: #FFFFFF; }
html[data-ambiance="nuit"] .aller { background: #F4EEFB; color: #2B1747; }

html[data-ambiance="nuit"] .accroche { background:
  radial-gradient(circle at 8% 10%, rgba(162, 77, 255, .22) 0 18%, transparent 19%),
  radial-gradient(circle at 92% 30%, rgba(34, 184, 255, .14) 0 14%, transparent 15%),
  #1F1236; }
html[data-ambiance="nuit"] .accroche h1 { color: #FFFFFF; }
html[data-ambiance="nuit"] .chapeau { color: #E7DCF6; }

html[data-ambiance="nuit"] .cadre { background: #2A1946; border-color: #3D2A63; box-shadow: 0 32px 64px -32px rgba(8, 2, 20, .8); }
html[data-ambiance="nuit"] .g-case { background: #24163D; border-color: #3D2A63; }
html[data-ambiance="nuit"] .g-vide { border-color: #4A3672; }
html[data-ambiance="nuit"] .carte { background: #2C1B4B; border-color: #3D2A63; border-left-color: var(--mq); color: #F4EEFB; }
html[data-ambiance="nuit"] .st-idee { background: #33204F; color: #CBB8E8; }
html[data-ambiance="nuit"] .st-a_produire { background: #3B3216; color: #FFDF5C; }
html[data-ambiance="nuit"] .st-en_production { background: #1C2E52; color: #9CC2FF; }
html[data-ambiance="nuit"] .st-a_valider { background: #4A1F2A; color: #FFB3A8; }
html[data-ambiance="nuit"] .st-valide { background: #1E3B33; color: #7FE6AE; }
html[data-ambiance="nuit"] .st-programme { background: #2D2A5E; color: #C3BCFF; }

html[data-ambiance="nuit"] .bande-blanche { background: #24163D; }
html[data-ambiance="nuit"] .bande-rose { background: #1F1236; }
html[data-ambiance="nuit"] .bande-prune { background: #170C2A; color: #F4EEFB; }
html[data-ambiance="nuit"] .bande-prune h2, html[data-ambiance="nuit"] .bande-prune h3 { color: #FFFFFF; }
html[data-ambiance="nuit"] .questions h3, html[data-ambiance="nuit"] .domaines b, html[data-ambiance="nuit"] .plusieurs b { color: #E2CCFF; }
html[data-ambiance="nuit"] .groupe h3 { color: #CBB8E8; }
html[data-ambiance="nuit"] .ico { background: #33204F; color: #E2CCFF; }
html[data-ambiance="nuit"] .ico-petit { background: #2A1946; }

html[data-ambiance="nuit"] .etapes p { color: #CBB8E8; }
html[data-ambiance="nuit"] .etapes li { border-top-color: #3D2A63 !important; }
html[data-ambiance="nuit"] .parcours { border-top-color: #3D2A63; }
html[data-ambiance="nuit"] .statuts li span { border-color: #5A4483; color: #F4EEFB; }
html[data-ambiance="nuit"] .statuts li:not(:last-child)::after { background: #5A4483; }
html[data-ambiance="nuit"] .parcours-note { color: #CBB8E8; }
html[data-ambiance="nuit"] .main { color: #FFFFFF; }

html[data-ambiance="nuit"] .note-securite { background: #24163D; border: 1px solid #3D2A63; }
html[data-ambiance="nuit"] .capsule { background: #2A1946; border-color: #3D2A63; }
html[data-ambiance="nuit"] .faq summary::after { background-color: #33204F; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 1.5v11M1.5 7h11' fill='none' stroke='%23E2CCFF' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
html[data-ambiance="nuit"] .formulaire { background: #2A1946; border-color: #3D2A63; }
html[data-ambiance="nuit"] .champ input, html[data-ambiance="nuit"] .champ select, html[data-ambiance="nuit"] .champ textarea { background-color: #1F1236; color: #F4EEFB; border-color: #6B5594; }
html[data-ambiance="nuit"] .champ select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 5l4.5 4.5L11.5 5' fill='none' stroke='%23E2CCFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
html[data-ambiance="nuit"] .champ select option { background: #2A1946; color: #F4EEFB; }
html[data-ambiance="nuit"] .champ textarea::placeholder { color: #8E7BAE; }
html[data-ambiance="nuit"] .champ [aria-invalid="true"] { border-color: #FF7A6B; }
html[data-ambiance="nuit"] .retour.ok { background: #1E3B33; color: #7FE6AE; }
html[data-ambiance="nuit"] .retour.erreur { background: #4A1F2A; color: #FFC9C0; }

html[data-ambiance="nuit"] .pied { background: #170C2A; color: #CBB8E8; }
html[data-ambiance="nuit"] .signature { color: #FFFFFF; }
html[data-ambiance="nuit"] .pied-liens a { color: #F4EEFB; }
html[data-ambiance="nuit"] .pied-liens a:hover { color: #E2CCFF; }

html[data-ambiance="nuit"] .introuvable { background: #1F1236; }
html[data-ambiance="nuit"] .introuvable h1 { color: #FFFFFF; }
html[data-ambiance="nuit"] .pousse circle { fill: #2A1946; stroke: #3D2A63; stroke-width: 1.5; }
html[data-ambiance="nuit"] .pousse path:nth-of-type(1) { stroke: #E2CCFF; }
html[data-ambiance="nuit"] .pousse path:nth-of-type(4) { stroke: #5A4483; }

/* ============================== 2. JOUR ============================== */
html[data-ambiance="jour"] {
  --prune: #4A2A7A;
  --prune-fonce: #3A1F63;
  --encre: #2B1747;
  --texte-2: #4E3C68;
  --rose: #EFE6F8;
  --rose-ligne: #E2D5F0;
  --rose-vif: #CDB8E6;
  --mauve: #6B3FB0;
  --creme: #F7F3FC;
  --blanc: #FFFFFF;
  --ligne: #E7DDF2;
  --bord-champ: #8B76AB;
  --soleil: #ffd400;
  --mq-a: #6B3FB0; --mq-a-doux: #EFE6F8;
  /* l'arc-en-ciel en lettres, un ton plus soutenu pour rester lisible sur fond clair */
  --spectre-texte: linear-gradient(90deg, #E0302F, #E06A00, #B88A00, #17995A, #0B86C9, #3B48E0, #8A35E6);
  --ico-1: #7A2FD6; --ico-2: #0B7FBF; --ico-3: #158A51;
  --halo: .35;
  color-scheme: light;
}
html[data-ambiance="jour"] ::placeholder { color: #7D6B98; }
/* Les boutons principaux en jour : blancs, à liseré arc-en-ciel (choix de Guamra, 20/11), sans halo par-dessus */
html[data-ambiance="jour"] .bouton:not(.secondaire) { background: linear-gradient(#fff, #fff) padding-box, var(--spectre) border-box; border: 2.5px solid transparent; color: #4A2A7A; }
html[data-ambiance="jour"] .bouton:not(.secondaire):hover { background: linear-gradient(#F7F1FD, #F7F1FD) padding-box, var(--spectre) border-box; color: #3A1F63; box-shadow: 0 8px 18px -12px rgba(74, 42, 122, .5); }
html[data-ambiance="jour"] .bouton:not(.secondaire)::before { opacity: 0 !important; }
html[data-ambiance="jour"] .tete { border-bottom: 1px solid #E2D5F0; }
html[data-ambiance="jour"] .accroche { background:
  radial-gradient(circle at 8% 10%, rgba(162, 77, 255, .12) 0 18%, transparent 19%),
  radial-gradient(circle at 92% 30%, rgba(34, 184, 255, .10) 0 14%, transparent 15%),
  #EFE6F8; }
html[data-ambiance="jour"] .cadre { box-shadow: 0 1px 0 rgba(60, 30, 110, .06), 0 32px 64px -32px rgba(60, 30, 110, .35); }
html[data-ambiance="jour"] .g-case { background: #FAF7FD; }
html[data-ambiance="jour"] .g-vide { border-color: #D8CBEA; }
html[data-ambiance="jour"] .st-idee { background: #EFE6F8; color: #4E3C68; }
html[data-ambiance="jour"] .etapes p { color: #E9E0F5; }
html[data-ambiance="jour"] .etapes li { border-top-color: rgba(233, 224, 245, .35) !important; }
html[data-ambiance="jour"] .parcours { border-top-color: rgba(233, 224, 245, .3); }
html[data-ambiance="jour"] .statuts li span { border-color: rgba(233, 224, 245, .55); }
html[data-ambiance="jour"] .statuts li:not(:last-child)::after { background: rgba(233, 224, 245, .55); }
html[data-ambiance="jour"] .faq summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 1.5v11M1.5 7h11' fill='none' stroke='%234A2A7A' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
html[data-ambiance="jour"] .champ select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 5l4.5 4.5L11.5 5' fill='none' stroke='%234A2A7A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
html[data-ambiance="jour"] .champ textarea::placeholder { color: #7D6B98; }
html[data-ambiance="jour"] .signature img { box-shadow: 0 0 0 1px rgba(233, 224, 245, .35); }
html[data-ambiance="jour"] .pousse circle { fill: #FFFFFF; stroke: #E2D5F0; stroke-width: 1.5; }
html[data-ambiance="jour"] .pousse path:nth-of-type(1) { stroke: #4A2A7A; }
html[data-ambiance="jour"] .pousse path:nth-of-type(4) { stroke: #CDB8E6; }

/* ===================== 3. L'ARC-EN-CIEL, DANS LES DEUX ===================== */
/* Le logo : « CULTIVA » en arc-en-ciel, « by Zisty » juste dessous */
html[data-ambiance] .logo span { background: var(--spectre-texte); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-ambiance] .logo span .by { -webkit-text-fill-color: var(--texte-2); color: var(--texte-2); }

/* Les boutons : un halo arc-en-ciel, plus vif au survol */
html[data-ambiance] .bouton { position: relative; isolation: isolate; transition: transform .2s ease, background-color .15s ease; }
html[data-ambiance] .bouton::before { content: ""; position: absolute; inset: -2px; border-radius: inherit; background: var(--spectre); z-index: -1; filter: blur(10px); opacity: var(--halo); transition: opacity .3s; pointer-events: none; }
html[data-ambiance] .bouton:hover { transform: translateY(-1px); }
html[data-ambiance] .bouton:hover::before { opacity: .9; }
html[data-ambiance] .bouton.secondaire::before { opacity: 0; }
html[data-ambiance] .bouton.secondaire:hover::before { opacity: .35; }
html[data-ambiance] .envoi .bouton, html[data-ambiance] .tarifs .bouton { background: var(--spectre); border-color: transparent; color: var(--encre-spectre); font-weight: 800; }
html[data-ambiance] .faux-bouton { background: var(--spectre); color: var(--encre-spectre); }

/* Les traits et les liserés */
html[data-ambiance] .accroche h1::after { content: ""; display: block; width: 140px; height: 6px; margin-top: 18px; border-radius: 6px; background: var(--spectre); }
html[data-ambiance] .titre-section::after { content: ""; display: block; width: 96px; height: 5px; margin-top: 14px; border-radius: 5px; background: var(--spectre); }
html[data-ambiance] .cadre, html[data-ambiance] .capsule, html[data-ambiance] .formulaire { position: relative; overflow: hidden; }
html[data-ambiance] .bande-prune, html[data-ambiance] .pied { position: relative; }
html[data-ambiance] .cadre::before, html[data-ambiance] .capsule::before, html[data-ambiance] .formulaire::before,
html[data-ambiance] .bande-prune::before, html[data-ambiance] .pied::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--spectre); }
html[data-ambiance] .g-jour.auj { border-bottom: 2px solid transparent; border-image: var(--spectre) 1; }
html[data-ambiance] .groupe h3 { border-bottom: 2px solid transparent; border-image: var(--spectre) 1; }
html[data-ambiance] .plusieurs { border-top: 2px solid transparent; border-image: var(--spectre) 1; }

/* Les étiquettes et les chiffres */
html[data-ambiance] .st-publie { background: var(--spectre); color: var(--encre-spectre); }
html[data-ambiance] .statuts li.valide span { background: #ffd400; border-color: #ffd400; color: var(--encre-spectre); }
html[data-ambiance] .statuts li.publie span { background: var(--spectre); border-color: transparent; color: var(--encre-spectre); }
html[data-ambiance] .etapes li::before { color: var(--s7); }
html[data-ambiance] .etapes li:nth-child(4n+2)::before { color: var(--s5); }
html[data-ambiance] .etapes li:nth-child(4n+3)::before { color: var(--s4); }
html[data-ambiance] .etapes li:nth-child(4n+4)::before { color: var(--s2); }
html[data-ambiance] .sur-demande { background: var(--spectre-texte); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-ambiance] .groupes .groupe:nth-child(1) .ico { color: var(--ico-1); background: color-mix(in srgb, var(--s7) 18%, transparent); }
html[data-ambiance] .groupes .groupe:nth-child(2) .ico { color: var(--ico-2); background: color-mix(in srgb, var(--s5) 18%, transparent); }
html[data-ambiance] .groupes .groupe:nth-child(3) .ico { color: var(--ico-3); background: color-mix(in srgb, var(--s4) 18%, transparent); }
html[data-ambiance] .pousse path:nth-of-type(2) { fill: var(--s4); }
html[data-ambiance] .pousse path:nth-of-type(3) { fill: var(--s5); }

/* Le bouton soleil/lune de l'en-tête : il montre l'ambiance où il mène */
.bascule-ambiance {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; padding: 0; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--rose-ligne); background: var(--blanc); color: var(--prune);
  transition: border-color .15s ease, transform .2s ease;
}
.bascule-ambiance:hover { border-color: var(--mauve); transform: rotate(-12deg); }
.bascule-ambiance:focus-visible { outline: 3px solid var(--s5); outline-offset: 2px; }
.bascule-ambiance svg { width: 20px; height: 20px; }
html[data-ambiance="nuit"] .bascule-ambiance { color: var(--s3); }
html[data-ambiance="nuit"] .bascule-ambiance .lune,
html[data-ambiance="jour"] .bascule-ambiance .soleil { display: none; }
/* Sur un petit téléphone, la place manque : « Une démo » s'efface de l'en-tête,
   le même bouton est juste dessous, en haut de la page. */
@media (max-width: 419px) {
  .tete .bouton-tete { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bascule-ambiance, html[data-ambiance] .bouton { transition: none; }
  .bascule-ambiance:hover, html[data-ambiance] .bouton:hover { transform: none; }
}
