/* ==========================================================================
   Coco — Agence Web & Applications, Guyane
   Direction « Canopée » : éditorial tropical, typographie expressive,
   mouvement doux. Palette d'origine conservée.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Verts tropicaux (inchangés) */
    --primary-green: #526726;
    --secondary-green: #8fa727;
    --dark-green: #2e391c;
    --light-green: #bbc45c;
    --pale-green: #d5dfa3;

    /* Tons chauds (inchangés) */
    --accent-brown: #e2b680;
    --light-brown: #f9d8af;
    --cream: #fdf8e8;
    --light-cream: #fce3bd;
    --warm-beige: #fbe0a9;

    /* Neutres */
    --white: #ffffff;
    --off-white: #faf9f6;
    --text-dark: #1f2614;
    --text-light: #5d6352;
    --text-muted: #8d917f;
    --line: rgba(46, 57, 28, 0.14);
    --line-strong: rgba(46, 57, 28, 0.28);

    /* Gradients (conservés pour les pages annexes) */
    --gradient-tropical: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    --gradient-warm: linear-gradient(135deg, var(--accent-brown) 0%, var(--light-cream) 100%);
    --gradient-hero: linear-gradient(135deg, var(--cream) 0%, var(--pale-green) 50%, var(--light-cream) 100%);

    /* Espacements */
    --section-padding: clamp(5rem, 11vw, 10rem);
    --container-max: 1320px;
    --container-padding: clamp(1.25rem, 4vw, 3rem);
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: clamp(24px, 3vw, 40px);

    /* Typographie */
    --font-primary: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;

    /* Mouvement */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --transition-fast: 0.2s ease;
    --transition-medium: 0.35s var(--ease-out);
    --transition-slow: 0.6s var(--ease-out);

    /* Ombres */
    --shadow-sm: 0 2px 6px rgba(46, 57, 28, 0.06);
    --shadow-md: 0 10px 30px -10px rgba(46, 57, 28, 0.18);
    --shadow-lg: 0 24px 60px -20px rgba(46, 57, 28, 0.28);
    --shadow-xl: 0 40px 90px -30px rgba(46, 57, 28, 0.35);
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

html:not(.lenis) {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-optical-sizing: auto;
    color: var(--text-dark);
    background-color: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#main-site {
    overflow-x: clip;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button {
    font: inherit;
    color: inherit;
}

::selection {
    background: var(--light-green);
    color: var(--dark-green);
}

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

/* Grain photographique très léger sur toute la page */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9000;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .18 0 0 0 0 .22 0 0 0 0 .11 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Lenis (smooth scroll) */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.hidden {
    display: none !important;
}

/* --------------------------------------------------------------------------
   3. Transition de page
   -------------------------------------------------------------------------- */
.page-curtain {
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: var(--dark-green);
    display: grid;
    place-items: center;
    transform: translateY(101%);
    pointer-events: none;
}

.page-curtain img {
    width: 64px;
    height: 64px;
    opacity: 0.9;
}

.pt-in .page-curtain {
    transform: none;
}

/* --------------------------------------------------------------------------
   4. Intro
   -------------------------------------------------------------------------- */
#intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    background:
        radial-gradient(70% 60% at 50% 60%, rgba(213, 223, 163, 0.35), transparent 70%),
        var(--cream);
    overflow: hidden;
    cursor: pointer;
}

.intro-on #intro-overlay {
    display: block;
}

.intro-word {
    position: absolute;
    left: 50%;
    top: 46%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: baseline;
    font-family: var(--font-display);
    font-size: clamp(6rem, 25vw, 21rem);
    font-weight: 420;
    font-variation-settings: 'SOFT' 100, 'opsz' 144;
    letter-spacing: -0.045em;
    line-height: 1;
    color: var(--dark-green);
    white-space: nowrap;
    user-select: none;
}

.intro-l {
    display: inline-block;
    overflow: hidden;
    padding: 0 0.03em 0.08em;
    margin: 0 -0.03em -0.08em;
}

.intro-l > span {
    display: inline-block;
}

.intro-slot {
    visibility: hidden;
}

.intro-baseline {
    display: inline-block;
    width: 0;
    height: 0;
    vertical-align: baseline;
}

.intro-ground {
    position: absolute;
    left: 6vw;
    right: 6vw;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-strong) 12%, var(--line-strong) 88%, transparent);
    transform: scaleX(0);
}

.intro-dust {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.dust-particle {
    position: absolute;
    border-radius: 50%;
    background: var(--accent-brown);
}

.intro-nut {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 10001;
    display: none;
    visibility: hidden;
    pointer-events: none;
    will-change: transform;
    filter: drop-shadow(0 18px 24px rgba(46, 57, 28, 0.22));
}

.intro-nut img {
    width: 100%;
    height: 100%;
    will-change: transform;
}

.intro-on .intro-nut {
    display: block;
}

/* Le contenu du hero attend son entrée (le JS le révèle) */
.js [data-hero],
.js [data-hero-title],
.js [data-hero-visual],
.js [data-split] {
    visibility: hidden;
}

.intro-on .header .logo img {
    opacity: 0;
}

/* --------------------------------------------------------------------------
   5. Header & navigation
   -------------------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    padding: 14px var(--container-padding) 0;
    transition: transform 0.6s var(--ease-out);
}

.nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: calc(var(--container-max) - 2 * var(--container-padding) + 2.5rem);
    margin: 0 auto;
    padding: 0.55rem 0.55rem 0.55rem 1rem;
    border-radius: 999px;
}

/* Fond « verre » sur un pseudo-élément : évite de créer un containing block
   pour le menu mobile en position fixe. */
.nav::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: rgba(253, 248, 232, 0);
    border: 1px solid transparent;
    transition: background 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.header.scrolled .nav::before {
    background: rgba(253, 248, 232, 0.78);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    backdrop-filter: blur(16px) saturate(1.4);
    border-color: rgba(46, 57, 28, 0.08);
    box-shadow: 0 10px 40px -18px rgba(46, 57, 28, 0.35);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--dark-green);
    font-family: var(--font-display);
    font-variation-settings: 'SOFT' 100;
    font-weight: 500;
    font-size: 1.45rem;
    letter-spacing: -0.02em;
    line-height: 1;
}

.logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.6s var(--ease-out);
}

.logo:hover img {
    transform: rotate(-18deg) scale(1.06);
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    list-style: none;
}

.nav-links a {
    position: relative;
    display: inline-flex;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--dark-green);
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.2;
    overflow: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Effet « roulement » du texte au survol */
.nav-links a > span {
    display: inline-block;
    text-shadow: 0 1.6em 0 var(--primary-green);
    transition: transform 0.5s var(--ease-out);
}

.nav-links a:hover > span {
    transform: translateY(-1.6em);
}

.nav-links a.active {
    background: rgba(82, 103, 38, 0.1);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 4px;
    height: 4px;
    margin-left: -2px;
    border-radius: 50%;
    background: var(--secondary-green);
}

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

.lang-switcher {
    position: relative;
    display: flex;
    gap: 2px;
    padding: 3px;
    background: rgba(82, 103, 38, 0.08);
    border-radius: 999px;
    isolation: isolate;
}

/* Pastille blanche qui glisse vers la langue active (positionnée en JS) */
.lang-switcher::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 3px;
    bottom: 3px;
    left: 0;
    width: var(--pill-w, 0);
    border-radius: 999px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transform: translateX(var(--pill-x, 0));
    transition: transform 0.6s var(--ease-out), width 0.6s var(--ease-out);
}

.lang-switcher.pill-instant::before {
    transition: none;
}

.lang-switcher.has-pill .lang-btn.active {
    background: transparent;
    box-shadow: none;
}

.lang-btn {
    padding: 0.4rem 0.6rem;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    border-radius: 999px;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.lang-btn:hover {
    color: var(--primary-green);
}

.lang-btn.active {
    background: var(--white);
    color: var(--dark-green);
    box-shadow: var(--shadow-sm);
}

.nav-quote {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.15rem;
    border-radius: 999px;
    background: var(--dark-green);
    color: var(--cream);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1;
    transition: background-color 0.3s ease;
}

.nav-quote svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.4s var(--ease-out);
}

.nav-quote:hover {
    background: var(--primary-green);
}

.nav-quote:hover svg {
    transform: rotate(45deg);
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary-green);
    transform: scaleX(0);
    transform-origin: 0 50%;
    pointer-events: none;
}

.menu-toggle {
    display: none;
    position: relative;
    z-index: 1002;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: var(--dark-green);
    cursor: pointer;
    transition: background-color 0.4s ease;
}

.menu-toggle span {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 1.5px;
    background: var(--cream);
    border-radius: 2px;
    transition: transform 0.5s var(--ease-out), top 0.5s var(--ease-out);
}

.menu-toggle span:nth-child(1) { top: 19px; }
.menu-toggle span:nth-child(2) { top: 26px; }

.menu-toggle.active {
    background: var(--cream);
}

.menu-toggle.active span {
    background: var(--dark-green);
    top: 22.5px;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg); }
.menu-toggle.active span:nth-child(2) { transform: rotate(-45deg); }

.mobile-menu,
.mobile-lang-switcher {
    display: none;
}

/* --------------------------------------------------------------------------
   6. Éléments communs
   -------------------------------------------------------------------------- */
section {
    position: relative;
    padding: var(--section-padding) 0;
}

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

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-green);
}

.section-index {
    display: inline-grid;
    place-items: center;
    min-width: 2.1rem;
    height: 1.5rem;
    padding: 0 0.45rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}

.section-title {
    font-family: var(--font-display);
    font-variation-settings: 'SOFT' 100, 'opsz' 144;
    font-size: clamp(2.6rem, 6.2vw, 5.75rem);
    font-weight: 380;
    line-height: 1;
    letter-spacing: -0.035em;
    color: var(--dark-green);
    margin-bottom: 1.5rem;
    text-wrap: balance;
}

.section-description {
    font-size: clamp(1.05rem, 1.3vw, 1.2rem);
    line-height: 1.6;
    color: var(--text-light);
    max-width: 42ch;
    text-wrap: pretty;
}

/* Changement de langue : les textes visibles se fondent puis réapparaissent */
.i18n-out {
    animation: i18nOut 0.2s cubic-bezier(0.5, 0, 0.75, 0) forwards;
}

.i18n-in {
    animation: i18nIn 0.7s var(--ease-out) backwards;
    animation-delay: var(--i18n-delay, 0s);
}

@keyframes i18nOut {
    to { opacity: 0; filter: blur(4px); transform: translateY(-0.18em); }
}

@keyframes i18nIn {
    from { opacity: 0; filter: blur(4px); transform: translateY(0.3em); }
}

/* Lignes de texte découpées (SplitText) */
.split-line {
    padding-bottom: 0.06em;
    margin-bottom: -0.06em;
}

/* Boutons */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1.05rem 1.6rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: color 0.45s var(--ease-out), border-color 0.45s ease, box-shadow 0.45s ease;
}

.btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.5s var(--ease-out);
}

.btn:hover svg {
    transform: translateX(4px);
}

