/* ============================================================================
   Les Cafés d'Italie · e-shop
   ----------------------------------------------------------------------------
   Direction : le bar à espresso italien. Fond noir torréfaction, or du logo,
   et le tricolore de la volute repris comme filet de signature.

   Le catalogue est un nuancier : chez Borbone la gamme se lit à la couleur
   du paquet (Rossa, Blu, Oro, Nera). Chaque fiche porte donc sa couleur,
   servie par --accent, exactement comme le client la reconnaît en rayon.

   Polices auto-hébergées : pas d'appel à Google, donc pas de transfert d'IP
   vers un tiers, et un rendu qui ne dépend d'aucun réseau externe.
   ========================================================================= */

@font-face {
    font-family: 'Archivo';
    src: url('../fonts/archivo-latin.woff2') format('woff2-variations');
    font-weight: 600 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Manrope';
    src: url('../fonts/manrope-latin.woff2') format('woff2-variations');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

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

:root {
    /* torréfaction */
    --nero:        #0F0B09;
    --nero-soft:   #1B1411;
    --grano:       #3A2A1F;

    /* papier */
    --latte:       #FAF6F0;
    --latte-dark:  #EFE6D9;
    --encre:       #241A14;
    --encre-soft:  #6E5F53;

    /* marque */
    --oro:         #C9A227;
    --oro-light:   #E9D08A;
    --verde:       #15703E;
    --rosso:       #C0392B;

    --accent:      var(--oro);

    --r-sm: 6px;
    --r-md: 12px;
    --r-lg: 20px;

    --shell: 1240px;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--latte);
    color: var(--encre);
    font-size: 17px;
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
}

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

:focus-visible {
    outline: 3px solid var(--oro);
    outline-offset: 3px;
    border-radius: 3px;
}

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------- signature
   Le filet tricolore, repris de la volute du logo. Il ouvre la page,
   souligne chaque titre de section et marque le pied de page. */

.tricolore {
    height: 3px;
    background: linear-gradient(90deg,
        var(--verde) 0 33.33%,
        var(--latte) 33.33% 66.66%,
        var(--rosso) 66.66% 100%);
}
.tricolore--short { width: 68px; border-radius: 2px; }
.tricolore--dark {
    background: linear-gradient(90deg,
        var(--verde) 0 33.33%,
        #FFFFFF 33.33% 66.66%,
        var(--rosso) 66.66% 100%);
}

/* ------------------------------------------------------------------ topbar */

.announce {
    background: var(--nero-soft);
    color: var(--oro-light);
    text-align: center;
    padding: 9px 20px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.9px;
    text-transform: uppercase;
}

/* ------------------------------------------------------------------ header */

/* Le logo est un dégradé d'or : il ne tient pas sur fond clair. L'en-tête reste
   donc sombre, dans la continuité du bandeau d'annonce et du hero. */
.masthead {
    position: sticky; top: 0; z-index: 50;
    background: rgba(15, 11, 9, 0.93);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(201, 162, 39, 0.16);
}
.masthead .shell {
    display: flex; align-items: center; gap: 30px;
    height: 78px;
}
.logo img { height: 40px; width: auto; }

.nav {
    /* Sans align-items, les liens s'étirent à la hauteur de la pastille
       « Espace pro », qui est la plus haute, et leur texte reste collé en haut
       de cette boîte : sept pixels plus haut que le reste de la barre. */
    display: flex; align-items: center; gap: 26px; margin-left: auto;
    font-size: 14px; font-weight: 600; letter-spacing: 0.2px;
}
.nav a { color: rgba(250, 246, 240, 0.68); text-decoration: none; transition: color 0.2s; }
.nav a:hover { color: var(--oro-light); }


.account-link {
    font-size: 14px; font-weight: 600; color: rgba(250, 246, 240, 0.68);
    text-decoration: none; white-space: nowrap;
}
.account-link:hover { color: var(--oro-light); }

.cart-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--oro); color: var(--nero);
    border: 0; border-radius: 999px; padding: 11px 20px;
    font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}
.cart-toggle:hover:not(:disabled) { background: var(--oro-light); transform: translateY(-1px); }
.cart-toggle:disabled { opacity: 0.4; cursor: not-allowed; }
/* Sur grand écran le mot suffit : l'icône ne s'ajoute qu'en petit, là où la
   place manque. Deux signes pour la même chose feraient redondance. */
.cart-icone { display: none; }

.cart-toggle .count {
    background: rgba(15, 11, 9, 0.82); color: var(--oro-light);
    border-radius: 999px; min-width: 21px; padding: 1px 7px;
    font-size: 12px; font-weight: 800; text-align: center;
}

/* -------------------------------------------------------------------- hero */

.hero {
    background: var(--nero);
    color: var(--latte);
    position: relative;
    overflow: hidden;
}
/* halo chaud derrière le paquet, comme la lumière d'un comptoir */
.hero::after {
    content: ''; position: absolute; inset: auto -10% -40% 40%;
    height: 620px;
    background: radial-gradient(ellipse at center, rgba(201, 162, 39, 0.20), transparent 62%);
    pointer-events: none;
}
.hero-inner {
    display: grid; grid-template-columns: 1.06fr 0.94fr;
    gap: 56px; align-items: center;
    padding: 84px 24px 92px;
    position: relative; z-index: 1;
}

.hero .eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 11.5px; font-weight: 700; letter-spacing: 2.4px;
    text-transform: uppercase; color: var(--oro);
    margin-bottom: 26px;
}

.hero h1 {
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    font-size: clamp(44px, 6.4vw, 92px);
    line-height: 0.92;
    letter-spacing: -0.035em;
    text-transform: uppercase;
}
.hero h1 .accent {
    color: transparent;
    background: linear-gradient(102deg, var(--oro) 8%, var(--oro-light) 52%, var(--oro) 92%);
    -webkit-background-clip: text; background-clip: text;
}

.hero p.pitch {
    margin: 26px 0 0;
    font-size: 18px;
    color: rgba(250, 246, 240, 0.74);
    max-width: 43ch;
}

.hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 36px; }

.hero-facts {
    display: flex; gap: 30px; flex-wrap: wrap;
    margin-top: 46px; padding-top: 26px;
    border-top: 1px solid rgba(250, 246, 240, 0.14);
}
.hero-facts div { display: flex; flex-direction: column; gap: 3px; }
.hero-facts dt,
.hero-facts .k {
    font-family: 'Archivo', sans-serif;
    font-size: 22px; font-weight: 800; color: var(--latte); letter-spacing: -0.02em;
}
.hero-facts .v {
    font-size: 12px; letter-spacing: 1.1px; text-transform: uppercase;
    color: rgba(250, 246, 240, 0.48); font-weight: 600;
}

