/* =========================================================================
   Compas du Voyage - Editorial guide stylesheet
   Palette: warm cream (#f5efe2) / navy (#1c2a44) / gold (#b88a3a)
   No external font, no JS dependency. Mobile-first, accessibility-conscious.
   ========================================================================= */

:root {
  --cream: #f5efe2;
  --cream-deep: #ebe1cd;
  --paper: #faf6ee;
  --ink: #1c2a44;
  --ink-soft: #2f3b58;
  --gold: #b88a3a;
  --gold-deep: #8e6825;
  --muted: #6a6f7a;
  --rule: #d8cdb3;
  --alert: #b3462e;
  --ok: #2c7a4a;
  --shadow-card: 0 12px 32px -16px rgba(28, 42, 68, 0.18);
  --shadow-soft: 0 4px 16px -6px rgba(28, 42, 68, 0.12);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;
  --font-display: "Georgia", "Iowan Old Style", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Arial", "Liberation Sans", sans-serif;
  --max-width: 1180px;
  --gutter: clamp(1rem, 2.4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gold); transition: color .2s ease, border-color .2s ease; }
a:hover, a:focus-visible { color: var(--gold-deep); border-color: var(--gold-deep); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0 0 .4em; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.85rem, 3.6vw, 2.85rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.95rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); }
p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gold);
}

/* ============== Layout helpers ============== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.section--paper { background: var(--paper); }
.section--deep { background: var(--cream-deep); }

.skip-link {
  position: absolute;
  left: -10000px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: .6rem 1rem;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ============== Top bar / nav ============== */
.topbar {
  background: var(--ink);
  color: #fff;
  border-bottom: 3px solid var(--gold);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  border: none;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.brand:hover, .brand:focus-visible { color: var(--gold); border: none; }
.brand__mark {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  position: relative;
  flex-shrink: 0;
}
.brand__mark::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 14px; height: 14px;
  border: 2px solid var(--ink);
  border-radius: 2px;
}

.nav {
  display: none;
  align-items: center;
  gap: .25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav a {
  color: #fff;
  border: none;
  padding: .5rem .9rem;
  border-radius: var(--radius-sm);
  font-size: .98rem;
  transition: background .2s ease, color .2s ease;
}
.nav a:hover, .nav a:focus-visible { background: rgba(255,255,255,.08); color: var(--gold); }
.nav__pill {
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  padding: .35rem .8rem;
  border-radius: 999px;
  font-size: .85rem;
  letter-spacing: .04em;
  border: none;
}
.nav__pill:hover { background: #d59951; color: var(--ink); }

.nav-toggle {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: var(--radius-sm);
  padding: .5rem .8rem;
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.nav-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.nav-toggle__icon { width: 18px; height: 14px; position: relative; }
.nav-toggle__icon span { position: absolute; left: 0; right: 0; height: 2px; background: #fff; border-radius: 2px; }
.nav-toggle__icon span:nth-child(1) { top: 0; }
.nav-toggle__icon span:nth-child(2) { top: 6px; }
.nav-toggle__icon span:nth-child(3) { top: 12px; }

@media (min-width: 900px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
}

.mobile-menu {
  display: none;
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1rem 0 1.2rem;
}
.mobile-menu.is-open { display: block; }
.mobile-menu ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .25rem; }
.mobile-menu a {
  color: #fff; border: none;
  display: block; padding: .7rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
}
.mobile-menu a:hover, .mobile-menu a:focus-visible { background: rgba(255,255,255,.08); color: var(--gold); }
.mobile-menu__lang { margin-top: .6rem; padding-top: .8rem; border-top: 1px solid rgba(255,255,255,.1); }

/* ============== Hero ============== */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 4rem);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .35;
}
.hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05); }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,42,68,.55) 0%, rgba(28,42,68,.75) 100%);
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; }
.hero__eyebrow {
  display: inline-block;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--gold);
  margin-bottom: 1.1rem;
  padding: .35rem .8rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
}
.hero__heading { font-size: clamp(1.95rem, 4.5vw, 3.05rem); color: #fff; margin: 0 0 1rem; max-width: 26ch; }
.hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: rgba(255,255,255,.9); max-width: 56ch; margin: 0 0 1.8rem; }
.hero__cta-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ============== Buttons ============== */
.btn {
  display: inline-block;
  padding: .85rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  font-family: inherit;
  text-align: center;
}
.btn--primary { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--outline:hover, .btn--outline:focus-visible { background: #fff; color: var(--ink); border-color: #fff; }
.btn--ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--ink:hover, .btn--ink:focus-visible { background: var(--ink-soft); border-color: var(--ink-soft); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--ink); color: #fff; }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ============== Stats / figures ============== */
.stat-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.4rem;
  padding: 1.5rem;
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
}
.stat-block__heading {
  grid-column: 1 / -1;
  margin: 0 0 .2rem;
  font-size: 1.1rem;
  color: var(--ink);
}
.stat-block__subhead {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: .9rem;
  margin: 0 0 .8rem;
}
.stat {
  padding: 1rem 1.2rem;
  background: var(--cream);
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
}
.stat__value { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--ink); line-height: 1; margin: 0 0 .3rem; }
.stat__label { font-size: .9rem; color: var(--muted); }

