/* Au Rythme des Sabots - Hippothérapie & Coaching */

:root {
    --color-bg: #faf8f5;
    --color-bg-alt: #f0ebe3;
    --color-text: #2c2825;
    --color-text-muted: #5c554d;
    --color-accent: #9A7572;
    --color-accent-dark: #7a5e5b;
    --color-accent-light: #b08d8a;
    --color-brown: #8b7355;
    --color-brown-light: #a89078;
    /* Carte contact : une teinte par lieu (alignée sur leaflet-contact-map.js) */
    --map-marker-genappe: #9a7572;
    --map-marker-reves: #5d8a7e;
    --map-marker-coaching: #8b7355;
    --color-white: #fff;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Source Sans 3', system-ui, sans-serif;
    --shadow: 0 4px 20px rgba(44, 40, 37, 0.08);
    --radius: 8px;
    --header-height: 72px;
    /* Espace sous l’îlot (marge haute + hauteur barre) — héros & menu mobile */
    --header-island-clearance: clamp(4.65rem, 13vw, 5.85rem);
    /* Hauteur de la séparation oblique entre sections */
    --section-slant: clamp(1.25rem, 3.5vw, 2.5rem);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
    max-width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.25;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 0 0 0.5rem;
    color: var(--color-white);
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

h2.section-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin: 0 0 1.5rem;
    text-align: center;
    color: var(--color-accent-dark);
}

h3 {
    font-size: 1.25rem;
    margin: 0 0 0.75rem;
    color: var(--color-brown);
}

/* Titres de cartes mis en évidence */
.card-title {
    font-size: 1.35rem;
    color: var(--color-accent-dark);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-accent);
}

p {
    margin: 0 0 1rem;
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-accent-dark);
}

ul {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
}

li {
    margin-bottom: 0.35rem;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

/* Header — barre en îlot, fixe (toujours visible au scroll) */
.site-header {
    position: fixed;
    top: 1.125rem;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 200;
    padding: 0 0.75rem;
    margin: 0;
    background: transparent;
    border: none;
    pointer-events: none;
}

.site-header > * {
    pointer-events: auto;
}

.header-inner {
    max-width: min(1200px, calc(100% - 0.5rem));
    width: 100%;
    margin: 0 auto;
    padding: 0.75rem 1.35rem 0.75rem 1.4rem;
    min-height: 3.35rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    box-sizing: border-box;
    background: var(--color-white);
    border-radius: 999px;
    box-shadow:
        0 4px 24px rgba(44, 40, 37, 0.1),
        0 1px 3px rgba(44, 40, 37, 0.06);
}

.logo {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    font-weight: 600;
    color: var(--color-accent-dark);
    line-height: 1.2;
    flex-shrink: 1;
    min-width: 0;
}

.logo:hover {
    color: var(--color-accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--color-brown);
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
}

.main-nav {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
}

.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.35rem 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav ul li {
    display: flex;
    align-items: center;
}

.main-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.25;
    color: var(--color-text);
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--color-accent);
}

.main-nav a.nav-link--stages {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-link--stages__label {
    line-height: 1.25;
}

@keyframes nav-stages-bunny-bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

.nav-stages-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 0.35px rgba(44, 40, 37, 0.35));
    transform-origin: 50% 100%;
    animation: nav-stages-bunny-bounce 1.05s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .nav-stages-icon {
        animation: none;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        flex-shrink: 0;
    }

    .main-nav {
        flex: none;
        display: block;
        position: fixed;
        top: var(--header-island-clearance);
        left: 0.75rem;
        right: 0.75rem;
        max-height: min(70vh, calc(100vh - var(--header-island-clearance) - 1rem));
        overflow-y: auto;
        background: var(--color-white);
        border-radius: 1.25rem;
        box-shadow:
            0 12px 40px rgba(44, 40, 37, 0.12),
            0 2px 8px rgba(44, 40, 37, 0.06);
        padding: 1rem 1.25rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    }

    .main-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0.15rem;
    }

    .main-nav a {
        display: block;
        padding: 0.65rem 0.5rem;
        border-radius: 0.5rem;
    }

    .main-nav a:hover {
        background: rgba(154, 117, 114, 0.08);
    }
}