.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero-visual img {
    width: 100%; max-width: 440px;
    /* les visuels d'origine gardent l'ombre du studio sous le paquet :
       on l'estompe au lieu de la découper au ciseau */
    -webkit-mask-image: linear-gradient(to bottom, #000 86%, transparent 99%);
            mask-image: linear-gradient(to bottom, #000 86%, transparent 99%);
    filter: drop-shadow(0 34px 44px rgba(0, 0, 0, 0.5));
    animation: floatPack 7s ease-in-out infinite;
}
@keyframes floatPack {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}
.hero-badge {
    display: inline-flex; align-items: baseline; gap: 12px;
    margin-top: -14px;
    background: var(--latte); color: var(--nero);
    border-radius: 999px;
    padding: 12px 22px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.hero-badge .lab {
    font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px;
    text-transform: uppercase; color: var(--encre-soft);
}
.hero-badge .val {
    font-family: 'Archivo', sans-serif;
    font-size: 25px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.1;
}
.hero-badge .val small { font-size: 13px; font-weight: 700; }

/* ----------------------------------------------------------------- boutons */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font: inherit; font-weight: 700; font-size: 15.5px;
    border: 0; border-radius: 999px; cursor: pointer;
    padding: 16px 32px;
    text-decoration: none; white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:active { transform: translateY(1px); }

.btn-gold {
    background: linear-gradient(135deg, var(--oro-light) 0%, var(--oro) 55%, #A8871C 100%);
    color: var(--nero);
    box-shadow: 0 10px 26px rgba(201, 162, 39, 0.34);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(201, 162, 39, 0.46); }

.btn-ghost {
    background: transparent; color: var(--latte);
    border: 1.5px solid rgba(250, 246, 240, 0.28);
}
.btn-ghost:hover { border-color: var(--oro); color: var(--oro-light); }

.btn-dark { background: var(--nero); color: var(--latte); }
.btn-dark:hover { background: var(--grano); transform: translateY(-2px); }

.btn-sm { padding: 11px 20px; font-size: 14px; }
.btn:disabled { opacity: 0.42; cursor: not-allowed; transform: none; box-shadow: none; }

/* ------------------------------------------------------------------ ruban */

.ribbon {
    background: var(--nero-soft);
    color: rgba(250, 246, 240, 0.82);
    border-top: 1px solid rgba(250, 246, 240, 0.08);
}
.ribbon .shell {
    display: flex; gap: 44px; flex-wrap: wrap; justify-content: center;
    padding: 18px 24px;
    font-size: 13.5px; font-weight: 600; letter-spacing: 0.3px;
}
.ribbon span { display: inline-flex; align-items: center; gap: 9px; }
.ribbon .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--oro); flex: none; }

/* -------------------------------------------------------------- catalogue */

.section { padding: 86px 0; }
.section-head { margin-bottom: 40px; }
.section-head .tricolore { margin-bottom: 20px; }
.section-head h2 {
    font-family: 'Archivo', sans-serif;
    font-weight: 900; text-transform: uppercase;
    font-size: clamp(30px, 3.6vw, 46px);
    line-height: 1.0; letter-spacing: -0.032em;
}
.section-head p { margin-top: 16px; color: var(--encre-soft); max-width: 56ch; font-size: 16.5px; }

.filters {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin: 0 0 30px;
}
.filters a {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; border: 1.5px solid var(--latte-dark);
    color: var(--encre-soft);
    padding: 9px 18px; border-radius: 999px;
    font-size: 14px; font-weight: 700; text-decoration: none;
    transition: all 0.2s ease;
}
.filters a:hover { border-color: var(--encre); color: var(--encre); }
.filters a.on { background: var(--nero); border-color: var(--nero); color: var(--latte); }
.filters .n { font-size: 11.5px; opacity: 0.6; font-weight: 600; }

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
    gap: 26px;
}

.card {
    position: relative;
    background: #FFFFFF;
    border-radius: var(--r-lg);
    overflow: hidden;
    display: flex; flex-direction: column;
    border: 1px solid var(--latte-dark);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}
/* la couleur du mélange, filet plein largeur en tête de fiche */
.card::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 4px;
    background: var(--accent); z-index: 2;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(36, 26, 20, 0.13);
}

.card-media {
    aspect-ratio: 1 / 1;
    /* halo à la couleur du mélange, sans aplat blanc : les visuels sont détourés
       et se posent directement sur le fond crème de la page */
    background: radial-gradient(circle at 50% 46%,
        color-mix(in srgb, var(--accent) 12%, transparent), transparent 68%);
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
}
.card-media img {
    width: 100%; height: 100%; object-fit: contain;
    -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent 99%);
            mask-image: linear-gradient(to bottom, #000 88%, transparent 99%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover .card-media img { transform: scale(1.055); }

.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }

.card-brand {
    font-size: 10.5px; font-weight: 800; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--accent);
    margin-bottom: 7px;
    height: 16px; line-height: 16px;   /* figé : une fiche sans torréfacteur ne doit pas décaler sa colonne */
}
.card h3 {
    font-family: 'Archivo', sans-serif;
    font-size: 18px; font-weight: 800; line-height: 1.2;
    letter-spacing: -0.018em; color: var(--encre);
}
.card-meta {
    margin-top: 7px; font-size: 13px; color: var(--encre-soft);
    display: flex; gap: 9px; align-items: center; flex-wrap: wrap;
}
.card-meta .sep { opacity: 0.35; }

/* intensité : le repère que le client cherche vraiment sur un paquet */
.intensity {
    display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
    margin-top: 15px; min-height: 16px;   /* réservé, même sans jauge */
}
/* Sans cela, la jauge impose sa largeur à la colonne et déborde du cadre :
   une carte étroite se laissait traverser par les grains. */
.card-body { min-width: 0; }
.beans { flex: 0 1 auto; }
.intensity .label {
    font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px;
    text-transform: uppercase; color: var(--encre-soft);
}
.beans { display: flex; gap: 3px; }
.bean {
    width: 7px; height: 11px; border-radius: 50% 50% 48% 48% / 42% 42% 58% 58%;
    background: var(--latte-dark);
    transform: rotate(-11deg);
}
.bean.on { background: var(--accent); }

.card-foot {
    margin-top: auto; padding-top: 18px;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 14px;
}
.price { display: flex; flex-direction: column; line-height: 1.05; }
/* Le montant et le prix barré se lisent ensemble : empilés, ils formaient un
   pavé de trois lignes qui écrasait le bas de la carte. */
