/* =========================================================================
   Clinique Vétérinaire des Éoliennes – feuille de style principale
   Réalisation : SosPC54
   ========================================================================= */

/* ---------- Polices (hébergées localement, licence SIL Open Font) ---------- */
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400 600; font-style: normal; font-display: swap; src: url("../fonts/inter-var.woff2") format("woff2"); }

/* ---------- Variables ---------- */
:root {
    --bleu: #2d5195;
    --bleu-fonce: #1e3a6e;
    --bleu-clair: #e9eef8;
    --encre: #18181b;
    --texte: #34353a;
    --gris: #6f899a;
    --sable: #f4f3f0;
    --sable-fonce: #e8e5df;
    --blanc: #ffffff;
    --patte: #1f2328;
    --rayon: 18px;
    --ombre: 0 10px 30px rgba(24, 24, 27, .10);
    --ombre-forte: 0 18px 45px rgba(24, 24, 27, .18);
    --police-titre: "Poppins", "Segoe UI", Arial, sans-serif;
    --police-texte: "Inter", "Segoe UI", Arial, sans-serif;
    --largeur: 1180px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--police-texte);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--texte);
    background: var(--sable);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bleu); text-underline-offset: 3px; }
a:hover { color: var(--bleu-fonce); }
h1, h2, h3, h4 { font-family: var(--police-titre); color: var(--encre); line-height: 1.25; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 600; color: var(--bleu); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; border-radius: 4px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.conteneur { width: min(100% - 2.5rem, var(--largeur)); margin-inline: auto; }
.lien-evitement { position: absolute; left: -9999px; top: 0; background: var(--bleu); color: #fff; padding: .6rem 1rem; z-index: 100; }
.lien-evitement:focus { left: 1rem; top: 1rem; }
.chapo { font-size: 1.15rem; color: var(--texte); max-width: 62ch; }

/* ---------- Boutons ---------- */
.boutons { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.bouton {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .8rem 1.4rem; border-radius: 999px; border: 2px solid var(--bleu);
    background: var(--bleu); color: #fff; font-family: var(--police-titre); font-weight: 500; font-size: 1rem;
    text-decoration: none; transition: transform .2s, background .2s, box-shadow .2s;
}
.bouton svg { width: 1.15em; height: 1.15em; fill: currentColor; }
.bouton:hover { background: var(--bleu-fonce); border-color: var(--bleu-fonce); color: #fff; transform: translateY(-2px); box-shadow: var(--ombre); }
.bouton--contour { background: transparent; color: var(--bleu); }
.bouton--contour:hover { background: var(--bleu); color: #fff; }
.bouton--clair { background: #fff; color: var(--bleu); border-color: #fff; }
.bouton--clair:hover { background: var(--bleu-clair); color: var(--bleu-fonce); border-color: var(--bleu-clair); }
.bouton--contour-clair { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .75); }
.bouton--contour-clair:hover { background: #fff; color: var(--bleu); border-color: #fff; }

/* ---------- En-tête : barre blanche fixée en haut, logo à gauche, menu à droite ---------- */
html { scroll-padding-top: 7.5rem; } /* les ancres (#urgences…) ne passent pas sous la barre */
.entete { position: sticky; top: 0; z-index: 50; background: var(--blanc); box-shadow: 0 1px 0 rgba(0, 0, 0, .06); transition: box-shadow .3s; }
.entete.est-defile { box-shadow: 0 6px 24px rgba(24, 24, 27, .10); }
.entete__barre { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2.5rem; width: min(100% - 2.5rem, var(--largeur)); margin-inline: auto; padding: .7rem 0; }
.logo { display: block; flex: none; }
.logo img { height: clamp(66px, 6.4vw, 82px); width: auto; }
.nav__liste { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .3rem 1.45rem; list-style: none; margin: 0; padding: 0; }
.nav__liste a {
    font-family: var(--police-titre); font-size: .95rem; color: var(--texte); text-decoration: none; white-space: nowrap;
    padding: .3rem 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.nav__liste a:hover { color: var(--bleu); border-color: rgba(45, 81, 149, .35); }
.nav__liste a[aria-current="page"] { color: var(--encre); font-weight: 600; border-color: var(--bleu); }
.nav__bouton { display: none; }

@media (max-width: 1100px) {
    html { scroll-padding-top: 6rem; }
    .entete__barre { padding: .5rem 0; }
    .logo img { height: 62px; }
    .nav__bouton {
        display: inline-flex; align-items: center; gap: .6rem; background: none; border: 2px solid var(--bleu);
        color: var(--bleu); border-radius: 999px; padding: .45rem .9rem; font: 500 .95rem var(--police-titre); cursor: pointer;
    }
    .nav__burger, .nav__burger::before, .nav__burger::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s, background .25s; }
    .nav__burger::before, .nav__burger::after { content: ""; position: absolute; left: 0; }
    .nav__burger::before { top: -6px; }
    .nav__burger::after { top: 6px; }
    .nav__bouton[aria-expanded="true"] .nav__burger { background: transparent; }
    .nav__bouton[aria-expanded="true"] .nav__burger::before { transform: translateY(6px) rotate(45deg); }
    .nav__bouton[aria-expanded="true"] .nav__burger::after { transform: translateY(-6px) rotate(-45deg); }
    .nav__liste {
        position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: .5rem 1.25rem 1.2rem;
        background: #fff; box-shadow: var(--ombre); display: none; max-height: calc(100vh - 5rem); overflow-y: auto;
    }
    .nav__liste.est-ouvert { display: flex; }
    .nav__liste a { display: block; padding: .75rem 0; border-bottom: 1px solid var(--sable-fonce); font-size: 1.05rem; }
}

/* ---------- Sections génériques ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--claire { background: var(--blanc); }
.section--bleue { background: var(--bleu); color: #e9eef8; }
.section--bleue h2, .section--bleue h3 { color: #fff; }
.bandeau-titre { padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem; text-align: center; }
.bandeau-titre .chapo { margin-inline: auto; }
.surtitre { display: inline-block; font: 600 .8rem var(--police-titre); letter-spacing: .14em; text-transform: uppercase; color: var(--gris); margin-bottom: .6rem; }
.titre-section { text-align: center; max-width: 720px; margin: 0 auto clamp(1.8rem, 4vw, 2.8rem); }
.titre-section h2 { color: var(--bleu); }
.titre-section p { margin: 0; }
.titre-bleu { color: var(--bleu); }
.deux-colonnes { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.deux-colonnes--inverse > :first-child { order: 2; }
@media (max-width: 860px) { .deux-colonnes { grid-template-columns: 1fr; } .deux-colonnes--inverse > :first-child { order: 0; } }
.photo-arrondie { border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; }
.photo-arrondie img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Accueil ---------- */
.heros { position: relative; width: min(100% - 2.5rem, var(--largeur)); margin: clamp(.75rem, 2.5vw, 1.75rem) auto 0; border-radius: calc(var(--rayon) + 6px); overflow: hidden; box-shadow: var(--ombre-forte); }
.heros img { width: 100%; height: clamp(320px, 58vw, 620px); object-fit: cover; transform: scale(1.04); animation: heros-zoom 14s ease-out forwards; }
@keyframes heros-zoom { to { transform: scale(1); } }
/* Texte de l'accueil : petit panneau translucide en haut à droite, sur le ciel :
   la façade, l'enseigne et le parking restent lumineux et entièrement visibles */
.heros__texte {
    position: absolute; right: clamp(1.25rem, 3vw, 2.5rem); top: clamp(1.25rem, 3vw, 2.5rem);
    width: min(560px, 54%); padding: clamp(1.3rem, 2.4vw, 1.9rem) clamp(1.4rem, 2.8vw, 2.2rem); color: #fff;
    background: rgba(14, 26, 52, .6); -webkit-backdrop-filter: blur(6px) saturate(1.15); backdrop-filter: blur(6px) saturate(1.15);
    border: 1px solid rgba(255, 255, 255, .15); border-radius: var(--rayon); box-shadow: 0 14px 34px rgba(10, 16, 32, .28);
}
.heros__texte h1 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.35rem); max-width: 22ch; margin-bottom: .35em; text-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.heros__texte p { max-width: 60ch; margin: 0; color: #eef2fa; }
.heros__accroche { font-family: var(--police-titre); font-size: clamp(1.05rem, 1.8vw, 1.25rem); }
.heros__texte .boutons { margin-top: 1.2rem; }
/* Tablette et mobile : le texte passe sous la photo, sur fond bleu */
@media (max-width: 900px) {
    .heros__texte {
        position: static; width: auto; padding: 1.5rem clamp(1.25rem, 5vw, 2.5rem) 1.75rem; background: var(--bleu);
        border: 0; border-radius: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
    }
    .heros img { height: clamp(240px, 52vw, 440px); }
}

.raccourcis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: clamp(-3rem, -4vw, -1.5rem); position: relative; z-index: 2; width: min(100% - 5rem, 1060px); margin-inline: auto; }
.raccourci {
    display: flex; flex-direction: column; gap: .35rem; padding: 1.3rem 1.4rem; background: #fff; border-radius: var(--rayon);
    box-shadow: var(--ombre); text-decoration: none; color: var(--texte); transition: transform .25s, box-shadow .25s;
}
.raccourci strong { font-family: var(--police-titre); color: var(--bleu); font-size: 1.08rem; display: flex; align-items: center; gap: .5rem; }
.raccourci strong svg { width: 1.2rem; height: 1.2rem; fill: var(--bleu); transition: transform .3s; }
.raccourci span { font-size: .92rem; color: var(--gris); }
.raccourci:hover { transform: translateY(-5px); box-shadow: var(--ombre-forte); color: var(--texte); }
.raccourci:hover strong svg { transform: rotate(-18deg) scale(1.15); }
@media (max-width: 900px) { .raccourcis { grid-template-columns: repeat(2, 1fr); margin-top: 1.5rem; width: min(100% - 2.5rem, 1060px); } }
@media (max-width: 480px) { .raccourcis { grid-template-columns: 1fr; } }

.citation-titre { font-family: var(--police-titre); font-size: clamp(1.5rem, 3.2vw, 2.15rem); font-weight: 600; color: var(--bleu); line-height: 1.3; }
.accueil-photo { position: relative; width: min(100%, 440px); margin: 0 auto; }
.accueil-photo .photo-arrondie img { aspect-ratio: 4 / 5; }
.accueil-photo__badge {
    position: absolute; left: -1.2rem; bottom: 1.6rem; margin: 0; display: flex; align-items: center; gap: .7rem;
    background: #fff; border-radius: 999px; padding: .55rem 1.1rem .55rem .6rem; box-shadow: var(--ombre);
    font: 600 .92rem/1.3 var(--police-titre); color: var(--encre);
}
.accueil-photo__badge svg { width: 2.4rem; height: 2.4rem; padding: .45rem; border-radius: 50%; background: var(--bleu); fill: #fff; flex: none; animation: patte-salut 2.8s ease-in-out infinite; transform-origin: 50% 80%; }
@media (max-width: 480px) { .accueil-photo__badge { left: .6rem; } }

/* Mur de photos (cadres de la salle d'attente) : légèrement de travers, ils se redressent au survol */
.mur-photos { list-style: none; margin: clamp(2.5rem, 6vw, 4rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(.9rem, 2vw, 1.5rem); }
.mur-photos li { --tourne: -2.5deg; }
.mur-photos li:nth-child(3n+2) { --tourne: 2deg; padding-top: .9rem; }
.mur-photos li:nth-child(3n) { --tourne: -1deg; }
.mur-photos__photo {
    display: block; width: 100%; padding: 0; border: 6px solid #fff; border-radius: 6px; background: #fff; cursor: zoom-in;
    box-shadow: 0 8px 22px rgba(24, 24, 27, .16); transform: rotate(var(--tourne));
    transition: transform .4s cubic-bezier(.2, .8, .3, 1.3), box-shadow .4s;
}
.mur-photos__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.mur-photos__photo:hover, .mur-photos__photo:focus-visible { transform: rotate(0) translateY(-6px) scale(1.05); box-shadow: var(--ombre-forte); }
.js .mur-photos li { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .3, 1.2); transition-delay: calc(var(--i, 0) * 90ms); }
.js .mur-photos.est-visible li { opacity: 1; transform: none; }
@media (max-width: 900px) { .mur-photos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .mur-photos { grid-template-columns: repeat(2, 1fr); } .mur-photos li:nth-child(3n+2) { padding-top: 0; } }
.infos-pratiques { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.carte-info { background: #fff; border-radius: var(--rayon); padding: 1.6rem; box-shadow: var(--ombre); }
.carte-info h3 { display: flex; align-items: center; gap: .6rem; color: var(--bleu); }
.carte-info h3 svg { width: 1.4rem; height: 1.4rem; fill: var(--bleu); flex: none; }
.carte-info p:last-child { margin-bottom: 0; }
.section--claire .carte-info, .section--claire .engagements li { background: var(--sable); box-shadow: none; }
.etapes { list-style: none; margin: 0; padding: 0; }
.etapes .carte-info { position: relative; }
.etapes__num {
    position: absolute; top: -.9rem; right: 1.2rem; width: 2.2rem; height: 2.2rem; border-radius: 50%;
    background: var(--bleu); color: #fff; display: grid; place-items: center; font: 600 1rem var(--police-titre); box-shadow: var(--ombre);
}
@media (max-width: 860px) { .infos-pratiques { grid-template-columns: 1fr; } }

/* ---------- Horaires ---------- */
.horaires { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1.2rem; margin: 0; }
.horaires dt { font-weight: 600; color: var(--encre); }
.horaires dd { margin: 0; }
.horaires dd span { display: block; white-space: nowrap; } /* un créneau par ligne : 8h00 - 12h00, puis 13h30 - 18h00 */
.carte-horaires { background: var(--sable); border-radius: var(--rayon); padding: 1.8rem; }
.carte-horaires h3 { display: flex; align-items: center; gap: .6rem; color: var(--bleu); }
.carte-horaires h3 svg { width: 1.4rem; height: 1.4rem; fill: var(--bleu); }
.contact-rdv { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: center; }
@media (max-width: 860px) { .contact-rdv { grid-template-columns: 1fr; } }

/* =========================================================================
   VISITE DES LOCAUX – parcours en serpentin et traces de pattes animées
   ========================================================================= */
.visite { padding: 1rem 0 clamp(3rem, 7vw, 5rem); overflow: hidden; }
.visite__conteneur { position: relative; }
.visite__parcours {
    position: relative; z-index: 1; list-style: none; margin: 0; padding: 1rem 0 0;
    display: grid; grid-template-columns: repeat(3, 1fr); row-gap: clamp(3rem, 6vw, 5rem); column-gap: 2rem;
}
.etape {
    position: relative; grid-row: var(--r3); grid-column: var(--c3);
    display: flex; flex-direction: column; align-items: center; text-align: center;
}
.etape--decalee-3 { margin-top: clamp(2rem, 5vw, 4rem); }
.etape__titre {
    font-family: var(--police-titre); font-weight: 500; font-size: clamp(1rem, 1.6vw, 1.25rem); color: var(--encre);
    margin: 0 0 .8rem; display: inline-flex; align-items: center; gap: .5rem;
}
.etape__num {
    display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%;
    background: var(--bleu); color: #fff; font-size: .8rem; font-weight: 600;
}
.etape__photo {
    width: clamp(170px, 23vw, 270px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; padding: 0; cursor: zoom-in;
    border: 6px solid #fff; background: #fff; box-shadow: var(--ombre);
    transition: transform .35s cubic-bezier(.2, .8, .3, 1.2), box-shadow .35s;
}
.etape__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.etape__photo:hover, .etape__photo:focus-visible { transform: translateY(-6px) rotate(-1.5deg); box-shadow: var(--ombre-forte); }
.etape__photo:hover img { transform: scale(1.08); }

/* Apparition des étapes au défilement */
.js .etape { opacity: 0; transform: translateY(26px) scale(.96); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .3, 1.2); transition-delay: calc(var(--i) * 70ms); }
.js .visite.est-visible .etape { opacity: 1; transform: none; }

/* Calque des traces */
.trace { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.trace__patte { fill: var(--patte); opacity: 0; transform-box: fill-box; transform-origin: center; }
.trace.est-active .trace__patte {
    animation:
        patte-pose .5s cubic-bezier(.2, .9, .3, 1.4) var(--d) forwards,
        patte-marche var(--duree, 10s) ease-in-out calc(var(--d) + var(--v)) infinite;
}
@keyframes patte-pose { from { opacity: 0; transform: scale(.2) rotate(-20deg); } to { opacity: .88; transform: scale(1) rotate(0); } }
/* Effet de marche : chaque empreinte « s'imprime » à son tour, comme un animal qui avance */
@keyframes patte-marche {
    0%, 100% { opacity: .88; transform: scale(1); }
    3% { opacity: 1; transform: scale(1.22); fill: var(--bleu); }
    8% { opacity: .95; transform: scale(1); }
    55% { opacity: .55; }
}
.trace__pointilles { fill: none; stroke: var(--patte); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: .1 9; opacity: .75; }
.trace__masque { fill: none; stroke: #fff; stroke-width: 8; stroke-dasharray: var(--l); stroke-dashoffset: var(--l); }
.trace.est-active .trace__masque { animation: trace-dessin 1.6s ease-in-out var(--d) forwards; }
@keyframes trace-dessin { to { stroke-dashoffset: 0; } }

.bulle-rappel {
    position: relative; z-index: 2; display: flex; align-items: center; gap: 1rem; max-width: 440px; margin: 3.5rem auto 0;
    background: #fff; border-radius: 22px; padding: 1.1rem 1.4rem; box-shadow: var(--ombre);
}
.bulle-rappel::after { content: ""; position: absolute; left: 2.4rem; bottom: -12px; border: 12px solid transparent; border-top-color: #fff; border-bottom: 0; }
.bulle-rappel svg { width: 2.6rem; height: 2.6rem; fill: var(--bleu); flex: none; animation: patte-salut 2.8s ease-in-out infinite; transform-origin: 50% 80%; }
.bulle-rappel p { margin: 0; }
.bulle-rappel strong { color: var(--bleu); font-family: var(--police-titre); }
@keyframes patte-salut { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-18deg); } 80% { transform: rotate(12deg); } 90% { transform: rotate(-8deg); } }

/* Animaux décoratifs (assets/img/deco/) : dans les espaces libres du parcours, sur grand écran seulement */
.bandeau-titre__deco { width: min(300px, 64vw); margin: 0 auto 1.2rem; animation: deco-apparition 1s ease both; }
@keyframes deco-apparition { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.visite__deco, .etape__deco { position: absolute; z-index: 2; pointer-events: none; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .15)); animation: deco-saut 4s ease-in-out infinite; }
.visite__deco--chien { width: clamp(110px, 11vw, 135px); left: 3%; bottom: 0; }
.visite__deco--harnais { width: clamp(90px, 9vw, 110px); right: 4%; bottom: 0; animation-delay: .6s; }
.etape__deco--chat { width: clamp(100px, 10vw, 140px); right: -1.2rem; bottom: -2.2rem; animation-duration: 4.6s; animation-delay: .8s; }
.etape__deco--chiot { width: clamp(120px, 11vw, 150px); top: calc(100% + 1.3rem); left: 50%; translate: -78% 0; animation-delay: .3s; }
.etape__deco--chaton { width: clamp(85px, 8vw, 105px); top: calc(100% + .7rem); left: 50%; translate: -12% 0; animation-delay: 1.2s; }
.etape__deco--bouledogue { width: clamp(72px, 7vw, 88px); top: calc(100% + .6rem); left: 50%; translate: -95% 0; animation-delay: .5s; }
@keyframes deco-saut { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (min-width: 1100px) { .bulle-rappel { margin-top: 6rem; } }
@media (max-width: 1099px) { .visite__deco, .etape__deco { display: none; } }

@media (max-width: 760px) {
    .visite__parcours { grid-template-columns: repeat(2, 1fr); column-gap: 1rem; row-gap: 3rem; }
    .etape { grid-row: var(--r2); grid-column: var(--c2); }
    .etape--decalee-3 { margin-top: 0; }
    .etape--decalee-2 { margin-top: 2.5rem; }
    .etape__photo { width: min(40vw, 190px); border-width: 4px; }
}

/* =========================================================================
   Nos services
   ========================================================================= */
.sommaire { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; list-style: none; padding: 0; margin: 1.5rem auto 0; max-width: 940px; }
.sommaire a {
    display: inline-block; padding: .4rem 1rem; border-radius: 999px; background: #fff; color: var(--bleu); text-decoration: none;
    font: 500 .9rem var(--police-titre); box-shadow: 0 2px 10px rgba(24, 24, 27, .07); transition: background .2s, color .2s, transform .2s;
}
.sommaire a:hover { background: var(--bleu); color: #fff; transform: translateY(-2px); }

/* Chaque service : titre sur toute la largeur, puis photos rondes et texte, alternés gauche / droite */
.services { display: grid; gap: clamp(2.5rem, 6vw, 4rem); }
.service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 1.4rem clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.service:nth-child(even) { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.service:nth-child(even) > .service__media { order: 2; }
.service__titre, .service > .separateur-pattes { grid-column: 1 / -1; }
.service__titre { display: flex; align-items: center; gap: .7rem; color: var(--bleu); margin: 0; }
.service__titre svg { width: 1.6rem; height: 1.6rem; fill: var(--bleu); flex: none; opacity: .85; }
.service__texte > :last-child { margin-bottom: 0; }
.service__note { grid-column: 1 / -1; order: 3; margin: 0; }
.service__media { display: grid; gap: 1rem clamp(.8rem, 2vw, 1.4rem); align-items: start; justify-items: center; }
.service__media--duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service__media--trio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service__media--trio > :nth-child(3) { grid-column: 1 / -1; width: 50%; }
.service__media--duo > :nth-child(2), .service__media--trio > :nth-child(2) { margin-top: clamp(1.5rem, 4vw, 3rem); } /* en quinconce */
.service__media figure { margin: 0; width: 100%; max-width: 320px; }
.service__media figcaption { font: 500 .85rem var(--police-titre); color: var(--gris); text-align: center; margin-top: .6rem; }
.service__media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 6px solid #fff; background: #fff; box-shadow: var(--ombre); transition: box-shadow .35s; }
.photo-zoom { display: block; width: 100%; padding: 0; border: 0; border-radius: 50%; background: none; cursor: zoom-in; transition: transform .35s cubic-bezier(.2, .8, .3, 1.2); }
.photo-zoom:hover, .photo-zoom:focus-visible { transform: translateY(-6px) rotate(-1.5deg); }
.photo-zoom:hover img, .photo-zoom:focus-visible img { box-shadow: var(--ombre-forte); }

/* Petite trace de pattes entre deux services : les empreintes s'impriment une à une */
.separateur-pattes { display: block; width: min(300px, 70%); height: auto; aspect-ratio: 300 / 52; margin: 0 auto .4rem; fill: var(--bleu); overflow: visible; }
.separateur-pattes use { opacity: .4; transform-box: fill-box; transform-origin: center; }
.js .separateur-pattes use { opacity: 0; }
.js .separateur-pattes.est-visible use { animation: patte-trace .45s cubic-bezier(.2, .9, .3, 1.4) calc(var(--k) * 150ms) forwards; }
@keyframes patte-trace { from { opacity: 0; transform: scale(.3); } to { opacity: .4; transform: scale(1); } }

.appel__contenu { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.appel__contenu > div:first-child { max-width: 640px; }
.appel__contenu p { margin: 0; }
.appel .boutons { margin-top: 0; }
.liste-points { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .55rem; }
.liste-points li { position: relative; padding-left: 1.7rem; }
.liste-points li::before {
    content: ""; position: absolute; left: 0; top: .45em; width: 1rem; height: 1rem; background: var(--bleu);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 30c-8.6 0-18 9.4-18 17.6 0 6.1 5 9.4 10.6 8.4 3-.6 4.8-2.2 7.4-2.2s4.4 1.6 7.4 2.2C45 57 50 53.7 50 47.6 50 39.4 40.6 30 32 30z'/%3E%3Cellipse cx='13.5' cy='27' rx='6.2' ry='8.2'/%3E%3Cellipse cx='24.5' cy='14.5' rx='6.4' ry='8.8'/%3E%3Cellipse cx='39.5' cy='14.5' rx='6.4' ry='8.8'/%3E%3Cellipse cx='50.5' cy='27' rx='6.2' ry='8.2'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 30c-8.6 0-18 9.4-18 17.6 0 6.1 5 9.4 10.6 8.4 3-.6 4.8-2.2 7.4-2.2s4.4 1.6 7.4 2.2C45 57 50 53.7 50 47.6 50 39.4 40.6 30 32 30z'/%3E%3Cellipse cx='13.5' cy='27' rx='6.2' ry='8.2'/%3E%3Cellipse cx='24.5' cy='14.5' rx='6.4' ry='8.8'/%3E%3Cellipse cx='39.5' cy='14.5' rx='6.4' ry='8.8'/%3E%3Cellipse cx='50.5' cy='27' rx='6.2' ry='8.2'/%3E%3C/svg%3E") center / contain no-repeat;
    opacity: .8;
}
.liste-points strong { color: var(--encre); }
.encadre { background: var(--bleu-clair); border-left: 4px solid var(--bleu); border-radius: 0 var(--rayon) var(--rayon) 0; padding: 1.1rem 1.4rem; font-size: .97rem; }
@media (max-width: 860px) {
    .service, .service:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
    .service:nth-child(even) > .service__media { order: 0; }
    .service__media figure { max-width: 250px; }
}

/* Avant / après (dentisterie) */
.service__media .comparateur { max-width: none; width: 100%; justify-self: stretch; }
.avant-apres { position: relative; width: 100%; border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); aspect-ratio: 3 / 2; user-select: none; touch-action: pan-y; }
.avant-apres:has(input:focus-visible) { outline: 3px solid var(--bleu); outline-offset: 3px; }
.avant-apres img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 0; box-shadow: none; }
.avant-apres__haut { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.avant-apres__ligne { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, .4); pointer-events: none; }
.avant-apres__ligne::after {
    content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%;
    background: #fff; color: var(--bleu); display: grid; place-items: center; font: 700 1rem var(--police-titre); box-shadow: var(--ombre);
}
.avant-apres__etiquette { position: absolute; top: .9rem; padding: .25rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .92); font: 600 .85rem var(--police-titre); color: var(--encre); pointer-events: none; }
.avant-apres__etiquette--avant { left: .9rem; }
.avant-apres__etiquette--apres { right: .9rem; }
.avant-apres input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

/* =========================================================================
   L'équipe
   ========================================================================= */
.equipe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem 1.5rem; max-width: 960px; margin-inline: auto; }
.membre { text-align: center; }
.membre__photo {
    width: min(170px, 100%); aspect-ratio: 1; margin: 0 auto 1rem; border-radius: 50%; overflow: hidden; border: 5px solid #fff; box-shadow: var(--ombre);
    background: var(--bleu-clair); display: grid; place-items: center; transition: transform .3s;
}
.membre__photo img { width: 100%; height: 100%; object-fit: cover; }
/* Avatar « patte » (membre sans photo) : la patte se tourne au survol */
.membre__photo svg { width: 46%; height: 46%; fill: var(--bleu); opacity: .55; transform: rotate(var(--rot, -12deg)); transition: transform .45s cubic-bezier(.2, .8, .3, 1.4), opacity .3s; }
.membre:hover .membre__photo svg { transform: rotate(calc(var(--rot, -12deg) * -1)) scale(1.12); opacity: .75; }
.membre:hover .membre__photo { transform: translateY(-4px) rotate(2deg); }
.membre h3 { margin: 0; color: var(--encre); }
.membre p { margin: .1rem 0 0; color: var(--gris); font-size: .95rem; }
.membre--principal { grid-column: 1 / -1; }
.membre--principal .membre__photo { width: min(220px, 100%); }
.membre--principal h3 { font-size: 1.35rem; }
@media (max-width: 640px) { .equipe { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; } }
.engagements { counter-reset: eng; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin: 0; }
.engagements li { background: #fff; border-radius: var(--rayon); padding: 1.3rem 1.4rem 1.3rem 4rem; position: relative; box-shadow: var(--ombre); }
.engagements li::before {
    counter-increment: eng; content: counter(eng); position: absolute; left: 1.2rem; top: 1.2rem; width: 2rem; height: 2rem; border-radius: 50%;
    background: var(--bleu); color: #fff; display: grid; place-items: center; font: 600 .95rem var(--police-titre);
}
@media (max-width: 760px) { .engagements { grid-template-columns: 1fr; } }

/* =========================================================================
   Pages de texte (infos, conditions, mentions)
   ========================================================================= */
.texte-long { max-width: 860px; margin-inline: auto; }
.texte-long h2 { color: var(--bleu); margin-top: 2.2rem; display: flex; align-items: center; gap: .6rem; }
.texte-long h2 svg { width: 1.4rem; height: 1.4rem; fill: var(--bleu); flex: none; }
.texte-long h3 { margin-top: 1.5rem; }
.carte-texte { display: flow-root; background: #fff; border-radius: var(--rayon); padding: clamp(1.4rem, 4vw, 2.4rem); box-shadow: var(--ombre); margin-bottom: 1.6rem; }
.carte-texte > h2:first-child { margin-top: 0; }
.carte-texte > :last-child { margin-bottom: 0; }
.section--texte { padding-top: 1rem; }
.alerte { display: flex; gap: 1rem; align-items: flex-start; background: #fff4e5; border: 1px solid #f3d7a8; border-radius: var(--rayon); padding: 1.1rem 1.3rem; margin: 1.2rem 0; }
.alerte svg { width: 1.6rem; height: 1.6rem; fill: #b45309; flex: none; margin-top: .15rem; }
.alerte p { margin: 0; }
.figure-flottante { float: right; width: min(36%, 230px); margin: .3rem 0 1rem 1.8rem; }
.figure-flottante img { border-radius: 14px; box-shadow: var(--ombre); }
.figure-flottante figcaption { font-size: .85rem; line-height: 1.4; color: var(--gris); text-align: center; margin-top: .5rem; }
@media (max-width: 600px) { .figure-flottante { float: none; width: min(100%, 240px); margin: 0 auto 1.4rem; } }
.fiche { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.4rem; margin: 0 0 1rem; }
.fiche dt { font-weight: 600; color: var(--encre); }
.fiche dd { margin: 0; }
@media (max-width: 600px) { .fiche { grid-template-columns: 1fr; gap: 0; } .fiche dd { margin-bottom: .7rem; } }
.a-completer { background: #fff4e5; color: #9a3412; border: 1px dashed #f3b26b; border-radius: 6px; padding: 0 .45rem; font-weight: 600; }

/* =========================================================================
   Pied de page
   ========================================================================= */
.pied { background: var(--bleu-fonce); color: #d6def0; margin-top: 0; }
.pied a:not(.bouton) { color: #fff; }
.pied__contenu { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2.5rem; padding: 3.5rem 0 2.5rem; }
.pied__logo { width: 190px; background: #fff; border-radius: 12px; padding: .6rem .9rem; margin-bottom: 1rem; }
.pied__titre { color: #fff; font-size: 1.1rem; margin-bottom: 1rem; }
.pied__coordonnees { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .7rem; }
.pied__coordonnees li { display: flex; gap: .7rem; align-items: flex-start; }
.pied__coordonnees svg { width: 1.2rem; height: 1.2rem; fill: #9fb4de; flex: none; margin-top: .3rem; }
.horaires--pied dt { color: #fff; }
.pied__urgence { font-size: .9rem; margin-top: 1rem; color: #b8c6e3; }
.pied__legal { border-top: 1px solid rgba(255, 255, 255, .12); text-align: center; padding: 1.2rem 1.25rem 1.6rem; font-size: .85rem; color: #aebcdb; }
.pied__legal p { margin: .2rem 0; }
@media (max-width: 860px) { .pied__contenu { grid-template-columns: 1fr; gap: 2rem; } }

/* =========================================================================
   Visionneuse photo
   ========================================================================= */
.visionneuse { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1000px); width: 100%; overflow: visible; }
.visionneuse::backdrop { background: rgba(10, 16, 32, .82); backdrop-filter: blur(3px); }
.visionneuse figure { margin: 0; }
.visionneuse img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: 14px; background: #000; }
.visionneuse figcaption { color: #fff; text-align: center; font-family: var(--police-titre); margin-top: .8rem; }
.visionneuse__fermer, .visionneuse__nav {
    position: absolute; background: #fff; color: var(--bleu); border: 0; width: 44px; height: 44px; border-radius: 50%;
    font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: var(--ombre); display: grid; place-items: center;
}
.visionneuse__fermer { top: -18px; right: -18px; }
.visionneuse__nav { top: 45%; }
.visionneuse__nav--prec { left: -22px; }
.visionneuse__nav--suiv { right: -22px; }
.visionneuse[open] { animation: visionneuse-entree .3s ease; }
@keyframes visionneuse-entree { from { opacity: 0; transform: scale(.94); } }
@media (max-width: 640px) { .visionneuse__nav--prec { left: 4px; } .visionneuse__nav--suiv { right: 4px; } .visionneuse__fermer { right: 4px; top: -52px; } }

/* ---------- Apparition au défilement ---------- */
.js .apparition { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .apparition.est-visible { opacity: 1; transform: none; }

/* ---------- Mouvements réduits ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .trace__patte { opacity: .85 !important; }
    .trace__masque { stroke-dashoffset: 0 !important; }
    .js .etape, .js .apparition, .js .mur-photos li { opacity: 1; transform: none; }
    .js .separateur-pattes use { opacity: .4; }
}

/* ---------- Impression (conditions, informations…) ---------- */
@media print {
    .nav, .lien-evitement, .visionneuse, .sommaire, .boutons, .trace, .separateur-pattes, .pied__contenu { display: none !important; }
    body { background: #fff; font-size: 11pt; }
    .entete { position: static; box-shadow: none; }
    .js .apparition, .js .etape, .js .mur-photos li { opacity: 1 !important; transform: none !important; }
    .carte-texte, .carte-info { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
    .pied, .pied a { background: none; color: #333; }
    .pied__legal { color: #333; border: 0; }
}
