/* Clinique vétérinaire des Bréandes : couleurs reprises du logo (ruban bleu, chien orange, chat ocre) */
@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bleu: #0f4fa3;
  --bleu-fonce: #0b3c7d;
  --nuit: #0d2d63;
  --ciel: #e5eefa;
  --orange: #f28c00;
  --orange-texte: #a85a00;
  --ocre: #f7ab00;
  --creme: #fff9f0;
  --sable: #f8ecd9;
  --texte: #27304f;
  --texte-doux: #566080;
  --blanc: #fff;
  --vert: #1f8a5b;
  --rayon: 22px;
  --ombre: 0 18px 40px -22px rgba(13, 45, 99, .45);
  --titre: "Bricolage", "Avenir Next", "Segoe UI", sans-serif;
  --corps: "Figtree", "Avenir Next", "Segoe UI", sans-serif;
  --largeur: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--texte);
  font: 400 1.0625rem/1.65 var(--corps);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--titre); color: var(--nuit); line-height: 1.08; margin: 0; letter-spacing: -.02em; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); font-weight: 750; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 720; }
h3 { font-size: 1.3rem; font-weight: 680; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--bleu); text-underline-offset: 3px; }
a:hover { color: var(--bleu-fonce); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
ul { padding: 0; margin: 0; list-style: none; }

.conteneur { width: min(100% - 40px, var(--largeur)); margin-inline: auto; }
.evitement {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--nuit); color: var(--blanc); border-radius: 10px;
}
.evitement:focus { top: 12px; color: var(--blanc); }
.surtitre {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .92rem; color: var(--orange-texte);
  margin-bottom: 14px;
}
.surtitre svg { width: 18px; height: 18px; fill: var(--orange); }
.chapeau { font-size: 1.2rem; color: var(--texte-doux); max-width: 58ch; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--sable { background: var(--sable); }
.section--ciel { background: var(--ciel); }
.entete-section { max-width: 720px; margin-bottom: 44px; }
.entete-section h2 + p { margin-top: 16px; }

/* Boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px;
  border: 2px solid transparent; border-radius: 999px;
  font-family: var(--corps); font-weight: 750; font-size: 1.04rem; text-decoration: none; cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.bouton svg { width: 20px; height: 20px; flex: none; fill: currentColor; }
.bouton:hover { transform: translateY(-2px) rotate(-1deg); }
.bouton--bleu { background: var(--bleu); color: var(--blanc); box-shadow: 0 10px 22px -10px rgba(15, 79, 163, .8); }
.bouton--bleu:hover { background: var(--bleu-fonce); color: var(--blanc); }
.bouton--contour { border-color: var(--nuit); color: var(--nuit); background: transparent; }
.bouton--contour:hover { background: var(--nuit); color: var(--blanc); }
.bouton--blanc { background: var(--blanc); color: var(--nuit); }
.bouton--blanc:hover { background: var(--sable); color: var(--nuit); }
.bouton--clair { border-color: rgba(255, 255, 255, .7); color: var(--blanc); }
.bouton--clair:hover { background: var(--blanc); color: var(--nuit); }

/* En-tête */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: var(--blanc);
  border-bottom: 1px solid rgba(13, 45, 99, .08);
}
.entete__barre { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 80px; }
.entete__logo { display: block; flex: none; }
.entete__logo img { width: 112px; filter: brightness(1.04); }
.nav__liste { display: flex; align-items: center; gap: 4px; }
.nav__lien {
  display: block; padding: 8px 13px; border-radius: 999px;
  color: var(--nuit); font-weight: 650; font-size: .98rem; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease;
}
.nav__lien:hover { background: var(--ciel); color: var(--nuit); }
.nav__lien[aria-current="page"] { background: var(--nuit); color: var(--blanc); }
.entete__appel { min-height: 44px; padding: 8px 18px; font-size: .98rem; white-space: nowrap; }
.nav__bouton {
  display: none; width: 48px; height: 48px; padding: 12px;
  border: 0; border-radius: 50%; background: var(--ciel); color: var(--nuit); cursor: pointer;
}
.nav__bouton svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

