/*
Theme Name: Tennis
Theme URI: 
Author: 
Author URI: 
Description: A basic WordPress theme for tennis.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tennis
*/

body {
    font-family: var(--font-sans);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============ Design tokens ============ */
:root {
    --terre: #b34821;
    --creme: #ffefdf;
    --beige: #ffefdf;
    --white: #ffffff;
    --header-height: 92px;
    --font-sans: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-serif: "EB Garamond", Georgia, "Times New Roman", Times, serif;

    /*
     * Typography scale (use only these 4 sizes across template-parts)
     * - --fs-1: section titles (H2)
     * - --fs-2: headings / emphasis (H3, quotes, key numbers)
     * - --fs-3: body / subtitles
     * - --fs-4: small / meta (notes, labels, CTA text)
     */
    --fs-1: clamp(40px, 4.6vw, 64px);
    --fs-2: clamp(18px, 2.4vw, 28px);
    --fs-3: 18px;
    --fs-4: 16px;

    /* Home sections spacing (consistent across sections) */
    --home-section-padding: 74px 0 86px;
    --home-section-padding-mobile: 64px 0 74px;
}

/* ============ Header ============ */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    transition: background-color 240ms ease, box-shadow 240ms ease, transform 240ms ease;
    background: transparent;
}

.site-header__container {
    height: var(--header-height);
    display: flex;
    align-items: flex-start;
}

.site-header__inner {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: flex-start;
    gap: 16px;
}

.site-header__left {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 44px;
}

.site-header__center {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    align-self: stretch;
}

.site-header__logo-link {
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    width: 176px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

.site-header__logo {
    width: 100%;
    height: auto;
    display: block;
}

.site-header__burger {
    display: none;
    appearance: none;
    background: transparent;
    border: 0;
    padding: 10px;
    margin-left: -10px;
    color: var(--white);
}

.site-header__burger-lines {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    position: relative;
    border-radius: 2px;
}

.site-header__burger-lines::before,
.site-header__burger-lines::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.site-header__burger-lines::before { top: -7px; }
.site-header__burger-lines::after { top: 7px; }

.site-header__drawer {
    position: fixed;
    inset: 0;
    z-index: 1001;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0s linear 260ms;
}

.site-header.is-menu-open .site-header__drawer {
    visibility: visible;
    pointer-events: auto;
    transition: visibility 0s;
}

.site-header__drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 220ms ease;
}

.site-header.is-menu-open .site-header__drawer-overlay {
    opacity: 1;
}

@supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
    .site-header__drawer-overlay {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

.site-header__drawer-panel {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: min(320px, 86vw);
    background: var(--terre);
    color: var(--white);
    padding: 18px 18px 22px 18px;
    box-shadow: 18px 0 40px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transform: translateX(-105%);
    transition: transform 260ms cubic-bezier(0.2, 0.9, 0.2, 1);
    will-change: transform;
}

.site-header.is-menu-open .site-header__drawer-panel {
    transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
    .site-header__drawer,
    .site-header__drawer-overlay,
    .site-header__drawer-panel {
        transition: none !important;
    }
}

.site-header__drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    padding-left:12px;
}

.site-header__drawer-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-header__drawer-logo {
    height: 92px;
    width: auto;
    display: block;
}

.site-header__drawer-close {
    appearance: none;
    background: transparent;
    border: 0;
    color: var(--white);
    font-size: var(--fs-2);
    padding: 6px 10px;
    cursor: pointer;
}

.site-header__drawer-list {
    list-style: none;
    margin: 0;
    padding: 10px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-header__drawer-link {
    display: block;
    padding: 12px 10px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    text-transform: uppercase;
}

.site-header__drawer-link:hover,
.site-header__drawer-link:focus-visible {
    background: rgba(255, 255, 255, 0.14);
}

.site-header__drawer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--creme);
    color: var(--terre);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    margin-top: 6px;
}

.site-header__nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 22px;
    align-items: center;
}

.site-header__nav-link {
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 14px;
}

.site-header__nav-link:hover,
.site-header__nav-link:focus-visible {
    text-decoration: underline;
    text-underline-offset: 6px;
}

.site-header__actions {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-top: 36px;
}

.site-header__left {
    justify-self: start;
}

.site-header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    color: var(--terre);
    background: var(--creme);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

.site-header__cta:hover,
.site-header__cta:focus-visible {
    background: var(--terre);
    color: var(--white);
    border-color: var(--white);
}

.site-header__lang {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
}


/* Home: starts transparent, becomes solid on scroll */
.site-header--home.is-scrolled {
    background: var(--terre);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.20);
}

/* Non-home: always solid */
.site-header--solid {
    background: var(--terre);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.20);
}


/* Push content below fixed header on non-home pages */
.is-not-home-template .site-main {
    padding-top: calc(var(--header-height) + 64px);
}

/* Anchor offset so “À propos” lands nicely */
#apropos {
    scroll-margin-top: calc(var(--header-height) + 16px);
}

/* ============ Home: scroll-down indicator (mobile only) ============ */
.home-scroll-down {
    display: none;
}

@media (max-width: 820px) {
    .is-home-template .home-scroll-down {
        position: fixed;
        left: 50%;
        bottom: 48px;
        transform: translateX(-50%);
        z-index: 999;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.85);
        background: rgba(0, 0, 0, 0.15);
        color: var(--white);
        text-decoration: none;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        box-shadow: 0 12px 26px rgba(0, 0, 0, 0.20);
        animation: tennisScrollDownBop 1.8s ease-in-out infinite;
        transition: opacity 220ms ease, transform 220ms ease;
    }

    .is-home-template .home-scroll-down__icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transform: translateY(1px);
    }

    .is-home-template .home-scroll-down.is-hidden {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
        pointer-events: none;
    }

    /* Don’t show it when the mobile menu drawer is open. */
    body.tennis-menu-open .home-scroll-down {
        opacity: 0;
        pointer-events: none;
        animation: none;
    }
}