/* Hero — la photo/overlay vont jusqu’en haut ; le padding évite le contenu sous le menu fixe */
.hero {
    min-height: clamp(36rem, 92vh, 64rem);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: calc(var(--header-island-clearance) + 1.25rem) 2rem 4rem;
    background: var(--color-bg-alt);
    text-align: left;
    position: relative;
    overflow: hidden;
}

/* Fondue vers la section suivante (bande basse, transition resserrée) */
.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: clamp(2.75rem, 10vh, 5rem);
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 35%,
        rgba(240, 235, 227, 0.35) 62%,
        rgba(240, 235, 227, 0.88) 88%,
        var(--color-bg-alt) 100%
    );
}

.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 35%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(44, 40, 37, 0.75) 0%, rgba(44, 40, 37, 0.4) 45%, rgba(44, 40, 37, 0.2) 100%);
    z-index: 1;
}

.hero-content-wrap {
    position: relative;
    z-index: 2;
    max-width: 480px;
    margin-right: auto;
    width: 100%;
}

.hero-panels {
    display: grid;
}

.hero-panel {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.65s ease, visibility 0.65s ease;
}

.hero-panel.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
    pointer-events: auto;
}

.hero-panel-inner {
    padding: 1.5rem 1.75rem;
    background: rgba(44, 40, 37, 0.5);
    border-radius: var(--radius);
    backdrop-filter: blur(6px);
}

.hero-panel-title {
    font-family: var(--font-serif);
    font-size: clamp(1.85rem, 4.5vw, 2.65rem);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 0.5rem;
    color: var(--color-white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-content-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.hero-content-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.hero-content-dot:hover {
    background: rgba(255, 255, 255, 0.65);
}

.hero-content-dot.is-active {
    background: var(--color-accent-light);
    transform: scale(1.2);
}

.hero-panel .btn-primary {
    cursor: pointer;
    font: inherit;
}

.hero-tagline {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--color-brown-light);
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.hero-intro {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.98);
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

@media (max-width: 640px) {
    .hero {
        justify-content: center;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .hero-content-wrap {
        margin-right: 0;
        max-width: 100%;
        text-align: left;
    }

}

/* Icônes Pâques (pack nat-davydova / Flaticon) — posées sur le bord des blocs */
.hero-panel-inner-wrap {
    position: relative;
    padding-top: 2.35rem;
}

.hero-panel-inner-wrap .easter-perch {
    position: absolute;
    left: 50%;
    top: 0;
    z-index: 3;
    transform: translate(-50%, -52%);
    pointer-events: none;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.28));
}

.container--easter-perch {
    position: relative;
    padding-top: 2.5rem;
}

.container--easter-perch > .easter-perch--on-box {
    position: absolute;
    left: 50%;
    top: 0;
    z-index: 1;
    transform: translate(-50%, -42%);
    pointer-events: none;
    filter: drop-shadow(0 4px 12px rgba(44, 40, 37, 0.12));
}

.tarifs-box-wrap {
    position: relative;
    padding-top: 2.35rem;
    margin-top: 0.5rem;
}

.tarifs-box-wrap .easter-perch--tarifs {
    position: absolute;
    right: 0.5rem;
    top: 0;
    left: auto;
    z-index: 1;
    transform: translate(0, -45%);
    pointer-events: none;
    filter: drop-shadow(0 4px 12px rgba(44, 40, 37, 0.12));
}

@media (min-width: 720px) {
    .tarifs-box-wrap .easter-perch--tarifs {
        right: 1.25rem;
    }
}

.contact-heading-block--perch {
    position: relative;
    padding-top: 2.75rem;
    margin-bottom: 0.5rem;
    max-width: 44rem;
    margin-left: auto;
    margin-right: auto;
}

.contact-heading-block--perch .easter-perch {
    position: absolute;
    left: 50%;
    top: 0;
    z-index: 1;
    transform: translate(-50%, -48%);
    pointer-events: none;
    filter: drop-shadow(0 4px 12px rgba(44, 40, 37, 0.1));
}

.contact-heading-block__text {
    text-align: center;
}

.contact-heading-block__text .section-title {
    margin-bottom: 0.75rem;
}

.easter-perch__img,
.easter-perch__svg {
    display: block;
    width: clamp(56px, 16vw, 92px);
    height: auto;
}

.easter-perch__svg {
    overflow: visible;
}

/* États initiaux SVG (lapin / coiffe peinte) : visibles sans JS ou si mouvement réduit */
@media (prefers-reduced-motion: reduce) {

    .hatch-icon__rabbit,
    .painting-icon__egg-top {
        opacity: 1 !important;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius);
    transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
}

.btn-primary:hover {
    background: var(--color-accent-dark);
    color: var(--color-white);
    transform: translateY(-1px);
}

/* Ancres : laisser de l’air sous le header îlot */
section[id] {
    scroll-margin-top: calc(var(--header-island-clearance) + 0.75rem);
}

/* Sections */
.section {
    padding: 3.5rem 0;
}

.section--alt {
    background: var(--color-bg-alt);
}

.section--contact {
    background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
    margin-top: -1px;
    padding-top: calc(3.5rem + 1px);
}

/* Séparations légèrement obliques entre sections (sauf hero, bandeau photo sous-page, dernière section) */
main > section:not(.hero):not(:last-child):not(.section--subpage-hero) {
    position: relative;
    padding-bottom: calc(3.5rem + var(--section-slant));
}

main > section:not(.hero):not(:last-child):not(.section--subpage-hero) .container {
    position: relative;
    z-index: 1;
}

main > section:not(.hero):not(:last-child):not(.section--subpage-hero)::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    /* Léger chevauchement avec la section suivante : évite la ligne de 1px / crénelage */
    bottom: -1px;
    height: calc(var(--section-slant) + 2px);
    pointer-events: none;
    z-index: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Fond alterné → bandeau = couleur du haut de la section suivante */
main > section.section--alt:not(.hero):not(:last-child):not(.section--subpage-hero)::after {
    background: var(--color-bg);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* Contact commence par le même beige que les sections --alt : éviter le bloc crème / trait fantôme */
main > section.section--alt:not(.hero):not(:last-child):not(.section--subpage-hero):has(+ .section--contact)::after {
    background: var(--color-bg-alt);
}

/* Deux sections --alt à la suite : même fond, pas de bande crème entre deux beiges */
main > section.section--alt:not(.hero):not(:last-child):not(.section--subpage-hero):has(+ .section.section--alt)::after {
    background: var(--color-bg-alt);
}

main > section.section:not(.section--alt):not(.section--contact):not(.hero):not(:last-child):not(.section--subpage-hero)::after {
    background: var(--color-bg-alt);
    clip-path: polygon(0 0, 0 100%, 100% 100%);
}

.lead {
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.prose {
    max-width: 60ch;
}

.signature {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--color-brown);
    margin-top: 1.5rem;
}

/* À propos - images + texte */
.apropos-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: start;
    margin-top: 1.5rem;
}

.apropos-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.apropos-images img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    object-fit: cover;
}

