/* ==========================================================================
   V2 - Refonte Graphique Maëlys Schmitz
   Design organique, premium & moderne
   ========================================================================== */

/* --- CSS Custom Properties --- */
:root {
    /* Palette organique */
    --terracotta: #C2703E;
    --terracotta-light: #D4955F;
    --terracotta-dark: #A05A2E;
    --forest: #2B4A3E;
    --forest-deep: #1A3028;
    --sage: #8FA98B;
    --sage-light: #B5CDAF;
    --cream: #FAF6F0;
    --sand: #E8DFD3;
    --charcoal: #2C2C2C;
    --white: #FFFFFF;
    --text: #3A3A3A;
    --text-light: #6B6B6B;
    --text-muted: #9A9A9A;

    /* Typography */
    --font-heading: 'DM Serif Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --container: 1280px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 40px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow: 0 8px 30px rgba(0,0,0,0.06);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.08);
    --shadow-xl: 0 30px 80px rgba(0,0,0,0.12);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

html {
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--forest-deep);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 60px);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes morphBlob {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-100%); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes lineGrow {
    from { width: 0; }
    to { width: 60px; }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Decorative Organic Blobs --- */
.blob {
    position: absolute;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morphBlob 8s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(194, 112, 62, 0.08), rgba(143, 169, 139, 0.08));
    top: -100px;
    right: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(43, 74, 62, 0.06), rgba(181, 205, 175, 0.06));
    bottom: -80px;
    left: -80px;
    animation-delay: -4s;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dark));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(194, 112, 62, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(194, 112, 62, 0.4);
}

.btn-secondary {
    background: var(--forest);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(43, 74, 62, 0.25);
}

.btn-secondary:hover {
    background: var(--forest-deep);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(43, 74, 62, 0.35);
}

.species-cta i {
    transition: transform 0.3s ease;
}

.species-cta:hover i {
    transform: translateX(4px);
}

.btn-outline {
    background: transparent;
    color: var(--forest);
    border-color: var(--forest);
}

.btn-outline:hover {
    background: var(--forest);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--forest);
    border-color: var(--white);
}

.btn-ghost {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    color: var(--white);
    border-color: rgba(255,255,255,0.2);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-3px);
}

.btn-large {
    padding: 18px 42px;
    font-size: 1.05rem;
}

/* --- Section Utilities --- */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 20px;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 2px;
    background: var(--terracotta);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    color: var(--forest-deep);
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    line-height: 1.8;
}

.section-padding {
    padding: clamp(60px, 8vw, 120px) 0;
    overflow: hidden;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(250, 246, 240, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.logo a {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--white);
    line-height: 1.1;
}

.header.scrolled .logo-name {
    color: var(--forest-deep);
}

.logo-tagline {
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--terracotta);
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    position: relative;
    letter-spacing: 0.02em;
}

.header.scrolled .nav-links a {
    color: var(--text);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--terracotta);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: rgba(255,255,255,0.6);
}

.header.scrolled .nav-links a:hover {
    color: var(--forest);
}

.nav-cta {
    z-index: 100;
}

.nav-socials {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 24px;
}

.nav-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    transition: var(--transition);
}

.nav-socials a:hover {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: var(--white);
    transform: translateY(-2px);
}

.header.scrolled .nav-socials a {
    color: var(--forest);
    border-color: rgba(45, 74, 58, 0.2);
}

.header.scrolled .nav-socials a:hover {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: var(--white);
}

/* Bouton "Prendre RDV" en outline sur le header transparent (accueil) */
.header:not(.scrolled) .nav-cta .btn-primary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.7);
    color: var(--white);
    box-shadow: none;
}

.header:not(.scrolled) .nav-cta .btn-primary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--white);
    color: var(--white);
}


/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 100;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.header.scrolled .hamburger span {
    background: var(--forest-deep);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Nav Overlay */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--forest-deep);
    z-index: 90;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.mobile-nav.active {
    display: block;
    opacity: 1;
}

.mobile-nav-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 100px 40px 48px;
    overflow-y: auto;
}


.mobile-nav-links {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mobile-nav-links a {
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 7vw, 2.2rem);
    color: rgba(255, 255, 255, 0.65);
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: block;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-nav-links a:hover {
    color: var(--white);
    padding-left: 10px;
}

.mobile-nav-links a.active {
    color: var(--terracotta-light);
}

.mobile-nav-footer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 24px;
}

.mobile-nav-footer > .btn {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 16px 32px;
}

.mobile-nav-socials {
    display: flex;
    gap: 12px;
}

.mobile-nav-socials a {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    padding: 0;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.mobile-nav-socials a:hover {
    border-color: var(--terracotta);
    color: var(--terracotta);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--forest-deep);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* Fond décoratif : neutralise l'overlay de contrôle média de Chrome au survol */
    pointer-events: none;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-bg video,
.hero-bg .hero-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    opacity: 0.4;
}

/* Repli masqué par défaut : l'attribut poster couvre le chargement.
   Il n'apparaît que si la vidéo est retirée (data saver / reduced motion). */
.hero-bg .hero-fallback {
    display: none;
    z-index: 0;
}

.hero-bg.no-video .hero-fallback {
    display: block;
}

.hero-bg video {
    z-index: 1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(135deg, rgba(26, 48, 40, 0.85) 0%, rgba(43, 74, 62, 0.6) 50%, rgba(194, 112, 62, 0.2) 100%);
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg video {
        display: none;
    }

    .hero-bg .hero-fallback {
        display: block;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    /* Enfant d'un conteneur flex : sans largeur explicite il se reduit a son
       contenu et ne s'aligne plus sur l'en-tete. */
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    /* padding-block seul : le raccourci padding effacait la gouttiere laterale
       de .container, et le texte touchait le bord entre 1024 et 1400 px. */
    padding-block: 120px 80px;
}

.hero-text {
    animation: fadeInLeft 1s ease 0.3s forwards;
    opacity: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(194, 112, 62, 0.15);
    border: 1px solid rgba(194, 112, 62, 0.3);
    border-radius: 100px;
    color: var(--terracotta-light);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    font-size: 0.7rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: var(--white);
    margin-bottom: 25px;
    line-height: 1.1;
}

.hero h1 span {
    display: block;
    color: var(--terracotta-light);
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.45em;
    letter-spacing: 2px;
    margin-top: 10px;
}

.hero-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    max-width: 500px;
    margin-bottom: 40px;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    animation: fadeInRight 1s ease 0.5s forwards;
    opacity: 0;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    max-width: 450px;
    margin-left: auto;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30% 70% 60% 40% / 50% 40% 60% 50%;
    animation: morphBlob 10s ease-in-out infinite;
}

