/* ==================================
   FONTS - Local Sniglet Font
   ================================== */
@font-face {
    font-family: 'Sniglet';
    src: url('/assets/fonts/Sniglet-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sniglet';
    src: url('/assets/fonts/Sniglet-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* ==================================
   VARIABLES
   ================================== */
:root {
    --bleu-encre: #2563eb;
    --bleu-clair: #93c5fd;
    --bleu-fonce: #1e40af;
    --rouge-marge: #dc2626;
    --rouge-fonce: #991b1b;
    --gris-crayon: #4b5563;
    --gris-clair: #9ca3af;

    --font-manuscrit: 'Sniglet', sans-serif;
    --font-crayon: 'Sniglet', sans-serif;
    --font-poppins: 'Sniglet', sans-serif;
    --font-cta: 'Sniglet', sans-serif;
    --font-pj: 'Sniglet', sans-serif;
    --font-dancing: 'Sniglet', sans-serif;

    --marge-laterale: 96px;
    /* 3 carreaux de 32px */
    --navbar-height: 120px;
    /* Augmenté pour plus d'espace blanc */
}

/* ==================================
   RESET
   ================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Sniglet', sans-serif !important;
    font-weight: 400 !important;
}

html,
body {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    font-family: 'Sniglet', sans-serif;
    background: #f5f5f5;
}

/* ==================================
   NAVIGATION / BANDEAU
   ================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--navbar-height);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    display: flex;
    align-items: center;
}

.nav-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Liens navigation - CTA à droite */
.nav-links {
    order: 3;
    display: flex;
    align-items: center;
}

.nav-link {
    font-family: 'Sniglet', sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--rouge-marge);
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

/* Effet de soulignage manuscrit BLEU */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -5%;
    width: 110%;
    height: 3px;
    background: var(--bleu-encre);
    border-radius: 2px;
    transform: rotate(-1deg);
}

.nav-link:hover {
    color: var(--rouge-fonce);
    transform: scale(1.05);
}

.nav-link:hover::after {
    background: var(--bleu-fonce);
    transform: rotate(0.5deg);
}

/* ==================================
   ÉTIQUETTE COLLÉE AVEC SCOTCH
   ================================== */
.etiquette-scotch {
    position: relative;
    background: #fffef5;
    padding: 12px 28px;
    border-radius: 4px;
    box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.15);
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
    margin-top: 5px;
    /* Ajustement pour centrage vertical dans navbar */
}

.etiquette-scotch.left-pos {
    position: relative;
    order: 2;
    margin-left: 38px;
}

.etiquette-scotch:hover {
    transform: rotate(0deg) scale(1.02);
}

/* Morceau de scotch en haut */
.scotch-top {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 16px;
    background: rgba(255, 230, 150, 0.7);
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.etiquette-text {
    font-family: 'Sniglet', sans-serif;
    font-size: 1.8rem;
    font-weight: normal;
    color: var(--bleu-encre);
    white-space: nowrap;
}

/* CTA Button - Essayer gratuitement */
.nav-cta {
    font-family: 'Sniglet', sans-serif;
    font-size: 1.1rem;
    font-weight: normal;
    color: white;
    background: var(--bleu-encre);
    padding: 14px 28px;
    border-radius: 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 0 var(--bleu-fonce);
    transition: all 0.2s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    margin-right: -20px;
    margin-left: 2px;
}

.nav-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 0 var(--bleu-fonce);
}

.nav-cta:active {
    transform: translateY(2px);
    box-shadow: 0 4px 0 var(--bleu-fonce);
}

.cta-arrow {
    font-size: 1.5rem;
    transition: transform 0.2s ease;
}

.nav-cta:hover .cta-arrow {
    transform: translateX(4px);
}

/* ==================================
   LOGO STICKER (collé en haut à gauche)
   ================================== */
/* Logo centré dans la navigation */
.logo-sticker-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 150;
    transition: transform 0.3s ease;
    margin-top: 0;
    margin-left: 57px;
    order: 1;
}

.logo-sticker-nav:hover {
    transform: scale(1.05);
}

.logo-sticker-img-large {
    width: 120px;
    height: auto;
    filter: drop-shadow(4px 6px 8px rgba(0, 0, 0, 0.1));
}

.logo-sticker-img-small {
    width: 120px;
    height: auto;
    filter: drop-shadow(2px 3px 4px rgba(0, 0, 0, 0.1));
}