/* Remplissage circulaire au survol */
.btn::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    z-index: -1;
    width: 140%;
    aspect-ratio: 1;
    border-radius: 50%;
    transform: translate(-50%, 0) scale(0);
    transition: transform 0.6s var(--ease-out);
}

.btn:hover::before {
    transform: translate(-50%, -55%) scale(1);
}

.btn-primary {
    background: var(--dark-green);
    color: var(--cream);
    box-shadow: 0 14px 30px -14px rgba(46, 57, 28, 0.6);
}

.btn-primary::before {
    background: var(--secondary-green);
}

.btn-primary:hover {
    color: var(--dark-green);
}

.btn-secondary {
    background: transparent;
    color: var(--dark-green);
    border-color: var(--line-strong);
}

.btn-secondary::before {
    background: var(--dark-green);
}

.btn-secondary:hover {
    color: var(--cream);
    border-color: var(--dark-green);
}

.btn-light {
    background: var(--light-green);
    color: var(--dark-green);
}

.btn-light::before {
    background: var(--cream);
}

.btn-outline-light {
    background: transparent;
    color: var(--cream);
    border-color: rgba(253, 248, 232, 0.3);
}

.btn-outline-light::before {
    background: var(--cream);
}

.btn-outline-light:hover {
    color: var(--dark-green);
    border-color: var(--cream);
}

.btn:disabled {
    opacity: 0.7;
    cursor: progress;
}

.btn.is-loading svg {
    animation: spin 0.9s linear infinite;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding-bottom: 0.3rem;
    color: var(--dark-green);
    text-decoration: none;
    font-weight: 600;
    background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
    transition: background-size 0.5s var(--ease-out), color 0.3s ease;
}

.link-arrow svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.5s var(--ease-out);
}

.link-arrow:hover {
    color: var(--primary-green);
    background-size: 30% 1px;
}

.link-arrow:hover svg {
    transform: translateX(5px);
}

.pulse-dot {
    position: relative;
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary-green);
    flex-shrink: 0;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    animation: pulse 2.2s var(--ease-out) infinite;
}

.pulse-dot--small {
    width: 6px;
    height: 6px;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(3.2); opacity: 0; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 130px 0 120px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--cream);
    overflow: hidden;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.8;
    will-change: transform;
}

.hero-blob--1 {
    width: 58vw;
    height: 58vw;
    right: -14vw;
    top: -22vw;
    background: radial-gradient(circle, var(--pale-green), rgba(213, 223, 163, 0) 68%);
    animation: drift 18s ease-in-out infinite alternate;
}

.hero-blob--2 {
    width: 46vw;
    height: 46vw;
    left: -16vw;
    bottom: -20vw;
    background: radial-gradient(circle, var(--light-cream), rgba(252, 227, 189, 0) 68%);
    animation: drift 22s ease-in-out infinite alternate-reverse;
}

.hero-blob--3 {
    width: 30vw;
    height: 30vw;
    left: 38vw;
    top: 30vh;
    background: radial-gradient(circle, rgba(187, 196, 92, 0.45), rgba(187, 196, 92, 0) 70%);
    animation: drift 16s ease-in-out infinite alternate;
}

@keyframes drift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(3vw, 2vw, 0) scale(1.08); }
    100% { transform: translate3d(-2vw, 4vw, 0) scale(0.96); }
}

/* Ombres de palmes générées en JS */
/* Chaque palme est dessinée une fois en image (flou compris), puis seulement
   tournée par le GPU : aucune re-rasterisation pendant l'animation. */
.palm-shadows {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    pointer-events: none;
}

.palm-shadows img {
    position: absolute;
    max-width: none;
    will-change: transform;
}

.palm-frond {
    animation: sway var(--sway-dur, 9s) ease-in-out infinite alternate;
    animation-delay: var(--sway-delay, 0s);
}

@keyframes sway {
    from { transform: rotate(calc(var(--sway, 3deg) * -1)); }
    to { transform: rotate(var(--sway, 3deg)); }
}

.hero-inner {
    position: relative;
    z-index: 2;
    /* Le conteneur couvre la noix : seuls ses contenus captent la souris */
    pointer-events: none;
}

.hero-subtitle,
.hero-title,
.hero-description,
.hero-cta {
    pointer-events: auto;
}

.hero-meta {
    pointer-events: none;
}

.hero-meta > * {
    pointer-events: auto;
}

.hero-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.75rem;
    padding: 0.5rem 1rem 0.5rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-green);
}

.hero-title {
    max-width: 8.7em;
    font-family: var(--font-display);
    font-variation-settings: 'SOFT' 100, 'opsz' 144;
    font-size: clamp(3.1rem, 6.7vw, 6.5rem);
    font-weight: 360;
    line-height: 0.98;
    letter-spacing: -0.04em;
    color: var(--dark-green);
    text-wrap: balance;
}

.hero-title em {
    font-style: italic;
    font-weight: 320;
    color: var(--primary-green);
}

.hero-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(1.5rem, 2.4vw, 2.25rem);
    margin-top: clamp(1.75rem, 3.2vw, 2.75rem);
}

.hero-description {
    max-width: 36ch;
    font-size: clamp(1.05rem, 1.25vw, 1.2rem);
    line-height: 1.6;
    color: var(--text-light);
    text-wrap: pretty;
}

.hero-cta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: absolute;
    z-index: 1;
    right: max(3vw, calc((100vw - var(--container-max)) / 2 - 8vw));
    top: calc(50% - min(29vw, 430px) / 2);
    width: min(29vw, 430px);
    aspect-ratio: 1;
}

.hero-visual-inner {
    position: absolute;
    inset: 0;
    will-change: transform;
}