@keyframes tennisScrollDownBop {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(7px); }
}

@media (prefers-reduced-motion: reduce) {
    .home-scroll-down {
        animation: none !important;
        transition: none !important;
    }
}

/* ============ Page template: About ============ */
.about-page {
    background: var(--white);
}

.about-hero {
    padding: 34px 0 56px;
}

.about-hero__grid {
    display: grid;
    grid-template-columns: minmax(280px, 520px) minmax(0, 1fr);
    gap: clamp(22px, 4vw, 64px);
    align-items: stretch;
}

.about-hero__media {
    border-radius: 34px;
    overflow: hidden;
    background: #eee;
    height: 100%;
    min-height: 420px;
}

.about-hero__img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* ============ Page template: Contact ============ */
.contact-page {
    position: relative;
    background: var(--white);
    overflow: hidden;
}



.contact-hero {
    position: relative;
    z-index: 1;
    padding: 34px 0 26px;
}

.contact-hero__inner {
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}

.contact-hero__title {
    margin: 0;
    color: var(--terre);
    font-weight: 600;
    font-size: var(--fs-1);
    text-transform: uppercase;
}

.contact-hero__subtitle {
    margin: 18px auto 0;
    max-width: 72ch;
    color: #111;
    font-weight: 500;
    font-size: calc(var(--fs-3));
}

.contact-hero__email {
    display: inline-block;
    margin-top: 10px;
    color: var(--terre);
    font-weight: 700;
    font-size: var(--fs-2);
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
}

.contact-hero__email:hover,
.contact-hero__email:focus-visible {
    opacity: 0.85;
}

.contact-hero__hint {
    margin: 10px 0 0 0;
    color: #111;
    font-weight: 700;
    font-size: var(--fs-4);
}

.contact-form-section {
    position: relative;
    z-index: 1;
    padding: 26px 0 92px;
}

.contact-form {
    max-width: 1120px;
    margin: 0 auto;
}

.contact-form__feedback {
    max-width: 1120px;
    margin: 0 auto 18px;
    padding: 16px 18px;
    border-radius: 18px;
    font-weight: 700;
    font-size: 16px;
    border: 1.5px solid var(--terre);
    background: var(--beige);
    color: #111;
}

.contact-form__feedback.is-success {
    background: rgba(255, 239, 223, 0.9);
}

.contact-form__feedback.is-error {
    background: rgba(179, 72, 33, 0.08);
}

.contact-field--honeypot {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.contact-form.is-sending .contact-form__submit {
    opacity: 0.7;
    cursor: progress;
}

.contact-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(16px, 3vw, 32px);
}

.contact-field {
    min-width: 0;
}

.contact-field__label {
    display: block;
    margin: 0 0 10px 0;
    color: var(--terre);
    font-weight: 500;
    font-size: var(--fs-4);
}

.contact-field__input,
.contact-field__textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1.5px solid var(--terre);
    background: transparent;
    color: #111;
    font-family: var(--font-sans);
    font-size: 18px;
    outline: none;
}

.contact-field__input {
    height: 56px;
    padding: 0 22px;
    border-radius: 999px;
}

.contact-field__textarea {
    min-height: 360px;
    padding: 18px 22px;
    border-radius: 34px;
    resize: vertical;
}

.contact-field__input:focus-visible,
.contact-field__textarea:focus-visible {
    box-shadow: 0 0 0 4px rgba(179, 72, 33, 0.18);
}

.contact-field--message {
    margin-top: clamp(18px, 3.2vw, 34px);
}

.contact-form__actions {
    margin-top: clamp(22px, 4.2vw, 44px);
    text-align: center;
}

.contact-form__submit {
    font-family: var(--font-sans);
    appearance: none;
    border: 2px solid var(--terre);
    height: 70px;
    width: min(420px, 92%);
    border-radius: 999px;
    background: var(--terre);
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    font-size: var(--fs-2);
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(179, 72, 33, 0.18);
    transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

.contact-form__submit:hover {
    background: var(--white);
    color: var(--terre);
    border-color: var(--terre);
}

.contact-form__submit:active {
    background: var(--white);
    color: var(--terre);
}

.contact-form__submit:focus-visible {
    background: var(--white);
    color: var(--terre);
    border-color: var(--terre);
    box-shadow: 0 0 0 4px rgba(255, 239, 223, 0.9), 0 16px 34px rgba(179, 72, 33, 0.18);
}

.contact-form__note {
    margin: 14px 0 0 0;
    color: #111;
    font-size: 14px;
    font-weight: 400;
}

@media (max-width: 820px) {
    .contact-page::before {
        top: -150px;
        width: 260px;
        height: 260px;
    }

    .contact-hero {
        padding: 26px 0 22px;
    }

    .contact-hero__subtitle {
        font-size: calc(16px * 1.2);
        font-weight: 500;
    }

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

    .contact-field__textarea {
        min-height: 300px;
    }
}

/* Fade-in animation for about hero title and subtitle */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-hero__content {
    padding-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-hero__title {
    margin: 0;
    color: var(--terre);
    font-weight: 500;
    font-size: calc(var(--fs-1) * 1.15);
    line-height: 1;
}

.about-hero__subtitle {
    margin: 14px 0 0 0;
    color: #111;
    font-weight: 500;
    font-size: calc(var(--fs-2) * 1);
    max-width: 34ch;
    line-height: 1.1;
}

/* Desktop only: fade-in animation and sticky behavior */
@media (min-width: 981px) {
    .about-hero__content {
        position: sticky;
        top: calc(var(--header-height) + 92px);
        align-self: start;
    }

    .about-hero__title {
        animation: fadeIn 0.8s ease-out forwards;
        opacity: 0;
    }

    .about-hero__subtitle {
        animation: fadeIn 0.8s ease-out 0.2s forwards;
        opacity: 0;
        font-size: calc(var(--fs-2) * 1.2);
    }
}

.about-hero__rule {
    display: block;
    width: 72px;
    height: 4px;
    border-radius: 999px;
    background: var(--terre);
    margin-top: 18px;
}

.about-story {
    padding: 10px 0 88px;
}

.about-story__wrap {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 clamp(10px, 6vw, 120px);
    box-sizing: border-box;
}

.about-story__content {
    border-left: 1px solid rgba(179, 72, 33, 0.45);
    padding-left: clamp(20px, 3.2vw, 44px);
}

.about-story__quote {
    margin: 0 0 18px 0;
    color: var(--terre);
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 700;
    font-size: var(--fs-2);
}

.about-story__text p {
    margin: 0 0 18px 0;
    color: #111;
    font-size: var(--fs-4);
    font-weight: 300;
}

.about-story__text p:last-child {
    margin-bottom: 0;
}

/* ============ About: "Ses trois piliers" ============ */
.about-pillars {
    position: relative;
    background: var(--beige);
    padding: 86px 0 96px;
}

.about-pillars::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 40px;
    background: var(--white);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    z-index: 2;
}

.about-pillars__title {
    margin: 0;
    text-align: center;
    color: var(--terre);
    font-weight: 700;
    font-size: calc(var(--fs-1) * 1.05);
}

.about-pillars__grid {
    list-style: none;
    margin: 34px auto 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    column-gap: clamp(26px, 3.4vw, 56px);
    row-gap: 28px;
    max-width: 980px;
    align-items: start;
}

.about-pillar {
    text-align: center;
}

.about-pillars__sep {
    width: 2px;
    height: 92px;
    border-radius: 999px;
    background: rgba(179, 72, 33, 0.6);
    justify-self: center;
    align-self: center;
}

.about-pillar__title {
    margin: 0;
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    font-size: var(--fs-2);
}

.about-pillar__text {
    margin: 8px 0 0 0;
    color: #111;
    font-size: var(--fs-3);
}

.about-pillars__photo {
    margin: 56px auto 0;
    width: min(560px, 92%);
    aspect-ratio: 16 / 9;
    border-radius: 34px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.10);
    overflow: hidden;
}