/* ============== Cards — articles grid ============== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}

.card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: var(--gold); }
.card__media { aspect-ratio: 16/10; overflow: hidden; background: var(--cream-deep); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card__cat { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-deep); font-weight: 700; margin: 0 0 .6rem; }
.card__title { font-size: 1.16rem; margin: 0 0 .6rem; color: var(--ink); }
.card__desc { font-size: .95rem; color: var(--ink-soft); margin: 0 0 1.1rem; }
.card__more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 600;
  font-size: .95rem;
  color: var(--gold-deep);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
  align-self: flex-start;
}
.card__more::after { content: "\2192"; font-weight: 400; }

/* Cards 2-column on larger screens */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.6rem; }

/* ============== Intro / feature row ============== */
.intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 800px) {
  .intro { grid-template-columns: 1.1fr .9fr; }
}
.intro__media { aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.intro__media img { width: 100%; height: 100%; object-fit: cover; }

.value-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; margin-top: 1.2rem; }
.value-card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.value-card__title { font-size: 1.05rem; color: var(--ink); margin: 0 0 .4rem; }
.value-card__body { font-size: .92rem; color: var(--ink-soft); margin: 0; }

/* ============== Seasonal cards ============== */
.season-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.season {
  padding: 1.4rem;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--rule);
  position: relative;
}
.season::before {
  content: ""; position: absolute; top: 0; left: 0; bottom: 0; width: 5px;
  background: var(--gold); border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
.season__name { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); margin: 0 0 .25rem; }
.season__period { display: inline-block; background: var(--cream-deep); color: var(--gold-deep); padding: .2rem .6rem; border-radius: 999px; font-size: .82rem; font-weight: 600; margin-bottom: .8rem; }
.season__tip { font-size: .95rem; color: var(--ink-soft); margin: 0; }

/* ============== Tips list ============== */
.tips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.tip { background: var(--cream); border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.1rem 1.3rem; }
.tip__n { display: inline-block; width: 30px; height: 30px; line-height: 30px; text-align: center; background: var(--ink); color: #fff; border-radius: 50%; font-weight: 700; font-family: var(--font-display); margin-bottom: .5rem; }
.tip__title { font-size: 1.05rem; margin: 0 0 .4rem; color: var(--ink); }
.tip__body { font-size: .93rem; color: var(--ink-soft); margin: 0; }

/* ============== Lead form ============== */
.form-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-soft);
}
.form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 700px) { .form-row { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field__label { font-size: .9rem; font-weight: 600; color: var(--ink); }
.field__hint { font-size: .8rem; color: var(--muted); }
.field__input, .field__select, .field__textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: .75rem .85rem;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field__textarea { min-height: 140px; resize: vertical; }
.field__input:focus, .field__select:focus, .field__textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 138, 58, .25);
}
.field__error { color: var(--alert); font-size: .85rem; min-height: 1.2em; }

.consent-row { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: 1.2rem; }
.consent-row input[type="checkbox"] { margin-top: .3rem; width: 18px; height: 18px; accent-color: var(--gold); }
.consent-row label { font-size: .9rem; color: var(--ink-soft); }

