@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500&family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&family=Inter:wght@400;500;600&display=swap');

/* ============ Carnet d'explorateur — tokens ============ */
:root {
  --papier: #F6F0E4;
  --kraft: #EDE3D1;
  --kraft-fonce: #D9CBB1;
  --encre: #1B2A41;
  --encre-douce: #3E4B60;
  --terracotta: #C4623A;
  --terracotta-fonce: #A04C2A;
  --or: #C9A24B;
  --nuit: #0F1826;
  --blanc: #FFFDF8;

  --f-titre: 'Fraunces', Georgia, serif;
  --f-texte: 'Inter', system-ui, sans-serif;
  --f-main: 'Caveat', 'Segoe Print', cursive;

  --mesure: 68ch;
  --large: 1240px;
  --gouttiere: clamp(1rem, 4vw, 2.5rem);
  --pointille: repeating-linear-gradient(90deg, var(--or) 0 6px, transparent 6px 13px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font: 400 1.0625rem/1.7 var(--f-texte);
  -webkit-font-smoothing: antialiased;
}

/* Reset images (anti-distorsion : Astro pose width/height natifs) */
img { max-width: 100%; height: auto; display: block; }

a { color: var(--terracotta-fonce); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--encre); }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--f-titre); font-weight: 600; line-height: 1.15; color: var(--encre); font-optical-sizing: auto; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -0.015em; margin: 0 0 .4em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); margin: 2.2em 0 .6em; }
h3 { font-size: 1.3rem; margin: 1.8em 0 .5em; }
p { margin: 0 0 1.15em; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saut-contenu { position: absolute; left: -999px; top: 0; background: var(--encre); color: var(--blanc); padding: .6rem 1rem; z-index: 100; }
.saut-contenu:focus { left: 1rem; }

.enveloppe { width: min(100% - 2 * var(--gouttiere), var(--large)); margin-inline: auto; }
.enveloppe--texte { width: min(100% - 2 * var(--gouttiere), 46rem); margin-inline: auto; }
.section { padding-block: clamp(2.5rem, 6vw, 5rem); }
.section--kraft { background: var(--kraft); }
.section--nuit { background: var(--nuit); color: var(--kraft); }
.section--nuit h2, .section--nuit h3 { color: var(--papier); }

/* Filet pointille d'itineraire */
.itineraire { height: 2px; background: var(--pointille); border: 0; margin: 2.5rem 0; }

/* Kicker : coordonnees reelles du lieu */
.kicker { font-family: var(--f-titre); font-style: italic; font-size: 1rem; color: var(--terracotta-fonce); margin: 0 0 .6rem; }
.kicker--clair { color: var(--or); }

/* ============ En-tete ============ */
.entete { position: sticky; top: 0; z-index: 50; background: rgba(246, 240, 228, .96); border-bottom: 1px solid var(--kraft-fonce); transition: box-shadow .2s; }
.entete.defile { box-shadow: 0 1px 0 var(--kraft-fonce), 0 8px 24px -18px rgba(27, 42, 65, .5); }
.entete__barre { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.marque { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--encre); }
.marque svg { width: 2.4rem; height: 2.4rem; flex: none; }
.marque__nom { font-family: var(--f-titre); font-weight: 600; font-size: 1.2rem; line-height: 1.05; }
.marque__nom small { display: block; font-family: var(--f-texte); font-weight: 400; font-size: .72rem; color: var(--encre-douce); letter-spacing: .01em; }

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a, .nav summary { color: var(--encre); text-decoration: none; font-size: .95rem; font-weight: 500; cursor: pointer; }
.nav a:hover, .nav summary:hover, .nav a[aria-current='page'] { color: var(--terracotta-fonce); }
.nav details { position: relative; }
.nav summary { list-style: none; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: ''; display: inline-block; width: .4em; height: .4em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); margin-left: .45em; }
.nav__menu { position: absolute; top: calc(100% + .9rem); left: -1rem; background: var(--blanc); border: 1px solid var(--kraft-fonce); padding: .6rem 0; min-width: 16rem; margin: 0; list-style: none; }
.nav__menu a { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 1.1rem; }
.nav__menu a span { font-family: var(--f-titre); font-style: italic; color: var(--encre-douce); font-size: .85rem; font-weight: 400; }
.nav__menu a:hover { background: var(--papier); }
.burger { display: none; background: none; border: 1px solid var(--kraft-fonce); padding: .5rem .7rem; font: inherit; color: var(--encre); cursor: pointer; }