.hero-badge {
    position: absolute;
    inset: -22%;
    width: 144%;
    height: 144%;
    font-family: var(--font-primary);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.18em;
    fill: var(--primary-green);
    animation: spin 40s linear infinite;
}

.hero-coco-wrap {
    position: absolute;
    inset: 0;
    will-change: transform;
}

.floating-logo {
    width: 100%;
    height: 100%;
    cursor: pointer;
    filter: drop-shadow(0 40px 40px rgba(46, 57, 28, 0.25));
    animation: floatLogo 6s ease-in-out infinite;
}

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

.hero-meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 32px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-light);
}

.hero-clock {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-variant-numeric: tabular-nums;
}

.hero-clock time {
    color: var(--dark-green);
    font-weight: 600;
}

.hero-clock-tz {
    color: var(--text-muted);
}

.scroll-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s ease;
}

.scroll-indicator:hover {
    color: var(--dark-green);
}

.scroll-indicator-line {
    position: relative;
    width: 1px;
    height: 44px;
    background: var(--line);
    overflow: hidden;
}

.scroll-indicator-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 45%;
    background: var(--dark-green);
    animation: scrollLine 2s var(--ease-in-out) infinite;
}

@keyframes scrollLine {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(240%); }
}

/* --------------------------------------------------------------------------
   9. Services
   -------------------------------------------------------------------------- */
.services {
    background: var(--cream);
}

.services-layout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(3rem, 7vw, 7rem);
    align-items: start;
}

.services-head {
    position: sticky;
    top: 130px;
}

.services-head .section-description {
    margin-bottom: 2.25rem;
}

.services-list {
    list-style: none;
    border-bottom: 1px solid var(--line);
}

.service-row {
    position: relative;
    display: grid;
    grid-template-columns: 2.6rem 3.25rem minmax(0, 1fr) 2.75rem;
    gap: 1.25rem;
    align-items: center;
    padding: 2rem 0.25rem;
    border-top: 1px solid var(--line);
    text-decoration: none;
    color: var(--dark-green);
    isolation: isolate;
    transition: padding 0.6s var(--ease-out), color 0.4s ease, border-color 0.4s ease;
}

/* Fond révélé par découpage : les coins restent ronds pendant toute l'animation */
.service-row::before {
    content: '';
    position: absolute;
    inset: -1px 0 0;
    z-index: -1;
    border-radius: var(--radius);
    background: var(--dark-green);
    clip-path: inset(100% 0 0 0 round var(--radius));
    transition: clip-path 0.6s var(--ease-out);
}

.services-list {
    transition: border-color 0.4s ease;
}

.service-num {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    transition: color 0.4s ease;
}

.service-icon {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    color: var(--primary-green);
    transition: background-color 0.5s var(--ease-out), border-color 0.5s ease, color 0.4s ease, transform 0.6s var(--ease-out);
}

.service-icon svg {
    width: 22px;
    height: 22px;
}

.service-body h3 {
    font-family: var(--font-display);
    font-variation-settings: 'SOFT' 100, 'opsz' 72;
    font-size: clamp(1.5rem, 2.3vw, 2.15rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 0.4rem;
}

.service-body p {
    max-width: 48ch;
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--text-light);
    transition: color 0.4s ease;
}

.service-arrow {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    color: var(--dark-green);
    transition: transform 0.6s var(--ease-out), background-color 0.4s ease, color 0.4s ease;
}

.service-arrow svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (hover: hover) {
    .service-row:hover {
        padding-left: 1.5rem;
        padding-right: 1.25rem;
        color: var(--cream);
    }

    .service-row:hover::before {
        clip-path: inset(0 0 0 0 round var(--radius));
    }

    /* Les filets qui bordent la ligne survolée s'effacent */
    .service-row:hover,
    .services-list li:hover + li .service-row {
        border-top-color: transparent;
    }

    .services-list:has(> li:last-child .service-row:hover) {
        border-bottom-color: transparent;
    }

    .service-row:hover .service-num { color: var(--light-green); }
    .service-row:hover .service-body p { color: rgba(253, 248, 232, 0.72); }

    .service-row:hover .service-icon {
        background: var(--light-green);
        border-color: var(--light-green);
        color: var(--dark-green);
        transform: rotate(-12deg);
    }

    .service-row:hover .service-arrow {
        background: var(--cream);
        color: var(--dark-green);
        transform: rotate(45deg);
    }
}

/* --------------------------------------------------------------------------
   9b. Devis (configurateur intégré)
   -------------------------------------------------------------------------- */
.estimate {
    padding-top: 0;
    background: var(--cream);
}

.estimate-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem 3rem;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.estimate-head .section-title {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   10. Témoignages
   -------------------------------------------------------------------------- */
.testimonials {
    margin: 0 clamp(0.5rem, 1.5vw, 1.5rem);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(60% 80% at 100% 0%, rgba(143, 167, 39, 0.28), transparent 60%),
        radial-gradient(50% 60% at 0% 100%, rgba(226, 182, 128, 0.14), transparent 60%),
        var(--dark-green);
    color: var(--cream);
    overflow: hidden;
}

.testimonials .section-tag {
    color: var(--light-green);
}

.testimonials .section-title {
    color: var(--cream);
    margin-bottom: 0;
}

.testimonials .section-description {
    color: rgba(253, 248, 232, 0.68);
}

.testimonials-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem 3rem;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

.testimonials-slider {
    position: relative;
    padding-top: clamp(2rem, 4vw, 3rem);
    border-top: 1px solid rgba(253, 248, 232, 0.14);
}

.quote-icon {
    width: clamp(40px, 5vw, 64px);
    height: auto;
    color: var(--light-green);
    margin-bottom: 1.75rem;
}

.testimonials-stage {
    display: grid;
}

.testimonial {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.js .testimonial:not(.is-active) {
    visibility: hidden;
    opacity: 0;
}

.testimonial-text {
    max-width: 30ch;
    font-family: var(--font-display);
    font-variation-settings: 'SOFT' 100, 'opsz' 144;
    font-size: clamp(1.75rem, 3.7vw, 3.5rem);
    font-style: italic;
    font-weight: 300;
    line-height: 1.14;
    letter-spacing: -0.025em;
    color: var(--cream);
    text-wrap: balance;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--light-green);
    color: var(--dark-green);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
}

.author-info {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.author-name {
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--cream);
}

.author-role {
    font-size: 0.9rem;
    color: rgba(253, 248, 232, 0.6);
}

.testimonials-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: clamp(2.5rem, 5vw, 4rem);
}

