/* ============================================
   CSS VARIABLES - THEME SYSTEM
   ============================================ */
:root {
    /* Background colors */
    --color-bg: #030303;
    --color-bg-elevated: rgba(255, 255, 255, 0.03);
    --color-bg-hover: rgba(255, 255, 255, 0.06);
    --color-bg-input: rgba(255, 255, 255, 0.05);
    --color-bg-input-focus: rgba(255, 255, 255, 0.15);

    /* Text colors */
    --color-text: #fff;
    --color-text-secondary: rgba(255, 255, 255, 0.7);
    --color-text-muted: rgba(255, 255, 255, 0.5);
    --color-text-faint: rgba(255, 255, 255, 0.4);
    --color-text-code: rgba(255, 255, 255, 0.12);

    /* Border colors */
    --color-border: rgba(255, 255, 255, 0.06);
    --color-border-hover: rgba(255, 255, 255, 0.1);
    --color-border-input: rgba(255, 255, 255, 0.1);
    --color-border-focus: rgba(255, 255, 255, 0.3);

    /* Nav specific - 85% opacité pour glassmorphism (cohérent avec theme-color) */
    --color-nav-bg: rgba(26, 26, 26, 0.85);
    --color-nav-border: rgba(255, 255, 255, 0.1);
    --color-nav-link: rgba(255, 255, 255, 0.7);

    /* Button colors */
    --color-btn-bg: rgba(255, 255, 255, 0.08);
    --color-btn-border: rgba(255, 255, 255, 0.15);
    --color-btn-hover-bg: rgba(255, 255, 255, 0.12);
    --color-btn-hover-border: rgba(255, 255, 255, 0.25);

    /* Skill tag colors */
    --color-tag-bg: rgba(255, 255, 255, 0.05);
    --color-tag-border: rgba(255, 255, 255, 0.08);
    --color-tag-text: rgba(255, 255, 255, 0.8);
    --color-tag-bg-hover: rgba(255, 255, 255, 0.12);
    --color-tag-border-hover: rgba(255, 255, 255, 0.2);

    /* Hero gradients */
    --hero-gradient: radial-gradient(ellipse at center 55%, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 30%, var(--color-bg) 60%);
    --hero-fade-top: linear-gradient(to bottom, var(--color-bg) 0%, rgba(3, 3, 3, 0.8) 30%, rgba(3, 3, 3, 0.4) 60%, transparent 100%);
    --hero-fade-bottom: linear-gradient(to top, var(--color-bg) 0%, rgba(3, 3, 3, 0.8) 30%, rgba(3, 3, 3, 0.4) 60%, transparent 100%);

    /* Shadows and effects */
    --shadow-overlay: linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, transparent 100%);

    /* Logo opacity */
    --logo-opacity: 0.7;
    --logo-opacity-hover: 1;

    /* Social icon opacity */
    --social-opacity: 0.7;
}

/* ============================================
   LIGHT THEME
   ============================================ */
.theme-light {
    /* Background colors */
    --color-bg: #f8f8f8;
    --color-bg-elevated: rgba(0, 0, 0, 0.03);
    --color-bg-hover: rgba(0, 0, 0, 0.06);
    --color-bg-input: rgba(0, 0, 0, 0.04);
    --color-bg-input-focus: rgba(0, 0, 0, 0.08);

    /* Text colors */
    --color-text: #1a1a1a;
    --color-text-secondary: rgba(0, 0, 0, 0.75);
    --color-text-muted: rgba(0, 0, 0, 0.6);
    --color-text-faint: rgba(0, 0, 0, 0.5);
    --color-text-code: rgba(0, 0, 0, 0.15);

    /* Border colors */
    --color-border: rgba(0, 0, 0, 0.08);
    --color-border-hover: rgba(0, 0, 0, 0.15);
    --color-border-input: rgba(0, 0, 0, 0.12);
    --color-border-focus: rgba(0, 0, 0, 0.25);

    /* Nav specific - 85% opacité pour glassmorphism (cohérent avec theme-color) */
    --color-nav-bg: rgba(255, 255, 255, 0.85);
    --color-nav-border: rgba(0, 0, 0, 0.1);
    --color-nav-link: rgba(0, 0, 0, 0.7);

    /* Button colors */
    --color-btn-bg: rgba(0, 0, 0, 0.06);
    --color-btn-border: rgba(0, 0, 0, 0.12);
    --color-btn-hover-bg: rgba(0, 0, 0, 0.1);
    --color-btn-hover-border: rgba(0, 0, 0, 0.2);

    /* Skill tag colors */
    --color-tag-bg: rgba(0, 0, 0, 0.04);
    --color-tag-border: rgba(0, 0, 0, 0.08);
    --color-tag-text: rgba(0, 0, 0, 0.8);
    --color-tag-bg-hover: rgba(0, 0, 0, 0.1);
    --color-tag-border-hover: rgba(0, 0, 0, 0.2);

    /* Hero gradients */
    --hero-gradient: radial-gradient(ellipse at center 55%, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.02) 30%, var(--color-bg) 60%);
    --hero-fade-top: linear-gradient(to bottom, var(--color-bg) 0%, rgba(248, 248, 248, 0.8) 30%, rgba(248, 248, 248, 0.4) 60%, transparent 100%);
    --hero-fade-bottom: linear-gradient(to top, var(--color-bg) 0%, rgba(248, 248, 248, 0.8) 30%, rgba(248, 248, 248, 0.4) 60%, transparent 100%);

    /* Shadows and effects */
    --shadow-overlay: linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, transparent 100%);

    /* Logo opacity - inverted for dark logos */
    --logo-opacity: 0.8;
    --logo-opacity-hover: 1;

    /* Social icon opacity */
    --social-opacity: 0.8;
}

/* Nav glassmorphism - box-shadow pour theme light */
.theme-light .nav-pill {
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

/* ============================================
   SCREEN READER ONLY (Accessibility)
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */
/* Dans la nav-pill : espace logo->texte = 14px(padding logo) + 8px(margin-right) + 8px(gap) + 18px(padding lien) = 48px
   Espace texte->icone = 18px(padding lien) + 8px(gap) + margin-left = doit etre 48px
   Donc margin-left = 48px - 18px - 8px = 22px */
.nav-pill .theme-toggle-wrapper {
    margin-left: 22px;
}

.theme-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.theme-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    opacity: 0.5;
    transition: opacity 0.3s;
    user-select: none;
}

.theme-toggle-icon svg {
    width: 16px;
    height: 16px;
}

/* Highlight active icon */
.theme-toggle-icon.icon-dark {
    opacity: 0.9;
}

.theme-toggle-icon.icon-light {
    opacity: 0.4;
}

.theme-light .theme-toggle-icon.icon-dark {
    opacity: 0.4;
}

.theme-light .theme-toggle-icon.icon-light {
    opacity: 0.9;
}

.theme-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--color-bg-input);
    border: 1px solid var(--color-border-input);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
    flex-shrink: 0;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: var(--color-text);
    border-radius: 50%;
    transition: transform 0.3s;
}

.theme-light .theme-toggle::before {
    transform: translateX(20px);
}

/* Toggle separator (between theme toggle and color toggle) */
.toggle-separator {
    width: 1px;
    height: 20px;
    background: var(--color-border);
    margin-left: 4px;
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--color-border-hover);
}

/* ============================================
   COLOR MODE TOGGLE BUTTON
   ============================================ */
.color-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--color-text-secondary);
    background: transparent;
    transition: background-color 0.2s, color 0.2s;
    margin-left: -2px;
}

.color-toggle:hover {
    background-color: var(--color-bg-hover);
}

