/* ==========================================================================
   WEITHY LANDING PAGE - CSS
   
   SOMMAIRE :
   1. Variables (couleurs, typo, espacements)
   2. Base (reset, styles globaux)
   3. Navigation
   4. Hero
   5. Problem
   6. Features
   7. How it works
   8. CTA
   9. Footer
   10. Responsive
   ========================================================================== */


/* ==========================================================================
   1. VARIABLES
   👉 Modifie ici pour changer les couleurs et la typo globalement
   ========================================================================== */

:root {
    /* COULEURS PRINCIPALES */
    --color-primary: #2D5A27;           /* Vert forêt */
    --color-primary-light: #4A7C43;     /* Vert clair */
    --color-primary-dark: #1E3D1A;      /* Vert foncé */
    --color-accent: #E8B86D;            /* Doré/miel */
    
    /* COULEURS DE FOND */
    --color-bg: #FFFBF5;                /* Fond crème */
    --color-bg-alt: #F7F3ED;            /* Fond alternatif */
    
    /* COULEURS DE TEXTE */
    --color-text: #1A1A1A;              /* Texte principal */
    --color-text-light: #6B6B6B;        /* Texte secondaire */
    --color-text-muted: #9A9A9A;        /* Texte discret */
    
    /* TYPOGRAPHIE */
    --font-display: 'Instrument Serif', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    
    /* TAILLES DE TEXTE */
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3.5rem;
    --text-6xl: 4.5rem;
    
    /* ESPACEMENTS */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* BORDURES & OMBRES */
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.16);
    
    /* LAYOUT */
    --container-max: 1200px;
}


/* ==========================================================================
   2. BASE
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-bg);
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.1;
}

p {
    color: var(--color-text-light);
}

a {
    color: inherit;
    text-decoration: none;
}

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

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

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

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}


/* ==========================================================================
   3. NAVIGATION
   ========================================================================== */

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

.nav__logo-img{
    width: 60px;
    height: 60px;
    border-radius: 8px;
}


.nav__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-style: italic;
    color: var(--color-primary);
}

.nav__icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.5rem;
}

/* Badge coach certifié */
.laurel-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #fdfcfb 0%, #f5f0e8 100%);
    border: 1px solid var(--color-accent);
    border-radius: var(--radius-full);
}

.laurel-badge__mascot{
    width: 18px;
    height: 18px;
    border-radius: 4px; /* optionnel */
    object-fit: cover;
    flex: 0 0 auto;
}


/*.laurel-badge__icon {
    font-size: 1rem;
}*/

.laurel-badge__text {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text);
}

/* Sélecteur de langue */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-sm);
}

.lang-switch__current {
    font-weight: 600;
    color: var(--color-primary);
}

.lang-switch__link {
    color: var(--color-text-muted);
    transition: color 0.2s;
}

.lang-switch__link:hover {
    color: var(--color-primary);
}


/* ==========================================================================
   4. HERO
   ========================================================================== */

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3xl);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-lg);
    min-height: 80vh;
}

.hero__content {
    flex: 1;
    max-width: 600px;
}