.price .montants { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.price .amount {
    font-family: 'Archivo', sans-serif;
    font-size: 25px; font-weight: 900; letter-spacing: -0.035em; color: var(--encre);
}
.price .unit {
    font-size: 11px; font-weight: 700; letter-spacing: 0.7px;
    text-transform: uppercase; color: var(--encre-soft); margin-top: 4px;
}

.btn-cart {
    background: var(--nero); color: var(--latte);
    border: 0; border-radius: 999px; padding: 11px 19px;
    font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.btn-cart:hover:not(:disabled) { background: var(--accent); transform: translateY(-1px); }
.btn-cart:disabled { opacity: 0.35; cursor: not-allowed; }

.empty { color: var(--encre-soft); padding: 60px 0; text-align: center; }

/* ------------------------------------------------------------------- pro */

.pro-band {
    background: var(--nero);
    color: var(--latte);
    border-radius: var(--r-lg);
    padding: 46px 48px;
    display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
    position: relative; overflow: hidden;
}
.pro-band::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
    background: linear-gradient(180deg, var(--verde) 0 33.33%, #FFFFFF 33.33% 66.66%, var(--rosso) 66.66% 100%);
}
.pro-band h2 {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(25px, 3vw, 34px); font-weight: 900;
    text-transform: uppercase; letter-spacing: -0.03em; line-height: 1.05;
}
.pro-band p { margin-top: 12px; color: rgba(250, 246, 240, 0.7); max-width: 52ch; }
.pro-band .txt { flex: 1 1 380px; }

/* ------------------------------------------------------------- réassurance */

.values { background: #FFFFFF; border-top: 1px solid var(--latte-dark); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.values-grid h3 {
    font-family: 'Archivo', sans-serif;
    font-size: 17px; font-weight: 800; letter-spacing: -0.015em;
    margin: 16px 0 9px;
}
.values-grid p { color: var(--encre-soft); font-size: 15.5px; }
.values-grid .num {
    font-family: 'Archivo', sans-serif;
    font-size: 13px; font-weight: 900; color: var(--oro);
    letter-spacing: 1px;
}

/* ------------------------------------------------------------------ footer */

.site-footer { background: var(--nero); color: rgba(250, 246, 240, 0.62); padding: 58px 0 30px; }
.footer-grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
    padding-bottom: 34px; border-bottom: 1px solid rgba(250, 246, 240, 0.1);
}
.site-footer .logo img { height: 44px; }
.site-footer h4 {
    font-family: 'Archivo', sans-serif;
    color: var(--latte); font-size: 12px; font-weight: 800;
    letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 15px;
}
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.site-footer a { color: rgba(250, 246, 240, 0.62); text-decoration: none; font-size: 14.5px; }
.site-footer a:hover { color: var(--oro-light); }
.footer-legal {
    padding-top: 22px; display: flex; justify-content: space-between; gap: 18px;
    flex-wrap: wrap; font-size: 13px;
}

/* ----------------------------------------------------------- pages texte */

.page-hero { background: var(--nero); color: var(--latte); padding: 60px 0 54px; }
.page-hero h1 {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(30px, 4vw, 50px); font-weight: 900;
    text-transform: uppercase; letter-spacing: -0.032em; line-height: 1.0;
}
.page-hero .tricolore { margin-bottom: 20px; }

.prose { max-width: 760px; padding: 56px 24px 80px; margin: 0 auto; }
.prose h2 {
    font-family: 'Archivo', sans-serif;
    font-size: 24px; font-weight: 800; letter-spacing: -0.02em;
    margin: 36px 0 12px;
}
.prose h3 { font-family: 'Archivo', sans-serif; font-size: 18px; font-weight: 800; margin: 26px 0 9px; }
.prose p { margin-bottom: 15px; }
.prose ul, .prose ol { margin: 0 0 17px 22px; }
.prose li { margin-bottom: 7px; }
.prose a { color: var(--verde); text-decoration: underline; text-underline-offset: 2px; }
/* Le premier paragraphe donne le ton de la page : il se lit avant le reste,
   il doit s'en distinguer sans hurler. */
.prose .chapo {
    font-size: 19px; line-height: 1.62; color: var(--encre);
    padding-left: 18px; border-left: 3px solid var(--oro);
    margin-bottom: 30px;
}

.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--latte-dark); padding: 9px 12px; text-align: left; }
.prose th { background: var(--latte); font-weight: 700; }

/* ------------------------------------------------------------ diagnostic */

