/* Riviera Insider — "carte postale" layout: wide reading column, a parasol-stripe band as the single signature, facts set like a ticket stub. */
:root {
  --paper: #f6f9f9;
  --card: #ffffff;
  --ink: #14232e;
  --muted: #5a6b77;
  --line: #d6e0e5;
  --sea: #123a5a;      /* Baie des Anges, deep */
  --azur: #2a78b3;     /* chaise bleue */
  --ochre: #c98a22;    /* jaune sarde, text-safe */
  --ochre-soft: #f3dcae;
  --rose: #d48a7c;     /* coupole du Negresco */
  --stripe-a: #2a78b3;
  --stripe-b: #ffffff;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --measure: 66ch;
  --step--1: 0.875rem; --step-0: 1.0625rem; --step-1: 1.3rem; --step-2: 1.7rem; --step-3: 2.3rem; --step-4: clamp(2.4rem, 6vw, 3.6rem);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1820; --card: #13222c; --ink: #e6edf1; --muted: #9aabb7; --line: #233542;
    --sea: #a9cfee; --azur: #6cb0e4; --ochre: #e9b457; --ochre-soft: #3a2f1a; --rose: #e3a397;
    --stripe-a: #2a78b3; --stripe-b: #0d1820; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0d1820; --card: #13222c; --ink: #e6edf1; --muted: #9aabb7; --line: #233542;
  --sea: #a9cfee; --azur: #6cb0e4; --ochre: #e9b457; --ochre-soft: #3a2f1a; --rose: #e3a397;
  --stripe-a: #2a78b3; --stripe-b: #0d1820; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: var(--step-0); line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azur); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; text-wrap: balance; color: var(--sea); font-weight: 700; letter-spacing: -0.01em; }
.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* Signature: parasol stripes */
.stripes { height: 10px; background: repeating-linear-gradient(90deg, var(--stripe-a) 0 22px, var(--stripe-b) 22px 44px); border-bottom: 1px solid var(--line); }

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 16px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 1.35rem; color: var(--sea); text-decoration: none; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 8px; }
.brand small { font-family: var(--mono); font-weight: 400; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-family: var(--display); font-size: 0.95rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--azur); }
.langs { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--muted); display: flex; gap: 10px; }
.langs span[aria-current] { color: var(--sea); font-weight: 600; }
.langs .soon { opacity: 0.55; }

/* Home hero */
.hero { padding-block: 48px 32px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.hero h1 { font-size: var(--step-4); margin: 0 0 16px; }
.hero p { font-size: var(--step-1); color: var(--muted); max-width: 36ch; margin: 0; }
.eyebrow { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ochre); margin: 0 0 12px; }
.hero-art { border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; padding-block: 32px 16px; } }

/* Section heads */
.section { padding-block: 32px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; border-top: 2px solid var(--sea); padding-top: 12px; margin-bottom: 24px; }
.section-head h2 { margin: 0; font-size: var(--step-2); }
.section-head p { margin: 0; color: var(--muted); font-size: var(--step--1); font-family: var(--mono); }

