/* Polices hébergées sur le site (licence libre), aucun appel à Google Fonts */
@font-face {
  font-family: "Gloock";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/gloock-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Gloock";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/gloock-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
}

/* Identité : palette des cartes de visite (terracotta + rose pâle).
   Le rose pâle ne porte du texte que sur le terracotta, en grande taille. */
:root {
  --terracotta: #A35A47;
  --terracotta-fonce: #7E4333;
  --rose: #F3D4CB;
  --encre: #2B2321;
  --discret: #6B5A54;
  --blanc: #FFFFFF;
  --filet: #E4CFC7;

  --titre: "Gloock", Georgia, "Times New Roman", serif;
  --texte: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;

  --gouttiere: 1rem;
  --max: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--texte);
  font-size: 1.125rem; /* 18 px minimum */
  line-height: 1.6;
  color: var(--encre);
  background: var(--blanc);
}

.avec-appel { padding-bottom: 5.5rem; } /* place pour la barre d'appel mobile */

img { max-width: 100%; height: auto; }

a { color: var(--terracotta-fonce); }

:focus-visible {
  outline: 3px solid var(--terracotta-fonce);
  outline-offset: 3px;
}

.lien-evitement {
  position: absolute;
  left: var(--gouttiere);
  top: -4rem;
  padding: .75rem 1rem;
  background: var(--encre);
  color: var(--blanc);
  z-index: 10;
}
.lien-evitement:focus { top: .5rem; }

.contenu {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

h1, h2, h3 {
  font-family: var(--titre);
  font-weight: 400;
  line-height: 1.1;
  text-wrap: balance;
  margin: 0;
}

h1 { font-size: clamp(2.5rem, 7.5vw, 4.75rem); }
h2 { font-size: clamp(2rem, 5vw, 3.25rem); }
h3 { font-size: 1.5rem; }

p { margin: 0; }
p + p { margin-top: 1rem; }

.etiquette {
  font-family: var(--texte);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Boutons */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: .5rem 1.75rem;
  border: 2px solid var(--terracotta);
  border-radius: 999px;
  background: var(--terracotta);
  color: var(--blanc); /* 5,1:1 sur terracotta */
  font: 700 1.125rem/1.2 var(--texte);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.bouton:hover { background: var(--terracotta-fonce); border-color: var(--terracotta-fonce); }

.bouton--contour {
  background: transparent;
  color: var(--encre);
  border-color: var(--encre);
}
.bouton--contour:hover { background: var(--encre); border-color: var(--encre); color: var(--blanc); }

/* En-tête */
.entete .contenu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}
.marque {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--encre);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
}
.marque img { width: 3rem; height: 3rem; display: block; }
.entete .bouton { display: none; }

/* Accueil de la page */
.intro { padding-block: 2rem 4rem; }
.intro .contenu { display: grid; gap: 3rem; align-items: center; }
.intro h1 { margin-block: 1rem 1.5rem; }
.intro .accroche { font-size: 1.375rem; max-width: 30rem; }
.intro .actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.intro .mention { margin-top: 1.5rem; color: var(--discret); }

/* La carte de visite, en grand */
.carte-zone { position: relative; padding: 0 .75rem .75rem 0; }
.carte-zone::before {
  content: "";
  position: absolute;
  inset: .75rem 0 0 .75rem;
  background: var(--rose);
  border-radius: .5rem;
}
.carte {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 85 / 55;
  padding: clamp(1rem, 4vw, 2rem);
  background: var(--terracotta);
  color: var(--blanc);
  border-radius: .5rem;
}
.carte img { width: clamp(2.5rem, 9vw, 3.5rem); height: auto; display: block; }
.carte .nom { font-weight: 700; font-size: clamp(1rem, 3.4vw, 1.25rem); }
.carte .numero {
  display: block;
  margin-top: .25rem;
  font-family: var(--titre);
  font-size: clamp(1.75rem, 7.5vw, 2.75rem); /* grand texte : le rose passe */
  line-height: 1;
  color: var(--rose);
  text-decoration: none;
  white-space: nowrap;
}
.carte .zone { font-size: clamp(.9375rem, 3vw, 1.0625rem); }

/* Sections */
.section { padding-block: 4rem; }
.section--rose { background: var(--rose); }
.section--terracotta { background: var(--terracotta); color: var(--blanc); }