@media (max-width: 900px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--papier); border-bottom: 1px solid var(--kraft-fonce); padding: .5rem var(--gouttiere) 1.2rem; }
  body.nav-ouverte .nav { display: flex; }
  .nav > a, .nav summary { padding: .7rem 0; border-bottom: 1px dotted var(--kraft-fonce); }
  .nav__menu { position: static; border: 0; background: none; padding: 0 0 .5rem .8rem; min-width: 0; }
}

/* ============ Tampon de visa (signature) ============ */
.tampon { display: inline-grid; place-items: center; width: 7.5rem; height: 7.5rem; border-radius: 50%; border: 2.5px solid currentColor; color: var(--terracotta); text-align: center; transform: rotate(-11deg); font-family: var(--f-titre); line-height: 1.05; position: relative; mix-blend-mode: multiply; opacity: .92; }
.tampon::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; border: 1px dashed currentColor; }
.tampon__pays { font-weight: 700; font-size: .95rem; padding: 0 .9rem; }
.tampon__date { font-size: .72rem; font-style: italic; margin-top: .2rem; }
.tampon--petit { width: 4.6rem; height: 4.6rem; border-width: 2px; }
.tampon--petit .tampon__pays { font-size: .66rem; padding: 0 .5rem; }
.tampon--petit .tampon__date { font-size: .58rem; }
.tampon--clair { color: var(--or); mix-blend-mode: normal; }

/* ============ Heros ============ */
.img-hero { aspect-ratio: 16 / 9; overflow: hidden; background: var(--kraft); }
.img-card { aspect-ratio: 3 / 2; overflow: hidden; background: var(--kraft); }
.img-body { aspect-ratio: 3 / 2; overflow: hidden; background: var(--kraft); }
.img-hero img, .img-card img, .img-body img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.hero-accueil { position: relative; background: var(--nuit); color: var(--papier); }
.hero-accueil .img-hero { max-width: 1600px; margin-inline: auto; }
.hero-accueil__voile { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 24, 38, .82) 0%, rgba(15, 24, 38, .45) 42%, rgba(15, 24, 38, 0) 68%); pointer-events: none; }
.hero-accueil__texte { position: absolute; inset: 0; display: flex; align-items: flex-end; padding-bottom: clamp(2rem, 7vw, 5.5rem); }
.hero-accueil__texte .enveloppe > div { max-width: 34rem; }
.hero-accueil h1 { color: var(--papier); font-size: clamp(2.3rem, 5.4vw, 4.2rem); }
.hero-accueil p { font-size: 1.12rem; color: var(--kraft); }
.hero-accueil .tampon { position: absolute; right: clamp(1rem, 6vw, 6rem); top: clamp(1.5rem, 8vw, 6rem); }
@media (max-width: 760px) {
  .hero-accueil__texte { position: static; background: var(--nuit); padding: 1.8rem 0 2.4rem; }
  .hero-accueil__voile { display: none; }
  .hero-accueil .tampon { width: 5.2rem; height: 5.2rem; top: 1rem; right: 1rem; }
  .hero-accueil .tampon .tampon__pays { font-size: .66rem; }
}

