/* ═══════════════════════════════════════════════════════════════
   ORDI'SANAT v4 — Design System
   Dark Theme · Violet/Lavande Accents · Outfit · Glassmorphism
   ═══════════════════════════════════════════════════════════════ */

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

/* ─── Design Tokens ─────────────────────────────────────────── */
:root {
    /* Colors */
    --color-bg-deep: #050507;
    --color-bg-surface: #0d0d12;
    --color-bg-card: #12121a;
    --color-bg-card-hover: #1a1a25;
    --color-bg-input: rgba(255, 255, 255, 0.04);
    --color-bg-input-focus: rgba(255, 255, 255, 0.08);
    --color-border: rgba(255, 255, 255, 0.06);
    --color-border-hover: rgba(199, 125, 255, 0.3);

    --color-text-main: #f0f0f5;
    --color-text-secondary: #a0a0b4;
    --color-text-muted: #6b6b80;

    --color-accent-violet: #7B2CBF;
    --color-accent-lavender: #C77DFF;
    --color-accent-indigo: #480CA8;
    --color-accent-purple-soft: #9D4EDD;

    --color-success: #10b981;
    --color-error: #ef4444;
    --color-warning: #f59e0b;
    --color-info: #3b82f6;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-accent-violet), var(--color-accent-indigo));
    --gradient-accent: linear-gradient(135deg, var(--color-accent-lavender), var(--color-accent-violet));
    --gradient-subtle: linear-gradient(135deg, rgba(123, 44, 191, 0.15), rgba(72, 12, 168, 0.05));
    --gradient-glow: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(123, 44, 191, 0.06), transparent 40%);

    /* Typography */
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Borders & Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 9999px;

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(123, 44, 191, 0.2);
    --shadow-glow-strong: 0 0 60px rgba(123, 44, 191, 0.3);
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg-deep);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ─── Background Texture ────────────────────────────────────── */
.bg-texture {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.12;
    background-image: url('../images/OS-BG.png');
    background-size: cover;
    background-position: center;
    pointer-events: none;
}

/* ─── Utilities ─────────────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-padding {
    padding: var(--space-4xl) 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ─── Navbar ────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: var(--transition-smooth);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(5, 5, 7, 0.85);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-sm) 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    z-index: 10;
}

.nav-logo svg {
    flex-shrink: 0;
}

.nav-logo span {
    white-space: nowrap;
}

/* ─── Mode Toggle (Pro/Particulier) ─────────────────────────── */
.mode-toggle {
    display: flex;
    align-items: center;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    padding: 4px;
    position: relative;
    z-index: 10;
}

.mode-toggle-btn {
    padding: 0.5rem 1.25rem;
    border: none;
    background: transparent;
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-pill);
    transition: var(--transition-fast);
    cursor: pointer;
    position: relative;
    z-index: 2;
    white-space: nowrap;
}

.mode-toggle-btn.active {
    color: var(--color-text-main);
}

.mode-toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    border-radius: var(--radius-pill);
    background: var(--gradient-primary);
    transition: var(--transition-smooth);
    z-index: 1;
    box-shadow: var(--shadow-glow);
}

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

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

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 10;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-main);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.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);
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-text-main);
    box-shadow: 0 4px 20px rgba(123, 44, 191, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(123, 44, 191, 0.5);
    background: var(--gradient-accent);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-md);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-secondary);
    border: none;
}

.btn-ghost:hover {
    color: var(--color-text-main);
    background: rgba(255, 255, 255, 0.05);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.btn-danger:hover {
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
    transform: translateY(-2px);
}

/* ─── Glass Cards ───────────────────────────────────────────── */
.glass-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* ─── Section Headers ───────────────────────────────────────── */
.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: var(--gradient-subtle);
    border: 1px solid rgba(123, 44, 191, 0.2);
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent-lavender);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ─── Hero Section ──────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem var(--space-xl) var(--space-3xl);
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg canvas {
    width: 100%;
    height: 100%;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--color-accent-violet);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--color-accent-indigo);
    bottom: 20%;
    right: 15%;
    animation-delay: -7s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: var(--color-accent-lavender);
    top: 50%;
    left: 60%;
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -50px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
    75% { transform: translate(40px, 30px) scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: var(--gradient-subtle);
    border: 1px solid rgba(123, 44, 191, 0.25);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-accent-lavender);
    margin-bottom: var(--space-xl);
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: var(--space-lg);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-inline: auto;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-3xl);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: var(--space-2xl);
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--gradient-subtle);
    border: 1px solid rgba(123, 44, 191, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-lavender);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* Lifecycle Slogan */
