/* ─────────────────────────────────────────────────────────────
 * Pain de Vie — Feuille de styles partagée
 *
 * Chargée via <link rel="stylesheet" href="styles.css"> dans chaque
 * page HTML du site. Contient uniquement ce qui est vraiment commun
 * à plusieurs pages (variables de thème, reset, typographie, header,
 * navigation, menu mobile, footer, boutons, utilitaires).
 *
 * Les styles spécifiques à une seule page restent dans son <style>
 * inline (hero de la landing, pricing, cartes légales, etc.).
 * ───────────────────────────────────────────────────────────── */

/* ── Reset minimal ────────────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── Variables de thème ───────────────────────────────────── */
:root {
    --amber-50:  #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;
    --warm-50:   #fdf8f0;
    --warm-100:  #f5ebe0;
    --warm-800:  #3d2c1e;
    --warm-900:  #2a1f14;
    --text:       #1c1917;
    --text-light: #78716c;
    --white:      #ffffff;
    --red-50:     #fef2f2;
    --red-600:    #dc2626;
    --green-50:   #ecfdf5;
    --green-700:  #047857;
    --radius: 16px;
}

/* ── Typographie ──────────────────────────────────────────── */
body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    line-height: 1.65;
    color: var(--text);
    overflow-x: hidden;
    background: var(--white);
}

h1, h2, h3, h4, .hero-quote {
    font-family: 'Playfair Display', Georgia, serif;
}

a {
    color: var(--amber-700);
}

a:hover {
    color: var(--amber-600);
}

/* ── Header fixe + logo ───────────────────────────────────── */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.75rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s;
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--amber-800);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

/* ── Navigation principale ────────────────────────────────── */
.nav-links {
    display: flex;
    gap: 1.75rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--amber-600);
}

.nav-links a.active {
    color: var(--amber-700);
    font-weight: 600;
}

.nav-cta {
    background: var(--amber-500);
    color: var(--white) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 600 !important;
    transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
    background: var(--amber-600);
    color: var(--white) !important;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--amber-800);
    cursor: pointer;
    padding: 0.25rem;
}

/* ── Boutons ──────────────────────────────────────────────── */
.btn {
    padding: 0.9rem 2rem;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.25s;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--amber-500);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

.btn-primary:hover:not(:disabled) {
    background: var(--amber-400);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.5);
}

.btn-secondary {
    background: var(--white);
    color: var(--text);
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--warm-50);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.35);
}

.btn-outline:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-ghost {
    background: transparent;
    color: var(--text-light);
    border: none;
}

.btn-ghost:hover:not(:disabled) {
    color: var(--red-600);
}

.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Footer commun ────────────────────────────────────────── */
.footer {
    background: var(--warm-900);
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 2.5rem 1.5rem;
    font-size: 0.88rem;
}

.footer a {
    color: var(--amber-300);
    text-decoration: none;
    margin: 0 0.5rem;
}

.footer a:hover {
    color: var(--amber-400);
}

.footer-bottom {
    margin-top: 1.5rem;
    opacity: 0.7;
    font-size: 0.82rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

/* ── Section commons ─────────────────────────────────────── */
.section {
    padding: 5rem 2rem;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-label {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--amber-600);
    margin-bottom: 0.75rem;
}

.section-title {
    text-align: center;
    font-size: 2.3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    max-width: 620px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
}

/* ── Pages légales (cgu, privacy) — breadcrumb + page-label ── */
.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--amber-700);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    transition: color 0.2s, transform 0.2s;
}

.breadcrumb:hover {
    color: var(--amber-600);
    transform: translateX(-3px);
}

.page-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--amber-600);
    margin-bottom: 0.75rem;
}

/* ── Responsive : menu mobile et ajustements communs ─────── */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    /* Menu mobile : panneau plein largeur sous le header */
    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 1rem 1.5rem;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        padding-top: 0;
        padding-bottom: 0;
    }

    .nav-links.open {
        max-height: 80vh;
        padding-top: 1rem;
        padding-bottom: 1.5rem;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.85rem 0.5rem;
        font-size: 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links li:last-child a {
        border-bottom: none;
        margin-top: 0.5rem;
        text-align: center;
    }
}