/* Hero de page : une double page de passeport — le titre a gauche, la photo a droite */
.hero-page { padding-top: clamp(1.2rem, 3vw, 2.5rem); }
.hero-page__grille { display: grid; gap: 1.6rem; align-items: center; }
@media (min-width: 1000px) { .hero-page__grille { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; } }
.hero-page__entete h1 { font-size: clamp(2rem, 3.6vw, 3.1rem); margin-bottom: .8rem; }
.hero-page__media { position: relative; order: -1; }
@media (min-width: 1000px) { .hero-page__media { order: 0; } }
.hero-page__media .img-hero { border: 6px solid var(--blanc); outline: 1px solid var(--kraft-fonce); }
.hero-page__media .tampon { position: absolute; left: -1.4rem; bottom: -1.6rem; background: var(--papier); mix-blend-mode: normal; opacity: 1; }
.carte .tampon { mix-blend-mode: normal; }
@media (max-width: 999px) { .hero-page__media .tampon { left: auto; right: .6rem; bottom: -1.4rem; width: 5.4rem; height: 5.4rem; } .hero-page__media .tampon .tampon__pays { font-size: .7rem; } }
.hero-page .meta-article { border-bottom: 0; padding-bottom: 0; }

/* ============ Boutons ============ */
.bouton { display: inline-block; background: var(--terracotta); color: var(--blanc); border: 0; padding: .85rem 1.5rem; font: 600 .98rem var(--f-texte); text-decoration: none; cursor: pointer; transition: background .15s; }
.bouton:hover { background: var(--terracotta-fonce); color: var(--blanc); }
.bouton--ligne { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.bouton--ligne:hover { background: var(--papier); color: var(--encre); }

/* ============ Itineraire des destinations (accueil) ============ */
.route { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0 2.2rem; }
.route li { border-top: 2px solid transparent; border-image: var(--pointille) 1; padding: 1.1rem 0 1.4rem; position: relative; }
.route li::before { content: ''; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--terracotta); }
.route a { text-decoration: none; color: var(--encre); display: block; }
.route strong { font-family: var(--f-titre); font-size: 1.3rem; font-weight: 600; display: block; margin-bottom: .2rem; }
.route em { font-family: var(--f-titre); color: var(--terracotta-fonce); font-size: .88rem; }
.route span { display: block; color: var(--encre-douce); font-size: .95rem; margin-top: .35rem; }
.route a:hover strong { color: var(--terracotta-fonce); }

