/* ============================================================
   CLAUDE TIMMERMAN — Site Web
   Palette : tons automnaux, chaleur du bois
   ============================================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Palette chêne cérusé — tons clairs, élégants */
    --color-cream:      #FAFAF6;
    --color-sand:       #F3F0EB;
    --color-wheat:      #EAE5DD;
    --color-caramel:    #CBC3B7;
    --color-copper:     #B3AA9D;
    --color-amber:      #9E9385;
    --color-chestnut:   #807669;
    --color-mahogany:   #625950;
    --color-espresso:   #3F3A34;
    --color-bark:       #2A2520;

    /* Dégradés — chêne cérusé */
    --gradient-warm:    linear-gradient(135deg, #807669 0%, #9E9385 30%, #B3AA9D 55%, #CBC3B7 75%, #EAE5DD 100%);
    --gradient-hero:    linear-gradient(180deg, rgba(42,37,32,0.25) 0%, rgba(63,58,52,0.45) 100%);
    --gradient-card:    linear-gradient(180deg, rgba(250,250,246,0) 0%, rgba(203,195,183,0.10) 100%);
    --gradient-hero-bg: linear-gradient(135deg, #625950 0%, #807669 20%, #9E9385 40%, #B3AA9D 60%, #CBC3B7 80%, #EAE5DD 100%);
    --color-header-scrolled: rgba(250, 250, 246, 0.94);
    --color-menu-mobile: rgba(42, 37, 32, 0.96);

    /* Texture bois — fichier SVG statique (remplace l'ancien filtre SVG procédural
       feTurbulence, très coûteux sous Safari/WebKit) */
    --wood-grain: url("wood-texture.svg");

    /* Ombres */
    --shadow-sm:        0 2px 8px rgba(42,37,32,0.06);
    --shadow-md:        0 6px 24px rgba(42,37,32,0.10);
    --shadow-lg:        0 12px 40px rgba(42,37,32,0.15);

    /* Typographie */
    --font-serif:       'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans:        'Raleway', 'Segoe UI', Arial, sans-serif;

    /* Layout */
    --nav-height:       72px;
    --container-max:    1120px;

    /* Transitions */
    --ease-out:         cubic-bezier(0.25, 0.8, 0.25, 1);
    --ease-smooth:      cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   THÈME « BOIS & FORÊT » (fidèle aux couleurs de la carte de visite)
   Activé via la classe .theme-forest sur <html>
   ============================================================ */
:root.theme-forest {
    /* Verts */
    --color-cream:      #FAF7F3;
    --color-sand:       #F1E9DF;
    --color-wheat:      #E6DCCF;
    --color-caramel:    #C9B29A;
    --color-copper:     #8B5B37;
    --color-amber:      #6E4526;
    --color-chestnut:   #245F40;
    --color-mahogany:   #0E4F2D;
    --color-espresso:   #0A3B21;
    --color-bark:       #073B20;

    /* Dégradés — vert forêt vers bois orangé */
    --gradient-warm:    linear-gradient(135deg, #0E4F2D 0%, #245F40 35%, #8B5B37 75%, #C9B29A 100%);
    --gradient-hero:    linear-gradient(180deg, rgba(7,59,32,0.25) 0%, rgba(10,59,33,0.45) 100%);
    --gradient-card:    linear-gradient(180deg, rgba(250,247,243,0) 0%, rgba(139,91,55,0.10) 100%);
    --gradient-hero-bg: linear-gradient(135deg, #073B20 0%, #0E4F2D 20%, #245F40 40%, #8B5B37 65%, #C9B29A 85%, #E6DCCF 100%);
    --color-header-scrolled: rgba(250, 247, 243, 0.94);
    --color-menu-mobile: rgba(7, 59, 32, 0.97);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-espresso);
    background-color: var(--color-cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Texture grain de bois discrète en fond de page */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.3;
    background: var(--wood-grain) center/cover repeat;
    pointer-events: none;
    /* Safari/WebKit : on promeut cette couche en GPU pour ne pas re-rasteriser
       la texture SVG filtrée (feTurbulence) à chaque repaint. */
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
}

/* ---------- TYPOGRAPHIE ---------- */
.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--color-espresso);
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-underline {
    width: 60px;
    height: 3px;
    background: var(--gradient-warm);
    margin: 0 auto 2rem;
    border-radius: 2px;
    animation: underlineGrow 0.9s var(--ease-smooth) both;
}

.section-intro {
    text-align: center;
    color: var(--color-mahogany);
    font-size: 1.1rem;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* ---------- NAVIGATION ---------- */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

#header.scrolled {
    background: var(--color-header-scrolled);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-md);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    height: var(--nav-height);
    max-width: var(--container-max);
    margin: 0 auto;
}

.nav-brand .brand-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-cream);
    transition: color 0.3s;
    letter-spacing: 0.02em;
}