.hero-float-badge {
    position: absolute;
    bottom: 40px;
    left: -40px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-lg);
    padding: 20px 28px;
    color: var(--white);
    animation: float 6s ease-in-out infinite;
}

.hero-float-badge .badge-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    display: block;
    line-height: 1;
    color: var(--terracotta-light);
}

.hero-float-badge .badge-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-top: 4px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-icon {
    width: 30px;
    height: auto;
    /* le PNG est noir sur fond transparent : inverse pour le hero sombre */
    filter: invert(1);
    opacity: 0.75;
    animation: scrollBob 2.2s ease-in-out infinite;
}

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

@keyframes scrollBob {
    0%, 100% { transform: translateY(0); opacity: 0.75; }
    50%      { transform: translateY(5px); opacity: 1; }
}

/* ==========================================================================
   SERVICES / ESPÈCES
   ========================================================================== */
.services {
    position: relative;
    background: var(--white);
}

.services-header {
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    position: relative;
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: 40px 28px 32px;
    transition: var(--transition);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
    cursor: pointer;
    group: true;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--terracotta), var(--sage));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

.service-icon-v2 {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(43, 74, 62, 0.08), rgba(143, 169, 139, 0.12));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--forest);
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-card:hover .service-icon-v2 {
    background: linear-gradient(135deg, var(--forest), var(--sage));
    color: var(--white);
    transform: rotate(-5deg) scale(1.05);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.92rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--terracotta);
}

.service-link i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-link i {
    transform: translateX(5px);
}

/* ==========================================================================
   ABOUT / OSTEO SECTION
   ========================================================================== */
.about {
    position: relative;
    background: var(--cream);
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.about-img-main img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-img-main:hover img {
    transform: scale(1.03);
}

.about-accent-shape {
    position: absolute;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--terracotta), var(--terracotta-light));
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morphBlob 8s ease-in-out infinite;
    bottom: -40px;
    right: -40px;
    z-index: -1;
    opacity: 0.15;
}

.about-badge {
    position: absolute;
    bottom: -20px;
    left: 30px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 28px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 5;
}

.about-badge-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dark));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

.about-badge-text strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--forest-deep);
}

.about-badge-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.about-content .lead {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--forest);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.8;
}

.check-list {
    margin: 28px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 500;
    color: var(--text);
}

.check-list li .check-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, rgba(143, 169, 139, 0.2), rgba(181, 205, 175, 0.3));
    color: var(--forest);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}

/* ==========================================================================
   PROCESS / DÉROULEMENT
   ========================================================================== */
.process {
    background: var(--forest-deep);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.process::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(194, 112, 62, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.process .section-label {
    color: var(--terracotta-light);
}

.process .section-label::before {
    background: var(--terracotta-light);
}

.process .section-title {
    color: var(--white);
}

.process .section-desc {
    color: rgba(255,255,255,0.65);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
    position: relative;
}

/* Connecting line between steps */
.process-grid::before {
    content: '';
    position: absolute;
    top: 80px;
    left: calc(12.5% + 16px);
    right: calc(12.5% + 16px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(194, 112, 62, 0.25) 20%, rgba(194, 112, 62, 0.25) 80%, transparent);
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-lg);
    padding: 40px 28px 36px;
    transition: var(--transition);
}

.process-step:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(194, 112, 62, 0.25);
    transform: translateY(-4px);
}

.step-num {
    width: 84px;
    height: 84px;
    margin: 0 auto 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Le trace des icones est fin : sur fond sombre il lui faut de la taille
       et un disque nettement detache du fond de la carte. */
    font-size: 2rem;
    background: rgba(194, 112, 62, 0.18);
    border: 1.5px solid rgba(212, 149, 95, 0.55);
    color: #F0B584;
    transition: var(--transition);
    position: relative;
}

.step-num::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1px solid rgba(194, 112, 62, 0.08);
}

.step-counter {
    /* Le numero reprend le vocabulaire du libelle de section : un chiffre
       serif encadre de deux filets, plutot qu'une pastille de notification.
       Les filets sont peints en fond, le pseudo-element portant le compteur. */
    position: relative;
    z-index: 3;
    display: inline-block;
    padding: 0 26px;
    background-image:
        linear-gradient(90deg, transparent, rgba(212, 149, 95, 0.65)),
        linear-gradient(90deg, rgba(212, 149, 95, 0.65), transparent);
    background-size: 18px 1px, 18px 1px;
    background-position: left center, right center;
    background-repeat: no-repeat;
    color: var(--terracotta-light);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-indent: 0.22em;
    margin: 18px 0 16px;
    transition: var(--transition);
}

.process-step:hover .step-num {
    background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dark));
    color: var(--white);
    border-color: var(--terracotta);
}

.process-step:hover .step-counter {
    color: var(--sand);
    background-image:
        linear-gradient(90deg, transparent, rgba(232, 223, 211, 0.7)),
        linear-gradient(90deg, rgba(232, 223, 211, 0.7), transparent);
}

.process-step h4 {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 12px;
}

.process-step p {
    color: rgba(255,255,255,0.68);
    font-size: 0.88rem;
    line-height: 1.75;
    max-width: 220px;
    margin: 0 auto;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials {
    background: var(--white);
    position: relative;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 50px;
}

.testimonial-card {
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: 36px 30px 28px;
    position: relative;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.testimonial-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 20px;
    color: #F5A623;
    font-size: 0.85rem;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 24px;
    font-style: italic;
    position: relative;
}

.testimonial-quote-icon {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2.5rem;
    color: rgba(194, 112, 62, 0.08);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sage-light), var(--sage));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--forest);
}