/* ==================================
   BORD CRANTÉ DU BANDEAU (ciseaux crantés)
   ================================== */
.navbar-torn-edge {
    display: none;
    /* Supprimé car remplacé par le dégradé */
}

/* ==================================
   BANDEAU BLEU DE TRANSITION
   ================================== */
.blue-band {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    height: 16px;
    /* Taille réduite de moitié */
    background: linear-gradient(to right, #3b82f6, #ef4444);
    /* Dégradé Bleu vers Rouge */
    z-index: 99;
}

/* ==================================
   PAGE DE CAHIER
   ================================== */
.cahier-page {
    position: relative;
    margin-top: calc(var(--navbar-height) + 20px);
    min-height: calc(100vh - var(--navbar-height) - 20px);
    overflow: visible;
    background-color: rgba(254, 254, 254, 0.9);
    /* Effet papier */

    /* Let's make .cahier-page transparent background, but keep seyes grid. */
    padding-bottom: 60px;
    z-index: 5;
    /* Above blobs (z-index 0) */
}

/* ==================================
   FOND CARREAU SEYÈS EN CSS PUR
   ================================== */
.seyes-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* Carreaux de 32px */
    background-image:
        /* Lignes horizontales principales (tous les 32px) */
        repeating-linear-gradient(to bottom,
            transparent,
            transparent 31px,
            #b8d4e8 31px,
            #b8d4e8 32px),
        /* Lignes horizontales secondaires fines (tous les 8px) */
        repeating-linear-gradient(to bottom,
            transparent,
            transparent 7px,
            #d8e8f4 7px,
            #d8e8f4 8px),
        /* Lignes verticales (tous les 32px) */
        repeating-linear-gradient(to right,
            transparent,
            transparent 31px,
            #c8dce8 31px,
            #c8dce8 32px);

    background-size: 100% 100%;

    /* ADDED to match onboarding style */
    pointer-events: none;
    mix-blend-mode: multiply;
    /* Allows blobs behind to tint the paper if they were behind. */
    /* Wait, the blobs are fixed behind. .cahier-page is above. If .cahier-page bg is transparent, we see blobs. */
    /* But .seyes-background covers it. It has gradients with transparency? Yes. */
    /* The main white paper color is missing if we removed bg-color #fefefe from cahier-page. */
    /* We need a white base layer SOMEWHERE or the blobs will be too strong on default grey body bg? Body is #f5f5f5. */
}

/* ==================================
   MARGE ROUGE (décalée d'un carreau)
   ================================== */
.marge-rouge {
    position: absolute;
    top: 0;
    left: var(--marge-laterale);
    /* 96px = 3 carreaux */
    width: 2px;
    height: 100%;
    background: var(--rouge-marge);
    opacity: 0.8;
}

/* ==================================
   ÉLÉMENTS "COLLÉS" (STICKERS)
   ================================== */
.sticker {
    position: absolute;
    transition: transform 0.3s ease;
}

.sticker:hover {
    /* Effet tournant désactivé pour le header via .catchphrase-sticker plus bas */
    transform: scale(1.02);
}

/* ==================================
   TACHE D'ENCRE
   ================================== */
.tache-encre {
    top: 5%;
    /* Baissé de 0.5cm */
    left: 85%;
    /* Décalé de 2cm vers la droite */
    transform: translate(-50%, -50%) rotate(15deg);
    width: 400px;
    height: 400px;
    background-image: url('/landing/assets/tache-encre.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.5;
    mix-blend-mode: multiply;
    /* Derrière l'étiquette et le dessin, devant le papier */
    z-index: 9;
}

.tache-encre:hover {
    transform: translate(-50%, -50%) scale(1.02) rotate(1deg);
}

/* ==================================
   ZONE DE CONTENU
   ================================== */
.content-area {
    position: relative;
    z-index: 10;
    min-height: 100%;
    padding: 20px;
    padding-left: calc(var(--marge-laterale) + 40px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

/* ==================================
   HERO CONTAINER (mascotte + sticker)
   ================================== */
.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

/* ==================================
   MASCOTTE (effet papier déchiré)
   ================================== */
.mascotte-container {
    flex-shrink: 0;
    position: relative;
    background: #fff;
    padding: 20px 25px;
    /* Forme rectangulaire avec bords déchirés */
    border-radius: 3px;
    box-shadow:
        6px 8px 25px rgba(0, 0, 0, 0.25),
        12px 15px 40px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(0, 0, 0, 0.05);
    /* Effet de déchirure plus prononcé avec clip-path */
    clip-path: polygon(0% 4%, 3% 0%, 7% 5%, 10% 0%, 15% 6%, 20% 0%, 25% 4%, 30% 0%, 35% 5%, 40% 0%, 45% 3%, 50% 0%, 55% 5%, 60% 0%, 65% 4%, 70% 0%, 75% 6%, 80% 0%, 85% 5%, 90% 0%, 95% 4%, 100% 0%,
            100% 96%, 95% 100%, 90% 95%, 85% 100%, 80% 94%, 75% 100%, 70% 96%, 65% 100%, 60% 95%, 55% 100%, 50% 97%, 45% 100%, 40% 95%, 35% 100%, 30% 96%, 25% 100%, 20% 94%, 15% 100%, 10% 95%, 7% 100%, 3% 96%, 0% 100%);
    z-index: 10;
    margin-left: 75px;
    margin-top: -2px;
}


/* Note avec flèche pour identifier Curio */
.curio-label {
    position: absolute;
    top: -50px;
    left: -120px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fffef8 0%, #faf8f0 100%);
    padding: 8px 16px;
    border-radius: 8px;
    box-shadow:
        4px 6px 15px rgba(0, 0, 0, 0.25),
        8px 10px 25px rgba(0, 0, 0, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.8);
    border: 2px solid var(--bleu-clair);
    z-index: 15;
    transform: rotate(-8deg);
}

.curio-arrow {
    font-size: 1.8rem;
    color: var(--bleu-encre);
    transform: rotate(-35deg);
}

.curio-name {
    font-family: 'Sniglet', sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--bleu-encre);
    white-space: nowrap;
}


.mascotte-img {
    width: 320px;
    height: auto;
    display: block;
}

/* ==================================
   STICKER CATCHPHRASE (Style Mockup Image)
   ================================== */
.catchphrase-sticker {
    position: relative;
    background: transparent;
    padding: 20px 0;
    margin-top: -49px;
    /* Remonté de 1.3cm au total */
    text-align: center;
    max-width: 950px;
    margin-left: 0;
    /* Décalé de 1cm vers la droite (parfaitement centré maintenant) */
    box-shadow: none;
    border: none;
    transform: none !important;
    transition: none !important;
}

.catchphrase-sticker:hover {
    transform: none !important;
    box-shadow: none !important;
}

.hero-cta {
    font-family: 'Sniglet', sans-serif;
    font-size: 1.4rem;
    font-weight: normal;
    color: white;
    background: var(--bleu-encre);
    padding: 16px 40px;
    border-radius: 16px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 8px 0 var(--bleu-fonce);
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    margin-top: 30px;
    text-align: center;
}

.hero-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 0 var(--bleu-fonce);
}

.hero-cta:active {
    transform: translateY(2px);
    box-shadow: 0 4px 0 var(--bleu-fonce);
}

.catchphrase-text {
    font-family: 'Sniglet', sans-serif;
    font-size: 3.84rem;
    font-weight: 400;
    color: #4b5563;
    line-height: 1.3;
    margin: 0;
}

/* Le mot "unique" en bleu */
.unique-blue {
    color: #3b82f6;
    position: relative;
    display: inline-block;
    font-size: 5.04rem;
    font-family: 'Sniglet', sans-serif;
}

/* Surlignage rose sous "unique" */
.unique-blue::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background: rgba(37, 99, 235, 0.3);
    /* Bleu transparent */
    z-index: -1;
    border-radius: 4px;
    transform: rotate(-1deg);
}

.catchphrase-text .highlight {
    color: var(--bleu-encre);
    position: relative;
    display: inline-block;
    font-family: 'Sniglet', sans-serif;
}

.catchphrase-text .highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: -5px;
    right: -5px;
    height: 14px;
    background: rgba(255, 50, 50, 0.5);
    z-index: -1;
    transform: rotate(-1deg);
    border-radius: 3px;
}

.catchphrase-cta {
    font-family: 'Sniglet', sans-serif;
    font-size: 2rem;
    font-weight: normal;
    color: white;
    background: var(--bleu-encre);
    padding: 18px 45px;
    border-radius: 18px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 10px 0 var(--bleu-fonce);
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    outline: none;
}

.catchphrase-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 0 var(--bleu-fonce);
}

.catchphrase-cta:active {
    transform: translateY(2px);
    box-shadow: 0 5px 0 var(--bleu-fonce);
}

/* ==================================
   SECTION PARCOURS (fil conducteur)
   ================================== */
.parcours-section {
    margin-top: 80px;
    padding: 30px 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.parcours-title {
    font-family: 'Sniglet', sans-serif;
    font-size: 3.5rem;
    font-weight: 400;
    color: var(--bleu-encre);
    text-align: center;
    margin-top: 38px;
    margin-bottom: 40px;
    position: relative;
}

/* Soulignage manuscrit sous le titre */
.parcours-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(-1deg);
    width: 60%;
    height: 4px;
    background: #2563EB;
    border-radius: 2px;
}

.parcours-timeline {
    position: relative;
    display: flex;
    flex-direction: row;
    /* Retour à l'horizontale */
    justify-content: space-between;
    align-items: stretch;
    gap: 30px;
    padding: 80px 0;
    max-width: 1200px;
    margin: 0 auto;
}



/* Étape du parcours */
/* Étape du parcours - Design Style Onboarding */
.parcours-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 35px 40px;
    background: white;
    border-radius: 12px;
    /* Coins moins arrondis comme onboarding */
    box-shadow: 10px 10px 0 rgba(30, 58, 138, 0.2);
    /* Ombre solide */
    border: 3px solid #1e3a8a;
    /* Bleu foncé */
    flex: 1 1 0;
    min-width: 280px;
    max-width: 520px;
    min-height: 740px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* Alignement horizontal standard */
.parcours-step:nth-child(1),
.parcours-step:nth-child(2),
.parcours-step:nth-child(3) {
    align-self: auto;
    margin: 0;
    transform: none;
}

.parcours-step:hover {
    border-color: #2563EB;
    /* Bleu plus vif */
    transform: translate(-2px, -2px);
    box-shadow: 12px 12px 0 rgba(37, 99, 235, 0.2);
    z-index: 10;
}

/* Effet désactivé */

/* Emoji de l'étape */
.step-emoji {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f7ff;
    border-radius: 50%;
    border: 3px solid var(--bleu-clair);
}

/* Contenu de l'étape */
.step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.step-title {
    font-family: 'Sniglet', sans-serif;
    /* Dancing Script */
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--bleu-encre);
    margin-bottom: 25px;
    min-height: 2.2rem;
    /* Aligne les titres même si le texte varie */
}