.about-pillars__photo-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.about-pillars__quote {
    margin: 28px auto 0;
    text-align: center;
    max-width: 820px;
    color: var(--terre);
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 700;
    font-size: calc(var(--fs-2) * 1.05);
}

@media (max-width: 980px) {
    .about-pillars {
        padding: 72px 0 84px;
    }

    .about-pillars__grid {
        grid-template-columns: 1fr;
        row-gap: 18px;
        max-width: 560px;
    }

    /* Mobile: stack pillars and show horizontal separators between them */
    .about-pillars__sep {
        width: 64px;
        height: 2px;
        justify-self: center;
        align-self: center;
    }
}

@media (max-width: 768px) {
    .about-pillars__photo {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 980px) {
    .about-hero__grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .about-hero__media {
        height: auto;
        min-height: 0;
    }

    .about-hero__img {
        height: auto;
    }

    .about-hero__content {
        padding-top: 0;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 720px) {
    .about-hero {
        padding: 0px 0 40px 0px;
    }

    .about-story {
        padding: 6px 0 66px;
    }

    .about-story__wrap {
        padding: 0;
    }

    /* Mobile requirement: no left line on the second block */
    .about-story__content {
        border-left: none;
        padding-left: 0;
    }

    /* Mobile requirement: invert image + content order */
    .about-hero__content {
        order: 1;
    }
    .about-hero__media {
        order: 2;
        margin-top: 20px;
    }
}

/* ============ Home hero ============ */
.home-hero {
    position: relative;
    min-height: 100svh;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: grid;
    place-items: center;
}

@media (max-width: 768px) {
    .home-hero {
        background-image: var(--hero-image-mobile);
    }
}

.home-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.18) 40%, rgba(0,0,0,0.22) 100%);
}

.home-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 20px;
    max-width: 1400px;
}

.home-hero__title {
    margin: 0 0 22px 0;
}

.home-hero__title-line {
    display: block;
    font-weight: 700;
    color: var(--white);
    font-size: calc(var(--fs-1) * 1.3);
}