.lifecycle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.lifecycle-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: var(--gradient-subtle);
    border: 1px solid rgba(123, 44, 191, 0.15);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent-lavender);
}

.lifecycle-arrow {
    color: var(--color-text-muted);
    font-size: 0.7rem;
}

/* ─── Services Grid ─────────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.service-card {
    text-align: left;
    padding: var(--space-xl);
}

.service-card .card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: var(--gradient-subtle);
    border: 1px solid rgba(123, 44, 191, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--color-accent-lavender);
    margin-bottom: var(--space-lg);
    transition: var(--transition-smooth);
}

.service-card:hover .card-icon {
    background: var(--gradient-primary);
    border-color: transparent;
    box-shadow: var(--shadow-glow);
    transform: scale(1.1);
}

.service-card .card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.service-card .card-desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.service-card .card-features {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.service-card .card-features li {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-card .card-features li i {
    color: var(--color-accent-lavender);
    font-size: 0.7rem;
}

/* ─── Engagement / Values ───────────────────────────────────── */
.engagement-section {
    position: relative;
    overflow: hidden;
}

.engagement-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(123, 44, 191, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.value-card {
    padding: var(--space-xl);
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
}

.value-card .value-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: var(--radius-md);
    background: var(--gradient-subtle);
    border: 1px solid rgba(123, 44, 191, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.value-card .value-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.value-card .value-desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.manifesto {
    background: var(--color-bg-card);
    border: 1px solid rgba(123, 44, 191, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl) var(--space-3xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.manifesto::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(123, 44, 191, 0.05) 0%, transparent 50%, rgba(72, 12, 168, 0.05) 100%);
    pointer-events: none;
}

.manifesto .quote-icon {
    font-size: 2rem;
    color: var(--color-accent-violet);
    opacity: 0.5;
    margin-bottom: var(--space-md);
}

.manifesto blockquote {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.7;
    color: var(--color-text-main);
    position: relative;
    z-index: 1;
}

.manifesto cite {
    display: block;
    margin-top: var(--space-md);
    font-size: 0.9rem;
    font-style: normal;
    color: var(--color-accent-lavender);
    font-weight: 600;
}

/* ─── Form Styles ───────────────────────────────────────────── */
.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-card {
    padding: var(--space-2xl);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text-main);
}

.form-label .required {
    color: var(--color-accent-lavender);
}

.form-label .help-text {
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-left: auto;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--color-bg-input);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-main);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--color-accent-violet);
    background: var(--color-bg-input-focus);
    box-shadow: 0 0 0 3px rgba(123, 44, 191, 0.15);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a0a0b4' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-select option {
    background: var(--color-bg-card);
    color: var(--color-text-main);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

/* Checkbox/Radio Cards */
.choice-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-sm);
}

.choice-card {
    position: relative;
    cursor: pointer;
}

.choice-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-card .choice-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.8rem;
    background: var(--color-bg-input);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition-fast);
    font-size: 0.85rem;
    font-weight: 500;
}

.choice-card .choice-content i {
    font-size: 1.3rem;
    color: var(--color-text-muted);
    transition: var(--transition-fast);
}

.choice-card .choice-content small {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

.choice-card input:checked + .choice-content {
    border-color: var(--color-accent-violet);
    background: rgba(123, 44, 191, 0.1);
    color: var(--color-accent-lavender);
}

.choice-card input:checked + .choice-content i {
    color: var(--color-accent-lavender);
}

.choice-card:hover .choice-content {
    border-color: rgba(199, 125, 255, 0.3);
}

/* Type selector for Particulier */
.type-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.type-card {
    cursor: pointer;
    position: relative;
}

.type-card input {
    position: absolute;
    opacity: 0;
}

.type-card-content {
    padding: var(--space-xl);
    background: var(--color-bg-card);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: var(--transition-smooth);
}

.type-card-content .type-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-md);
    border-radius: var(--radius-lg);
    background: var(--gradient-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}