.color-toggle svg {
    width: 18px;
    height: 18px;
}

/* Sparkle icon - mono dark theme (default) */
.color-toggle svg {
    fill: var(--color-text-secondary);
    transition: fill 0.2s ease, transform 0.2s ease;
}

/* Mono dark: hover -> bicolor blue/cyan preview */
.color-toggle:hover svg .sparkle-main {
    fill: #3b82f6;
}
.color-toggle:hover svg .sparkle-small {
    fill: #06b6d4;
}
.color-toggle:hover svg {
    transform: scale(1.1);
}

/* Mono light: same bicolor hover */
.theme-light:not(.theme-color) .color-toggle:hover svg .sparkle-main {
    fill: #2563eb;
}
.theme-light:not(.theme-color) .color-toggle:hover svg .sparkle-small {
    fill: #0891b2;
}

/* Mobile: always show the "target" state (what you'll switch to) */
@media (max-width: 768px) {
    .color-toggle,
    .color-toggle:hover {
        background: transparent !important;
    }

    .color-toggle {
        margin-left: 0;
    }

    /* Mono -> show colored sparkle (preview of color mode) */
    body:not(.theme-color) .color-toggle svg .sparkle-main {
        fill: #3b82f6;
    }
    body:not(.theme-color) .color-toggle svg .sparkle-small {
        fill: #06b6d4;
    }
    .theme-light:not(.theme-color) .color-toggle svg .sparkle-main {
        fill: #2563eb;
    }
    .theme-light:not(.theme-color) .color-toggle svg .sparkle-small {
        fill: #0891b2;
    }
}

/* ============================================
   SKIP LINK (Accessibilité)
   ============================================ */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-bg);
    color: var(--color-text);
    padding: 12px 24px;
    border-radius: 8px;
    border: 2px solid var(--color-border-focus);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 20px;
    outline: none;
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--color-bg);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent;
    color: var(--color-text);
}

/* Focus visible pour navigation clavier uniquement */
a:focus-visible,
button:focus-visible,
.theme-toggle:focus-visible,
.project-card:focus-visible {
    outline: 2px solid var(--color-border-focus);
    outline-offset: 2px;
}

/* Desktop nav */
.nav-pill {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--color-nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50px;
    border: 1px solid var(--color-nav-border);
    z-index: 100;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Nav becomes fixed when scrolled past hero */
.nav-pill.nav-scrolled {
    position: fixed;
}

/* Hide nav while scrolling in hero (before it becomes fixed) */
.nav-pill.nav-hidden {
    opacity: 0;
    pointer-events: none;
}

.nav-pill a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-nav-link);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    padding: 8px 18px;
    border-radius: 30px;
    transition: color 0.2s, background-color 0.2s;
}

.nav-pill a:hover {
    color: var(--color-text);
    background-color: var(--color-bg-hover);
}

/* Mobile hamburger nav - hidden on desktop */
.nav-mobile-header {
    display: none;
}

.nav-mobile-menu {
    display: none;
}

/* ============================================
   HERO SECTION (Carousel)
   ============================================ */
.hero {
    position: relative;
    height: 85vh;
    overflow: hidden;
    background: var(--hero-gradient);
    background-color: var(--color-bg);
    /* Isoler le hero pour éviter les recalculs du blur de la nav */
    contain: layout style paint;
    transform: translateZ(0);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: var(--hero-fade-top);
    z-index: 5;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: var(--hero-fade-bottom);
    z-index: 5;
    pointer-events: none;
}

.hero-h1 {
    position: absolute;
    top: 19vh;
    left: 0;
    right: 0;
    text-align: center;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 11px;
    font-weight: 400;
    color: var(--color-text-faint);
    margin: 0;
    padding: 0 20px;
    z-index: 10;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    background-size: cover;
    background-position: center;
    background-color: transparent;
}

.hero-slide.active {
    opacity: 1;
}

/* Code Matrix - Machine à écrire */
.hero-code {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 40px;
}

.hero-code .code-lines {
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 12px;
    color: var(--color-text-code);
    width: 90%;
    max-width: 800px;
    /* Hauteur fixe pour éviter les reflows pendant l'animation */
    min-height: 350px;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Forcer un layer GPU séparé pour isoler les repaints */
    transform: translateZ(0);
    will-change: contents;
    contain: layout style;
    /* Pour le positionnement absolu du curseur */
    position: relative;
}

.hero-code .code-lines .line {
    display: flex;
    justify-content: center;
    align-items: baseline;
    line-height: 1.6;
    min-height: 1.6em;
    position: relative;
}

.hero-code .code-lines .line-number {
    position: absolute;
    left: 0;
    color: var(--color-border);
    font-size: 11px;
    user-select: none;
}

.hero-code .code-lines .line-content {
    text-align: center;
}

/* Lignes titre/texte : utiliser grid pour centrer le contenu */
.hero-code .code-lines .line-title .line-content,
.hero-code .code-lines .line-text .line-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: baseline;
    width: 100%;
}

/* Premier segment code aligné à droite */
.hero-code .code-lines .line-title .line-content > span:first-child,
.hero-code .code-lines .line-text .line-content > span:first-child {
    text-align: right;
    justify-self: end;
}

/* Dernier segment code aligné à gauche */
.hero-code .code-lines .line-title .line-content > span:last-child,
.hero-code .code-lines .line-text .line-content > span:last-child {
    text-align: left;
    justify-self: start;
}

/* Segments de code (style par défaut) */
.hero-code .code-lines .segment-code {
    color: var(--color-text-faint);
    font-size: 11px;
}

/* Ligne avec titre - plus d'espace */
.hero-code .code-lines .line-title {
    margin: 16px 0;
}

/* Segment titre - grande taille, bien visible */
.hero-code .code-lines .segment-title {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(38px, 6vw, 56px);
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

/* Lignes avec texte */
.hero-code .code-lines .line-text {
    margin: 2px 0;
}

/* Segment texte - taille moyenne, visible */
.hero-code .code-lines .segment-text {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(15px, 2vw, 18px);
    font-weight: 400;
    color: var(--color-text-secondary);
}

/* Lignes de code pures - plus compactes */
.hero-code .code-lines .line-code {
    margin: 2px 0;
}

.hero-code .code-lines .cursor {
    position: absolute;
    width: 2px;
    height: 1em;
    background: var(--color-text-faint);
    animation: blink 1s step-end infinite;
    pointer-events: none;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Classes pour l'animation statique du hero */
.char-hidden {
    opacity: 0;
}
.char-visible {
    opacity: 1;
}

.hero-nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-text-faint);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot:hover {
    background: var(--color-text-muted);
}

.hero-dot.active {
    background: var(--color-text-faint);
    width: 24px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.hero-dot.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--color-text-muted);
    border-radius: 4px;
    animation: heroProgress var(--dot-duration, 8s) linear forwards;
}

.hero-dot.paused::after {
    animation-play-state: paused;
}

.hero-dot.completed {
    background: var(--color-text-muted);
}

@keyframes heroProgress {
    from { width: 0%; }
    to { width: 100%; }
}

/* ============================================
   SECTIONS COMMON STYLES
   ============================================ */
