/* xtremsail.com — Carnet des navigations extrêmes
   Identité visuelle : papier crème, encre charbon, marine profond. */

:root {
  --paper: #f4efe6;
  --paper-soft: #eae4d7;
  --ink: #1e1e1e;
  --ink-soft: #3a3a3a;
  --ink-mute: #6b6b63;
  --navy: #1c3a5c;
  --navy-hover: #2a4d76;
  --rust: #8a4b2b;
  --rule: #d6cfc0;
  --maxw: 720px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .15s ease;
}
a:hover { color: var(--rust); }

/* ── HEADER ───────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  padding: 22px 20px 18px;
}
.site-header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.site-title {
  font-family: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  margin: 0;
}
.site-title em {
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--navy);
}
.site-title:hover { color: var(--navy); }

.site-nav {
  font-family: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  margin-left: 18px;
}
.site-nav a:hover { color: var(--navy); }
.site-nav a.active { color: var(--navy); border-bottom: 1px solid var(--navy); padding-bottom: 2px; }

/* ── MAIN LAYOUT ──────────────────────────────────────── */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 20px 60px;
}
main.wide { max-width: 960px; }

article.post header {
  margin-bottom: 30px;
}
.kicker {
  font-family: "Work Sans", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 10px;
}
h1 {
  font-family: "Lora", Georgia, serif;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.post-meta {
  font-family: "Work Sans", sans-serif;
  font-size: 13px;
  color: var(--ink-mute);
  margin: 0;
}
.post-meta .sep { padding: 0 8px; opacity: 0.5; }

.lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 24px 0 28px;
  font-style: italic;
  border-left: 3px solid var(--navy);
  padding-left: 18px;
}

h2 {
  font-family: "Lora", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin: 40px 0 12px;
  letter-spacing: -0.005em;
}
h3 {
  font-family: "Work Sans", sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rust);
  margin: 28px 0 8px;
}

p { margin: 0 0 16px; }
ul, ol { padding-left: 22px; margin: 0 0 18px; }
li { margin-bottom: 6px; }

blockquote {
  margin: 22px 0;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--rule);
  color: var(--ink-soft);
  font-style: italic;
}

figure {
  margin: 28px 0;
}
figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}
figcaption {
  font-family: "Work Sans", sans-serif;
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 8px;
  line-height: 1.4;
}

.figplaceholder {
  background: var(--paper-soft);
  border: 1px dashed var(--rule);
  padding: 40px 20px;
  text-align: center;
  color: var(--ink-mute);
  font-family: "Work Sans", sans-serif;
  font-size: 13px;
  font-style: italic;
  border-radius: 2px;
}

.fiche {
  background: var(--paper-soft);
  border-left: 3px solid var(--navy);
  padding: 18px 22px;
  margin: 30px 0;
  font-size: 15px;
  line-height: 1.55;
}
.fiche h3 {
  margin-top: 0;
  color: var(--navy);
}
.fiche dl { margin: 0; display: grid; grid-template-columns: 140px 1fr; gap: 6px 14px; }
.fiche dt {
  font-family: "Work Sans", sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 2px;
}
.fiche dd { margin: 0; }

.sources {
  font-size: 13px;
  color: var(--ink-mute);
  border-top: 1px solid var(--rule);
  margin-top: 48px;
  padding-top: 18px;
}
.sources h3 {
  font-size: 12px;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.sources ul { padding-left: 18px; }
.sources a { color: var(--ink-soft); }

/* ── HOME — HERO + MAGAZINE ──────────────────────────── */

/* Hero full-bleed */
.hero {
  position: relative;
  width: 100%;
  height: 68vh;
  min-height: 480px;
  max-height: 680px;
  overflow: hidden;
  background: var(--ink);
  margin-bottom: 60px;
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.72) saturate(0.92);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.25) 50%,
    rgba(10,18,28,0.65) 100%);
  display: flex;
  align-items: flex-end;
}
.hero-inner {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px 56px;
  color: #fff;
}
.hero-kicker {
  font-family: "Work Sans", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 14px;
}
.hero-title {
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  font-size: 46px;
  line-height: 1.08;
  margin: 0 0 16px;
  letter-spacing: -0.015em;
  max-width: 720px;
  text-shadow: 0 1px 20px rgba(0,0,0,0.25);
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: #eadcb8;
}
.hero-sub {
  font-family: "Work Sans", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  line-height: 1.55;
  margin: 0;
}
.hero-credit {
  position: absolute;
  right: 16px;
  bottom: 10px;
  font-family: "Work Sans", sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}

.home-intro {
  max-width: 640px;
  margin: 0 auto 60px;
  padding: 0 20px;
  font-family: "Lora", Georgia, serif;
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink-soft);
  text-align: center;
  font-style: italic;
}
.home-intro em {
  color: var(--navy);
  font-style: normal;
  font-weight: 600;
}