.brand-icon {
    font-size: 1.4rem;
    color: var(--color-caramel);
}

#header.scrolled .brand-link {
    color: var(--color-espresso);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-link {
    position: relative;
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-cream);
    transition: color 0.3s;
    letter-spacing: 0.02em;
}

#header.scrolled .nav-link {
    color: var(--color-espresso);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0;
    height: 2px;
    background: var(--color-caramel);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s var(--ease-out);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-caramel) !important;
}

.nav-link-cta {
    border: 2px solid var(--color-caramel);
    border-radius: 50px;
    padding: 0.45rem 1.4rem;
    transition: background 0.35s var(--ease-smooth), color 0.35s var(--ease-smooth), transform 0.35s var(--ease-smooth), box-shadow 0.35s var(--ease-smooth);
    margin-left: 0.5rem;
    position: relative;
    overflow: hidden;
}

.nav-link-cta::after {
    display: none;
}

.nav-link-cta:hover {
    background: var(--color-caramel);
    color: var(--color-cream) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(158,147,133,0.35);
}

@media (prefers-reduced-motion: no-preference) {
    .nav-link-cta {
        animation: pulseCTA 3.2s 2s ease-in-out infinite;
    }
    .nav-link-cta:hover {
        animation-play-state: paused;
    }
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.hamburger .bar {
    width: 26px;
    height: 2.5px;
    background: var(--color-cream);
    border-radius: 3px;
    transition: all 0.3s var(--ease-out);
}

#header.scrolled .hamburger .bar {
    background: var(--color-espresso);
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ---------- SECTIONS ---------- */
.section {
    position: relative;
    padding: 6rem 0;
}

/* ---- HERO ---- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--gradient-hero-bg);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.55;
    background:
        var(--wood-grain) center/cover repeat,
        radial-gradient(ellipse at 15% 30%, rgba(255,255,255,0.06) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 70%, rgba(200,192,180,0.1) 0%, transparent 50%);
    /* Optimisation Safari : l'ancienne animation heroZoom redessinait la texture
       filtrée pleine page en continu (22 s en boucle), ce qui saturait WebKit.
       On la fige et on promeut la couche en GPU. */
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Texture cérusée subtile — aspect blanchi */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 3px,
            rgba(255,255,255,0.02) 3px,
            rgba(255,255,255,0.02) 4px
        );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.hero-logo {
    height: 250px;
    width: auto;
    margin: 0 auto 1.5rem;
    object-fit: contain;
    filter: drop-shadow(0 6px 24px rgba(42,37,32,0.4));
    opacity: 0;
    animation: fadeUp 0.8s 0.2s var(--ease-smooth) forwards, floatLogo 6s 2s ease-in-out infinite;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-wheat);
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeUp 0.8s 0.3s var(--ease-smooth) forwards;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 700;
    color: var(--color-cream);
    line-height: 1.1;
    margin-bottom: 1.2rem;
    opacity: 0;
    animation: fadeUp 0.8s 0.5s var(--ease-smooth) forwards;
}

.hero-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--color-sand);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeUp 0.8s 0.7s var(--ease-smooth) forwards;
}