.panel {
    background: #FFFFFF; border: 1px solid var(--latte-dark);
    border-radius: var(--r-md); padding: 26px; margin: 22px 0;
}
.panel h2 {
    font-family: 'Archivo', sans-serif; font-size: 18px; font-weight: 800;
    display: flex; align-items: center; gap: 12px;
}
.badge { font-size: 11.5px; font-weight: 800; padding: 3px 11px; border-radius: 999px; }
.badge.good { background: #E4F3E8; color: var(--verde); }
.badge.warn { background: #FBEAE8; color: var(--rosso); }

.rows { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 15px; }
.rows td { padding: 8px 6px; border-bottom: 1px solid var(--latte); }
.rows tr:last-child td { border-bottom: 0; }
.rows .k { font-weight: 600; }
.rows .v { color: var(--encre-soft); text-align: right; }
.ok { color: var(--verde); }
.ko { color: var(--rosso); }

code {
    background: var(--latte-dark); color: var(--grano);
    padding: 2px 7px; border-radius: var(--r-sm);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.87em;
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; gap: 44px; padding: 60px 24px 70px; }
    .hero-visual { order: -1; }
    .hero-visual img { max-width: 330px; margin: 0 auto; animation: none; }
    .hero-badge { display: none; }
    .values-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .pro-band { padding: 34px 30px; }
}

@media (max-width: 680px) {
    body { font-size: 16px; }
    .nav { display: none; }
    .account-link { margin-left: auto; font-size: 13.5px; }
    .masthead .shell { height: 66px; gap: 14px; }
    .logo img { height: 32px; }
    .section { padding: 58px 0; }
    .cards { grid-template-columns: 1fr; gap: 16px; }
    .card-body { padding: 15px 15px 17px; }
    .card h3 { font-size: 15px; }
    .price .amount { font-size: 20px; }
    .btn-cart { padding: 9px 14px; font-size: 12.5px; }
    .card-foot { flex-direction: column; align-items: stretch; gap: 11px; }
    .btn-cart { width: 100%; }
    .ribbon .shell { gap: 16px; flex-direction: column; align-items: flex-start; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-facts { gap: 22px; }
}

/* ------------------------------------------------------------ espace client */

.auth-wrap { max-width: 520px; margin: 0 auto; padding: 52px 24px 80px; }
.auth-wrap--large { max-width: 820px; }

.auth-card {
    background: #FFFFFF;
    border: 1px solid var(--latte-dark);
    border-radius: var(--r-lg);
    padding: 38px 34px;
}
.auth-card--large { padding: 38px 40px; }
.auth-card .tricolore { margin-bottom: 18px; }
.auth-card h1 {
    font-family: 'Archivo', sans-serif;
    font-size: 30px; font-weight: 900; text-transform: uppercase;
    letter-spacing: -0.03em; line-height: 1.05;
}
.auth-h2 {
    font-family: 'Archivo', sans-serif;
    font-size: 13px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase;
    color: var(--encre-soft); margin: 32px 0 14px;
}
.auth-sous { color: var(--encre-soft); font-size: 15.5px; margin-top: 10px; }

.auth-card label { display: block; margin-top: 18px; font-size: 13px; font-weight: 700; color: var(--encre-soft); }
.auth-card label small { display: block; font-weight: 500; font-size: 12.5px; margin-top: 5px; }
.auth-card input[type="text"], .auth-card input[type="email"],
.auth-card input[type="password"], .auth-card input[type="tel"] {
    display: block; width: 100%; margin-top: 7px;
    font: inherit; font-size: 16px; color: var(--encre);
    border: 1.5px solid var(--latte-dark); border-radius: 9px;
    padding: 12px 14px; background: #fff;
    transition: border-color 0.15s;
}
.auth-card input:focus { border-color: var(--oro); outline: none; }

.auth-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth-duo label { margin-top: 18px; }

.auth-check {
    display: flex; align-items: flex-start; gap: 10px;
    margin-top: 20px !important; font-weight: 500 !important;
    color: var(--encre) !important; font-size: 14.5px !important;
}
.auth-check input { width: 18px; height: 18px; accent-color: var(--oro); flex: none; margin-top: 2px; }

.btn-bloc { width: 100%; margin-top: 24px; }

.auth-erreur {
    background: #FBEAE8; color: var(--rosso);
    border-radius: 9px; padding: 12px 15px;
    font-size: 14.5px; font-weight: 600; margin-top: 18px;
}
.auth-ok {
    background: #E4F3E8; color: var(--verde);
    border-radius: 9px; padding: 14px 16px;
    font-size: 15px; margin-top: 18px;
}
.auth-dev {
    background: var(--latte); border: 1px dashed var(--latte-dark);
    border-radius: 9px; padding: 13px 15px; margin-top: 14px;
    font-size: 13px; color: var(--encre-soft); word-break: break-all;
}
.auth-dev a { color: var(--verde); }

.auth-mentions { margin-top: 16px; font-size: 13px; color: var(--encre-soft); }
.auth-mentions a { color: var(--verde); }

.auth-liens {
    margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--latte);
    font-size: 14.5px; color: var(--encre-soft);
    display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.auth-liens a { color: var(--verde); font-weight: 600; }

.auth-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.auth-table th {
    text-align: left; font-size: 11px; font-weight: 800; letter-spacing: 1px;
    text-transform: uppercase; color: var(--encre-soft);
    padding-bottom: 10px; border-bottom: 1px solid var(--latte-dark);
}
.auth-table td { padding: 12px 0; border-bottom: 1px solid var(--latte); }
.auth-table tr:last-child td { border-bottom: 0; }

.auth-vide { color: var(--encre-soft); padding: 20px 0; }
.auth-vide a { color: var(--verde); font-weight: 600; }

@media (max-width: 560px) {
    .auth-card { padding: 28px 22px; }
    .auth-duo { grid-template-columns: 1fr; }
}

.dluo {
    color: var(--rosso); font-weight: 700;
    font-size: 12px; letter-spacing: 0.3px;
}

/* ------------------------------------------------------------ fiche produit */

.fiche { padding: 34px 0 70px; }

.fil { font-size: 13.5px; color: var(--encre-soft); margin-bottom: 26px; display: flex; gap: 8px; flex-wrap: wrap; }
.fil a { text-decoration: none; }
.fil a:hover { color: var(--encre); }
.fil .sep, .fil span:last-child { opacity: 0.6; }

.fiche-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 54px; align-items: start; }

.fiche-photo {
    background: radial-gradient(circle at 50% 46%,
        color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
    border-radius: var(--r-lg);
    aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
    padding: 26px;
}
.fiche-photo img { width: 100%; height: 100%; object-fit: contain; }

.fiche-vignettes { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.fiche-vignettes button {
    width: 72px; height: 72px; padding: 6px; cursor: pointer;
    background: #fff; border: 1.5px solid var(--latte-dark); border-radius: 10px;
    transition: border-color 0.18s;
}
.fiche-vignettes button:hover { border-color: var(--accent); }
.fiche-vignettes button.on { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 24%, transparent); }
.fiche-vignettes img { width: 100%; height: 100%; object-fit: contain; }

.fiche-marque {
    font-size: 11px; font-weight: 800; letter-spacing: 1.6px;
    text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.fiche-infos h1 {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(30px, 3.8vw, 46px); font-weight: 900;
    text-transform: uppercase; letter-spacing: -0.035em; line-height: 1.0;
}
.fiche-meta {
    margin-top: 14px; font-size: 14.5px; color: var(--encre-soft);
    display: flex; gap: 9px; flex-wrap: wrap; align-items: center;
}
.fiche-intensity { margin-top: 20px; height: auto; }
.fiche-intensity .label { font-size: 11.5px; }
.fiche-intensity .bean { width: 9px; height: 14px; }

.fiche-achat {
    margin-top: 28px; padding: 24px;
    background: #fff; border: 1px solid var(--latte-dark); border-radius: var(--r-lg);
}
.fiche-prix { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.fiche-prix .montant {
    font-family: 'Archivo', sans-serif;
    font-size: 40px; font-weight: 900; letter-spacing: -0.04em; line-height: 1;
}
.fiche-prix .unite {
    font-size: 12px; font-weight: 700; letter-spacing: 0.8px;
    text-transform: uppercase; color: var(--encre-soft);
}
.fiche-prix .ht { margin-left: auto; font-size: 13.5px; color: var(--encre-soft); }

.fiche-stock { margin: 14px 0 18px; font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.fiche-stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; }
.fiche-stock.ok { color: var(--verde); }
.fiche-stock.ok::before { background: var(--verde); }
.fiche-stock.ko { color: var(--rosso); }
.fiche-stock.ko::before { background: var(--rosso); }
.fiche-stock.bas { color: var(--rosso); }
.fiche-stock.bas::before { background: var(--rosso); animation: stock-bas 1.4s ease-in-out infinite; }
@keyframes stock-bas { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .fiche-stock.bas::before { animation: none; } }

.fiche-texte { margin-top: 26px; color: var(--encre-soft); font-size: 16px; }
.fiche-points { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.fiche-points li {
    display: flex; align-items: center; gap: 11px;
    font-size: 15px; color: var(--encre-soft);
}
.fiche-points li::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent); flex: none;
}

.fiche-suite { margin-top: 74px; }
.fiche-suite h2 {
    font-family: 'Archivo', sans-serif;
    font-size: 26px; font-weight: 900; text-transform: uppercase;
    letter-spacing: -0.03em; margin: 18px 0 26px;
}

/* filtrage sans rechargement : légère atténuation le temps de la réponse */
.cards--chargement { opacity: 0.45; transition: opacity 0.15s; pointer-events: none; }
.cards { transition: opacity 0.15s; }

.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card-media { display: flex; }

@media (max-width: 900px) {
    .fiche-grid { grid-template-columns: 1fr; gap: 32px; }
    .fiche-suite { margin-top: 48px; }
}

/* ------------------------------------------------------------------- faq */

.faq { background: #FFFFFF; border-top: 1px solid var(--latte-dark); }
.faq-liste { display: grid; gap: 12px; }
.faq details {
    border: 1px solid var(--latte-dark); border-radius: var(--r-md);
    background: var(--latte); overflow: hidden;
}
.faq summary {
    cursor: pointer; list-style: none;
    padding: 18px 22px; font-weight: 700; font-size: 16.5px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+'; font-family: 'Archivo', sans-serif; font-size: 22px;
    color: var(--oro); flex: none; line-height: 1;
}
.faq details[open] summary::after { content: '–'; }
.faq details[open] summary { border-bottom: 1px solid var(--latte-dark); }
.faq details p { padding: 16px 22px 20px; color: var(--encre-soft); font-size: 16px; }

/* ------------------------------------------------------------ tiroir panier */

.tiroir-voile {
    position: fixed; inset: 0; z-index: 60;
    background: rgba(15, 11, 9, 0.5);
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease;
    backdrop-filter: blur(2px);
}
.tiroir-voile.visible { opacity: 1; pointer-events: auto; }

.tiroir {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 70;
    width: min(440px, 100vw);
    background: var(--latte);
    display: flex; flex-direction: column;
    transform: translateX(101%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.25);
}
.tiroir.ouvert { transform: translateX(0); }
body.tiroir-ouvert { overflow: hidden; }

.tiroir-tete {
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px 24px; background: var(--nero); color: var(--latte);
}
.tiroir-tete h2 {
    font-family: 'Archivo', sans-serif;
    font-size: 15px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase;
}
.tiroir-fermer {
    background: none; border: 0; color: var(--oro);
    font-size: 30px; line-height: 1; cursor: pointer; padding: 0 4px;
}

.tiroir-corps { flex: 1; overflow-y: auto; padding: 20px 24px 24px; transition: opacity 0.15s; }
.tiroir-corps.chargement { opacity: 0.45; pointer-events: none; }

.tiroir-vide { text-align: center; padding: 50px 0; color: var(--encre-soft); }
.tiroir-vide p { margin-bottom: 22px; }

.tiroir-seuil { font-size: 14px; color: var(--encre-soft); margin-bottom: 8px; }
.tiroir-seuil strong { color: var(--encre); }
.tiroir-seuil.ok { color: var(--verde); font-weight: 700; }
.tiroir-jauge { height: 5px; background: var(--latte-dark); border-radius: 999px; overflow: hidden; margin-bottom: 20px; }
.tiroir-jauge span { display: block; height: 100%; background: var(--oro); transition: width 0.3s ease; }

.tiroir-alerte {
    background: #FBEAE8; color: var(--rosso);
    border-radius: 9px; padding: 10px 13px;
    font-size: 13.5px; font-weight: 600; margin-bottom: 16px;
}

.tiroir-lignes { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.tiroir-lignes li { display: grid; grid-template-columns: 64px 1fr auto; gap: 13px; align-items: start; }
.tiroir-photo {
    width: 64px; height: 64px; border-radius: 10px;
    background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
    display: flex; align-items: center; justify-content: center; padding: 5px;
}
.tiroir-photo img { width: 100%; height: 100%; object-fit: contain; }
.tiroir-infos { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tiroir-nom { font-weight: 700; font-size: 15px; text-decoration: none; line-height: 1.25; }
.tiroir-nom:hover { color: var(--accent); }
.tiroir-detail { font-size: 12.5px; color: var(--encre-soft); }
.tiroir-qty { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.tiroir-qty button {
    width: 26px; height: 26px; border-radius: 7px; cursor: pointer;
    background: #fff; border: 1px solid var(--latte-dark);
    font: inherit; font-size: 15px; font-weight: 700; line-height: 1;
}
.tiroir-qty button:hover:not(:disabled) { border-color: var(--accent); }
.tiroir-qty button:disabled { opacity: 0.35; cursor: not-allowed; }
.tiroir-qty span { min-width: 22px; text-align: center; font-weight: 700; font-size: 14px; }
.tiroir-suppr {
    width: auto !important; padding: 0 9px; font-size: 12px !important;
    font-weight: 600 !important; color: var(--encre-soft); margin-left: 4px;
}
.tiroir-suppr:hover { color: var(--rosso); border-color: var(--rosso) !important; }
.tiroir-total { font-weight: 800; font-size: 15px; white-space: nowrap; }

.tiroir-pied { border-top: 1px solid var(--latte-dark); margin-top: 24px; padding-top: 18px; }
.tiroir-ligne { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14.5px; color: var(--encre-soft); }
.tiroir-ligne strong { color: var(--encre); }
.tiroir-ligne.total {
    border-top: 1px solid var(--latte-dark); margin-top: 8px; padding-top: 12px;
    font-size: 17px; color: var(--encre);
}
.tiroir-ligne.total strong { font-family: 'Archivo', sans-serif; font-size: 22px; font-weight: 900; letter-spacing: -0.03em; }
.tiroir-pied .btn { margin-top: 16px; }
.tiroir-mention { text-align: center; font-size: 12.5px; color: var(--encre-soft); margin-top: 11px; }

.cart-toggle .count.vide { opacity: 0.45; }

/* ------------------------------------------------------------------ tunnel */

.tunnel { padding: 34px 0 80px; }
.tunnel-tete { margin-bottom: 26px; }
.tunnel-tete h1 {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(28px, 3.6vw, 42px); font-weight: 900;
    text-transform: uppercase; letter-spacing: -0.035em; line-height: 1;
    margin-top: 16px;
}
.tunnel-sous { color: var(--encre-soft); margin-top: 12px; }
.tunnel-sous a { color: var(--verde); font-weight: 600; }

.tunnel-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 34px; align-items: start; }

.tunnel-bloc {
    background: #fff; border: 1px solid var(--latte-dark);
    border-radius: var(--r-lg); padding: 26px; margin-bottom: 20px;
}
.tunnel-bloc h2 {
    font-family: 'Archivo', sans-serif;
    font-size: 12.5px; font-weight: 800; letter-spacing: 1.4px;
    text-transform: uppercase; color: var(--encre-soft); margin-bottom: 18px;
}
.tunnel-bloc label { display: block; margin-bottom: 16px; font-size: 13px; font-weight: 700; color: var(--encre-soft); }
.tunnel-bloc label small { display: block; font-weight: 500; font-size: 12.5px; margin-top: 5px; }
.tunnel-bloc label em {
    display: block; font-style: normal; font-weight: 600;
    font-size: 12.5px; color: var(--rosso); margin-top: 5px;
}
.tunnel-bloc input, .tunnel-bloc textarea {
    display: block; width: 100%; margin-top: 7px;
    font: inherit; font-size: 16px; color: var(--encre);
    border: 1.5px solid var(--latte-dark); border-radius: 9px;
    padding: 12px 14px; background: #fff;
}
.tunnel-bloc input:focus, .tunnel-bloc textarea:focus { border-color: var(--oro); outline: none; }
.tunnel-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.tunnel-recap {
    background: #fff; border: 1px solid var(--latte-dark);
    border-radius: var(--r-lg); padding: 26px;
    position: sticky; top: 100px;
}
.tunnel-recap h2 {
    font-family: 'Archivo', sans-serif;
    font-size: 12.5px; font-weight: 800; letter-spacing: 1.4px;
    text-transform: uppercase; color: var(--encre-soft); margin-bottom: 18px;
}
.tunnel-recap ul { list-style: none; display: flex; flex-direction: column; gap: 13px; margin-bottom: 18px; }
.tunnel-recap li { display: grid; grid-template-columns: 48px 1fr auto; gap: 11px; align-items: center; font-size: 14.5px; }
.tunnel-recap li img { width: 48px; height: 48px; object-fit: contain; }
.r-nom em { font-style: normal; color: var(--encre-soft); font-size: 13px; }
.r-prix { font-weight: 700; white-space: nowrap; }
.r-ligne {
    display: flex; justify-content: space-between; padding: 6px 0;
    font-size: 14.5px; color: var(--encre-soft);
    border-top: 1px solid var(--latte);
}
.r-ligne.petit { font-size: 13px; border-top: 0; padding-top: 0; }
.r-ligne strong { color: var(--encre); }
.r-ligne.total { font-size: 17px; color: var(--encre); padding-top: 12px; }
.r-ligne.total strong { font-family: 'Archivo', sans-serif; font-size: 24px; font-weight: 900; letter-spacing: -0.035em; }
.r-seuil { font-size: 13px; color: var(--encre-soft); padding: 8px 0; }
.r-mention { text-align: center; font-size: 12.5px; color: var(--encre-soft); margin-top: 12px; }
.r-mention a { color: var(--verde); }
.tunnel-recap .btn { margin-top: 18px; }

.panier-lignes { display: flex; flex-direction: column; gap: 16px; }
.panier-ligne {
    display: grid; grid-template-columns: 90px 1fr auto auto; gap: 18px; align-items: center;
    background: #fff; border: 1px solid var(--latte-dark); border-radius: var(--r-md); padding: 16px;
}
.panier-photo {
    width: 90px; height: 90px; border-radius: 10px;
    background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 70%);
    display: flex; align-items: center; justify-content: center; padding: 6px;
}
.panier-photo img { width: 100%; height: 100%; object-fit: contain; }
.panier-infos { display: flex; flex-direction: column; gap: 4px; }
.panier-infos a { font-weight: 700; text-decoration: none; }
.panier-infos span { font-size: 13.5px; color: var(--encre-soft); }
.panier-qty { display: flex; gap: 7px; align-items: center; }
.panier-qty input { width: 66px; padding: 8px; border: 1.5px solid var(--latte-dark); border-radius: 8px; font: inherit; text-align: center; }
.panier-qty button {
    background: var(--nero); color: var(--latte); border: 0; border-radius: 8px;
    padding: 9px 13px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.panier-total { font-family: 'Archivo', sans-serif; font-size: 19px; font-weight: 900; letter-spacing: -0.03em; }

/* --------------------------------------------------------------- merci */

.merci { text-align: center; padding: 40px 0 30px; }
.merci .tricolore { margin: 0 auto 22px; }
.merci h1 {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(30px, 4vw, 46px); font-weight: 900;
    text-transform: uppercase; letter-spacing: -0.035em; line-height: 1;
}
.merci-sous { color: var(--encre-soft); margin-top: 16px; font-size: 16.5px; }
.merci-ref { margin-top: 20px; font-size: 14px; color: var(--encre-soft); }
.merci-ref strong { font-family: ui-monospace, monospace; color: var(--encre); }
.merci.ok h1 { color: var(--verde); }
.merci.ko h1 { color: var(--rosso); }

.panel-recap {
    background: #fff; border: 1px solid var(--latte-dark);
    border-radius: var(--r-lg); padding: 26px; margin-top: 24px;
}
.panel-recap h2 {
    font-family: 'Archivo', sans-serif;
    font-size: 12.5px; font-weight: 800; letter-spacing: 1.4px;
    text-transform: uppercase; color: var(--encre-soft); margin: 22px 0 12px;
}
.panel-recap h2:first-child { margin-top: 0; }
.panel-recap table { width: 100%; border-collapse: collapse; font-size: 15px; }
.panel-recap td { padding: 8px 0; border-bottom: 1px solid var(--latte); }
.panel-recap td em { font-style: normal; color: var(--encre-soft); }
.panel-recap .droite { text-align: right; white-space: nowrap; }
.panel-recap tr.total td { font-weight: 800; font-size: 17px; border-bottom: 0; padding-top: 14px; }
.adresse { font-size: 15px; line-height: 1.7; color: var(--encre-soft); }
.merci-note { margin-top: 14px; font-size: 13.5px; color: var(--encre-soft); }

@media (max-width: 900px) {
    .tunnel-grid { grid-template-columns: 1fr; }
    .tunnel-recap { position: static; }
    .panier-ligne { grid-template-columns: 70px 1fr; grid-template-areas: "photo infos" "qty total"; }
    .panier-photo { grid-area: photo; width: 70px; height: 70px; }
    .panier-infos { grid-area: infos; }
    .panier-qty { grid-area: qty; }
    .panier-total { grid-area: total; text-align: right; }
    .tunnel-duo { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------- consentement */

.consent {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
    max-width: 720px; margin: 0 auto;
    background: var(--nero); color: var(--latte);
    border-radius: var(--r-lg);
    padding: 22px 24px;
    display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transform: translateY(140%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.consent.visible { transform: translateY(0); }
.consent-txt { flex: 1 1 340px; }
.consent-txt strong {
    display: block; font-family: 'Archivo', sans-serif;
    font-size: 12px; font-weight: 800; letter-spacing: 1.4px;
    text-transform: uppercase; color: var(--oro); margin-bottom: 8px;
}
.consent-txt p { font-size: 13.5px; line-height: 1.55; color: rgba(250, 246, 240, 0.72); }
.consent-actions { display: flex; gap: 10px; flex: 0 0 auto; }
/* Refuser et accepter ont le même poids : c'est une exigence, pas un choix de style. */
.consent-btn {
    font: inherit; font-size: 14.5px; font-weight: 700;
    padding: 13px 26px; border-radius: 999px; cursor: pointer;
    background: transparent; color: var(--latte);
    border: 1.5px solid rgba(250, 246, 240, 0.35);
    transition: all 0.18s ease;
}
.consent-btn:hover { border-color: var(--latte); }
.consent-oui { background: var(--oro); border-color: var(--oro); color: var(--nero); }
.consent-oui:hover { background: var(--oro-light); border-color: var(--oro-light); }

@media (max-width: 620px) {
    .consent { padding: 18px 20px; gap: 16px; }
    .consent-actions { width: 100%; }
    .consent-btn { flex: 1; padding: 13px 12px; }
}

/* -------------------------------------------------------------- menu mobile */

.burger {
    display: none;
    background: none; border: 0; cursor: pointer;
    padding: 8px; margin-left: -8px;
    flex-direction: column; gap: 5px;
}
.burger span {
    display: block; width: 22px; height: 2px; border-radius: 2px;
    background: var(--latte);
    transition: transform 0.25s ease, opacity 0.2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Panneau plein écran : le dépliant poussait le contenu et laissait le
   catalogue visible derrière, ce qui rendait la lecture confuse. */
.menu-mobile {
    display: none;
    position: fixed; inset: 0; z-index: 80;
    background: var(--nero);
    overflow-y: auto;
    padding: 90px 0 40px;
    opacity: 0; visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
}
.menu-mobile.ouvert { opacity: 1; visibility: visible; }
body.menu-ouvert { overflow: hidden; }

.menu-titre {
    padding: 22px 24px 8px;
    font-family: 'Archivo', sans-serif;
    font-size: 11px; font-weight: 800; letter-spacing: 1.6px;
    text-transform: uppercase; color: var(--oro);
}
.menu-titre:first-child { padding-top: 6px; }
.menu-mobile a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px 24px;
    color: var(--latte); text-decoration: none;
    font-size: 17px; font-weight: 600;
    border-bottom: 1px solid rgba(250, 246, 240, 0.07);
}
.menu-mobile a:active { background: rgba(255, 255, 255, 0.06); }
.menu-mobile a span {
    font-size: 12.5px; font-weight: 700;
    color: rgba(250, 246, 240, 0.4);
}

@media (max-width: 680px) {
    /* Trois zones de largeur égale : le logo tombe au centre quoi qu'il arrive,
       le menu à gauche, le panier à droite. Tout aligné à gauche donnait un
       en-tête déséquilibré, avec le burger collé au panier. */
    .masthead .shell {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 8px;
        height: 62px;
    }
    /* Le logo reste premier dans le code, pour le référencement et les lecteurs
       d'écran ; seul l'ordre visuel change. */
    .burger { display: flex; justify-self: start; order: 1; }
    .masthead .logo { justify-self: center; order: 2; }
    .cart-toggle { order: 3; }
    .logo img { height: 30px; }
    .nav, .account-link { display: none; }
    /* Le mot « Panier » venait toucher le logo : le dessin prend sa place et
       rend au titre l'air qui lui manquait. */
    .cart-toggle { justify-self: end; padding: 9px 13px; gap: 7px; }
    .cart-toggle .cart-mot { display: none; }
    .cart-icone { display: block; }
    .cart-toggle .count { min-width: 18px; font-size: 11px; }

    .menu-mobile { display: block; padding-top: 78px; }

    /* le burger reste cliquable par-dessus le panneau ouvert */
    .masthead { z-index: 85; }
}


/* ---------------------------------------------------- faq pleine largeur */

.faq-tete h2 { max-width: none; }
.faq-tete p { max-width: 62ch; }

/* ------------------------------------------------ filtres, forme mobile */

.filters-mobile { display: none; margin-bottom: 26px; }
.filters-mobile label {
    display: block; font-size: 11px; font-weight: 800; letter-spacing: 1.2px;
    text-transform: uppercase; color: var(--encre-soft); margin-bottom: 8px;
}
.filters-mobile select {
    width: 100%; font: inherit; font-size: 16px; font-weight: 600;
    color: var(--encre); background: #fff;
    border: 1.5px solid var(--latte-dark); border-radius: 12px;
    padding: 14px 44px 14px 16px;
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%236E5F53' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 17px center;
}
.filters-mobile select:focus { border-color: var(--oro); outline: none; }

@media (max-width: 680px) {
    .filters { display: none; }
    .filters-mobile { display: block; }

    /* Une carte par ligne. À deux, le texte se serrait et la jauge d'intensité
       sortait du cadre : la largeur revient au contenu plutôt qu'au nombre. */
    .cards { grid-template-columns: 1fr; gap: 16px; }
    .card-media { aspect-ratio: 4 / 3; padding: 14px; }
    .card-body { padding: 16px 18px 18px; }
    .card h3 { font-size: 17px; }
    .card-brand { font-size: 10px; letter-spacing: 1.2px; }
    .card-meta { font-size: 13px; gap: 7px; }
    .price .amount { font-size: 22px; }
    .price .unit { font-size: 11px; }
    .card-sans-photo em { font-size: 66px; }
    /* En une colonne, plus rien à aligner d'une carte à l'autre : la ligne
       réservée à la jauge laissait un trou visible sous les cafés qui n'en
       ont pas. */
    .intensity.vide { display: none; }
    .faq summary { padding: 15px 17px; font-size: 15px; }
    .faq details p { padding: 14px 17px 17px; font-size: 15px; }
}

/* --------------------------------------------------------- mon compte */

.compte-chiffres {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
    background: #fff; border: 1px solid var(--latte-dark);
    border-radius: var(--r-lg); padding: 24px; margin-bottom: 34px;
}
.compte-chiffres div { display: flex; flex-direction: column; gap: 4px; }
.compte-chiffres .k {
    font-family: 'Archivo', sans-serif;
    font-size: 25px; font-weight: 900; letter-spacing: -0.03em; line-height: 1;
}
.compte-chiffres .v {
    font-size: 11.5px; font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase; color: var(--encre-soft);
}

.compte-h2 {
    font-family: 'Archivo', sans-serif;
    font-size: 13px; font-weight: 800; letter-spacing: 1.4px;
    text-transform: uppercase; color: var(--encre-soft); margin-bottom: 16px;
}

.achats { display: flex; flex-direction: column; gap: 10px; }

.achat {
    background: #fff; border: 1px solid var(--latte-dark);
    border-radius: var(--r-md); overflow: hidden;
}
.achat summary {
    cursor: pointer; list-style: none;
    display: grid; grid-template-columns: 92px 1fr auto auto;
    gap: 14px; align-items: center;
    padding: 16px 20px;
}
.achat summary::-webkit-details-marker { display: none; }
.achat[open] summary { border-bottom: 1px solid var(--latte); }
.achat-date { font-size: 13.5px; color: var(--encre-soft); white-space: nowrap; }
.achat-ref { font-weight: 700; font-size: 14.5px; }
.achat-ref em {
    display: block; font-style: normal; font-weight: 500;
    font-size: 11.5px; color: var(--encre-soft);
}
.achat-etat {
    font-size: 10.5px; font-weight: 800; letter-spacing: 0.5px;
    text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
    background: var(--latte-dark); color: var(--encre-soft); white-space: nowrap;
}
.etat-paid, .etat-delivered { background: #E4F3E8; color: var(--verde); }
.etat-shipped   { background: #E2ECF7; color: #1F4E96; }
.etat-preparing { background: #FBF2DC; color: #8A6A12; }
.etat-cancelled, .etat-refunded { background: #FBEAE8; color: var(--rosso); }
.achat-total {
    font-family: 'Archivo', sans-serif;
    font-size: 18px; font-weight: 900; letter-spacing: -0.03em; white-space: nowrap;
}

.achat-detail { padding: 6px 20px 20px; }
.achat-detail table { width: 100%; border-collapse: collapse; font-size: 15px; }
.achat-detail td { padding: 10px 0; border-bottom: 1px solid var(--latte); }
.achat-detail tr:last-child td { border-bottom: 0; }
.achat-detail a { text-decoration: none; font-weight: 600; }
.achat-detail a:hover { color: var(--oro); }
.achat-detail .ref {
    display: block; font-size: 11.5px; color: var(--encre-soft);
    font-family: ui-monospace, monospace;
}
.achat-detail .qte { color: var(--encre-soft); white-space: nowrap; text-align: center; }
.achat-detail .prix { text-align: right; white-space: nowrap; font-weight: 600; }
.achat-detail .port td { color: var(--encre-soft); }
.achat-vide { font-size: 14px; color: var(--encre-soft); padding: 12px 0; }

.achat-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 16px; }
.achat-actions .btn-cart { font-size: 13px; padding: 9px 16px; }

@media (max-width: 680px) {
    .compte-chiffres { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
    .compte-chiffres .k { font-size: 21px; }
    .achat summary {
        grid-template-columns: 1fr auto;
        grid-template-areas: "ref total" "date etat";
        gap: 6px 12px; padding: 14px 16px;
    }
    .achat-ref { grid-area: ref; }
    .achat-total { grid-area: total; }
    .achat-date { grid-area: date; }
    .achat-etat { grid-area: etat; justify-self: end; }
    .achat-detail { padding: 6px 16px 16px; }
}

/* ---------------------------------------------------------------- whatsapp */

.whatsapp {
    position: fixed; right: 20px; bottom: 20px; z-index: 55;
    display: inline-flex; align-items: center; gap: 0;
    height: 56px; padding: 0 15px;
    background: #25D366; color: #fff;
    border-radius: 999px; text-decoration: none;
    box-shadow: 0 8px 26px rgba(37, 211, 102, 0.4);
    transition: gap 0.28s cubic-bezier(0.22, 1, 0.36, 1),
                padding 0.28s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp svg { flex: none; }
/* Le libellé se déplie au survol : au repos, le bouton reste une pastille et
   ne mange pas la lecture du catalogue. */
.whatsapp span {
    max-width: 0; overflow: hidden; white-space: nowrap;
    font-size: 15px; font-weight: 700;
    transition: max-width 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.whatsapp:hover, .whatsapp:focus-visible {
    gap: 10px; padding: 0 22px 0 18px;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}
.whatsapp:hover span, .whatsapp:focus-visible span { max-width: 180px; }

/* Le panier ouvert et son voile passent devant. */
body.tiroir-ouvert .whatsapp,
body.menu-ouvert .whatsapp { display: none; }

/* Le bandeau de consentement occupe le bas de l'écran : on remonte le bouton
   tant qu'il est affiché, sinon les deux se chevauchent. */
body:has(.consent.visible) .whatsapp { bottom: 132px; }

@media (max-width: 680px) {
    .whatsapp { right: 14px; bottom: 14px; height: 52px; padding: 0 13px; }
    .whatsapp span { display: none; }
    body:has(.consent.visible) .whatsapp { bottom: 200px; }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp, .whatsapp span { transition: none; }
}

/* ------------------------------------------------------- modes de livraison */

.modes { display: flex; flex-direction: column; gap: 10px; }

.mode {
    display: grid; grid-template-columns: auto 1fr auto;
    gap: 14px; align-items: center;
    margin: 0 !important; padding: 16px 18px;
    border: 1.5px solid var(--latte-dark); border-radius: var(--r-md);
    cursor: pointer; background: #fff;
    transition: border-color 0.18s ease, background 0.18s ease;
}
.mode:hover { border-color: var(--encre-soft); }
.mode.on { border-color: var(--oro); background: #FFFCF4; }
.mode input { width: 19px; height: 19px; margin: 0; accent-color: var(--oro); flex: none; }

.mode-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mode-txt strong { font-size: 15.5px; color: var(--encre); font-weight: 700; }
.mode-txt em { font-style: normal; font-size: 13px; color: var(--encre-soft); line-height: 1.45; }
.mode-prix {
    font-family: 'Archivo', sans-serif;
    font-size: 16px; font-weight: 800; letter-spacing: -0.02em;
    white-space: nowrap; color: var(--encre);
}

/* Les pages éditoriales ont des sous-titres depuis la reprise des points relais. */
.prose h4 {
    font-family: 'Archivo', sans-serif;
    font-size: 16px; font-weight: 800; letter-spacing: -0.015em;
    margin: 22px 0 6px;
}

@media (max-width: 560px) {
    .mode { grid-template-columns: auto 1fr; row-gap: 8px; padding: 14px; }
    .mode-prix { grid-column: 2; justify-self: start; }
}

/* ------------------------------------------------- café en attente de photo */
/* Une initiale assumée dans la couleur du café, plutôt qu'un cadre vide. On ne
   reprend jamais la photo d'un autre conditionnement : le client verrait un
   paquet qu'il ne recevra pas. Le format est répété sous la lettre, parce que
   c'est l'information que la photo aurait donnée d'un coup d'œil. */

/* Le bloc vit dans le lien de la vignette, et une décoration de texte posée par
   un ancêtre ne peut pas être annulée depuis l'enfant : c'est donc le lien
   lui-même qu'il faut désouligner, sans quoi la lettre est barrée d'un trait. */
.card-media { text-decoration: none; }

.card-sans-photo {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; width: 100%; height: 100%;
}
.card-sans-photo em {
    font-family: 'Archivo', sans-serif;
    font-style: normal; font-weight: 700; font-size: 72px; line-height: 1;
    letter-spacing: -0.03em;
    color: color-mix(in srgb, var(--accent) 52%, #fff);
}
.card-sans-photo small {
    font-size: 11.5px; letter-spacing: 0.04em;
    color: color-mix(in srgb, var(--accent) 66%, #fff);
}
.card-sans-photo.grand em    { font-size: 160px; }
.card-sans-photo.grand small { font-size: 13px; letter-spacing: 0.12em; }

@media (max-width: 720px) {
    .card-sans-photo em       { font-size: 56px; }
    .card-sans-photo.grand em { font-size: 108px; }
}

/* ------------------------------------------------------------- fin de DLUO */
/* Le prix barré et le pourcentage sont la même information dite deux fois :
   l'un rassure sur la valeur, l'autre sur l'affaire. La pastille se pose sur
   la vignette, là où l'œil arrive en premier dans la grille. */

.card { position: relative; }

.card-remise {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    padding: 5px 10px; border-radius: 999px;
    background: var(--rosso, #C0392B); color: #fff;
    font-size: 12px; font-weight: 800; letter-spacing: 0.02em;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
}

.price .barre,
.fiche-prix .barre {
    text-decoration: line-through;
    color: var(--encre-soft);
    font-weight: 500;
}
.price .barre { font-size: 14px; }

.fiche-prix .barre  { font-size: 19px; margin-left: 10px; }
.fiche-prix .remise {
    margin-left: 10px; padding: 4px 10px; border-radius: 999px;
    background: var(--rosso, #C0392B); color: #fff;
    font-size: 13px; font-weight: 800; vertical-align: 3px;
}

/* ------------------------------------------------------ passage vers le pro */
/* L'espace professionnel est un autre site, pour un autre public. Aligné comme
   une rubrique de plus, il se lisait comme une rubrique de plus : le contour
   doré dit qu'on quitte la boutique sans crier plus fort que le panier. */

.nav-pro {
    /* La pastille ajoute treize pixels de chaque côté de son texte : sans
       marge négative, le mot « Espace pro » se retrouvait à 44 px de ses
       voisins, contre 26 pour tous les autres. L'œil voyait un trou. */
    margin: 0 -9px; padding: 6px 13px;
    border: 1px solid rgba(201, 162, 39, 0.5); border-radius: 999px;
    color: var(--oro-light) !important;
}
.nav-pro:hover {
    border-color: var(--oro); background: rgba(201, 162, 39, 0.12);
}

.menu-mobile .menu-pro {
    color: var(--oro); font-weight: 700;
}
.menu-mobile .menu-pro::after { content: ' ›'; }

/* ------------------------------------------------- grains portés par l'air */
/* Le hero était figé : une image et du texte. Quelques grains qui montent
   lentement suffisent à donner de la vie, sans détourner du titre. Ils sont en
   CSS pur, chacun avec sa durée et son retard, pour qu'aucun ne batte la
   mesure avec un autre. */

.hero-grains {
    position: absolute; inset: 0; overflow: hidden;
    pointer-events: none; z-index: 0;
}

.grain {
    position: absolute; bottom: -40px;
    width: 13px; height: 18px;
    border-radius: 50% 50% 48% 48% / 42% 42% 58% 58%;
    background: linear-gradient(150deg, #9A7048, #4A2F1C);
    opacity: 0;
    animation: grain-monte linear infinite;
    will-change: transform, opacity;
}
/* la fente du grain, ce qui le distingue d'un galet */
.grain::before {
    content: ''; position: absolute; inset: 3px 45% 3px 45%;
    background: rgba(20, 12, 7, 0.55);
    border-radius: 999px;
}

@keyframes grain-monte {
    0%   { transform: translate(0, 0) rotate(0deg) scale(0.9); opacity: 0; }
    12%  { opacity: 0.72; }
    35%  { transform: translate(26px, -34vh) rotate(120deg) scale(1); }
    68%  { transform: translate(-18px, -72vh) rotate(230deg) scale(1.04); }
    85%  { opacity: 0.42; }
    100% { transform: translate(8px, -108vh) rotate(330deg) scale(1.05); opacity: 0; }
}

/* Chacun sa colonne, sa vitesse et son retard : sans cela, neuf grains partent
   ensemble et le hasard disparaît. */
.grain.g1 { left:  6%; animation-duration: 20s; animation-delay:  0s;   transform: scale(0.75); }
.grain.g2 { left: 17%; animation-duration: 26s; animation-delay: -6s;   }
.grain.g3 { left: 29%; animation-duration: 17s; animation-delay: -12s;  }
.grain.g4 { left: 41%; animation-duration: 29s; animation-delay: -3s;   }
.grain.g5 { left: 55%; animation-duration: 22s; animation-delay: -17s;  }
.grain.g6 { left: 67%; animation-duration: 31s; animation-delay: -9s;   }
.grain.g7 { left: 78%; animation-duration: 18s; animation-delay: -21s;  }
.grain.g8 { left: 88%; animation-duration: 24s; animation-delay: -14s;  }
.grain.g9 { left: 95%; animation-duration: 28s; animation-delay: -25s;  }

.grain.g2, .grain.g5, .grain.g8 { width: 10px; height: 14px; }
.grain.g3, .grain.g7            { width: 16px; height: 21px; }

@media (prefers-reduced-motion: reduce) {
    .grain { animation: none; opacity: 0.22; }
}

/* Sur téléphone, la moitié suffit : l'écran est étroit et la batterie compte. */
@media (max-width: 680px) {
    .grain.g4, .grain.g6, .grain.g8, .grain.g9 { display: none; }
}

/* ------------------------------------------------------ vidéo dans le hero */

.hero-video {
    width: 100%; max-width: 470px; aspect-ratio: 1;
    object-fit: cover; border-radius: var(--r-lg);
    display: block; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
