/* Senolo, page Partager. Territoire Web de la charte v2.1. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Pacifico";
  src: url("../fonts/pacifico-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bleu: #002FA7;
  --bleu-nuit: #00227A;
  --vert: #28A745;
  --vert-fonce: #1B7A34;
  --menthe: #92DDC0;
  --or: #E8A923;
  --fond: #F7FAFC;
  --surface: #FFFFFF;
  --texte: #2D3748;
  --texte-2: #374151;
  --trait: #E5E7EB;
  --teinte-bleu: #E8EEFB;
  --teinte-menthe: #E6F6EF;
  --signature: linear-gradient(112deg, #002FA7 8%, #1B7A34 96%);
  --ombre-1: 0 2px 8px rgba(0, 0, 0, .06);
  --ombre-2: 0 8px 30px rgba(0, 0, 0, .08);
  --ombre-3: 0 20px 60px rgba(0, 0, 0, .12);
  --marge: clamp(1.25rem, 5vw, 4rem);
  --large: 78rem;
  --doux: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: clamp(16px, calc(16px + (100vw - 1440px) * .0054), 22px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.evitement {
  position: absolute; left: 1rem; top: -5rem; z-index: 100;
  background: #fff; color: var(--bleu); font-weight: 700;
  padding: .9rem 1.4rem; border-radius: 999px; box-shadow: var(--ombre-3);
}
.evitement:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; border-radius: 6px; }
.sur-bleu :focus-visible { outline-color: #fff; }

.senolo {
  font-family: "Pacifico", "Inter", cursive;
  font-weight: 400;
  letter-spacing: 0;
  background: var(--signature);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  padding: 0 .12em .12em .04em;
  margin: 0 -.06em 0 -.04em;
  display: inline-block;
  line-height: 1.25;
  vertical-align: baseline;
}
.sur-bleu .senolo { background: none; color: #fff; -webkit-text-fill-color: #fff; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  min-height: 3.5rem; padding: .6rem 2rem;
  border: 0; border-radius: 999px; cursor: pointer;
  font-weight: 700; font-size: 1.125rem; line-height: 1.2; text-decoration: none; text-align: center;
  transition: transform .25s var(--doux), filter .25s ease, box-shadow .25s ease;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.btn svg { width: 1.4rem; height: 1.4rem; flex: none; }
.btn-primaire {
  color: #fff;
  background: var(--signature);
  box-shadow: var(--ombre-2), var(--ombre-3);
}
.sur-bleu .btn-primaire { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4), var(--ombre-2), var(--ombre-3); }
.btn-primaire:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn-primaire:active { transform: translateY(1px); filter: brightness(.94); }
.btn-second {
  color: var(--bleu); background: #fff;
  box-shadow: inset 0 0 0 1px var(--trait), var(--ombre-1);
}
.btn-second:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--trait), var(--ombre-2); }
.btn-second:active { transform: translateY(1px); }

.lien {
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 3rem; padding: .25rem 0;
  font-weight: 600; color: var(--bleu);
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .28em;
  text-decoration-color: rgba(0, 47, 167, .35);
  transition: text-decoration-color .2s ease;
}
.lien:hover { text-decoration-color: currentColor; }
.lien svg { width: 1.35rem; height: 1.35rem; flex: none; transition: transform .3s var(--doux); }
.lien:hover svg { transform: translateX(4px); }
.sur-bleu .lien { color: #fff; text-decoration-color: rgba(255, 255, 255, .5); }

/* ---------- Titres ---------- */
.surtitre {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--bleu);
}
.sur-bleu .surtitre { color: #fff; }

.titre {
  font-weight: 800; letter-spacing: -.035em; line-height: 1.06;
  font-size: clamp(2rem, 4.2vw + .9rem, 4rem);
  color: var(--bleu);
  text-wrap: balance;
}
.sur-bleu .titre { color: #fff; }
.chapo { font-size: clamp(1.125rem, .5vw + 1rem, 1.3rem); color: var(--texte-2); max-width: 38em; text-wrap: pretty; }
.sur-bleu .chapo { color: #fff; }

.insecable { white-space: nowrap; }
.ligne { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.ligne > span { display: block; }

/* ---------- En-tête ---------- */
.entete {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(.75rem, 2vw, 1.5rem) var(--marge);
}
.marque { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; min-height: 3rem; color: #fff; }
.marque img, .marque-nolo { width: 2.6rem; height: 2.6rem; overflow: visible; }
.marque .senolo { font-size: 1.7rem; line-height: 1.5; }
.entete .lien { font-size: 1rem; }

/* ---------- Ouverture ---------- */
.ouverture {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: grid; align-items: center;
  padding: clamp(4.75rem, 11vh, 7.5rem) var(--marge) clamp(4.5rem, 10vh, 7rem);
  color: #fff;
  background:
    radial-gradient(42% 46% at 72% 40%, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 70%),
    radial-gradient(55% 60% at 104% 108%, rgba(40, 167, 69, .55), rgba(40, 167, 69, 0) 70%),
    radial-gradient(60% 50% at -10% -10%, rgba(0, 20, 90, .55), rgba(0, 20, 90, 0) 70%),
    var(--bleu);
  overflow: hidden;
}
.ouverture-grille {
  width: 100%; max-width: var(--large); margin: 0 auto;
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(1rem, 4vw, 4rem);
}
.ouverture-texte { display: grid; gap: clamp(1rem, 2.2vh, 1.6rem); justify-items: start; }
.ouverture h1 {
  font-weight: 800; letter-spacing: -.04em; line-height: 1;
  font-size: clamp(2.3rem, 5.6vw + .6rem, 5.4rem);
}
.ouverture h1 em { font-style: normal; color: var(--menthe); }
.ouverture .chapo { max-width: 31em; }
.ouverture-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.75rem; margin-top: .4rem; }

.scene-carte { position: relative; width: 100%; max-width: 37rem; justify-self: center; aspect-ratio: 1 / 1; }
.scene-carte svg { width: 100%; height: 100%; overflow: visible; }

/* Au-dessus de l'arrondi de la scène suivante, qui recouvre le bas de l'ouverture : le trait reste visible. */
.defiler {
  position: absolute; z-index: 3; left: 50%; bottom: calc(clamp(1.5rem, 4vw, 3rem) + clamp(.5rem, 1.8vh, 1.2rem)); transform: translateX(-50%);
  display: grid; justify-items: center; gap: .35rem;
  font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #fff;
  text-decoration: none; min-height: 3rem; min-width: 3rem; align-content: end;
}
.defiler i { display: block; width: 2px; height: 1.9rem; border-radius: 2px; background: rgba(255, 255, 255, .35); position: relative; overflow: hidden; }
.defiler i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: translateY(-100%); animation: file 2.2s var(--doux) infinite; }
@keyframes file { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

@media (max-width: 899px), (max-aspect-ratio: 1/1) {
  .ouverture { align-items: start; padding-top: clamp(4.25rem, 9vh, 6rem); }
  .ouverture-grille { grid-template-columns: minmax(0, 1fr); gap: clamp(.25rem, 1.5vh, 1.25rem); }
  .scene-carte { order: -1; width: min(100%, 46vh, 30rem); width: min(100%, 46svh, 30rem); margin-top: -1vh; }
  .ouverture-texte { justify-items: center; text-align: center; }
  .ouverture-actions { justify-content: center; flex-direction: column; gap: .35rem; }
  .ouverture .chapo { max-width: 30em; }
}
@media (max-width: 899px) and (max-height: 700px) {
  .scene-carte { width: min(100%, 38vh); width: min(100%, 38svh); }
  .defiler { display: none; }
  .ouverture { padding-bottom: 2rem; }
}
@media (max-width: 380px) {
  .ouverture h1 { font-size: 2.15rem; }
  .ouverture .chapo { font-size: 1.125rem; line-height: 1.5; }
}

/* ---------- Sections claires ---------- */
.feuille {
  position: relative; z-index: 2;
  background: var(--fond);
  border-radius: clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem) 0 0;
  margin-top: calc(-1 * clamp(1.5rem, 4vw, 3rem));
}
.bloc { padding: clamp(4rem, 11vh, 8rem) var(--marge); }
.dedans { max-width: var(--large); margin: 0 auto; }
.tete { display: grid; gap: 1.1rem; justify-items: start; max-width: 52rem; }
.tete-large { max-width: 60rem; }
.nw { white-space: nowrap; }
.tete-large .titre { text-wrap: balance; }
.titre .phrase { display: block; text-wrap: balance; }
.tete.centre { justify-items: center; text-align: center; margin-inline: auto; }

/* ---------- Scène « de proche en proche » : le village au crépuscule ---------- */
/* Sans script ou en version calme : un tableau posé sous les trois textes.
   Avec le script : le tableau reste à l'écran et le défilement raconte l'histoire. */
.relais {
  --arrondi: clamp(1.5rem, 4vw, 3rem);
  position: relative; z-index: 2; color: #fff;
  background: #00134D;
  border-radius: var(--arrondi) var(--arrondi) 0 0;
  margin-top: calc(-1 * var(--arrondi));
}
.relais-plateau {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  border-radius: var(--arrondi) var(--arrondi) 0 0;
  background:
    radial-gradient(85% 34% at 50% 100%, rgba(40, 167, 69, .5), rgba(40, 167, 69, 0) 72%),
    radial-gradient(60% 40% at 78% 62%, rgba(146, 222, 193, .12), rgba(146, 222, 193, 0) 70%),
    linear-gradient(180deg, #00134D 0%, #001C6C 38%, #002FA7 84%);
}
.relais-textes {
  position: relative; z-index: 1; width: 100%;
  display: grid; justify-items: center; gap: .75rem; text-align: center;
  padding: clamp(1.5rem, 4.5vh, 3.25rem) var(--marge) clamp(1.5rem, 4vh, 3rem);
}
.relais-pas { display: flex; gap: .5rem; align-items: center; }
.relais-pas i { width: .6rem; height: .6rem; border-radius: 50%; background: rgba(255, 255, 255, .35); transition: width .5s var(--doux), background-color .4s ease; }
.relais-pas i.actif { width: 2.4rem; border-radius: 999px; background: var(--menthe); }
.relais-legendes { display: grid; gap: 1.75rem; width: 100%; max-width: 46rem; }
.relais-legendes > div { display: grid; gap: .5rem; justify-items: center; align-content: start; }
.relais-legendes h3 { font-size: clamp(1.6rem, 2.6vw + .9rem, 3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; color: #fff; text-wrap: balance; }
.relais-legendes p { color: #fff; max-width: 30em; text-wrap: pretty; }
.relais-scene { position: relative; order: 2; width: 100%; height: min(78vh, 38rem); height: min(78svh, 38rem); display: none; }
.js .relais-scene { display: block; }
.relais-scene svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.relais-pas { display: none; }

.js:not(.calme) .relais { height: 520vh; }
.js:not(.calme) .relais-plateau { position: sticky; top: 0; height: 100vh; height: 100svh; display: block; }
.js:not(.calme) .relais-scene { position: absolute; inset: 0; height: auto; }
.js:not(.calme) .relais-pas { display: flex; }
.js:not(.calme) .relais-legendes { gap: 0; }
.js:not(.calme) .relais-legendes > div { grid-area: 1 / 1; }
.js:not(.calme) .relais-textes {
  pointer-events: none;
  /* Le voile reste plein sous tout le texte et ne s'efface qu'en dessous : quand la caméra plonge vers
     une maison, le toit clair ou les fenêtres ne passent plus derrière la phrase. */
  padding-bottom: clamp(3rem, 9vh, 6rem);
  background: linear-gradient(180deg, rgba(0, 19, 77, .96) 0%, rgba(0, 19, 77, .93) 68%, rgba(0, 19, 77, .55) 86%, rgba(0, 19, 77, 0) 100%);
}
.js:not(.calme) .relais-legendes p, .js:not(.calme) .relais-legendes h3 { text-shadow: 0 1px 14px rgba(0, 19, 77, .9); }

@media (max-width: 700px) {
  .relais-legendes p { font-size: 1.125rem; line-height: 1.45; }
}

/* ---------- Cartes « ce que votre proche découvre » ----------
   Quatre cartes faites pareil : la scène animée en haut, dans un écrin teinté au même format (16/10),
   puis le titre et le texte. Deux colonnes sur grand écran, une seule sur téléphone. */
.cartes {
  display: grid; gap: clamp(1rem, 2vw, 1.75rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(2.5rem, 6vh, 4rem);
}
.carte {
  position: relative; overflow: hidden;
  background: var(--surface); border-radius: 1.75rem; box-shadow: var(--ombre-1), inset 0 0 0 1px rgba(0, 47, 167, .06);
  display: flex; flex-direction: column;
  padding: clamp(.7rem, 1.1vw, 1rem);
  transition: box-shadow .4s ease, transform .5s var(--doux);
}
.carte:hover { box-shadow: var(--ombre-2), inset 0 0 0 1px rgba(0, 47, 167, .06); transform: translateY(-3px); }
.carte-image {
  order: -1; position: relative; overflow: hidden;
  aspect-ratio: 16 / 10; border-radius: 1.2rem;
  display: grid; place-items: center;
  padding: clamp(.6rem, 1.6vw, 1.4rem);
  background: linear-gradient(160deg, #F6F8FE 0%, var(--teinte-bleu) 100%);
}
.carte.c2 .carte-image, .carte.c3 .carte-image { background: linear-gradient(160deg, #F5FBF8 0%, var(--teinte-menthe) 100%); }
.carte-image svg { width: 100%; height: 100%; overflow: visible; }
.carte-image text { font-family: "Inter", system-ui, sans-serif; }
.carte-texte { padding: clamp(1.1rem, 1.8vw, 1.6rem) clamp(.6rem, 1.4vw, 1.25rem) clamp(.6rem, 1.2vw, 1rem); display: grid; gap: .55rem; align-content: start; }
.carte h3 { font-size: clamp(1.4rem, .9vw + 1.1rem, 1.85rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; color: var(--bleu); text-wrap: balance; }
.carte p { color: var(--texte-2); text-wrap: pretty; }
.appel-temps { font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  .cartes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .carte { padding: .45rem; border-radius: 1.4rem; }
  .carte-image { padding: .3rem; border-radius: 1.05rem; }
}

/* ---------- Histoire ---------- */
.histoire {
  position: relative; isolation: isolate; overflow: hidden;
  color: #fff;
  background:
    radial-gradient(48% 70% at 100% 100%, rgba(40, 167, 69, .5), rgba(40, 167, 69, 0) 70%),
    radial-gradient(40% 50% at 78% 30%, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 70%),
    var(--bleu);
}
.histoire .dedans { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: center; }
.histoire .tete { gap: 1.3rem; }
.histoire-image svg { width: 100%; height: auto; max-width: 34rem; margin-inline: auto; overflow: visible; }
@media (max-width: 860px) {
  .histoire .dedans { grid-template-columns: minmax(0, 1fr); }
  .histoire-image { order: -1; }
  .histoire-image svg { max-width: min(24rem, 100%); }
}

/* ---------- Partager ---------- */
.partage .dedans { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.partage .tete { gap: 1.2rem; }
.atelier {
  position: relative;
  background: var(--surface); border-radius: 1.5rem; box-shadow: var(--ombre-2);
  padding: clamp(1.25rem, 2.6vw, 2.25rem);
  display: grid; gap: 1.4rem;
}
.atelier label { font-weight: 700; color: var(--bleu); display: flex; align-items: center; gap: .6rem; }
.atelier label svg { width: 1.5rem; height: 1.5rem; }
.bulle-message { position: relative; }
.bulle-message textarea {
  display: block; width: 100%; min-height: 9.5rem; resize: none; overflow: hidden; field-sizing: content;
  font: inherit; font-size: 1.125rem; line-height: 1.55; color: var(--texte);
  background: var(--fond); border: 1.5px solid var(--trait); border-radius: 1.25rem 1.25rem 1.25rem .4rem;
  padding: 1.1rem 1.25rem;
  transition: border-color .2s ease, background-color .2s ease;
}
.bulle-message textarea:focus { outline: none; border-color: var(--bleu); background: #fff; }
.bulle-message textarea:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; }
.atelier .btn-primaire { width: 100%; }
.canaux { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; }
.canal {
  width: 100%; min-height: 5.25rem; padding: .7rem .2rem .6rem;
  display: grid; justify-items: center; align-content: center; gap: .45rem;
  background: transparent; border: 0; border-radius: 1rem; cursor: pointer;
  font-size: .875rem; font-weight: 600; color: var(--texte); text-decoration: none; text-align: center; line-height: 1.2;
  transition: background-color .2s ease, transform .3s var(--doux);
}
.canal span.rond {
  width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--teinte-bleu); color: var(--bleu);
  transition: transform .35s var(--doux), background-color .2s ease;
}
.canal svg { width: 1.5rem; height: 1.5rem; }
.canal:hover { background: var(--fond); }
.canal:hover span.rond { transform: translateY(-3px) scale(1.06); }
.mention { font-size: .9375rem; color: var(--texte-2); }
.atelier .mention { text-align: center; }
@media (max-width: 900px) {
  .partage .dedans { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .canaux { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 0; }
  .canaux li { flex: 0 0 33.333%; }
  .atelier { margin-inline: -.25rem; }
}

/* ---------- Offrir ---------- */
.offrir { padding-top: 0; }
.offrir .dedans {
  position: relative; overflow: hidden;
  background: linear-gradient(140deg, #fff 30%, var(--teinte-menthe));
  border-radius: 2rem; box-shadow: var(--ombre-1);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  padding: clamp(1.75rem, 4vw, 4rem);
}
.offrir .tete { gap: 1.2rem; }
.offrir .titre { font-size: clamp(1.9rem, 3vw + .9rem, 3.25rem); }
.offrir-image svg { width: 100%; height: auto; max-width: 26rem; margin-inline: auto; overflow: visible; }
@media (max-width: 800px) {
  .offrir .dedans { grid-template-columns: minmax(0, 1fr); }
  .offrir-image { order: -1; }
  .offrir-image svg { max-width: min(18rem, 86%); }
  .offrir .btn { width: 100%; }
}

/* ---------- Final ---------- */
.final {
  position: relative; isolation: isolate; overflow: hidden;
  color: #fff; text-align: center;
  background:
    radial-gradient(50% 45% at 50% 108%, rgba(40, 167, 69, .6), rgba(40, 167, 69, 0) 70%),
    radial-gradient(46% 40% at 50% 30%, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 70%),
    var(--bleu);
  border-radius: clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem) 0 0;
  padding: clamp(4.5rem, 12vh, 9rem) var(--marge) 0;
}
.final .tete { gap: 1.25rem; }
.final .titre { font-size: clamp(2.2rem, 5vw + .8rem, 4.75rem); }
.final .btn { margin-top: .75rem; }
.final-nolo { position: relative; width: min(14rem, 50vw); margin: clamp(2rem, 6vh, 4rem) auto 0; padding-bottom: clamp(1.75rem, 5vh, 3rem); }
.final-nolo svg { width: 100%; height: auto; overflow: visible; }
.serpentins { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.serpentins svg { width: 100%; height: 100%; }
.merci { font-size: clamp(1.25rem, 1vw + 1rem, 1.6rem); font-weight: 700; }
.merci .senolo { font-size: 1.25em; }

.pied {
  position: relative; z-index: 2;
  background: var(--bleu-nuit); color: #fff;
  padding: 1.5rem var(--marge) calc(1.5rem + env(safe-area-inset-bottom, 0px));
}
.pied .dedans { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem; }
.pied nav { display: flex; flex-wrap: wrap; gap: 0 1.6rem; }
.pied a { display: inline-flex; align-items: center; min-height: 3rem; font-size: 1rem; font-weight: 500; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: .28em; }
.pied a:hover { text-decoration-color: #fff; }
.pied p { font-size: 1rem; }

/* ---------- Bouton flottant ---------- */
.flottant {
  position: fixed; z-index: 30; right: max(1rem, env(safe-area-inset-right, 0px)); bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  min-height: 3.5rem; padding: 0 1.4rem 0 1.15rem;
  display: inline-flex; align-items: center; gap: .6rem;
  background: #fff; color: var(--bleu); font-weight: 700; font-size: 1.0625rem;
  border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--trait), var(--ombre-3);
  opacity: 0; visibility: hidden; transform: translateY(1rem) scale(.96);
  transition: opacity .35s ease, transform .45s var(--doux), visibility 0s linear .35s;
}
.flottant.visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.flottant:hover { transform: translateY(-2px); }
.flottant svg { width: 1.4rem; height: 1.4rem; }

.annonce {
  position: fixed; z-index: 40; left: 50%; bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 1rem); opacity: 0; pointer-events: none;
  display: inline-flex; align-items: center; gap: .6rem; max-width: calc(100vw - 2rem);
  background: var(--texte); color: #fff; font-weight: 600; font-size: 1rem;
  padding: .85rem 1.4rem; border-radius: 999px; box-shadow: var(--ombre-3);
  transition: opacity .3s ease, transform .45s var(--doux);
}
.annonce.visible { opacity: 1; transform: translate(-50%, 0); }
.annonce svg { width: 1.25rem; height: 1.25rem; color: var(--menthe); flex: none; }

.envol { position: fixed; z-index: 50; left: 0; top: 0; width: 3rem; height: 3rem; pointer-events: none; opacity: 0; }

/* ---------- États d'animation ---------- */
.js .a-voir { opacity: 0; }
.js.calme .a-voir { opacity: 1; }

@keyframes flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Version calme ---------- */
.calme .defiler i::after { animation: none; transform: none; }

/* Animations réduites : on garde les apparitions et les scènes, on retire le défilement glissé et les boucles CSS. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .defiler i::after { animation: none; transform: none; }
}

@media (min-width: 900px) and (max-height: 620px) {
  .ouverture h1 { font-size: clamp(2.3rem, 9vh, 4rem); }
  .scene-carte { max-width: 70vh; }
}

/* Petits téléphones : le bouton d'abord, le texte ensuite */
@media (max-width: 899px) and (max-height: 620px) {
  .ouverture-actions { order: 3; margin-top: 0; }
  .ouverture .chapo { order: 4; }
  .ouverture-texte { gap: .7rem; }
}
@media (max-width: 480px) {
  .flottant { width: 3.5rem; padding: 0; justify-content: center; font-size: 0; gap: 0; }
  .atelier .btn-primaire { padding-inline: 1rem; }
}

/* Une scène qui ne peut pas se dessiner (script absent) laisse la place à son texte, jamais à un vide. */
.sans-scene .relais-scene { display: none; }