.testimonials-count {
    min-width: 4.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(253, 248, 232, 0.6);
    font-variant-numeric: tabular-nums;
}

.testimonials-current {
    color: var(--cream);
}

.testimonials-progress {
    position: relative;
    flex: 1;
    height: 1px;
    background: rgba(253, 248, 232, 0.18);
    overflow: hidden;
}

.testimonials-progress span {
    position: absolute;
    inset: 0;
    background: var(--light-green);
    transform: scaleX(0);
    transform-origin: 0 50%;
}

.t-btn {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(253, 248, 232, 0.25);
    background: transparent;
    color: var(--cream);
    cursor: pointer;
    transition: background-color 0.4s var(--ease-out), color 0.4s ease, border-color 0.4s ease, transform 0.4s var(--ease-out);
}

.t-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.t-btn:hover {
    background: var(--cream);
    border-color: var(--cream);
    color: var(--dark-green);
}

.t-btn:active {
    transform: scale(0.92);
}

/* Sans JS : les témoignages s'empilent simplement */
html:not(.js) .testimonials-stage { gap: 3rem; }
html:not(.js) .testimonial { grid-area: auto; }
html:not(.js) .testimonials-nav { display: none; }

/* --------------------------------------------------------------------------
   11. À propos
   -------------------------------------------------------------------------- */
.about {
    background: var(--cream);
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 15%;
    right: -12%;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(226, 182, 128, 0.22) 0%, transparent 70%);
    pointer-events: none;
}

.about-content {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(3rem, 7vw, 7rem);
    align-items: center;
}

.about-text p {
    max-width: 58ch;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-light);
    margin-bottom: 1.25rem;
    text-wrap: pretty;
}

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

.stat-number {
    display: flex;
    align-items: flex-start;
    font-family: var(--font-display);
    font-variation-settings: 'SOFT' 100, 'opsz' 144;
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 320;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--dark-green);
    font-variant-numeric: tabular-nums;
}

.stat-number sup {
    margin-left: 0.08em;
    font-size: 0.45em;
    line-height: 1.2;
    color: var(--secondary-green);
}

.stat-label {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.9rem;
    line-height: 1.35;
    color: var(--text-light);
}

.about-visual {
    display: flex;
    justify-content: center;
}

.about-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 520px;
}

.about-decoration {
    position: absolute;
    inset: -18px;
    border-radius: calc(var(--radius-lg) + 10px);
    background: var(--gradient-warm);
    opacity: 0.45;
    transform: rotate(3deg);
    transition: transform 0.8s var(--ease-out), opacity 0.6s ease;
}

.about-image-wrapper:hover .about-decoration {
    transform: rotate(5deg) scale(1.02);
    opacity: 0.6;
}

.about-map {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.8s var(--ease-out), box-shadow 0.8s ease;
}

.about-map:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.guyane-map {
    display: block;
    width: 100%;
    height: auto;
    font-family: var(--font-primary);
}

.guyane-map .coast-guyane {
    transition: stroke-width 0.4s ease, filter 0.4s ease;
}

.about-map:hover .guyane-map .coast-guyane {
    stroke-width: 3.5;
    filter: drop-shadow(0 0 6px rgba(82, 103, 38, 0.5));
}

.guyane-map .city {
    cursor: pointer;
}

.guyane-map .city-dot {
    transition: r 0.3s ease, filter 0.3s ease;
}

.guyane-map .city-label {
    transition: fill 0.3s ease;
}

.guyane-map .city:hover .city-dot {
    filter: drop-shadow(0 0 8px rgba(82, 103, 38, 0.6));
}

.guyane-map .city:hover .city-label {
    fill: var(--dark-green);
}

.guyane-map .city-capital .city-ring {
    transition: r 0.3s ease, opacity 0.3s ease;
}

.guyane-map .city-capital:hover .city-ring {
    r: 16;
    opacity: 0.6;
}

.guyane-map .city-capital:hover .city-dot {
    filter: drop-shadow(0 0 12px rgba(82, 103, 38, 0.8));
}

.guyane-map .city-pulse {
    transform-box: fill-box;
    transform-origin: center;
    animation: cityPulse 2.6s var(--ease-out) infinite;
}

@keyframes cityPulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(3.4); opacity: 0; }
}

