/* ==================================================================
   Petit Voyage Maconnais - feuille de style principale
   Mobile d abord. Toutes les grilles partent d une seule colonne.
   ================================================================== */

:root {
    --wine: #7B2D43;
    --wine-dark: #5C1F31;
    --wine-soft: #F6EDEF;
    --gold: #B98A3E;
    --gold-soft: #FBF4E7;
    --green: #2F6B4F;
    --ink: #1C1B20;
    --muted: #5D5A66;
    --line: #E7DFD3;
    --bg: #FBF8F4;
    --surface: #FFFFFF;
    --shadow-sm: 0 1px 2px rgba(28, 27, 32, .06), 0 4px 14px rgba(28, 27, 32, .05);
    --shadow-md: 0 6px 18px rgba(28, 27, 32, .10), 0 18px 48px rgba(28, 27, 32, .08);
    --radius: 16px;
    --radius-lg: 24px;
    --radius-sm: 10px;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --serif: Georgia, "Times New Roman", "Iowan Old Style", serif;
    --tabbar-h: 62px;
    --topbar-h: 60px;
}

[hidden] { display: none !important; }

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 8px);
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--wine); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.85rem, 6vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 4.4vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 3.4vw, 1.35rem); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.1rem; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { flex: none; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
    padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { width: 100%; max-width: 780px; margin: 0 auto; padding: 0 16px; }

/* ---------------------------- En-tete ---------------------------- */
.topbar {
    position: sticky; top: 0; z-index: 90;
    background: rgba(251, 248, 244, .92);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid var(--line);
    padding-top: env(safe-area-inset-top, 0px);
}
.topbar-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    height: var(--topbar-h); max-width: 1180px; margin: 0 auto; padding: 0 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand-mark {
    width: 38px; height: 38px; border-radius: 12px; flex: none;
    background: linear-gradient(140deg, var(--wine), var(--gold));
    color: #fff; display: grid; place-items: center;
    box-shadow: 0 4px 12px rgba(123, 45, 67, .28);
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-size: .96rem; line-height: 1.15; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { font-size: .72rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.topbar-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
    width: 40px; height: 40px; border-radius: 12px; border: 1px solid transparent;
    background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink);
}
.icon-btn:hover { background: rgba(123, 45, 67, .08); }
.lang-switch {
    display: grid; place-items: center; min-width: 40px; height: 40px; border-radius: 12px;
    border: 1px solid var(--line); background: var(--surface);
    font-size: .78rem; font-weight: 700; letter-spacing: .05em; color: var(--ink);
}
.avatar {
    width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
    background: var(--wine); color: #fff; font-size: .82rem; font-weight: 700;
}

.search-panel { border-top: 1px solid var(--line); background: var(--surface); }
.search-panel-inner { max-width: 780px; margin: 0 auto; padding: 12px 16px 16px; }
.search-form {
    display: flex; align-items: center; gap: 8px; background: var(--bg);
    border: 1px solid var(--line); border-radius: 999px; padding: 6px 8px 6px 14px;
}
.search-form input { flex: 1; border: 0; background: transparent; outline: none; padding: 8px 0; min-width: 0; }
.search-ico { color: var(--muted); display: grid; place-items: center; }
.search-results { margin-top: 12px; max-height: 60vh; overflow: auto; }
.search-group { margin-bottom: 14px; }
.search-group h4 { font-family: var(--sans); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 6px; }
.search-hit { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: var(--radius-sm); }
.search-hit:hover { background: var(--wine-soft); text-decoration: none; }
.search-hit img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; flex: none; }
.search-hit strong { display: block; font-size: .92rem; color: var(--ink); }
.search-hit span { font-size: .78rem; color: var(--muted); }