.hero-tagline strong {
    color: var(--color-cream);
    font-weight: 600;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2.5rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-espresso);
    background: var(--color-cream);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
    will-change: transform;
    opacity: 0;
    animation: fadeUp 0.8s 0.9s var(--ease-smooth) forwards;
}

.btn-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,0.85) 50%, transparent 80%);
    transform: skewX(-20deg);
    transition: left 0.6s var(--ease-smooth);
}

.btn-hero:hover::after {
    left: 130%;
}

.btn-hero:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.22), 0 4px 12px rgba(42,37,32,0.15);
}

.btn-hero:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-arrow {
    transition: transform 0.3s;
}

.btn-hero:hover .btn-arrow {
    transform: translateY(3px);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 2;
    opacity: 0;
    animation: fadeUp 0.8s 1.2s var(--ease-smooth) forwards;
}

.scroll-indicator span {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-cream);
    animation: scrollDot 1.8s infinite;
}

.scroll-indicator span:nth-child(2) { animation-delay: 0.2s; }
.scroll-indicator span:nth-child(3) { animation-delay: 0.4s; }

/* ---- QUI SUIS-JE ? ---- */
.qui-suis-je {
    background: var(--color-cream);
}

.qui-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.qui-text p {
    margin-bottom: 1.2rem;
    color: var(--color-bark);
    line-height: 1.8;
}

.qui-intro {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--color-espresso) !important;
}

.qui-values {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.value-chip {
    padding: 0.55rem 1.4rem;
    background: white;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-chestnut);
    border: 1px solid rgba(180,170,158,0.35);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.value-chip:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.image-frame {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 3/4;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #D4CCC0 0%, #C0B8AA 40%, #B0A898 100%);
    color: var(--color-cream);
    font-size: 1.1rem;
    gap: 0.3rem;
    position: relative;
}

.image-placeholder.portrait {
    aspect-ratio: 3/4;
}

.image-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255,255,255,0.04) 2px,
            rgba(255,255,255,0.04) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 40px,
            rgba(255,255,255,0.03) 40px,
            rgba(255,255,255,0.03) 60px
        );
}

.image-placeholder > * {
    position: relative;
    z-index: 1;
}

.image-placeholder small {
    opacity: 0.7;
    font-style: italic;
}

/* ---- SERVICES (formules) ---- */
.services {
    background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-sand) 50%, var(--color-cream) 100%);
}

.offre {
    background: white;
    border-radius: 16px;
    padding: 2.5rem 2.2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(180,170,158,0.18);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.offre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--color-caramel), var(--color-copper), var(--color-caramel));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s var(--ease-out);
}

.offre:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.offre:hover::before {
    transform: scaleY(1);
}

.offre-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.offre-num {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-caramel);
    line-height: 1;
}

.offre-header h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-chestnut);
}

.offre p {
    font-size: 0.98rem;
    color: var(--color-mahogany);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.offre p:last-of-type {
    margin-bottom: 0;
}

.offre-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem 1.5rem;
    margin-top: 1rem;
}

.offre-list li {
    position: relative;
    padding-left: 1.4rem;
    font-size: 0.95rem;
    color: var(--color-espresso);
}

.offre-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--color-copper);
    font-size: 0.85rem;
    top: 2px;
}

/* ---- RÉALISATIONS ---- */
.realisations {
    background: var(--color-cream);
}

.carousel-block {
    margin-bottom: 4rem;
}

.carousel-block:last-child {
    margin-bottom: 0;
}

.carousel-theme {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-chestnut);
    text-align: center;
    margin-bottom: 0.4rem;
}

.carousel-description {
    text-align: center;
    color: var(--color-mahogany);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.carousel {
    display: flex;
    transition: transform 0.5s var(--ease-smooth);
}

.carousel-slide {
    min-width: 100%;
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(150deg, #D4CCC0 0%, #C0B8AA 50%, #AFA698 100%);
    color: var(--color-cream);
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-style: italic;
    position: relative;
}

.carousel-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            1deg,
            transparent,
            transparent 2px,
            rgba(255,255,255,0.035) 2px,
            rgba(255,255,255,0.035) 3px
        ),
        repeating-linear-gradient(
            89deg,
            transparent,
            transparent 50px,
            rgba(255,255,255,0.025) 50px,
            rgba(255,255,255,0.025) 70px
        );
    pointer-events: none;
}