/* Prestations */
.prestations .contenu { display: grid; gap: 2rem; }
.prestations .introduction { max-width: 26rem; }
.prestations .introduction p { margin-top: 1rem; color: var(--discret); }
.liste { list-style: none; margin: 0; padding: 0; }
.liste li { padding-block: 1.25rem; border-top: 1px solid var(--filet); }
.liste li:last-child { border-bottom: 1px solid var(--filet); }
.liste strong { display: block; font-size: 1.25rem; }
.liste span { color: var(--discret); }

/* Déroulé */
.deroule .contenu > h2 { max-width: 40rem; }
.etapes {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}
.etapes li { display: grid; gap: .5rem; }
.etapes .chiffre {
  font-family: var(--titre);
  font-size: 4rem;
  line-height: 1;
  color: var(--terracotta-fonce);
}
.etapes h3 { font-family: var(--texte); font-weight: 700; font-size: 1.25rem; line-height: 1.3; }

/* Pour qui */
.pour-qui .contenu { display: grid; gap: 2.5rem; align-items: center; }
.photo {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  max-width: 24rem;
  width: 100%;
  background: var(--rose);
  border: 2px dashed var(--terracotta);
  border-radius: .5rem;
  color: var(--terracotta-fonce);
  font-weight: 700;
  text-align: center;
  padding: 1rem;
}
.pour-qui h2 { margin-bottom: 1.25rem; }
.pour-qui p { max-width: 32rem; }

/* Zone */
.zone-bandeau h2 { color: var(--rose); font-size: clamp(2.5rem, 9vw, 5.5rem); } /* grand texte */
.zone-bandeau p { margin-top: 1.25rem; max-width: 32rem; font-size: 1.25rem; }

/* Contact */
.contact .contenu { display: grid; gap: 2.5rem; }
.contact h2 { margin-bottom: 1.5rem; }
.contact .numero-grand {
  display: block;
  font-family: var(--titre);
  font-size: clamp(2rem, 8vw, 3.25rem);
  line-height: 1.1;
  color: var(--terracotta-fonce);
  text-decoration: none;
  white-space: nowrap;
}
.contact .mail { display: inline-block; margin-top: 1rem; }
.contact .renvoi { margin-top: 1.5rem; max-width: 26rem; font-size: 1rem; color: var(--discret); }

form { display: grid; gap: 1.25rem; }
label { display: block; font-weight: 700; margin-bottom: .375rem; }
input, textarea {
  width: 100%;
  min-height: 3.5rem;
  padding: .75rem 1rem;
  border: 2px solid var(--encre);
  border-radius: .5rem;
  background: var(--blanc);
  color: var(--encre);
  font: inherit;
}
textarea { min-height: 8rem; resize: vertical; }
.champ-piege { position: absolute; left: -9999px; }
.retour { color: var(--terracotta-fonce); font-weight: 700; min-height: 1.6em; }

/* Pied de page */
.pied { padding-block: 2.5rem; background: var(--encre); color: var(--blanc); }
.pied .contenu { display: grid; gap: 1.5rem; }
.pied a { color: var(--blanc); }
.pied ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; max-width: 32rem; }

/* Liens vers les profils (pied de page) */
.reseaux { display: flex; gap: .75rem; margin-top: 1.25rem; }
.reseau {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  height: 3rem;
  padding-inline: .9rem;
  border: 2px solid currentColor;
  border-radius: 999px;
  color: var(--blanc);
  text-decoration: none;
  transition: background-color .15s, color .15s;
}
.reseau svg { display: block; height: 1.3rem; width: auto; }
.reseau:hover { background: var(--blanc); color: var(--encre); }

/* Barre d'appel mobile */
.appel-fixe {
  position: fixed;
  inset: auto 0 0 0;
  padding: .75rem var(--gouttiere) calc(.75rem + env(safe-area-inset-bottom, 0px));
  background: var(--blanc);
  border-top: 1px solid var(--filet);
  z-index: 5;
}
.appel-fixe .bouton { width: 100%; }