.testimonial-meta h4 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.testimonial-meta span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   CTA / CABINET SECTION
   ========================================================================== */
.cta-section {
    position: relative;
    padding: clamp(80px, 10vw, 140px) 0;
    overflow: hidden;
}

.cta-section .cta-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cta-section .cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-section .cta-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(43, 74, 62, 0.92) 0%, rgba(26, 48, 40, 0.88) 100%);
}

.cta-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 750px;
    margin: 0 auto;
}

.cta-inner h2 {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.cta-inner p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: var(--charcoal);
    color: rgba(255,255,255,0.65);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-brand {
    max-width: 350px;
}

.footer-brand .footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 6px;
}

.footer-brand .footer-logo-sub {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--terracotta-light);
    font-weight: 600;
    margin-bottom: 20px;
    display: block;
}

.footer-brand p {
    font-size: 0.92rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.65);
    transition: var(--transition);
    font-size: 1rem;
}

.footer-socials a:hover {
    background: var(--terracotta);
    color: var(--white);
    transform: translateY(-3px);
}

.footer h4 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 24px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
    font-size: 0.92rem;
    line-height: 1.6;
}

.footer-contact li i {
    color: var(--terracotta-light);
    margin-top: 4px;
    width: 16px;
    flex-shrink: 0;
}

.footer-contact a {
    color: rgba(255,255,255,0.65);
}

.footer-contact a:hover {
    color: var(--terracotta-light);
}

.footer-zones li {
    padding: 6px 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-zones li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--terracotta);
    opacity: 0.5;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.4);
}

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

/* ==========================================================================
   PAGE HEADER (Sub-pages)
   ========================================================================== */
.page-hero {
    position: relative;
    padding: 180px 0 100px;
    background: var(--forest-deep);
    overflow: hidden;
    text-align: center;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 48, 40, 0.9), rgba(43, 74, 62, 0.75));
    z-index: 1;
}

.page-hero .bg-img {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-hero .bg-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--white);
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 1.15rem;
    color: var(--terracotta-light);
    font-weight: 500;
}

.page-hero .breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.page-hero .breadcrumb a {
    color: rgba(255,255,255,0.5);
}

.page-hero .breadcrumb a:hover {
    color: var(--white);
}

.page-hero .breadcrumb .sep {
    color: rgba(255,255,255,0.25);
}

/* ==========================================================================
   SPECIES BLOCKS (Prestations Page)
   ========================================================================== */
.species-section {
    position: relative;
}

.species-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 5vw, 80px);
    align-items: center;
    padding: clamp(40px, 6vw, 80px) 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.species-block:last-child {
    border-bottom: none;
}

.species-block.reverse {
    direction: rtl;
}

.species-block.reverse > * {
    direction: ltr;
}

.species-img {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.species-img img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.species-img:hover img {
    transform: scale(1.04);
}

.species-info .species-icon-badge {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--forest), var(--sage));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 24px;
}

.species-info h3 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 16px;
}

.species-info > p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.species-features {
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.species-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--text);
}

.species-features li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--terracotta), var(--terracotta-light));
    flex-shrink: 0;
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
.contact-section {
    background: var(--cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
}

.contact-info-card {
    background: var(--forest-deep);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(194, 112, 62, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.contact-info-card h3 {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 10px;
}

.contact-info-card > p {
    color: rgba(255,255,255,0.6);
    margin-bottom: 36px;
    line-height: 1.7;
}

.contact-item {
    display: flex;
    gap: 18px;
    margin-bottom: 28px;
}

.contact-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terracotta-light);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-item-text h4 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 4px;
}

.contact-item-text p {
    color: rgba(255,255,255,0.55);
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-item-text a {
    color: rgba(255,255,255,0.75);
}

.contact-item-text a:hover {
    color: var(--terracotta-light);
}

.contact-item-text small {
    display: block;
    color: rgba(255,255,255,0.35);
    font-size: 0.8rem;
    margin-top: 4px;
}

.contact-socials {
    display: flex;
    gap: 12px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.contact-socials a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.contact-socials a:hover {
    background: var(--terracotta);
    color: var(--white);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 48px 44px;
    box-shadow: var(--shadow-lg);
}

.contact-form-card h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.contact-form-card .form-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--forest-deep);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--cream);
    color: var(--text);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--terracotta);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(194, 112, 62, 0.08);
}

.form-submit {
    margin-top: 8px;
}

.w-full { width: 100%; }

.map-section {
    position: relative;
}

.map-section iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: none;
    filter: saturate(0.7) contrast(1.1);
}

/* ==========================================================================
   TEACHING / ENSEIGNEMENT
   ========================================================================== */
.teaching-section {
    background: var(--cream);
    position: relative;
    overflow: hidden;
}

.teaching-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: center;
}

.teaching-content .lead {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--forest);
    line-height: 1.8;
    margin-bottom: 20px;
}

.teaching-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.teaching-card {
    display: block;
    background: linear-gradient(160deg, var(--forest-deep), #0F1F18);
    border-radius: var(--radius-xl);
    padding: 44px 40px;
    position: relative;
    box-shadow: 0 20px 60px rgba(26, 48, 40, 0.2);
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.teaching-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 70px rgba(26, 48, 40, 0.3);
}

.teaching-card::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(194,112,62,0.15), transparent 70%);
    pointer-events: none;
}

.teaching-card > * {
    position: relative;
    z-index: 1;
}

.teaching-card-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #FAF6F0, #EDE3D2);
    border-radius: 16px;
    padding: 24px 20px;
    margin: -10px -10px 28px;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06),
                0 10px 30px rgba(0,0,0,0.25);
}

.teaching-card-logo::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: radial-gradient(ellipse at top, rgba(255,255,255,0.5), transparent 60%);
    pointer-events: none;
}

.teaching-card-logo img {
    display: block;
    height: 80px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    position: relative;
    z-index: 1;
}

