/* ══════════════════════════════════════════════════════════════════════
   LA CHARPENTE COMMUNE DU SITE (26/09/2026) : en-tete, panier, pied.

   Toutes les pages secondaires (avis, pages legales) portent EXACTEMENT
   l'en-tete, le panier et le pied de la page d'accueil. Le balisage est
   ecrit dans chaque page par _site_commun.py (entre les marques LC:) ;
   le comportement vit dans liberte-commun.js.

   Classes prefixees « lc- » : chaque page garde ses propres styles pour
   son contenu, et aucun d'eux ne peut deformer la charpente (c'est ce qui
   rendait l'en-tete different d'une page a l'autre).
   Valeurs recopiees de index.html ; une retouche se fait AUX DEUX endroits.
   ══════════════════════════════════════════════════════════════════════ */
:root {
    --lc-primaire: #00BCD4;
    --lc-sombre: #006064;
    --lc-accent: #FF2E63;
    --lc-accent1: #005c5a;
    --lc-secondaire: #B2EBF2;
    --lc-clair: #E0F7FA;
    --lc-creme: #F0F8FF;
    --lc-blanc: #FFFFFF;
    --lc-noir: #2C2C2C;
    --lc-gris: #6B6B6B;
    --lc-alerte: #DB2777;
    --lc-titre: 'Playfair Display', serif;
    --lc-texte: 'Inter', sans-serif;
    --lc-ombre-legere: 0 2px 15px rgba(0, 188, 212, 0.1);
    --lc-ombre: 0 4px 25px rgba(0, 188, 212, 0.15);
}

/* ── Remise a zero : les styles de la page ne touchent pas la charpente ── */
.lc-navbar, .lc-navbar *, .lc-footer, .lc-footer *, .lc-cart-sidebar, .lc-cart-sidebar * {
    box-sizing: border-box;
}
.lc-navbar ul, .lc-footer ul { list-style: none; margin: 0; padding: 0; }
.lc-navbar li, .lc-footer li { margin: 0; padding: 0; }
.lc-navbar button, .lc-cart-sidebar button { font: inherit; }

/* ── En-tete ─────────────────────────────────────────────────────────── */
.lc-navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 188, 212, 0.2);
    font-family: var(--lc-texte);
    transition: background .4s ease, box-shadow .4s ease;
}
.lc-navbar.scrolled { background: rgba(255, 255, 255, 0.98); box-shadow: var(--lc-ombre); }
.lc-nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
    display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 80px;
}
.lc-nav-logo { display: flex; align-items: center; gap: 1rem; text-decoration: none; flex-shrink: 0; }
.lc-logo-image { height: 50px; width: auto; transition: transform .4s ease; }
.lc-logo-image:hover { transform: rotate(5deg) scale(1.05); }
/* Comme l'accueil : « LibeRté By Suzanne. » sur une ligne (le blanc entre les
   deux mots vient du balisage). */
.lc-logo-container { display: block; white-space: nowrap; }
.lc-logo-text { font-family: var(--lc-titre); font-size: 1.8rem; font-weight: 700; color: var(--lc-sombre); line-height: 1; }
.lc-lib { color: var(--lc-sombre); }
.lc-rte { color: var(--lc-accent1); font-style: normal; }
.lc-by-suzanne { color: var(--lc-primaire); font-family: 'Dancing Script', cursive; font-size: 1rem; }

/* LE TEXTE NE SE REPLIE PLUS (defaut vu sur PC le 26/09/2026 : « À propos »,
   « La tournée », « Mon compte » coupes sur deux lignes, « Accueil » sous le
   logo). Ecart qui se resserre avec la largeur, puis menu repliable. */
