/*
 * vitrine-mix.css — fiches VITRINE « mix » (cuvee + domaine), maquette 2026-10-01.
 * Charte habituelle du site ; une carte par type d'information, chapitres et sommaire collant.
 */
:root {
    --primary-dark: #1a1f2e; --accent-wine: #7C0A29; --accent-wine-dark: #5f0820; --accent-copper: #A0522D;
    --bg-main: #faf7f5; --bg-soft: #f5eee9; --bg-tile: #f7f5f4;
    --text-primary: #2c1810; --text-secondary: #5a4a42; --text-tertiary: #8b7d77;
    --border-light: #e8ddd6; --border-medium: #d4c4ba;
    --vert: #2f6b3d; --vert-bg: #e8f3ea;
    --shadow-sm: 0 1px 3px 0 rgba(124,10,41,.1), 0 1px 2px 0 rgba(124,10,41,.06);
    --shadow-md: 0 4px 6px -1px rgba(124,10,41,.1), 0 2px 4px -1px rgba(124,10,41,.06);
    --shadow-lg: 0 10px 15px -3px rgba(124,10,41,.1), 0 4px 6px -2px rgba(124,10,41,.05);
    --grad: linear-gradient(135deg, #7C0A29 0%, #A0522D 100%);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 140px; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg-main); color: var(--text-primary); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.ico { width: 1em; height: 1em; flex-shrink: 0; }

.header { position: sticky; top: 0; z-index: 1000; display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px; padding: 0 2rem; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-light); }
.logo-text { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; letter-spacing: .06em; color: var(--accent-wine); text-decoration: none; }
.header nav { display: flex; align-items: center; gap: 1.6rem; }
.header nav a { color: var(--text-secondary); text-decoration: none; font-size: .95rem; font-weight: 500; }
.header nav a:hover, .header nav a.actif { color: var(--accent-wine); }
.cta-connexion { background: var(--accent-wine); color: #fff !important; padding: .55rem 1.3rem; border-radius: 8px; font-weight: 600; }
.burger { display: none; background: none; border: 1px solid var(--border-light); border-radius: 8px; padding: .4rem .55rem; color: var(--text-primary); cursor: pointer; }

.page { max-width: 1180px; margin: 0 auto; padding: 1.5rem 1.5rem 4rem; }
.fil { font-size: .85rem; color: var(--text-tertiary); margin-bottom: 1.1rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.fil a { color: var(--text-tertiary); text-decoration: none; }
.fil a:hover { color: var(--accent-wine); text-decoration: underline; }
.carte { background: #fff; border: 1px solid var(--border-light); border-radius: 16px; box-shadow: var(--shadow-sm); }

/* ---------- En-tete de fiche ---------- */
.hero { display: grid; grid-template-columns: 380px 1fr; overflow: hidden; }
.hero-visuel { position: relative; background: radial-gradient(ellipse at 50% 60%, #fff 0%, var(--bg-soft) 70%); display: flex; align-items: center; justify-content: center; padding: 2rem 1.5rem; min-height: 460px; border-right: 1px solid var(--border-light); }
.hero-visuel img { max-height: 410px; width: auto; mix-blend-mode: multiply; }
.labels-flottants { position: absolute; top: 1rem; left: 1rem; display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; }
.hero-infos { padding: 2rem 2.3rem; display: flex; flex-direction: column; }
.puce { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 600; padding: .22rem .65rem; border-radius: 999px; background: #f3ece8; color: var(--text-secondary); }
.puce.vert { background: var(--vert-bg); color: var(--vert); }
.pastille { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 2.7rem); line-height: 1.12; color: var(--primary-dark); text-wrap: balance; margin-top: .7rem; }
h1 .millesime { color: var(--accent-copper); }
.appellation { margin-top: .35rem; font-size: 1.06rem; color: var(--accent-wine); font-weight: 500; }
.domaine-ligne { display: inline-flex; align-items: center; gap: .7rem; margin-top: 1rem; text-decoration: none; align-self: flex-start; padding: .35rem .9rem .35rem .35rem; border-radius: 999px; border: 1px solid var(--border-light); }
.domaine-ligne:hover { border-color: var(--accent-wine); }
.domaine-ligne img, .domaine-ligne .av { width: 34px; height: 34px; border-radius: 50%; object-fit: contain; background: #fff; border: 1px solid var(--border-light); }
.domaine-ligne .av { display: grid; place-items: center; font-weight: 700; color: var(--accent-wine); }
.domaine-ligne strong { font-size: .95rem; }
.domaine-ligne small { color: var(--text-tertiary); font-size: .82rem; }
.notes { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.note { display: inline-flex; align-items: baseline; gap: .4rem; border: 1px solid #ecd9a8; background: #fffaf0; border-radius: 8px; padding: .3rem .7rem; }
.note b { color: #8a6508; }
.note small { font-size: .8rem; color: var(--text-secondary); }
.relation { margin-top: auto; padding-top: 1.3rem; }
.relation-boite { border-radius: 12px; border: 1px solid var(--border-light); background: linear-gradient(180deg, #fff 0%, #fcf8f6 100%); padding: 1.1rem 1.2rem; }
.relation-boite .k { font-size: .76rem; color: var(--accent-wine); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.relation-boite p { font-size: .92rem; color: var(--text-secondary); margin-top: .35rem; }
.boutons { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .9rem; }
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .72rem 1.3rem; border-radius: 8px; font-weight: 600; font-size: .95rem; text-decoration: none; }
.bouton.plein { background: var(--grad); color: #fff; box-shadow: var(--shadow-md); }
.bouton.vide { border: 1px solid var(--border-medium); color: var(--text-primary); background: #fff; }
.bouton.vide:hover { border-color: var(--accent-wine); color: var(--accent-wine); }

/* ---------- Sommaire collant ---------- */
.sommaire { position: sticky; top: 68px; z-index: 900; margin: 1.6rem -1.5rem 0; padding: .7rem 1.5rem; background: rgba(250,247,245,.94); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.sommaire.colle { border-bottom-color: var(--border-light); box-shadow: 0 6px 16px -10px rgba(124,10,41,.25); }
.sommaire nav { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; }
.sommaire nav::-webkit-scrollbar { display: none; }
.sommaire a { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; text-decoration: none; font-size: .88rem; font-weight: 600; color: var(--text-secondary); padding: .45rem .95rem; border-radius: 999px; border: 1px solid var(--border-light); background: #fff; transition: all .15s; }
.sommaire a .ico { color: var(--accent-wine); }
.sommaire a:hover { border-color: var(--border-medium); }
.sommaire a.actif { background: var(--accent-wine); color: #fff; border-color: var(--accent-wine); }
.sommaire a.actif .ico { color: #fff; }

/* ---------- Chapitres et cartes par type ---------- */
.chapitre { margin-top: 2.4rem; }
.chapitre-tete { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.chapitre-tete .num { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; font-size: .85rem; display: grid; place-items: center; flex-shrink: 0; }
.chapitre-tete h2 { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--primary-dark); }
.chapitre-tete::after { content: ''; flex: 1; height: 1px; background: var(--border-light); }
.rang { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.rang + .rang, .rang + .bloc, .bloc + .rang, .bloc + .bloc { margin-top: 1.1rem; }
.rang > .bloc { margin-top: 0 !important; }
.deux-col { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2rem; }
.deux-col .recompense:nth-last-child(-n+2) { border-bottom: 0; }
.bloc { padding: 1.4rem 1.5rem; }
.bloc-titre { display: flex; align-items: center; gap: .65rem; padding-bottom: .8rem; margin-bottom: 1rem; border-bottom: 2px solid var(--border-light); }
.bloc-titre .pic { width: 34px; height: 34px; border-radius: 9px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 1rem; flex-shrink: 0; }
.bloc-titre h3 { font-size: 1.08rem; color: var(--primary-dark); }

.tuiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.tuile { position: relative; background: var(--bg-tile); border-radius: 12px; padding: .85rem 1rem .9rem 1.1rem; border-left: 3px solid; border-image: var(--grad) 1; }
.tuile .pic { width: 30px; height: 30px; border-radius: 8px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: .9rem; margin-bottom: .55rem; }
.tuile span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-tertiary); font-weight: 600; }
.tuile strong { display: block; font-size: .98rem; color: var(--primary-dark); line-height: 1.3; margin-top: .1rem; }
.tuile strong.vin { color: var(--accent-wine); }
.cepages { margin-top: 1rem; background: #f3faf5; border-left: 3px solid #48bb78; border-radius: 12px; padding: .9rem 1.1rem; }
.cepages h4 { display: flex; align-items: center; gap: .5rem; color: var(--vert); font-size: .95rem; margin-bottom: .6rem; }
.cepage { display: grid; grid-template-columns: 180px 1fr 50px; align-items: center; gap: 1rem; background: #fff; border-radius: 8px; padding: .5rem .8rem; }
.cepage + .cepage { margin-top: .4rem; }
.cepage b { font-size: .92rem; color: var(--accent-wine); }
.cepage i { height: 7px; border-radius: 4px; background: var(--grad); display: block; }
.cepage em { font-style: normal; font-weight: 700; color: var(--accent-wine); text-align: right; }

.badges { display: flex; flex-wrap: wrap; gap: .5rem; }
.badge { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; font-weight: 500; padding: .45rem .85rem; border-radius: 10px; background: var(--vert-bg); color: var(--vert); }
.badge.neutre { background: var(--bg-tile); color: var(--text-secondary); }
.badge.vin { background: #f8e8ec; color: var(--accent-wine); }
.lignes > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid #f1e9e4; }
.lignes > div:last-child { border-bottom: 0; }
.lignes dt { display: flex; align-items: center; gap: .55rem; font-size: .9rem; color: var(--text-tertiary); }
.lignes dt .ico { color: var(--accent-wine); }
.lignes dd { font-size: .93rem; font-weight: 600; color: var(--primary-dark); text-align: right; }
.famille { display: grid; grid-template-columns: 130px 1fr; gap: .8rem; padding: .55rem 0; border-bottom: 1px solid #f1e9e4; }
.famille:last-child { border-bottom: 0; }
.famille dt { font-weight: 600; font-size: .9rem; color: var(--primary-dark); }
.famille dd { color: var(--text-secondary); font-size: .92rem; }
.sous { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-tertiary); font-weight: 600; margin: 1rem 0 .5rem; }
.sous:first-child { margin-top: 0; }
.citation { border-left: 3px solid var(--accent-wine); background: var(--bg-tile); border-radius: 0 10px 10px 0; padding: .9rem 1.1rem; }
.citation li { list-style: none; font-style: italic; color: var(--text-secondary); padding: .15rem 0; }
.citation li::before { content: '• '; color: var(--accent-copper); font-style: normal; }
.recompense { display: flex; align-items: center; gap: .8rem; padding: .55rem 0; border-bottom: 1px solid #f1e9e4; }
.recompense:last-child { border-bottom: 0; }
.medaille { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .78rem; flex-shrink: 0; }
.medaille.score { background: var(--grad); }
.medaille.gold { background: linear-gradient(135deg, #e3b341, #b8860b); }
.medaille.silver { background: linear-gradient(135deg, #cfd4da, #8e979f); }
.medaille.bronze { background: linear-gradient(135deg, #d39566, #a0522d); }
.recompense strong { font-size: .93rem; color: var(--primary-dark); }
.recompense small { display: block; color: var(--text-tertiary); font-size: .8rem; }
.exclu { font-size: .78rem; color: var(--text-tertiary); margin-top: .6rem; }

.producteur { display: grid; grid-template-columns: 280px 1fr; overflow: hidden; }
.producteur .photo { min-height: 250px; background: var(--bg-soft) center 35%/cover no-repeat; }
.producteur .corps { padding: 1.4rem 1.6rem; }
.producteur .type { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-copper); font-weight: 700; }
.producteur h3 { font-family: 'Playfair Display', serif; font-size: 1.45rem; color: var(--primary-dark); }
.producteur .lieu { color: var(--text-tertiary); font-size: .9rem; }
.producteur .texte { margin-top: .7rem; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.chiffres { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin-top: .8rem; }
.chiffres strong { color: var(--accent-wine); font-size: 1.1rem; }
.chiffres span { font-size: .85rem; color: var(--text-secondary); }
.gamme { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.1rem; }
.cuvee { text-decoration: none; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.cuvee:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cuvee .vig { height: 160px; background: radial-gradient(ellipse at 50% 70%, #fff, var(--bg-soft)); display: flex; align-items: center; justify-content: center; }
.cuvee .vig img { max-height: 140px; width: auto; mix-blend-mode: multiply; }
.cuvee .txt { padding: .75rem .9rem; border-top: 1px solid var(--border-light); }
.cuvee strong { font-size: .93rem; color: var(--primary-dark); display: block; line-height: 1.3; }
.cuvee small { display: flex; align-items: center; gap: .35rem; font-size: .82rem; color: var(--text-secondary); }

.appel { margin-top: 2.8rem; border-radius: 16px; background: var(--grad); color: #fff; padding: 1.8rem 2.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.appel h2 { font-family: 'Playfair Display', serif; font-size: 1.45rem; }
.appel p { opacity: .9; margin-top: .3rem; }
.appel .bouton { background: #fff; color: var(--accent-wine); }

.barre-mobile { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1001; background: #fff; border-top: 1px solid var(--border-light); box-shadow: 0 -6px 20px rgba(124,10,41,.08); padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); align-items: center; justify-content: space-between; gap: .8rem; }
.barre-mobile small { display: block; font-size: .72rem; color: var(--text-tertiary); }
.barre-mobile strong { font-size: .9rem; color: var(--primary-dark); }
.barre-mobile .bouton { padding: .6rem 1rem; font-size: .88rem; }
.attente { padding: 6rem 1rem; text-align: center; color: var(--text-tertiary); }
.rond-attente { width: 36px; height: 36px; border: 3px solid var(--border-light); border-top-color: var(--accent-wine); border-radius: 50%; margin: 0 auto 1rem; animation: tourne .9s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.footer { background: var(--primary-dark); color: #cfc7c2; margin-top: 4rem; }
.footer-container { max-width: 1180px; margin: 0 auto; padding: 3rem 1.5rem 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer .logo-text { color: #fff; }
.footer-brand p { margin-top: .8rem; font-size: .9rem; max-width: 34ch; }
.footer-column h4 { color: #fff; font-size: .95rem; margin-bottom: .9rem; }
.footer-column a { display: block; padding: .22rem 0; font-size: .9rem; color: #cfc7c2; text-decoration: none; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; color: #9d938e; }

@media (max-width: 1020px) {
    .hero { grid-template-columns: 1fr; }
    .hero-visuel { min-height: 340px; border-right: 0; border-bottom: 1px solid var(--border-light); }
    .hero-visuel img { max-height: 300px; }
    .tuiles { grid-template-columns: repeat(3, 1fr); }
    .producteur { grid-template-columns: 1fr; }
    .gamme { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .header nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--border-light); padding: .5rem 1rem 1rem; box-shadow: var(--shadow-lg); }
    .header nav.ouvert { display: flex; }
    .header nav a { padding: .75rem .25rem; border-bottom: 1px solid #f1e9e4; }
    .header nav a.cta-connexion { margin-top: .7rem; text-align: center; border-bottom: 0; }
    .burger { display: inline-flex; }
    .rang { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    html { scroll-padding-top: 125px; }
    .header { padding: 0 1rem; height: 62px; }
    .sommaire { top: 62px; margin: 1.2rem -1rem 0; padding: .6rem 1rem; }
    .page { padding: 1rem 1rem 6rem; }
    .hero-infos { padding: 1.3rem 1.2rem; }
    .boutons .bouton { flex: 1 1 100%; }
    .tuiles { grid-template-columns: 1fr 1fr; gap: .55rem; }
    .chapitre-tete h2 { font-size: 1.35rem; }
    .bloc { padding: 1.1rem 1.1rem; }
    .cepage { grid-template-columns: 1fr 44px; } .cepage i { grid-column: 1 / -1; grid-row: 2; }
    .famille { grid-template-columns: 1fr; gap: .1rem; }
    .deux-col { grid-template-columns: 1fr; }
    .deux-col .recompense:nth-last-child(2) { border-bottom: 1px solid #f1e9e4; }
    .gamme { gap: .7rem; }
    .appel { padding: 1.4rem; } .appel .bouton { flex: 1 1 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
    .barre-mobile { display: flex; }
}

/* Donnee reservee aux inscrits : on floute une valeur FACTICE, jamais la vraie
   (une vraie valeur sous un flou CSS se lit dans le code de la page). */
.verrouille { position: relative; }
.verrouille .flou { filter: blur(6px); user-select: none; pointer-events: none; }
.verrouille .voile { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.verrouille .voile a { display: inline-flex; align-items: center; gap: .4rem; background: #fff; border: 1px solid var(--border-light); box-shadow: var(--shadow-sm); border-radius: 999px; padding: .35rem .85rem; font-size: .82rem; font-weight: 600; color: var(--accent-wine); text-decoration: none; }
.verrouille .voile a:hover { border-color: var(--accent-wine); }
.chiffre-flou { filter: blur(5px); user-select: none; }