/* Style pour le soulignage spécifique des mots clés en rouge */
.red-underline {
    position: relative;
    display: inline-block;
}

.blue-underline {
    position: relative;
    display: inline-block;
}

.blue-underline::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--bleu-encre);
    border-radius: 2px;
    transform: rotate(-1deg);
}

.red-underline::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--rouge-marge);
    border-radius: 2px;
    transform: rotate(-1deg);
}

/* Style pour le soulignage en bleu */
.blue-underline {
    position: relative;
    display: inline-block;
}

/* Badges des étapes */
.step-badge {
    display: inline-block;
    margin-top: auto;
    padding: 8px 18px;
    border-radius: 20px;
    font-family: 'Sniglet', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    cursor: default;
    background: rgba(34, 197, 94, 0.15);
    color: #166534;
    border: 2px solid #22c55e;
}

.blue-underline::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #2563EB;
    border-radius: 2px;
    transform: rotate(-1deg);
}

/* Ancien soulignage sous le titre complet supprimé */
.step-title::after {
    display: none;
}

.step-description {
    font-family: 'Sniglet', sans-serif;
    font-size: 1.55rem;
    /* Augmenté pour mieux remplir l'espace */
    color: var(--bleu-encre);
    line-height: 1.5;
    /* Plus d'espace entre les lignes */
    margin: 0;
}