.section {
    padding: 120px 40px;
    background: var(--color-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-label {
    color: var(--color-text-faint);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 16px;
}

.section-title {
    font-size: 42px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* ============================================
   FORMULES SECTION
   ============================================ */
.formules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto 1fr auto auto;
    gap: 0 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.formule-card {
    display: grid;
    grid-row: 1 / -1;
    grid-template-rows: subgrid;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 40px 32px;
    transition: background 0.3s, border-color 0.3s;
}

.formule-card:hover {
    background: var(--color-bg-hover);
    border-color: var(--color-border-hover);
}

.formule-icon {
    font-size: 32px;
    margin-bottom: 24px;
    width: fit-content;
}

.formule-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.formule-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.formule-footer {
    padding-top: 28px;
    display: grid;
    grid-row: 4 / -1;
    grid-template-rows: subgrid;
    gap: 20px;
}

.formule-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.formule-price {
    font-size: 14px;
    color: var(--color-text-faint);
    margin: 0;
}

.price-ttc {
    font-size: 11px;
    color: var(--color-text-muted);
    font-weight: 400;
    margin-left: 4px;
}

.formule-cta {
    padding: 8px 16px;
    background: var(--color-btn-bg);
    color: var(--color-text);
    border: 1px solid var(--color-btn-border);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

/* Shine effect for mono themes */
body:not(.theme-color) .formule-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

body:not(.theme-color) .formule-cta:hover::before {
    left: 100%;
}

/* Mono light: shine plus visible */
body.theme-light:not(.theme-color) .formule-cta::before {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
}

@media (hover: hover) {
    .formule-cta:hover {
        background: var(--color-btn-hover-bg);
        border-color: var(--color-btn-hover-border);
    }
}

.formule-cta:active {
    background: var(--color-btn-hover-bg);
    border-color: var(--color-btn-hover-border);
}

/* ============================================
   FORMULE FEATURES LIST
   ============================================ */
.formule-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.formule-features li {
    font-size: 13px;
    color: var(--color-text-secondary);
    padding-left: 20px;
    position: relative;
    line-height: 1.4;
}

.formule-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-text-faint);
    font-size: 12px;
}

.formule-features .inherited {
    color: var(--color-text-faint);
    padding-left: 0;
}

.formule-features .inherited::before {
    display: none;
}

/* ============================================
   TARIFS BLOCK (within formules section)
   ============================================ */
.tarifs-block {
    position: relative;
    max-width: 1200px;
    margin: 40px auto 0;
    background: var(--color-bg-hover);
    border: 1px solid var(--color-border-hover);
    border-radius: 20px;
    padding: 40px;
    overflow: hidden;
}

.tarifs-header {
    margin-bottom: 32px;
}

.tarifs-header-icon {
    color: var(--color-text);
    margin-bottom: 24px;
    width: fit-content;
}

.tarifs-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.tarifs-header p {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.tarifs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.tarifs-col-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-faint);
    margin-bottom: 20px;
    font-weight: 400;
}

.tarifs-list {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.tarifs-item {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 2px 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
}

.tarifs-item:last-child {
    border-bottom: none;
}

.tarifs-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

.tarifs-price {
    font-size: 14px;
    color: var(--color-text-secondary);
    text-align: right;
}

.tarifs-desc {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.4;
    grid-column: 1 / -1;
}

.tarifs-footnote {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 24px;
    line-height: 1.5;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
#projets {
    /* background uniforme avec les autres sections */
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    position: relative;
    aspect-ratio: 16/10;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card:hover {
    border-color: var(--color-border-hover);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, var(--color-bg-hover) 0%, var(--color-bg-elevated) 40%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}


.project-card img {
    width: 70%;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s ease, opacity 0.3s ease, filter 0.3s ease;
}

/* Project card logo switching (dark/light theme) */
/* Dark theme (default): show logo-dark (white), hide logo-light */
.project-card .logo-light {
    position: absolute;
    opacity: 0;
}

.project-card .logo-dark {
    position: relative;
}

/* Mono light theme: invert logo-dark to black, keep same on hover */
.theme-light .project-card:not(.project-card-placeholder) .logo-dark {
    filter: invert(1);
}

/* Light theme: invert placeholder logos only */
.theme-light .project-card-placeholder img {
    filter: invert(1);
}

.project-card:hover img:not(.placeholder-logo) {
    transform: scale(1.05) translateY(-25px);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
}

.project-card:hover .project-overlay {
    transform: translateY(0);
    opacity: 1;
}

.project-overlay h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}

.project-overlay p {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.project-stack {
    font-size: 12px;
    font-weight: 400;
    color: var(--color-text-muted);
}

/* Placeholder cards */
.project-card-placeholder {
    cursor: default;
}

.project-card-placeholder .placeholder-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: auto;
    object-fit: contain;
    opacity: 0.25;
    transition: opacity 0.3s;
    z-index: 2;
}

.project-card-placeholder:hover .placeholder-logo {
    opacity: 0.4;
}

/* Light theme: invert placeholder logo (white logo on transparent) */
.theme-light .project-card-placeholder .placeholder-logo {
    filter: invert(1);
}

/* Motif diagonal */
.project-card-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 20px,
        rgba(255, 255, 255, 0.04) 20px,
        rgba(255, 255, 255, 0.04) 40px
    );
    z-index: 3;
    pointer-events: none;
}

.theme-light .project-card-placeholder::after {
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 20px,
        rgba(0, 0, 0, 0.04) 20px,
        rgba(0, 0, 0, 0.04) 40px
    );
}

/* ============================================
   REVIEWS CAROUSEL
   ============================================ */
.reviews-carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.reviews-carousel {
    position: relative;
    overflow: hidden;
    cursor: grab;
}

.reviews-carousel:active {
    cursor: grabbing;
}

.reviews-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding-left: 60px; /* Alignement constant sur desktop */
}

/* Card au format project-card (aspect-ratio 16/10) */
/* 2 cards visibles + peek de 60px de la suivante */
.review-card {
    flex: 0 0 calc((100% - 60px - 48px) / 2);
    aspect-ratio: 16/10;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.3s, background 0.3s;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.review-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, var(--color-bg-hover) 0%, var(--color-bg-elevated) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.review-card > * {
    position: relative;
    z-index: 1;
}

.review-card:hover {
    border-color: var(--color-border-hover);
}

/* Content */
.review-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

/* Footer */
.review-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.review-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Rating row (Google icon + stars) */
.review-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-icon-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}

.review-icon {
    display: block;
    width: 32px;
    height: 32px;
}

.review-stars {
    display: flex;
    gap: 2px;
}

/* Thème sombre (défaut) : monochrome */
.review-icon-mono {
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}

.review-icon-color {
    display: none;
}

.review-star {
    width: 20px;
    height: 20px;
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}

/* Thème sombre : hover -> blanc */
.review-card:hover .review-icon-mono {
    color: var(--color-text);
}

.review-card:hover .review-star {
    color: var(--color-text);
}

/* Thème mono light : gris par défaut, noir au hover */
.theme-light .review-icon-mono {
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}

.theme-light .review-icon-color {
    display: none;
}

.theme-light .review-star {
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}

.theme-light .review-card:hover .review-icon-mono {
    color: var(--color-text);
}

.theme-light .review-card:hover .review-star {
    color: var(--color-text);
}

/* Client info */
.review-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
}

.review-message {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    font-style: italic;
}

/* Source indicator */
.review-source {
    font-size: 12px;
    color: var(--color-text-faint);
}

/* Placeholder cards */
.review-card-placeholder {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-card-placeholder .placeholder-logo {
    width: 80px;
    height: auto;
    opacity: 0.3;
    transition: opacity 0.3s;
}

.review-card-placeholder:hover .placeholder-logo {
    opacity: 0.4;
}

.theme-light .review-card-placeholder .placeholder-logo {
    filter: invert(1);
}

/* Motif diagonal placeholder */
.review-card-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 19px;
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 20px,
        rgba(255, 255, 255, 0.04) 20px,
        rgba(255, 255, 255, 0.04) 40px
    );
    pointer-events: none;
    z-index: 2;
}

