@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Merriweather:wght@300;400;700;900&display=swap');

/* =====================================================
   1. Design tokens
   ===================================================== */
:root {
    /* Brand bichromatique : teal profond (côte) + sauge (lande).
       --tertiary est une variante teal medium qui sert d'accent sans rompre l'unité. */
    --primary: #2F6F6B;          /* teal profond — titres, liens, éléments importants */
    --primary-soft: #4a8a85;
    --primary-dark: #1f5350;
    --primary-rgb: 47, 111, 107;

    --secondary: #6E8F80;        /* vert sauge — boutons, éléments interactifs */
    --secondary-dark: #57776a;
    --secondary-soft: #9bb4a6;
    --secondary-rgb: 110, 143, 128;

    --tertiary: #4a8a85;         /* teal medium — accents, hover, séparateurs */
    --tertiary-dark: #2F6F6B;
    --tertiary-soft: #7fb0ab;
    --tertiary-rgb: 74, 138, 133;

    /* Neutres */
    --text: #2a322f;
    --text-muted: #6e7872;
    --bg: #fbfaf6;               /* off-white chaleureux */
    --bg-rgb: 251, 250, 246;
    --bg-alt: #f3eee2;           /* beige doux pour alterner */
    --bg-elevated: #ffffff;      /* cartes / surfaces élevées */
    --border: #e3ddcf;           /* bordure beige discrète */
    --border-soft: #ece7da;

    /* Surfaces sombres dérivées du primary (contact, footer, hero overlay) */
    --surface-dark: #1d4a47;     /* primary assombri — section contact */
    --surface-darker: #14191a;   /* presque noir teinté — footer */
    --hero-overlay: 15, 38, 38;  /* overlay hero (utilisé avec rgba) */

    /* Ombres neutres */
    --shadow-rgb: 31, 42, 38;
    --shadow-sm: 0 1px 2px rgba(var(--shadow-rgb), 0.04), 0 1px 3px rgba(var(--shadow-rgb), 0.06);
    --shadow: 0 4px 12px rgba(var(--shadow-rgb), 0.06), 0 1px 3px rgba(var(--shadow-rgb), 0.05);
    --shadow-md: 0 10px 25px rgba(var(--shadow-rgb), 0.08), 0 3px 8px rgba(var(--shadow-rgb), 0.04);
    --shadow-lg: 0 20px 45px rgba(var(--shadow-rgb), 0.10), 0 6px 15px rgba(var(--shadow-rgb), 0.05);

    /* Layout */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --max-width: 1180px;
    --section-py: 110px;

    /* Motion */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);

    /* Compat (variables historiquement référencées par le JS) */
    --accent: var(--secondary-soft);
    --accent-light: var(--secondary-soft);
    --accent-bright: var(--secondary);
    --success: var(--secondary);
    --primary-light: var(--primary-soft);
    --bg-light: var(--bg-alt);
    --primary-color: var(--primary);
    --secondary-color: var(--secondary);
}

/* Dark mode */
body.dark-mode {
    --primary: #7fb5b1;
    --primary-soft: #9ec8c4;
    --primary-dark: #528a86;
    --primary-rgb: 127, 181, 177;

    --secondary: #a3bdaf;
    --secondary-dark: #c0d3c8;
    --secondary-soft: #5e7a6c;
    --secondary-rgb: 163, 189, 175;

    --tertiary: #c4e0dd;
    --tertiary-dark: #9ec8c4;
    --tertiary-soft: #d8eae8;
    --tertiary-rgb: 196, 224, 221;

    --text: #e6e9e3;
    --text-muted: #9ba59f;
    --bg: #161b19;
    --bg-rgb: 22, 27, 25;
    --bg-alt: #1d2522;
    --bg-elevated: #232c28;
    --border: #2f3934;
    --border-soft: #283230;

    --surface-dark: #0c2624;
    --surface-darker: #0e1212;
    --hero-overlay: 8, 22, 22;

    --shadow-rgb: 0, 0, 0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.45);
}

/* =====================================================
   2. Reset minimal
   ===================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: var(--secondary) transparent;
}

/* Chrome / Safari / Edge */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 999px;
    border: 2px solid var(--bg);
    background-clip: padding-box;
    transition: background 0.2s var(--ease);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-dark), var(--secondary-dark));
    background-clip: padding-box;
}

::-webkit-scrollbar-corner {
    background: transparent;
}

