/* ============================================
   LEXIQUE ANTI-JARGON - CSS
   ============================================ */

/* ============================================
   HERO SECTION
   ============================================ */
.lexique-hero {
    background: linear-gradient(135deg, var(--vert-persil) 0%, #1a4a24 100%);
    min-height: 50vh;
    padding: 8rem 5% 5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lexique-hero .hero-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.lexique-hero .floating-sticker {
    position: absolute;
    opacity: 0.15;
}

.lexique-hero .sticker-1 {
    width: 120px;
    top: 15%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

.lexique-hero .sticker-2 {
    width: 150px;
    bottom: 20%;
    left: 5%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-content-lexique {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-content-lexique h1 {
    font-size: 2.8rem;
    color: var(--creme-fouettee);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-intro {
    font-size: 1.15rem;
    color: rgba(255, 241, 220, 0.95);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.hero-intro strong {
    color: var(--jaune-oeuf);
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 241, 220, 0.85);
    line-height: 1.7;
    font-style: italic;
}

/* ============================================
   NAVIGATION ALPHABÉTIQUE
   ============================================ */
.lexique-nav {
    background: white;
    padding: 1.5rem 5%;
    position: sticky;
    top: 80px;
    z-index: 50;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.lexique-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.letter-pill {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--creme-fouettee);
    border: 2px solid transparent;
    border-radius: 50%;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--noir-olive);
    text-decoration: none;
    transition: all 0.3s ease;
}

.letter-pill:hover {
    background: var(--vert-persil);
    color: white;
    transform: translateY(-3px);
}

.letter-pill.active {
    background: var(--rouge-tomate);
    color: white;
    border-color: var(--rouge-tomate);
}

/* ============================================
   PATTERN DIVIDERS
   ============================================ */
.pattern-divider-lexique {
    height: 80px;
    background-image: url('/assets/motifs/carreauxverts.png');
    background-size: 300px;
    background-repeat: repeat;
}

.pattern-divider-lexique.pattern-red {
    background-image: url('/assets/motifs/carreauxrouges.png');
}

/* ============================================
   CONTENU DU LEXIQUE
   ============================================ */
.lexique-content {
    padding: 4rem 5%;
    background: var(--creme-fouettee);
}

.lexique-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Section par lettre */
.letter-section {
    margin-bottom: 4rem;
}

.letter-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--jaune-oeuf);
}

.letter-big {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    color: var(--rouge-tomate);
    line-height: 1;
}

/* Cartes de termes */
.term-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.term-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--vert-persil);
}

.term-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.term-card h2 {
    font-size: 1.5rem;
    color: var(--vert-persil);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.term-section {
    margin-bottom: 1.5rem;
}

.term-section:last-child {
    margin-bottom: 0;
}

.term-section h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--rouge-tomate);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.term-section p {
    font-size: 1rem;
    color: var(--noir-olive);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.term-section p:last-child {
    margin-bottom: 0;
}

/* Métaphore culinaire */
.metaphore {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    color: var(--vert-persil) !important;
    padding: 1rem;
    background: rgba(45, 106, 79, 0.08);
    border-radius: 10px;
    margin-top: 0.8rem !important;
}

/* Exemple concret */
.exemple {
    padding: 1rem 1.5rem;
    background: var(--jaune-oeuf);
    color: var(--noir-olive) !important;
    border-radius: 10px;
    font-weight: 500;
}

/* Animation des cartes */
.term-card.animate-card {
    opacity: 0;
    transform: translateY(30px);
}

.term-card.animate-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* ============================================
   CTA SECTION
   ============================================ */
.lexique-cta-section {
    padding: 5rem 5%;
    background: var(--vert-persil);
}

.lexique-cta-container {
    max-width: 700px;
    margin: 0 auto;
}

.lexique-cta-card {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.cta-sticker {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.lexique-cta-card h2 {
    font-size: 1.8rem;
    color: var(--vert-persil);
    margin-bottom: 0.5rem;
}

.lexique-cta-card p {
    font-size: 1.1rem;
    color: var(--noir-olive);
    font-style: italic;
    margin-bottom: 2rem;
}

/* ============================================
   RETOUR
   ============================================ */
.lexique-back {
    padding: 2rem 5%;
    background: var(--creme-fouettee);
    text-align: center;
}

.lexique-back a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--vert-persil);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lexique-back a:hover {
    color: var(--rouge-tomate);
    transform: translateX(-5px);
}

.lexique-back a svg {
    transition: transform 0.3s ease;
}

.lexique-back a:hover svg {
    transform: translateX(-5px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .lexique-hero {
        min-height: auto;
        padding: 6rem 5% 4rem;
    }

    .hero-content-lexique h1 {
        font-size: 2rem;
    }

    .letter-big {
        font-size: 3rem;
    }

    .term-card {
        padding: 2rem;
    }

    .term-card h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 600px) {
    .lexique-nav {
        padding: 1rem 3%;
    }

    .letter-pill {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .hero-content-lexique h1 {
        font-size: 1.6rem;
    }

    .letter-big {
        font-size: 2.5rem;
    }

    .term-card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .term-card::before {
        width: 4px;
    }

    .term-card h2 {
        font-size: 1.15rem;
    }

    .term-section h3 {
        font-size: 0.9rem;
    }

    .term-section p {
        font-size: 0.95rem;
    }

    .pattern-divider-lexique {
        height: 60px;
        background-size: 200px;
    }

    .lexique-cta-card {
        padding: 2rem 1.5rem;
    }

    .lexique-cta-card h2 {
        font-size: 1.4rem;
    }
}