.theme-light .review-card-placeholder::after {
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 20px,
        rgba(0, 0, 0, 0.04) 20px,
        rgba(0, 0, 0, 0.04) 40px
    );
}

/* Carousel navigation arrows */
.carousel-nav {
    width: 36px;
    height: 36px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--color-text-muted);
}

.carousel-nav:hover {
    background: var(--color-bg-hover);
    border-color: var(--color-border-hover);
    color: var(--color-text);
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-nav svg {
    width: 18px;
    height: 18px;
}

/* Footer with dots and arrows */
.carousel-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 24px;
}

.carousel-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.carousel-arrows {
    display: flex;
    gap: 8px;
    position: absolute;
    right: 40px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-text-faint);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    background: var(--color-text-muted);
}

/* Reviews carousel dots (no autoplay - simple active state) */
.reviews-carousel-container .carousel-dot.active {
    background: var(--color-text-muted);
}

/* ============================================
   APPROCHE / MÉTHODOLOGIE + GARANTIES SECTION
   ============================================ */
.approche-garanties-grid {
    display: grid;
    grid-template-columns: 55fr 45fr;
    grid-template-rows: auto auto 1fr;
    gap: 0 24px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.approche-col {
    display: grid;
    grid-row: 1 / -1;
    grid-template-rows: subgrid;
}

h3.col-label,
h4.col-label {
    font-size: 12px;
    font-weight: 400;
}

.col-label {
    color: var(--color-text-faint);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0 0 20px;
    padding: 0 32px;
    text-align: left;
}

.garanties-wrapper {
    background: var(--color-bg-hover);
    border: 1px solid var(--color-border-hover);
    border-radius: 20px;
    display: grid;
    grid-row: 1 / -1;
    grid-template-rows: subgrid;
}

.garanties-intro {
    padding: 28px 32px 0;
    margin-bottom: 32px;
    position: relative;
}

.garanties-intro::after {
    display: none;
}

.garanties-intro-icon {
    color: var(--color-text);
    margin-bottom: 24px;
    width: fit-content;
}

.garanties-intro h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 12px;
}

.garanties-intro p {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 380px;
}

.methodo-list {
    display: grid;
    grid-row: 1 / -1;
    grid-template-rows: subgrid;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    overflow: hidden;
}

.methodo-intro {
    padding: 28px 32px 0;
    margin-bottom: 32px;
    position: relative;
}

.methodo-intro::after {
    display: none;
}

.methodo-intro-icon {
    color: var(--color-text);
    margin-bottom: 24px;
    width: fit-content;
}

.methodo-intro h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 12px;
}

.methodo-intro p {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 380px;
}

.methodo-steps {
    counter-reset: methodo;
    list-style: none;
}

.methodo-list-item {
    display: flex;
    gap: 20px;
    align-items: baseline;
    padding: 24px 32px;
    position: relative;
    transition: background 0.3s;
    counter-increment: methodo;
}

.methodo-list-item::before {
    content: counter(methodo, decimal-leading-zero);
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 12px;
    color: var(--color-text-muted);
    flex-shrink: 0;
    min-width: 24px;
}

.methodo-list-item:hover {
    background: var(--color-bg-hover);
}

.methodo-list-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-border), transparent);
}

.methodo-list-text h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 12px;
}