/* Article cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.card .thumb { aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); max-width: 100%; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .thumb img { transform: scale(1.03); }
.card .kicker { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ochre); }
.card h3 { margin: 0; font-size: var(--step-1); }
.card:hover h3 { color: var(--azur); }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* Method strip */
.method { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 24px; }
.method div { min-width: 0; }
.method h3 { font-size: 1.05rem; margin: 0 0 6px; }
.method p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* Newsletter */
.newsletter { background: var(--sea); color: var(--paper); border-radius: 4px; padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: center; }
:root[data-theme="dark"] .newsletter { color: var(--paper); }
.newsletter h2 { color: inherit; margin: 0 0 6px; font-size: var(--step-2); }
.newsletter p { margin: 0; opacity: 0.85; }
.newsletter form { display: flex; flex-wrap: wrap; gap: 8px; }
.newsletter input { flex: 1 1 14rem; min-width: 0; font: inherit; padding: 12px 14px; border-radius: 3px; border: 0; background: var(--paper); color: var(--ink); }
.newsletter button, .btn { font-family: var(--display); font-weight: 700; font-size: 1rem; padding: 12px 18px; border-radius: 3px; border: 0; background: var(--ochre); color: #14232e; cursor: pointer; text-decoration: none; display: inline-block; }
.newsletter button:hover, .btn:hover { filter: brightness(1.06); }
.form-note { font-family: var(--mono); font-size: 0.75rem; flex-basis: 100%; margin: 0; }
@media (max-width: 760px) { .newsletter { grid-template-columns: 1fr; } }

/* Article */
.crumbs { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); padding-block: 20px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }
.art-head { padding-block: 16px 24px; max-width: 52rem; }
.art-head h1 { font-size: var(--step-4); margin: 0 0 14px; }
.art-head .lede { font-size: var(--step-1); color: var(--muted); margin: 0 0 16px; max-width: var(--measure); }
.byline { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.cover { border-radius: 4px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 21 / 9; max-width: 100%; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.art-grid { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: 48px; padding-block: 32px 48px; align-items: start; }
@media (max-width: 900px) { .art-grid { grid-template-columns: 1fr; gap: 24px; } .aside { order: -1; } }
.prose { max-width: var(--measure); min-width: 0; }
.prose h2 { font-size: var(--step-2); margin: 2.2em 0 0.5em; }
.prose h3 { font-size: var(--step-1); margin: 1.8em 0 0.4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.35em; }
.prose strong { color: var(--sea); }

/* Facts ticket (key for AI answers) */
.ticket { background: var(--card); border: 1px solid var(--line); border-radius: 4px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 16px); }
.ticket header { background: var(--sea); color: var(--paper); padding: 10px 16px; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 3px 3px 0 0; }
.ticket dl { margin: 0; padding: 8px 16px 12px; }
.ticket dt { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-top: 10px; }
.ticket dd { margin: 2px 0 0; font-size: 0.98rem; }
.ticket .geo { font-family: var(--mono); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.ticket .cut { border-top: 2px dashed var(--line); padding: 14px 16px 16px; }
.ticket .cut p { margin: 0 0 10px; font-size: 0.92rem; color: var(--muted); }
@media (max-width: 900px) { .ticket { position: static; } }

.tldr { border-left: 4px solid var(--ochre); background: var(--card); padding: 14px 18px; margin: 0 0 1.6em; border-radius: 0 4px 4px 0; }
.tldr strong { font-family: var(--display); color: var(--sea); }

/* Hotels */
.hotels { display: grid; gap: 14px; margin: 1em 0 1.6em; }
.hotel { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 16px 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; }
.hotel h3 { margin: 0; font-size: 1.12rem; }
.hotel .meta { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); letter-spacing: 0.04em; }
.hotel p { margin: 4px 0 0; font-size: 0.97rem; }
.hotel .btn { white-space: nowrap; font-size: 0.92rem; padding: 10px 14px; }
@media (max-width: 560px) { .hotel { grid-template-columns: 1fr; } }
.disclosure { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); margin: -0.6em 0 1.6em; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-family: var(--display); font-weight: 600; color: var(--sea); cursor: pointer; }
.faq details p { margin: 8px 0 0; }

.author-box { border-top: 2px solid var(--sea); padding-top: 14px; margin-top: 2.5em; font-size: 0.95rem; color: var(--muted); }
.related { padding-block: 0 48px; }

/* Plain pages */
.page { padding-block: 32px 64px; }
.page .prose h1 { font-size: var(--step-3); }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 28px 40px; font-size: 0.9rem; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-foot a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Home: hero zone, variant A (photo) and B (video) ---------- */
.hero-zone { position: relative; isolation: isolate; }
.hero-media { display: none; }
.hero-cta { margin-top: 20px; }
.langs a { color: var(--muted); text-decoration: none; }
.langs a:hover { color: var(--azur); }
.cover figcaption { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); padding: 6px 2px 0; }