/* Entrance animation (title + CTA) */
@keyframes tennisHomeHeroRevealUp {
    from {
        opacity: 0;
        transform: translateY(18px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.home-hero__title-line {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(10px);
    animation: tennisHomeHeroRevealUp 900ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.home-hero__title-line--1 {
    animation-delay: 120ms;
}

.home-hero__title-line--2 {
    animation-delay: 260ms;
}

.home-hero__cta {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(6px);
    animation: tennisHomeHeroRevealUp 900ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 430ms;
}

@media (prefers-reduced-motion: reduce) {
    .home-hero__title-line,
    .home-hero__cta {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

/* Back-compat: if older markup still uses these modifiers, keep them identical (no accent). */
.home-hero__title-line--primary,
.home-hero__title-line--accent {
    color: inherit;
    font-size: inherit;
    text-shadow: none;
}

.home-hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 12px 32px;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,0.85);
    background: var(--terre);
    color: var(--white);
    text-decoration: none;
    font-weight: 400;
    margin-top: 10px;
    text-transform: uppercase;
    font-size: calc(var(--fs-2) * 1.2);
    transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

.home-hero__cta:hover,
.home-hero__cta:focus-visible {
    background: var(--white);
    color: var(--terre);
    border-color: var(--terre);
}

.home-anchor {
    height: 1px;
}

/* ============ Home "À propos" ============ */
.home-about {
    background: var(--beige);
    padding: var(--home-section-padding);
}

.home-about__title {
    margin: 0;
    text-align: center;
    color: var(--terre);
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: calc(var(--fs-1) * 1.3);
}

.home-about__lead {
    margin: 16px auto 46px;
    text-align: center;
    font-weight: 300 !important;
    max-width: 820px;
    color: #111;
    font-size: var(--fs-3);
}

.home-about__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    row-gap: 28px;
    column-gap: 28px;
    align-items: stretch;
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-about-card {
    background: var(--white);
    border-radius: 40px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.home-about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.home-about-card__media {
    width: 100%;
    height: 200px;
    position: relative;
    transition: clip-path 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    clip-path: polygon(
        0 0, 
        100% 0, 
        100% calc(100% - 25px), 
        calc(50% + 40px) calc(100% - 25px), 
        50% 100%, 
        calc(50% - 40px) calc(100% - 25px), 
        0 calc(100% - 25px)
    );
}

.home-about-card:hover .home-about-card__media {
    clip-path: polygon(
        0 0, 
        100% 0, 
        100% calc(100% - 35px), 
        calc(50% + 50px) calc(100% - 35px), 
        50% 100%, 
        calc(50% - 50px) calc(100% - 35px), 
        0 calc(100% - 35px)
    );
}

.home-about-card__img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.home-about-card:hover .home-about-card__img {
    transform: scale(1.08);
}

.home-about-card__body {
    padding: 25px 30px 0px 30px;
    /* text-align: center; */
}

.home-about-card__title {
    margin: 0 0 15px 0;
    color: var(--terre);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.8rem;
}

.home-about-card__text {
    margin: 0;
    color: #111;
    font-size: 1.1rem;
    font-weight: 400;
    padding-bottom: 40px;
}

@media (max-width: 980px) {
    .home-about__cards {
        grid-template-columns: 1fr;
        gap: 18px;
        row-gap: 36px;
        column-gap: 18px;
        max-width: 560px;
        margin: 0 auto;
    }
}

.home-about__cta-wrap {
    margin-top: 34px;
    display: flex;
    justify-content: center;
}

.home-about__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    border: 2px solid transparent;
    background: var(--terre);
    color: var(--white);
    text-decoration: none;
    font-weight: 400;
    text-transform: uppercase;
    font-size: var(--fs-4);
    transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

.home-about__cta:hover,
.home-about__cta:focus-visible {
    background: var(--beige);
    color: var(--terre);
    border-color: var(--terre);
}

/* ============ Home "Expertises" ============ */
.home-expertises {
    position: relative;
    background: var(--terre);
    color: var(--white);
    padding: var(--home-section-padding);
    overflow: hidden;
}

.home-expertises::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--expertises-bg);
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: min(980px, 95vw);
    opacity: 1;
    pointer-events: none;
    transform: translateY(var(--parallax-y, 0px));
    transition: transform 0.1s linear;
}

.home-expertises__inner {
    position: relative;
    z-index: 1;
}

.home-expertises__header {
    max-width: 760px;
    margin: 0 0 34px 0;
}

.home-expertises__title {
    margin: 0;
    color: var(--creme);
    font-size: var(--fs-1);
    font-weight: 600;
}

.home-expertises__subtitle {
    margin: 8px 0 0 0;
    font-size: calc(var(--fs-3) * 1.2);
    font-weight: 400;
    opacity: 0.95;
}

.home-expertises__carousel {
    position: relative;
}

.home-expertises__viewport {
    /* Desktop/tablet: grid layout, no horizontal scrolling */
    overflow: visible;
}

.home-expertises__track {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    /* Make each row adopt the tallest card height, and stretch siblings to match */
    align-items: stretch;
}

.home-expertises__page,
.home-expertises__item {
    /* Allow the card (height:100%) to actually stretch within the grid cell */
    display: flex;
}

.home-expertise-card {
    background: var(--white);
    border-radius: 40px;
    padding: 28px 26px 26px;
    text-align: center;
    color: #111;
    /* box-shadow: 0 14px 34px rgba(0, 0, 0, 0.20); */
    display: flex;
    flex-direction: column;
    /* height: 100%; */
    flex: 1 1 auto;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.home-expertise-card:hover,
.home-expertise-card:focus-visible {
    transform: scale(1.02);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.home-expertise-card__icon {
    width: 92px;
    height: 92px;
    display: block;
    margin: 20px auto 14px;
}

.home-expertise-card__title {
    margin: 0;
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    font-size: var(--fs-2);
    transition: color 200ms ease;
}

.home-expertise-card:hover .home-expertise-card__title,
.home-expertise-card:focus-visible .home-expertise-card__title {
    color: var(--terre);
}

.home-expertise-card__title::after {
    content: "";
    display: block;
    width: 54px;
    height: 3px;
    border-radius: 999px;
    background: var(--terre);
    margin: 10px auto 0;
}

.home-expertise-card__text {
    margin: 14px auto 0;
    max-width: 26ch;
    font-size: var(--fs-4);
    margin-bottom: 24px;
}

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

@media (max-width: 720px) {
    .home-expertises::before {
        background-position: center;
        background-size: 120vw;
        opacity: 0.14;
    }

    /* Mobile: turn into a swipeable carousel with a 15% peek of the next card */
    .home-expertises {
        --expertises-peek: 10%;
        --expertises-gap: 16px;
    }

    .home-expertises__viewport {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        border-radius: 22px;
        padding-bottom: 8px;
    }

    .home-expertises__viewport::-webkit-scrollbar {
        height: 10px;
    }
    .home-expertises__viewport::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.25);
        border-radius: 999px;
    }

    .home-expertises__track {
        display: flex;
        gap: var(--expertises-gap);
        padding: 10px 4px;
    }

    .home-expertises__page {
        flex: 0 0 calc(100% - var(--expertises-peek) - var(--expertises-gap));
        scroll-snap-align: start;
    }
}

/* ============ Home "Méthodes" ============ */
.home-methodes {
    background: var(--white);
    padding: var(--home-section-padding);
}

.home-methodes__grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) 84px minmax(420px, 1.3fr);
    gap: 34px;
    align-items: stretch;
}

/* Desktop: keep the intro (title + description) visible while scrolling the steps */
@media (min-width: 1021px) {
    .home-methodes__intro {
        position: sticky;
        top: calc(var(--header-height) + 48px);
        align-self: start;
    }
}

.home-methodes__title {
    margin: 0;
    font-size: var(--fs-1);
    font-weight: 600;
    color: var(--terre);
}

.home-methodes__desc {
    margin: 10px 0 0 0;
    max-width: 34ch;
    font-size: var(--fs-3);
    font-weight: 400;
    color: #111;
}

.home-methodes__timeline {
    position: relative;
    height: 100%;
}

.home-methodes__line {
    width: 2px;
    display: block;
}

.home-methodes__ball {
    width: 44px;
    height: 44px;
    display: block;
    margin: 0;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0px);
    will-change: transform;
}

.home-methodes__line--dotted {
    position: absolute;
    left: 50%;
    top: calc(44px / 2);
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    /* Plain line, but invisible until it's "passed" by the progress fill */
    background: rgba(179, 72, 33, 0);
}

.home-methodes__line--dotted::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: calc(var(--methodes-line-progress, 0) * 100%);
    /* Passed portion: fully opaque */
    background: rgba(179, 72, 33, 1);
    pointer-events: none;
}

