/* ==========================================================================
   PauseCafé — Socle de styles partagé
   --------------------------------------------------------------------------
   Chargé par TOUTES les pages du site, avant leur <style> spécifique.
   L'ordre compte : une page peut donc surcharger n'importe quelle règle
   ci-dessous sans avoir à jouer sur la spécificité.

   Objectif : la coquille (variables, reset, nav, hero, footer, blocs de
   contenu) vit à UN SEUL endroit. Une retouche de design se propage
   automatiquement aux versions française et anglaise.

   Ce fichier ne contient QUE ce qui est commun. Tout ce qui est propre à
   une page reste dans son <style> — c'est volontaire, chaque page a son
   identité visuelle.
   ========================================================================== */


/* ──────────────────────────────────────────────────────────────────────────
   1. SOCLE — variables, reset, typographie
   Union complète des variables du site : aucune valeur n'était en conflit
   d'une page à l'autre, la fusion est donc sans perte.
   ────────────────────────────────────────────────────────────────────────── */

:root {
    --cafe:         #2C1810;
    --cream:        #F6E1C8;
    --espresso:     #1A0F0A;
    --caramel:      #C4873A;
    --mousse:       #E8D5B0;
    --purple:       #6B3FA0;
    --purple-light: #9B6FD0;
    --blue:         #378ADD;
    --blue-light:   #6BAEEC;
    --green:        #4CAF7D;
    --text:         #1A0F0A;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--text);
    overflow-x: hidden;
}


/* ──────────────────────────────────────────────────────────────────────────
   2. NAVIGATION
   Barre fixe en haut. Les pages qui l'utilisent doivent prévoir un padding
   supérieur suffisant sur leur premier bloc (voir .hero / .page-legale).
   ────────────────────────────────────────────────────────────────────────── */

nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 48px;
    background: var(--cream);
    border-bottom: 1px solid rgba(196, 135, 58, 0.2);
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--cafe);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-img {
    width: 36px; height: 36px;
    object-fit: contain;
    border-radius: 8px;
}

.nav-back {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--cafe);
    text-decoration: none;
    opacity: 0.7;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: opacity 0.2s;
}
.nav-back:hover { opacity: 1; }


/* ──────────────────────────────────────────────────────────────────────────
   3. EN-TÊTE DE PAGE
   ────────────────────────────────────────────────────────────────────────── */

.hero {
    padding: 140px 48px 60px;
    max-width: 860px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--caramel);
    color: white;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--cafe);
    margin-bottom: 20px;
}
.hero h1 span { color: var(--caramel); font-style: italic; }

.hero .lead {
    font-size: 1.15rem;
    line-height: 1.7;
    opacity: 0.78;
    font-weight: 300;
}


/* ──────────────────────────────────────────────────────────────────────────
   4. CORPS DE PAGE — blocs, cartes, listes numérotées
   ────────────────────────────────────────────────────────────────────────── */

.content {
    max-width: 860px;
    margin: 0 auto;
    padding: 20px 48px 100px;
}

.block { margin-top: 56px; }

.block h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--cafe);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.block h3.sub {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--cafe);
    margin: 26px 0 6px;
}

.block p {
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.8;
    font-weight: 300;
    margin-bottom: 16px;
}

.block strong { font-weight: 500; opacity: 1; color: var(--cafe); }

.card {
    background: white;
    border: 1px solid rgba(196, 135, 58, 0.18);
    border-radius: 16px;
    padding: 28px;
    margin: 24px 0;
    box-shadow: 0 6px 24px rgba(44, 24, 16, 0.05);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.mini-card {
    background: white;
    border: 1px solid rgba(196, 135, 58, 0.18);
    border-radius: 14px;
    padding: 22px 20px;
}
.mini-card .emoji { font-size: 1.8rem; display: block; margin-bottom: 10px; }
.mini-card h3 { font-size: 1rem; font-weight: 700; color: var(--cafe); margin-bottom: 6px; }
.mini-card p { font-size: 0.88rem; line-height: 1.6; opacity: 0.7; font-weight: 300; margin: 0; }

.steps { list-style: none; counter-reset: step; margin: 8px 0 0; }

.steps li {
    position: relative;
    padding: 14px 0 14px 52px;
    border-bottom: 1px solid rgba(44, 24, 16, 0.08);
    font-size: 0.98rem;
    line-height: 1.7;
    opacity: 0.85;
    font-weight: 300;
}

.steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0; top: 14px;
    width: 32px; height: 32px;
    background: var(--caramel);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.steps li strong { color: var(--cafe); font-weight: 500; }


/* ──────────────────────────────────────────────────────────────────────────
   5. ENCADRÉS — repère chiffré, avertissement, sources
   ────────────────────────────────────────────────────────────────────────── */

.seuil-note {
    background: rgba(76, 175, 125, 0.1);
    border: 1px solid rgba(76, 175, 125, 0.35);
    border-radius: 14px;
    padding: 20px 24px;
    margin: 20px 0;
}
.seuil-note h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--cafe);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.seuil-note p { font-size: 0.92rem; line-height: 1.7; opacity: 0.85; font-weight: 300; margin: 0; }

