/* --- VARIABLES DE COULEURS --- */
:root {
    --bg-primary: #F6F4F0; 
    --bg-secondary: #E6E1D8; 
    --text-color: #3C3228; 
    --white: #FFFFFF;
}

/* --- RESET & TYPOGRAPHIE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
    background-color: var(--bg-primary);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .serif { font-family: 'Playfair Display', serif; }
.handwritten { font-family: 'Caveat', cursive; color: var(--text-color); }

.wrapper { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.mt-2 { margin-top: 20px; }
.mt-large { margin-top: 80px; }
.max-600 { max-width: 600px; margin-left: auto; margin-right: auto; }

/* --- NAVIGATION / HEADER --- */
.header {
    background-color: var(--bg-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px dashed var(--bg-secondary);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-color);
}

.app-logo { width: 30px; height: 30px; }

/* NOUVEAU LOGO TEXTE : Serif simple et élégant */
.logo-text { 
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem; 
    font-weight: 500; 
    letter-spacing: 0px; 
    line-height: 1; 
}

.nav-links { display: flex; align-items: center; gap: 15px; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 0.9rem;}
.nav-btn { background-color: var(--text-color); color: var(--bg-primary); padding: 8px 16px; border-radius: 10px; }
.nav-btn-alt { color: var(--text-color); }

/* --- ANIMATIONS AU SCROLL --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- HERO SECTION --- */
.hero { padding: 40px 0 60px 0; }

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
}

.hero-small-text { font-size: 2rem; transform: rotate(-3deg); display: inline-block; margin-bottom: 5px;}
h1 { font-size: 2.8rem; font-weight: 800; line-height: 1.1; margin-bottom: 15px; letter-spacing: -1px;}
h1 + p { font-size: 1rem; margin-bottom: 30px; opacity: 0.9; }

/* BOUTONS HERO */
.hero-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.btn-apple {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: var(--text-color);
    color: var(--bg-primary);
    padding: 14px 20px;
    border-radius: 16px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 4px 4px 0px rgba(60, 50, 40, 0.15);
    width: 100%;
}
.btn-apple:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0px rgba(60, 50, 40, 0.15); }
.btn-apple span { line-height: 1.2; font-size: 0.85rem; text-align: left;}
.btn-apple strong { font-size: 1.1rem; }

/* MOCKUP IPHONE */
.visual-content { width: 100%; display: flex; justify-content: center; }
.iphone-mockup {
    width: 250px; height: 510px;
    border: 10px solid var(--text-color);
    border-radius: 40px; background-color: var(--text-color);
    position: relative;
    box-shadow: 0 20px 40px rgba(60, 50, 40, 0.2);
    overflow: hidden;
}
.dynamic-island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 80px; height: 24px; background-color: black; border-radius: 20px; z-index: 10; }
.screen { width: 100%; height: 100%; background-size: cover; background-position: center; }
.screen-lock { background-image: url('screenshot-lock.png'); }
.floating { animation: float 6s ease-in-out infinite; }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }

/* --- SECTION MARQUEE --- */
.marquee-section {
    padding: 40px 0; background-color: var(--bg-secondary);
    overflow: hidden; display: flex; align-items: center;
}
.marquee-container { display: flex; width: max-content; will-change: transform; }
.marquee-track { display: flex; align-items: center; gap: 60px; padding-right: 60px; }
.marquee-track img { height: 60px; width: auto; object-fit: contain; filter: drop-shadow(2px 4px 6px rgba(60,50,40,0.1)); }

/* --- SECTIONS DIVERSES --- */
.pitch { padding: 80px 0; }
.large-pitch-text { font-size: 2rem; line-height: 1.3; opacity: 0.9; }