.methodo-list-text p {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ============================================
   GARANTIES GRID (within approche-garanties)
   ============================================ */
.garanties-grid {
    padding: 10px 20px 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    list-style: none;
    gap: 0;
}

.garanties-cell {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 12px;
    border-radius: 10px;
    transition: background 0.3s;
}

.garanties-cell:hover {
    background: var(--color-bg-input-focus);
}

.garanties-cell .check {
    font-size: 13px;
    color: var(--color-text-faint);
    flex-shrink: 0;
}

.garanties-cell .label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

.garanties-cell-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.garanties-desc {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.garanties-deco {
    grid-column: 1 / -1;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px 24px;
    color: var(--color-text);
}

.garanties-deco svg {
    width: 100%;
    max-width: 120px;
    height: auto;
}

/* Animation clin d'oeil smiley */
.smiley-wink .smiley-eye-right {
    transform-origin: 15px 9px;
    animation: smileyWinkEye 4s ease-in-out infinite;
}

.smiley-wink .smiley-mouth {
    transform-origin: 12px 15px;
    animation: smileyWinkMouth 4s ease-in-out infinite;
}

@keyframes smileyWinkEye {
    0%, 85%, 100% { transform: scaleY(1); }
    89%, 95% { transform: scaleY(0.1); }
}

@keyframes smileyWinkMouth {
    0%, 85%, 100% { transform: scaleY(1); }
    89%, 95% { transform: scaleY(1.35) translateY(0.5px); }
}

/* ============================================
   ICON ANIMATIONS (scroll-triggered + hover)
   Hover géré via classe .hover ajoutée par JS
   ============================================ */

/* 1. Layout (Site Essentiel) - Dessin progressif */
.icon-layout .frame,
.icon-layout .line-h,
.icon-layout .line-v {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 1.5s ease-out;
}

.icon-layout.animate .frame { stroke-dashoffset: 0; transition-delay: 0s; }
.icon-layout.animate .line-h { stroke-dashoffset: 0; transition-delay: 0.3s; }
.icon-layout.animate .line-v { stroke-dashoffset: 0; transition-delay: 0.5s; }

/* Hover - redessine */
.icon-layout.animate.hover .frame,
.icon-layout.animate.hover .line-h,
.icon-layout.animate.hover .line-v {
    animation: layoutDraw 1.5s ease-out forwards;
}

@keyframes layoutDraw {
    0% { stroke-dashoffset: 100; }
    100% { stroke-dashoffset: 0; }
}

/* 2. Layers (Site Pro) - Cascade */
.icon-layers .layer {
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.8s ease-out;
}

.icon-layers.animate .layer1 { opacity: 1; transform: translateY(0); transition-delay: 0s; }
.icon-layers.animate .layer2 { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
.icon-layers.animate .layer3 { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }

/* Hover - rejoue la cascade d'apparition */
.icon-layers.animate.hover .layer1 { animation: layerCascade 0.8s ease-out forwards; }
.icon-layers.animate.hover .layer2 { animation: layerCascade 0.8s ease-out 0.25s forwards; }
.icon-layers.animate.hover .layer3 { animation: layerCascade 0.8s ease-out 0.5s forwards; }

@keyframes layerCascade {
    0% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* 3. Cube (Site Sur Mesure) - Rotation */
.icon-cube {
    opacity: 0;
    transform: scale(0.8) rotate(-10deg);
    transition: all 1.2s ease-out;
}

.icon-cube.animate {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* Hover - rotation */
.icon-cube.animate.hover {
    animation: cubeRotate 1.2s ease-in-out forwards;
}

@keyframes cubeRotate {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-5deg) scale(1.1); }
    50% { transform: rotate(5deg) scale(1.1); }
    75% { transform: rotate(-2deg) scale(1.05); }
    100% { transform: rotate(0deg) scale(1); }
}

/* 4. Tag (Hébergement) - Balancement + pulse permanent */
.icon-tag {
    transform-origin: 7px 7px;
    transition: all 1.2s ease-out;
    opacity: 0;
    transform: scale(0.8);
}

.icon-tag .tag-dot {
    transform-origin: center;
    transform-box: fill-box;
}

/* Animation initiale au scroll - gérée par JS avec classe .animating */
.icon-tag.animating {
    opacity: 1;
    transform: scale(1);
    animation: tagSwing 1.2s ease-out forwards;
}

.icon-tag.animate {
    opacity: 1;
    transform: scale(1);
}

.icon-tag.animate .tag-dot {
    animation: tagDotPulse 0.6s ease-in-out infinite;
}

/* Hover - balancement */
.icon-tag.animate.hover {
    animation: tagSwingHover 1.2s ease-in-out forwards;
}

@keyframes tagSwing {
    0% { transform: scale(0.8) rotate(0deg); }
    25% { transform: scale(1) rotate(12deg); }
    50% { transform: scale(1) rotate(-8deg); }
    75% { transform: scale(1) rotate(4deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@keyframes tagSwingHover {
    0% { transform: rotate(0deg); }
    20% { transform: rotate(15deg); }
    40% { transform: rotate(-10deg); }
    60% { transform: rotate(5deg); }
    80% { transform: rotate(-2deg); }
    100% { transform: rotate(0deg); }
}

@keyframes tagDotPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.8); opacity: 1; }
}

/* 5. Checklist (Méthodologie) - Checks progressifs */
.icon-checklist {
    opacity: 0;
    transform: scale(0.8);
    transition: all 1.2s ease-out;
}

.icon-checklist.animating,
.icon-checklist.animate {
    opacity: 1;
    transform: scale(1);
}

.icon-checklist .check {
    stroke-dasharray: 10;
    stroke-dashoffset: 10;
    opacity: 0;
}

.icon-checklist .line {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
}

/* Animation initiale au scroll - gérée par JS avec classe .animating */
.icon-checklist.animating .check1 { animation: checkDraw 0.6s ease-out 0.2s forwards; }
.icon-checklist.animating .line1 { animation: lineDraw 0.5s ease-out 0.3s forwards; }
.icon-checklist.animating .check2 { animation: checkDraw 0.6s ease-out 0.6s forwards; }
.icon-checklist.animating .line2 { animation: lineDraw 0.5s ease-out 0.7s forwards; }
.icon-checklist.animating .check3 { animation: checkDraw 0.6s ease-out 1s forwards; }
.icon-checklist.animating .line3 { animation: lineDraw 0.5s ease-out 1.1s forwards; }

/* État final après animation scroll */
.icon-checklist.animate .check { stroke-dashoffset: 0; opacity: 1; }
.icon-checklist.animate .line { stroke-dashoffset: 0; }

/* Hover - rejoue la cascade */
.icon-checklist.animate.hover .check1 { animation: checkDrawHover 0.6s ease-out 0.2s forwards; }
.icon-checklist.animate.hover .line1 { animation: lineDrawHover 0.5s ease-out 0.3s forwards; }
.icon-checklist.animate.hover .check2 { animation: checkDrawHover 0.6s ease-out 0.6s forwards; }
.icon-checklist.animate.hover .line2 { animation: lineDrawHover 0.5s ease-out 0.7s forwards; }
.icon-checklist.animate.hover .check3 { animation: checkDrawHover 0.6s ease-out 1s forwards; }
.icon-checklist.animate.hover .line3 { animation: lineDrawHover 0.5s ease-out 1.1s forwards; }

@keyframes checkDraw {
    0% { stroke-dashoffset: 10; opacity: 0; }
    100% { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes checkDrawHover {
    0% { stroke-dashoffset: 10; opacity: 0; }
    100% { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes lineDraw {
    0% { stroke-dashoffset: 20; }
    100% { stroke-dashoffset: 0; }
}

@keyframes lineDrawHover {
    0% { stroke-dashoffset: 20; }
    100% { stroke-dashoffset: 0; }
}

/* 6. Rocket (Garanties) - Shake + envol */
.icon-rocket {
    transition: all 1.2s ease-out;
    opacity: 0;
    transform: scale(0.8);
}

/* Animation initiale au scroll - gérée par JS avec classe .animating */
.icon-rocket.animating {
    opacity: 1;
    transform: scale(1);
    animation: rocketShakeLaunch 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.icon-rocket.animate {
    opacity: 1;
    transform: scale(1);
}

/* Hover - shake + envol */
.icon-rocket.animate.hover {
    animation: rocketShakeLaunchHover 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes rocketShakeLaunch {
    0% { transform: scale(0.8) translate(0, 0) rotate(0deg); }
    5% { transform: scale(0.85) translate(1px, 0) rotate(0.5deg); }
    10% { transform: scale(0.9) translate(-1px, 0) rotate(-0.5deg); }
    15% { transform: scale(0.95) translate(1px, 0) rotate(0.5deg); }
    20% { transform: scale(1) translate(-1px, 0) rotate(-0.5deg); }
    25% { transform: scale(1) translate(1px, 0) rotate(0deg); }
    30% { transform: scale(1) translate(0, 0) rotate(0deg); }
    50% { transform: scale(1) translate(10px, -10px) rotate(0deg); }
    100% { transform: scale(1) translate(0, 0) rotate(0deg); }
}

@keyframes rocketShakeLaunchHover {
    0% { transform: translate(0, 0) rotate(0deg); }
    5% { transform: translate(1px, 0) rotate(0.5deg); }
    10% { transform: translate(-1px, 0) rotate(-0.5deg); }
    15% { transform: translate(1px, 0) rotate(0.5deg); }
    20% { transform: translate(-1px, 0) rotate(-0.5deg); }
    25% { transform: translate(1px, 0) rotate(0deg); }
    30% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(10px, -10px) rotate(0deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* 7. Bolt / Éclair - Draw + Fill */
.icon-bolt {
    opacity: 0;
    transform: scale(0.8);
    transition: all 1.2s ease-out;
}

.icon-bolt .bolt-shape {
    stroke-dasharray: 80;
    stroke-dashoffset: 80;
    fill: transparent;
    transition: stroke-dashoffset 0.6s ease-out, fill 0.4s ease-out 0.5s;
}

/* Animation initiale au scroll - gérée par JS avec classe .animating */
.icon-bolt.animating {
    opacity: 1;
    transform: scale(1);
}

.icon-bolt.animating .bolt-shape {
    animation: boltDrawFill 1.2s ease-out forwards;
}

.icon-bolt.animate {
    opacity: 1;
    transform: scale(1);
}

.icon-bolt.animate .bolt-shape {
    stroke-dashoffset: 0;
    fill: currentColor;
}

/* Hover - rejoue draw + fill */
.icon-bolt.animate.hover .bolt-shape {
    animation: boltDrawFillHover 1.2s ease-out forwards;
}

@keyframes boltDrawFill {
    0% { stroke-dashoffset: 80; fill: transparent; }
    50% { stroke-dashoffset: 0; fill: transparent; }
    100% { stroke-dashoffset: 0; fill: currentColor; }
}

@keyframes boltDrawFillHover {
    0% { stroke-dashoffset: 80; fill: transparent; }
    50% { stroke-dashoffset: 0; fill: transparent; }
    100% { stroke-dashoffset: 0; fill: currentColor; }
}

/* ============================================
   CONTACT SECTION
   ============================================ */
#contact {
    /* background uniforme avec les autres sections */
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Contact layout 2 colonnes */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    align-items: start;
}

/* Bloc coordonnées (droite) */
.contact-info-box {
    background: var(--color-bg-hover);
    border: 1px solid var(--color-border-hover);
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-top: 21px;
}

.contact-info-icon-wrapper {
    color: var(--color-text);
    margin-bottom: 8px;
}

.contact-info-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.contact-info-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-faint);
    margin: 8px 0 0 0;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.contact-info-item:hover {
    color: var(--color-text);
}

.theme-light .contact-info-item:hover {
    color: #000;
}

.contact-info-whatsapp:hover {
    color: #25D366;
}

.theme-light .contact-info-whatsapp:hover {
    color: #25D366;
}

.contact-info-note {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 8px 0 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.contact-info-note .text-mobile { display: none; }

.contact-info-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .contact-info-box {
        order: 1;
        margin-top: 0;
    }
    .contact-info-title {
        font-size: 18px;
    }
    .contact-info-note .text-desktop { display: none; }
    .contact-info-note .text-mobile { display: inline; }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.form-group input,
.form-group textarea {
    background: var(--color-bg-input);
    border: 1px solid var(--color-border-input);
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 16px;
    color: var(--color-text);
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-border-focus);
    background: var(--color-bg-input-focus);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-faint);
}

.submit-btn {
    padding: 14px 32px;
    background: var(--color-btn-bg);
    color: var(--color-text);
    border: 1px solid var(--color-btn-border);
    border-radius: 50px;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
    align-self: center;
    position: relative;
    overflow: hidden;
}

/* Shine effect for mono themes */
body:not(.theme-color) .submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

body:not(.theme-color) .submit-btn:hover::before {
    left: 100%;
}

/* Mono light: shine plus visible */
body.theme-light:not(.theme-color) .submit-btn::before {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
}

/* Desktop hover */
@media (hover: hover) {
    .submit-btn:hover {
        background: var(--color-btn-hover-bg);
        border-color: var(--color-btn-hover-border);
    }
}

.submit-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--color-border-focus);
}

.submit-btn:active {
    transform: scale(0.98);
    background: var(--color-btn-hover-bg);
    border-color: var(--color-btn-hover-border);
}

/* Form messages */
.form-message {
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 20px;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.required {
    color: #ef4444;
}

/* Checkbox "Je suis une entreprise" */
.form-group-checkbox {
    margin: 5px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 1px solid var(--color-border-input);
    border-radius: 6px;
    background: var(--color-bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.checkbox-custom::after {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--color-text);
    border-radius: 3px;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.2s, transform 0.2s;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    border-color: var(--color-border-focus);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    opacity: 1;
    transform: scale(1);
}

.checkbox-text {
    font-size: 15px;
    color: var(--color-text);
}

.checkbox-text a {
    color: var(--color-text-secondary);
    text-decoration: underline;
    transition: color 0.2s;
}

.checkbox-text a:hover {
    color: var(--color-text);
}

.form-group-rgpd {
    margin-top: 8px;
}

.form-group-rgpd .checkbox-text {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.form-group-rgpd.rgpd-error .checkbox-custom {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.form-group-rgpd.rgpd-error .checkbox-text {
    color: #ef4444;
}

/* Company fields */
.form-group-company {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vat-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.vat-input-wrapper input {
    flex: 1;
    padding-right: 50px;
}

.vat-status {
    position: absolute;
    right: 16px;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.2s;
}

.vat-status.loading {
    opacity: 1;
    animation: spin 1s linear infinite;
}

.vat-status.valid {
    opacity: 1;
    color: #22c55e;
}

.vat-status.invalid {
    opacity: 1;
    color: #ef4444;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.vat-error {
    font-size: 13px;
    color: #ef4444;
    margin-top: 6px;
    min-height: 0;
}

.company-info {
    margin-top: 16px;
    padding: 16px;
    background: var(--color-bg-input);
    border: 1px solid var(--color-border-input);
    border-radius: 12px;
    animation: slideDown 0.3s ease-out;
}

.company-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.company-info-item + .company-info-item {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border-input);
}

.company-info-label {
    font-size: 11px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.company-info-value {
    font-size: 14px;
    color: var(--color-text);
    white-space: pre-line;
}

/* Form confirmation animation */
.form-confirmation {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 60px 20px;
}

.form-confirmation.show {
    display: flex;
}

.confirmation-logo {
    position: relative;
    width: 240px;
    height: 240px;
}

/* Wave animation styles */
.confirmation-logo.wave-anim svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.confirmation-logo.wave-anim svg.white-layer path {
    fill: #fff;
}

.confirmation-logo.wave-anim svg.green-layer path {
    fill: #4ade80;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.confirmation-logo.wave-anim.complete svg.green-layer path {
    opacity: 1;
}

/* Light theme: white layer becomes dark */
.theme-light .confirmation-logo.wave-anim svg.white-layer path {
    fill: #1a1a1a;
}

.confirmation-text {
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
}

.confirmation-text.show {
    animation: confirmTextAppear 0.5s ease-out forwards;
}

@keyframes confirmTextAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.confirmation-text h3 {
    color: #4ade80;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
}

.confirmation-text p {
    color: var(--color-text-muted);
    font-size: 14px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 60px 40px;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-self: start;
}

.footer-logo {
    font-size: 20px;
    font-weight: 600;
}

/* Stacked Compact Logo */
/* Logo image */
.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    opacity: 1;
}

.logo-img path {
    fill: #fff;
}

/* Light theme logo */
.theme-light .logo-img path {
    fill: #000;
}

/* Logo in nav */
.nav-pill .logo-link {
    padding: 0 14px;
    margin-right: 8px;
}

.nav-pill .logo-link:hover {
    background: transparent;
}

.nav-pill .logo-img {
    height: 40px;
    width: auto;
    opacity: var(--logo-opacity);
}

.nav-pill .logo-img path {
    fill: #fff;
}

.theme-light .nav-pill .logo-img path {
    fill: #000;
}

/* Logo SVG animation keyframes */
@keyframes fade-out-in-ne {
    0% { opacity: 1; }
    20% { opacity: 0; }
    50% { opacity: 0; }
    70% { opacity: 1; }
    100% { opacity: 1; }
}
@keyframes fade-out-in-sw {
    0% { opacity: 1; }
    10% { opacity: 1; }
    30% { opacity: 0; }
    50% { opacity: 0; }
    60% { opacity: 0; }
    80% { opacity: 1; }
    100% { opacity: 1; }
}
@keyframes fade-out-in-se {
    0% { opacity: 1; }
    20% { opacity: 1; }
    40% { opacity: 0; }
    50% { opacity: 0; }
    70% { opacity: 0; }
    90% { opacity: 1; }
    100% { opacity: 1; }
}
@keyframes fade-out-in-b {
    0% { opacity: 1; }
    30% { opacity: 1; }
    50% { opacity: 0; }
    70% { opacity: 0; }
    100% { opacity: 1; }
}

.nav-pill .logo-link:hover .logo-img {
    opacity: var(--logo-opacity-hover);
}

/* Logo entry animation on page load */
.nav-pill .logo-img.animate-entry .arrow-ne {
    animation: fade-out-in-ne 0.8s ease-in-out forwards;
}
.nav-pill .logo-img.animate-entry .arrow-sw {
    animation: fade-out-in-sw 0.8s ease-in-out forwards;
}
.nav-pill .logo-img.animate-entry .arrow-se {
    animation: fade-out-in-se 0.8s ease-in-out forwards;
}
.nav-pill .logo-img.animate-entry .letter-b {
    animation: fade-out-in-b 0.8s ease-in-out forwards;
}

/* Logo hover animation - controlled via JS to complete animation */
.nav-pill .logo-img.animate-hover .arrow-ne {
    animation: fade-out-in-ne 0.8s ease-in-out forwards;
}
.nav-pill .logo-img.animate-hover .arrow-sw {
    animation: fade-out-in-sw 0.8s ease-in-out forwards;
}
.nav-pill .logo-img.animate-hover .arrow-se {
    animation: fade-out-in-se 0.8s ease-in-out forwards;
}
.nav-pill .logo-img.animate-hover .letter-b {
    animation: fade-out-in-b 0.8s ease-in-out forwards;
}

/* Logo in footer */
.footer-logo .logo-img {
    height: 120px;
    opacity: 1;
}

.theme-light .footer-logo .logo-img {
    filter: invert(1);
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.footer-copyright {
    font-size: 14px;
    line-height: 1;
    color: var(--color-text-faint);
}

.footer-legal-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.footer-legal-links::before {
    content: '·';
    color: var(--color-text-faint);
    line-height: 1;
}

.footer-legal {
    color: var(--color-text-faint);
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
    transition: color 0.2s;
}

.footer-legal:not(:last-child)::after {
    content: '·';
    margin-left: 8px;
    color: var(--color-text-faint);
}

.footer-legal:hover {
    color: var(--color-text);
}

/* Legal pages content */
.legal-content {
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.legal-content h2 {
    font-size: 20px;
    margin: 32px 0 16px;
    color: var(--color-text);
}

.legal-content ul {
    margin: 16px 0;
    padding-left: 24px;
}

.legal-content a {
    color: var(--color-text-secondary);
    transition: color 0.2s;
}

.legal-content a:hover {
    color: var(--color-text);
}

.legal-intro {
    margin-bottom: 24px;
}

.legal-address {
    margin-top: 12px;
}

.legal-date {
    margin-top: 24px;
    font-size: 14px;
    color: var(--color-text-muted);
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-text);
}

.footer-socials {
    display: flex;
    gap: 16px;
    justify-self: end;
}

.footer-socials a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-tag-bg);
    border: 1px solid var(--color-tag-border);
    border-radius: 50%;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 18px;
    transition: background 0.2s, border-color 0.2s;
}

.footer-socials a:hover {
    background: var(--color-bg-hover);
    border-color: var(--color-border-hover);
    color: var(--color-text);
}

.social-icon {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
    opacity: var(--social-opacity);
    transition: opacity 0.2s ease, filter 0.3s;
}

/* Light theme social icons inversion */
.theme-light .social-icon {
    filter: invert(1);
}

.footer-socials a:hover .social-icon {
    opacity: 1;
}

/* ============================================
   REVIEWS CAROUSEL - TABLET
   ============================================ */

/* ============================================
   TABLET STYLES
   ============================================ */
@media (max-width: 768px) {
    .nav-pill {
        display: none;
    }

    /* Mobile header bar */
    .nav-mobile-header {
        display: flex;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: var(--color-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--color-border);
        padding: 0 20px;
        z-index: 100;
        justify-content: space-between;
        align-items: center;
        transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Nav becomes fixed when scrolled past hero */
    .nav-mobile-header.nav-scrolled {
        position: fixed;
    }

    /* Hide nav while scrolling in hero */
    .nav-mobile-header.nav-hidden {
        opacity: 0;
        pointer-events: none;
    }

    .nav-mobile-header .logo-link {
        padding: 0;
    }

    .nav-mobile-header .logo-img {
        height: 40px;
    }

    /* Logo entry animation on page load (mobile) */
    .nav-mobile-header .logo-img.animate-entry .arrow-ne {
        animation: fade-out-in-ne 0.8s ease-in-out forwards;
    }
    .nav-mobile-header .logo-img.animate-entry .arrow-sw {
        animation: fade-out-in-sw 0.8s ease-in-out forwards;
    }
    .nav-mobile-header .logo-img.animate-entry .arrow-se {
        animation: fade-out-in-se 0.8s ease-in-out forwards;
    }
    .nav-mobile-header .logo-img.animate-entry .letter-b {
        animation: fade-out-in-b 0.8s ease-in-out forwards;
    }


    /* Hamburger button */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 30px;
        height: 30px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
    }

    .hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--color-text);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Mobile menu overlay */
    .nav-mobile-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 99;
        padding: 40px 30px;
        gap: 0;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .nav-mobile-menu.active {
        transform: translateX(0);
    }

    .nav-mobile-menu a {
        color: var(--color-text);
        text-decoration: none;
        font-size: 24px;
        font-weight: 500;
        padding: 20px 0;
        border-bottom: 1px solid var(--color-border);
        transition: color 0.2s ease;
    }

    .nav-mobile-menu a:hover {
        color: var(--color-text-secondary);
    }

    /* Menu mobile glassmorphism - fond transparent pour tous les themes (identique à theme-color) */
    body:not(.theme-color) .nav-mobile-menu {
        background: transparent !important;
    }

    body:not(.theme-color).theme-light .nav-mobile-menu {
        background: transparent !important;
    }

    /* Header mobile glassmorphism - fond transparent pour themes mono (cohérent avec menu hamburger) */
    body:not(.theme-color) .nav-mobile-header {
        background: transparent !important;
    }

    body:not(.theme-color).theme-light .nav-mobile-header {
        background: transparent !important;
    }

    .hero {
        height: 80vh;
        height: 80svh;
        min-height: 450px;
    }

    .hero::before,
    .hero::after {
        height: 60px;
    }

    .hero-h1 {
        top: 100px;
        font-size: 9px;
    }

    .hero-code .code-lines {
        padding: 0 20px;
    }

    .hero-code .code-lines .line-number {
        left: 8px;
        font-size: 10px;
    }

    /* Masquer les numéros sur les lignes titre/texte (évite chevauchement) */
    .hero-code .code-lines .line-title .line-number,
    .hero-code .code-lines .line-text .line-number {
        display: none;
    }

    .hero-code .code-lines .segment-title {
        font-size: clamp(30px, 7vw, 44px);
    }

    .hero-code .code-lines .segment-text {
        font-size: clamp(14px, 3.5vw, 16px);
    }

    .hero-code .code-lines .line-title {
        margin: 12px 0;
    }

    .section {
        padding: 80px 24px;
    }

    .section-title {
        font-size: clamp(28px, 6vw, 38px);
    }

    .section-header {
        margin-bottom: 50px;
    }

    .formules-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 16px;
    }

    .formule-card {
        display: flex;
        flex-direction: column;
        grid-row: auto;
        padding: 32px 24px;
    }

    .formule-footer {
        display: flex;
        flex-direction: column;
        margin-top: auto;
    }

    .methodo-list-item {
        padding: 20px 24px;
    }

    .project-overlay {
        transform: translateY(0);
        opacity: 1;
        padding: 24px;
    }

    .project-overlay h3 {
        margin-bottom: 4px;
    }

    .project-card:not(.project-card-placeholder) img.logo-dark,
    .theme-light .project-card:not(.project-card-placeholder) img.logo-light {
        transform: translateY(-28px) !important;
    }

    /* Mobile/tablet mono light theme: keep black logo (no hover on touch) */
    .theme-light .project-card:not(.project-card-placeholder) .logo-dark {
        filter: invert(1);
    }

    .project-card-placeholder .placeholder-logo {
        width: 100px;
    }

    .approche-garanties-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 50px;
    }

    .approche-col {
        display: block;
        grid-row: auto;
    }

    .methodo-list,
    .garanties-wrapper {
        display: flex;
        flex-direction: column;
    }

    .methodo-intro {
        padding: 24px 24px 0;
    }

    .garanties-intro {
        padding: 24px 24px 0;
    }

    .col-label {
        padding: 0 24px;
        margin-bottom: 16px;
    }

    .garanties-grid {
        padding: 16px 20px;
    }

    .tarifs-block {
        padding: 32px 24px;
    }

    .tarifs-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Mobile/tablet light theme: gris par défaut (pas de hover sur touch) */
    .theme-light .review-icon-mono {
        color: var(--color-text-muted);
    }

    .theme-light .review-star {
        color: var(--color-text-muted);
    }

    .footer {
        padding: 40px 24px 100px;
    }

    .footer-content {
        display: flex;
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    .footer-left,
    .footer-socials {
        justify-content: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 4px;
    }

    .footer-copyright::after {
        display: none;
    }
}

/* ============================================
   MOBILE STYLES
   ============================================ */
@media (max-width: 480px) {
    .hero {
        height: 75vh;
        height: 75svh;
        min-height: 400px;
    }

    .hero::before,
    .hero::after {
        height: 40px;
    }

    .hero-code .code-lines .segment-title {
        font-size: clamp(26px, 8vw, 34px);
    }

    .hero-code .code-lines .segment-text {
        font-size: clamp(13px, 3.5vw, 15px);
    }

    .hero-code .code-lines .line-title {
        margin: 10px 0;
    }

    .hero-code .code-lines .line-number {
        font-size: 9px;
        left: 5px;
    }

    /* Réduire la taille du code sur mobile mais le garder visible */
    .hero-code .code-lines .segment-code {
        font-size: 9px;
        color: var(--color-text-faint);
    }

    /* Sur mobile, masquer le code sur les lignes title/text et centrer simplement */
    .hero-code .code-lines .line-title .line-content,
    .hero-code .code-lines .line-text .line-content {
        display: block;
        text-align: center;
    }

    .hero-code .code-lines .line-title .segment-code,
    .hero-code .code-lines .line-text .segment-code {
        display: none;
    }

    /* Réduire l'espacement des lignes code pures sur mobile */
    .hero-code .code-lines .line-code {
        margin: 0;
        line-height: 1.3;
    }

    .hero-nav {
        bottom: 24px;
    }

    .section {
        padding: 60px 20px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .formule-card {
        padding: 28px 20px;
    }

    .formule-icon {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .formule-card h3 {
        font-size: 18px;
    }

    .formule-card p {
        font-size: 14px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .project-card-placeholder .placeholder-logo {
        width: 80px;
    }
}

/* Landscape on small height screens (iPhone landscape with desktop layout) */
@media (max-height: 500px) and (min-width: 769px) {
    .hero {
        min-height: 520px;
    }

    .hero-h1 {
        top: 100px;
        font-size: 9px;
    }

    .hero-code {
        align-items: flex-start;
        padding-top: 145px;
    }

    .hero-code .code-lines {
        min-height: auto;
        height: auto;
        font-size: 10px;
        line-height: 1.35;
    }

    .hero-code .code-lines .line {
        min-height: 1.35em;
    }

    .hero-nav {
        bottom: 12px;
    }
}

/* Mobile landscape (Samsung S22 and similar - width ≤ 768px, small height) */
@media (max-width: 768px) and (max-height: 450px) and (orientation: landscape) {
    .hero {
        min-height: 450px;
    }

    .hero-h1 {
        top: 70px;
    }

    .hero-code {
        padding-top: 105px;
    }

    .hero-code .code-lines {
        font-size: 11px;
        line-height: 1.3;
    }

    .hero-code .code-lines .line {
        min-height: 1.3em;
    }

    .hero-nav {
        bottom: 10px;
    }
}

@media (max-width: 480px) {
    /* Reviews carousel - tablet */
    .reviews-track {
        padding-left: 0; /* Pas de padding sur mobile/tablet */
    }

    /* Carte plus petite pour voir peek gauche et droite */
    .review-card {
        flex: 0 0 calc(100% - 80px);
        padding: 16px 12px;
    }

    .review-message {
        font-size: 14px;
    }

    .review-source {
        font-size: 11px;
    }

    .carousel-nav {
        width: 32px;
        height: 32px;
    }

    .carousel-nav svg {
        width: 16px;
        height: 16px;
    }

    .carousel-arrows {
        right: 20px;
    }

    .methodo-list-item {
        padding: 18px 20px;
    }

    .methodo-intro {
        padding: 20px 20px 0;
    }

    .col-label {
        padding: 0 20px;
        margin-bottom: 12px;
        font-size: 12px;
    }

    .methodo-intro-icon svg {
        width: 28px;
        height: 28px;
    }

    .methodo-intro-icon {
        margin-bottom: 20px;
    }

    .methodo-intro h4 {
        font-size: 18px;
    }

    .methodo-intro p {
        font-size: 14px;
    }

    .methodo-list-text h4 {
        font-size: 16px;
    }

    .methodo-list-text p {
        font-size: 14px;
    }

    .garanties-intro {
        padding: 20px 20px 0;
    }

    .garanties-intro-icon svg {
        width: 28px;
        height: 28px;
    }

    .garanties-intro-icon {
        margin-bottom: 20px;
    }

    .garanties-intro h4 {
        font-size: 18px;
    }

    .garanties-intro p {
        font-size: 14px;
    }

    .approche-garanties-grid {
        grid-template-rows: auto;
        gap: 40px;
    }

    .garanties-grid {
        grid-template-columns: 1fr;
        padding: 12px 16px;
    }

    .garanties-desc {
        font-size: 12px;
    }

    .garanties-deco {
        padding: 16px 20px 24px;
    }

    .garanties-deco svg {
        max-width: 120px;
    }

    .tarifs-block {
        padding: 24px 20px;
    }

    .tarifs-header-icon svg {
        width: 28px;
        height: 28px;
    }

    .tarifs-header-icon {
        margin-bottom: 20px;
    }

    .tarifs-header h3 {
        font-size: 18px;
    }

    .tarifs-header p {
        font-size: 14px;
    }

    .tarifs-label {
        font-size: 13px;
    }

    .tarifs-price {
        font-size: 13px;
    }

    .tarifs-desc {
        font-size: 12px;
    }

    .submit-btn {
        width: 100%;
        text-align: center;
    }

    /* Reviews carousel - mobile */
    .review-card {
        padding: 12px 10px 14px;
    }

    .review-name {
        font-size: clamp(12px, 3.5vw, 14px);
    }

    .review-message {
        font-size: clamp(11px, 3.2vw, 13px);
        line-height: 1.5;
    }

    .review-source {
        font-size: clamp(9px, 2.8vw, 11px);
    }

    .review-icon-wrapper {
        width: clamp(22px, 6vw, 28px);
        height: clamp(22px, 6vw, 28px);
    }

    .review-icon {
        width: clamp(22px, 6vw, 28px);
        height: clamp(22px, 6vw, 28px);
    }

    .review-star {
        width: clamp(14px, 4vw, 18px);
        height: clamp(14px, 4vw, 18px);
    }

    .review-rating {
        gap: 8px;
    }

    .review-content {
        gap: 12px;
    }

    .carousel-arrows {
        display: none;
    }
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for child elements */
.reveal-children > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-children > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-children > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-children > *:nth-child(4) { transition-delay: 0.4s; }
.reveal-children > *:nth-child(5) { transition-delay: 0.5s; }
.reveal-children > *:nth-child(6) { transition-delay: 0.6s; }
.reveal-children > *:nth-child(7) { transition-delay: 0.7s; }
.reveal-children > *:nth-child(8) { transition-delay: 0.8s; }
.reveal-children > *:nth-child(9) { transition-delay: 0.9s; }
.reveal-children > *:nth-child(10) { transition-delay: 1s; }

/* Children inherit reveal state */
.reveal-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal-children.active > * {
    opacity: 1;
    transform: translateY(0);
}

/* No animation for elements already in viewport on load */
.reveal.no-animate,
.reveal-children.no-animate > * {
    opacity: 1;
    transform: translateY(0);
    transition: none;
}

/* Accessibility: Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-children > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