.map-caption {
    position: absolute;
    right: 1.1rem;
    bottom: 0.9rem;
    display: flex;
    gap: 0.9rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   12. Contact
   -------------------------------------------------------------------------- */
.contact {
    background: var(--cream);
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    left: -15%;
    bottom: -20%;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(187, 196, 92, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.contact-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 1rem 3rem;
    margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

.contact-head .section-tag {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.contact-head .section-title {
    margin-bottom: 0;
}

.contact-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    padding: clamp(1.5rem, 3.5vw, 3rem);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
}

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

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

.form-group label .optional {
    font-weight: 400;
    color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.95rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--off-white);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--line-strong);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(143, 167, 39, 0.18);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 3rem;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23526726' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.15rem;
}

.form-group select.is-flash {
    animation: selectFlash 1.2s var(--ease-out);
}

@keyframes selectFlash {
    0%, 100% { box-shadow: 0 0 0 0 rgba(143, 167, 39, 0); }
    30% { box-shadow: 0 0 0 6px rgba(143, 167, 39, 0.35); }
}

.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #b23b2b;
    background: rgba(178, 59, 43, 0.05);
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.contact-form .btn {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 0.5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--line);
}

.contact-item:first-child {
    padding-top: 0.5rem;
}

.contact-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    color: var(--primary-green);
}

.contact-icon svg {
    width: 21px;
    height: 21px;
}

.contact-item h4 {
    margin-bottom: 0.2rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.contact-item p {
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--dark-green);
}

.contact-item p a {
    color: var(--primary-green);
    text-decoration: none;
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: background-size 0.4s var(--ease-out);
}

.contact-item p a:hover {
    background-size: 100% 1px;
}

.quote-card {
    position: relative;
    display: grid;
    gap: 0.4rem;
    margin-top: 1.25rem;
    padding: 1.75rem 4.5rem 1.75rem 1.75rem;
    border-radius: var(--radius);
    background: var(--dark-green);
    color: var(--cream);
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.6s var(--ease-out), box-shadow 0.6s ease;
}

.quote-card::before {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    z-index: -1;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(143, 167, 39, 0.55), transparent 70%);
    transition: transform 0.8s var(--ease-out);
}

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

.quote-card:hover::before {
    transform: scale(1.6);
}

.quote-card-tag {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--light-green);
}

.quote-card-title {
    font-family: var(--font-display);
    font-variation-settings: 'SOFT' 100;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.quote-card-arrow {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    border-radius: 50%;
    background: var(--cream);
    color: var(--dark-green);
    transition: transform 0.6s var(--ease-out);
}

.quote-card-arrow svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.quote-card:hover .quote-card-arrow {
    transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   13. Footer : carte détachée des bords, appel à l'action, contact direct
   -------------------------------------------------------------------------- */
.footer {
    padding: clamp(1rem, 3vw, 2rem) clamp(0.5rem, 1.5vw, 1.5rem) clamp(0.5rem, 1.5vw, 1.5rem);
}

.footer-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding-top: clamp(3.5rem, 7vw, 6.5rem);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(60% 70% at 100% 0%, rgba(143, 167, 39, 0.26), transparent 60%),
        radial-gradient(45% 55% at 0% 100%, rgba(226, 182, 128, 0.12), transparent 60%),
        var(--dark-green);
    color: var(--pale-green);
}

.footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: end;
    padding-bottom: clamp(3rem, 6vw, 5rem);
    border-bottom: 1px solid rgba(213, 223, 163, 0.16);
}

.footer-status {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
    padding: 0.45rem 0.95rem 0.45rem 0.8rem;
    border: 1px solid rgba(213, 223, 163, 0.22);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--light-green);
}

.footer-status .pulse-dot {
    background: var(--light-green);
}

.footer-title {
    max-width: 11em;
    font-family: var(--font-display);
    font-variation-settings: 'SOFT' 100, 'opsz' 144;
    font-size: clamp(2.6rem, 6vw, 5.6rem);
    font-weight: 320;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--cream);
    text-wrap: balance;
}

.footer-title em {
    font-style: italic;
    color: var(--light-green);
}

.footer-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: clamp(2rem, 3.5vw, 2.75rem);
}

.footer-direct {
    list-style: none;
    border-top: 1px solid rgba(213, 223, 163, 0.16);
}

.footer-direct li {
    border-bottom: 1px solid rgba(213, 223, 163, 0.16);
}

.footer-direct li:last-child {
    border-bottom: 0;
}

.footer-direct-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1.15rem 3rem 1.15rem 0;
    text-decoration: none;
    color: var(--cream);
}

.footer-direct-item small {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(213, 223, 163, 0.55);
}

.footer-direct-item span {
    font-family: var(--font-display);
    font-variation-settings: 'SOFT' 100, 'opsz' 48;
    font-size: clamp(1.2rem, 1.7vw, 1.5rem);
    font-weight: 380;
    line-height: 1.2;
    letter-spacing: -0.015em;
    font-variant-numeric: tabular-nums;
    transition: color 0.3s ease, transform 0.6s var(--ease-out);
}

.footer-direct-item svg {
    position: absolute;
    right: 0.25rem;
    top: 50%;
    width: 22px;
    height: 22px;
    margin-top: -11px;
    fill: none;
    stroke: var(--light-green);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.6s var(--ease-out);
}

a.footer-direct-item:hover span {
    color: var(--light-green);
    transform: translateX(6px);
}

a.footer-direct-item:hover svg {
    transform: rotate(45deg);
}

.footer-content {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.footer-brand .logo {
    color: var(--cream);
    margin-bottom: 1rem;
}

.footer-brand p {
    max-width: 28ch;
    font-size: 0.98rem;
    line-height: 1.6;
    color: rgba(213, 223, 163, 0.75);
}

.footer h4 {
    margin-bottom: 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(213, 223, 163, 0.55);
}

.footer ul {
    list-style: none;
}

.footer-links li,
.footer-services li {
    margin-bottom: 0.55rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-links a,
.footer-services a {
    color: var(--cream);
    text-decoration: none;
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: background-size 0.4s var(--ease-out), color 0.3s ease;
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--light-green);
    background-size: 100% 1px;
}

.footer-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(213, 223, 163, 0.16);
    font-size: 0.85rem;
    color: rgba(213, 223, 163, 0.65);
}

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