.step-description strong {
    font-weight: 400;
    color: #1e3a8a;
    font-size: 1.55rem;
}

/* Connecteur entre les étapes */
.step-connector {
    height: 60px;
    width: 4px;
    background: transparent;
    margin: 0 auto;
    border-radius: 2px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Flèche stylisée au milieu du connecteur */
.step-connector::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--bleu-encre) 0%, var(--bleu-clair) 100%);
    border-radius: 50%;
    box-shadow:
        0 4px 12px rgba(37, 99, 235, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.5);
    z-index: 1;
}

.step-connector::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 14px solid white;
    z-index: 2;
}

/* ==================================
   CONNECTEUR AVEC IMAGE
   ================================== */
.step-connector-with-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 0;
    gap: 0;
}

.connector-line {
    width: 4px;
    height: 25px;
    background: linear-gradient(180deg, var(--bleu-clair) 0%, var(--bleu-encre) 50%, var(--bleu-clair) 100%);
    border-radius: 2px;
}

.connector-image {
    width: 100%;
    height: 280px;
    /* Taille de boîte identique pour l'alignement */
    object-fit: contain;
    /* Affiche l'image ENTIÈRE sans la couper */
    /* Fond blanc pour se fondre avec l'image */
    padding: 10px;
    /* Espace interne pour respirer */
    border-radius: 8px;
    border: none;
    /* Plus de bordure ici, géré par la carte */
    box-shadow: none;

    margin-bottom: 25px;
    /* transition removed to keep image static */
}