body.dark-mode ::-webkit-scrollbar-thumb {
    border-color: var(--bg);
}

body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

button {
    font-family: inherit;
}

::selection {
    background: var(--secondary);
    color: #fff;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
    color: var(--primary);
    letter-spacing: -0.005em;
    font-weight: 700;
    line-height: 1.25;
}

/* =====================================================
   3. Skip link & focus
   ===================================================== */
.skip-link {
    position: absolute;
    top: -60px;
    left: 16px;
    z-index: 10001;
    padding: 10px 18px;
    background: var(--surface-dark);
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    transition: top 0.2s var(--ease);
}

.skip-link:focus {
    top: 16px;
}

:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 3px;
    border-radius: 4px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}

/* =====================================================
   4. Navigation
   ===================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(var(--bg-rgb), 0.85);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.navbar.scrolled {
    background: rgba(var(--bg-rgb), 0.95);
    border-bottom-color: transparent;
    box-shadow: var(--shadow-sm);
}

/* Barre de progression du scroll : ligne fine en bas du header
   pilotée par la variable --scroll-progress (0 à 1) mise à jour en JS. */
.navbar::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, var(--tertiary) 100%);
    transform: scaleX(var(--scroll-progress, 0));
    transform-origin: 0 50%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
    box-shadow: 0 0 8px rgba(var(--secondary-rgb), 0.45);
}

.navbar.scrolled::after {
    opacity: 1;
}

body.dark-mode .navbar {
    background: rgba(var(--bg-rgb), 0.82);
}

body.dark-mode .navbar.scrolled {
    background: rgba(var(--bg-rgb), 0.92);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.32);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    transition: padding 0.3s var(--ease);
}

.navbar.scrolled .nav-container {
    padding-top: 10px;
    padding-bottom: 10px;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--primary);
}

.nav-logo-mark {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: width 0.3s var(--ease), height 0.3s var(--ease);
}

.nav-logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transform: scale(1.85);
    transform-origin: center;
}

.nav-logo-text {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.005em;
    white-space: nowrap;
    transition: font-size 0.3s var(--ease);
}

.navbar.scrolled .nav-logo-mark {
    width: 42px;
    height: 42px;
}

.navbar.scrolled .nav-logo-text {
    font-size: 0.95rem;
}

body.dark-mode .nav-logo-mark img {
    filter: brightness(0) invert(1);
}

/* Mobile : on garde uniquement le logo, le texte serait trop encombrant */
@media (max-width: 480px) {
    .nav-logo-text {
        display: none;
    }
}

body.dark-mode .nav-logo img {
    mix-blend-mode: normal;
    filter: brightness(0) invert(1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.2rem;
}

.nav-link {
    position: relative;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 4px 0;
    transition: color 0.2s var(--ease);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 1.5px;
    width: 0;
    background: var(--secondary);
    transition: width 0.25s var(--ease);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* Theme buttons */
.theme-toggle {
    display: flex;
    gap: 0.4rem;
}

.theme-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.theme-btn:hover {
    color: var(--primary);
    background: var(--bg-alt);
    border-color: var(--secondary);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: transparent;
    cursor: pointer;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.hamburger:hover {
    border-color: var(--secondary);
    background: var(--bg-alt);
}

.hamburger span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--primary);
    border-radius: 2px;
    transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
}

@media (max-width: 860px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s var(--ease);
    }

    .nav-menu.active {
        max-height: 460px;
    }

    .nav-menu li {
        border-top: 1px solid var(--border-soft);
    }

    .nav-link {
        display: block;
        padding: 16px 24px;
    }

    .nav-link::after {
        display: none;
    }
}

/* =====================================================
   5. Hero
   ===================================================== */
.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: var(--surface-dark);  /* fallback couleur si image lente */
    padding: 140px 24px 130px;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Layer dédié à l'image : permet l'animation Ken Burns sans toucher au contenu */
.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(rgba(var(--hero-overlay), 0.7), rgba(var(--hero-overlay), 0.7)),
        url('cote-bretagne.jpg') center/cover no-repeat;
    animation: kenBurns 25s ease-in-out infinite alternate;
    will-change: transform;
}

body.dark-mode .hero-background {
    background:
        linear-gradient(rgba(var(--hero-overlay), 0.8), rgba(var(--hero-overlay), 0.8)),
        url('cote-bretagne.jpg') center/cover no-repeat;
}