.footer-bottom a:hover {
    color: var(--cream);
    text-decoration: underline;
}

.back-top {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid rgba(213, 223, 163, 0.3);
    background: transparent;
    color: var(--cream);
    cursor: pointer;
    transition: background-color 0.4s ease, color 0.4s ease, transform 0.5s var(--ease-out);
}

.back-top svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.back-top:hover {
    background: var(--light-green);
    color: var(--dark-green);
    transform: translateY(-3px);
}

/* « coco » géant : la noix tient lieu de dernier « o », comme dans l'intro */
.footer-wordmark {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin: -0.16em 0 -0.07em;
    font-family: var(--font-display);
    font-variation-settings: 'SOFT' 100, 'opsz' 144;
    font-size: 34vw;
    font-weight: 300;
    line-height: 0.8;
    letter-spacing: -0.06em;
    color: rgba(187, 196, 92, 0.14);
    user-select: none;
    pointer-events: none;
}

.footer-wordmark img {
    width: 0.56em;
    height: 0.56em;
    margin-left: 0.01em;
    transform: translateY(0.035em);
    opacity: 0.9;
    will-change: transform;
}

/* --------------------------------------------------------------------------
   14. Notifications, easter egg, utilitaires
   -------------------------------------------------------------------------- */
.notification {
    position: fixed;
    right: clamp(1rem, 3vw, 2rem);
    bottom: clamp(1rem, 3vw, 2rem);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: min(420px, calc(100vw - 2rem));
    padding: 1rem 1.35rem;
    border-radius: 16px;
    background: var(--dark-green);
    color: var(--cream);
    font-weight: 500;
    line-height: 1.4;
    box-shadow: var(--shadow-xl);
    animation: toastIn 0.6s var(--ease-out);
}

.notification::before {
    content: '';
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--light-green);
}

.notification-error {
    background: #8f2f23;
}

.notification-error::before {
    background: var(--light-brown);
}

.notification.is-leaving {
    animation: toastOut 0.4s var(--ease-in-out) forwards;
}

@keyframes toastIn {
    from { transform: translateY(20px) scale(0.96); opacity: 0; }
    to { transform: none; opacity: 1; }
}

@keyframes toastOut {
    to { transform: translateY(20px) scale(0.96); opacity: 0; }
}

.easter-egg-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(46, 57, 28, 0.96);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    cursor: pointer;
}

.easter-egg-overlay.active {
    opacity: 1;
    visibility: visible;
}

.easter-egg-coco {
    width: 160px;
    height: 160px;
}

.easter-egg-coco img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: easterEggFloat 2s ease-in-out infinite;
}

.easter-egg-coco.crack {
    animation: crackEffect 0.6s ease forwards;
}

@keyframes easterEggFloat {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

@keyframes crackEffect {
    0% { transform: scale(1); }
    20% { transform: scale(1.2) rotate(-10deg); }
    40% { transform: scale(0.9) rotate(10deg); }
    60% { transform: scale(1.1) rotate(-5deg); }
    100% { transform: scale(1) rotate(0); }
}

.easter-egg-message {
    margin-top: 2rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s var(--ease-out) 0.3s forwards;
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.easter-egg-text {
    color: var(--cream);
}

.easter-emoji {
    display: block;
    margin-bottom: 1rem;
    font-size: 3rem;
    animation: emojiPulse 1s ease-in-out infinite;
}

@keyframes emojiPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.easter-egg-text p {
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
    font-variation-settings: 'SOFT' 100;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 400;
    letter-spacing: -0.02em;
}

.easter-egg-text small {
    font-size: 0.95rem;
    opacity: 0.7;
}

.wiggle {
    animation: wiggle 0.5s ease !important;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-12deg); }
    75% { transform: rotate(12deg); }
}

/* --------------------------------------------------------------------------
   15. Page mentions légales
   -------------------------------------------------------------------------- */
.legal-page {
    min-height: 100vh;
    padding-top: clamp(130px, 16vw, 180px);
    padding-bottom: var(--section-padding);
    background: var(--cream);
}

.legal-content {
    max-width: 820px;
    margin: 0 auto;
}

.legal-content h1 {
    margin-bottom: 2.5rem;
    font-family: var(--font-display);
    font-variation-settings: 'SOFT' 100, 'opsz' 144;
    font-size: clamp(2.6rem, 6vw, 5rem);
    font-weight: 360;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--dark-green);
}

.legal-section {
    padding: 1.9rem 0;
    border-top: 1px solid var(--line);
}

.legal-section h2 {
    margin-bottom: 0.75rem;
    font-family: var(--font-display);
    font-variation-settings: 'SOFT' 100;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--dark-green);
}