/* Style spécifique pour la note excellent - plus grande */
.connector-image.note-image {
    width: 350px;
    height: auto;
    border-radius: 18px;
    object-fit: contain;
    background: white;
    padding: 18px;
    border: 6px solid var(--rouge-marge);
}

/* Style pour les screenshots (images rectangulaires) */
.connector-image.screenshot-image {
    width: 450px;
    height: auto;
    border-radius: 20px;
    object-fit: contain;
    background: white;
    padding: 12px;
    border: 5px solid var(--bleu-clair);
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.25),
        0 8px 20px rgba(0, 0, 0, 0.18);
}

/* Image finale après la dernière étape */
.step-connector-with-image.final-image {
    padding-top: 20px;
    padding-bottom: 40px;
}

/* ==================================
   RESPONSIVE
   ================================== */
@media (max-width: 768px) {
    :root {
        --marge-laterale: 64px;
        --navbar-height: 80px;
    }

    .logo-img {
        height: 50px;
    }

    .tache-encre {
        width: 200px;
        height: 200px;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-link:not(.nav-link-cta) {
        display: none;
    }

    .navbar-torn-edge {
        height: 10px;
        bottom: -10px;
    }
}

/* ==================================
   FOOTER
   ================================== */
/* ==================================
   FOOTER
   ================================== */
.landing-footer {
    width: 100%;
    margin-top: -60px;
    padding: 30px 20px 50px 20px;
    border-top: none;
    position: relative;
    z-index: 20;
    overflow: hidden;
}

/* Ink splat elements */
.ink-splat {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(1px);
}

.ink-splat-1 {
    width: 90px;
    height: 80px;
    top: -15px;
    left: 8%;
    background: radial-gradient(ellipse at 40% 50%, rgba(37, 99, 235, 0.18), rgba(147, 197, 253, 0.08) 60%, transparent 80%);
    border-radius: 45% 55% 50% 50% / 55% 45% 55% 45%;
    animation: inkFloat1 6s ease-in-out infinite;
}

.ink-splat-2 {
    width: 120px;
    height: 100px;
    top: 5px;
    right: 12%;
    background: radial-gradient(ellipse at 60% 40%, rgba(147, 197, 253, 0.22), rgba(37, 99, 235, 0.06) 65%, transparent 85%);
    border-radius: 55% 45% 40% 60% / 45% 55% 50% 50%;
    animation: inkFloat2 8s ease-in-out infinite;
}

.ink-splat-3 {
    width: 70px;
    height: 65px;
    bottom: 10px;
    left: 25%;
    background: radial-gradient(ellipse at 50% 50%, rgba(30, 64, 175, 0.15), rgba(147, 197, 253, 0.1) 50%, transparent 75%);
    border-radius: 50% 50% 45% 55% / 60% 40% 60% 40%;
    animation: inkFloat3 7s ease-in-out infinite;
}

.ink-splat-4 {
    width: 55px;
    height: 50px;
    top: 10px;
    left: 50%;
    background: radial-gradient(ellipse at 45% 55%, rgba(37, 99, 235, 0.12), rgba(147, 197, 253, 0.15) 55%, transparent 80%);
    border-radius: 40% 60% 55% 45% / 50% 50% 45% 55%;
    animation: inkFloat4 9s ease-in-out infinite;
}

.ink-splat-5 {
    width: 100px;
    height: 85px;
    bottom: 5px;
    right: 30%;
    background: radial-gradient(ellipse at 55% 45%, rgba(147, 197, 253, 0.2), rgba(30, 64, 175, 0.08) 60%, transparent 80%);
    border-radius: 48% 52% 55% 45% / 52% 48% 45% 55%;
    animation: inkFloat5 7.5s ease-in-out infinite;
}

.ink-splat-6 {
    width: 45px;
    height: 40px;
    top: -5px;
    right: 45%;
    background: radial-gradient(ellipse at 50% 50%, rgba(37, 99, 235, 0.2), rgba(147, 197, 253, 0.05) 70%, transparent 90%);
    border-radius: 52% 48% 45% 55% / 48% 52% 55% 45%;
    animation: inkFloat6 5.5s ease-in-out infinite;
}

@keyframes inkFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.7; }
    33% { transform: translate(5px, 3px) scale(1.08) rotate(2deg); opacity: 0.9; }
    66% { transform: translate(-3px, -2px) scale(0.95) rotate(-1deg); opacity: 0.75; }
}