.teaching-card-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 8px;
}

.teaching-card h3 {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    color: var(--white);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.teaching-card-sub {
    color: rgba(255,255,255,0.65);
    font-size: 0.95rem;
    margin-bottom: 28px;
    line-height: 1.5;
}

.teaching-card-meta {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.teaching-meta-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255,255,255,0.85);
    font-size: 0.92rem;
}

.teaching-meta-item i {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(194,112,62,0.15);
    color: var(--terracotta);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.teaching-card-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
    color: var(--terracotta);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: gap 0.3s ease, color 0.3s ease;
}

.teaching-card-link i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.teaching-card:hover .teaching-card-link {
    gap: 14px;
    color: var(--terracotta-light);
}

.teaching-card:hover .teaching-card-link i {
    transform: translate(2px, -2px);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
/* Entre 1025 et 1400 px la colonne de texte devenait trop etroite : les deux
   boutons du bandeau passaient l'un sous l'autre. */
@media (min-width: 1025px) and (max-width: 1400px) {
    .hero-content {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 48px;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-visual {
        display: none;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid::before {
        display: none;
    }

    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .species-block,
    .species-block.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .teaching-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-socials {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions {
        flex-direction: column;
    }
}

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

    .step-num {
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
    }

    .hero-badge {
        font-size: 0.7rem;
        letter-spacing: 0.8px;
        padding: 7px 14px;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .container {
        padding: 0 20px;
    }
}

/* ==========================================================================
   UTILITY RESPONSIVE GRIDS
   ========================================================================== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.grid-2-alt {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.grid-2-tight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-2-alt {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

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

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .grid-2-alt {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .grid-2-tight {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   FORMATIONS
   ========================================================================== */
.formations-section {
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.formations-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 880px;
}

.formation-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 28px;
    background: var(--cream);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.formation-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateX(6px);
}

.formation-card-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(43, 74, 62, 0.08), rgba(143, 169, 139, 0.12));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--forest);
    transition: var(--transition);
}

.formation-card:hover .formation-card-icon {
    background: linear-gradient(135deg, var(--forest), var(--sage));
    color: var(--white);
    transform: rotate(-5deg) scale(1.05);
}

.formation-card-date {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--terracotta);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.formation-card-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--forest-deep);
    line-height: 1.35;
    margin-bottom: 6px;
}

.formation-card-instructor {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.formation-card-instructor a {
    color: var(--forest);
    text-decoration: none;
    border-bottom: 1px solid rgba(43, 74, 62, 0.25);
    transition: var(--transition);
}

.formation-card-instructor a:hover {
    color: var(--terracotta);
    border-color: var(--terracotta);
}

.formation-card-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .formation-card {
        grid-template-columns: 56px 1fr;
        gap: 18px;
        padding: 24px;
    }
    .formation-card-icon {
        width: 56px;
        height: 56px;
        font-size: 1.15rem;
        border-radius: 16px;
    }
    .formation-card-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .formation-card {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .formation-card-icon {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }
}

/* ==========================================================================
   PAGES LÉGALES
   ========================================================================== */
.legal-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 64px;
    align-items: start;
}

.legal-toc-inner {
    position: sticky;
    top: 100px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    border: 1px solid var(--sand);
}

.legal-toc-inner h4 {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.legal-toc-inner ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.legal-toc-inner li a {
    font-size: 0.85rem;
    color: var(--text-light);
    display: block;
    padding: 5px 0;
    border-bottom: 1px solid var(--sand);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.legal-toc-inner li:last-child a {
    border-bottom: none;
}

.legal-toc-inner li a:hover {
    color: var(--terracotta);
    padding-left: 6px;
}

.legal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--forest-deep);
    margin: 52px 0 20px;
    padding-top: 16px;
    border-top: 1px solid var(--sand);
}

.legal-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.legal-content h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--forest);
    margin: 28px 0 10px;
}

.legal-content p {
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 14px;
    font-size: 0.95rem;
}

.legal-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.legal-content ul li {
    color: var(--text-light);
    line-height: 1.7;
    padding-left: 18px;
    position: relative;
    font-size: 0.95rem;
}

.legal-content ul li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: var(--terracotta);
}

.legal-content a {
    color: var(--terracotta);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-info-box {
    background: var(--cream);
    border-left: 3px solid var(--terracotta);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 20px 24px;
    margin: 20px 0 28px;
}

.legal-info-box p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

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

    .legal-toc {
        display: none;
    }
}

/* ==========================================================================
   ÉCURIES SUIVIES - cartes « plaque d'écurie »
   ========================================================================== */
.ecuries {
    position: relative;
    background: var(--cream);
}

.ecuries-header {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 60px;
}

.ecuries-header .section-label {
    justify-content: center;
}

.ecuries-header p {
    color: var(--text-light);
    line-height: 1.8;
}

.ecuries-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
}

.ecurie-card {
    display: flex;
    flex-direction: column;
    flex: 0 1 320px;
    background: var(--white);
    border: 1px solid var(--sand);
    border-radius: var(--radius-lg);
    padding: 0 0 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.45s ease, border-color 0.45s ease;
}

.ecurie-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(194, 112, 62, 0.35);
}

/* --- Bandeau photo --- */
.ecurie-media {
    position: relative;
    flex-shrink: 0;
    height: 190px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    background: linear-gradient(140deg, var(--forest) 0%, var(--forest-deep) 100%);
}

.ecurie-media img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ecurie-card:hover .ecurie-media img {
    transform: scale(1.07);
}