.apropos-images img:first-child {
    max-height: 320px;
}

.apropos-images img:last-child {
    max-height: 220px;
}

@media (max-width: 768px) {
    .apropos-layout {
        grid-template-columns: 1fr;
    }

    .apropos-images {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .apropos-images img {
        flex: 1 1 45%;
        min-width: 0;
    }

    .apropos-images img:first-child,
    .apropos-images img:last-child {
        max-height: 200px;
    }
}

/* Galerie */
.section--galerie {
    background: var(--color-bg);
}

.galerie-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.galerie-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4/3;
}

.galerie-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.galerie-link:hover img,
.galerie-link:focus img {
    transform: scale(1.03);
}

.galerie-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

@media (min-width: 640px) {
    .galerie-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Benefits */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.benefit-card {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--color-accent);
}

.benefit-card .card-title {
    margin-top: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.subsection-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.tag-list {
    list-style: none;
    padding-left: 0;
}

.tag-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
}

.tag-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

/* Séances (hippothérapie) : 4 cartes côte à côte sur grand écran */
.seances-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

@media (max-width: 1180px) {
    .seances-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .seances-grid {
        grid-template-columns: 1fr;
    }
}

.seance-card {
    background: var(--color-white);
    padding: 1.75rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

/* Titres centrés ; barre collée au contenu (sans min-height pour éviter le vide sous les titres courts) */
.seance-card .card-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0.65rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--color-accent);
    line-height: 1.28;
    box-sizing: border-box;
    gap: 0.45rem;
}

.seance-card .card-title__line {
    display: block;
    max-width: 100%;
}

/* Même hauteur de ligne que la vignette « Parent – Enfant » (référence) pour aligner les barres */
.seance-card .card-title__sub {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: calc(0.72rem * 1.2 + 0.6rem + 2px);
    box-sizing: border-box;
}