@keyframes kenBurns {
    from { transform: scale(1) translateZ(0); }
    to   { transform: scale(1.08) translateZ(0); }
}

/* Blobs décoratifs d'une ancienne version : neutralisés */
.gradient-blob,
.blob-1,
.blob-2 {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    text-align: center;
    will-change: opacity;
}

.hero-text h1 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: clamp(2.2rem, 4.4vw, 3.4rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.005em;
    color: #fff;
    margin-bottom: 1.5rem;
}

.gradient-text {
    color: #fff;
    font-style: italic;
    font-weight: 700;
    background: none;
    -webkit-text-fill-color: currentColor;
    filter: none;
}

.hero-text p {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.88);
    max-width: 620px;
    margin: 0 auto 2.2rem;
    font-weight: 400;
}

.cta-button,
.primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: var(--secondary);
    color: #fff;
    padding: 14px 30px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
    box-shadow: 0 6px 20px rgba(var(--secondary-rgb), 0.28);
    transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.cta-button:hover,
.primary-btn:hover {
    background: var(--tertiary);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(var(--tertiary-rgb), 0.32);
}

.cta-button i {
    transition: transform 0.25s var(--ease);
    font-size: 0.85rem;
}

.cta-button:hover i {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .hero {
        padding: 90px 24px 80px;
        min-height: 480px;
    }
}

/* =====================================================
   6. Section headers
   ===================================================== */
section {
    padding: var(--section-py) 24px;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.section-tag,
.hero-tag {
    display: inline-block;
    color: var(--secondary);
    background: rgba(var(--secondary-rgb), 0.08);
    border: 1px solid rgba(var(--secondary-rgb), 0.20);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* =====================================================
   7. Services
   ===================================================== */
.services {
    background: var(--bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.service-card {
    background: var(--bg-elevated);
    padding: 2.4rem 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--secondary-soft);
    box-shadow: var(--shadow-md);
}

.service-card::before {
    display: none;
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--secondary-rgb), 0.12);
    color: var(--secondary);
    font-size: 1.3rem;
    margin-bottom: 1.6rem;
    transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.service-card:hover .service-icon {
    background: var(--secondary);
    color: #fff;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.85rem;
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.6rem;
    flex: 1;
}

.service-link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    padding: 8px 18px;
    border: 1px solid var(--secondary);
    border-radius: 999px;
    background: transparent;
    transition: background 0.25s var(--ease), color 0.25s var(--ease), gap 0.25s var(--ease);
}

.service-link:hover {
    background: var(--secondary);
    color: #fff;
    gap: 0.65rem;
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
}

/* =====================================================
   8. About
   ===================================================== */
.about {
    background: var(--bg-alt);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text p {
    font-size: 1.04rem;
    line-height: 1.9;
    color: var(--text);
    margin-bottom: 1.2rem;
}

.about-text p:first-child::first-letter {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 3.4rem;
    font-weight: 700;
    line-height: 1;
    float: left;
    margin: 0.35rem 0.65rem 0 0;
    color: var(--secondary);
    letter-spacing: 0;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}

.stat {
    text-align: left;
}

.stat-number {
    font-family: 'Merriweather', Georgia, serif;
    font-size: clamp(2.2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--secondary);
    line-height: 1;
    background: none;
    -webkit-text-fill-color: currentColor;
    filter: none;
    letter-spacing: -0.01em;
}

.stat-label {
    margin-top: 0.5rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.about-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 18px;
    right: -18px;
    bottom: -18px;
    border: 1px solid var(--tertiary);
    border-radius: var(--radius-md);
    z-index: 0;
    background: none;
    opacity: 0.7;
    filter: none;
    width: auto;
    height: auto;
}

.about-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    aspect-ratio: 4/5;
    border: none;
    transition: transform 0.4s var(--ease);
}

.about-image img:hover {
    transform: translateY(-3px);
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        order: -1;
    }

    .about-image img {
        max-width: 320px;
    }

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

/* =====================================================
   9. Apporte (bénéfices)
   ===================================================== */
.apporte {
    background: var(--bg);
}

.apporte .benefits-list,
.benefits-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    max-width: 980px;
    margin: 0 auto;
    padding: 0;
}

.apporte .benefits-list li,
.benefits-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-elevated);
    padding: 1.1rem 1.4rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    color: var(--text);
    line-height: 1.55;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.apporte .benefits-list li:hover,