.home-methodes__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    row-gap: 16px;
}

.home-methodes__step {
    opacity: calc(0.7 + (0.3 * var(--focus, 0)));
}

.home-methode-card {
    border-radius: 40px;
    padding: 26px 30px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.18) 100%),
        rgba(255, 239, 223, 0.92);
    transform: scale(calc(0.98 + (0.04 * var(--focus, 0))));
    transition: transform 220ms ease, opacity 220ms ease;
}

@media (prefers-reduced-motion: reduce) {
    .home-methodes__step {
        opacity: 1;
    }
    .home-methode-card {
        transform: none;
        transition: none;
    }
    .home-methodes__ball {
        transform: none !important;
    }
}

.home-methode-card__kicker {
    margin: 0 0 6px 0;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: #111;
    font-size: var(--fs-2);
}

.home-methode-card__title {
    margin: 0;
    color: var(--terre);
    font-weight: 700;
    text-transform: uppercase;
    font-size: calc(var(--fs-2) * 1.2);
}

.home-methode-card__text {
    margin: 8px 0 0 0;
    font-size: var(--fs-3);
    color: #111;
}

@media (max-width: 1020px) {
    .home-methodes__grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .home-methodes__intro {
        text-align: left;
    }

    .home-methodes__desc {
        max-width: none;
    }

    .home-methodes__timeline {
        display: none;
    }

    .home-methodes__steps {
        gap: 14px;
        row-gap: 14px;
        max-width: 760px;
    }
}

/* ============ Home full-width hero image ============ */
.home-full-hero {
    background: var(--white);
    position: relative;
    overflow: hidden;
    height: clamp(300px, 60vw, 600px);
}

.home-full-hero__picture {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.home-full-hero__img {
    display: block;
    width: 100%;
    height: calc(100% + 120px);
    object-fit: cover;
    object-position: center;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(calc(-50% + var(--parallax-y, 0px)));
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .home-full-hero__img {
        transform: translateY(-50%);
        will-change: auto;
    }
}

/* ============ Home "Formules" (simple) ============ */
.home-formules {
    background: var(--white);
    padding: var(--home-section-padding);
}

.home-formules__title {
    margin: 0 0 28px 0;
    text-align: center;
    color: var(--terre);
    font-size: var(--fs-1);
    font-weight: 600;
}

.home-formules__carousel {
    position: relative;
}

.home-formules__viewport {
    /* Desktop: keep existing grid layout (no horizontal scrolling) */
    overflow: visible;
}

.home-formules__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.home-formules__item {
    background: var(--beige);
    border: 2px solid rgba(179, 72, 33, 1);
    border-radius: 24px;
    padding: 48px 26px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: center;
    min-height: 320px;
}

.home-formules__balls {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
}

.home-formules__ball {
    width: 54px;
    height: 54px;
    display: block;
}

.home-formules__plan-title {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 700;
    text-transform: uppercase;
    font-size: calc(var(--fs-2) * 1.2);
    color: #111;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-formules__plan-label,
.home-formules__plan-name {
    display: block;
}

.home-formules__rule {
    display: block;
    width: 72px;
    height: 3px;
    border-radius: 999px;
    background: var(--terre);
    margin: 4px auto 10px;
}

.home-formules__plan-desc {
    margin: 0;
    font-size: calc(var(--fs-3) * 1.3);
    color: #111;
    line-height: 1.35;
}

.home-formules__plan-price {
    margin: auto 0 0 0;
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 0;
    color: var(--terre);
}

.home-formules__plan-amount {
    font-weight: 700;
    font-size: calc(var(--fs-2) * 1.4);
}

.home-formules__plan-tax {
    font-weight: 700;
    font-size: var(--fs-4);
    opacity: 0.85;
}

.home-formules__cta-row {
    margin-top: 34px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
}

.home-formules__cta-line {
    height: 1px;
    background: rgba(17, 17, 17, 0.18);
}

.home-formules__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    border: 2px solid transparent;
    background: var(--terre);
    color: var(--white);
    text-decoration: none;
    font-weight: 400;
    text-transform: uppercase;
    font-size: var(--fs-4);
    transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

.home-formules__cta:hover,
.home-formules__cta:focus-visible {
    background: var(--beige);
    color: var(--terre);
    border-color: var(--terre);
}

.home-formules__note {
    margin: 6px 0 26px 0;
    text-align: center;
    color: #111;
    font-size: var(--fs-4);
}

.home-formules__note sup {
    font-size: 0.65em;
    line-height: 0;
    vertical-align: super;
}

@media (max-width: 980px) {
    /* Mobile/tablet: swipeable carousel with ~10% peek of the next card */
    .home-formules {
        --formules-peek: 10%;
        --formules-gap: 16px;
    }

    /* Reorder elements: title, carousel, note, CTA */
    .home-formules .container {
        display: flex;
        flex-direction: column;
    }

    .home-formules__title {
        order: 1;
    }

    .home-formules__carousel {
        order: 2;
    }

    .home-formules__note {
        order: 3;
        margin: 20px 0 12px 0;
    }

    .home-formules__cta-row {
        order: 4;
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 12px;
    }

    .home-formules__viewport {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        border-radius: 22px;
    }

    .home-formules__viewport::-webkit-scrollbar {
        height: 10px;
    }
    .home-formules__viewport::-webkit-scrollbar-thumb {
        background: rgba(179, 72, 33, 0.25);
        border-radius: 999px;
    }

    .home-formules__track {
        display: flex;
        gap: var(--formules-gap);
        padding: 10px 4px;
        max-width: none;
        margin: 0;
    }

    .home-formules__page {
        flex: 0 0 calc(100% - var(--formules-peek) - var(--formules-gap));
        scroll-snap-align: start;
    }

    .home-formules__cta-line {
        display: none;
    }
}

/* ============ Home "Valeurs" ============ */
.home-valeurs {
    background: var(--beige);
    padding: var(--home-section-padding);
}

.home-valeurs__header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 44px;
}

.home-valeurs__title {
    margin: 0;
    color: var(--terre);
    font-size: var(--fs-1);
    font-weight: 600;
}

.home-valeurs__quote {
    margin: 10px 0 0 0;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: var(--fs-2);
    color: #111;
}

.home-valeurs__carousel {
    position: relative;
}

.home-valeurs__viewport {
    /* Desktop: keep existing grid layout (no horizontal scrolling) */
    overflow: visible;
}

.home-valeurs__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0px;
    row-gap: 24px;
    align-items: center;
}