/* Section titles on home */
.section-title {
  font-family: "Work Sans", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 12px;
  margin: 50px 0 18px;
}
.section-title:first-of-type { margin-top: 0; }
.section-intro {
  font-family: "Lora", Georgia, serif;
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 28px;
  line-height: 1.6;
}
.section-intro a {
  color: var(--rust);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.section-intro a:hover { color: var(--ink); }

/* Featured article — big card */
.featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  margin: 0 0 70px;
  align-items: center;
}
.featured a {
  display: contents;
  color: inherit;
  text-decoration: none;
}
.featured-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--paper-soft);
}
.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.featured a:hover .featured-image img { transform: scale(1.03); }
.featured-text .kicker { margin-bottom: 8px; }
.featured-text h2 {
  font-family: "Lora", Georgia, serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.18;
  margin: 0 0 14px;
  color: var(--ink);
  transition: color .15s ease;
}
.featured a:hover h2 { color: var(--navy); }
.featured-text p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 14px;
}
.featured-text .read-more {
  font-family: "Work Sans", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}

/* Grid of remaining articles */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 44px 32px;
  margin-bottom: 40px;
}
.card {
  position: relative;
}
.card a {
  display: block;
  color: inherit;
  text-decoration: none;
}
.card-image {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--paper-soft);
  margin-bottom: 14px;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.card a:hover .card-image img { transform: scale(1.03); }

/* Text-poster fallback for cards without image */
.card-poster {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--navy);
  color: var(--paper);
  display: flex;
  align-items: flex-end;
  padding: 20px 22px;
}
.card-poster.rust { background: var(--rust); }
.card-poster.charbon { background: #2a2a2a; }
.card-poster-text {
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  opacity: 0.96;
}

.card .kicker { margin-bottom: 4px; }
.card h3 {
  font-family: "Lora", Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 8px;
  text-transform: none;
  letter-spacing: -0.005em;
  transition: color .15s ease;
}
.card a:hover h3 { color: var(--navy); }
.card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* ── NAVIGATION INTERNE BAS DE PAGE ──────────────────── */
.post-nav {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--rule);
  margin-top: 48px;
  padding-top: 22px;
  font-family: "Work Sans", sans-serif;
  font-size: 13px;
  gap: 20px;
}
.post-nav a {
  color: var(--ink-soft);
  text-decoration: none;
}
.post-nav a:hover { color: var(--navy); }
.post-nav .label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  margin-bottom: 3px;
}

/* ── FOOTER ───────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--paper);
  padding: 30px 20px 40px;
  margin-top: 40px;
}
.site-footer-inner {
  max-width: 960px;
  margin: 0 auto;
  font-family: "Work Sans", sans-serif;
  font-size: 13px;
  color: var(--ink-mute);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
}
.site-footer a:hover { color: var(--navy); }
.site-footer .signature { font-style: italic; }

/* ── Encart AION (projet en cours) ───────────────────── */
.encart-aion {
  background: linear-gradient(135deg, var(--paper-soft) 0%, var(--paper) 100%);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--navy);
  padding: 28px 32px;
  margin: 0 0 50px;
  border-radius: 2px;
}
.encart-aion-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.encart-aion-kicker {
  font-family: "Work Sans", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}
.encart-aion-title {
  font-family: "Lora", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px;
}
.encart-aion-text {
  font-family: "Lora", Georgia, serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.encart-aion-countdown {
  font-family: "Work Sans", sans-serif;
  margin: 12px 0 20px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.encart-aion-jminus {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.encart-aion-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.encart-aion-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}
.encart-aion-cta,
.encart-aion-cta-secondary {
  font-family: "Work Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.encart-aion-cta { color: var(--navy); }
.encart-aion-cta-secondary { color: var(--rust); }
.encart-aion-cta:hover { color: var(--navy-hover); }
.encart-aion-cta-secondary:hover { color: var(--ink); }

/* Encart en bas de page-pilier (style sobre) */
.encart-aion.encart-aion-pied {
  margin-top: 60px;
  background: var(--paper-soft);
  border-left-color: var(--rust);
}
.encart-aion.encart-aion-pied .encart-aion-kicker { color: var(--rust); }
.encart-aion.encart-aion-pied .encart-aion-jminus { color: var(--rust); }

/* ── MOBILE ───────────────────────────────────────────── */
@media (max-width: 860px) {
  .featured { grid-template-columns: 1fr; gap: 22px; }
  .featured-text h2 { font-size: 26px; }
  .grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 28px; }
  h2 { font-size: 20px; }
  .lede { font-size: 17px; }
  main { padding: 30px 18px 50px; }
  .site-header-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .site-nav a { margin-left: 0; margin-right: 14px; }
  .fiche dl { grid-template-columns: 1fr; gap: 2px; }
  .fiche dt { padding-top: 8px; }
  .post-nav { flex-direction: column; }
  .site-footer-inner { flex-direction: column; gap: 6px; }
  .hero { height: 56vh; min-height: 380px; }
  .hero-title { font-size: 32px; }
  .hero-inner { padding-bottom: 36px; }
  .home-intro { font-size: 17px; margin-bottom: 40px; }
}