.disclaimer {
    background: #fff8f0;
    border: 1px solid #f5ddc0;
    border-radius: 14px;
    padding: 22px 24px;
    margin: 40px 0 0;
}
.disclaimer h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--cafe);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.disclaimer p { font-size: 0.9rem; line-height: 1.7; opacity: 0.78; font-weight: 300; margin: 0; }

.sources { font-size: 0.85rem; opacity: 0.6; font-weight: 300; line-height: 1.8; margin-top: 24px; }
.sources a { color: var(--caramel); }
.sources strong { font-weight: 500; opacity: 1; }


/* ──────────────────────────────────────────────────────────────────────────
   6. APPEL À L'ACTION
   ────────────────────────────────────────────────────────────────────────── */

.cta {
    text-align: center;
    background: var(--espresso);
    color: var(--cream);
    border-radius: 20px;
    padding: 48px 32px;
    margin-top: 64px;
}
.cta h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 12px;
    color: var(--cream);
    justify-content: center;
}
.cta p { opacity: 0.7; font-weight: 300; margin-bottom: 0; }

.apple-badge img { height: 56px; width: auto; display: inline-block; }


/* ──────────────────────────────────────────────────────────────────────────
   7. PIED DE PAGE
   Version « simple » (centrée), utilisée par les pages de contenu.
   index.html et blog.html surchargent avec leur pied de page en colonnes.
   ────────────────────────────────────────────────────────────────────────── */

footer {
    background: var(--espresso);
    color: var(--cream);
    padding: 40px 48px;
    text-align: center;
}
footer a { color: var(--caramel); text-decoration: none; }

.footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
    font-size: 0.85rem;
}
.footer-links a { opacity: 0.7; }
.footer-links a:hover { opacity: 1; }

.footer-bottom { font-size: 0.8rem; opacity: 0.4; }


/* ──────────────────────────────────────────────────────────────────────────
   8. PAGES LÉGALES (CGU, confidentialité, RGPD, désabonnement)
   Ces pages étaient les seules à ne pas suivre le système : police
   d'origine système, couleurs codées en dur, pas de vraie navigation.
   Elles adoptent désormais la même coquille que le reste du site.
   ────────────────────────────────────────────────────────────────────────── */

.page-legale {
    max-width: 800px;
    margin: 0 auto;
    padding: 110px 24px 80px;
}

.page-legale h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--cafe);
    margin-bottom: 12px;
}

.page-legale h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--cafe);
    margin: 36px 0 12px;
}

.page-legale h3 {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--cafe);
    margin: 24px 0 8px;
}

.page-legale p,
.page-legale li {
    font-size: 0.98rem;
    line-height: 1.8;
    opacity: 0.82;
    font-weight: 300;
    margin-bottom: 12px;
}

.page-legale ul, .page-legale ol { margin: 0 0 16px 22px; }
.page-legale strong { font-weight: 500; opacity: 1; color: var(--cafe); }
.page-legale a { color: var(--caramel); }

.page-legale .maj {
    font-size: 0.85rem;
    opacity: 0.55;
    font-weight: 300;
    margin-bottom: 32px;
}


/* ──────────────────────────────────────────────────────────────────────────
   9. SÉLECTEUR DE LANGUE
   Ajouté avec la version anglaise. Discret dans la barre de navigation.
   ────────────────────────────────────────────────────────────────────────── */

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.lang-switch a {
    color: var(--cafe);
    text-decoration: none;
    opacity: 0.45;
    transition: opacity 0.2s;
    padding: 2px 4px;
}
.lang-switch a:hover { opacity: 0.85; }
.lang-switch a[aria-current="true"] { opacity: 1; font-weight: 700; }
.lang-switch .sep { opacity: 0.3; }


/* ──────────────────────────────────────────────────────────────────────────
   10. ADAPTATION MOBILE
   ────────────────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    nav       { padding: 12px 24px; }
    .hero     { padding: 110px 24px 40px; }
    .content  { padding: 16px 24px 70px; }
    .cta      { padding: 36px 24px; }
    footer    { padding: 36px 24px; }
    .page-legale { padding: 92px 20px 60px; }
}
