:root {
    /* Palette Design System */
    --bg: #FAFAFA;
    --bg-shine: radial-gradient(circle at 50% 0%, rgba(64, 176, 192, 0.08) 0%, transparent 60%);
    
    --surface: rgba(255, 255, 255, 0.78);
    --surface-2: rgba(255, 255, 255, 0.92);
    --surface-blur: blur(12px);

    /* Colors */
    --primary: #40B0C0; /* Teal from logo */
    --primary-dark: #32909E;
    --primary-light: rgba(64, 176, 192, 0.1);
    --primary-ink: #08333A;

    --text: #0B1220;
    --text-light: rgba(11, 18, 32, 0.65);
    --text-muted: rgba(11, 18, 32, 0.45);

    --stroke: rgba(11, 18, 32, 0.08);
    --stroke-strong: rgba(11, 18, 32, 0.12);

    /* Accents (Micro-details only) */
    --accent-red: #D02030;
    --accent-orange: #E07000;
    --accent-blue: #306080;
    --accent-green: #60A030;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(11, 18, 32, 0.04), 0 1px 2px rgba(11, 18, 32, 0.02);
    --shadow-lg: 0 12px 32px -8px rgba(11, 18, 32, 0.08), 0 4px 12px -4px rgba(11, 18, 32, 0.04);
    --shadow-hover: 0 16px 40px -12px rgba(64, 176, 192, 0.15);

    /* Radii */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Typography */
    --font-main: 'Plus Jakarta Sans', sans-serif;
}

/* Theme Switcher Capability */
body.theme-cream {
    --bg: #FDFBF7;
    --bg-shine: radial-gradient(circle at 50% 0%, rgba(249, 214, 147, 0.15) 0%, transparent 70%);
    --surface: rgba(255, 255, 255, 0.6);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg);
    background-image: var(--bg-shine);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    color: var(--text);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text);
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: 2rem;
    text-align: center;
}

h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 96px 0;
    position: relative;
}

@media (max-width: 768px) {
    .section {
        padding: 64px 0;
    }
}

.text-center { text-align: center; }

/* Text accents (keeping legacy classes working but updated) */
.text-red { color: var(--accent-red); }
.text-teal { color: var(--primary); }
.text-green { color: var(--accent-green); }
.text-blue { color: var(--accent-blue); }
.text-orange { color: var(--accent-orange); }

/* Section Backgrounds */
.section-ivory {
    /* Using a subtle distinct background instead of ivory */
    background-color: rgba(255, 255, 255, 0.4);
    border-top: 1px solid var(--stroke);
    border-bottom: 1px solid var(--stroke);
}

.section-white {
    background: var(--surface-2);
    border-radius: var(--radius-lg);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow-md);
    margin: 20px 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    letter-spacing: -0.01em;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(64, 176, 192, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(64, 176, 192, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-orange {
    background-color: var(--accent-orange);
    background: linear-gradient(135deg, var(--accent-orange) 0%, #D35400 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(224, 112, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(224, 112, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
    color: white;
}

.btn-secondary {
    background-color: white;
    color: var(--text);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--stroke-strong);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--text);
    background-color: rgba(0,0,0,0.02);
}

/* Header (Removed / Hidden) */
header {
    display: none;
}

/* Floating Elements */
.logo-inline {
    display: inline-block;
    width: 90px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 0px;
}

.logo-inline img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    filter: drop-shadow(0 2px 4px rgba(255,255,255,0.8));
    animation: spin-logo 3s ease-in-out 0.1s forwards; 
    transform-origin: center center;
}

@media (max-width: 768px) {
    .logo-inline {
        /* Mobile adjustment to match previous absolute positioning or simpler flow */
        margin-bottom: 20px;
    }
}

/* Car Animation - Passing behind logo */
.car-animation-wrapper {
    position: absolute;
    top: 35px; /* Aligned with logo middle (Logo is at top:32px) */
    left: 0;
    width: 100%;
    height: 100px;
    pointer-events: none;
    z-index: 90; /* Behind logo (100) */
    overflow: hidden;
}

.wimit-car {
    position: absolute;
    width: 90px; /* Same size as logo width */
    height: auto;
    left: -150px; /* Start off-screen left */
    top: 0;
    transform: scaleX(-1); /* Image faces left, flip to face right */
    animation: drive-across 3.5s linear forwards; /* A little faster than 5s */
}

@keyframes drive-across {
    0% { left: -150px; }
    100% { left: 100%; }
}

