/* SilvaEnergie: additions to souffle.css (the mockup sheet, copied as is).
   Fonts served by the site, the mobile menu kicks in earlier for seven entries,
   and the components the mockup did not have. */

@font-face {
  font-family: "Young Serif";
  src: url("/assets/fonts/young-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-var.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Header ---------- */
/* Wider than the mockup's 1180 px: the logo and the seven entries of the menu fit on one line (Loïc, 05/10/2026) */
:root { --wrap: 1280px; }
.marque { flex-shrink: 0; }
.marque-logo { display: block; height: 60px; width: auto; }
@media (max-width: 640px) { .marque-logo { height: 44px; } }
.nav { gap: clamp(14px, 1.5vw, 24px); }
.nav a { white-space: nowrap; }

/* It stays at the top, smaller and on a cream veil once the page scrolls (souffle.js sets .compacte). The veil is a
   pseudo-element: a backdrop-filter on the header itself would hold the fixed mobile menu inside it. */
.site-header { position: fixed; transition: padding .35s var(--ease); }
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(251, 246, 241, .92);
  box-shadow: 0 10px 30px -18px rgba(62, 35, 56, .35);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .35s var(--ease);
}
.site-header.compacte { padding-block: 10px; }
.site-header.compacte::before { opacity: 1; }
.marque-logo { transition: height .35s var(--ease); }
.site-header.compacte .marque-logo { height: 44px; }
@media (max-width: 640px) { .site-header.compacte .marque-logo { height: 36px; } }
/* Anchors and focused elements stop below it */
html { scroll-padding-top: 96px; }

/* The mockup's mobile menu, up to 1260 px: the logo and the seven entries only fit on one line from about
   1240 px. In em, so that a visitor with a larger text size gets the button rather than a menu that overflows. */
@media (max-width: 78.75em) {
  .menu-btn {
    display: inline-flex; background: var(--lait); color: var(--prune);
    border: 1.5px solid var(--prune); border-radius: 999px; padding: .6em 1.1em;
    font: 600 .95rem/1 var(--sans); cursor: pointer;
  }
  .nav {
    position: fixed; inset: 0 0 auto 0; top: 0;
    flex-direction: column; align-items: flex-start; gap: 18px;
    background: var(--lait); padding: 96px var(--gutter) 36px;
    border-radius: 0 0 32px 32px;
    box-shadow: 0 30px 60px -30px rgba(62, 35, 56, .35);
    transform: translateY(-110%);
    /* Hidden once slid away: its links then take no keyboard focus */
    visibility: hidden;
    transition: transform .5s var(--ease), visibility 0s .5s;
  }
  .nav a:not(.btn) { font: 400 1.6rem/1.2 var(--serif); }
  .nav.ouvert { transform: none; visibility: visible; transition-delay: 0s; }
  .menu-btn { position: relative; z-index: 60; }
}

/* ---------- Inner pages ---------- */
.page-hero { padding: 150px 0 clamp(48px, 7vw, 96px); }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { max-width: 40rem; }
/* A pale photo behind the title, under a cream veil that keeps the text side quiet (variant C, Loïc 05/10/2026) */
.page-hero-photo { position: relative; isolation: isolate; overflow: hidden; }
.page-hero-fond { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  /* The --poudre background, more or less opaque; denser at the top too, so that no photo blurs the menu */
  background:
    linear-gradient(180deg, rgb(244 230 224 / .85) 0, rgb(244 230 224 / 0) 150px),
    linear-gradient(90deg, rgb(244 230 224 / .94) 0%, rgb(244 230 224 / .8) 45%, rgb(244 230 224 / .3) 100%);
}
@media (max-width: 640px) { .page-hero-photo::before { background: rgb(244 230 224 / .8); } }

/* ---------- Footer ---------- */
.pied-texte { margin-top: 1.4rem; max-width: 26rem; }
.liens-legaux { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Sections reached by the skip link or an anchor get the focus, without a frame around them */
[tabindex="-1"]:focus { outline: none; }

@media (max-width: 560px) {
  .page-hero { padding-top: 120px; }
  /* The mockup's 6% made the page scroll sideways from 390 px on */
  .soin-visuel::before { inset: -6% -4%; }
}

/* ---------- News ---------- */
.actu-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; font-size: .9rem; color: var(--prune-2); margin: 0; }
.page-hero .actu-meta { margin-bottom: 1rem; }
.actu-type { background: var(--lait); border-radius: 999px; padding: .2em .75em; color: var(--prune); }
.bloc-lait .actu-type { background: var(--poudre); }
.actu h2, .actu h3 { margin: 0; font-size: clamp(1.35rem, 2vw, 1.6rem); }
.actu-sans-image {
  background:
    radial-gradient(70% 60% at 30% 30%, rgba(251, 246, 241, .9), transparent 60%),
    linear-gradient(160deg, var(--rose-pale), var(--miel));
}
.vide { font-size: 1.15rem; color: var(--prune-2); }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.6rem; margin-top: clamp(40px, 5vw, 64px); color: var(--prune-2); }
.evenement { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.4rem; margin: 1.8rem 0 0; padding: 1.2rem 1.4rem; background: var(--lait); border-radius: 24px; max-width: 40rem; }
.evenement dt { color: var(--prune-2); }
.evenement dd { margin: 0; }
.couverture img { width: 100%; max-height: 640px; object-fit: cover; border-radius: 40px; }
.couverture + .bloc { padding-top: clamp(40px, 5vw, 72px); }
.prose { max-width: 42rem; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .5rem; }
.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 24px); margin-top: clamp(40px, 5vw, 64px); }
.galerie figure { margin: 0; }
.galerie img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 28px; }
.galerie figcaption { font-size: .9rem; color: var(--prune-2); margin-top: .4rem; }
.soins-cites { margin-top: clamp(40px, 5vw, 64px); }
.soins-cites h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.soins-cites ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.partage { margin-top: clamp(40px, 5vw, 64px); padding-top: 2rem; border-top: 1.5px solid rgba(62, 35, 56, .18); }
.partage-titre { font: 600 1.1rem/1.2 var(--sans); margin-bottom: 1rem; }
@media (max-width: 960px) {
  .galerie { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .evenement { grid-template-columns: 1fr; gap: 0; }
  .evenement dd { margin-bottom: .6rem; }
}

/* ---------- Treatments ---------- */
.ancres { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.ancres a { background: var(--lait); border-radius: 999px; padding: .45em 1em; text-decoration: none; font-size: 1rem; }
.ancres a:hover { background: var(--poudre-2); }
.famille + .famille { margin-top: clamp(64px, 8vw, 110px); }
.carte-rose { background: #EFE3E8; }
.carte-texte { margin: 0; font-size: 1rem; color: var(--prune-2); }
.carte-douce ul + .carte-texte { margin-top: 1rem; }
.avis-nu { border: 0; padding: 0; }
.creneaux h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.barre-resa-sans-resa .btn, .barre-resa-sans-resa .btn-ligne { flex: 1; }

/* ---------- Home ---------- */
.galet { isolation: isolate; }
.galet-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transform: scale(1.12); pointer-events: none;
  opacity: 0; transition: opacity 1.2s var(--ease);
}
.galet-video.lecture { opacity: 1; }
.portrait-photo {
  width: 100%; max-width: 440px; justify-self: center; aspect-ratio: 4 / 5;
  border-radius: var(--pebble-2); overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(62, 35, 56, .45);
}
.portrait-photo img { width: 100%; height: 100%; object-fit: cover; }
.presentation .wrap.sans-image { grid-template-columns: minmax(0, 1fr); max-width: 46rem; }
.note-titre { font-family: var(--sans); font-size: 1.15rem; margin: 0; }
/* The note, the stars and the count all lead to her reviews on Google: the link covers the whole block */
.note { position: relative; }
.note-lien { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.note-lien::after { content: ""; position: absolute; inset: 0; }
.note-lien:hover, .note-lien:focus-visible { text-decoration-thickness: 2px; }

/* ---------- Editorial pages ---------- */
.presentation-page { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(36px, 7vw, 110px); align-items: start; }
.prose > :first-child { margin-top: 0; }
@media (max-width: 960px) {
  .presentation-page { grid-template-columns: 1fr; }
  .presentation-page .portrait-photo { grid-row: 1; max-width: 420px; }
}

/* ---------- Contact and quote forms ---------- */
.formulaire-site { max-width: 640px; margin-top: 2rem; }
.formulaire-site .champ { margin: 0 0 1.3rem; }
.formulaire-site label, .formulaire-site legend { display: block; margin-bottom: .45rem; padding: 0; color: var(--prune); font: 600 1rem/1.4 var(--sans); }
.formulaire-site .requis { color: var(--prune-2); font-size: .9rem; font-weight: 400; }
.formulaire-site input[type="text"], .formulaire-site input[type="email"], .formulaire-site input[type="tel"], .formulaire-site textarea {
  width: 100%; min-height: 52px; padding: .8rem 1rem;
  border: 1.5px solid rgba(62, 35, 56, .25); border-radius: 16px;
  background: #FFFFFF; color: var(--prune); font: 400 1.05rem/1.5 var(--sans);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.formulaire-site textarea { min-height: 160px; resize: vertical; }
.formulaire-site input:focus-visible, .formulaire-site textarea:focus-visible { outline: none; border-color: var(--rose-deep); box-shadow: 0 0 0 4px rgba(154, 75, 85, .18); }
.formulaire-site .aide { margin: .4rem 0 0; color: var(--prune-2); font-size: .92rem; }
/* Error red of the back office (#8C2F39 on #F6DCDC), readable on the cream card */
.formulaire-site .erreur { margin: .45rem 0 0; color: #8C2F39; font-size: .95rem; font-weight: 600; }
.formulaire-site .champ-erreur input, .formulaire-site .champ-erreur textarea { border-color: #8C2F39; }
.formulaire-site fieldset { margin: 0 0 1.3rem; padding: 0; border: 0; }
.formulaire-site .choix-radio { display: flex; align-items: center; gap: .7rem; min-height: 48px; }
.formulaire-site .choix-radio input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--rose-deep); }
.formulaire-site .choix-radio label { margin: 0; font-weight: 400; }
.formulaire-colonnes { display: grid; gap: 0 1rem; }
@media (min-width: 640px) { .formulaire-colonnes { grid-template-columns: 1fr 1fr; } }
.formulaire-erreurs, .formulaire-alerte { margin: 0 0 1.5rem; padding: 1rem 1.2rem; border-radius: 18px; background: #F6DCDC; color: #8C2F39; }
.formulaire-erreurs p { margin: 0 0 .4rem; font-weight: 700; }
.formulaire-erreurs ul { margin: 0; padding-left: 1.2rem; }
.formulaire-erreurs a { color: inherit; }
.formulaire-alerte { font-weight: 600; }
.formulaire-note { margin: 1rem 0 0; color: var(--prune-2); font-size: .9rem; }
.formulaire-merci { margin-top: 2rem; padding: 1.4rem 1.6rem; border-radius: 24px; background: #E3EADF; color: var(--prune); }
.formulaire-merci-titre { margin: 0 0 .3rem; font: 400 1.4rem/1.3 var(--serif); }
.formulaire-merci p:last-child { margin-bottom: 0; }
/* The trap field: out of sight and out of the keyboard path, robots still fill it */
.champ-piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Preview from the back office ---------- */
.bandeau-apercu {
  position: fixed; inset: auto 12px 12px; z-index: 60;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.2rem;
  padding: 1rem 1.2rem; border-radius: 22px;
  background: var(--prune); color: var(--lait);
  box-shadow: 0 18px 40px -18px rgba(62, 35, 56, .6);
}
.bandeau-apercu p { margin: 0; }
.bandeau-apercu .btn-plein { background: var(--lait); color: var(--prune); }
body:has(.bandeau-apercu) { padding-bottom: 140px; }
/* ---------- Online booking ---------- */
.resa-hero { padding-bottom: clamp(28px, 4vw, 48px); }
.resa-etapes { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: 1.6rem 0 0; padding: 0; list-style: none; counter-reset: etape; color: var(--prune-2); }
.resa-etapes li { counter-increment: etape; display: flex; align-items: center; gap: .5rem; }
.resa-etapes li::before { content: counter(etape); display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; border: 1.5px solid currentColor; font-size: .9rem; }
.resa-etapes [aria-current="step"] { color: var(--prune); font-weight: 700; }
.resa-etapes [aria-current="step"]::before { background: var(--prune); border-color: var(--prune); color: var(--lait); }
.resa-question { margin: 1.2rem 0 0; color: var(--prune-2); }
.resa-question a { color: var(--rose-deep); font-weight: 600; }
.resa { padding-block: clamp(40px, 6vw, 80px); }
.resa-categorie { margin: 0 0 .4rem; font: 400 clamp(1.7rem, 3vw, 2.3rem)/1.15 var(--serif); }
.resa-categorie:not(:first-child) { margin-top: clamp(40px, 6vw, 64px); }
.resa-famille { margin: 1.6rem 0 .5rem; color: var(--prune-2); font: 700 .9rem/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.resa-soins { margin: 0; padding: 0; list-style: none; border-top: 1.5px solid rgba(62, 35, 56, .18); }
.resa-soins li { border-bottom: 1.5px solid rgba(62, 35, 56, .18); }
.resa-soins a { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1rem; min-height: 56px; padding: .9rem 0; text-decoration: none; }
.resa-soins a:hover .resa-soin-nom, .resa-soins a:focus-visible .resa-soin-nom { color: var(--rose-deep); }
.resa-soin-nom { font: 400 1.3rem/1.25 var(--serif); }
.resa-soin-prix { color: var(--prune-2); font-size: .95rem; }
.resa-choisi { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1.2rem; margin-bottom: 1.8rem; padding: 1rem 1.3rem; border-radius: 22px; background: #FFFFFF; }
.resa-choisi p { margin: 0; }
.resa-choisi span { color: var(--prune-2); margin-left: .4rem; }
.resa-titre { margin: 0 0 1rem; font: 400 clamp(1.4rem, 2.4vw, 1.8rem)/1.2 var(--serif); }
.resa-jours { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: .6rem; margin: 0; padding: 0; list-style: none; }
.resa-jour { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; min-height: 84px; padding: .5rem .3rem; border: 1.5px solid var(--prune); border-radius: 18px; background: #FFFFFF; color: var(--prune); text-decoration: none; text-align: center; line-height: 1.15; }
.resa-jour-num { font: 400 1.5rem/1 var(--serif); }
.resa-jour-nom, .resa-jour-mois, .resa-jour-etat { font-size: .82rem; }
a.resa-jour:hover, a.resa-jour:focus-visible { background: var(--poudre); }
.resa-jour[aria-current="date"] { background: var(--prune); color: var(--lait); }
.resa-jour-complet { border-color: rgba(62, 35, 56, .18); background: transparent; color: rgba(62, 35, 56, .45); }
.resa-jours-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin: 1rem 0 2rem; }
.resa-jours-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--rose-deep); font-weight: 600; }
.resa-heures { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .6rem; margin: 0; padding: 0; list-style: none; }
.resa-heure { display: flex; align-items: center; justify-content: center; min-height: 52px; border: 1.5px solid var(--prune); border-radius: 999px; background: #FFFFFF; color: var(--prune); font-weight: 600; text-decoration: none; }
.resa-heure:hover, .resa-heure:focus-visible { background: var(--prune); color: var(--lait); }
.resa-vide { color: var(--prune-2); }
.resa-colonnes { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .resa-colonnes { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.resa-recap { padding: 1.3rem 1.5rem; border-radius: 24px; background: #FFFFFF; }
.resa-recap p { margin: 0 0 .5rem; }
.resa-recap .resa-mention { margin: .9rem 0 0; padding: .7rem .9rem; border-radius: 14px; background: var(--poudre); font-weight: 600; }
.resa-recap .resa-changer { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: 1rem 0 0; }
.resa-changer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--rose-deep); font-weight: 600; }
.resa-formulaire { margin-top: 0; }
.resa-recap-envoyee { max-width: 640px; margin-bottom: 1.5rem; }
.resa-calendrier .resa-jours, .resa-calendrier .resa-heures-bloc { transition: opacity .2s ease; }
.resa-calendrier[aria-busy="true"] .resa-jours, .resa-calendrier[aria-busy="true"] .resa-heures-bloc { opacity: .5; }
@keyframes resa-apparait { from { opacity: 0; transform: translateY(14px); } }
.resa-calendrier .resa-apparait { animation: resa-apparait .45s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { .resa-calendrier .resa-apparait { animation: none; } }
.demande-action > .formulaire-site { margin-top: 0; }
.demande-autre { margin: 1.4rem 0 0; }
.demande-autre a { display: inline-flex; align-items: center; min-height: 44px; color: var(--rose-deep); font-weight: 600; }
.rdv-statut { display: inline-block; margin: 0 0 1rem; padding: .3rem .9rem; border-radius: 999px; background: var(--poudre); color: var(--prune); font-size: .9rem; font-weight: 700; }
.rdv-statut-confirme { background: #E2EFE4; color: #24502F; }
.rdv-statut-refuse, .rdv-statut-expire, .rdv-statut-annule, .rdv-statut-honore, .rdv-statut-absent { background: rgba(62, 35, 56, .08); color: var(--prune-2); }
.rdv-actions > .formulaire-site { margin-top: 0; }
.rdv-annuler { margin: 1.4rem 0 0; color: var(--prune-2); }
.rdv-annuler a { color: var(--rose-deep); font-weight: 600; }

/* Ambient sound: a pill at the bottom left, above the booking bar on a phone (ambiance.js) */
.ambiance {
  position: fixed; z-index: 80;
  left: max(14px, env(safe-area-inset-left)); bottom: calc(14px + env(safe-area-inset-bottom));
  view-transition-name: ambiance;
  transition: bottom .45s var(--ease);
}
@media (max-width: 820px) {
  body:has(.barre-resa:not(.cachee)) .ambiance { bottom: calc(96px + env(safe-area-inset-bottom)); }
}
/* Room under the footer, so that the floating buttons never hide its last links (nor the booking bar, on a phone) */
.pied { padding-bottom: 72px; }
@media (max-width: 820px) { .page-soin .pied { padding-bottom: 150px; } }
.ambiance-bouton {
  display: inline-flex; align-items: center; gap: .55em;
  font: 600 .92rem/1 var(--sans); padding: .8em 1.1em;
  border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(251, 246, 241, .94); color: var(--prune);
  box-shadow: 0 0 0 1.5px rgba(62, 35, 56, .16), 0 14px 34px -16px rgba(62, 35, 56, .45);
  backdrop-filter: blur(10px);
}
.ambiance-bouton[aria-pressed="true"] { background: var(--prune); color: var(--lait); }
/* On a phone, round like the back-to-top button, so as to hide less of the text: the words stay for screen readers */
@media (max-width: 640px) {
  .ambiance-bouton { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .ambiance-texte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.ambiance-bouton:focus-visible { outline: 2px solid var(--rose-deep); outline-offset: 3px; }
.ambiance-barres { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.ambiance-barres i { display: block; width: 3px; height: 4px; border-radius: 2px; background: currentColor; }
.ambiance-joue .ambiance-barres i { background: var(--miel); animation: ambiance-barre 1.3s ease-in-out infinite; }
/* At rest, an equaliser rather than four dots: it reads as sound, not as "more" */
.ambiance-barres i:nth-child(1) { height: 6px; }
.ambiance-barres i:nth-child(2) { height: 11px; animation-delay: -.45s; }
.ambiance-barres i:nth-child(3) { height: 14px; animation-delay: -.9s; }
.ambiance-barres i:nth-child(4) { height: 8px; animation-delay: -.2s; }
.ambiance-charge .ambiance-barres i { animation: ambiance-barre .7s ease-in-out infinite; opacity: .6; }
@keyframes ambiance-barre { 0%, 100% { height: 4px; } 50% { height: 14px; } }
/* Left on at the previous visit: three soft calls, never a start on its own */
.ambiance-reprendre { animation: ambiance-appel 2.4s var(--ease) 3; }
@keyframes ambiance-appel { 50% { box-shadow: 0 0 0 8px rgba(230, 196, 156, .35), 0 14px 34px -14px rgba(62, 35, 56, .6); } }
.ambiance-erreur {
  position: absolute; left: 0; bottom: calc(100% + 8px);
  width: max-content; max-width: min(80vw, 22rem); margin: 0; padding: .6em .9em;
  border-radius: 12px; background: var(--lait); color: var(--rose-deep); font-size: .9rem;
  box-shadow: 0 14px 34px -16px rgba(62, 35, 56, .45);
}
html.ambiance-chargement, html.ambiance-chargement * { cursor: progress; }
/* A page on its way: a thin bar under the header, only if it takes a moment */
html.ambiance-chargement .site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--rose), var(--rose-deep)) no-repeat;
  background-size: 35% 100%;
  animation: ambiance-progression 1.1s .2s linear infinite backwards;
}
@keyframes ambiance-progression { from { background-position: -60% 0; } to { background-position: 160% 0; } }
/* The back office's preview of an article uses the public page: its banner keeps the bottom of the screen */
body:has(.bandeau-apercu) :is(.ambiance, .remonter) { display: none; }
@media (prefers-reduced-motion: reduce) {
  .ambiance-barres i, .ambiance-reprendre { animation: none !important; }
  html.ambiance-chargement .site-header::after { animation: none; background-size: 100% 100%; opacity: .5; }
}

/* Back to the top: on the right, once the page is well under way (souffle.js) */
.remonter {
  position: fixed; z-index: 80;
  right: max(14px, env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom));
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(251, 246, 241, .94); color: var(--prune);
  box-shadow: 0 0 0 1.5px rgba(62, 35, 56, .16), 0 14px 34px -16px rgba(62, 35, 56, .45);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s, bottom .45s var(--ease);
}
.remonter.visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.remonter svg { width: 18px; height: 18px; }
.remonter:hover { background: var(--lait); }
.remonter:focus-visible { outline: 2px solid var(--rose-deep); outline-offset: 3px; }
@media (max-width: 820px) {
  body:has(.barre-resa:not(.cachee)) .remonter { bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .site-header, .site-header::before, .marque-logo, .remonter { transition: none; }
}

/* ---------- Colour theme picker: the test site only (theme.js), above the ambient sound pill ---------- */
.theme-choix {
  position: fixed; z-index: 80;
  left: max(14px, env(safe-area-inset-left)); bottom: calc(68px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: .2rem;
  padding: .3rem; border-radius: 999px;
  background: rgba(251, 246, 241, .94); color: var(--prune);
  box-shadow: 0 0 0 1.5px rgba(62, 35, 56, .16), 0 14px 34px -16px rgba(62, 35, 56, .45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: 600 .85rem/1 var(--sans);
  view-transition-name: theme-choix;
  transition: bottom .45s var(--ease);
}
.theme-choix[hidden] { display: none; }
.theme-choix-titre { padding: 0 .4rem 0 .6rem; color: var(--prune-2); font-weight: 500; }
.theme-choix button {
  display: inline-flex; align-items: center; gap: .45em; min-height: 36px; padding: 0 .85em;
  border: 0; border-radius: 999px; background: transparent; color: inherit; font: inherit; cursor: pointer;
}
.theme-choix button:hover { background: rgba(62, 35, 56, .07); }
.theme-choix button[aria-pressed="true"] { background: var(--prune); color: var(--lait); }
.theme-choix button:focus-visible { outline: 2px solid var(--rose-deep); outline-offset: 2px; }
.theme-pastille { flex: none; width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .75); }
.theme-choix [data-theme="souffle"] .theme-pastille { background: conic-gradient(#3E2338 0 50%, #C77B7F 0 75%, #93A58C 0); }
.theme-choix [data-theme="aurore"] .theme-pastille { background: linear-gradient(to top, #0BC7F3, #A052DE 55%, #F611DF); }
/* No ambient sound chosen: the picker takes its place */
body:not(:has(.ambiance)) .theme-choix { bottom: calc(14px + env(safe-area-inset-bottom)); }
@media (max-width: 820px) {
  body:has(.barre-resa:not(.cachee)) .theme-choix { bottom: calc(150px + env(safe-area-inset-bottom)); }
}
/* On a phone the sound button is a 44 px circle: the picker sits next to it, on the bottom row, off the content */
@media (max-width: 640px) {
  .theme-choix { left: calc(max(14px, env(safe-area-inset-left)) + 52px); bottom: calc(14px + env(safe-area-inset-bottom)); }
  body:not(:has(.ambiance)) .theme-choix { left: max(14px, env(safe-area-inset-left)); }
  body:has(.barre-resa:not(.cachee)) .theme-choix { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .theme-choix-titre { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .theme-choix { transition: none; } }