.hero__title {
    font-size: var(--text-5xl);
    line-height: 1.15;
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero__title--highlight {
    color: var(--color-primary);
    font-style: italic;
}

.hero__subtitle {
    font-size: var(--text-xl);
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero__cta {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero__image {
    flex: 0 0 auto;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero__image img {
    width: clamp(210px, 20vw, 280px);
    height: auto;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    display: block;
    animation: float 6s ease-in-out infinite;
}




/* Bouton App Store */
.btn-store {
    display: inline-block;
    background: #000;
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: transform 0.2s, opacity 0.2s;
}

.btn-store:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.btn-store span {
    display: block;
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Mockup téléphone */
.phone-mockup {
    width: 280px;
    height: 560px;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
    border-radius: 36px;
    box-shadow: var(--shadow-xl);
    border: 8px solid #1a1a1a;
    padding: 20px;
    animation: float 6s ease-in-out infinite;
    overflow: hidden;
}

.phone-mockup__notch {
    width: 80px;
    height: 24px;
    background: #1a1a1a;
    border-radius: 12px;
    margin: 0 auto 20px;
}

.phone-mockup__header {
    text-align: center;
    margin-bottom: 20px;
}

.phone-mockup__header h3 {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--color-primary);
    font-size: 1.5rem;
}

.phone-mockup__header p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.phone-mockup__progress {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 10px solid #e8e8e8;
    border-top-color: var(--color-primary);
    border-right-color: var(--color-primary);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.phone-mockup__progress-text {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--color-primary);
}

.phone-mockup__progress-label {
    font-size: 0.65rem;
    color: var(--color-text-muted);
}

.phone-mockup__card {
    background: white;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e8e8e8;
}

.phone-mockup__card-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.phone-mockup__card-icon--food {
    background: #E8F5E9;
}

.phone-mockup__card-icon--sport {
    background: #FFF3E0;
}

.phone-mockup__card-content h4 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.phone-mockup__card-content p {
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

.phone-mockup__card-check {
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    border-radius: 50%;
    color: white;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.phone-mockup__streak {
    background: var(--color-primary);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 500;
    font-size: 0.85rem;
}


/* ==========================================================================
   5. PROBLEM
   ========================================================================== */

.problem {
    background-color: var(--color-primary-dark);
    color: white;
    text-align: center;
}

.problem__number {
    font-family: var(--font-display);
    font-size: var(--text-6xl);
    font-style: italic;
    color: var(--color-accent);
    display: block;
    line-height: 1;
    margin-bottom: var(--space-md);
}

.problem__text {
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    margin: 0 auto;
}

.problem__why {
    margin-top: var(--space-2xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.problem__why p {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-style: italic;
    color: white;
}


/* ==========================================================================
   6. FEATURES
   ========================================================================== */

.features {
    max-width: var(--container-max);
    margin: 0 auto;
    text-align: center;
}

.features__title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-3xl);
    color: var(--color-primary);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    max-width: 900px;
    margin: 0 auto;
}

.feature {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: left;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature__icon {
    font-size: var(--text-3xl);
    display: block;
    margin-bottom: var(--space-md);
}

.feature__icon--mascot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.feature__icon--mascot img {
    width: 42px;      /* ajuste si besoin : 36–48px */
    height: auto;
}


.feature__title {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.feature__text {
    font-size: var(--text-base);
    color: var(--color-text-light);
    line-height: 1.6;
}


/* ==========================================================================
   7. HOW IT WORKS
   ========================================================================== */

.how {
    background-color: var(--color-bg-alt);
    text-align: center;
}

/*.how__title {
    font-size: var(--text-4xl);
    color: var(--color-primary);
    margin-bottom: var(--space-3xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}*/

.how__title{
    font-size: var(--text-4xl);
    color: var(--color-primary);
    text-align: center;
}

.how__title-inline{
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;

    /* IMPORTANT : garde exactement la typo/couleur/taille du h2 */
    font: inherit;
    color: inherit;
}

.how__mascot {
    height: 1.9em;              /* ⬅️ PLUS VISIBLE */
    width: auto;
    margin-left: 0.6rem;
    vertical-align: middle;
    transform: translateY(-0.20em); /* ⬆️ réaligne avec la serif */
}


/* Nouveau layout vertical avec images */
.how__steps-vertical {
    display: flex;
    flex-direction: column;
    gap: var(--space-4xl);
    max-width: var(--container-max);
    margin: 0 auto;
}

.step-with-image {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3xl);
    text-align: left;
}

.step-with-image--reverse {
    flex-direction: row-reverse;
}

.step-with-image__content {
    flex: 1;
    max-width: 400px;
}

.step-with-image__phone {
    flex: 0 0 auto;
}

.step-with-image__phone img {
    width: 380px;
    height: auto;
    border-radius: 24px;

}

.step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: var(--color-primary);
    color: white;
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-style: italic;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
}

.step__title {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.step__text {
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Ancien layout (garder pour compatibilité) */
.how__steps {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    max-width: var(--container-max);
    margin: 0 auto;
}

.step {
    flex: 1;
    max-width: 300px;
}


/* Cadre neutre (desktop: ne change rien visuellement) */
.phone-frame{
    display: flex;
    justify-content: center;
}







/* ==========================================================================
   8. CTA
   ========================================================================== */

.cta {
    text-align: center;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
    padding: 8rem var(--space-lg);
}

.cta .app-store-btn {
    display: inline-block;
}

.cta .app-store-btn img {
    display: inline-block;
}

.cta__title {
    font-size: var(--text-4xl);
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.cta__subtitle {
    font-size: var(--text-xl);
    color: var(--color-text-light);
    margin-bottom: var(--space-2xl);
}

.cta a {
    display: inline-block;
    margin: 2rem auto 0;
}


/* ==========================================================================
   9. FOOTER
   ========================================================================== */

.footer {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer__links {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.footer__links a {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    transition: color 0.2s;
}

.footer__links a:hover {
    color: var(--color-primary);
}

.footer__copy {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}


/* ==========================================================================
   10. RESPONSIVE
   ========================================================================== */


.laurel-badge--hero{
    display: none;
    margin: 16px auto 0;
}

.laurel-badge--mobile{
    display: none;
}





@media (max-width: 768px) {

    .nav__logo img {
        width: 48px;
        height: 48px;
    }

    .how__title {
        line-height: 1.05; /* ⬅️ réduit l’espace entre les 2 lignes */
    }

    .ideal-inline {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem; /* distance idéale mot ↔ mascotte */
    }

    .how__mascot {
        height: 2.1em;
        transform: translateY(0.1em);
    }

    /*.how__mascot{
        display: inline-block;
        height: 2.1em;
        margin-left: 0.35rem;
        vertical-align: baseline;
        transform: translateY(0.12em);
    }*/



    .nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 16px;
    }

    /* 1) Réduit l’espace global entre texte et image */
    .how__steps-vertical { gap: 2rem; } /* baisse si besoin */
    .step-with-image,
    .step-with-image--reverse { gap: 0.75rem; } /* IMPORTANT */

    /* 2) Aligne l’axe texte = axe image */
    .step-with-image__content{
        align-items: center;
        text-align: center;
    }

    /* centre vraiment sous le texte + réduit l'espace */
    .step-with-image__phone{
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 0.5rem;
    }

    /* cadre visible: masque l'asymétrie du PNG */
    .phone-frame{
        width: 220px;      /* taille visible du mockup */
        overflow: hidden;  /* IMPORTANT */
        display: flex;
        justify-content: center;
    }

    /* l'image est un peu plus grande que le cadre, et on la décale */
    .phone-frame img{
        width: 260px;
        height: auto;
        display: block;
        transform: translateX(-18px); /* ajuste si besoin */
    }






    /* How section avec images */
    .how__title {
        font-size: var(--text-2xl);
        padding: 0 var(--space-md);
        margin-bottom: var(--space-xl);
    }

    .how__steps-vertical {
        gap: var(--space-2xl);
    }

    .step-with-image,
    .step-with-image--reverse {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .step-with-image__content {
        max-width: 100%;
        order: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .step-with-image__phone {
        order: 2;
        margin-top: var(--space-md);
    }

    /*.step-with-image__phone img {
        width: 220px;
    }*/









    /* Cache le badge dans la nav sur mobile */
    .nav .laurel-badge { display: none; }

    /* Affiche le badge du hero sur mobile */
    .laurel-badge--hero{
        display: inline-flex;      /* ou flex */
        justify-content: center;
        margin: 12px auto 0;
    }

    .laurel-badge--mobile {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        margin: 16px auto 20px;
        padding: 6px 14px;

        font-size: 0.85rem;
        border-radius: 9999px;

        max-width: fit-content;
    }

    .laurel-badge--mobile .laurel-badge__text {
        font-size: 0.85rem;
        font-weight: 500;
        white-space: nowrap;
    }

    /* (optionnel mais conseillé) évite qu'il prenne toute la largeur */
    .laurel-badge--hero .laurel-badge__text{
        white-space: nowrap;
        font-size: 0.9rem;
    }



    /* Logo plus compact */
    .nav__icon {
        width: 34px;
        height: 34px;
        font-size: 1.25rem;
    }

    .nav__logo {
        font-size: 1.05rem;
    }


    /* Le sélecteur de langue reste à droite */
    .lang-switch {
        font-size: 0.95rem;
    }


    .hero {
        flex-direction: column;
        text-align: center;
        min-height: auto;
    }

    .hero__image {
        order: 1;
    }

    .hero__image img {
        width: clamp(190px, 60vw, 240px);
    }

    .hero__cta{
        display: flex;
        justify-content: center;
    }



    .phone-mockup {
        width: 240px;
        height: 480px;
        padding: 16px;
    }

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

    .feature {
        text-align: center;
    }


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

    .footer__links {
        flex-wrap: wrap;
        gap: var(--space-md);
    }


}