/* Desktop only: keep circles closer together by clamping column width */
@media (min-width: 981px) {
    .home-valeurs__grid {
        grid-template-columns: repeat(3, minmax(0, 320px));
        justify-content: center;
        column-gap: 24px;
    }
}

.home-valeur-card {
    width: min(280px, 84vw);
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--terre);
    display: grid;
    place-items: center;
    text-align: center;
    position: relative;
    box-sizing: border-box;
    box-shadow: none;
}

.home-valeur-card::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 239, 223, 0.65);
    pointer-events: none;
}

.home-valeur-card__inner {
    width: 100%;
    padding: 12px 26px 34px 26px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.home-valeur-card__star {
    width: 48px;
    height: 48px;
    display: block;
    margin: 0;
    flex-shrink: 0;
}

.home-valeur-card__title {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: calc(var(--fs-2) * 1.2);
    color: var(--creme);
}

.home-valeur-card__text {
    margin: 0 auto;
    max-width: 22ch;
    color: rgba(255, 255, 255, 0.92);
    font-size: var(--fs-3);
}

@media (max-width: 980px) {
    /* Mobile/tablet: swipeable carousel with a 15% peek of the next card + bottom scroll bar */
    .home-valeurs {
        --valeurs-peek: 10%;
        --valeurs-gap: 16px;
    }

    .home-valeurs__viewport {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        border-radius: 22px;
        padding-bottom: 8px;
    }

    .home-valeurs__viewport::-webkit-scrollbar {
        height: 10px;
    }
    .home-valeurs__viewport::-webkit-scrollbar-thumb {
        background: rgba(179, 72, 33, 0.25);
        border-radius: 999px;
    }

    .home-valeurs__track {
        display: flex;
        gap: var(--valeurs-gap);
        padding: 10px 4px;
    }

    .home-valeurs__page {
        flex: 0 0 calc(100% - var(--valeurs-peek) - var(--valeurs-gap));
        scroll-snap-align: start;
        display: flex;
        justify-content: center;
    }

    .home-valeur-card {
        width: min(320px, 100%);
        margin: 0;
    }
}

/* ============ Home "Actualités" carousel ============ */
.home-actus {
    background: var(--terre);
    color: var(--white);
    padding: var(--home-section-padding);
}

@media (max-width: 720px) {
    .home-about,
    .home-expertises,
    .home-methodes,
    .home-formules,
    .home-valeurs,
    .home-actus {
        padding: var(--home-section-padding-mobile);
    }
}

.home-actus__container {
    position: relative;
}

.home-actus__header {
    margin: 0 0 26px 0;
}

.home-actus__title {
    margin: 0;
    color: var(--creme);
    font-size: var(--fs-1);
    font-weight: 600;
}

.home-actus__subtitle {
    margin: 8px 0 0 0;
    font-size: calc(var(--fs-3) * 1.2);
    font-weight: 400;
    opacity: 0.95;
}

.home-actus__carousel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: center;
}

.home-actus__viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    border-radius: 28px;
}

.home-actus__viewport::-webkit-scrollbar {
    height: 10px;
}
.home-actus__viewport::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
}

.home-actus__track {
    list-style: none;
    margin: 0;
    padding: 12px 6px;
    display: flex;
    gap: 24px;
}

.home-actus__page {
    flex: 0 0 calc((100% - 24px) / 2);
    scroll-snap-align: start;
}

.home-actus-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
    text-decoration: none;
    color: var(--white);
    height: clamp(220px, 22vw, 310px);
    border-radius: 28px;
    background: rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transform: translateZ(0);
    transition: transform 420ms cubic-bezier(.2,.8,.2,1);
    will-change: transform;
}

.home-actus-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--home-actus-bg);
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    transition: transform 650ms cubic-bezier(.2,.8,.2,1), filter 650ms cubic-bezier(.2,.8,.2,1);
    will-change: transform;
}

.home-actus-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0,0,0,0.24) 0%, rgba(0,0,0,0.38) 65%, rgba(0,0,0,0.30) 100%);
}

.home-actus-card__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0 clamp(22px, 6vw, 92px);
}

.home-actus-card__title {
    position: relative;
    z-index: 2;
    padding: 0;
    font-weight: 700;
    text-transform: uppercase;
    font-size: var(--fs-2);
    text-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.home-actus-card__excerpt {
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 0;
    max-width: 46ch;
    font-size: var(--fs-4);
    font-weight: 400;
    opacity: 0.92;
    text-shadow: 0 8px 20px rgba(0,0,0,0.28);
}

.home-actus-card:hover,
.home-actus-card:focus-visible {
    transform: translateY(-4px);
}

.home-actus-card:hover::before,
.home-actus-card:focus-visible::before {
    transform: scale(1.18) translateY(-10px);
    filter: saturate(1.08) contrast(1.06);
}

.home-actus-card__arrow {
    position: absolute;
    right: 18px;
    bottom: 16px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.98);
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 14px 26px rgba(0,0,0,0.22);
    transform: translateY(6px);
    transition: transform 420ms cubic-bezier(.2,.8,.2,1), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
    will-change: transform;
}