/* ============ Cartes de carnet ============ */
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 2.4rem 2rem; }
.carte { position: relative; display: flex; flex-direction: column; background: var(--blanc); border: 1px solid var(--kraft-fonce); }
.carte__lien { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.carte .tampon { position: absolute; right: .7rem; top: .7rem; background: rgba(255, 253, 248, .85); }
.carte__corps { padding: 1.15rem 1.25rem 1.4rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.carte__meta { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .85rem; color: var(--encre-douce); }
.carte__cat { color: var(--terracotta-fonce); font-weight: 600; }
.carte__date { color: var(--encre-douce); font-variant-numeric: tabular-nums; }
.carte__titre { font-family: var(--f-titre); font-size: 1.28rem; font-weight: 600; line-height: 1.22; margin: 0; color: var(--encre); }
.carte__extrait { font-size: .95rem; color: var(--encre-douce); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.carte__lien:hover .carte__titre { color: var(--terracotta-fonce); }

/* Filtre du blog */
.filtre { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2.2rem; padding: 0; list-style: none; }
.filtre button { font: 500 .92rem var(--f-texte); background: transparent; color: var(--encre); border: 1px solid var(--kraft-fonce); padding: .5rem 1rem; cursor: pointer; }
.filtre button:hover { border-color: var(--encre); }
.filtre button[aria-pressed='true'] { background: var(--encre); color: var(--papier); border-color: var(--encre); }
.filtre button small { color: inherit; opacity: .7; margin-left: .3rem; }
.carte[hidden] { display: none; }

/* ============ Article ============ */
.chapeau { font-family: var(--f-titre); font-size: 1.28rem; line-height: 1.55; color: var(--encre); margin: 1.4rem 0 2rem; }
.meta-article { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; font-size: .9rem; color: var(--encre-douce); padding-bottom: 1.2rem; border-bottom: 1px solid var(--kraft-fonce); }

.article-sommaire { background: var(--kraft); padding: 1.3rem 1.5rem 1.1rem; margin: 0 0 2.4rem; border-left: 3px solid var(--or); }
.sommaire__titre { font-family: var(--f-titre); font-weight: 600; font-size: 1.1rem; margin: 0 0 .5rem; }
.article-sommaire ol { margin: 0; padding-left: 1.3rem; }
.article-sommaire li { margin: .2rem 0; font-size: .96rem; }
.article-sommaire a { color: var(--encre); text-decoration: none; }
.article-sommaire a:hover { color: var(--terracotta-fonce); text-decoration: underline; }

.corps { max-width: var(--mesure); }
.corps > p:first-of-type::first-letter { font-family: var(--f-titre); float: left; font-size: 4.1em; line-height: .82; padding: .08em .12em 0 0; color: var(--terracotta); font-weight: 600; }
.corps h2 { padding-top: 1.4rem; position: relative; }
.corps h2::before { content: ''; position: absolute; top: 0; left: 0; width: 4.5rem; height: 2px; background: var(--pointille); }
.corps ul, .corps ol { padding-left: 1.4rem; margin: 0 0 1.3em; }
.corps ul { list-style: none; padding-left: 1.3rem; }
.corps ul li { position: relative; margin: .4em 0; }
.corps ul li::before { content: ''; position: absolute; left: -1.1rem; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--or); }
.corps ol li { margin: .4em 0; }
.corps ol li::marker { color: var(--terracotta-fonce); font-family: var(--f-titre); font-weight: 600; }
.corps strong { font-weight: 600; color: var(--encre); }

.corps figure { margin: 2.2rem 0; }
.corps figure img { width: 100%; }
.corps figure .img-body { margin: 0; }
figcaption { display: block; font-size: .88rem; font-style: italic; color: var(--encre-douce); padding: .6rem 0 0 .8rem; border-left: 2px solid var(--or); margin-top: .6rem; }

.corps table { width: 100%; border-collapse: collapse; margin: 1.6rem 0 2rem; font-size: .95rem; background: var(--blanc); }
.corps th, .corps td { padding: .7rem .85rem; text-align: left; border-bottom: 1px solid var(--kraft-fonce); vertical-align: top; }
.corps thead th { background: var(--encre); color: var(--papier); font-weight: 600; font-family: var(--f-texte); }
.corps tbody tr:nth-child(even) { background: #FAF6EE; }
.tableau-defile { overflow-x: auto; }
@media (max-width: 640px) { .corps table { display: block; overflow-x: auto; } }

.corps blockquote { margin: 2rem 0; padding: .4rem 0 .4rem 1.4rem; border-left: 3px solid var(--terracotta); font-family: var(--f-titre); font-size: 1.18rem; font-style: italic; color: var(--encre); }
.corps blockquote p:last-child { margin: 0; }
/* Note de terrain : annotation manuscrite, usage limite */
.note-terrain { background: var(--blanc); border: 1px dashed var(--kraft-fonce); padding: 1.1rem 1.3rem; margin: 2rem 0; transform: rotate(-.4deg); }
.note-terrain__titre { font-family: var(--f-main); font-size: 1.55rem; color: var(--terracotta-fonce); line-height: 1; margin: 0 0 .4rem; }
.note-terrain p:last-child { margin: 0; }

/* Interview */
/* Override obligatoire (hook check_interview_css) : la question n'herite pas du style citation */
blockquote.journalist-question, blockquote.expert-answer {
  font-size: 1rem !important;
  font-style: normal !important;
  font-family: 'Inter', sans-serif !important;
  line-height: 1.7 !important;
}
blockquote.journalist-question { font-weight: 600; color: var(--encre); border-left-color: var(--encre); background: var(--kraft); padding: .9rem 1.2rem; margin: 2.2rem 0 1rem; }
.expert-answer { padding-left: 1.4rem; border-left: 1px dotted var(--kraft-fonce); }
.interview-expert-card { display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.2rem; align-items: center; background: var(--blanc); border: 1px solid var(--kraft-fonce); padding: 1.2rem 1.4rem; margin: 0 0 2.2rem; }
.interview-expert-card__initiale { width: 3.6rem; height: 3.6rem; border-radius: 50%; background: var(--encre); color: var(--or); display: grid; place-items: center; font-family: var(--f-titre); font-size: 1.5rem; }
.interview-expert-card p { margin: 0; font-size: .95rem; }
.interview-expert-card strong { font-family: var(--f-titre); font-size: 1.12rem; }

/* FAQ */
.faq { margin: 3rem 0 0; max-width: var(--mesure); }
.faq h2 { margin-top: 0; }
.faq__item { border-top: 1px solid var(--kraft-fonce); }
.faq__item:last-child { border-bottom: 1px solid var(--kraft-fonce); }
.faq__question { width: 100%; text-align: left; background: none; border: 0; padding: 1.05rem 2.2rem 1.05rem 0; font: 600 1.05rem var(--f-texte); color: var(--encre); cursor: pointer; position: relative; }
.faq__question::after { content: '+'; position: absolute; right: .3rem; top: .75rem; font: 400 1.5rem var(--f-titre); color: var(--terracotta); transition: transform .2s; }
.faq__item.ouvert .faq__question::after { transform: rotate(45deg); }
.faq__reponse { display: none; padding: 0 0 1.1rem; color: var(--encre-douce); }
.faq__item.ouvert .faq__reponse { display: block; }

/* Fil d'Ariane */
.ariane { font-size: .86rem; color: var(--encre-douce); margin: 1.4rem 0 0; }
.ariane ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: 0; }
.ariane li + li::before { content: '/'; margin-right: .3rem; color: var(--kraft-fonce); }
.ariane a { color: var(--encre-douce); }

/* Mise en page article + colonne */
.mise-en-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
@media (min-width: 1080px) { .mise-en-page { grid-template-columns: minmax(0, 46rem) 16rem; justify-content: space-between; } }
.colonne { font-size: .93rem; }
.colonne__bloc { position: sticky; top: 6rem; border-top: 2px solid var(--encre); padding-top: 1rem; }
.colonne h2 { font-size: 1.1rem; margin: 0 0 .7rem; }
.colonne ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.colonne li { padding: .4rem 0; border-bottom: 1px dotted var(--kraft-fonce); }
.colonne a { color: var(--encre); text-decoration: none; }
.colonne a:hover { color: var(--terracotta-fonce); }

/* Accueil : blocs */
.intro-split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .intro-split { grid-template-columns: 1.1fr .9fr; } }
.intro-split .img-card { border: 8px solid var(--blanc); outline: 1px solid var(--kraft-fonce); transform: rotate(1.2deg); }
.titre-section { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.titre-section h2 { margin: 0; }
.manifeste { font-family: var(--f-titre); font-size: clamp(1.35rem, 2.6vw, 1.8rem); line-height: 1.45; max-width: 40ch; }

/* Formulaire */
.formulaire { display: grid; gap: 1.1rem; max-width: 36rem; }
.champ label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.champ input, .champ select, .champ textarea { width: 100%; font: inherit; padding: .75rem .85rem; background: var(--blanc); border: 1px solid var(--kraft-fonce); color: var(--encre); }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--encre); outline: 2px solid var(--or); outline-offset: 0; }
.etat-envoi { min-height: 1.5em; font-size: .95rem; margin: 0; }
.etat-envoi[data-etat='ok'] { color: #2F6B45; }
.etat-envoi[data-etat='erreur'] { color: var(--terracotta-fonce); }

/* Pied */
.pied { background: var(--nuit); color: var(--kraft); padding: 3.5rem 0 2rem; font-size: .93rem; margin-top: 4rem; }
.pied__grille { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.pied h2 { font-size: 1.05rem; color: var(--papier); margin: 0 0 .8rem; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin: .35rem 0; }
.pied a { color: var(--kraft); text-decoration: none; }
.pied a:hover { color: var(--or); }
.pied__bas { border-top: 1px solid rgba(237, 227, 209, .2); margin-top: 2.5rem; padding-top: 1.3rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: rgba(237, 227, 209, .7); font-size: .85rem; }
.section--nuit + .pied { margin-top: 0; }

/* Page texte simple */
.page-texte { padding-block: 3rem 1rem; }
.page-texte h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