.lc-nav-menu { display: flex; align-items: center; gap: clamp(14px, 1.4vw, 22px); }
.lc-nav-link {
    /* En ligne, comme sur l'accueil (meme hauteur de boite, meme survol). */
    position: relative; display: inline; white-space: nowrap;
    padding: .5rem 0; text-decoration: none; color: var(--lc-gris); font-weight: 500; font-size: 1rem;
    transition: color .2s ease, transform .2s ease;
}
.lc-nav-link:hover, .lc-nav-link.active { color: var(--lc-primaire); transform: translateY(-2px); }
.lc-nav-link::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; border-radius: 1px;
    background: var(--lc-accent); transition: width .4s ease;
}
.lc-nav-link:hover::after, .lc-nav-link.active::after { width: 100%; }
.lc-nav-actions { display: flex; align-items: center; gap: 1.5rem; flex-shrink: 0; }
.lc-cart-icon {
    position: relative; cursor: pointer; color: var(--lc-sombre); font-size: 1.5rem;
    background: none; border: none; padding: 0; line-height: 1.6;
}
.lc-cart-counter {
    position: absolute; top: -3px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px;
    background: var(--lc-accent); color: #fff; border-radius: 10px;
    font-size: .75rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.lc-cart-counter[hidden] { display: none; }
.lc-hamburger { display: none; flex-direction: column; gap: 4px; cursor: pointer; background: none; border: none; padding: 8px; }
.lc-bar { display: block; width: 25px; height: 3px; background: var(--lc-sombre); border-radius: 2px; transition: all .2s ease; }

@media (max-width: 1280px) {
    .lc-nav-link { font-size: .95rem; }
}
/* Menu repliable des qu'il ne tient plus sur une ligne (avant : 768 px). */
@media (max-width: 1150px) {
    .lc-nav-menu {
        position: fixed; left: -100%; top: 80px; width: 100%; height: calc(100vh - 80px); height: calc(100dvh - 80px);
        flex-direction: column; justify-content: flex-start; gap: 2rem; padding: 2rem 0; overflow-y: auto;
        background: var(--lc-blanc); box-shadow: var(--lc-ombre); text-align: center; transition: left .3s;
    }
    .lc-nav-menu.active { left: 0; }
    .lc-hamburger { display: flex; }
    .lc-hamburger.active .lc-bar:nth-child(2) { opacity: 0; }
    .lc-hamburger.active .lc-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .lc-hamburger.active .lc-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .lc-nav-link { font-size: 1.05rem; }
}
@media (max-width: 768px) {
    .lc-nav-container { height: 70px; }
    .lc-logo-image { height: 40px; }
    .lc-logo-text { font-size: 1.5rem; }
    .lc-nav-menu { top: 70px; height: calc(100vh - 70px); height: calc(100dvh - 70px); }
}
@media (max-width: 480px) {
    .lc-nav-container { padding: 0 10px; }
    .lc-logo-text { font-size: 1.2rem; }
    .lc-nav-actions { gap: 8px; }
}

/* ── Panier ──────────────────────────────────────────────────────────── */
.lc-cart-sidebar {
    position: fixed; top: 0; right: -100%; z-index: 1002;
    width: 420px; max-width: 92%; height: 100%;
    display: flex; flex-direction: column; font-family: var(--lc-texte);
    background: var(--lc-creme); box-shadow: -12px 0 40px rgba(0, 96, 100, 0.18);
    /* Ferme = vraiment retire (plus atteignable au clavier), apres l'animation. */
    visibility: hidden;
    transition: right .4s ease-in-out, visibility 0s linear .4s;
}
.lc-cart-sidebar.open { right: 0; visibility: visible; transition: right .4s ease-in-out, visibility 0s; }
.lc-cart-header {
    display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px 24px;
    color: var(--lc-blanc); background: linear-gradient(135deg, var(--lc-sombre) 0%, #00838F 100%);
}
.lc-cart-titres { min-width: 0; }
.lc-cart-titres h3 { font-family: var(--lc-titre); font-size: 1.45rem; line-height: 1.2; margin: 0; color: var(--lc-blanc); }
.lc-cart-sous-titre { display: block; font-size: .85rem; opacity: .85; margin-top: 2px; }
.lc-cart-fermer {
    width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .12); color: var(--lc-blanc);
    font-size: 1.6rem; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.lc-cart-fermer:hover { background: rgba(255, 255, 255, .25); }
.lc-cart-items { flex-grow: 1; overflow-y: auto; padding: 18px 18px 8px; display: flex; flex-direction: column; gap: 12px; }
.lc-cart-item {
    display: flex; align-items: flex-start; gap: 14px; padding: 12px;
    background: var(--lc-blanc); border: 1px solid var(--lc-secondaire); border-radius: 12px; box-shadow: var(--lc-ombre-legere);
}
.lc-cart-item-img { width: 72px; height: 72px; object-fit: cover; flex-shrink: 0; border-radius: 8px; background: var(--lc-clair); }
.lc-cart-item-img-vide { display: flex; align-items: center; justify-content: center; color: var(--lc-primaire); }
.lc-cart-item-img-vide svg { width: 28px; height: 28px; }
.lc-cart-item-info { flex-grow: 1; min-width: 0; }
.lc-cart-item-haut { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.lc-cart-item-name { font-weight: 600; font-size: .95rem; line-height: 1.3; color: var(--lc-noir); padding-top: 2px; overflow-wrap: anywhere; }
.lc-cart-item-price { color: var(--lc-gris); font-size: .85rem; margin-top: 2px; }
.lc-cart-item-remove {
    flex-shrink: 0; width: 44px; height: 44px; margin: -10px -10px 0 0; border-radius: 50%;
    background: none; border: none; color: var(--lc-gris); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.lc-cart-item-remove:hover { color: var(--lc-alerte); background: rgba(219, 39, 119, .08); }
.lc-cart-item-bas { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.lc-cart-qte { display: inline-flex; align-items: center; overflow: hidden; border: 1px solid var(--lc-secondaire); border-radius: 50px; background: var(--lc-clair); }
.lc-cart-qte button {
    width: 44px; height: 40px; border: none; background: transparent; cursor: pointer;
    font-size: 1.15rem; line-height: 1; color: var(--lc-sombre); display: flex; align-items: center; justify-content: center;
}
.lc-cart-qte button:hover { background: var(--lc-secondaire); }
.lc-cart-qte-valeur { min-width: 30px; text-align: center; font-weight: 700; color: var(--lc-sombre); }
.lc-cart-item-sous-total { font-weight: 700; font-size: 1.05rem; color: var(--lc-sombre); white-space: nowrap; }
.lc-cart-vide { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: auto 0; padding: 40px 16px; text-align: center; color: var(--lc-gris); }
.lc-cart-vide svg { width: 56px; height: 56px; color: var(--lc-primaire); opacity: .55; }
.lc-cart-vide p { margin: 0; font-size: 1rem; }
.lc-cart-vide a { color: var(--lc-sombre); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.lc-cart-footer { padding: 18px 24px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--lc-secondaire); background: var(--lc-blanc); }
.lc-cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-weight: 600; color: var(--lc-noir); }
.lc-cart-acompte { margin: -4px 0 12px; font-size: .85rem; line-height: 1.45; color: var(--lc-sombre); }
.lc-cart-commander {
    width: 100%; min-height: 48px; padding: 12px 18px; border: none; border-radius: 50px; cursor: pointer;
    background: linear-gradient(135deg, var(--lc-primaire), var(--lc-sombre)); color: #fff;
    font-weight: 600; font-size: 1rem; box-shadow: var(--lc-ombre);
}
.lc-cart-commander:hover { filter: brightness(1.05); }
.lc-cart-vider {
    width: 100%; margin-top: 8px; padding: 10px; min-height: 44px; border: none; border-radius: 8px;
    background: none; color: var(--lc-gris); cursor: pointer; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px;
}
.lc-cart-vider:hover { color: var(--lc-alerte); }
.lc-cart-overlay {
    position: fixed; inset: 0; z-index: 1001; background: rgba(0, 0, 0, .5);
    opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s ease;
}
.lc-cart-overlay.open { opacity: 1; visibility: visible; }
body.lc-verrou { overflow: hidden; }
@media (max-width: 480px) { .lc-cart-sidebar { width: 100%; max-width: 100%; } }

/* ── Pied de page ────────────────────────────────────────────────────── */
.lc-footer { background: var(--lc-primaire); color: #fff; padding: 4rem 0 2rem; font-family: var(--lc-texte); }
.lc-footer-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.lc-footer-content { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; margin-bottom: 3rem; }
.lc-footer-brand .lc-nav-logo { gap: .75rem; }
.lc-footer-brand .lc-logo-text { color: #fff; }
.lc-footer-brand .lc-lib { color: #fff; }
.lc-footer-brand .lc-rte { color: var(--lc-sombre); }
.lc-footer-brand .lc-by-suzanne { color: #fff; display: block; margin-top: 4px; }
.lc-footer-description { color: #fff; margin: 10px 0 0; line-height: 1.6; }
.lc-footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.lc-footer-title { font-family: var(--lc-titre); color: var(--lc-sombre); font-size: 1.15rem; margin: 0 0 1.5rem; }
.lc-footer-list li { margin-bottom: .5rem; }
.lc-footer-link { color: #fff; text-decoration: none; transition: color .2s ease; }
.lc-footer-link:hover { color: var(--lc-sombre); }
.lc-social-links { display: flex; gap: 1.5rem; }
.lc-social-link {
    width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: #fff; color: var(--lc-primaire); text-decoration: none; font-size: 1.1rem;
    transition: transform .4s ease, filter .4s ease;
}
.lc-social-link:hover { transform: scale(1.1) translateY(-2px); filter: brightness(.9); }
.lc-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .3); padding-top: 2rem; text-align: center;
    font-size: .9rem; color: #fff; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 18px;
}
.lc-footer-bottom p { margin: 0; flex-basis: 100%; }
/* Les liens legaux : blancs et discrets (ils sortaient en bleu souligne par
   defaut sur le fond turquoise). */
.lc-legal-btn { color: #fff; opacity: .9; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .45); padding-bottom: 1px; }
.lc-legal-btn:hover { opacity: 1; border-bottom-color: #fff; }
@media (max-width: 1024px) {
    .lc-footer-content { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .lc-footer-brand .lc-nav-logo { justify-content: center; }
    .lc-social-links { justify-content: center; }
}
@media (max-width: 768px) {
    .lc-footer-links { grid-template-columns: 1fr; gap: 2rem; }
}

/* LE PANIER DES PAGES SECONDAIRES GARDE AUSSI SON DÉFILEMENT POUR LUI (05/10/2026), et un appui long sur + ou −
   n'y sélectionne plus de texte. (Même correctif que sur la page d'accueil.) */
.lc-cart-items { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.lc-cart-qte, .lc-cart-qte button, .lc-cart-qte-valeur { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.lc-cart-qte button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