.carousel-slide > * {
    position: relative;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slides en orientation portrait : l'image s'affiche entière (sans rognage),
   centrée sur un fond flou de la même photo pour conserver un cadre 16/10. */
.carousel-blur-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(18px) brightness(0.85);
    transform: scale(1.15);
    z-index: 0;
}

.portrait-slide img.carousel-img-fit {
    position: relative;
    z-index: 1;
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    border-radius: 2px;
}

.carousel-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
}

.carousel-placeholder .placeholder-num {
    font-size: 3rem;
    font-weight: 700;
    font-style: normal;
}

.carousel-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.5rem 1.8rem;
    background: linear-gradient(180deg, rgba(42,37,32,0) 0%, rgba(42,37,32,0.82) 100%);
    color: var(--color-cream);
    z-index: 3;
}

.carousel-caption h4 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.carousel-caption p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: rgba(250,250,246,0.85);
    color: var(--color-espresso);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.35s var(--ease-smooth), transform 0.35s var(--ease-smooth), box-shadow 0.35s var(--ease-smooth);
    z-index: 5;
    box-shadow: var(--shadow-sm);
}

.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.12);
    box-shadow: var(--shadow-md);
}

.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.2rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-caramel);
    border: none;
    cursor: pointer;
    transition: background 0.35s var(--ease-smooth), transform 0.35s var(--ease-smooth);
}

.carousel-dot.active {
    background: var(--color-chestnut);
    transform: scale(1.4);
}

/* ---- CONTACT ---- */
.contact {
    background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-sand) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 3rem;
    align-items: start;
}

.contact-info-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(180,170,158,0.22);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(180,170,158,0.18);
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-info-item svg {
    flex-shrink: 0;
    color: var(--color-copper);
    margin-top: 2px;
}

.contact-info-item h4 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-espresso);
    margin-bottom: 0.15rem;
}

.contact-info-item p {
    font-size: 0.93rem;
    color: var(--color-mahogany);
    line-height: 1.5;
}

/* Formulaire */
.contact-form {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(180,170,158,0.22);
}

.form-group {
    margin-bottom: 1.3rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-chestnut);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--color-espresso);
    background: var(--color-cream);
    border: 1.5px solid rgba(180,170,158,0.35);
    border-radius: 10px;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-copper);
    box-shadow: 0 0 0 3px rgba(180,170,158,0.18);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(158,147,133,0.45);
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2.5rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-cream);
    background: var(--gradient-warm);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
    will-change: transform;
    margin-top: 0.5rem;
    width: 100%;
    justify-content: center;
}

.btn-submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,0.5) 50%, transparent 80%);
    transform: skewX(-20deg);
    transition: left 0.6s var(--ease-smooth);
}

.btn-submit:hover::after {
    left: 130%;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(158,147,133,0.45);
}

.btn-submit:active {
    transform: translateY(-1px) scale(0.98);
}

.form-note {
    font-size: 0.8rem;
    color: var(--color-mahogany);
    opacity: 0.75;
    text-align: center;
    margin-top: 1rem;
}

/* ---- BOUTON RETOUR HAUT ---- */
.btn-scroll-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--color-copper);
    color: var(--color-cream);
    border-radius: 50%;
    margin: 2rem auto 0;
    transition: transform 0.35s var(--ease-smooth), background 0.35s var(--ease-smooth), box-shadow 0.35s var(--ease-smooth);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.btn-scroll-top:hover {
    transform: translateY(-4px);
    background: var(--color-chestnut);
    box-shadow: var(--shadow-md);
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--color-bark);
    color: var(--color-wheat);
    text-align: center;
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-cream);
    margin-bottom: 0.3rem;
}