.logo-floating img {
    width: 100%;
    height: auto;
    display: block; /* Removes bottom space */
    border-radius: 20px; /* Ensure image is rounded */
    filter: drop-shadow(0 2px 4px rgba(255,255,255,0.8));
    
    /* Spin animation: 8s duration, multiple spins */
    animation: spin-logo 8s ease-in-out 0.1s forwards; 
    transform-origin: center center;
}

@keyframes spin-logo {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(1440deg); } /* 4 full rotations */
}

.burger-floating {
    display: none; /* Hidden on desktop, shown on mobile */
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    font-size: 1.5rem;
}

/* Side Tabs (Intercalaires Vertical) */
.side-tabs {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 100;
    gap: 0;
}

.tab-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--tab-color, #333);
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    text-decoration: none;
    
    /* Vertical Tab Shape */
    padding: 16px 6px;
    margin-bottom: -12px; /* Negative margin for overlap */
    border-radius: 10px 0 0 10px;
    box-shadow: -2px 2px 6px rgba(0,0,0,0.15);
    
    /* Remove native writing-mode to control wrapping manually with flex */
    /* writing-mode: vertical-rl; */
    
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Size */
    width: 36px;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.5px;
    
    /* Ensure content flows vertically */
    writing-mode: vertical-rl;
    text-orientation: mixed;
    
    position: relative; /* For z-index context */
}

.tab-link span {
    display: block;
    margin: 2px 0; /* Add spacing between vertical lines */
}

/* Page Turn Animation Overlay */
.page-turn-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 0;
    height: 100vh;
    /* Use the new logo background */
    background: url('/assets/logo-wimit-hd.png') center/cover no-repeat;
    opacity: 0.95; 
    z-index: 9999;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    pointer-events: none;
    transition: width 0.6s cubic-bezier(0.6, 0.05, 0.2, 1);
}

.page-turn-overlay.turning {
    width: 100%;
}

.tab-link:hover {
    width: 50px; /* Expand slightly to left */
    padding-right: 10px;
    font-size: 0.85rem;
    z-index: 10; /* Bring to front on hover */
    margin-bottom: -8px; /* Slightly reduce overlap on hover */
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    display: none; /* Toggled by JS */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255,255,255,0.98);
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000; /* Higher than nav */
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal-content {
    background: white;
    padding: 24px;
    border-radius: 20px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    max-height: 95vh;
    overflow-y: auto;
}

.modal-content h2 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.modal-content p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    z-index: 10;
}

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

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    color: var(--text);
    font-size: 0.85rem;
}

.form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--stroke-strong);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: var(--font-main);
    transition: all 0.2s;
    background: #FAFAFA;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
    background: white;
}

.mobile-nav-overlay.active {
    display: flex;
}

.mobile-nav-overlay a {
    font-size: 1.5rem;
    margin: 15px 0;
    color: var(--text);
    font-weight: 700;
}

@media (max-width: 768px) {
    .side-tabs {
        display: none;
    }
    
    .burger-floating {
        display: block;
    }
    
    .logo-floating {
        width: 100px;
        top: 20px;
        left: 20px;
    }
}