.benefits-list li:hover {
    transform: translateY(-2px);
    border-color: var(--secondary-soft);
    box-shadow: var(--shadow);
}

.benefit-icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--tertiary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

/* =====================================================
   10. Experiences (carousel)
   ===================================================== */
.experiences {
    background: var(--bg-alt);
}

.experiences-carousel {
    position: relative;
    --exp-gap: 1.75rem;
    padding: 0 56px;
}

.experiences-viewport {
    overflow: hidden;
    padding: 0.5rem 0.25rem;
}

.experiences-track {
    display: flex;
    gap: var(--exp-gap);
    transition: transform 0.55s var(--ease);
    will-change: transform;
}

.experiences-track .experience-card {
    flex: 0 0 calc((100% - 2 * var(--exp-gap)) / 3);
    min-width: 0;
}

.experience-card {
    position: relative;
    background: var(--bg-elevated);
    padding: 2.2rem 1.9rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    border-left: 3px solid var(--tertiary);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-left-color 0.3s var(--ease);
}

.experience-card:hover {
    transform: translateY(-3px);
    border-left-color: var(--secondary);
    box-shadow: var(--shadow-md);
}

.exp-number {
    position: absolute;
    top: 1.1rem;
    right: 1.4rem;
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--border);
    letter-spacing: -0.01em;
    font-style: italic;
}

.experience-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.85rem;
    padding-right: 2.5rem;
}

.experience-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

.exp-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--primary);
    cursor: pointer;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.exp-nav:hover:not(:disabled) {
    border-color: var(--secondary);
    color: var(--secondary);
    transform: translateY(-50%) scale(1.06);
}

.exp-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.exp-prev { left: 0; }
.exp-next { right: 0; }

.exp-dots {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 2rem;
}

.exp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: width 0.25s var(--ease), background 0.2s var(--ease);
    padding: 0;
}

.exp-dot:hover {
    background: var(--secondary-soft);
}

.exp-dot.active {
    background: var(--secondary);
    width: 22px;
    border-radius: 4px;
}

@media (max-width: 900px) {
    .experiences-track .experience-card {
        flex: 0 0 calc((100% - var(--exp-gap)) / 2);
    }
}

@media (max-width: 600px) {
    .experiences-carousel {
        padding: 0 42px;
        --exp-gap: 1rem;
    }
    .experiences-track .experience-card {
        flex: 0 0 100%;
    }
    .exp-nav {
        width: 36px;
        height: 36px;
    }
}

/* =====================================================
   11. Clients
   ===================================================== */
.clients {
    background: var(--bg);
}

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

.client-card {
    background: var(--bg-elevated);
    padding: 2rem 1.6rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.client-card:hover {
    transform: translateY(-3px);
    border-color: var(--secondary-soft);
    box-shadow: var(--shadow-md);
}

.client-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.2rem;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--tertiary-rgb), 0.14);
    color: var(--tertiary);
    font-size: 1.4rem;
    transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.client-card:hover .client-icon {
    background: var(--tertiary);
    color: #fff;
}

.client-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.65rem;
}

.client-card p {
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.65;
}

/* =====================================================
   12. FAQ
   ===================================================== */
.faq {
    background: var(--bg-alt);
}

.faq-list {
    max-width: 820px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.faq-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.faq-item:hover {
    border-color: var(--secondary-soft);
}

.faq-item[open] {
    border-color: var(--secondary);
    box-shadow: var(--shadow);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.4rem;
    padding: 1.15rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary);
    list-style: none;
    user-select: none;
    font-family: 'Inter', sans-serif;
}

.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; }

.faq-question > span {
    flex: 1;
    line-height: 1.45;
}

.faq-icon {
    color: var(--secondary);
    font-size: 0.78rem;
    flex-shrink: 0;
    transition: transform 0.3s var(--ease);
}

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem 1.4rem;
    color: var(--text-muted);
    font-size: 0.97rem;
    line-height: 1.75;
    animation: faqSlide 0.3s var(--ease);
}

.faq-answer p {
    margin: 0;
}

.faq-answer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.faq-answer a:hover {
    color: var(--tertiary);
}

@keyframes faqSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .faq-question {
        padding: 1rem 1.2rem;
        font-size: 0.95rem;
    }
    .faq-answer {
        padding: 0 1.2rem 1.2rem;
        font-size: 0.93rem;
    }
}

/* =====================================================
   13. Contact
   ===================================================== */