.seance-card .card-title__vignette {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--color-brown);
    background: rgba(139, 115, 85, 0.12);
    border: 1px solid rgba(139, 115, 85, 0.28);
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    line-height: 1.2;
}

.seance-duree {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent-dark);
    background: rgba(154, 117, 114, 0.15);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    margin-top: 0;
    margin-bottom: 1rem;
    flex-shrink: 0;
    align-self: center;
}

/* Témoignages */
.section-intro--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.testimonials-carousel {
    margin-top: 1.5rem;
    position: relative;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

.container--testimonials {
    max-width: 1040px;
    width: 100%;
    box-sizing: border-box;
}

.testimonials-viewport {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0 0.5rem;
    box-sizing: border-box;
}

.testimonials-track {
    overflow: visible;
    position: relative;
    display: flex;
    min-width: 0;
    transition: transform 0.35s ease;
    gap: 1rem;
}

.testimonial-slide {
    margin: 0;
    flex: 0 0 calc(33.333% - 0.67rem);
    min-width: 0;
    padding: 1.5rem 1.25rem;
    box-sizing: border-box;
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--color-accent);
}

@media (max-width: 900px) {
    .testimonials-carousel {
        overflow-x: hidden;
    }
    .testimonials-viewport {
        overflow-x: hidden;
        overflow-y: visible;
        margin: 0;
        padding: 0;
        width: 100%;
        max-width: 100%;
    }
    /* Carrousel horizontal : 1 carte visible, largeur gérée par le script (comme desktop) */
    .testimonials-track {
        flex-direction: row;
        flex-wrap: nowrap;
    }
    .testimonial-slide {
        min-width: 0;
    }
}

.testimonial-text {
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.testimonial-author {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-style: normal;
}

.testimonials-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.25rem;
}

.testimonial-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}

.testimonial-btn:hover:not(:disabled) {
    background: var(--color-accent-dark);
}

.testimonial-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.testimonials-dots {
    display: flex;
    gap: 0.5rem;
}

.testimonials-dots button {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 50%;
    background: rgba(154, 117, 114, 0.35);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.testimonials-dots button.is-active {
    background: var(--color-accent);
}

/* Activités */
.section-intro {
    text-align: center;
    max-width: 42rem;
    margin: -0.5rem auto 1.5rem;
    color: var(--color-text-muted);
}

/* Accueil : aperçus vers pages dédiées */
.section--teaser .section-intro {
    margin-bottom: 1.25rem;
}

.home-teaser-cta {
    margin-top: 1.75rem;
    text-align: center;
}

.home-teaser-cta--tight-top {
    margin-top: 2rem;
}

.home-teaser-cta .btn + .btn {
    margin-top: 0.75rem;
}

@media (min-width: 520px) {
    .home-teaser-cta .btn + .btn {
        margin-top: 0;
        margin-left: 0.65rem;
    }
}

/* Aperçu tarifs accueil — panneau carte */
.home-tarifs-panel {
    max-width: 34rem;
    margin: 0 auto;
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--color-accent);
    overflow: hidden;
    border-left: 1px solid rgba(154, 117, 114, 0.1);
    border-right: 1px solid rgba(154, 117, 114, 0.1);
    border-bottom: 1px solid rgba(154, 117, 114, 0.1);
}

.home-tarifs-apercu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.home-tarifs-apercu li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem 1.5rem;
    padding: 1rem 1.35rem;
    border-bottom: 1px solid rgba(154, 117, 114, 0.12);
    transition: background 0.2s ease;
}

.home-tarifs-apercu li:last-child {
    border-bottom: none;
}

@media (hover: hover) {
    .home-tarifs-apercu li:hover {
        background: rgba(154, 117, 114, 0.04);
    }
}

.home-tarifs-cell {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.home-tarifs-name {
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--color-text);
    line-height: 1.35;
}

.home-tarifs-note {
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

.home-tarifs-amount {
    flex-shrink: 0;
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--color-accent-dark);
    line-height: 1.2;
    padding-top: 0.1rem;
}

.home-tarifs-amount--from {
    font-size: 1.15rem;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 400px) {
    .home-tarifs-apercu li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .home-tarifs-amount {
        align-self: flex-end;
    }
}

