/* SilvaEnergie, theme Aurore: overrides of souffle.css and site.css, only under <html data-theme="aurore">
   (includes/theme.php). Sylvie found Souffle "trop sobre", wanting "la douceur au vivant" (05/10/2026).
   Her logo's gradient rises from the water to the flower: turquoise at the bottom, then blue, violet, magenta.
   It runs through the page as a thread, at full strength on what is thin or small (rings, lines, buttons),
   as faint light on what is large (halos). Warm dawn ground, violet night ink. The shapes of Souffle stay. */

@property --aurore-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root[data-theme="aurore"] {
  /* Souffle's tokens, remapped: most of both sheets follow them */
  --poudre: #FCEDE3;      /* dawn peach, the ground */
  --poudre-2: #F8E1D3;
  --lait: #FFF8F1;        /* pearl */
  --prune: #33204A;       /* violet night, the ink */
  --prune-2: #65508A;
  --rose: #D453C6;        /* orchid */
  --rose-deep: #A3209A;   /* deep orchid: links, focus (5.7:1 on the ground) */
  --rose-pale: #F6D3EF;
  --sauge: #22B5DD;       /* lagoon */
  --sauge-deep: #0B7FA6;
  --miel: #F5A83B;        /* sun */

  /* Her gradient, measured on her logo (07/10/2026), from the bottom up */
  --aurore: linear-gradient(to top, #0BC7F3, #3FA1EF 22%, #6A7EE3 40%, #A052DE 62%, #D42FDF 82%, #F611DF);
  --aurore-biais: linear-gradient(115deg, #22B5DD, #6A7EE3 30%, #A052DE 58%, #E02BD3);
  --aurore-tour: conic-gradient(from var(--aurore-angle), #0BC7F3, #5B8AE9, #A052DE, #F611DF, #F5A83B, #0BC7F3);
  --nuit-fond: #2B1942;
  --ombre: 51 32 74;      /* the ink, for shadows and lines: rgb(var(--ombre) / x) */
}

:root[data-theme="aurore"] ::selection { background: var(--rose-pale); color: var(--prune); }
:root[data-theme="aurore"] body::before { opacity: .05; }

/* ---------- Buttons: the warm half of her gradient ---------- */
:root[data-theme="aurore"] .btn-plein {
  /* White text: 6.1:1 on the violet end, 5.1:1 on the orchid end */
  background: linear-gradient(115deg, #7A3FD0, #B624B4 60%, #C21BB5) 0 0 / 170% 100%;
  border-color: transparent;
  color: #FFFFFF;
  box-shadow: 0 12px 28px -14px rgb(160 32 170 / .65);
  transition: background-position .6s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}
:root[data-theme="aurore"] .btn-plein:hover { background-position: 100% 0; box-shadow: 0 16px 34px -14px rgb(160 32 170 / .8); }
:root[data-theme="aurore"] .btn-ligne:hover { background: var(--lait); border-color: var(--rose-deep); color: var(--rose-deep); }

/* ---------- Header and menu ---------- */
:root[data-theme="aurore"] .site-header::before {
  background: rgb(255 248 241 / .9);
  box-shadow: 0 10px 30px -18px rgb(var(--ombre) / .35);
}
:root[data-theme="aurore"] .nav a:not(.btn)::after { background: linear-gradient(90deg, #A052DE, #F611DF); height: 2px; }
:root[data-theme="aurore"] .nav { box-shadow: 0 30px 60px -30px rgb(var(--ombre) / .35); }
:root[data-theme="aurore"].ambiance-chargement .site-header::after { background: var(--aurore-biais) no-repeat; background-size: 35% 100%; }

/* ---------- Home: the breathing pebble at dawn (the one bold moment) ---------- */
:root[data-theme="aurore"] .hero {
  isolation: isolate;
  background:
    radial-gradient(40% 36% at 50% 36%, rgb(255 248 241 / .95), transparent 72%),
    radial-gradient(55% 40% at 55% 104%, rgb(245 168 59 / .26), transparent 70%),
    var(--poudre);
}
/* Coloured light drifting very slowly behind the pebble */
:root[data-theme="aurore"] .hero::before {
  content: "";
  position: absolute; inset: -15%; z-index: -1;
  background:
    radial-gradient(30% 26% at 78% 22%, rgb(246 17 223 / .2), transparent 70%),
    radial-gradient(32% 30% at 18% 70%, rgb(11 199 243 / .22), transparent 70%),
    radial-gradient(26% 24% at 66% 64%, rgb(160 82 222 / .16), transparent 70%);
  animation: aurore-derive 32s ease-in-out infinite alternate;
}
@keyframes aurore-derive {
  from { transform: translate3d(-3%, 2%, 0) rotate(-4deg); }
  to   { transform: translate3d(3%, -2%, 0) rotate(5deg); }
}
/* The two rings in her gradient, turning while they breathe */
:root[data-theme="aurore"] .souffle::before,
:root[data-theme="aurore"] .souffle::after {
  border: 0;
  padding: 2px;
  background: var(--aurore-tour);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: halo 10s var(--ease) infinite, aurore-tourne 28s linear infinite;
}
:root[data-theme="aurore"] .souffle::after { padding: 1.5px; opacity: .7; animation-delay: .35s, -14s; }
@keyframes aurore-tourne { to { --aurore-angle: 360deg; } }
/* The pause button stills everything that moves, the drifting light included: the shorthands above reset it */
:root[data-theme="aurore"] .hero.pause .souffle::before,
:root[data-theme="aurore"] .hero.pause .souffle::after,
:root[data-theme="aurore"] .hero.pause::before { animation-play-state: paused; }
:root[data-theme="aurore"] .galet {
  box-shadow:
    0 46px 90px -40px rgb(160 82 222 / .55),
    0 -18px 70px -40px rgb(11 199 243 / .45),
    inset 0 0 0 1px rgb(255 255 255 / .4);
}
:root[data-theme="aurore"] .galet::after {
  background:
    radial-gradient(34% 22% at 50% 50%, rgb(43 25 66 / .36), transparent 100%),
    radial-gradient(70% 60% at 50% 55%, rgb(43 25 66 / .08), rgb(43 25 66 / .38));
}
:root[data-theme="aurore"] .mots { text-shadow: 0 1px 2px rgb(43 25 66 / .55), 0 2px 26px rgb(43 25 66 / .7); }
:root[data-theme="aurore"] .pause-btn { border-color: rgb(var(--ombre) / .25); }

/* ---------- Waves from her logo between the coloured sections and the ground ---------- */
:root[data-theme="aurore"] :is(.bloc-lait, .bloc-prune, .pied)::before,
:root[data-theme="aurore"] :is(.bloc-lait, .bloc-prune)::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 100%;
  height: clamp(22px, 3.4vw, 46px);
  background: var(--lait);
  pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 48V30C180 6 360 2 560 18S940 48 1140 36 1360 14 1440 20V48Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 48V30C180 6 360 2 560 18S940 48 1140 36 1360 14 1440 20V48Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
/* The footer is no section: it needs a frame for its wave */
:root[data-theme="aurore"] .pied { position: relative; }
/* Below the section, the same wave turned over and mirrored */
:root[data-theme="aurore"] :is(.bloc-lait, .bloc-prune)::after { bottom: auto; top: 100%; transform: scale(-1, -1); }
:root[data-theme="aurore"] :is(.bloc-prune, .pied)::before,
:root[data-theme="aurore"] .bloc-prune::after { background: var(--nuit-fond); }

/* ---------- Night blocks: violet with a glow of her colours ---------- */
/* The glows fade out before the top and bottom edges, where the waves are of the plain night colour */
:root[data-theme="aurore"] :is(.bloc-prune, .pied) {
  background:
    radial-gradient(50% 55% at 88% 42%, rgb(160 82 222 / .38), transparent 70%),
    radial-gradient(42% 50% at 6% 60%, rgb(11 199 243 / .16), transparent 70%),
    var(--nuit-fond);
}
:root[data-theme="aurore"] :is(.bloc-prune .muted, .bloc-prune .lead, .avis figcaption, .pied .marque span, .pied .bas) { color: #DCCFEA; }
:root[data-theme="aurore"] .panneau-pro {
  background:
    radial-gradient(70% 60% at 100% 0%, rgb(246 17 223 / .28), transparent 70%),
    linear-gradient(160deg, #3A2158, var(--nuit-fond));
}
:root[data-theme="aurore"] .panneau-pro p { color: #E6DAF0; }
:root[data-theme="aurore"] .panneau-yoga {
  background:
    radial-gradient(70% 60% at 0% 0%, rgb(255 255 255 / .6), transparent 70%),
    linear-gradient(160deg, #D8F1F7, #E6E8FB);
}

/* ---------- The massages: each one takes a colour along her gradient, from the flower down to the water ---------- */
:root[data-theme="aurore"] .soins-liste {
  border-top: 0;
  background: linear-gradient(90deg, #F611DF, rgb(var(--ombre) / .1) 70%) top / 100% 1.5px no-repeat;
}
:root[data-theme="aurore"] .soin {
  --teinte: #A052DE; --teinte-texte: #7A3FD0;
  border-bottom: 0;
  background: linear-gradient(90deg, var(--teinte), rgb(var(--ombre) / .1) 70%) bottom / 100% 1.5px no-repeat;
}
:root[data-theme="aurore"] .soin:nth-child(6n+1) { --teinte: #F611DF; --teinte-texte: #A3209A; }
:root[data-theme="aurore"] .soin:nth-child(6n+2) { --teinte: #C43BDF; --teinte-texte: #8E2BB8; }
:root[data-theme="aurore"] .soin:nth-child(6n+3) { --teinte: #A052DE; --teinte-texte: #7A3FD0; }
:root[data-theme="aurore"] .soin:nth-child(6n+4) { --teinte: #846ADF; --teinte-texte: #5F4CC4; }
:root[data-theme="aurore"] .soin:nth-child(6n+5) { --teinte: #5B8AE9; --teinte-texte: #3D5FC9; }
:root[data-theme="aurore"] .soin:nth-child(6n+6) { --teinte: #0BC7F3; --teinte-texte: #0B7FA6; }
/* A wash of its colour comes in from the left under the pointer */
:root[data-theme="aurore"] .soin a {
  background: linear-gradient(90deg, color-mix(in srgb, var(--teinte) 12%, transparent), transparent 75%) left / 0% 100% no-repeat;
  transition: padding .45s var(--ease), background-size .6s var(--ease);
}
:root[data-theme="aurore"] :is(.soin a:hover, .soin a:focus-visible) { background-size: 100% 100%; }
:root[data-theme="aurore"] :is(.soin a:hover, .soin a:focus-visible) .nom { color: var(--teinte-texte); }
:root[data-theme="aurore"] .soin .vignette { box-shadow: 0 0 0 3px var(--lait), 0 0 0 5px var(--teinte); }

/* ---------- Small touches of the gradient ---------- */
:root[data-theme="aurore"] .points li::before { background: var(--aurore); }
:root[data-theme="aurore"] :is(.signature-note, .citation-grande) { border-left: 2px solid; border-image: var(--aurore) 1; }
:root[data-theme="aurore"] :is(.duo img, .portrait-photo, .soin-visuel img) { box-shadow: 0 40px 80px -40px rgb(160 82 222 / .5); }
:root[data-theme="aurore"] .soin-visuel::before { background: var(--aurore); opacity: .38; }

/* ---------- The map: a lagoon sea, the cabinet in orchid, the bus stop in sun (CSS beats the SVG attributes) ---------- */
:root[data-theme="aurore"] .plan rect[width="400"] { fill: var(--lait); }
:root[data-theme="aurore"] .plan path[fill="#E6D8D3"] { fill: #D6F0F7; }
:root[data-theme="aurore"] .plan path[stroke="#C77B7F"] { stroke: #22B5DD; }
:root[data-theme="aurore"] .plan path[stroke="#3E2338"] { stroke: var(--prune); }
:root[data-theme="aurore"] .plan [fill="#3E2338"] { fill: var(--prune); }
:root[data-theme="aurore"] .plan [fill="#6B4A63"] { fill: var(--prune-2); }
:root[data-theme="aurore"] .plan circle[fill="#C77B7F"] { fill: #F611DF; }
:root[data-theme="aurore"] .plan .repere-cabinet { fill: #A3209A; }
:root[data-theme="aurore"] .plan rect[fill="#93A58C"] { fill: var(--miel); }

/* ---------- Inner pages: the same light in the corners ---------- */
:root[data-theme="aurore"] :is(.page-hero, .soin-hero) {
  background:
    radial-gradient(38% 60% at 96% 8%, rgb(246 17 223 / .1), transparent 70%),
    radial-gradient(40% 70% at 0% 100%, rgb(11 199 243 / .1), transparent 70%);
}
:root[data-theme="aurore"] .page-hero-photo::before {
  background:
    linear-gradient(180deg, rgb(252 237 227 / .85) 0, rgb(252 237 227 / 0) 150px),
    linear-gradient(90deg, rgb(252 237 227 / .94) 0%, rgb(252 237 227 / .8) 45%, rgb(252 237 227 / .3) 100%);
}
@media (max-width: 640px) { :root[data-theme="aurore"] .page-hero-photo::before { background: rgb(252 237 227 / .8); } }
:root[data-theme="aurore"] .bienfaits li:nth-child(2) { background: #FBE6F6; }
:root[data-theme="aurore"] .bienfaits li:nth-child(3) { background: #DFF3F8; }
:root[data-theme="aurore"] .bienfaits li:nth-child(4) { background: #FFEFD9; }
:root[data-theme="aurore"] .carte-rose { background: #F9E4F4; }
:root[data-theme="aurore"] :is(.faq details, .partage) { border-color: rgb(var(--ombre) / .14); }
:root[data-theme="aurore"] :is(.resa-soins, .resa-soins li) { border-color: rgb(var(--ombre) / .14); }
:root[data-theme="aurore"] .formulaire-site :is(input, textarea):focus-visible { box-shadow: 0 0 0 4px rgb(163 32 154 / .18); }

/* ---------- Floating buttons ---------- */
:root[data-theme="aurore"] :is(.ambiance-bouton, .remonter, .theme-choix) {
  background: rgb(255 248 241 / .94);
  box-shadow: 0 0 0 1.5px rgb(var(--ombre) / .14), 0 14px 34px -16px rgb(var(--ombre) / .45);
}
:root[data-theme="aurore"] .ambiance-bouton[aria-pressed="true"] { background: linear-gradient(115deg, #7A3FD0, #C21BB5); color: #FFFFFF; }
:root[data-theme="aurore"] .barre-resa { background: rgb(255 248 241 / .92); box-shadow: 0 16px 40px -16px rgb(var(--ombre) / .45); }
/* The back office's preview banner keeps its light button on the night background */
:root[data-theme="aurore"] .bandeau-apercu .btn-plein { background: var(--lait); color: var(--prune); box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  :root[data-theme="aurore"] .hero::before { animation: none; }
  :root[data-theme="aurore"] .soin a { transition: none; }
  :root[data-theme="aurore"].ambiance-chargement .site-header::after { background-size: 100% 100%; }
}