.contact {
    background: var(--surface-dark);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.contact-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(var(--tertiary-rgb), 0.18), transparent 55%),
        radial-gradient(circle at 82% 80%, rgba(var(--secondary-rgb), 0.22), transparent 55%);
    pointer-events: none;
}

.contact-wrapper {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h2 {
    color: #fff;
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    margin-bottom: 1rem;
}

.contact-header p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.02rem;
    line-height: 1.7;
}

.contact-form {
    background: var(--bg-elevated);
    color: var(--text);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

body.dark-mode .contact-form {
    background: var(--bg-alt);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.2rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 0.92rem;
}

.form-group input,
.form-group textarea {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.97rem;
    color: var(--text);
    background: var(--bg);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(var(--secondary-rgb), 0.18);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background: var(--bg);
    color: var(--text);
    border-color: var(--border);
}

.submit-button {
    width: 100%;
    padding: 14px 24px;
    background: var(--secondary);
    color: #fff;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    box-shadow: 0 4px 14px rgba(var(--secondary-rgb), 0.28);
    transition: background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.submit-button:hover {
    background: var(--tertiary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--tertiary-rgb), 0.38);
}

.submit-button i {
    transition: transform 0.25s var(--ease);
    font-size: 0.85rem;
}

.submit-button:hover i {
    transform: translateX(3px);
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .contact-form {
        padding: 1.6rem;
    }
}

/* =====================================================
   14. Footer
   ===================================================== */
.footer {
    background: var(--surface-darker);
    color: rgba(255, 255, 255, 0.85);
    padding: 4rem 24px 2rem;
}

.footer .container {
    padding: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 3.5rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.1rem;
}

.footer-logo-mark {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transform: scale(1.85);
    transform-origin: center;
    /* Footer sombre : on inverse l'encre teal du logo en blanc */
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

.footer-logo-text {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.005em;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1.2rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #fff;
    font-family: 'Inter', sans-serif;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.75;
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.65rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s var(--ease);
}

.footer-section a:hover {
    color: var(--tertiary);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.contact-item i {
    color: var(--tertiary);
    margin-top: 4px;
    font-size: 0.95rem;
}

.contact-item .label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.15rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.contact-item a,
.contact-item span {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
}

.contact-item a:hover {
    color: var(--tertiary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--tertiary);
    text-decoration: none;
}

@media (max-width: 860px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

address.contact-details {
    font-style: normal;
}

/* =====================================================
   15. Modals
   ===================================================== */
#modalOverlay {
    position: fixed;
    inset: 0;
    background: rgba(var(--shadow-rgb), 0.55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
}

#modalOverlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.97);
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    width: calc(100% - 32px);
    max-height: 86vh;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s var(--ease);
}

.modal.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    visibility: visible;
}

.modal-content {
    padding: 2.2rem;
}

.modal-content h2 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.modal-content p {
    color: var(--text);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.modal-content ul {
    list-style: none;
    margin: 1rem 0;
}

.modal-content ul li {
    color: var(--text);
    padding: 0.45rem 0 0.45rem 1.5rem;
    position: relative;
    line-height: 1.6;
}

.modal-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.95rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tertiary);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: 1px solid var(--border);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.modal-close:hover {
    color: var(--primary);
    border-color: var(--secondary);
    background: var(--bg-alt);
}

@media (max-width: 600px) {
    .modal-content {
        padding: 1.6rem;
    }
    .modal-content h2 {
        font-size: 1.3rem;
    }
}

/* =====================================================
   16. Availability picker (formulaire)
   ===================================================== */
.label-hint {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.85em;
    margin-left: 0.25rem;
}

.availability-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    text-align: left;
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.availability-toggle:hover {
    background: var(--border-soft);
    border-color: var(--secondary-soft);
}

.availability-toggle:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

.availability-toggle-main {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex: 1;
    min-width: 0;
}

.availability-toggle-main i {
    color: var(--secondary);
}

.availability-toggle-text {
    font-weight: 500;
}

.availability-toggle-main .label-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 400;
}

.availability-toggle-right {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.availability-toggle-count {
    font-size: 0.78rem;
    color: var(--text-muted);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: var(--border-soft);
    white-space: nowrap;
}

.availability-toggle-count.has-slots {
    background: var(--secondary);
    color: #fff;
    font-weight: 600;
}

.availability-toggle-chevron {
    color: var(--text-muted);
    transition: transform 0.25s var(--ease);
}

.availability-toggle[aria-expanded="true"] .availability-toggle-chevron {
    transform: rotate(180deg);
    color: var(--secondary);
}

.availability-toggle[aria-expanded="true"] {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
}

.availability-picker {
    border: 1px solid var(--border);
    border-top: none;
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
    padding: 1rem;
    background: var(--bg);
    overflow: hidden;
    transition: max-height 0.3s var(--ease), opacity 0.2s var(--ease), padding 0.2s var(--ease);
    max-height: 900px;
    opacity: 1;
}

.availability-picker.collapsed {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
    pointer-events: none;
}

.availability-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
    padding: 0 0.25rem;
}

.week-nav {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.75rem;
    cursor: pointer;
    color: var(--text);
    font-size: 0.85rem;
    font-family: inherit;
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.week-nav:hover:not(:disabled) {
    background: var(--border-soft);
    border-color: var(--secondary-soft);
}

.week-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.week-label {
    font-weight: 600;
    font-size: 0.93rem;
    color: var(--primary);
    text-transform: capitalize;
}

.availability-grid-wrap {
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.availability-grid {
    display: grid;
    grid-template-columns: 60px repeat(5, minmax(70px, 1fr));
    gap: 4px;
    min-width: 420px;
}

.avail-corner {
    background: transparent;
    border: none;
}

.avail-header-cell {
    padding: 0.4rem 0.25rem;
    text-align: center;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
}

.avail-day-name {
    font-weight: 600;
    text-transform: capitalize;
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

.avail-day-num {
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 0.15rem;
    color: var(--primary);
}

.avail-hour-label {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.5rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
}

.avail-cell {
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.25rem;
    cursor: pointer;
    color: var(--secondary);
    font-size: 0.78rem;
    font-family: inherit;
    min-height: 36px;
    transition: background 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.15s var(--ease);
}

.avail-cell:hover:not(:disabled):not(.selected) {
    background: rgba(var(--secondary-rgb), 0.10);
    border-color: var(--secondary-soft);
    transform: translateY(-1px);
}

.avail-cell.selected {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(var(--secondary-rgb), 0.32);
}

.avail-cell.past {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--bg-alt);
}

.avail-cell.past:hover {
    transform: none;
    background: var(--bg-alt);
}

.availability-summary {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.9rem;
    padding: 0.7rem 0.9rem;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text);
}

.availability-summary .summary-icon {
    color: var(--secondary);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.availability-summary .summary-text {
    flex: 1;
}

.availability-summary strong {
    color: var(--secondary);
}

@media (max-width: 600px) {
    .availability-grid {
        grid-template-columns: 48px repeat(5, minmax(58px, 1fr));
        gap: 3px;
    }
    .avail-cell {
        padding: 0.5rem 0.15rem;
        min-height: 32px;
    }
    .avail-day-num {
        font-size: 0.88rem;
    }
}

/* Admin : ligne créneaux */
.avail-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.avail-day-line {
    padding: 0.45rem 0.7rem;
    background: var(--bg-alt);
    border-left: 3px solid var(--secondary);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text);
}

.avail-day-line strong {
    color: var(--primary);
    margin-right: 0.35rem;
}

/* =====================================================
   17. Responsive global
   ===================================================== */
@media (max-width: 1024px) {
    :root {
        --section-py: 90px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-py: 70px;
    }

    .container {
        padding: 0 20px;
    }

    section {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 480px) {
    :root {
        --section-py: 60px;
    }

    .service-card,
    .client-card {
        padding: 1.6rem 1.4rem;
    }
}

/* =====================================================
   17b. Animations utilisées par script.js
   ===================================================== */
/* Reveal au scroll : appliqué via JS sur les sections, cartes et items.
   L'élément démarre invisible et glissé de 24 px, puis remonte en place
   quand IntersectionObserver détecte son entrée dans le viewport. */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    will-change: opacity, transform;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   18. Reduce-motion
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =====================================================
   19. Print
   ===================================================== */
@media print {
    .navbar,
    .hamburger,
    .theme-toggle,
    .modal,
    #modalOverlay,
    .skip-link,
    .cta-button,
    .submit-button,
    .exp-nav,
    .exp-dots,
    .availability-toggle,
    .availability-picker {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.85em;
        font-style: italic;
    }

    section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }

    h1, h2, h3 {
        page-break-after: avoid;
    }
}