/* ---------------------------- Boutons ---------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 18px; border-radius: 999px; border: 1px solid transparent;
    font-size: .92rem; font-weight: 600; cursor: pointer; text-decoration: none;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
    min-height: 44px; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--wine); color: #fff; box-shadow: 0 6px 16px rgba(123, 45, 67, .25); }
.btn-primary:hover { background: var(--wine-dark); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--wine); color: var(--wine); }
.btn-glass { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255, 255, 255, .26); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: .84rem; min-height: 38px; }
.btn-danger { background: #C0392B; color: #fff; }
.btn-install { background: linear-gradient(135deg, var(--wine), var(--gold)); color: #fff; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* ---------------------------- Cartes ---------------------------- */
.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm);
}
.card-body { padding: 16px; }
.card-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.card-link:hover { text-decoration: none; }

.media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #EDE7DE; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card-link:hover .media img { transform: scale(1.05); }
.media-tall { aspect-ratio: 4 / 5; }
.media-square { aspect-ratio: 1 / 1; }
.media-overlay {
    position: absolute; inset: auto 0 0 0; padding: 14px;
    background: linear-gradient(to top, rgba(15, 10, 14, .82), rgba(15, 10, 14, .0));
    color: #fff;
}
.media-overlay h3 { color: #fff; margin: 0 0 2px; font-size: 1.15rem; }
.media-overlay p { margin: 0; font-size: .82rem; opacity: .9; }

.badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
    font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    background: var(--wine-soft); color: var(--wine);
}
.badge-gold { background: var(--gold-soft); color: #8A6420; }
.badge-green { background: #E9F3ED; color: var(--green); }
.badge-dark { background: rgba(15, 10, 14, .78); color: #fff; backdrop-filter: blur(4px); }
.badge-abs { position: absolute; top: 12px; left: 12px; z-index: 2; }
.badge-abs-right { position: absolute; top: 12px; right: 12px; z-index: 2; }

.meta-row { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; color: var(--muted); font-size: .84rem; }
.meta-row span { display: inline-flex; align-items: center; gap: 5px; }
.stars { display: inline-flex; gap: 1px; color: #D9CFC0; vertical-align: middle; }
.star-on { color: #D9A441; }
.stars-count { font-size: .78rem; color: var(--muted); margin-left: 6px; }

/* ---------------------------- Grilles ---------------------------- */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; grid-template-columns: 1fr; }
.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 12px; margin: 0 -16px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
    flex: none; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line);
    background: var(--surface); font-size: .86rem; font-weight: 600; cursor: pointer;
    color: var(--ink); text-decoration: none; white-space: nowrap; min-height: 40px; display: inline-flex; align-items: center; gap: 7px;
}
.chip:hover { border-color: var(--wine); color: var(--wine); text-decoration: none; }
.chip-active { background: var(--wine); border-color: var(--wine); color: #fff; }
.chip-active:hover { color: #fff; }
.chip-dot { width: 9px; height: 9px; border-radius: 50%; }

/* ---------------------------- Hero ---------------------------- */
.hero {
    position: relative; color: #fff; overflow: hidden;
    min-height: 74vh; display: flex; align-items: flex-end;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(20, 12, 18, .35) 0%, rgba(20, 12, 18, .55) 45%, rgba(20, 12, 18, .88) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1180px; margin: 0 auto; padding: 26px 16px 30px; }
.hero-kicker {
    display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 700;
    letter-spacing: .16em; text-transform: uppercase; color: #F3D9A4; margin-bottom: 10px;
}
.hero h1 { color: #fff; margin-bottom: .35em; text-wrap: balance; }
.hero p.lead { font-size: 1.02rem; color: rgba(255, 255, 255, .92); max-width: 60ch; margin-bottom: 1.2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.hero-stat {
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
    border-radius: var(--radius-sm); padding: 10px 12px; backdrop-filter: blur(6px);
}
.hero-stat strong { display: block; font-family: var(--serif); font-size: 1.45rem; line-height: 1; }
.hero-stat span { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }

/* ---------------------------- Sections ---------------------------- */
.section { padding: 34px 0 6px; }
.section-head { margin-bottom: 18px; }
.section-head .kicker {
    font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: var(--wine); display: block; margin-bottom: 6px;
}
.section-head p { color: var(--muted); margin: 0; max-width: 62ch; }
.section-head-row { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; margin-bottom: 18px; }
.section-head-row .link-more { font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }

.page-head { padding: 22px 0 10px; }
.page-head h1 { margin-bottom: .3em; }
.page-head p { color: var(--muted); max-width: 65ch; }

.breadcrumb { font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.breadcrumb a { color: var(--muted); }

.answer-box {
    background: var(--gold-soft); border: 1px solid #EFE0C4; border-left: 4px solid var(--gold);
    border-radius: var(--radius-sm); padding: 14px 16px; margin: 18px 0;
}
.answer-box h2 { font-size: 1rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: .1em; margin: 0 0 8px; }
.answer-box ul { margin: 0; padding-left: 1.1rem; font-size: .9rem; }
.answer-box li { margin-bottom: 4px; }

/* ---------------------------- Themes ---------------------------- */
.theme-card { position: relative; border-radius: var(--radius); overflow: hidden; color: #fff; display: block; aspect-ratio: 3 / 4; text-decoration: none; }
.theme-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.theme-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 12, 18, .1), rgba(20, 12, 18, .85)); }
.theme-card-body { position: absolute; inset: auto 0 0 0; padding: 14px; z-index: 2; }
.theme-card-body strong { display: block; font-family: var(--serif); font-size: 1.1rem; color: #fff; }
.theme-card-body small { opacity: .88; font-size: .78rem; }
.theme-card:hover { text-decoration: none; }

/* ---------------------------- Circuits ---------------------------- */
.circuit-card .card-body { display: flex; flex-direction: column; gap: 8px; }
.circuit-card h3 { margin: 0; font-size: 1.12rem; }
.circuit-card .summary { font-size: .88rem; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.price-tag { font-weight: 700; color: var(--wine); font-size: .86rem; }

.favorite-btn {
    display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line);
    background: var(--surface); border-radius: 999px; padding: 8px 14px; cursor: pointer;
    font-size: .84rem; font-weight: 600; min-height: 40px;
}
.favorite-btn.is-active { background: var(--wine); border-color: var(--wine); color: #fff; }
.favorite-btn.is-active svg { fill: currentColor; }

/* ---------------------------- Itineraire ---------------------------- */
.timeline { position: relative; margin: 8px 0 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--wine), var(--gold)); opacity: .35; }
.timeline li { position: relative; padding: 0 0 20px 62px; }
.timeline .step-time {
    position: absolute; left: 0; top: 0; width: 56px; text-align: center;
    background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
    font-size: .78rem; font-weight: 700; padding: 6px 0; color: var(--wine);
}
.timeline .step-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-sm); }
.timeline .step-body h3 { margin: 0 0 4px; font-size: 1.05rem; }
.timeline .step-body p { margin: 0 0 8px; font-size: .9rem; color: var(--muted); }
.step-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .78rem; color: var(--muted); }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.info-list li:last-child { border-bottom: 0; }
.info-list svg { color: var(--wine); margin-top: 2px; }
.info-list strong { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }

.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gallery-grid img { border-radius: var(--radius-sm); aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }

/* ---------------------------- Avis ---------------------------- */
.review { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review-avatar {
    width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--wine), var(--gold)); color: #fff; font-weight: 700;
}
.review-body strong { font-size: .95rem; }
.review-body time { font-size: .76rem; color: var(--muted); margin-left: 8px; }
.review-body p { margin: 4px 0 0; font-size: .9rem; color: var(--muted); }

.rating-input { display: flex; gap: 6px; }
.rating-input button { background: none; border: 0; cursor: pointer; padding: 4px; color: #D9CFC0; }
.rating-input button.on { color: #D9A441; }

/* ---------------------------- Formulaires ---------------------------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.field input, .field select, .field textarea {
    width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line);
    background: var(--surface); outline: none; min-height: 46px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(123, 45, 67, .12); }
.field .hint { font-size: .78rem; color: var(--muted); }
.form-msg { padding: 12px 14px; border-radius: var(--radius-sm); font-size: .88rem; }
.form-msg.ok { background: #E9F3ED; color: #1F5039; }
.form-msg.ko { background: #FBEAE8; color: #8E2C21; }

.newsletter-form { display: flex; flex-direction: column; gap: 8px; }
.newsletter-form input { padding: 12px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.newsletter-form input:focus { outline: none; border-color: var(--wine); }

/* ---------------------------- FAQ ---------------------------- */
.faq details {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 14px 16px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--wine); line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 10px 0 0; font-size: .92rem; color: var(--muted); }

/* ---------------------------- Carte ---------------------------- */
.map-shell { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #EFF3EC; }
.map-svg { width: 100%; height: auto; display: block; touch-action: manipulation; }
.map-bg { fill: #F4F0E8; }
.map-water { fill: #D8E7ED; }
.map-road { stroke: #E4DACB; stroke-width: 2; fill: none; }
.map-marker { cursor: pointer; }
.map-marker circle { transition: transform .18s ease; transform-origin: center; }
.map-marker:hover circle, .map-marker.active circle { transform: scale(1.4); }
.map-legend { display: flex; flex-wrap: wrap; gap: 12px; padding: 12px 14px; font-size: .8rem; color: var(--muted); background: var(--surface); border-top: 1px solid var(--line); }
.map-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.map-detail { margin-top: 14px; }

/* ---------------------------- Fil d actualite / listes ---------------------------- */
.list-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.list-row:last-child { border-bottom: 0; }
.list-row img { width: 88px; height: 66px; object-fit: cover; border-radius: var(--radius-sm); flex: none; }
.list-row h3 { margin: 0 0 3px; font-size: 1rem; }
.list-row p { margin: 0; font-size: .84rem; color: var(--muted); }

.pagination { display: flex; justify-content: center; gap: 8px; padding: 22px 0 6px; }
.pagination button {
    min-width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line);
    background: var(--surface); cursor: pointer; font-weight: 600;
}
.pagination button.active { background: var(--wine); border-color: var(--wine); color: #fff; }
.pagination button[disabled] { opacity: .4; }

.empty {
    text-align: center; padding: 34px 18px; background: var(--surface);
    border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted);
}

.skeleton { background: linear-gradient(90deg, #EDE7DE 25%, #F6F2EC 50%, #EDE7DE 75%); background-size: 200% 100%; animation: sk 1.3s infinite; border-radius: var(--radius); }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.sk-card { height: 280px; }
.sk-line { height: 16px; margin: 8px 0; }

/* ---------------------------- Divers ---------------------------- */
.flash-wrap { padding: 10px 16px 0; max-width: 1180px; margin: 0 auto; }
.flash { padding: 11px 14px; border-radius: var(--radius-sm); font-size: .88rem; margin-bottom: 8px; }
.flash-success { background: #E9F3ED; color: #1F5039; }
.flash-error { background: #FBEAE8; color: #8E2C21; }

.toast-wrap { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 12px); z-index: 120; padding: 0 16px; display: grid; gap: 8px; pointer-events: none; }
.toast {
    background: var(--ink); color: #fff; border-radius: 12px; padding: 12px 16px;
    font-size: .88rem; box-shadow: var(--shadow-md); max-width: 520px; margin: 0 auto; width: 100%;
    animation: toastIn .25s ease;
}
.toast.ok { background: #24603F; }
.toast.ko { background: #8E2C21; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.modal { position: fixed; inset: 0; background: rgba(20, 12, 18, .6); z-index: 150; display: grid; place-items: center; padding: 18px; }
.modal-card { background: var(--surface); border-radius: var(--radius-lg); padding: 22px; max-width: 460px; width: 100%; position: relative; max-height: 88vh; overflow: auto; }
.modal-close { position: absolute; top: 12px; right: 12px; background: none; border: 0; cursor: pointer; color: var(--muted); }
.install-steps { display: grid; gap: 14px; margin-top: 14px; }
.install-step { display: flex; gap: 12px; align-items: flex-start; }
.install-step-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--wine-soft); color: var(--wine); display: grid; place-items: center; flex: none; }
.install-step strong { display: block; font-size: .95rem; }
.install-step p { margin: 2px 0 0; font-size: .85rem; color: var(--muted); }

.install-block { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.store-logos { display: flex; flex-wrap: wrap; gap: 10px; }
.store-logo { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }

/* ---------------------------- Pied de page ---------------------------- */
.site-footer { background: #211C1F; color: rgba(255, 255, 255, .78); margin-top: 40px; padding-bottom: 8px; }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 32px 16px 20px; display: grid; gap: 26px; grid-template-columns: 1fr; }
.site-footer h3 { color: #fff; font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 10px; }
.site-footer a { color: rgba(255, 255, 255, .82); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: .9rem; }
.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text small { color: rgba(255, 255, 255, .6); }
.footer-brand p { font-size: .9rem; margin: 12px 0; max-width: 42ch; }
.footer-contact li { display: flex; gap: 8px; align-items: center; font-size: .88rem; }
.footer-note { font-size: .85rem; color: rgba(255, 255, 255, .68); }
.footer-bottom {
    max-width: 1180px; margin: 0 auto; padding: 16px; border-top: 1px solid rgba(255, 255, 255, .12);
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; font-size: .78rem;
}
.footer-made { display: inline-flex; align-items: center; gap: 6px; }

/* ---------------------------- Barre d onglets ---------------------------- */
.tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
    display: grid; grid-template-columns: repeat(5, 1fr);
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tab {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    padding: 8px 2px 6px; color: var(--muted); font-size: .68rem; font-weight: 600; text-decoration: none;
    min-height: var(--tabbar-h);
}
.tab:hover { text-decoration: none; color: var(--wine); }
.tab-active { color: var(--wine); }
.tab-active svg { stroke-width: 2.2; }

/* ---------------------------- Grands ecrans ---------------------------- */
@media (min-width: 700px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .stat-grid { grid-template-columns: repeat(4, 1fr); }
    .hero-stats { grid-template-columns: repeat(4, 1fr); }
    .section-head-row { flex-direction: row; align-items: flex-end; justify-content: space-between; }
    .footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; }
    .hero { min-height: 68vh; }
    .hero-inner { padding: 34px 16px 40px; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .chip-row { max-width: 1180px; margin: 0 auto; padding: 4px 16px 12px; }
}

@media (min-width: 1000px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
    .detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
    .sticky-side { position: sticky; top: calc(var(--topbar-h) + 16px); }
    .timeline::before { left: 31px; }
}

@media (max-width: 420px) {
    .brand-text small { display: none; }
    .hero-stat strong { font-size: 1.2rem; }
}

.two-col { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1.35fr 1fr; } }

.prose { font-size: 1rem; color: #2A2830; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }
.prose ul, .prose ol { margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose img { border-radius: var(--radius); margin: 1em 0; }
.prose blockquote { margin: 1em 0; padding: 12px 18px; border-left: 4px solid var(--gold); background: var(--gold-soft); border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.tag { font-size: .76rem; padding: 5px 11px; border-radius: 999px; background: var(--wine-soft); color: var(--wine); font-weight: 600; }

.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }

/* ---------------------------- Ajustements petits ecrans ---------------------------- */
.prose { overflow-wrap: break-word; }
.prose table { display: block; overflow-x: auto; white-space: nowrap; }

@media (max-width: 768px) {
    .section { padding: 26px 0 4px; }
    .hero { min-height: 78vh; }
    .media-overlay h3 { font-size: 1.05rem; }
    .timeline li { padding-left: 54px; }
    .timeline .step-time { width: 48px; font-size: .72rem; }
    .timeline::before { left: 23px; }
    .detail-layout { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
    .wrap, .wrap-narrow { padding: 0 14px; }
    .grid, .grid-2, .grid-3, .grid-4 { gap: 14px; }
    .btn { padding: 10px 15px; font-size: .88rem; }
    .hero-actions .btn { flex: 1 1 100%; }
    .footer-bottom { flex-direction: column; }
    .search-hit img { width: 44px; height: 44px; }
}