.home-teaser-coaching {
    max-width: 36rem;
    margin: 0 auto;
    text-align: center;
    color: var(--color-text-muted);
}

/* Pages Hippothérapie, Coaching, Tarifs — dégagement sous le menu fixe (comme le hero) */
.section.section--subpage-header {
    padding-top: calc(var(--header-island-clearance) + 0.75rem);
    padding-bottom: 2.5rem;
}

/* Bandeau photo (ex. page Hippothérapie) : --page-hero-bg défini en inline style */
.section.section--subpage-hero {
    position: relative;
    isolation: isolate;
    min-height: clamp(15rem, 42vw, 24rem);
    /* Espace pour la bande oblique (comme les autres sections) */
    padding-bottom: calc(2.75rem + var(--section-slant));
    background-color: #3a3532;
    background-image: var(--page-hero-bg);
    background-size: cover;
    background-position: center;
}

.section.section--subpage-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        105deg,
        rgba(36, 32, 30, 0.88) 0%,
        rgba(36, 32, 30, 0.62) 48%,
        rgba(36, 32, 30, 0.42) 100%
    );
    pointer-events: none;
}

/* Séparation légèrement oblique vers la section beige (même principe que le reste du site) */
.section.section--subpage-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: calc(var(--section-slant) + 2px);
    z-index: 0;
    pointer-events: none;
    background: var(--color-bg-alt);
    clip-path: polygon(0 0, 0 100%, 100% 100%);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.section.section--subpage-hero .container {
    position: relative;
    z-index: 1;
}

.section.section--subpage-hero .subpage-header h1 {
    color: var(--color-white);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.section.section--subpage-hero .subpage-lead {
    color: rgba(255, 255, 255, 0.93);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.section.section--subpage-hero .subpage-back {
    border-top-color: rgba(255, 255, 255, 0.22);
}

.subpage-back {
    margin: 1.5rem 0 0;
    padding-top: 1.35rem;
    border-top: 1px solid rgba(154, 117, 114, 0.14);
    max-width: 40rem;
}

.subpage-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.35rem 0.65rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--color-accent-dark);
    text-decoration: none;
    background: var(--color-white);
    border: 1px solid rgba(154, 117, 114, 0.35);
    border-radius: 999px;
    box-shadow:
        0 2px 8px rgba(44, 40, 37, 0.06),
        0 1px 2px rgba(44, 40, 37, 0.04);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.subpage-back-btn__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    flex-shrink: 0;
}

.subpage-back-btn__icon svg {
    display: block;
}

.subpage-back-btn:hover {
    color: var(--color-white);
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow:
        0 6px 18px rgba(154, 117, 114, 0.35),
        0 2px 6px rgba(44, 40, 37, 0.08);
}

.subpage-back-btn:hover .subpage-back-btn__icon {
    color: var(--color-white);
}

.subpage-back-btn:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

.subpage-header {
    margin-bottom: 0.5rem;
    max-width: 40rem;
}

.subpage-header h1 {
    font-size: clamp(1.85rem, 4.5vw, 2.5rem);
    margin: 0 0 0.5rem;
    color: var(--color-accent-dark);
    text-shadow: none;
    text-align: left;
}

.subpage-lead {
    margin: 0;
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.55;
}

.activites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.activite-card {
    background: var(--color-white);
    padding: 1.75rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--color-accent);
}

.activite-card .card-title {
    margin-top: 0;
    border-bottom: none;
    padding-bottom: 0;
    font-size: 1.4rem;
}

.activite-schedule {
    font-size: 0.95rem;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.activite-card--ateliers {
    border-top-color: var(--color-accent);
}

.activite-card--stages {
    border-top-color: var(--color-accent-light);
}

.activites-galerie {
    margin-top: 2.5rem;
}

.activites-galerie .section-title {
    margin-bottom: 1rem;
}

.activites-facebook {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 0;
}

.activites-facebook .link-facebook {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(154, 117, 114, 0.18);
    border-radius: var(--radius);
    font-weight: 500;
    transition: background 0.2s;
}

.activites-facebook .link-facebook:hover {
    background: rgba(154, 117, 114, 0.28);
}

.stages-galerie-title {
    text-align: center;
    margin-top: 2.75rem;
    margin-bottom: 0.35rem;
    color: var(--color-accent-dark);
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
}

#stages-reservation .section-title {
    text-align: center;
}