/* Motif discret, visible seulement si la photo manque */
.ecurie-media::before {
    z-index: 0;
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512' fill='%23ffffff'%3E%3Cpath d='M448 238.1l0-78.1 16 0 9.8 19.6c12.5 25.1 42.2 36.4 68.3 26c20.5-8.2 33.9-28 33.9-50.1L576 80c0-19.1-8.4-36.3-21.7-48l5.7 0c8.8 0 16-7.2 16-16s-7.2-16-16-16L480 0 448 0C377.3 0 320 57.3 320 128l-96 0-20.8 0-54.4 0c-30.7 0-57.6 16.3-72.5 40.8C33.2 174.5 0 211.4 0 256l0 56c0 13.3 10.7 24 24 24s24-10.7 24-24l0-56c0-13.4 6.6-25.2 16.7-32.5c1.6 13 6.3 25.4 13.6 36.4l28.2 42.4c8.3 12.4 6.4 28.7-1.2 41.6c-16.5 28-20.6 62.2-10 93.9l17.5 52.4c4.4 13.1 16.6 21.9 30.4 21.9l33.7 0c21.8 0 37.3-21.4 30.4-42.1l-20.8-62.5c-2.1-6.4-.5-13.4 4.3-18.2l12.7-12.7c13.2-13.2 20.6-31.1 20.6-49.7c0-2.3-.1-4.6-.3-6.9l84 24c4.1 1.2 8.2 2.1 12.3 2.8L320 480c0 17.7 14.3 32 32 32l32 0c17.7 0 32-14.3 32-32l0-164.3c19.2-19.2 31.5-45.7 32-75.7c0 0 0 0 0 0l0-1.9zM496 64a16 16 0 1 1 0 32 16 16 0 1 1 0-32z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 3rem;
    opacity: 0.12;
}

/* Variante canine : le motif de repli suit l'espece */
.ecuries-canin .ecurie-media::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512' fill='%23ffffff'%3E%3Cpath d='M309.6 158.5L332.7 19.8C334.6 8.4 344.5 0 356.1 0c7.5 0 14.5 3.5 19 9.5L392 32l52.1 0c12.7 0 24.9 5.1 33.9 14.1L496 64l56 0c13.3 0 24 10.7 24 24l0 24c0 44.2-35.8 80-80 80l-32 0-16 0-21.3 0-5.1 30.5-112-64zM416 256.1L416 480c0 17.7-14.3 32-32 32l-32 0c-17.7 0-32-14.3-32-32l0-115.2c-24 12.3-51.2 19.2-80 19.2s-56-6.9-80-19.2L160 480c0 17.7-14.3 32-32 32l-32 0c-17.7 0-32-14.3-32-32l0-230.2c-28.8-10.9-51.4-35.3-59.2-66.5L1 167.8c-4.3-17.1 6.1-34.5 23.3-38.8s34.5 6.1 38.8 23.3l3.9 15.5C70.5 182 83.3 192 98 192l30 0 16 0 159.8 0L416 256.1zM464 80a16 16 0 1 0 -32 0 16 16 0 1 0 32 0z'/%3E%3C/svg%3E");
}

/* --- Appel a l'action, revele au survol --- */
.ecurie-media .ecurie-overlay {
    position: absolute;
    left: 50%;
    bottom: 22px;
    z-index: 3;
    transform: translate(-50%, 14px);
    opacity: 0;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
    padding: 11px 22px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    color: var(--forest-deep);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 6px 22px rgba(26, 48, 40, 0.25);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ecurie-card:hover .ecurie-overlay {
    opacity: 1;
    transform: translate(-50%, 0);
}

.ecurie-overlay i {
    font-size: 0.7rem;
    color: var(--terracotta);
    transition: transform 0.4s ease;
}

.ecurie-card:hover .ecurie-overlay i {
    transform: translateX(4px);
}

/* Voile qui assombrit la photo pour detacher la pastille */
.ecurie-media::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to top, rgba(26, 48, 40, 0.65) 0%, rgba(26, 48, 40, 0.1) 55%, transparent 100%);
    opacity: 0;
    transition: opacity 0.45s ease;
}

.ecurie-card:hover .ecurie-media::after {
    opacity: 1;
}

/* Carte sans lien : aucun signal de clic */
.ecurie-card-static {
    cursor: default;
}

.ecurie-card-static:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
    border-color: var(--sand);
}

.ecurie-card-static:hover .ecurie-media img {
    transform: none;
}

/* Sans survol possible (tactile), l'appel reste visible */
@media (hover: none) {
    .ecurie-card:not(.ecurie-card-static) .ecurie-media::after {
        opacity: 1;
    }

    .ecurie-overlay {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* --- Texte --- */
.ecurie-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--forest-deep);
    margin: 30px 24px 14px;
}

.ecurie-rule {
    width: 26px;
    height: 2px;
    background: var(--terracotta);
    margin: 0 auto 14px;
    transition: width 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ecurie-card:hover .ecurie-rule {
    width: 64px;
}

.ecurie-card p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0 26px 18px;
    min-height: 44px;
}

.ecurie-meta {
    margin-top: auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 20px;
}

.ecurie-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 100px;
}

.ecurie-chip-place {
    color: var(--forest);
    background: rgba(143, 169, 139, 0.16);
}

/* --- Variante partenaires : cartes plus larges, icone de metier --- */
.ecuries-partenaires .ecurie-card {
    flex: 0 1 460px;
}

/* Icone thematique, visible tant qu'aucune photo n'est deposee */
.ecurie-media-icon {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.16);
}

.ecuries-partenaires .ecurie-media::before {
    content: none;
}

.ecurie-sub {
    display: block;
    margin: 0 24px 14px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--terracotta);
}

.ecurie-sub + .ecurie-rule {
    margin-top: 0;
}

.ecuries-partenaires .ecurie-card h3 {
    margin-bottom: 8px;
}

/* Contacts multiples : la carte n'est pas un lien, ils le sont */
.ecurie-links {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 26px;
}

.ecurie-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--terracotta);
}

.ecurie-links a:hover {
    color: var(--terracotta-dark);
}

/* --- Variante accueil : rail horizontal, especes melangees --- */
.ecuries-mixte {
    background: var(--white);
}

.ecuries-rail-wrap {
    position: relative;
}

.ecuries-rail {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 4px;
    /* laisse respirer l'ombre portee des cartes */
    padding: 6px 4px 24px;
    scrollbar-width: thin;
    scrollbar-color: var(--sand) transparent;
}