/* Hero */
.hero {
    position: relative;
    min-height: 80vh;
    /* Use flex to center the container vertically within the hero section */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 35px; /* Aligned with car animation */
    padding-bottom: 100px;
    
    /* Background Image with Overlay */
    background-image: 
        linear-gradient(to right, 
            rgba(253, 251, 247, 0.88) 0%, 
            rgba(253, 251, 247, 0.82) 40%, 
            rgba(253, 251, 247, 0.6) 100%),
        url('/assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Ensure it blends with the page background color if image fails */
    background-color: var(--bg);
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-content {
    max-width: 600px;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.hero-mockup {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-mockup-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 2000px;
}

/* Phone Styles - Premium Look */
/* Simplified for images that already contain frames */
.phone-img {
    width: 260px; /* Maintain same size */
    height: auto; /* Allow height to adjust based on image ratio */
    display: block;
    position: relative;
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    /* Drop shadow for depth */
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

/* Phone Layout - Stacked */
.phone-center {
    z-index: 5;
    transform: translateX(-40px) scale(0.95);
    opacity: 0.9; /* Slightly transparent to let background show through if needed, or keep 1 */
}

.phone-overlay {
    z-index: 10;
    position: absolute;
    /* Center positioning logic */
    left: 50%;
    margin-left: -130px; /* Half of width (260/2) */
    top: 50%;
    margin-top: -260px; /* Half of approx height (520/2) - adjust if image ratio differs */
    
    /* Transform offsets */
    transform: translateX(40px) translateY(20px) scale(1.05);
}

/* Anniversaires Section */
.section-anniv {
    /* Image en fond avec forte transparence pour lisibilité sur photo chargée */
    background-image: 
        linear-gradient(to bottom, rgba(255,255,255,0.9), rgba(255,255,255,0.9)),
        url('/assets/bg-anniv-kids.png');
    background-size: cover;
    background-position: center;
    position: relative;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

/* Responsive Mobile Styles - MOVED TO BOTTOM OF FILE */

/* Chat Grid Desktop Default */
.chat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Hover State */
.hero-mockup-container:hover .phone-center {
    transform: translateX(-60px) scale(0.95) rotate(-3deg);
    opacity: 1;
}

.hero-mockup-container:hover .phone-overlay {
    transform: translateX(60px) translateY(10px) scale(1.05) rotate(3deg);
}

@media (max-width: 768px) {
    .phone-center {
        transform: translateX(-20px) scale(0.9);
        z-index: 5;
    }
    
    .phone-overlay {
        position: absolute;
        left: 50%;
        margin-left: -60px; /* Adjust for mobile */
        transform: translateX(20px) translateY(20px) scale(0.95);
        z-index: 10;
        width: 120px !important; /* Force mobile width match */
        height: 240px !important;
    }
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.card {
    background: var(--surface);
    backdrop-filter: blur(10px);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    
    /* Ensure background covers nicely */
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.card-constraints {
    background-image: 
        linear-gradient(to bottom, rgba(255,255,255,0.7), rgba(255,255,255,0.7)),
        url('/assets/card-constraints-bg.png');
}

.card-duplicates {
    background-image: 
        linear-gradient(to bottom, rgba(255,255,255,0.7), rgba(255,255,255,0.7)),
        url('/assets/card-duplicates-bg.png');
}

.card-trust {
    background-image: 
        linear-gradient(to bottom, rgba(255,255,255,0.7), rgba(255,255,255,0.7)),
        url('/assets/card-trust-bg.png');
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(64, 176, 192, 0.3);
    /* Make image slightly clearer on hover */
    background-blend-mode: normal; 
}

/* Add a subtle zoom effect to the background on hover if supported, 
   but since we're using background-image on the card itself, we can't transition background-size smoothly in all browsers easily without jitter.
   Instead, let's just brighten the border/shadow which is already there. */

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text);
    position: relative;
    z-index: 1;
}

.card p {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
    position: relative;
    z-index: 1;
    font-weight: 500; /* Increased weight for readability over image */
}

/* How It Works Section with Background */
#comment-ca-marche, #how-it-works {
    background-image: 
        linear-gradient(to bottom, rgba(255,255,255,0.85), rgba(255,255,255,0.85)),
        url('/assets/how-it-works-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Optional: Parallax effect */
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.steps > div {
    position: relative;
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    background: transparent;
    border: 1px solid transparent;
}

.steps > div:hover {
    background: white;
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: var(--stroke);
}

.step-icon-wrapper {
    width: 88px;
    height: 88px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
    border: 1px solid white;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 
        0 10px 20px -5px rgba(64, 176, 192, 0.15),
        0 4px 8px -2px rgba(64, 176, 192, 0.1),
        inset 0 2px 0 rgba(255,255,255,0.8);
    position: relative;
}

.step-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    opacity: 0.9;
    filter: drop-shadow(0 2px 4px rgba(64, 176, 192, 0.2));
}

.step-number-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 32px;
    height: 32px;
    background: var(--accent-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    border: 3px solid var(--bg); /* Matches background to look cut out */
    box-shadow: 0 4px 8px rgba(224, 112, 0, 0.3);
}

.steps h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--text);
}

.steps p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-light);
    margin-bottom: 0;
}

/* Trust Section */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.trust-item {
    text-align: center;
}

.trust-phone-container {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Ensure alignment */
}

.trust-phone-img {
    width: 220px; /* Slightly wider than previous 200px */
    height: auto;
    display: block;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.2));
    transition: transform 0.3s ease;
}

/* Adjust third item (Geoloc) specifically */
.trust-item:nth-child(3) .trust-phone-img {
    transform: scale(1.08); /* Increase size by 8% to match others */
    transform-origin: top center;
}

.trust-phone-img:hover {
    transform: translateY(-5px);
}

.trust-item:nth-child(3) .trust-phone-img:hover {
    transform: scale(1.08) translateY(-5px); /* Preserve scale on hover */
}

/* Legacy trust phone styles */
.trust-phone {
    width: 200px;
    height: 400px;
    border-radius: 36px;
    border-width: 4px;
    box-shadow: var(--shadow-lg);
}