.footer-logo {
    height: 190px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.35));
}

.footer-copy {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-credit {
    font-size: 0.85rem;
    opacity: 0.5;
    font-style: italic;
}

/* ---- BOUTON BASCULE DE THÈME ---- */
.theme-toggle {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: var(--color-copper);
    color: var(--color-cream);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    z-index: 999;
    box-shadow: var(--shadow-md);
    transition: transform 0.35s var(--ease-smooth), background 0.35s var(--ease-smooth), box-shadow 0.35s var(--ease-smooth);
}

.theme-toggle:hover {
    transform: translateY(-4px) scale(1.06);
    background: var(--color-chestnut);
    box-shadow: var(--shadow-lg);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-toggle.active {
    background: var(--color-chestnut);
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

@keyframes heroZoom {
    0%   { transform: scale(1); }
    100% { transform: scale(1.08); }
}

@keyframes scrollDot {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes pulseCTA {
    0%, 100% { transform: translateY(0); box-shadow: 0 6px 18px rgba(158,147,133,0.35); }
    50%      { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(158,147,133,0.55); }
}

@keyframes underlineGrow {
    from { transform: scaleX(0); opacity: 0; }
    to   { transform: scaleX(1); opacity: 1; }
}

@keyframes spin3D {
    0%   { transform: rotateY(0deg);   text-shadow: 1px 1px 0 rgba(0,0,0,0.08), 2px 2px 0 rgba(0,0,0,0.06), 3px 3px 0 rgba(0,0,0,0.04), 4px 4px 0 rgba(0,0,0,0.02); }
    10%  { transform: rotateY(45deg);  text-shadow: -8px 1px 0 rgba(0,0,0,0.08), -16px 2px 0 rgba(0,0,0,0.06), -24px 3px 0 rgba(0,0,0,0.04), -32px 4px 0 rgba(0,0,0,0.02); }
    25%  { transform: rotateY(45deg);  text-shadow: -8px 1px 0 rgba(0,0,0,0.08), -16px 2px 0 rgba(0,0,0,0.06), -24px 3px 0 rgba(0,0,0,0.04), -32px 4px 0 rgba(0,0,0,0.02); }
    35%  { transform: rotateY(0deg);   text-shadow: 1px 1px 0 rgba(0,0,0,0.08), 2px 2px 0 rgba(0,0,0,0.06), 3px 3px 0 rgba(0,0,0,0.04), 4px 4px 0 rgba(0,0,0,0.02); }
    50%  { transform: rotateY(-45deg); text-shadow: 8px 1px 0 rgba(0,0,0,0.08), 16px 2px 0 rgba(0,0,0,0.06), 24px 3px 0 rgba(0,0,0,0.04), 32px 4px 0 rgba(0,0,0,0.02); }
    65%  { transform: rotateY(-45deg); text-shadow: 8px 1px 0 rgba(0,0,0,0.08), 16px 2px 0 rgba(0,0,0,0.06), 24px 3px 0 rgba(0,0,0,0.04), 32px 4px 0 rgba(0,0,0,0.02); }
    75%  { transform: rotateY(0deg);   text-shadow: 1px 1px 0 rgba(0,0,0,0.08), 2px 2px 0 rgba(0,0,0,0.06), 3px 3px 0 rgba(0,0,0,0.04), 4px 4px 0 rgba(0,0,0,0.02); }
    90%  { transform: rotateY(45deg);  text-shadow: -8px 1px 0 rgba(0,0,0,0.08), -16px 2px 0 rgba(0,0,0,0.06), -24px 3px 0 rgba(0,0,0,0.04), -32px 4px 0 rgba(0,0,0,0.02); }
    100% { transform: rotateY(0deg);   text-shadow: 1px 1px 0 rgba(0,0,0,0.08), 2px 2px 0 rgba(0,0,0,0.06), 3px 3px 0 rgba(0,0,0,0.04), 4px 4px 0 rgba(0,0,0,0.02); }
}

/* Animations au scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Apparition échelonnée (stagger) */
.reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal:nth-child(2) { transition-delay: 0.12s; }
.reveal:nth-child(3) { transition-delay: 0.19s; }
.reveal:nth-child(4) { transition-delay: 0.26s; }
.reveal:nth-child(5) { transition-delay: 0.33s; }
.reveal:nth-child(6) { transition-delay: 0.4s; }

/* ---- MESSAGE FORMULAIRE ---- */
.form-message {
    padding: 1rem 1.2rem;
    border-radius: 10px;
    font-size: 0.93rem;
    font-weight: 500;
    margin-top: 1rem;
    text-align: center;
    animation: fadeUp 0.35s var(--ease-smooth);
}

.form-message--success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.form-message--error {
    background: #fbe9e7;
    color: #bf360c;
    border: 1px solid #ffab91;
}

/* ---------- RÉDUCTION DES MOUVEMENTS (accessibilité + perf Safari) ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001s !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .container {
        width: 92%;
    }

    .hero-logo {
        height: 200px;
    }
}

@media (max-width: 992px) {
    .qui-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .offre-list {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .image-frame {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 1.25rem;
    }

    .nav-brand .brand-link {
        font-size: 1.15rem;
        gap: 0.45rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        background: var(--color-menu-mobile);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        transition: right 0.4s var(--ease-smooth);
        gap: 0.8rem;
        padding: 2rem;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.15rem;
        color: var(--color-cream) !important;
        text-align: center;
    }

    .nav-link-cta {
        margin-left: 0;
        margin-top: 0.5rem;
        text-align: center;
    }

    .hamburger {
        display: flex;
    }

    .qui-values {
        justify-content: center;
    }

    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-logo {
        height: 160px;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        letter-spacing: 0.15em;
    }

    .contact-form {
        padding: 1.8rem;
    }

    .offre {
        padding: 2rem 1.5rem;
    }

    .offre-header h3 {
        font-size: 1.3rem;
    }

    .offre-num {
        font-size: 1.8rem;
    }

    /* Éviter le zoom automatique iOS au focus des champs */
    .form-group input,
    .form-group textarea {
        font-size: 16px;
    }

    .footer-logo {
        height: 140px;
    }

    .carousel-theme {
        font-size: 1.3rem;
    }

    .carousel-caption {
        padding: 1rem 1.2rem;
    }

    .carousel-caption h4 {
        font-size: 1.1rem;
    }

    .theme-toggle {
        width: 46px;
        height: 46px;
        right: 0.9rem;
        bottom: 0.9rem;
        font-size: 1.15rem;
    }
}

@media (max-width: 480px) {
    .container {
        width: 90%;
    }

    .hero {
        min-height: 100svh;
        padding: 0 0.5rem;
    }

    .hero-content {
        padding: 1.5rem 1rem;
    }

    .hero-logo {
        height: 130px;
        margin-bottom: 1rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-tagline {
        font-size: 1rem;
        line-height: 1.55;
    }

    .btn-hero {
        padding: 0.75rem 1.8rem;
        font-size: 0.95rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-intro {
        font-size: 1rem;
    }

    .offre {
        padding: 1.6rem 1.2rem;
    }

    .offre-header {
        gap: 0.6rem;
    }

    .offre-header h3 {
        font-size: 1.2rem;
    }

    .offre p {
        font-size: 0.93rem;
    }

    .offre-list {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 1.4rem;
    }

    .contact-info-card {
        padding: 1.4rem;
    }

    .carousel-btn {
        width: 38px;
        height: 38px;
    }

    .carousel-prev { left: 8px; }
    .carousel-next { right: 8px; }

    .footer-logo {
        height: 120px;
    }
}

/* Tablette et mobile en paysage */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 6rem 1rem 4rem;
    }

    .hero-logo {
        height: 90px;
        margin-bottom: 0.8rem;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.6rem;
    }

    .hero-tagline {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }

    .scroll-indicator {
        display: none;
    }
}