.ecuries-rail::-webkit-scrollbar {
    height: 6px;
}

.ecuries-rail::-webkit-scrollbar-thumb {
    background: var(--sand);
    border-radius: 100px;
}

.ecuries-rail .ecurie-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
}

/* Fondu sur le bord droit : signale qu'il reste des cartes */
.ecuries-rail-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 24px;
    width: 70px;
    pointer-events: none;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--white));
}

/* Fleches de defilement */
.rail-btn {
    position: absolute;
    top: 95px;
    z-index: 4;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--sand);
    background: var(--white);
    color: var(--forest-deep);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: background 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}

.rail-btn:hover {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: var(--white);
}

.rail-btn:disabled {
    opacity: 0;
    pointer-events: none;
}

.rail-btn-prev {
    left: -18px;
}

.rail-btn-next {
    right: -18px;
}

/* Badge d'espece, pour lire le melange d'un coup d'oeil */
.ecurie-species {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
    backdrop-filter: blur(4px);
}

.ecurie-species-equin {
    background: rgba(194, 112, 62, 0.85);
}

.ecurie-species-canin {
    background: rgba(43, 74, 62, 0.85);
}

.ecuries-rail-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 44px;
}

/* Sur mobile le doigt suffit : les fleches et le fondu disparaissent */
@media (hover: none), (max-width: 768px) {
    .rail-btn,
    .ecuries-rail-wrap::after {
        display: none;
    }
}

/* --- Encart de fin --- */
.ecuries-note {
    max-width: 720px;
    margin: 56px auto 0;
    text-align: center;
    background: var(--white);
    border: 1px dashed var(--sand);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
}

.ecuries-note p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 22px;
}

@media (max-width: 768px) {
    .ecurie-card {
        flex: 0 1 100%;
        max-width: 360px;
    }

    .ecuries-note {
        padding: 30px 24px;
    }
}

/* ==========================================================================
   PASSAGE TÉLÉ - reportage
   ========================================================================== */
.presse {
    position: relative;
    background: var(--forest-deep);
    overflow: hidden;
}

.presse::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -12%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, rgba(194, 112, 62, 0.16) 0%, transparent 65%);
    pointer-events: none;
}

.presse-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 72px;
    align-items: center;
}

.presse .section-title {
    color: var(--white);
}

.presse-content > p {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.8;
    margin-bottom: 26px;
}