@keyframes inkFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.65; }
    40% { transform: translate(-6px, 4px) scale(1.1) rotate(-3deg); opacity: 0.85; }
    70% { transform: translate(4px, -3px) scale(0.93) rotate(2deg); opacity: 0.7; }
}

@keyframes inkFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    50% { transform: translate(4px, -5px) scale(1.12); opacity: 0.85; }
}

@keyframes inkFloat4 {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.55; }
    35% { transform: translate(-3px, 2px) scale(1.06) rotate(3deg); opacity: 0.8; }
    65% { transform: translate(5px, -4px) scale(0.97) rotate(-2deg); opacity: 0.65; }
}

@keyframes inkFloat5 {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.6; }
    45% { transform: translate(6px, 3px) scale(1.09) rotate(-2deg); opacity: 0.9; }
    80% { transform: translate(-4px, -2px) scale(0.96) rotate(1deg); opacity: 0.7; }
}

@keyframes inkFloat6 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
    50% { transform: translate(-3px, 4px) scale(1.15); opacity: 0.95; }
}

/* ... content/links ... */

.footer-links {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

/* ... */

/* Footer Link Enhancements */
/* Removed duplicate .legal-link */

.legal-link:hover {
    color: var(--bleu-encre);
    transform: scale(1.05);
    /* Petit zoom au survol */
}

/* Footer refondus - Proportions harmonieuses */
.footer-copyright p {
    color: var(--gris-clair);
    font-size: 1.4rem;
    margin: 0;
    margin-top: 8px;
    font-family: 'Sniglet', sans-serif;
    letter-spacing: 0.5px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    font-family: 'Sniglet', sans-serif;
    padding-left: 2cm;
}

.footer-links {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links a {
    color: var(--bleu-encre);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 400;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--bleu-encre);
    text-decoration: underline;
}

.separator {
    color: var(--gris-clair);
    font-size: 1rem;
    opacity: 0.6;
}


.input-hidden {
    display: none !important;
}

/* Modal Wrapper */
.legal-modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Overlay */
.legal-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 138, 0.4);
    /* Blue tint overlay */
    backdrop-filter: blur(5px);
    z-index: 1;
}

/* Modal Card - Matching Auth/Onboarding style */
.legal-modal-card {
    position: relative;
    z-index: 10;
    background: white;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    border: 3px solid #1e3a8a;
    /* Bleu foncé */
    border-radius: 12px;
    box-shadow: 10px 10px 0 rgba(30, 58, 138, 0.2);
    padding: 30px;
    display: flex;
    flex-direction: column;
    animation: modalSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Close Button */
.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #9CA3AF;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: #1e3a8a;
}

/* Content */
.modal-content-scroll {
    overflow-y: auto;
    padding-right: 10px;
}

/* Scrollbar Styling */
.modal-content-scroll::-webkit-scrollbar {
    width: 8px;
}

.modal-content-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-content-scroll::-webkit-scrollbar-thumb {
    background: #c7d2fe;
    border-radius: 4px;
}

.modal-content-scroll::-webkit-scrollbar-thumb:hover {
    background: #818cf8;
}

.modal-title {
    font-family: 'Sniglet', sans-serif;
    font-size: 2.5rem;
    color: #2563EB;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px dashed #e5e7eb;
    padding-bottom: 15px;
}

.modal-body {
    font-family: 'Sniglet', sans-serif;
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.6;
}

.modal-body h3 {
    font-size: 1.2rem;
    color: #1e40af;
    margin-top: 15px;
    margin-bottom: 8px;
}