.stages-booking-list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: grid;
    gap: 1.5rem;
    max-width: 52rem;
    justify-items: stretch;
}

.stages-booking-empty {
    margin: 0 auto;
    max-width: 52ch;
    text-align: center;
}

.stage-booking-card {
    background: var(--color-white);
    padding: 2rem 2rem 1.75rem;
    border-radius: calc(var(--radius) + 4px);
    box-shadow:
        0 2px 0 rgba(122, 94, 91, 0.12),
        0 12px 40px rgba(44, 40, 37, 0.08);
    border: 1px solid rgba(154, 117, 114, 0.18);
    border-top: 4px solid var(--color-accent);
}

.stage-booking-card__top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(154, 117, 114, 0.12);
}

.stage-booking-card__title {
    margin: 0;
    flex: 1 1 12rem;
    font-size: clamp(1.45rem, 3.5vw, 1.75rem);
    color: var(--color-accent-dark);
    padding-bottom: 0;
    border-bottom: none;
}

.stage-booking-card__dates-badge {
    margin: 0;
    flex-shrink: 0;
    padding: 0.7rem 1.35rem;
    min-width: min(100%, 13.5rem);
    text-align: center;
    font-family: var(--font-serif);
    font-size: clamp(1.12rem, 2.4vw, 1.35rem);
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.25;
    color: var(--color-white);
    text-shadow: 0 1px 2px rgba(44, 40, 37, 0.2);
    background: linear-gradient(155deg, var(--color-accent-dark) 0%, var(--color-accent) 48%, #8f6865 100%);
    border-radius: var(--radius);
    border: 1px solid rgba(60, 45, 43, 0.2);
    box-shadow:
        0 2px 0 rgba(255, 255, 255, 0.2) inset,
        0 6px 20px rgba(122, 94, 91, 0.35);
}

.stage-booking-card__desc {
    margin: 0 0 1.5rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    font-size: 1.04rem;
}

.stage-booking-card__highlights {
    margin: 0 0 1.75rem;
    padding: 1.35rem 1.5rem;
    border-radius: var(--radius);
    background: linear-gradient(165deg, rgba(250, 248, 245, 0.9) 0%, rgba(240, 235, 227, 0.55) 100%);
    border: 1px solid rgba(154, 117, 114, 0.14);
}

.stage-booking-card__highlights-title {
    margin: 0 0 1rem;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-accent-dark);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.stage-booking-facts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem 1.25rem;
}

.stage-booking-fact {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.stage-booking-fact--wide {
    grid-column: 1 / -1;
}

.stage-booking-fact__icon {
    flex-shrink: 0;
    width: 2.65rem;
    height: 2.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-accent);
    box-shadow: 0 2px 8px rgba(44, 40, 37, 0.06);
    border: 1px solid rgba(154, 117, 114, 0.15);
}

.stage-booking-fact__icon svg {
    display: block;
}

.stage-booking-fact__body {
    min-width: 0;
    padding-top: 0.1rem;
}

.stage-booking-fact__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.2rem;
}

.stage-booking-fact__value {
    display: block;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.45;
}

.stage-booking-included {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0.85rem 0 0;
    border-top: 1px dashed rgba(154, 117, 114, 0.25);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.65rem;
}

.stage-booking-included li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0.38rem 0.9rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-accent-dark);
    background: var(--color-white);
    border-radius: 999px;
    border: 1px solid rgba(154, 117, 114, 0.22);
    box-shadow: 0 1px 2px rgba(44, 40, 37, 0.04);
}

.stage-booking-included__icon {
    flex-shrink: 0;
    color: #5a9a6e;
}

.stage-booking-card__cta {
    margin: 0;
    padding-top: 0.25rem;
}