.trust-phone .phone-notch {
    width: 70px;
    height: 18px;
}

/* Trust Section with Background */
#confiance, #trust {
    background-image: 
        linear-gradient(to bottom, rgba(255,255,255,0.7), rgba(255,255,255,0.7)),
        url('/assets/trust-bg.png');
    background-size: cover;
    background-position: center;
    /* Fixed background can be nice if it doesn't clash with others */
    background-attachment: fixed; 
}

/* Chat Section with Background */
.section-chat {
    /* Image en fond plus transparente (85% de blanc par dessus) */
    background-image: 
        linear-gradient(to bottom, rgba(255,255,255,0.85), rgba(255,255,255,0.85)),
        url('/assets/chat-bg-new.png');
    background-size: cover;
    background-position: center;
    /* Ensure text remains legible */
    position: relative;
    /* Optional: text shadow to help legibility against a photo */
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

/* Chat Mockup Styles */
.chat-mockup-container {
    position: relative;
    width: 380px;
    height: 560px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chat-phone-img {
    width: 260px;
    height: auto;
    position: absolute;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.25));
    transition: all 0.5s ease;
}

.chat-back {
    left: 20px;
    top: 20px;
    z-index: 1;
    transform: scale(0.95);
    opacity: 0.9;
}

.chat-front {
    right: 20px;
    bottom: 20px;
    z-index: 2;
}

.chat-mockup-container:hover .chat-back {
    transform: translateX(-15px) scale(0.95) rotate(-3deg);
}

.chat-mockup-container:hover .chat-front {
    transform: translateX(15px) rotate(3deg);
}

/* GDPR Cards */
.gdpr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.gdpr-card {
    background: white;
    padding: 40px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.3s ease;
}

.gdpr-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.gdpr-icon {
    width: 80px;
    margin-bottom: 24px;
    opacity: 0.9;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(64, 176, 192, 0.2);
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.video-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--stroke);
    transition: all 0.3s ease;
}

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

.video-thumb {
    height: 180px;
    position: relative;
    background-size: cover;
    background-position: center;
}

.play-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.video-card:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 20px;
}

.video-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.video-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

/* FAQ */
.faq-item {
    background: white;
    border: 1px solid var(--stroke);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

summary {
    padding: 24px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    position: relative;
    list-style: none;
}

summary::-webkit-details-marker { display: none; }

summary::after {
    content: '+';
    position: absolute;
    right: 24px;
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 300;
}

details[open] summary::after {
    content: '−'; /* proper minus sign */
}

.faq-content {
    padding: 0 24px 24px;
    color: var(--text-light);
    border-top: 1px solid var(--stroke);
    background: var(--bg);
}

/* Schools Section with Background */
#etablissements, #schools {
    background-image: 
        linear-gradient(to bottom, rgba(255,255,255,0.8), rgba(255,255,255,0.8)),
        url('/assets/schools-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Optional: Parallax effect */
    position: relative; /* Essential for absolute positioning inside */
    overflow: hidden; /* Contain the animation */
}

/* Corkboard Scene */
.corkboard-scene {
    position: absolute;
    bottom: -20px; /* Sit at the bottom edge */
    left: 20px;    /* Left aligned */
    width: 300px; 
    height: auto;
    z-index: 5;
    transform: rotate(2deg); /* Casual placement */
}

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

.qr-animated-wrapper {
    position: absolute;
    width: 90px; /* Size on board */
    z-index: 10;
    pointer-events: none;
    opacity: 0; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
}

.qr-animated-wrapper.animate {
    animation: zoom-to-board 4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.qr-animated-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    background: white; 
    padding: 6px;
    border-radius: 2px;
}

@keyframes zoom-to-board {
    0% {
        /* Start: Full Screen Center (Simulated) */
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(5);
        opacity: 0;
    }
    10% {
        position: fixed;
        opacity: 1;
        transform: translate(-50%, -50%) scale(5);
    }
    30% {
        /* Hold Full Screen */
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(5);
    }
    100% {
        /* End: On the corkboard */
        position: absolute; 
        top: 28%; /* Move up higher */
        left: 50%;
        transform: translate(-50%, -50%) scale(0.85) rotate(-3deg); /* Slightly smaller */
        opacity: 1;
    }
}

/* Responsive adjustments for the board */
@media (max-width: 1024px) {
    .corkboard-scene {
        position: relative;
        bottom: auto;
        left: auto;
        margin: 0 auto 30px;
        transform: rotate(0);
    }
}


/* Points Section with Background */
.section-points {
    background-image: 
        linear-gradient(to bottom, rgba(255,255,255,0.8), rgba(255,255,255,0.8)),
        url('/assets/points-bg.png');
    background-size: cover;
}

/* Solution Section with Background */
.section-solution {
    background-image: 
        linear-gradient(to bottom, rgba(255,255,255,0.85), rgba(255,255,255,0.85)),
        url('/assets/solution-bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Footer */
footer {
    background: #0B1220;
    color: white;
    padding: 80px 0 40px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    margin-bottom: 60px;
}

.footer-links h4 {
    color: white;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-top: 8px;
}

.signature {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}

/* Reveal Animation Class */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .phone-frame {
        width: 220px;
        height: 440px;
    }
    .phone-left { margin-left: -180px; }
    .phone-right { margin-left: 180px; }
}

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 40px;
        gap: 40px;
    }
    
    .hero-content {
        text-align: center;
        margin: 0 auto;
    }

    .hero-mockup {
        height: 400px;
        overflow: visible; /* Allow phones to slightly overlap padding if needed */
    }

    .phone-frame {
        width: 120px;
        height: 240px;
        border-width: 3px;
        border-radius: 24px;
    }

    .phone-screen {
        border-radius: 18px;
    }

    .phone-left { 
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 120px !important;
        height: 240px !important;
        pointer-events: auto !important;
        position: absolute !important;
        left: 50% !important;
        
        /* Clear equidistant spacing on mobile */
        margin-left: -100px !important; 
        transform: translateY(15px) scale(0.9) rotate(-8deg) !important;
        z-index: 8;
    }
    
    .phone-center {
        z-index: 9;
        transform: translateY(0) scale(1);
    }

    .phone-right { 
        display: block !important;
        margin-left: 100px !important;
        transform: translateY(15px) scale(0.9) rotate(8deg) !important;
        z-index: 8;
    }
    
    /* Ensure center is on top if needed, or in between */
    .phone-center {
        z-index: 7;
        transform: scale(1);
    }

    .nav-links {
        display: none;
    }

    .burger {
        display: block;
    }

    .steps {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
    }
}