.type-card-content .type-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.type-card-content .type-desc {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.type-card input:checked + .type-card-content {
    border-color: var(--color-accent-violet);
    background: rgba(123, 44, 191, 0.08);
    box-shadow: var(--shadow-glow);
}

.type-card input:checked + .type-card-content .type-icon {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-glow);
}

.type-card:hover .type-card-content {
    border-color: rgba(199, 125, 255, 0.3);
    transform: translateY(-2px);
}

/* Form Steps */
.form-steps {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-2xl);
    position: relative;
}

.form-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--color-border);
    transform: translateY(-50%);
}

.form-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    z-index: 1;
    cursor: pointer;
    padding: 0 var(--space-xl);
}

.form-step .step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-bg-card);
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.form-step.active .step-circle {
    background: var(--gradient-primary);
    border-color: var(--color-accent-violet);
    box-shadow: var(--shadow-glow);
    color: white;
}

.form-step.completed .step-circle {
    background: var(--color-success);
    border-color: var(--color-success);
    color: white;
}

.form-step .step-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 500;
    transition: var(--transition-fast);
}

.form-step.active .step-label,
.form-step.completed .step-label {
    color: var(--color-text-main);
}

.form-section {
    display: none;
}

.form-section.active {
    display: block;
    animation: fadeInUp 0.4s ease forwards;
}

/* Range Input */
.range-wrapper {
    padding: var(--space-md) 0;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: var(--color-bg-input);
    border-radius: 3px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-primary);
    cursor: pointer;
    box-shadow: var(--shadow-glow);
}

/* Form Messages */
.form-message {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.9rem;
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: var(--space-lg);
}

.form-message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--color-success);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--color-error);
}

.form-message.show {
    display: flex;
}

/* Challenge Math */
.math-challenge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.math-challenge .math-question {
    font-weight: 600;
    color: var(--color-accent-lavender);
    white-space: nowrap;
}

.math-challenge input {
    width: 80px;
}

/* ─── Reviews ───────────────────────────────────────────────── */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.review-card {
    padding: var(--space-xl);
}

.review-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.review-meta h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.review-meta .review-date {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.review-stars {
    margin-bottom: var(--space-md);
    color: #fbbf24;
    font-size: 0.85rem;
    display: flex;
    gap: 2px;
}

.review-text {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    font-style: italic;
}

.review-source {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: var(--space-md);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    padding: 0.2rem 0.6rem;
    background: var(--color-bg-input);
    border-radius: var(--radius-pill);
}

/* ─── Footer ────────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--color-border);
    padding: var(--space-3xl) 0 var(--space-xl);
    margin-top: var(--space-4xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    max-width: 280px;
    line-height: 1.6;
}

.footer-column h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.footer-column a {
    display: block;
    padding: 0.25rem 0;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    transition: var(--transition-fast);
}

.footer-column a:hover {
    color: var(--color-accent-lavender);
    transform: translateX(4px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: var(--transition-fast);
}

.footer-social a:hover {
    color: var(--color-accent-lavender);
    border-color: var(--color-border-hover);
    transform: translateY(-2px);
}

/* Admin button */
.admin-trigger {
    background: none;
    border: none;
    color: var(--color-text-muted);
    opacity: 0.3;
    transition: var(--transition-fast);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0.3rem;
}

.admin-trigger:hover {
    opacity: 0.8;
    color: var(--color-accent-lavender);
}

/* ─── Dashboard Styles ──────────────────────────────────────── */
.dashboard-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
}

.login-card {
    max-width: 400px;
    width: 100%;
    padding: var(--space-2xl);
    text-align: center;
}

.login-card h1 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.login-card p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
    font-size: 0.9rem;
}

/* Dashboard layout */
.dashboard {
    display: none;
    min-height: 100vh;
}

.dashboard.active {
    display: block;
}