@media (min-width: 40rem) {
  :root { --gouttiere: 1.5rem; }
  .etapes { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 56rem) {
  :root { --gouttiere: 2rem; }
  .avec-appel { padding-bottom: 0; }
  .appel-fixe { display: none; }
  .entete .bouton { display: inline-flex; }
  .intro { padding-block: 3rem 6rem; }
  .intro .contenu { grid-template-columns: 1.1fr .9fr; gap: 4rem; }
  .carte-zone { transform: rotate(-2deg); }
  .section { padding-block: 6rem; }
  .prestations .contenu { grid-template-columns: 1fr 1.4fr; gap: 5rem; }
  .prestations .introduction { position: sticky; top: 2rem; align-self: start; }
  .etapes { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .pour-qui .contenu { grid-template-columns: 24rem 1fr; gap: 5rem; }
  .contact .contenu { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .pied .contenu { grid-template-columns: 1fr auto; align-items: end; }
}

/* ===== Accueil SEO ===== */
.entete .contenu { flex-wrap: wrap; }
.nav { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; width: 100%; order: 3; }
.nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .35rem .9rem;
  border: 2px solid var(--encre);
  border-radius: 999px;
  color: var(--encre);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s, color .15s;
}
.nav a:hover { background: var(--rose); }
.nav a[aria-current="page"] { background: var(--encre); color: var(--blanc); }
.nav a[aria-current="page"]:hover { background: var(--encre); }
.nav a { gap: .5rem; }
.fleche { flex: none; width: 1.1em; height: 1.1em; }

.nav { position: relative; }
.entete:has(.note) .contenu { padding-bottom: 3.25rem; }
.note {
  position: absolute;
  top: calc(100% + 1.35rem);
  z-index: 2;
  padding: .3rem .85rem;
  border-radius: 999px;
  background: var(--rose);
  color: var(--terracotta-fonce);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  transform: rotate(-3deg);
  pointer-events: none;
}
.note--droite { right: .5rem; }
.note--gauche { left: .5rem; }
.note-trait { position: absolute; top: -1.6rem; width: 2.1rem; height: 1.6rem; }
.note--droite .note-trait { right: 1.6rem; }
.note--gauche .note-trait { left: 1.6rem; transform: scaleX(-1); }
.entete .bouton { white-space: nowrap; }
.marque small { display: block; font-weight: 400; color: var(--discret); white-space: nowrap; }

.hero-seo { padding-block: 2rem 4rem; }
.hero-seo .contenu { display: grid; gap: 3rem; align-items: center; }
.hero-seo h1 { margin: 0; font-size: clamp(2.5rem, 7vw, 4.75rem); }
.hero-seo .promesse {
  max-width: 34rem;
  margin: 1.25rem 0 1.25rem;
  font-family: var(--titre);
  font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  line-height: 1.2;
  color: var(--terracotta-fonce);
}
.hero-seo .accroche { font-size: 1.375rem; max-width: 36rem; }
.hero-seo .actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.faits { list-style: none; margin: 2.5rem 0 0; padding: 0; max-width: 36rem; }
.faits li { padding-block: .875rem; border-top: 1px solid var(--filet); }
.faits li:last-child { border-bottom: 1px solid var(--filet); }
.portrait-zone { position: relative; padding: 0 .75rem .75rem 0; max-width: 26rem; width: 100%; }
.portrait-zone::before {
  content: "";
  position: absolute;
  inset: .75rem 0 0 .75rem;
  background: var(--terracotta);
  border-radius: 50%;
}
.portrait {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

.enonce h2 { color: var(--rose); font-size: clamp(2rem, 6vw, 4rem); max-width: 52rem; } /* grand texte */
.enonce p { margin-top: 1.5rem; max-width: 36rem; font-size: 1.25rem; }

.prestations-seo .contenu > h2 { max-width: 40rem; margin-bottom: 2.5rem; }
.defs { margin: 0; }
.defs > div { display: grid; gap: .5rem; padding-block: 1.5rem; border-top: 1px solid var(--filet); }
.defs > div:last-child { border-bottom: 1px solid var(--filet); }
.defs dt { font-family: var(--titre); font-size: 1.75rem; line-height: 1.15; }
.defs dd { margin: 0; max-width: 36rem; }

.resultat-intro { margin-top: .75rem; font-size: 1.25rem; }
.cartes { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; }
.carte-chiffre {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1.5rem;
  border-radius: .5rem;
  background: var(--blanc);
}
.carte-chiffre .etiquette { color: var(--terracotta-fonce); }
.carte-chiffre .valeur {
  font-family: var(--titre);
  font-size: clamp(3rem, 11vw, 4.75rem);
  line-height: 1;
  color: var(--terracotta-fonce);
}
.carte-chiffre .signe { font-family: var(--texte); font-weight: 700; font-size: .7em; }
.client + .client { margin-top: 3.5rem; }
.resultat .source { margin-top: 1.5rem; max-width: 40rem; color: var(--discret); font-size: 1rem; }

.formules .contenu > h2 { max-width: 30rem; margin-bottom: 2rem; }
.deux { display: grid; gap: 0; }
.deux > div { padding-block: 1.5rem 2rem; border-top: 2px solid var(--encre); }
.deux h3 { margin-bottom: .75rem; }
.deux .bouton { margin-top: 1.25rem; }

.freelance .contenu { display: grid; gap: 2rem; }
.arguments { list-style: none; margin: 0; padding: 0; }
.arguments li { padding-block: 1.5rem; border-top: 1px solid var(--filet); }
.arguments li:last-child { border-bottom: 1px solid var(--filet); }
.arguments h3 { margin-bottom: .5rem; font-family: var(--texte); font-weight: 700; font-size: 1.25rem; line-height: 1.3; }
.arguments p { max-width: 36rem; }

.faq .contenu > h2 { margin-bottom: 2rem; }
.faq-liste details { border-top: 1px solid var(--filet); }
.faq-liste details:last-child { border-bottom: 1px solid var(--filet); }
.faq-liste summary {
  position: relative;
  min-height: 3.5rem;
  padding: 1.25rem 3rem 1.25rem 0;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.faq-liste summary::-webkit-details-marker { display: none; }
.faq-liste summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font: 700 1.75rem/1 var(--texte);
  color: var(--terracotta-fonce);
}
.faq-liste details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-liste details p { padding-bottom: 1.5rem; max-width: 40rem; }

@media (min-width: 56rem) {
  .entete .contenu { flex-wrap: nowrap; gap: 2rem; }
  .nav { display: flex; width: auto; order: 0; margin-left: auto; }
  .nav a { min-height: 3rem; padding-inline: 1.25rem; white-space: nowrap; }
  .hero-seo { padding-block: 3rem 6rem; }
  .hero-seo .contenu { grid-template-columns: 1.5fr .75fr; gap: 4rem; }
  .defs > div { grid-template-columns: 1fr 1.4fr; gap: 3rem; }
  .cartes { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .carte-chiffre { padding: 2rem; }
  .deux { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .freelance .contenu { grid-template-columns: 1fr 1.3fr; gap: 5rem; }
  .freelance h2 { position: sticky; top: 2rem; align-self: start; }
}

/* ===== Pages légales ===== */
.texte-legal { padding-block: 3rem 5rem; }
.texte-legal .contenu { max-width: 48rem; }
.texte-legal h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); margin-bottom: 1rem; }
.texte-legal h2 { margin-top: 2.5rem; margin-bottom: .75rem; font-size: 1.75rem; }
.texte-legal ul { padding-left: 1.25rem; }
.texte-legal li + li { margin-top: .5rem; }
.texte-legal .maj { color: var(--discret); font-size: 1rem; }

/* ===== Bandeau cookies (créé par assets/js/consent.js) ===== */
.cookies {
  position: fixed;
  left: var(--gouttiere);
  right: var(--gouttiere);
  bottom: calc(var(--gouttiere) + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  max-width: 30rem;
  padding: 1.25rem;
  background: var(--blanc);
  color: var(--encre);
  border: 2px solid var(--encre);
  border-radius: .5rem;
  font-size: 1rem;
  line-height: 1.5;
}
.cookies[hidden] { display: none; }
.cookies h2 { margin: 0 0 .5rem; font-family: var(--texte); font-weight: 700; font-size: 1.125rem; line-height: 1.3; }
.actions-cookies { display: flex; gap: .75rem; margin-top: 1rem; }
.actions-cookies .bouton { flex: 1; min-height: 3rem; padding-inline: 1rem; }

.lien-bouton {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* ===== Animations : uniquement si le système n'a pas demandé de les réduire.
   Transformations et opacité seulement, rien qui déplace la mise en page. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes monte { from { opacity: 0; transform: translateY(1.25rem); } }
  @keyframes monte-titre { from { transform: translateY(1.5rem); } } /* sans fondu : le titre reste le plus gros élément visible */
  @keyframes pose-carte { from { opacity: 0; transform: rotate(-7deg) translateY(2rem); } }

  /* Entrée du haut de page */
  .hero-seo .etiquette, .intro .etiquette { animation: monte .6s both; }
  .hero-seo h1, .intro h1 { animation: monte-titre .7s .08s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-seo .promesse { animation: monte .6s .15s both; }
  .hero-seo .accroche, .intro .accroche { animation: monte .6s .2s both; }
  .hero-seo .actions, .intro .actions { animation: monte .6s .3s both; }
  .hero-seo .faits, .intro .mention { animation: monte .6s .4s both; }
  .portrait-zone { animation: monte .8s .25s both; }
  .carte-zone { animation: pose-carte .9s .3s cubic-bezier(.2, .7, .2, 1) both; }

  @keyframes pousse-droite { 0%, 65%, 100% { transform: translateX(0); } 78% { transform: translateX(5px); } 90% { transform: translateX(0); } }
  @keyframes pousse-gauche { 0%, 65%, 100% { transform: translateX(0); } 78% { transform: translateX(-5px); } 90% { transform: translateX(0); } }
  .nav .fleche { animation: pousse-droite 3.2s ease-in-out 1.5s infinite; }
  .nav .fleche--gauche { animation-name: pousse-gauche; }
  .nav a:hover .fleche { animation: none; transform: translateX(6px); transition: transform .15s; }
  .nav a:hover .fleche--gauche { transform: translateX(-6px); }


  /* L'autocollant tremble un peu pour se faire remarquer */
  @keyframes tremble { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(-.5deg) translateY(-2px); } }
  .note { animation: tremble 3.6s ease-in-out infinite; }

  /* Les boutons rebondissent légèrement */
  .nav a { transition: background-color .15s, color .15s, transform .25s cubic-bezier(.34, 1.56, .64, 1); }
  .nav a:hover { transform: translateY(-2px) rotate(-1.5deg) scale(1.03); }

  /* Transition entre les pages (Chrome, Edge ; ailleurs, simple changement de page) */
  @view-transition { navigation: auto; }
  .entete { view-transition-name: entete; }
  .nav a[aria-current="page"] { view-transition-name: pastille; }
  ::view-transition-group(pastille) { animation-duration: .4s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
  @keyframes sort-vers-gauche { to { opacity: 0; transform: translateX(-3rem); } }
  @keyframes sort-vers-droite { to { opacity: 0; transform: translateX(3rem); } }
  @keyframes entre-depuis-droite { from { opacity: 0; transform: translateX(3rem); } }
  @keyframes entre-depuis-gauche { from { opacity: 0; transform: translateX(-3rem); } }
  :root:active-view-transition-type(vers-droite)::view-transition-old(root) { animation: sort-vers-gauche .3s ease both; }
  :root:active-view-transition-type(vers-droite)::view-transition-new(root) { animation: entre-depuis-droite .3s ease both; }
  :root:active-view-transition-type(vers-gauche)::view-transition-old(root) { animation: sort-vers-droite .3s ease both; }
  :root:active-view-transition-type(vers-gauche)::view-transition-new(root) { animation: entre-depuis-gauche .3s ease both; }

  /* Petits retours au survol */
  .bouton { transition: background-color .15s, border-color .15s, transform .15s; }
  .bouton:hover { transform: translateY(-2px); }
  .bouton:active { transform: translateY(0); }
  .carte-chiffre { transition: transform .2s; }
  .carte-chiffre:hover { transform: translateY(-4px); }
  .faq-liste summary::after { transition: transform .25s; }

  /* Apparition au défilement (navigateurs compatibles, sinon tout reste visible) */
  @supports (animation-timeline: view()) {
    @keyframes apparait { from { opacity: 0; transform: translateY(1rem); } }

    .section .contenu > h2, .section .contenu > p, .section .introduction,
    .resultat-intro, .resultat .source, .formules .contenu > .bouton,
    .defs > div, .liste li, .etapes li, .arguments li, .cartes li, .deux > div,
    .faq-liste details, .pour-qui .contenu > *, .contact .contenu > * {
      animation: apparait linear both;
      animation-timeline: view();
      animation-range: entry 5% entry 45%;
    }
    .cartes li:nth-child(2), .etapes li:nth-child(2) { animation-range: entry 12% entry 52%; }
    .cartes li:nth-child(3), .etapes li:nth-child(3) { animation-range: entry 19% entry 59%; }
    .etapes li:nth-child(4) { animation-range: entry 26% entry 66%; }
  }

  /* Ouverture douce de la FAQ */
  @supports (interpolate-size: allow-keywords) {
    :root { interpolate-size: allow-keywords; }
    .faq-liste details::details-content {
      block-size: 0;
      overflow: clip;
      transition: block-size .3s ease, content-visibility .3s ease allow-discrete;
    }
    .faq-liste details[open]::details-content { block-size: auto; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bouton { transition: none; }
}