/* Points Section Mockups */
.points-mockup-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin-top: 40px;
    margin-bottom: 20px;
    position: relative;
    padding: 20px 0;
}

.points-img {
    width: 260px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.25));
    transition: all 0.5s ease;
}

.phone-points-left {
    transform: rotate(-8deg) translateY(10px);
    z-index: 1;
}

.phone-points-right {
    transform: rotate(8deg) translateY(10px);
    z-index: 2;
}

/* Hover effects for points phones */
.points-mockup-container:hover .phone-points-left {
    transform: rotate(-12deg) translateX(-20px);
}

.points-mockup-container:hover .phone-points-right {
    transform: rotate(12deg) translateX(20px);
}

@media (max-width: 768px) {
    .points-mockup-container {
        flex-direction: column;
        gap: 40px;
        height: auto;
    }

    .phone-points-left {
        transform: rotate(-3deg);
    }

    .phone-points-right {
        transform: rotate(3deg);
    }
}

/* Responsive Mobile Styles (Moved to end to ensure precedence) */
@media (max-width: 768px) {
    /* Hero */
    .hero {
        padding-top: 20px;
        padding-bottom: 60px;
        min-height: auto;
        display: block; /* Stack content */
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 40px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .btn {
        width: 100%; /* Full width buttons on mobile */
        margin-bottom: 10px;
    }

    .hero-mockup {
        height: 400px; /* Reduce height */
    }

    /* Grids to Single Column */
    .steps, 
    .trust-grid, 
    .video-grid,
    .gdpr-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Trust Section Images */
    .trust-phone-img {
        width: 180px; /* Smaller phones */
    }

    /* Chat Section */
    .chat-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .chat-mockup-container {
        width: 300px;
        height: 450px;
        margin: 0 auto; /* Center it */
    }
    
    .chat-phone-img {
        width: 200px; /* Smaller phones */
    }
    
    .chat-back {
        left: 10px;
    }
    
    .chat-front {
        right: 10px;
    }
    
    /* Points Section */
    .points-mockup-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .points-img {
        width: 220px;
    }
    
    .phone-points-left {
        transform: rotate(-3deg);
    }
    
    .phone-points-right {
        transform: rotate(3deg);
    }
    
    /* Section padding */
    .section {
        padding: 40px 0;
    }
    
    .section-white {
        padding: 24px !important; /* Override inline padding if needed, though class usually wins if specific */
    }
}