/* Statut ouvert / fermé */
.statut {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 15px; border-radius: 999px;
  background: var(--blanc); color: var(--nuit); font-weight: 650; font-size: .95rem;
  box-shadow: var(--ombre);
}
.statut__point { width: 11px; height: 11px; border-radius: 50%; background: var(--texte-doux); flex: none; }
.statut[data-etat="ouvert"] .statut__point { background: var(--vert); animation: pouls 2s infinite; }
.statut[data-etat="ferme"] .statut__point { background: var(--orange); }
@keyframes pouls {
  0% { box-shadow: 0 0 0 0 rgba(31, 138, 91, .55); }
  70% { box-shadow: 0 0 0 9px rgba(31, 138, 91, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 138, 91, 0); }
}

/* Accueil : bandeau principal */
.hero { position: relative; padding: clamp(40px, 6vw, 72px) 0 0; overflow: hidden; }
.hero__grille {
  display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 5vw, 72px); align-items: center;
  padding-bottom: clamp(90px, 11vw, 160px);
}
.hero__texte .statut { margin-bottom: 26px; }
.hero h1 em { font-style: normal; color: var(--bleu); position: relative; white-space: nowrap; }
.hero h1 em svg {
  position: absolute; left: 0; right: 0; bottom: -.17em; width: 100%; height: .22em;
  fill: none; stroke: var(--orange); stroke-width: 5; stroke-linecap: round;
}
.hero .chapeau { margin: 26px 0 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__visuel { position: relative; max-width: 480px; justify-self: center; width: 100%; }
.hero__photo {
  width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 50% 30%;
  border-radius: 46% 54% 44% 56% / 42% 44% 56% 58%;
  box-shadow: 0 30px 60px -28px rgba(13, 45, 99, .65);
}
.hero__tampon {
  position: absolute; display: grid; place-items: center; text-align: center;
  font-family: var(--titre); font-weight: 720; line-height: 1.08;
  border: 0; cursor: pointer; font-size: .96rem;
}
.tampon--rdv {
  right: -6px; top: 5%; width: 118px; height: 118px; padding: 12px;
  border-radius: 50%; background: var(--orange); color: var(--nuit); transform: rotate(9deg);
}
.tampon--bulle {
  left: -26px; bottom: -2%; padding: 13px 18px; max-width: 200px;
  border-radius: 20px 20px 20px 5px; background: var(--blanc); color: var(--nuit);
  box-shadow: var(--ombre); transform: rotate(-4deg);
  transition: transform .2s ease;
}
.tampon--bulle:hover { transform: rotate(-1deg) scale(1.04); }
.hero__vague { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(60px, 9vw, 130px); }

/* Vagues issues du ruban du logo */
.vague { display: block; width: 100%; height: clamp(44px, 7vw, 96px); margin-bottom: -1px; }
.vague--nuit { color: var(--nuit); }

/* Empreintes qui marchent */
.empreintes { display: flex; gap: 14px; margin-top: 26px; }
.empreintes svg { width: 26px; height: 26px; fill: var(--orange); opacity: 0; }
.empreintes svg:nth-child(even) { transform: translateY(10px) rotate(14deg); }
.empreintes svg:nth-child(odd) { transform: rotate(-8deg); }
.est-visible .empreintes svg { animation: pas .4s ease forwards; }
.est-visible .empreintes svg:nth-child(2) { animation-delay: .25s; }
.est-visible .empreintes svg:nth-child(3) { animation-delay: .5s; }
.est-visible .empreintes svg:nth-child(4) { animation-delay: .75s; }
@keyframes pas { to { opacity: 1; } }

/* Mot d'accueil */
.bienvenue { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.bienvenue__photo { border-radius: var(--rayon); box-shadow: var(--ombre); transform: rotate(-1.4deg); }
.bienvenue h2 { margin-bottom: 18px; }

/* Cartes des soins */
.soins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.soin {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--blanc); border-radius: var(--rayon); color: inherit; text-decoration: none;
  box-shadow: var(--ombre); transition: transform .22s ease;
}
.soin:hover { transform: translateY(-6px) rotate(-.6deg); color: inherit; }
.soin img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.soin__corps { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 22px 24px 24px; }
.soin__corps p { color: var(--texte-doux); font-size: 1rem; }
.soin__lien {
  margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px;
  color: var(--bleu); font-weight: 750;
}
.soin__lien svg { width: 18px; height: 18px; fill: currentColor; transition: transform .2s ease; }
.soin:hover .soin__lien svg { transform: rotate(-14deg) scale(1.2); }

/* Visite guidée */
.visite__haut { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.visite__fleches { display: flex; gap: 10px; flex: none; }
.fleche {
  width: 52px; height: 52px; display: grid; place-items: center;
  border: 2px solid var(--nuit); border-radius: 50%; background: transparent; color: var(--nuit); cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.fleche:hover { background: var(--nuit); color: var(--blanc); }
.fleche svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.visite__piste {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 20px 22px; scroll-padding-inline: 20px; scrollbar-width: thin;
  scrollbar-color: var(--bleu) transparent;
}
.visite__etape {
  position: relative; flex: 0 0 min(78vw, 560px); margin: 0; scroll-snap-align: start;
  border-radius: var(--rayon); overflow: hidden; background: var(--nuit);
}
.visite__etape img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.visite__etape figcaption {
  position: absolute; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 10px;
  padding: 8px 15px 8px 9px; border-radius: 999px;
  background: var(--blanc); color: var(--nuit); font-weight: 720;
}
.visite__numero {
  display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%;
  background: var(--orange); color: var(--nuit); font-size: .84rem; font-weight: 800;
}

/* Équipe */
.equipe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.veto { background: var(--blanc); border-radius: var(--rayon); padding: 28px; box-shadow: var(--ombre); }
.veto__initiales {
  display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 18px;
  border-radius: 45% 55% 52% 48% / 55% 45% 55% 45%;
  font-family: var(--titre); font-size: 1.45rem; font-weight: 750; color: var(--nuit);
}
.veto:nth-child(1) .veto__initiales { background: var(--orange); }
.veto:nth-child(2) .veto__initiales { background: var(--ciel); }
.veto:nth-child(3) .veto__initiales { background: var(--ocre); }
.veto p { margin-top: 8px; color: var(--texte-doux); font-size: 1rem; }
.assistants { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.assistants__titre { font-weight: 720; color: var(--nuit); margin-right: 6px; }
.assistant { padding: 7px 16px; background: var(--blanc); border-radius: 999px; font-weight: 650; color: var(--nuit); }

/* Infos pratiques */
.pratique { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.bloc-info { background: var(--blanc); border-radius: var(--rayon); padding: 28px; box-shadow: var(--ombre); }
.bloc-info__icone {
  display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 16px;
  border-radius: 50%; background: var(--ciel); color: var(--bleu);
}
.bloc-info__icone svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bloc-info h3 { margin-bottom: 10px; }
.bloc-info .gros-lien { font-family: var(--titre); font-size: 1.5rem; font-weight: 720; text-decoration: none; }
.horaires { display: grid; gap: 6px; margin: 0; }
.horaires div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 14px; }
.horaires dt { font-weight: 700; color: var(--nuit); }
.horaires dd { margin: 0; }
.bloc-info .note { margin-top: 12px; font-size: .95rem; color: var(--texte-doux); }
.liens-info { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.liens-info .bouton { min-height: 44px; padding: 8px 18px; font-size: .96rem; }

/* Appel à l'action */
.appel { position: relative; background: var(--nuit); color: #dbe6f7; padding: clamp(50px, 7vw, 84px) 0; overflow: hidden; }
.appel__grille { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px; }
.appel h2 { color: var(--blanc); margin-bottom: 8px; }
.appel__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Pages intérieures */
.page-titre { position: relative; padding: clamp(50px, 7vw, 86px) 0 clamp(70px, 9vw, 120px); background: var(--ciel); overflow: hidden; }
.page-titre .chapeau { margin-top: 20px; }
.page-titre__vague { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(40px, 6vw, 80px); color: var(--creme); }
.fil { font-size: .95rem; margin-bottom: 18px; color: var(--texte-doux); }
.article-grille { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 6vw, 72px); align-items: start; }
.article-grille--large { grid-template-columns: 1fr; max-width: 800px; }
.prose h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); margin: 44px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose .liste-puces li { position: relative; padding-left: 28px; margin-bottom: 11px; }
.prose .liste-puces li::before {
  content: ""; position: absolute; left: 3px; top: .52em; width: 11px; height: 11px;
  border-radius: 50%; background: var(--orange);
}
.article-photo { border-radius: var(--rayon); box-shadow: var(--ombre); }
.article-photo--penche { transform: rotate(1.3deg); }
.article-colonne { display: grid; gap: 22px; position: sticky; top: 104px; }
.encart { padding: 26px; border-radius: var(--rayon); background: var(--sable); }
.encart h2, .encart h3 { margin: 0 0 10px; font-size: 1.3rem; }

/* Étapes numérotées */
.parcours { counter-reset: etape; display: grid; gap: 16px; margin-top: 22px; }
.parcours li {
  counter-increment: etape; position: relative; padding: 20px 22px 20px 72px;
  background: var(--blanc); border-radius: 18px; box-shadow: 0 10px 26px -20px rgba(13, 45, 99, .6);
}
.parcours li::before {
  content: counter(etape); position: absolute; left: 18px; top: 18px;
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--bleu); color: var(--blanc); font-family: var(--titre); font-weight: 750;
}

/* Liste « au retour » cochable */
.retour { margin-top: 18px; display: grid; gap: 10px; }
.retour__ligne {
  display: flex; align-items: flex-start; gap: 14px; padding: 15px 18px;
  background: var(--blanc); border-radius: 16px; cursor: pointer;
  transition: background-color .2s ease;
}
.retour__ligne input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.retour__coche {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px;
  border: 2px solid var(--bleu); border-radius: 50%; color: var(--blanc); transition: background-color .2s ease, transform .2s ease;
}
.retour__coche svg { width: 20px; height: 20px; fill: currentColor; opacity: 0; transform: scale(.4); transition: opacity .2s ease, transform .25s cubic-bezier(.3, 1.8, .6, 1); }
.retour__ligne input:checked + .retour__coche { background: var(--bleu); transform: rotate(-8deg); }
.retour__ligne input:checked + .retour__coche svg { opacity: 1; transform: scale(1); }
.retour__ligne input:focus-visible + .retour__coche { outline: 3px solid var(--orange); outline-offset: 3px; }
.retour__ligne:has(input:checked) { background: var(--ciel); }
.retour__bilan { margin-top: 14px; font-weight: 720; color: var(--nuit); min-height: 1.6em; }

/* Préparer la visite */
.prepa { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.prepa__carte { padding: 24px; border-radius: 20px; background: var(--blanc); transition: transform .2s ease; }
.prepa__carte:hover { transform: translateY(-4px) rotate(-.8deg); }
.prepa__carte svg { width: 46px; height: 46px; margin-bottom: 14px; color: var(--bleu); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.prepa__carte h3 { margin-bottom: 8px; }
.prepa__carte p { font-size: 1rem; color: var(--texte-doux); }

/* Radiographie : onglets */
.radio-onglets { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 16px; }
.radio-onglet {
  min-height: 44px; padding: 8px 18px; border: 2px solid var(--nuit); border-radius: 999px;
  background: transparent; color: var(--nuit); font: 700 1rem var(--corps); cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.radio-onglet[aria-selected="true"] { background: var(--nuit); color: var(--blanc); }
.radio-panneau { padding: 22px 24px; border-radius: 18px; background: var(--blanc); }

/* Contact */
.contact-grille { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; }
.contact-appel { padding: clamp(28px, 4vw, 44px); border-radius: var(--rayon); background: var(--bleu); color: #e5eefa; }
.contact-appel h2 { color: var(--blanc); margin-bottom: 12px; }
.contact-appel__numero { display: block; margin: 20px 0 22px; font-family: var(--titre); font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 750; color: var(--blanc); text-decoration: none; }
.contact-appel__numero:hover { color: var(--blanc); text-decoration: underline; }

/* Mentions */
.mentions h2 { font-size: 1.45rem; margin: 36px 0 10px; }
.mentions h2:first-child { margin-top: 0; }

/* Pied de page */
.pied { position: relative; background: var(--nuit); color: #c9d8ef; padding: 56px 0 28px; font-size: 1rem; }
.pied a { color: var(--blanc); }
.pied__grille { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.pied__titre { font-family: var(--titre); font-weight: 720; font-size: 1.15rem; color: var(--blanc); margin-bottom: 12px; }
.pied__liens { display: grid; gap: 7px; }
.pied__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: .94rem; }
.chien { width: 142px; margin-bottom: 14px; }
.chien__queue { transform-origin: 26px 44px; animation: remue 1s ease-in-out infinite alternate; }
.chien__oreille { transform-origin: 92px 19px; transition: transform .2s ease; }
.chien:hover .chien__oreille { transform: rotate(-16deg); }
@keyframes remue { from { transform: rotate(-12deg); } to { transform: rotate(16deg); } }

/* Apparition au défilement */
.js .apparait { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .apparait.est-visible { opacity: 1; transform: none; }

/* Pluie d'empreintes du petit clin d'œil */
.empreinte-volante { position: fixed; z-index: 90; width: 28px; height: 28px; fill: var(--orange); pointer-events: none; animation: envol 1s ease-out forwards; }
@keyframes envol {
  from { opacity: 1; transform: translate(0, 0) rotate(0) scale(.6); }
  to { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--tourne)) scale(1.1); }
}

@media (max-width: 1040px) {
  .nav__bouton { display: grid; place-items: center; }
  .entete__droite { display: flex; align-items: center; gap: 10px; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; display: none;
    background: var(--creme); border-bottom: 1px solid rgba(13, 45, 99, .12); padding: 12px 20px 22px;
    box-shadow: 0 22px 30px -24px rgba(13, 45, 99, .6);
  }
  .nav.est-ouvert { display: block; }
  .nav__liste { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__lien { padding: 12px 16px; font-size: 1.08rem; }
}
@media (min-width: 1041px) { .entete__droite { display: flex; align-items: center; gap: 10px; } }

@media (max-width: 860px) {
  .hero__grille, .bienvenue, .article-grille, .contact-grille { grid-template-columns: 1fr; }
  .hero__visuel { max-width: 400px; }
  .soins, .equipe, .pratique, .prepa { grid-template-columns: 1fr; }
  .pied__grille { grid-template-columns: 1fr; }
  .article-colonne { position: static; }
  .visite__haut { align-items: flex-start; flex-direction: column; }
  .bienvenue__photo { order: -1; }
}
@media (max-width: 480px) {
  body { font-size: 1rem; }
  .entete__logo img { width: 92px; }
  .entete__barre { min-height: 68px; }
  .entete__appel span { display: none; }
  .entete__appel { width: 48px; min-height: 48px; padding: 0; }
  .hero__actions .bouton, .appel__actions .bouton { width: 100%; }
  .tampon--rdv { width: 96px; height: 96px; font-size: .82rem; right: -2px; top: 2%; }
  .tampon--bulle { left: -4px; }
  .horaires div { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .apparait, .js .apparait > * { opacity: 1 !important; transform: none !important; }
  .empreintes svg { opacity: 1; }
}
@media print {
  .entete, .pied, .appel, .hero__vague, .barre-mobile, .progression, .bandeau, .hero__pattes { display: none; }
  .js .apparait, .js .apparait > * { opacity: 1 !important; transform: none !important; }
}

/* Changement de page en fondu, en gardant l'en-tête en place */
@view-transition { navigation: auto; }
.entete { view-transition-name: entete; }
::view-transition-old(root) { animation: 180ms ease both page-sort; }
::view-transition-new(root) { animation: 320ms ease both page-entre; }
@keyframes page-sort { to { opacity: 0; } }
@keyframes page-entre { from { opacity: 0; transform: translateY(10px); } }

/* Barre de progression de lecture */
.progression {
  position: fixed; left: 0; right: 0; top: 0; z-index: 60; height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--ocre));
  transform: scaleX(0); transform-origin: 0 50%; pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .progression { animation: progression-remplit linear both; animation-timeline: scroll(root); }
  @keyframes progression-remplit { to { transform: scaleX(1); } }
}

/* En-tête qui se resserre au défilement */
.entete__barre { transition: min-height .25s ease; }
.entete__logo img { transition: width .25s ease; }
.entete { transition: box-shadow .25s ease; }
.entete.est-compact { box-shadow: 0 12px 26px -22px rgba(13, 45, 99, .8); }
.entete.est-compact .entete__barre { min-height: 62px; }
.entete.est-compact .entete__logo img { width: 84px; }

/* Entrée du bandeau principal */
.hero__texte > *, .hero__visuel { animation: hero-entre .8s cubic-bezier(.2, .8, .2, 1) both; }
.hero__texte > :nth-child(2) { animation-delay: .08s; }
.hero__texte > :nth-child(3) { animation-delay: .18s; }
.hero__texte > :nth-child(4) { animation-delay: .28s; }
.hero__visuel { animation-name: hero-visuel; animation-delay: .12s; }
@keyframes hero-entre { from { opacity: 0; transform: translateY(26px); } }
@keyframes hero-visuel { from { opacity: 0; transform: scale(.9) rotate(-3deg); } }
.hero h1 em svg path { stroke-dasharray: 240; animation: trait .9s .7s ease-out both; }
@keyframes trait { from { stroke-dashoffset: 240; } to { stroke-dashoffset: 0; } }
.hero__photo { animation: respire 12s ease-in-out infinite alternate; }
@keyframes respire {
  to { border-radius: 54% 46% 56% 44% / 48% 56% 44% 52%; }
}
.tampon--rdv { animation: flotte 5s ease-in-out infinite alternate; }
@keyframes flotte { from { transform: rotate(9deg) translateY(0); } to { transform: rotate(4deg) translateY(-10px); } }
.hero__pattes svg {
  position: absolute; width: 34px; height: 34px; fill: var(--orange); opacity: .16;
  animation: patte-flotte 9s ease-in-out infinite alternate;
}
.hero__pattes svg:nth-child(1) { left: 3%; top: 12%; transform: rotate(-20deg); }
.hero__pattes svg:nth-child(2) { left: 44%; top: 7%; width: 24px; animation-delay: -2s; }
.hero__pattes svg:nth-child(3) { right: 3%; top: 58%; width: 44px; height: 44px; animation-delay: -4s; }
.hero__pattes svg:nth-child(4) { left: 47%; top: 62%; animation-delay: -6s; }
.hero__pattes svg:nth-child(5) { right: 7%; top: 8%; width: 26px; animation-delay: -3s; }
@keyframes patte-flotte { to { translate: 12px -22px; rotate: 16deg; } }
.hero__visuel { translate: 0 var(--decalage, 0); }

/* Bandeau défilant */
.bandeau { overflow: hidden; background: var(--sable); padding: 4px 0 18px; }
.bandeau__piste { display: flex; width: max-content; animation: defile 34s linear infinite; }
.bandeau:hover .bandeau__piste { animation-play-state: paused; }
.bandeau ul { display: flex; flex: none; }
.bandeau li {
  display: flex; align-items: center; gap: 26px; padding-right: 26px;
  font-family: var(--titre); font-size: clamp(1.5rem, 3.4vw, 2.5rem); font-weight: 720; color: var(--nuit); white-space: nowrap;
}
.bandeau li:nth-child(even) { color: var(--bleu); }
.bandeau svg { width: .7em; height: .7em; fill: var(--orange); }
@keyframes defile { to { transform: translateX(-50%); } }
#clinique { padding-top: clamp(40px, 5vw, 64px); }

/* Cartes : profondeur et zoom de la photo */
.soin {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0));
  transition: transform .18s ease-out, box-shadow .25s ease;
}
.soin:hover { --ty: -6px; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty)); box-shadow: 0 28px 50px -24px rgba(13, 45, 99, .55); }
.soin > img { transition: scale .6s cubic-bezier(.2, .8, .2, 1); }
.soin:hover > img { scale: 1.06; }
.js .soins.apparait > *, .js .equipe.apparait > *, .js .prepa.apparait > * { opacity: 0; translate: 0 22px; transition: opacity .55s ease, translate .65s cubic-bezier(.2, .8, .2, 1), transform .18s ease-out, box-shadow .25s ease; }
.js .apparait.est-visible > * { opacity: 1 !important; translate: 0 0 !important; }
.apparait > :nth-child(2) { transition-delay: .1s; }
.apparait > :nth-child(3) { transition-delay: .2s; }
.veto { transition: transform .22s ease, box-shadow .22s ease; }
.veto:hover { transform: translateY(-5px) rotate(-.6deg); }
.veto__initiales { transition: border-radius .5s ease, rotate .4s ease; }
.veto:hover .veto__initiales { border-radius: 55% 45% 45% 55% / 45% 55% 45% 55%; rotate: -8deg; }

/* Visite guidée : agrandissement */
.visite__ouvrir { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; }
.visite__ouvrir img { transition: scale .6s cubic-bezier(.2, .8, .2, 1); }
.visite__ouvrir:hover img { scale: 1.05; }
.visionneuse {
  width: min(94vw, 1200px); max-width: none; max-height: 92vh; padding: 0; border: 0; border-radius: var(--rayon);
  background: var(--nuit); color: var(--blanc); overflow: hidden;
}
.visionneuse::backdrop { background: rgba(8, 20, 48, .82); }
.visionneuse[open] { animation: visionneuse-entre .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes visionneuse-entre { from { opacity: 0; transform: scale(.96); } }
.visionneuse img { width: 100%; max-height: calc(92vh - 72px); object-fit: contain; background: #081430; }
.visionneuse__bas { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; min-height: 72px; }
.visionneuse__legende { font-family: var(--titre); font-weight: 700; font-size: 1.1rem; }
.visionneuse__boutons { display: flex; gap: 8px; }
.visionneuse .fleche { width: 46px; height: 46px; border-color: var(--blanc); color: var(--blanc); }
.visionneuse .fleche:hover { background: var(--blanc); color: var(--nuit); }

/* Horaires : le jour en cours */
.horaires div { padding: 5px 9px; margin-inline: -9px; border-radius: 10px; }
.horaires .aujourdhui { background: var(--ciel); }
.horaires .aujourdhui dt::after {
  content: "Aujourd'hui"; display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px;
  background: var(--bleu); color: var(--blanc); font-size: .74rem; font-weight: 750; vertical-align: 1px;
}

/* Petit chien qui arrive en trottinant */
.js .pied__grille .chien { translate: -160px 0; opacity: 0; transition: translate 1.5s cubic-bezier(.3, 1.2, .5, 1), opacity .3s ease; }
.js .pied.est-visible .chien { translate: 0 0; opacity: 1; }
.bouton svg { transition: rotate .25s ease; }
.bouton:hover svg { rotate: -12deg; }

/* Barre d'actions sur mobile */
.barre-mobile { display: none; }
@media (max-width: 860px) {
  .barre-mobile {
    position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 55;
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px;
    border-radius: 999px; background: var(--blanc); box-shadow: 0 14px 34px -10px rgba(13, 45, 99, .55);
  }
  .barre-mobile a {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
    border-radius: 999px; font-weight: 750; text-decoration: none;
  }
  .barre-mobile svg { width: 20px; height: 20px; }
  .barre-mobile__appel { background: var(--bleu); color: var(--blanc); }
  .barre-mobile__appel:hover { color: var(--blanc); }
  .barre-mobile__appel svg { fill: currentColor; }
  .barre-mobile__route { background: var(--ciel); color: var(--nuit); }
  .barre-mobile__route:hover { color: var(--nuit); }
  .barre-mobile__route svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .pied { padding-bottom: 96px; }
  .entete__appel { display: none; }
  .hero__pattes svg:nth-child(1), .hero__pattes svg:nth-child(2), .hero__pattes svg:nth-child(4) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .pied__grille .chien { translate: none; opacity: 1; }
  .progression { display: none; }
  .bandeau__piste { width: auto; flex-wrap: wrap; }
  .bandeau ul[aria-hidden] { display: none; }
  .bandeau ul { flex-wrap: wrap; justify-content: center; }
  @view-transition { navigation: none; }
}