.how-it-works { padding: 80px 0; background-color: var(--white); border-radius: 30px;}
.how-grid { display: flex; flex-direction: column; gap: 40px; align-items: center; text-align: center;}
.how-text h2 { font-size: 2.2rem; margin-bottom: 20px; line-height: 1.15;}
.app-screenshot { width: 250px; border-radius: 30px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

.features-flow { padding: 80px 0; }
.feature-item { padding: 40px 0; border-bottom: 1px dashed var(--bg-secondary); text-align: center;}
.feature-item h3 { font-size: 2.2rem; margin-bottom: 10px; }
.liquid-reminders { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; align-items: center;}
.reminder-bubble { background-color: var(--white); color: #333; padding: 10px 20px; border-radius: 20px; font-weight: 600; box-shadow: 0 4px 10px rgba(0,0,0,0.05); font-size: 0.9rem;}
.large-h3 { font-size: 3.5rem; margin-bottom: 20px;}

.final-cta { padding: 100px 0 80px 0; }
.final-cta h2 { font-size: 2.5rem; margin-bottom: 40px; }

/* PAGES LEGALES */
.page-content { max-width: 800px; margin: 60px auto; background: var(--white); padding: 40px; border-radius: 20px; box-shadow: 0 10px 30px rgba(60, 50, 40, 0.05); text-align: left;}
.page-content h1 { margin-bottom: 20px; font-size: 2rem; }
.page-content h2 { margin-top: 30px; margin-bottom: 10px; font-size: 1.3rem; }
.page-content p, .page-content ul { margin-bottom: 15px; opacity: 0.9; }
.page-content ul { padding-left: 20px; }
.back-link { display: inline-block; margin-bottom: 30px; text-decoration: none; color: var(--text-color); font-weight: 600; border-bottom: 2px solid var(--bg-secondary); }

footer { text-align: center; padding: 40px 0; background-color: var(--bg-secondary); border-radius: 30px 30px 0 0;}
.footer-links { display: flex; flex-direction: column; gap: 15px; margin-bottom: 25px;}
.footer-links a { text-decoration: none; color: var(--text-color); font-weight: 500; }
.copyright { font-size: 0.85rem; opacity: 0.5; }

/* --- RESPONSIVE PC --- */
@media (min-width: 800px) {
    .wrapper { padding: 0 40px; }
    h1 { font-size: 4.5rem; letter-spacing: -2px; }
    .hero-content { flex-direction: row; text-align: left; justify-content: space-between;}
    .hero-actions { margin: 0; max-width: 250px;}
    .iphone-mockup { width: 300px; height: 610px; border-width: 12px; }
    .marquee-track img { height: 100px; } 
    .marquee-track { gap: 100px; padding-right: 100px;}
    .large-pitch-text { font-size: 3rem; }
    .how-grid { flex-direction: row-reverse; text-align: left; justify-content: space-between;}
    .how-text h2 { font-size: 3rem; }
    .feature-item { text-align: left; }
    .feature-item.alternate { text-align: right; }
    .liquid-reminders { flex-direction: row; justify-content: flex-start;}
    .feature-item.alternate .liquid-reminders { justify-content: flex-end;}
    .footer-links { flex-direction: row; gap: 30px;}
    .page-content { padding: 60px; }
    .page-content h1 { font-size: 2.5rem; }
    .page-content h2 { font-size: 1.5rem; }
}
/* --- SÉLECTEUR DE LANGUE (STYLE BOUTON PILULE) --- */
.lang-switcher {
    display: flex;
    align-items: center;
    background-color: var(--bg-secondary);
    border-radius: 20px;
    padding: 4px;
    margin-right: 10px; /* Espace avant le bouton Contact */
}

.lang-switcher a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 16px;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.lang-switcher a:hover {
    opacity: 1;
}

/* Le style de la langue actuellement sélectionnée */
.lang-switcher a.active {
    background-color: var(--white);
    opacity: 1;
    box-shadow: 0 2px 5px rgba(60, 50, 40, 0.1);
}

/* Ajustement responsive pour mobile : on réduit un peu l'espace */
@media (max-width: 768px) {
    .nav-links { gap: 10px; }
    .lang-switcher { margin-right: 0; padding: 3px; }
    .lang-switcher a { padding: 5px 8px; font-size: 0.75rem; }
}
/* --- FAQ SECTION --- */
.faq-section {
    margin-top: 60px;
    text-align: left;
    border-top: 2px dashed var(--bg-secondary);
    padding-top: 50px;
}

.faq-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
}

.faq-item {
    background-color: var(--bg-primary);
    border: 1px solid var(--bg-secondary);
    border-radius: 16px;
    margin-bottom: 15px;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(60, 50, 40, 0.05);
}

/* On utilise les balises natives <details> et <summary> d'HTML5 pour l'accordéon */
details {
    width: 100%;
}

summary {
    padding: 20px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    list-style: none; /* Enlève la petite flèche par défaut */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::-webkit-details-marker {
    display: none; /* Pour Safari/Chrome */
}

/* La croix personnalisée */
summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-color);
    transition: transform 0.3s;
}

/* Quand l'accordéon est ouvert, le '+' devient un '-' */
details[open] summary::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-content {
    padding: 0 20px 20px 20px;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}
/* --- CORRECTION OVERFLOW MOBILE (iPhone 13 et écrans étroits) --- */
html, body {
    /* Sécurité supplémentaire pour bloquer le défilement horizontal sur iOS */
    overflow-x: hidden;
    width: 100%;
}

@media (max-width: 480px) {
    /* On réduit l'espace sur les côtés de l'écran */
    .wrapper { 
        padding: 0 12px; 
    }
    
    /* On réduit la taille du logo */
    .logo-text { 
        font-size: 1.4rem; 
    }
    .app-logo { 
        width: 26px; 
        height: 26px; 
    }

    /* On rapproche les boutons du menu et on réduit leur taille */
    .nav-links { 
        gap: 8px; 
    }
    .lang-switcher { 
        margin-right: 0; 
        padding: 2px; 
    }
    .lang-switcher a { 
        padding: 4px 6px; 
        font-size: 0.7rem; 
    }
    .nav-btn-alt { 
        font-size: 0.8rem; 
    }
    .nav-btn { 
        padding: 6px 10px; 
        font-size: 0.8rem; 
    }
}
/* --- SECTION CONTACT (ACCUEIL - FOND BRUN FONCÉ) --- */
.contact-section {
    padding: 80px 0 120px 0;
    background-color: var(--text-color); /* Le fameux fond brun foncé (#3C3228) */
    color: var(--bg-primary); /* Texte en beige clair */
    border-radius: 40px;
    margin: 0 20px 60px 20px;
    box-shadow: 0 20px 50px rgba(60, 50, 40, 0.3); /* Ombre un peu plus marquée */
}

/* On force la couleur claire sur les textes de cette section */
.contact-section h2, 
.contact-section p {
    color: var(--bg-primary);
}

.contact-section .handwritten {
    color: var(--bg-secondary); /* L'écriture manuscrite un peu plus foncée pour le style */
}

/* On inverse le bouton pour qu'il soit visible sur le fond sombre */
.contact-section .btn-apple {
    background-color: var(--bg-primary); /* Bouton beige */
    color: var(--text-color); /* Texte brun */
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.4); /* Ombre sombre */
}

.contact-section .btn-apple:hover {
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.4);
}