/* Variant B: full-bleed video behind header and hero */
html[data-variant="video"] .hero-zone { min-height: clamp(520px, 82vh, 820px); display: flex; flex-direction: column; color: #fff; }
html[data-variant="video"] .hero-media { display: block; position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #123a5a; }
html[data-variant="video"] .hero-poster,
html[data-variant="video"] .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background-size: cover; background-position: center; }
html[data-variant="video"] .hero-video { opacity: 0; transition: opacity .8s ease; }
html[data-variant="video"] .hero-video.is-on { opacity: 1; }
html[data-variant="video"] .hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,24,38,.55) 0%, rgba(8,24,38,.15) 38%, rgba(8,24,38,.6) 100%); }
html[data-variant="video"] .hero-zone .site-head { background: transparent; border-bottom-color: rgba(255,255,255,.25); }
html[data-variant="video"] .hero-zone .brand,
html[data-variant="video"] .hero-zone .nav a,
html[data-variant="video"] .hero-zone .langs,
html[data-variant="video"] .hero-zone .langs a,
html[data-variant="video"] .hero-zone .langs span[aria-current] { color: #fff; }
html[data-variant="video"] .hero-zone .brand small { color: rgba(255,255,255,.75); }
html[data-variant="video"] .hero-zone > .wrap { flex: 1; display: flex; align-items: flex-end; }
html[data-variant="video"] .hero { grid-template-columns: 1fr; padding-block: 48px 64px; }
html[data-variant="video"] .hero-art { display: none; }
html[data-variant="video"] .hero h1 { color: #fff; max-width: 16ch; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
html[data-variant="video"] .hero p { color: rgba(255,255,255,.9); }
html[data-variant="video"] .hero .eyebrow { color: #f3c46a; }

/* Preview-only A/B switch */
.ab-switch { position: fixed; left: 16px; bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); z-index: 50; display: flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 8px 6px 14px; font-family: var(--mono); font-size: 0.75rem; box-shadow: 0 6px 24px rgba(0,0,0,.15); }
.ab-switch button { font: inherit; border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 999px; padding: 6px 10px; cursor: pointer; }
.ab-switch button[aria-pressed="true"] { background: var(--sea); color: var(--paper); border-color: var(--sea); }

/* ---------- v3: airier layout, topics ---------- */
body { line-height: 1.7; }
.section { padding-block: clamp(48px, 7vw, 88px) 0; }
.section-head { margin-bottom: clamp(24px, 3vw, 36px); }
.section-head p { font-family: var(--body); font-size: 1rem; }
main > .wrap > .section:last-child { padding-bottom: clamp(48px, 7vw, 88px); }
.cards { gap: clamp(28px, 3.5vw, 44px) clamp(24px, 3vw, 36px); }
.card .kicker { display: flex; justify-content: space-between; gap: 12px; }
.card .mins { color: var(--muted); letter-spacing: 0.04em; }
.card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Topic bar */
.rubbar { border-bottom: 1px solid var(--line); background: var(--paper); }
.rubbar-track { display: flex; gap: 6px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.rubbar-track::-webkit-scrollbar { display: none; }
.rubbar a { flex: none; font-family: var(--display); font-size: 0.92rem; font-weight: 600; color: var(--ink); text-decoration: none; padding: 6px 12px; border-radius: 999px; border: 1px solid transparent; }
.rubbar a:hover { border-color: var(--line); color: var(--azur); }
.rubbar a[aria-current="page"] { background: var(--sea); color: var(--paper); }
html[data-variant="video"] .page-home .rubbar { position: relative; }

/* Topic tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); min-width: 0; }
.tile-img { aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 8px; max-width: 100%; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tile:hover .tile-img img { transform: scale(1.04); }
.tile-name { font-family: var(--display); font-weight: 700; font-size: 1.12rem; color: var(--sea); }
.tile:hover .tile-name { color: var(--azur); }
.tile-count { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

/* Featured guide */
.feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; text-decoration: none; color: inherit; }
.feature-img { aspect-ratio: 3 / 2; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); max-width: 100%; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; }
.feature-text { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; min-width: 0; }
.feature-text .kicker { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ochre); }
.feature-text h3 { font-size: var(--step-3); margin: 0; }
.feature-text p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.feature:hover h3 { color: var(--azur); }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } }

/* "What you'll find here" */
.section-soft .method { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: clamp(24px, 3vw, 40px); }
.section-soft .method div { border-top: 3px solid var(--ochre); padding-top: 16px; }
.section-soft .method h3 { font-size: 1.15rem; margin-bottom: 8px; }

/* Topic page */
.rub-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: 24px 0; }
.rub-head h1 { font-size: var(--step-4); margin: 0 0 12px; }
.rub-head .lede { font-size: var(--step-1); color: var(--muted); margin: 0; max-width: 40ch; }
.rub-img { aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); max-width: 100%; }
.rub-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .rub-head { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-family: var(--display); font-weight: 600; text-decoration: none; color: var(--sea); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; background: var(--card); }
.chip:hover { border-color: var(--azur); color: var(--azur); }
.newsletter { padding: clamp(28px, 4vw, 48px); }

/* Home "all guides": two-column list, image left */
#guides .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#guides .card { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); grid-template-rows: auto auto 1fr; column-gap: 20px; row-gap: 6px; align-content: start; }
#guides .card .thumb { grid-row: 1 / span 3; aspect-ratio: 4 / 3; }
#guides .card p { -webkit-line-clamp: 2; }
@media (max-width: 760px) { #guides .cards { grid-template-columns: 1fr; } }
@media (max-width: 420px) { #guides .card { grid-template-columns: 1fr; } #guides .card .thumb { grid-row: auto; } }

/* v4: real photography */
.cover { aspect-ratio: 16 / 9; }
.cover figcaption, .hero-art figcaption { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); padding: 6px 2px 0; letter-spacing: 0.02em; }
.cover { overflow: visible; border: 0; }
.cover img { border-radius: 4px; border: 1px solid var(--line); aspect-ratio: 16 / 9; }
.hero-art { margin: 0; border: 0; overflow: visible; }
.hero-art img { border-radius: 4px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card .thumb, .tile-img, .feature-img, .rub-img { background: var(--line); }
html[data-variant="video"] .hero-shade { background: linear-gradient(180deg, rgba(8,24,38,.62) 0%, rgba(8,24,38,.18) 40%, rgba(8,24,38,.70) 100%); }
figure.cover { margin: 0; }