.form-success {
  background: rgba(44, 122, 74, .12);
  border: 1px solid rgba(44, 122, 74, .4);
  color: var(--ok);
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius);
}
.form-success h3 { color: var(--ok); margin: 0 0 .4rem; }

/* ============== Article page ============== */
.article-hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  overflow: hidden;
}
.article-hero__bg { position: absolute; inset: 0; opacity: .35; }
.article-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.article-hero::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(28,42,68,.55), rgba(28,42,68,.75)); z-index: 1; }
.article-hero .container { position: relative; z-index: 2; }
.article-hero__cat { color: var(--gold); }
.article-hero__title { font-size: clamp(1.8rem, 4vw, 2.7rem); color: #fff; max-width: 30ch; }
.article-hero__meta { color: rgba(255,255,255,.85); font-size: .9rem; margin-top: .8rem; display: flex; flex-wrap: wrap; gap: 1rem; }

.article-body { max-width: 720px; margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) 0; }
.article-body p { font-size: 1.08rem; line-height: 1.75; color: var(--ink-soft); margin-bottom: 1.2em; }
.article-body p.lead { font-family: var(--font-display); font-size: 1.22rem; color: var(--ink); border-left: 4px solid var(--gold); padding-left: 1rem; font-style: italic; margin: 0 0 1.6em; }
.article-body h2 { margin-top: 2rem; }

.callout {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--gold);
  padding: 1.2rem 1.4rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.6rem 0;
}
.callout__label { display: inline-block; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold-deep); font-weight: 700; margin-bottom: .4rem; }
.callout p { margin: 0; }

.article-cta { text-align: center; padding: 2rem 0; }

.related { background: var(--cream-deep); padding: clamp(2.5rem, 5vw, 4rem) 0; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; margin-top: 1.4rem; }

/* ============== Legal / privacy / terms styling ============== */
.legal-body { max-width: 760px; margin: 0 auto; }
.legal-body h2 { font-size: 1.4rem; margin-top: 1.8rem; }
.legal-body p, .legal-body li { font-size: 1rem; line-height: 1.7; color: var(--ink-soft); }
.legal-body ul { padding-left: 1.2rem; }
.legal-meta { color: var(--muted); font-size: .85rem; margin-top: 2rem; }

/* ============== Footer ============== */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.85);
  padding: clamp(2.5rem, 5vw, 4rem) 0 2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 700px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer h4 { color: #fff; font-size: 1.05rem; margin: 0 0 .85rem; padding-bottom: .55rem; border-bottom: 1px solid rgba(255,255,255,.15); }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .45rem; }
.footer ul a {
  color: rgba(255,255,255,.78);
  border: none;
  font-size: .94rem;
}
.footer ul a:hover, .footer ul a:focus-visible { color: var(--gold); }

.footer p { font-size: .92rem; color: rgba(255,255,255,.78); margin: 0; }
.footer__base {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
  font-size: .85rem;
  color: rgba(255,255,255,.7);
}
@media (min-width: 700px) { .footer__base { flex-direction: row; align-items: center; } }
.footer__base a { color: rgba(255,255,255,.9); border-color: rgba(255,255,255,.4); }
.footer__disclaimer { font-size: .82rem; color: rgba(255,255,255,.55); margin-top: 1rem; max-width: 90ch; }

/* ============== Misc ============== */
.divider { width: 60px; height: 3px; background: var(--gold); border: none; margin: 0 0 1.2rem; }
.center-text { text-align: center; }
.meta-strip { display: inline-flex; gap: 1.2rem; flex-wrap: wrap; color: var(--muted); font-size: .88rem; padding: .4rem 0; }

.back-link { display: inline-flex; align-items: center; gap: .35rem; color: var(--gold-deep); border: none; font-weight: 600; }
.back-link::before { content: "\2190"; }

.no-thanks { display:none; }

.fade-in { animation: fadeIn .6s ease both; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Print styles */
@media print {
  .topbar, .footer, .hero__cta-row, .form-card, .related, .nav { display: none !important; }
  body { background: #fff; color: #000; }
  .article-hero { background: #fff; color: #000; padding: 1rem 0; }
  .article-hero__bg, .article-hero::after { display: none; }
  .article-hero__title { color: #000; }
}