.home-actus-card:hover .home-actus-card__arrow,
.home-actus-card:focus-visible .home-actus-card__arrow {
    transform: translateY(0) translateX(2px);
    background: rgba(255, 255, 255, 1);
    color: rgba(0, 0, 0, 1);
    border-color: rgba(255, 255, 255, 1);
}

.home-actus-card:active .home-actus-card__arrow {
    transform: translateY(2px);
}

/* (Removed unused arrow classes) */

@media (prefers-reduced-motion: reduce) {
    .home-actus-card,
    .home-actus-card::before,
    .home-actus-card__arrow {
        transition: none !important;
    }
    .home-actus-card,
    .home-actus-card::before,
    .home-actus-card__arrow {
        transform: none !important;
    }
}

.home-actus__nav {
    appearance: none;
    border: 0;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: rgba(255, 239, 223, 0.95);
    color: var(--terre);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-2);
    cursor: pointer;
}

.home-actus__nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.home-actus__cta-wrap {
    margin-top: 34px;
    display: flex;
    justify-content: center;
}

.home-actus__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    border: 2px solid transparent;
    background: rgba(255, 239, 223, 0.95);
    color: var(--terre);
    text-decoration: none;
    font-weight: 400;
    text-transform: uppercase;
    font-size: var(--fs-4);
    transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

.home-actus__cta:hover,
.home-actus__cta:focus-visible {
    background: var(--terre);
    color: var(--white);
    border-color: var(--white);
}

/* ============ Posts list / last post (template-parts) ============ */
.last-post__title,
.post-card__title {
    margin: 0;
    font-size: var(--fs-2);
    font-weight: 700;
}

.post-card__excerpt {
    margin: 8px 0 0 0;
    font-size: var(--fs-3);
}

.articles-page {
    padding: 34px 0 88px;
}

.articles-hero {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 34px;
}

.articles-hero__title {
    margin: 0;
    color: var(--terre);
    font-weight: 600;
    font-size: var(--fs-1);
    text-transform: uppercase;
}

.articles-hero__subtitle {
    margin: 10px 0 0 0;
    color: #111;
    font-size: calc(var(--fs-3) * 1.2);
    font-weight: 400;
}

.articles-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.articles-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    padding: 18px 18px 18px;
    height: clamp(220px, 22vw, 320px);
    border-radius: 28px;
    overflow: hidden;
    text-decoration: none;
    color: var(--white);
    background: rgba(0, 0, 0, 0.10);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.16);
    transform: translateZ(0);
    transition: transform 420ms cubic-bezier(.2,.8,.2,1), box-shadow 420ms cubic-bezier(.2,.8,.2,1);
    will-change: transform;
}

.articles-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--articles-card-image);
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    transition: transform 650ms cubic-bezier(.2,.8,.2,1), filter 650ms cubic-bezier(.2,.8,.2,1);
    will-change: transform;
}

.articles-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0,0,0,0.14) 0%, rgba(0,0,0,0.40) 65%, rgba(0,0,0,0.46) 100%);
}

.articles-card__title {
    position: relative;
    z-index: 2;
}

.articles-card__title {
    font-weight: 700;
    text-transform: uppercase;
    font-size: var(--fs-2);
    text-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

.articles-card__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-right: 56px; /* reserve space for bottom-right arrow */
}

.articles-card__excerpt {
    position: relative;
    z-index: 2;
    margin: 0;
    max-width: 48ch;
    font-size: var(--fs-4);
    font-weight: 400;
    opacity: 0.92;
    text-shadow: 0 8px 20px rgba(0,0,0,0.28);
}

.articles-card:hover,
.articles-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.22);
}

.articles-card:hover::before,
.articles-card:focus-visible::before {
    transform: scale(1.18) translateY(-10px);
    filter: saturate(1.08) contrast(1.06);
}

.articles-card:active {
    transform: translateY(-1px);
}

.articles-card__arrow {
    position: absolute;
    right: 18px;
    bottom: 16px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.98);
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 14px 26px rgba(0,0,0,0.22);
    transform: translateY(6px);
    transition: transform 420ms cubic-bezier(.2,.8,.2,1), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
    will-change: transform;
}

.articles-card:hover .articles-card__arrow,
.articles-card:focus-visible .articles-card__arrow {
    transform: translateY(0) translateX(2px);
    background: rgba(255, 255, 255, 1);
    color: rgba(0, 0, 0, 1);
    border-color: rgba(255, 255, 255, 1);
}

.articles-card:active .articles-card__arrow {
    transform: translateY(2px);
}

@media (prefers-reduced-motion: reduce) {
    .articles-card,
    .articles-card::before,
    .articles-card__arrow {
        transition: none !important;
    }
    .articles-card,
    .articles-card::before,
    .articles-card__arrow {
        transform: none !important;
    }
}

.articles-empty {
    text-align: center;
    margin: 0;
    font-size: var(--fs-3);
}

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