.dash-header {
    background: var(--color-bg-surface);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-md) var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.dash-header h1 {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.dash-actions {
    display: flex;
    gap: var(--space-sm);
}

/* Stats Cards */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.stat-card {
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.stat-card .stat-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat-card .stat-icon-box.blue { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.stat-card .stat-icon-box.violet { background: rgba(123, 44, 191, 0.15); color: var(--color-accent-lavender); }
.stat-card .stat-icon-box.green { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.stat-card .stat-icon-box.orange { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }

.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.stat-card .stat-desc {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* Filters */
.filters-bar {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
    align-items: center;
}

.filters-bar .form-input,
.filters-bar .form-select {
    max-width: 200px;
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
}

/* Table */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table thead {
    background: var(--color-bg-surface);
}

.data-table th {
    padding: var(--space-md) var(--space-lg);
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
}

.data-table td {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

.data-table tbody tr {
    transition: var(--transition-fast);
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.badge-orange { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.badge-violet { background: rgba(123, 44, 191, 0.15); color: var(--color-accent-lavender); }
.badge-indigo { background: rgba(72, 12, 168, 0.15); color: #a78bfa; }
.badge-green { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.badge-red { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.badge-cyan { background: rgba(6, 182, 212, 0.15); color: #22d3ee; }
.badge-grey { background: rgba(107, 114, 128, 0.15); color: #9ca3af; }

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: var(--space-2xl);
    position: relative;
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.3rem;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--color-text-main);
}

.modal-content h2 {
    font-size: 1.3rem;
    margin-bottom: var(--space-lg);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
}

.detail-row .detail-label {
    color: var(--color-text-muted);
    font-weight: 500;
}

.detail-row .detail-value {
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

/* Settings */
.settings-section {
    margin-bottom: var(--space-2xl);
}

.settings-section h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ─── Animations ────────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

.animate-in {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Content switching */
.mode-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.mode-content.active {
    display: block;
}

/* Honeypot — hidden */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    animation: pulse 2s ease-in-out infinite;
}

.scroll-indicator .mouse {
    width: 22px;
    height: 34px;
    border: 2px solid var(--color-text-muted);
    border-radius: 11px;
    position: relative;
}

.scroll-indicator .wheel {
    width: 3px;
    height: 8px;
    background: var(--color-text-muted);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s ease infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Toast notification */
.toast {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
}

.toast.success { background: linear-gradient(135deg, #10b981, #059669); }
.toast.error { background: linear-gradient(135deg, #ef4444, #dc2626); }
.toast.info { background: linear-gradient(135deg, #3b82f6, #2563eb); }

.toast.hiding {
    animation: slideOutRight 0.3s ease forwards;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 768px) {
    html { font-size: 15px; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--color-bg-surface);
        border-left: 1px solid var(--color-border);
        flex-direction: column;
        padding: 5rem var(--space-xl) var(--space-xl);
        transition: var(--transition-smooth);
        z-index: 5;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding-top: 6rem;
        min-height: auto;
        padding-bottom: var(--space-3xl);
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-stats {
        gap: var(--space-lg);
    }

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

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

    .type-selector {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

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

    .filters-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filters-bar .form-input,
    .filters-bar .form-select {
        max-width: 100%;
    }

    .mode-toggle {
        order: -1;
    }

    .manifesto {
        padding: var(--space-xl);
    }

    .lifecycle {
        gap: 0.3rem;
    }

    .choice-group {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .stats-row {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
    }

    .modal-content {
        padding: var(--space-lg);
    }
}

/* ═══════════════════════════════════════════════════════════════
   PHOTO INTEGRATION — Hero Visual + Section Terrain
   ═══════════════════════════════════════════════════════════════ */

/* ─── Hero Visual (PC blanc méduse) ────────────────────────── */
.hero-visual {
    position: absolute;
    right: 4%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    width: 38%;
    max-width: 520px;
    pointer-events: none;
}

.hero-image-frame {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.hero-image-frame::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-accent);
    border-radius: calc(var(--radius-xl) + 2px);
    z-index: -1;
    opacity: 0.7;
}

.hero-pc-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-xl);
    object-fit: cover;
    aspect-ratio: 3/4;
    filter: brightness(0.92) saturate(1.1);
    transition: var(--transition-smooth);
}

.hero-image-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center bottom, rgba(123, 44, 191, 0.25) 0%, transparent 70%);
    border-radius: var(--radius-xl);
    pointer-events: none;
}

.hero-image-badge {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.1rem;
    background: rgba(13, 13, 18, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(199, 125, 255, 0.3);
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent-lavender);
    white-space: nowrap;
}

.hero-image-badge i {
    color: #f59e0b;
    font-size: 0.75rem;
}

/* Adapt hero layout for widescreen with image */
@media (min-width: 1024px) {
    .hero {
        align-items: flex-start;
        padding-left: 6%;
        text-align: left;
    }

    .hero-content {
        max-width: 55%;
    }

    .hero-badge,
    .hero-cta,
    .hero-stats,
    .lifecycle {
        justify-content: flex-start;
    }

    .hero-subtitle {
        margin-inline: 0;
    }
}

@media (max-width: 1023px) {
    .hero-visual {
        display: none;
    }
}

/* ─── Section Terrain ───────────────────────────────────────── */
.terrain-section {
    background: linear-gradient(180deg, transparent 0%, rgba(123, 44, 191, 0.03) 50%, transparent 100%);
}

.terrain-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-2xl);
    align-items: start;
}

/* Colonne principale : photo équipe + story card */
.terrain-main {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.terrain-photo-frame {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 16/9;
}

.terrain-photo-frame::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-accent);
    border-radius: calc(var(--radius-xl) + 2px);
    z-index: -1;
    opacity: 0.5;
}

.terrain-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-xl);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.terrain-photo-frame:hover .terrain-photo {
    transform: scale(1.03);
}

.terrain-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 5, 7, 0.85) 0%, transparent 50%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: flex-end;
    padding: var(--space-xl);
}

.terrain-event-badge {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: rgba(13, 13, 18, 0.8);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(199, 125, 255, 0.25);
    border-radius: var(--radius-lg);
    padding: 0.75rem var(--space-lg);
    color: var(--color-text-main);
}

.terrain-event-badge i {
    font-size: 1.5rem;
    color: var(--color-accent-lavender);
}

.terrain-event-badge strong {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 2px;
}

.terrain-event-badge span {
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

/* Story card */
.terrain-story {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    padding: var(--space-xl);
}

.terrain-story-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    background: var(--gradient-subtle);
    border: 1px solid rgba(123, 44, 191, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--color-accent-lavender);
}

.terrain-story h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.terrain-story p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.terrain-story p strong {
    color: var(--color-accent-lavender);
    font-weight: 600;
}

/* Galerie secondaire */
.terrain-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--space-md);
    align-content: start;
}

.terrain-gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.terrain-gallery-item:hover {
    border-color: var(--color-border-hover);
    transform: translateX(-4px);
    box-shadow: var(--shadow-glow);
}

.terrain-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.terrain-gallery-item:hover img {
    transform: scale(1.06);
}

.terrain-gallery-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem var(--space-md);
    background: linear-gradient(to top, rgba(5, 5, 7, 0.9) 0%, transparent 100%);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    letter-spacing: 0.5px;
}

/* Responsive terrain */
@media (max-width: 1024px) {
    .terrain-layout {
        grid-template-columns: 1fr;
    }

    .terrain-gallery {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: var(--space-md);
    }

    .terrain-gallery-item {
        aspect-ratio: 1/1;
    }

    .terrain-gallery-item:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 600px) {
    .terrain-gallery {
        grid-template-columns: 1fr 1fr;
    }

    .terrain-gallery-item:last-child {
        grid-column: 1 / -1;
    }
}

/* ═══════════════════════════════════════════════════════════════
   AVIS CLIENTS (Testimonials)
   ═══════════════════════════════════════════════════════════════ */

.testimonials {
    padding: var(--space-4xl) 0;
    position: relative;
    overflow: hidden;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.testimonial-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    position: relative;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-glow);
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-md);
}

.testimonial-author-wrap {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.testimonial-author h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: var(--color-text-main);
}

.testimonial-date {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.testimonial-stars {
    color: #fbbf24; /* Yellow for stars */
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
    display: flex;
    gap: 2px;
}

.testimonial-content {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    flex-grow: 1;
    font-style: italic;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    font-size: 3rem;
    color: rgba(255,255,255,0.05);
    position: absolute;
    top: -15px;
    left: -10px;
    font-family: serif;
    font-weight: 900;
}

.testimonial-platform {
    margin-top: var(--space-xl);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.platform-google {
    color: #a8b2c2;
}
.platform-google i {
    color: #4285F4;
    font-size: 1rem;
}

.platform-allovoisins {
    color: #a8b2c2;
}
.platform-allovoisins i {
    color: #FF5A5F; /* Couleur typique AlloVoisins (souvent rose/rouge) */
    font-size: 1rem;
}

.testimonials-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}