.modal-body p {
    margin-bottom: 10px;
}

.modal-body a {
    color: #2563EB;
    text-decoration: underline;
}

/* Footer Link - Taille proportionnée */
.legal-link {
    font-family: 'Sniglet', sans-serif;
    font-size: 1.3rem;
    color: var(--gris-crayon);
    text-decoration: none;
    position: relative;
    padding: 0 12px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.legal-link:hover {
    color: #2563EB;
    text-decoration: none;
}

/* Petites "taches" ou soulignement manuscrit au survol */
.legal-link:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #2563EB;
    transform: rotate(-1deg);
    border-radius: 2px;
}

/* ==================================
   PAGE TRANSITION ANIMATIONS
   ================================== */

/* Wrapper for animation on Landing Page */
.page-slide-exit {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-100vw);
    opacity: 0.8;
}

/* Onboarding Entry Animation */
/* Note: Onboarding uses slideIn in CSS already, we will override or use JS class */
/* Onboarding Entry Animation - Handled by JS classes now, generic fallback */
.page-slide-enter {
    animation: slideEnterFromRight 1.0s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* using slideEnterFromRight keyframes defined below */

/* ==================================
   SMOOTH PAGE TRANSITIONS (BOTH WAYS)
   ================================== */

/* --- 1. Exits (Partir de la page) --- */

/* Vers la gauche (Aller à l'onboarding) */
.slide-exit-to-left {
    animation: slideExitToLeft 1.0s cubic-bezier(0.2, 0.8, 0.2, 1) forwards !important;
}

/* Vers la droite (Retour de l'onboarding - théoriquement pas sur landing sauf si multi-pages futurs) */
.slide-exit-to-right {
    animation: slideExitToRight 1.0s cubic-bezier(0.2, 0.8, 0.2, 1) forwards !important;
}

/* --- 2. Entries (Arriver sur la page) --- */

/* Depuis la gauche (Retour de l'onboarding) */
.slide-enter-from-left {
    animation: slideEnterFromLeft 1.0s cubic-bezier(0.2, 0.8, 0.2, 1) forwards !important;
}

/* Depuis la droite (Normal start ou retour arrière) */
.slide-enter-from-right {
    animation: slideEnterFromRight 1.0s cubic-bezier(0.2, 0.8, 0.2, 1) forwards !important;
}


/* --- Keyframes --- */

/* Keyframes merged below */

/* ==================================
   ULTRA SMOOTH TRANSITIONS - Premium Effect
   ================================== */
/* Duration: 1.2s for maximum fluidity */
/* Effects: Slide + Fade + Subtle Scale + Blur During Motion */

@keyframes slideExitToLeft {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 1;
        filter: blur(0px);
    }

    50% {
        filter: blur(3px);
    }

    100% {
        transform: translate3d(-100%, 0, 0) scale(0.95);
        opacity: 0;
        filter: blur(8px);
    }
}

/* Keyframes removed */

/* Page transitions removed per user request */

/* ==================================
   BACKGROUND BLOBS ANIMATION
   ================================== */
:root {
    --color-bg1: 37, 99, 235;
    /* Royal Blue */
    --color-bg2: 220, 38, 38;
    /* Red */
    --color-bg3: 147, 197, 253;
    /* Light Blue */
    --color-bg4: 252, 165, 165;
    /* Light Red */
    --color-bg5: 255, 255, 255;
    /* White */
    --circle-size: 80%;
    --blending: multiply;
}

.landing-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    /* Behind everything */
    background: #ffffff;
    /* Base white */
    overflow: hidden;
    pointer-events: none;
    /* Let clicks pass through */
}

/* We need to ensure the existing .cahier-page and navbar sit ON TOP */
/* .navbar is z-index: 100 (OK) */
/* .cahier-page is currently static/relative. Needs explicit z-index if background is there? */