@media (max-width: 720px) {
    .articles-page {
        padding: 26px 0 66px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

.home-actus__empty {
    margin: 18px 0 0 0;
}

@media (max-width: 900px) {
    .home-actus__carousel {
        grid-template-columns: 1fr;
    }

    .home-actus {
        --actus-peek: 10%;
        --actus-gap: 16px;
    }

    .home-actus__nav {
        display: none;
    }

    .home-actus__track {
        padding: 10px 4px;
        gap: var(--actus-gap);
    }

    .home-actus__page {
        /* Mobile: show ~15% of next card */
        flex: 0 0 calc(100% - var(--actus-peek) - var(--actus-gap));
        scroll-snap-align: start;
    }

    .home-actus__viewport {
        border-radius: 22px;
    }
}

/* ============ Mobile responsiveness ============ */
@media (max-width: 820px) {
    :root {
        --header-height: 78px;
        /* Slightly larger headings/emphasis on mobile */
        --fs-2: clamp(24px, 3.2vw, 30px);
    }

    .site-header__inner {
        gap: 10px;
    }

    .site-header__left {
        padding-top: 27px;
    }

    .site-header__center {
        padding-top: 0;
    }

    .site-header__burger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-header__nav {
        display: none;
    }

    .site-header__logo-link {
        width: 148px;
        filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
    }

    .site-header__logo {
        width: 100%;
    }

    .site-header__actions {
        gap: 8px;
        padding-top: 22px;
    }

    .site-header__cta {
        display: none;
    }

    .site-header__lang {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }

    .home-hero__title-line {
        font-size: clamp(30px, 8vw, 44px);
    }

    .home-hero__cta {
        height: 48px;
        padding: 8px 28px;
        font-size: 16px;
    }
}

@media (max-width: 420px) {
    .site-header__cta {
        display: none;
    }
}

.tennis-menu-open {
    overflow: hidden;
}

/* ============ Existing content styles (keep) ============ */
article {
    /* margin-bottom: 30px; */
    /* padding-bottom: 20px; */
    border-bottom: 1px solid #eee;
}

article.post-card {
    padding-bottom: 0;
    border-bottom: none;
}

.post-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

.post-card__link:hover {
    background: #fafafa;
}

article h2 {
    margin-top: 0;
}

article h2 a {
    text-decoration: none;
    color: #333;
}

article h2 a:hover {
    color: #0073aa;
}

.entry-content {
    margin-top: 15px;
}

/* ============ Single post ============ */
.single-post {
    /* max-width: 820px; */
    margin: 0 auto;
    margin-bottom: 64px;
    /* padding: 0 20px; */
}

.single-post__hero .back-to-posts {
    margin-bottom: 0;
}

.single-post__hero {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: calc(var(--header-height) * -1);
    display: grid;
    align-content: end;
    padding: 0 20px clamp(40px, 8vh, 80px);
    border-radius: 0;
    overflow: hidden;
    height: clamp(320px, 50vh, 560px);
    background: rgba(0, 0, 0, 0.12);
    background-size: cover;
    background-position: center;
    box-sizing: border-box;
}

.single-post__hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 820px) {
    .single-post__hero {
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        margin-left: 0;
        margin-right: 0;
    }
}

.single-post__header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.single-post__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.24) 0%, rgba(0,0,0,0.50) 65%, rgba(0,0,0,0.35) 100%);
}

.single-post__hero-title {
    position: relative;
    z-index: 1;
    margin: 16px 0 0 0;
    padding: 0;
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: var(--fs-1);
    text-shadow: 0 8px 20px rgba(0,0,0,0.35);
    text-align: left;
}

.single-post__hero-excerpt {
    position: relative;
    z-index: 1;
    margin: 12px 0 0 0;
    padding: 0;
    color: var(--white);
    font-weight: 400;
    font-size: var(--fs-3);
    text-shadow: 0 4px 12px rgba(0,0,0,0.35);
    text-align: left;
    display: block;
}

.single-post__title {
    margin: 0 0 24px 0;
    color: var(--terre);
    font-weight: 600;
    font-size: var(--fs-1);
}

.single-post__excerpt {
    margin: 0 0 0 0;
    color: var(--terre);
    font-weight: 400;
    font-size: var(--fs-3);
    display: block;
}

.single-post .entry-content {
    margin-top: 64px;
    color: #111;
    font-size: var(--fs-3);
}

.back-to-posts {
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--terre);
    padding: 10px 18px;
    border: 2px solid var(--terre);
    border-radius: 999px;
    background: transparent;
    font-weight: 700;
    font-size: var(--fs-4);
    transition: background-color 200ms ease, color 200ms ease;
}

.back-link:hover,
.back-link:focus-visible {
    background: var(--terre);
    color: var(--white);
    border-color: var(--white);
}

.single-post__hero .back-link {
    color: var(--white);
    font-weight: 400;
    border-color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
}

.single-post__hero .back-link:hover,
.single-post__hero .back-link:focus-visible {
    background: var(--white);
    color: var(--terre);
    border-color: var(--white);
}

.site-footer {
    background: var(--terre);
    color: var(--white);
    padding: 58px 0 28px;
}

.site-footer__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.site-footer__logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.site-footer__logo {
    width: 140px;
    height: auto;
    display: block;
}

.site-footer__nav {
    margin-bottom: 8px;
}

.site-footer__nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
}

.site-footer__nav-item {
    display: inline-flex;
    align-items: center;
}

.site-footer__nav-item + .site-footer__nav-item::before {
    content: "|";
    display: inline-block;
    margin-right: 22px;
    opacity: 0.7;
}

.site-footer__nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 400;
    font-size: 20px;
}

.site-footer__nav-link:hover,
.site-footer__nav-link:focus-visible {
    text-decoration: underline;
    text-underline-offset: 6px;
}

.site-footer__legal {
    margin: 10px 0 0;
    text-align: center;
    font-size: 14px;
    opacity: 0.95;
}

.site-footer__sep {
    margin: 0 6px;
    opacity: 0.9;
}

.site-footer__legal-link {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 720px) {
    .site-footer {
        padding: 48px 0 24px;
    }

    .site-footer__logo {
        width: 126px;
    }

    .site-footer__nav-list {
        gap: 0;
        flex-wrap: nowrap;
        white-space: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 10px;
        scrollbar-width: none;
    }

    .site-footer__nav-list::-webkit-scrollbar {
        display: none;
    }

    .site-footer__nav-item + .site-footer__nav-item::before {
        margin: 0 10px;
    }

    .site-footer__nav-link {
        font-size: 18px;
    }
}