/* --- Bandeau chaîne --- */
/* Bloc accreditation : le logo anthracite exige un fond clair */
.presse-chaine {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    margin: 6px 0 30px;
    padding: 14px 22px;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.presse-logo {
    display: inline-flex;
    align-items: center;
}

.presse-logo img {
    height: 40px;
    width: auto;
    display: block;
}

.presse-chaine-sep {
    width: 1px;
    height: 30px;
    background: rgba(26, 48, 40, 0.14);
}

.presse-chaine-sub {
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    line-height: 1.4;
}

/* --- Points clés --- */
.presse-points {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.presse-points li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Lecteur --- */
.presse-player {
    margin: 0;
}

.presse-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.presse-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Bouton de lecture, retiré une fois le reportage lancé */
.presse-play {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    border: 0;
    cursor: pointer;
    background: rgba(26, 48, 40, 0.35);
    color: var(--white);
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.4s ease, opacity 0.4s ease;
}

.presse-play:hover {
    background: rgba(26, 48, 40, 0.2);
}

.presse-play i {
    position: relative;
    z-index: 1;
    /* recentre optiquement le triangle dans le cercle */
    margin-left: 5px;
}

.presse-play-ring {
    position: absolute;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(194, 112, 62, 0.92);
    box-shadow: 0 0 0 0 rgba(194, 112, 62, 0.5);
    transition: transform 0.4s ease, background 0.4s ease;
    animation: pulseRing 2.8s infinite;
}

.presse-play:hover .presse-play-ring {
    transform: scale(1.08);
    background: var(--terracotta);
}

@keyframes pulseRing {
    0%   { box-shadow: 0 0 0 0 rgba(194, 112, 62, 0.45); }
    70%  { box-shadow: 0 0 0 26px rgba(194, 112, 62, 0); }
    100% { box-shadow: 0 0 0 0 rgba(194, 112, 62, 0); }
}

.presse-frame.is-playing .presse-play,
.presse-frame.is-playing .presse-tag {
    opacity: 0;
    pointer-events: none;
}

.presse-tag {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 100px;
    background: rgba(194, 112, 62, 0.9);
    color: var(--white);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    transition: opacity 0.4s ease;
}

.presse-player figcaption {
    margin-top: 16px;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
}

@media (prefers-reduced-motion: reduce) {
    .presse-play-ring {
        animation: none;
    }
}

@media (max-width: 1024px) {
    .presse-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 480px) {
    .presse-chaine {
        gap: 14px;
        padding: 12px 16px;
    }

    .presse-logo img {
        height: 32px;
    }
}

/* --- Icones SVG (sprite auto-heberge, remplace Font Awesome) --- */
.icon {
    width: 1em;
    height: 1em;
    fill: currentColor;
    display: inline-block;
    vertical-align: -0.125em;
    flex-shrink: 0;
}

/* Mention d'ordre sous le badge de formation (etait en style en ligne) */
.about-badge-note {
    display: block;
    font-size: 0.72rem;
    color: var(--terracotta);
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-top: 2px;
}

/* Variante : visuel a droite */
.about-grid.is-reversed {
    grid-template-columns: 1.2fr 1fr;
}

.about-grid.is-reversed .about-visual {
    order: 2;
}

/* Reprises de styles qui etaient en ligne dans le HTML statique */
.icon-inline {
    font-size: 0.7rem;
    width: 0.7em;
    height: 0.7em;
}

.formations-section .section-desc {
    margin-bottom: 48px;
}

.accent {
    color: var(--terracotta);
}

/* Numerotation automatique des etapes : plus de numero saisi a la main */
.process-grid {
    counter-reset: etape;
}

/* Le trait de liaison suppose une seule rangee de quatre etapes. */
.process-grid::before {
    display: none;
}

/* La grille s'adapte au nombre d'etapes : en ajouter ou en retirer ne casse
   pas la mise en page. Sans regle, quatre colonnes restaient imposees.
   Les largeurs reduites gardent leurs propres reglages, plus bas. */
@media (min-width: 1025px) {
    .process-grid:has(.process-step:nth-child(1):nth-last-child(1)) {
        grid-template-columns: minmax(0, 320px);
        justify-content: center;
    }

    .process-grid:has(.process-step:nth-child(1):nth-last-child(2)) {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid:has(.process-step:nth-child(1):nth-last-child(3)) {
        grid-template-columns: repeat(3, 1fr);
    }

    .process-grid:has(.process-step:nth-child(1):nth-last-child(5)),
    .process-grid:has(.process-step:nth-child(1):nth-last-child(6)) {
        grid-template-columns: repeat(3, 1fr);
    }

    .process-grid:has(.process-step:nth-child(4):nth-last-child(1))::before {
        display: block;
    }
}

.process-step {
    counter-increment: etape;
}

.step-counter:empty::before {
    content: counter(etape, decimal-leading-zero);
}

/* Centrage de l'en-tete de la section deroulement (etait en style en ligne) */
.process .text-center .section-label {
    justify-content: center;
}

.process .text-center .section-desc {
    text-align: center;
}

.species-cta {
    margin-top: 16px;
}

.testimonials-actions {
    margin-top: 40px;
}

.testimonials .text-center .section-label {
    justify-content: center;
}

/* Ecran de consentement de la carte Google */
.map-consent {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px;
    text-align: center;
    background: var(--sand);
    color: var(--text);
}

/* --- WordPress : en-tete fixe et barre d'administration --- */

/* La barre d'administration ne doit pas recouvrir l'en-tete */
.admin-bar .header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .header {
        top: 46px;
    }
}

/* Le contenu passe sous l'en-tete fixe, sauf quand la page commence par un
   bandeau, qui gere lui-meme son espacement superieur. */
main {
    padding-top: 110px;
}

main:has(> .hero:first-child),
main:has(> .page-hero:first-child),
main:has(> .cta-section:first-child),
main:has(> .wp-block-post-content > .hero:first-child),
main:has(> .wp-block-post-content > .page-hero:first-child),
main:has(> .wp-block-post-content > .cta-section:first-child) {
    padding-top: 0;
}

/* --- Formulaire de demande --- */

/* Champ leurre : present dans le DOM, invisible pour les humains */
.form-leurre {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-field-error {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: #b3261e;
}

.form-error {
    padding: 14px 18px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: rgba(179, 38, 30, 0.08);
    color: #b3261e;
}

.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px 24px;
    text-align: center;
    color: var(--forest-deep);
}

.form-success .icon {
    width: 2.5rem;
    height: 2.5rem;
    padding: 12px;
    border-radius: 50%;
    background: var(--sage-light);
    color: var(--forest-deep);
    box-sizing: content-box;
}

.form-consent label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.5;
    cursor: pointer;
}

.form-consent input {
    margin-top: 3px;
    flex-shrink: 0;
}

/* --- Navigation principale rendue par le bloc de navigation ---
   Le bloc coeur applique .wp-block-navigation .wp-block-navigation-item__content,
   plus specifique que .nav-links a : les couleurs doivent etre reprises ici. */
.header .nav-links a,
.header .nav-links .wp-block-navigation-item__content {
    color: rgba(255, 255, 255, 0.9);
}

.header .nav-links .wp-block-navigation-item__content:hover,
.header .nav-links .wp-block-navigation-item__content:focus {
    color: var(--white);
}

.header.scrolled .nav-links a,
.header.scrolled .nav-links .wp-block-navigation-item__content {
    color: var(--text);
}

.header.scrolled .nav-links .wp-block-navigation-item__content:hover {
    color: var(--forest);
}

/* Le bloc de navigation apporte ses propres marges : on garde l'espacement du site */
.header .nav-links.wp-block-navigation {
    gap: clamp(20px, 3vw, 40px);
}

/* Page qui ne commence pas par un bandeau sombre : en-tete opaque, sinon le
   texte clair deviendrait illisible sur le fond creme. */
body:not(:has(main .hero:first-child)):not(:has(main .page-hero:first-child)):not(:has(main > .wp-block-post-content > .hero:first-child)):not(:has(main > .wp-block-post-content > .page-hero:first-child)) .header {
    background: rgba(250, 246, 240, 0.92);
    backdrop-filter: blur(20px);
}

body:not(:has(main .hero:first-child)):not(:has(main .page-hero:first-child)):not(:has(main > .wp-block-post-content > .hero:first-child)):not(:has(main > .wp-block-post-content > .page-hero:first-child)) .header .nav-links .wp-block-navigation-item__content,
body:not(:has(main .hero:first-child)):not(:has(main .page-hero:first-child)):not(:has(main > .wp-block-post-content > .hero:first-child)):not(:has(main > .wp-block-post-content > .page-hero:first-child)) .header .logo-name {
    color: var(--text);
}

/* --- Indications & techniques (reprise des styles en ligne des pages espece) --- */
.prestation-detail {
    background: var(--cream);
}

.prestation-detail .text-center {
    margin-bottom: 52px;
}

.prestation-detail .text-center .section-label {
    justify-content: center;
}

.detail-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}

.detail-card-dark {
    background: var(--forest-deep);
}

.detail-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--forest-deep);
}

.detail-card-dark .detail-card-title {
    color: var(--white);
}

.detail-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--forest), var(--forest-deep));
    color: var(--white);
    font-size: 0.9rem;
}

.detail-card-icon-accent {
    background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dark));
}

/* La liste des techniques reprend exactement la typographie de la liste
   des indications : meme taille, meme graisse, meme rythme vertical. */