/* The blobs container */
.gradients-container {
    filter: url(#blurMe) blur(40px);
    width: 100%;
    height: 100%;
    opacity: 0.5;
    /* Subtle */
}

.gradient-blob {
    position: absolute;
    width: var(--circle-size);
    height: var(--circle-size);
    mix-blend-mode: var(--blending);
    top: calc(50% - var(--circle-size) / 2);
    left: calc(50% - var(--circle-size) / 2);
}

.animate-first {
    background: radial-gradient(circle at center, rgba(var(--color-bg1), 0.8) 0, rgba(var(--color-bg1), 0) 50%) no-repeat;
    transform-origin: center center;
    animation: moveVertical 60s ease infinite;
}

.animate-second {
    background: radial-gradient(circle at center, rgba(var(--color-bg2), 0.6) 0, rgba(var(--color-bg2), 0) 50%) no-repeat;
    transform-origin: calc(50% - 400px);
    animation: moveInCircle 50s reverse infinite;
}

.animate-third {
    background: radial-gradient(circle at center, rgba(var(--color-bg3), 0.8) 0, rgba(var(--color-bg3), 0) 50%) no-repeat;
    transform-origin: calc(50% + 400px);
    animation: moveInCircle 80s linear infinite;
}

.animate-fourth {
    background: radial-gradient(circle at center, rgba(var(--color-bg4), 0.7) 0, rgba(var(--color-bg4), 0) 50%) no-repeat;
    transform-origin: calc(50% - 200px);
    animation: moveHorizontal 70s ease infinite;
}

.animate-fifth {
    background: radial-gradient(circle at center, rgba(var(--color-bg5), 1) 0, rgba(var(--color-bg5), 0) 50%) no-repeat;
    transform-origin: calc(50% - 800px) calc(50% + 200px);
    animation: moveInCircle 40s ease infinite;
}

.interactive {
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.8) 0, rgba(59, 130, 246, 0) 50%) no-repeat;
    width: 100%;
    height: 100%;
    top: -50%;
    left: -50%;
    opacity: 0.7;
}

@keyframes moveVertical {
    0% {
        transform: translateY(-50%);
    }

    50% {
        transform: translateY(50%);
    }

    100% {
        transform: translateY(-50%);
    }
}

@keyframes moveInCircle {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(180deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes moveHorizontal {
    0% {
        transform: translateX(-50%) translateY(-10%);
    }

    50% {
        transform: translateX(50%) translateY(10%);
    }

    100% {
        transform: translateX(-50%) translateY(-10%);
    }
}

/* ==================================
   SECTION AVIS PARENTS (Testimonials)
   ================================== */
.testimonials-section {
    margin-top: 2px;
    margin-bottom: 40px;
    padding: 20px 0 40px 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    position: relative;
}

.testimonials-title {
    font-family: 'Sniglet', sans-serif;
    font-size: 2.8rem;
    font-weight: 400;
    color: var(--bleu-encre);
    text-align: center;
    margin-bottom: 35px;
    position: relative;
}

.testimonials-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(-1deg);
    width: 420px;
    height: 4px;
    background: var(--bleu-encre);
    border-radius: 2px;
}

.testimonials-track-wrapper {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.testimonials-track {
    display: flex;
    gap: 30px;
    animation: scrollTestimonials 40s linear infinite;
    width: max-content;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

@keyframes scrollTestimonials {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.testimonial-card {
    flex-shrink: 0;
    width: 350px;
    background: white;
    border-radius: 16px;
    padding: 25px 25px 22px 25px;
    box-shadow: 8px 8px 0 rgba(30, 58, 138, 0.15);
    border: 3px solid var(--bleu-clair);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 240px;
}

.testimonial-card:hover {
    border-color: var(--bleu-encre);
    box-shadow: 10px 10px 0 rgba(30, 58, 138, 0.2);
}

.testimonial-text {
    font-family: 'Sniglet', sans-serif;
    font-size: 1.15rem;
    color: var(--gris-crayon);
    line-height: 1.5;
    margin-bottom: 0;
    padding-bottom: 20px;
    flex-grow: 1;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-start;
    margin-top: auto;
    padding-top: 15px;
    border-top: 2px dashed var(--bleu-clair);
}

.testimonial-mascot {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bleu-clair);
    box-shadow: 3px 3px 0 rgba(30, 58, 138, 0.2);
    flex-shrink: 0;
}

.testimonial-author {
    font-family: 'Sniglet', sans-serif;
    font-size: 1.05rem;
    color: var(--gris-crayon);
    text-align: left;
    position: relative;
    margin: 0;
    line-height: 1.6;
}

.testimonial-author .author-name {
    font-family: 'Sniglet', sans-serif;
    font-size: 1.5rem;
    color: var(--bleu-encre);
    font-weight: 400;
    text-decoration: underline;
    text-decoration-color: var(--bleu-clair);
    text-underline-offset: 5px;
    text-decoration-thickness: 2px;
}