.stage-booking-card__stripe {
    margin: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stage-booking-card__stripe stripe-buy-button {
    display: block;
    width: fit-content;
    max-width: 100%;
}

.stages-cta-block {
    text-align: center;
    margin-top: 2.25rem;
    margin-bottom: 0;
}

.link-facebook .icon-facebook {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.link-facebook .icon-facebook svg {
    display: block;
}

/* Coaching */
.note-box {
    background: rgba(154, 117, 114, 0.15);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--color-accent);
}

.note-box--after-cards {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.coaching-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.coaching-card {
    background: var(--color-white);
    padding: 1.75rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.coaching-card--comcolors {
    position: relative;
    padding-bottom: 5rem;
}

.coaching-card-logo {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    line-height: 0;
}

.coaching-card-logo img {
    width: 140px;
    height: auto;
    max-height: 72px;
    object-fit: contain;
    display: block;
}

.coaching-card .card-title {
    margin-top: 0;
}

/* Tarifs */
.tarifs-table-wrapper {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.tarifs-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.tarifs-table td {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--color-bg-alt);
}

.tarifs-table tr:last-child td {
    border-bottom: none;
}

.tarifs-table td:first-child {
    font-weight: 500;
}

.tarifs-table td:last-child {
    text-align: right;
    white-space: nowrap;
}

.tarifs-table .duree {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-text-muted);
    white-space: normal;
}

.tarifs-notes {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.tarifs-notes p {
    margin-bottom: 0.5rem;
}

/* Contact */
.container--wide {
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
}

.contact-intro {
    text-align: center;
    margin-bottom: 1rem;
}

.footer-facebook {
    text-align: center;
    margin-bottom: 1rem;
}

.section--contact .footer-facebook .link-facebook {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    background: rgba(154, 117, 114, 0.15);
    border-radius: var(--radius);
    font-weight: 500;
    transition: background 0.2s;
}

.section--contact .footer-facebook .link-facebook:hover {
    background: rgba(154, 117, 114, 0.25);
}

.cta-booking--top {
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-feedback {
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.form-feedback--success {
    background: rgba(107, 124, 92, 0.2);
    color: var(--color-accent-dark);
}

.form-feedback--error {
    background: rgba(180, 80, 80, 0.15);
    color: #8b3a3a;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
    margin-top: 2rem;
}

.contact-form-wrapper {
    background: var(--color-white);
    padding: 1.75rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--color-bg-alt);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form p {
    margin-bottom: 1rem;
}

.contact-form .form-actions {
    margin-bottom: 0;
    margin-top: 1.25rem;
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.contact-infos {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-infos .contact-block {
    margin: 0;
}

.contact-block h3 {
    margin-top: 0;
}

.contact-phone,
.contact-email {
    font-size: 1.1rem;
}

.contact-phone a,
.contact-email a {
    font-weight: 500;
}

.cta-booking {
    text-align: center;
    margin-top: 2rem;
}

.contact-map-wrapper {
    margin-top: 2.5rem;
}

.contact-infos .contact-map-wrapper {
    margin-top: 1.25rem;
}

.contact-infos .contact-map-wrapper .card-title {
    margin-bottom: 0.35rem;
    padding-bottom: 0.28rem;
}

.contact-infos .contact-map-legend {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.contact-map-wrapper .card-title {
    margin-bottom: 0.4rem;
    padding-bottom: 0.28rem;
}

/* Carte Leaflet : bordure / coins sur le shell uniquement (pas overflow sur .leaflet-container) */
.contact-map-shell {
    width: 100%;
    max-width: 100%;
    height: 240px;
    min-height: 200px;
    box-sizing: border-box;
    position: relative;
    z-index: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(139, 115, 85, 0.2);
    flex-shrink: 0;
}

.contact-map {
    width: 100%;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
    position: relative;
    z-index: 0;
}

.contact-map.leaflet-container {
    font-family: var(--font-sans);
}

@media (min-width: 769px) {
    .contact-map-shell {
        height: 320px;
        min-height: 260px;
    }
}

.contact-map-legend {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    margin-top: 0.75rem;
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.map-marker-legend {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.map-marker-legend::before {
    content: "";
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--map-marker-genappe);
}

.map-marker-legend.map-marker--genappe::before {
    background: var(--map-marker-genappe);
}

.map-marker-legend.map-marker--reves::before {
    background: var(--map-marker-reves);
}

.map-marker-legend.map-marker--coaching::before {
    background: var(--map-marker-coaching);
}

/* Footer */
.site-footer {
    padding: 2rem 1.25rem;
    background: var(--color-accent-dark);
    color: var(--color-white);
    text-align: center;
    font-size: 0.95rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.9);
}

.site-footer a:hover {
    color: var(--color-white);
}

.footer-name {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.site-footer p {
    margin-bottom: 0.35rem;
}

.site-footer .link-facebook {
    color: rgba(255, 255, 255, 0.95);
}

.site-footer .link-facebook:hover {
    color: var(--color-white);
}

.site-footer p:last-child {
    margin-bottom: 0;
}

/* Lightbox galerie */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.is-open {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    border-radius: var(--radius);
    transition: background 0.2s;
    z-index: 2;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.35);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
    z-index: 2;
    visibility: hidden;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* Bandeau cookies (RGPD / ePrivacy) */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 400;
    padding: 0 0 env(safe-area-inset-bottom, 0);
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-white);
    border-top: 3px solid var(--color-accent);
    box-shadow:
        0 -4px 24px rgba(44, 40, 37, 0.1),
        0 -1px 0 rgba(154, 117, 114, 0.15);
    transform: translateY(110%);
    opacity: 0;
    visibility: hidden;
    transition:
        transform 0.34s ease,
        opacity 0.28s ease,
        visibility 0.34s ease;
}

.cookie-consent.cookie-consent--visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.cookie-consent__inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem 1.35rem;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem 2rem;
}

.cookie-consent__close {
    position: absolute;
    top: 0.65rem;
    right: 0.85rem;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    font-size: 1.35rem;
    line-height: 1;
    color: var(--color-text-muted);
    background: rgba(154, 117, 114, 0.1);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.cookie-consent__close:hover {
    background: rgba(154, 117, 114, 0.2);
    color: var(--color-accent-dark);
}

.cookie-consent__main {
    flex: 1 1 18rem;
    max-width: 46rem;
    padding-right: 2rem;
}

.cookie-consent__title {
    margin: 0 0 0.5rem;
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-accent-dark);
}

.cookie-consent__text {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--color-text-muted);
}

.cookie-consent__text a {
    color: var(--color-accent);
    font-weight: 600;
}

.cookie-consent__details-toggle {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.cookie-consent__details-toggle:hover {
    color: var(--color-accent-dark);
}

.cookie-consent__details {
    margin-top: 0.75rem;
    padding: 0.85rem 1rem;
    background: rgba(240, 235, 227, 0.55);
    border: 1px solid rgba(154, 117, 114, 0.18);
    border-radius: var(--radius);
}

.cookie-consent__list {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--color-text);
}

.cookie-consent__list li {
    margin-bottom: 0.45rem;
}

.cookie-consent__actions {
    flex: 0 1 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
    align-items: center;
}

.cookie-consent__btn {
    white-space: nowrap;
}

.cookie-consent__btn--outline {
    background: transparent;
    color: var(--color-accent-dark);
    border: 2px solid var(--color-accent);
    box-sizing: border-box;
}

.cookie-consent__btn--outline:hover {
    background: rgba(154, 117, 114, 0.1);
    color: var(--color-accent-dark);
    transform: translateY(-1px);
}

body.has-cookie-banner {
    padding-bottom: min(15rem, 42vh);
}

.footer-cookies {
    margin: 1rem 0 0;
    font-size: 0.9rem;
    text-align: center;
}

.footer-cookies__link {
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-cookies__link:hover {
    color: var(--color-accent-dark);
}

@media (max-width: 640px) {
    .cookie-consent__inner {
        padding: 1.15rem 1.1rem 1.25rem;
        padding-top: 2.5rem;
    }

    .cookie-consent__main {
        padding-right: 0;
    }

    .cookie-consent__actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent__btn {
        width: 100%;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent {
        transition: none;
    }
}

/* Curseur personnalisé (thème chevaux — voir /horses/) : souris fine uniquement */
@media (pointer: fine) {
    html {
        cursor: url('../horses/cursor-horse.svg') 22 16, auto;
    }

    a,
    button,
    input[type='button'],
    input[type='submit'],
    input[type='reset'],
    label[for],
    select,
    summary,
    .btn,
    .nav-toggle,
    .galerie-link,
    .testimonial-btn,
    .hero-content-dot,
    .lightbox-close,
    .lightbox-prev,
    .lightbox-next,
    input[type='checkbox'],
    input[type='radio'],
    input[type='file'] {
        cursor: url('../horses/cursor-horse.svg') 22 16, pointer;
    }

    input[type='text'],
    input[type='email'],
    input[type='tel'],
    input[type='search'],
    input[type='password'],
    input[type='number'],
    input[type='url'],
    textarea {
        cursor: text;
    }

    button:disabled,
    .testimonial-btn:disabled {
        cursor: not-allowed;
    }
}