.detail-list-arrow {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.detail-list-arrow li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.detail-list-arrow li::before {
    content: "→";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(194, 112, 62, 0.18);
    color: var(--terracotta-light);
    font-size: 0.8rem;
}

/* La case a cocher heritait de la largeur des champs texte (100 %), ce qui
   ecrasait le libelle dans une colonne etroite. */
.form-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    padding: 0;
    margin: 3px 0 0;
    border-radius: 4px;
    accent-color: var(--terracotta);
    cursor: pointer;
}

.form-consent {
    margin-top: 4px;
}

/* Bouton contour place sur un fond sombre : le vert du texte y est illisible. */
.cta-section .btn-outline,
.hero .btn-outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.cta-section .btn-outline:hover,
.hero .btn-outline:hover {
    background: var(--white);
    color: var(--forest);
    border-color: var(--white);
}

.detail-card .check-list {
    margin: 28px 0 0;
}

/* --- Variante « disciplines » de la grille de services ---
   Reprend la presentation de la page partenaires : en-tete centre et trois
   cartes larges, la ou l'accueil affiche quatre cartes compactes. */
.services-disciplines .services-header {
    text-align: center;
    margin-bottom: 60px;
}

.services-disciplines .services-header .section-label {
    justify-content: center;
}

.services-disciplines .services-header .section-desc {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.services-disciplines .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.services-disciplines .service-card {
    padding: 32px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.services-disciplines .service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.services-disciplines .service-icon-v2 {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--forest), var(--forest-deep));
    color: var(--white);
    font-size: 1.4rem;
}

/* Les trois dégradés se répètent de trois en trois, comme dans la maquette. */
.services-disciplines .service-card:nth-child(3n + 2) .service-icon-v2 {
    background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dark));
}

.services-disciplines .service-card:nth-child(3n) .service-icon-v2 {
    background: linear-gradient(135deg, var(--sage), #6b8c67);
}

.services-disciplines .service-card h3 {
    margin-bottom: 12px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--forest-deep);
}

.services-disciplines .service-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-light);
}

/* Citation mise en avant dans une colonne de texte */
.quote-highlight {
    margin-top: 32px;
    padding: 24px 28px;
    background: var(--cream);
    border-left: 4px solid var(--terracotta);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--forest-deep);
}

/* --- Bouton de lecture du reportage ---
   Les regles d'origine visaient <i> de Font Awesome ; le sprite rend un <svg>.
   L'anneau est recentre explicitement : sans decalage, un element absolu se
   place a sa position statique et derive vers le bas a droite. */
.presse-play .icon {
    position: relative;
    z-index: 1;
    width: 1.6rem;
    height: 1.6rem;
    margin-left: 6px;
}

.presse-play-ring {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.presse-play:hover .presse-play-ring {
    transform: translate(-50%, -50%) scale(1.08);
}

/* Etiquette « Reportage » : meme correction pour son icone */
.presse-tag .icon {
    width: 0.9em;
    height: 0.9em;
}

/* Photos jointes a un temoignage : vignettes cliquables et visionneuse */
.testimonial-photos {
    display: flex;
    gap: 8px;
    margin: 0 0 20px;
}

.testimonial-photo {
    position: relative;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    overflow: hidden;
    background: none;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.testimonial-photo:hover,
.testimonial-photo:focus-visible {
    transform: translateY(-2px);
    border-color: var(--terracotta);
}

.testimonial-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.testimonial-photo-plus {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(31, 46, 34, 0.62);
    color: var(--white);
    font-weight: 700;
    font-size: 0.95rem;
}

.maelys-visionneuse {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    background: rgba(20, 28, 21, 0.92);
}

.maelys-visionneuse[hidden] {
    display: none;
}

body.maelys-visionneuse-ouverte {
    overflow: hidden;
}

.visionneuse-figure {
    margin: 0;
    max-width: min(1100px, 90vw);
    text-align: center;
}

.visionneuse-figure img {
    max-width: 100%;
    max-height: 78vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}

.visionneuse-figure figcaption {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 14px;
    color: rgba(255,255,255,0.85);
    font-size: 0.92rem;
}

.visionneuse-compteur {
    color: rgba(255,255,255,0.55);
}

.maelys-visionneuse button {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    color: var(--white);
    border-radius: 50%;
    width: 46px;
    height: 46px;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    flex: 0 0 auto;
    transition: background 0.2s ease;
}

.maelys-visionneuse button:hover {
    background: rgba(194, 112, 62, 0.85);
}

.visionneuse-fermer {
    position: absolute;
    top: 20px;
    right: 20px;
}

@media (max-width: 640px) {
    .maelys-visionneuse {
        gap: 6px;
        padding: 12px;
    }

    .maelys-visionneuse button {
        width: 38px;
        height: 38px;
        font-size: 1.3rem;
    }
}

/* Lieu de consultation deduit de l'espece : la valeur remplace le menu, en
   gardant la silhouette d'un champ pour ne pas casser l'alignement. */
.form-lieu-impose {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 14px 18px;
    border: 2px dashed rgba(194, 112, 62, 0.35);
    border-radius: 12px;
    background: var(--cream);
    color: var(--forest-deep);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
}

.form-lieu-impose[hidden] {
    display: none;
}

.lieu-impose-detail {
    font-weight: 400;
    font-size: 0.82rem;
    color: var(--text-light, #6b6b6b);
}

/* Suggestions d'adresse : liste posee sous le champ */
.form-adresse {
    position: relative;
}

.form-suggestions {
    position: absolute;
    z-index: 30;
    left: 0;
    right: 0;
    margin: 6px 0 0;
    padding: 6px;
    list-style: none;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(31, 46, 34, 0.14);
    max-height: 280px;
    overflow-y: auto;
}

.form-suggestions[hidden] {
    display: none;
}

.form-suggestion {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.form-suggestion:hover,
.form-suggestion.is-active {
    background: rgba(194, 112, 62, 0.1);
}

.form-suggestion-label {
    font-size: 0.92rem;
    color: var(--text);
}

.form-suggestion-contexte {
    font-size: 0.78rem;
    color: var(--text-light, #6b6b6b);
}

.form-aide {
    margin: 8px 0 0;
    font-size: 0.82rem;
    color: var(--text-light, #6b6b6b);
}