.legal-section p {
    margin-bottom: 0.5rem;
    line-height: 1.75;
    color: var(--text-light);
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-back {
    margin-top: 3rem;
}

.legal-back .btn:hover svg {
    transform: translateX(-4px);
}

/* --------------------------------------------------------------------------
   16. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .nav-links a {
        padding: 0.55rem 0.65rem;
    }
}

@media (max-width: 992px) {
    .desktop-nav,
    .desktop-only {
        display: none !important;
    }

    .menu-toggle {
        display: block;
    }

    .header.scrolled .nav::before,
    .nav::before {
        background: rgba(253, 248, 232, 0.78);
        -webkit-backdrop-filter: blur(16px) saturate(1.4);
        backdrop-filter: blur(16px) saturate(1.4);
        border-color: rgba(46, 57, 28, 0.08);
    }

    body.menu-open .nav::before {
        background: transparent;
        border-color: transparent;
        box-shadow: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    body.menu-open .nav > .logo {
        color: var(--cream);
        position: relative;
        z-index: 1002;
    }

    /* Menu plein écran, ouverture circulaire depuis le bouton */
    .mobile-menu {
        position: fixed;
        inset: 0;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 6rem var(--container-padding) 2.5rem;
        background:
            radial-gradient(80% 60% at 100% 0%, rgba(143, 167, 39, 0.3), transparent 60%),
            var(--dark-green);
        clip-path: circle(0 at calc(100% - var(--container-padding) - 32px) 46px);
        visibility: hidden;
        transition: clip-path 0.8s var(--ease-in-out), visibility 0s linear 0.8s;
        overflow-y: auto;
    }

    .mobile-menu.active {
        clip-path: circle(150% at calc(100% - var(--container-padding) - 32px) 46px);
        visibility: visible;
        transition: clip-path 0.8s var(--ease-in-out), visibility 0s;
    }

    .mobile-menu-logo {
        position: absolute;
        right: -60px;
        bottom: -60px;
        width: 260px;
        height: 260px;
        opacity: 0.12;
        transform: rotate(-20deg) scale(0.8);
        transition: transform 1.2s var(--ease-out);
    }

    .mobile-menu.active .mobile-menu-logo {
        transform: rotate(0) scale(1);
    }

    .mobile-nav-links {
        list-style: none;
    }

    .mobile-nav-links li {
        overflow: hidden;
        border-bottom: 1px solid rgba(213, 223, 163, 0.12);
    }

    .mobile-nav-links a {
        display: flex;
        align-items: baseline;
        gap: 1rem;
        padding: 0.7rem 0;
        text-decoration: none;
        color: var(--cream);
        font-family: var(--font-display);
        font-variation-settings: 'SOFT' 100, 'opsz' 144;
        font-size: clamp(2rem, 9vw, 3.25rem);
        font-weight: 340;
        line-height: 1.1;
        letter-spacing: -0.03em;
        transform: translateY(105%);
        transition: transform 0.7s var(--ease-out), color 0.3s ease;
    }

    .mobile-nav-links a small {
        font-family: var(--font-primary);
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.08em;
        color: var(--light-green);
    }

    .mobile-nav-links a:hover {
        color: var(--light-green);
    }

    .mobile-menu.active .mobile-nav-links a {
        transform: none;
    }

    .mobile-menu.active .mobile-nav-links li:nth-child(1) a { transition-delay: 0.25s; }
    .mobile-menu.active .mobile-nav-links li:nth-child(2) a { transition-delay: 0.3s; }
    .mobile-menu.active .mobile-nav-links li:nth-child(3) a { transition-delay: 0.35s; }
    .mobile-menu.active .mobile-nav-links li:nth-child(4) a { transition-delay: 0.4s; }
    .mobile-menu.active .mobile-nav-links li:nth-child(5) a { transition-delay: 0.45s; }
    .mobile-menu.active .mobile-nav-links li:nth-child(6) a { transition-delay: 0.5s; }

    .mobile-lang-switcher {
        display: flex;
        gap: 0.4rem;
        margin-top: 2.5rem;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s ease, transform 0.6s var(--ease-out);
    }

    .mobile-menu.active .mobile-lang-switcher {
        opacity: 1;
        transform: none;
        transition-delay: 0.55s;
    }

    .mobile-lang-switcher .lang-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        color: rgba(253, 248, 232, 0.7);
        border: 1px solid rgba(253, 248, 232, 0.2);
    }

    .mobile-lang-switcher .lang-btn:hover,
    .mobile-lang-switcher .lang-btn.active {
        background: var(--cream);
        border-color: var(--cream);
        color: var(--dark-green);
    }

    body.menu-open {
        overflow: hidden;
    }

    /* Hero empilé */
    .hero {
        justify-content: flex-start;
        padding-top: 110px;
    }

    .hero-visual {
        position: relative;
        right: auto;
        top: auto;
        order: -1;
        width: min(52vw, 280px);
        margin: 0 auto 1.5rem;
    }

    .hero-inner {
        text-align: left;
    }

    .hero-title {
        font-size: clamp(2.7rem, 10.5vw, 5.5rem);
    }

    .hero-meta {
        position: relative;
        bottom: auto;
        margin-top: 3rem;
    }

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

    .services-head {
        position: static;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

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

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

    .footer-top {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .service-row {
        grid-template-columns: 2.75rem minmax(0, 1fr) 2rem;
        gap: 1rem;
        padding: 1.6rem 0;
    }

    .service-num {
        display: none;
    }

    .service-icon {
        width: 2.75rem;
        height: 2.75rem;
        align-self: start;
    }

    .service-arrow {
        width: 2rem;
        height: 2rem;
        align-self: start;
    }

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

    .about-stats {
        gap: 1rem;
    }

    .testimonials-nav {
        flex-wrap: wrap;
    }

    .testimonials-progress {
        order: 3;
        flex-basis: 100%;
    }

    .footer-content {
        gap: 2rem 1.5rem;
    }

    .footer-ctas .btn {
        flex: 1 1 100%;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn,
    .contact-form .btn {
        width: 100%;
    }

    .hero-clock-tz {
        display: none;
    }

    .stat-label {
        font-size: 0.8rem;
    }
}

/* --------------------------------------------------------------------------
   17. Mouvement réduit
   -------------------------------------------------------------------------- */
@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;
    }
}
