/* ============ BLOG · The Palm Edit ============
   S'appuie sur ../style.css (variables, polices, grain, boutons, pied de page).
   Mobile d'abord : à 375 px rien ne déborde, texte ≥ 16 px, boutons ≥ 44 px. */

body.bl { background-color: var(--sable); overflow-x: clip; }
.bl img { max-width: 100%; }
.bl main { display: block; }

/* ---------- en-tête ---------- */
.bl-nav {
  position: sticky; top: 0; z-index: 50;
  height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 var(--gouttiere);
  background: rgba(251, 241, 220, .92);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 2px dashed rgba(11, 79, 99, .2);
}
.bl-nav__liens { display: flex; align-items: center; gap: 6px; }
.bl-nav__blog, .bl-nav__guides {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border-radius: 99px; font-weight: 700; font-size: 15px; text-decoration: none; color: var(--abysse);
}
.bl-nav__blog:hover { background: rgba(255, 255, 255, .6); }
.bl-nav__guides { background: var(--abysse); color: var(--blanc); box-shadow: var(--ombre); transition: transform .3s var(--sortie); }
.bl-nav__guides:hover { transform: translateY(-2px); }
@media (max-width: 440px) { .bl-nav__blog { display: none; } .bl-nav .marque span { font-size: 18px; } }

/* ---------- petits éléments communs ---------- */
.bl-etiq {
  display: inline-block; margin: 0 0 10px; padding: 4px 12px 2px;
  font-family: var(--f-etiquette); font-size: 18px; letter-spacing: .08em; line-height: 1.2;
  background: var(--soleil); color: var(--abysse); border-radius: 6px; transform: rotate(-1.5deg);
}
.bl-fil { margin: 0 0 18px; font-size: 15px; }
.bl-fil ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 0; }
.bl-fil li { display: inline-flex; align-items: center; }
.bl-fil li + li::before { content: "›"; margin: 0 8px; opacity: .55; }
.bl-fil a { text-decoration: none; font-weight: 600; padding: 10px 0; display: inline-block; }
.bl-fil a:hover { text-decoration: underline; }
.bl-fil [aria-current] { opacity: .75; }
.bl-titre-section { font-family: var(--f-titre); font-weight: 400; font-size: clamp(2rem, 1.4rem + 3vw, 3rem); line-height: 1.1; margin: 0 0 28px; text-align: center; color: var(--abysse); }

/* ---------- héros de la page liste ---------- */
.bl-heros { position: relative; background: var(--lagon) var(--grain); color: var(--abysse); padding: 30px var(--gouttiere) 84px; overflow: hidden; }
.bl-heros__in { position: relative; z-index: 2; max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 26px; align-items: center; }
.bl-heros__mot { font-family: var(--f-main); font-weight: 700; font-size: 28px; line-height: 1; margin: 0 0 4px; color: var(--profond); transform: rotate(-2deg); transform-origin: left; }
.bl-heros h1 { font-family: var(--f-titre); font-weight: 400; font-size: clamp(3.8rem, 2.4rem + 8vw, 7rem); line-height: 1; margin: 0 0 16px; color: var(--blanc); filter: drop-shadow(0 4px 0 var(--profond)); }
.bl-heros__intro { font-size: clamp(17px, 1rem + .5vw, 21px); line-height: 1.55; max-width: 32em; margin: 0; font-weight: 500; }

.bl-collage { position: relative; height: 270px; width: 100%; max-width: 420px; margin: 0 auto; }
.bl-pol { position: absolute; margin: 0; width: 42%; background: var(--blanc); padding: 7px 7px 4px; border-radius: 4px; box-shadow: var(--ombre); transform: rotate(var(--r)); animation: bl-flotte 7s ease-in-out infinite; animation-delay: var(--d, 0s); }
.bl-pol img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.bl-pol figcaption { font-family: var(--f-main); font-weight: 700; font-size: 18px; line-height: 1; text-align: center; padding: 6px 0 2px; color: var(--encre); }
.bl-pol::before { content: ""; position: absolute; top: -9px; left: 50%; width: 58px; height: 18px; margin-left: -29px; background: rgba(255, 207, 77, .85); transform: rotate(-3deg); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.bl-pol--1 { --r: -7deg; left: 1%; top: 30px; z-index: 1; }
.bl-pol--2 { --r: 2deg; left: 29%; top: 0; z-index: 3; --d: -2s; }
.bl-pol--3 { --r: 7deg; right: 1%; top: 34px; z-index: 2; --d: -4s; }
.bl-collage__fleur { position: absolute; width: 64px; height: auto; right: 0; bottom: 0; z-index: 4; transform: rotate(18deg); filter: drop-shadow(0 8px 6px rgba(8, 58, 73, .25)); }
@keyframes bl-flotte { 0%, 100% { transform: rotate(var(--r)) translateY(0); } 50% { transform: rotate(var(--r)) translateY(-7px); } }
@media (min-width: 860px) {
  .bl-heros { padding-top: 44px; padding-bottom: 100px; }
  .bl-heros__in { grid-template-columns: 1.05fr 1fr; gap: 40px; }
  .bl-collage { height: 400px; max-width: 520px; margin: 0 0 0 auto; }
  .bl-pol { padding: 10px 10px 6px; }
  .bl-pol figcaption { font-size: 24px; padding-top: 8px; }
  .bl-collage__fleur { width: 92px; }
}

/* ---------- liste d'articles ---------- */
.bl-liste { padding: 34px var(--gouttiere) 30px; }
.bl-liste__in { max-width: 1120px; margin: 0 auto; }
.bl-grille { display: grid; grid-template-columns: 1fr; gap: 44px; }
@media (min-width: 700px) { .bl-grille { grid-template-columns: 1fr 1fr; gap: 48px 36px; } }
@media (min-width: 1020px) { .bl-liste .bl-grille { grid-template-columns: repeat(3, 1fr); } }

/* carte = polaroïd / carte postale */
.bl-carte {
  --r: -1.2deg;
  position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--encre);
  background: var(--blanc); padding: 11px 11px 6px; border-radius: 6px;
  box-shadow: var(--ombre); transform: rotate(var(--r));
  transition: transform .45s var(--sortie), box-shadow .45s var(--sortie);
}
.bl-carte:nth-child(even) { --r: 1deg; }
.bl-carte:nth-child(3n) { --r: -.5deg; }
.bl-carte::before { /* ruban adhésif */
  content: ""; position: absolute; z-index: 3; top: -13px; left: 50%; width: 96px; height: 26px; margin-left: -48px;
  background: rgba(255, 207, 77, .82); transform: rotate(-3deg); box-shadow: 0 2px 4px rgba(0, 0, 0, .13);
}
.bl-carte:nth-child(even)::before { background: rgba(143, 214, 227, .85); transform: rotate(3deg); }
.bl-carte:hover, .bl-carte:focus-visible { transform: translateY(-6px) rotate(0); box-shadow: var(--ombre-haute); }
.bl-carte__photo { display: block; position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 3px; background: var(--lagon-clair); }
.bl-carte__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; transition: transform .8s var(--sortie); }
.bl-carte:hover .bl-carte__photo img { transform: scale(1.04); }
.bl-carte__corps { display: flex; flex-direction: column; gap: 8px; padding: 16px 10px 14px; flex: 1; }
/* étiquette pays = tampon posé sur la photo */
.bl-carte .bl-etiq {
  position: absolute; z-index: 2; top: 22px; left: 22px; max-width: calc(100% - 44px); margin: 0; padding: 3px 10px 1px;
  font-size: 17px; background: var(--blanc); color: var(--corail-fonce); border: 2px solid var(--corail-fonce); border-radius: 5px;
  transform: rotate(-4deg); box-shadow: 0 2px 0 rgba(201, 66, 42, .25);
}
.bl-carte__titre { font-family: var(--f-titre); font-size: 1.35rem; line-height: 1.2; color: var(--abysse); text-wrap: balance; }
.bl-carte__txt { font-size: 16px; line-height: 1.5; color: var(--encre-2); }
.bl-carte__lire { margin-top: auto; padding-top: 4px; font-family: var(--f-main); font-weight: 700; font-size: 23px; color: var(--palme); min-height: 44px; display: flex; align-items: center; }
.bl-carte__lire::after { content: "→"; margin-left: 8px; transition: transform .3s var(--sortie); }
.bl-carte:hover .bl-carte__lire::after { transform: translateX(5px); }
.bl-carte--une { margin-bottom: 52px; --r: -.8deg; }
.bl-carte--une .bl-carte__photo { aspect-ratio: 4 / 5; }
.bl-carte--une .bl-carte__titre { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); }
@media (min-width: 900px) {
  .bl-carte--une { flex-direction: row; padding: 14px; gap: 14px; }
  .bl-carte--une .bl-carte__photo { flex: 0 0 44%; aspect-ratio: 4 / 4.4; }
  .bl-carte--une .bl-carte__corps { flex: 1; justify-content: center; padding: 20px 30px; gap: 14px; }
  .bl-carte--une .bl-carte__txt { font-size: 18px; }
  .bl-carte--une .bl-etiq { top: 28px; left: 28px; }
}

/* ---------- en-tête d'article : grande photo plein écran ---------- */
.bl-tete { position: relative; display: flex; align-items: flex-end; min-height: min(88svh, 700px); background: var(--abysse); color: var(--blanc); padding: 0 var(--gouttiere) 78px; overflow: hidden; }
.bl-tete__fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; z-index: 0; }
.bl-tete::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(8, 58, 73, .25) 0%, rgba(8, 58, 73, 0) 25%, rgba(8, 58, 73, .6) 55%, rgba(8, 58, 73, .94) 100%); }
.bl-tete__in { position: relative; z-index: 2; width: 100%; max-width: 760px; margin: 0 auto; padding-top: 150px; }
.bl-retour { display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 10px; font-weight: 800; font-size: 15px; text-decoration: none; color: var(--blanc); padding: 0 14px 0 10px; border-radius: 99px; background: rgba(8, 58, 73, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.bl-retour::before { content: "←"; margin-right: 8px; }
.bl-tete .bl-etiq { display: block; width: fit-content; margin: 0 0 12px; background: var(--soleil); }
.bl-tete h1 { font-family: var(--f-titre); font-weight: 400; font-size: clamp(2.1rem, 1.4rem + 3.8vw, 3.8rem); line-height: 1.12; margin: 0 0 16px; color: var(--blanc); text-shadow: 0 3px 0 rgba(8, 58, 73, .55), 0 6px 24px rgba(0, 0, 0, .35); text-wrap: balance; }
.bl-tete__intro { font-size: clamp(17px, 1rem + .4vw, 20px); line-height: 1.55; margin: 0 0 14px; font-weight: 500; color: #f5efe2; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.bl-meta { margin: 0; font-size: 15px; font-weight: 600; color: var(--soleil); }
.bl-tete__legende { position: absolute; z-index: 2; top: 82px; right: 14px; margin: 0; max-width: 58%; padding: 5px 14px 3px; font-family: var(--f-main); font-weight: 700; font-size: 20px; line-height: 1.1; color: var(--encre); background: var(--blanc); transform: rotate(2deg); box-shadow: var(--ombre); border-radius: 3px; }
.bl-tete__legende::before { content: ""; position: absolute; top: -9px; left: 50%; width: 54px; height: 16px; margin-left: -27px; background: rgba(255, 207, 77, .85); transform: rotate(-3deg); }
@media (min-width: 900px) { .bl-tete__legende { top: 96px; right: 5%; font-size: 24px; } .bl-tete { padding-bottom: 96px; } }

/* ---------- corps d'article ---------- */
.bl-article { max-width: 760px; margin: 0 auto; padding: 24px var(--gouttiere) 20px; }
.bl-sommaire {
  background: var(--blanc); border-radius: 18px; padding: 18px 22px 14px;
  box-shadow: var(--ombre); border: 2px dashed rgba(31, 107, 69, .3); margin: 0 0 34px;
}
.bl-sommaire__titre { font-family: var(--f-etiquette); font-size: 22px; letter-spacing: .08em; margin: 0 0 6px; color: var(--palme); }
.bl-sommaire ol { margin: 0; padding-left: 1.4em; }
.bl-sommaire li { padding: 0; }
.bl-sommaire a { display: inline-block; padding: 9px 0; font-weight: 600; text-decoration: none; color: var(--abysse); min-height: 44px; line-height: 1.3; }
.bl-sommaire a:hover { text-decoration: underline; color: var(--corail-fonce); }

.bl-corps { font-size: 18px; line-height: 1.72; display: flow-root; }
.bl-corps > * { max-width: 100%; }
.bl-corps p { margin: 0 0 1.15em; }
.bl-corps h2 { font-family: var(--f-titre); font-weight: 400; font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.3rem); line-height: 1.15; color: var(--abysse); margin: 1.9em 0 .6em; text-wrap: balance; scroll-margin-top: 80px; }
.bl-corps h3 { font-family: var(--f-texte); font-weight: 800; font-size: 1.15rem; line-height: 1.3; color: var(--palme); margin: 1.6em 0 .4em; }
.bl-corps ul, .bl-corps ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.bl-corps li { margin-bottom: .55em; padding-left: .2em; }
.bl-corps li::marker { color: var(--corail); font-weight: 800; }
.bl-corps a { color: var(--corail-fonce); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: .18em; overflow-wrap: anywhere; }
.bl-corps a:hover { color: var(--abysse); }
.bl-corps strong { color: var(--abysse); }

.bl-corps .bl-check { list-style: none; padding-left: 0; }
.bl-corps .bl-check li {
  position: relative; padding: 12px 14px 12px 52px; margin-bottom: 8px;
  background: var(--blanc); border-radius: 14px; box-shadow: 0 8px 20px -16px rgba(11, 79, 99, .6);
}
.bl-corps .bl-check li::before {
  content: ""; position: absolute; left: 14px; top: 14px; width: 24px; height: 24px; border-radius: 7px;
  border: 2.5px solid var(--palme); background: var(--blanc);
}
.bl-corps .bl-check li::after {
  content: ""; position: absolute; left: 21px; top: 18px; width: 7px; height: 13px;
  border: solid var(--palme); border-width: 0 3px 3px 0; transform: rotate(40deg);
}

/* photos dans le texte */
.bl-fig { margin: 1.8em auto; width: min(100%, 300px); background: var(--blanc); padding: 10px 10px 6px; border-radius: 6px; box-shadow: var(--ombre); }
.bl-fig--g { transform: rotate(-1.6deg); }
.bl-fig--d { transform: rotate(1.6deg); }
.bl-fig img { width: 100%; height: auto; border-radius: 2px; }
.bl-fig figcaption { font-family: var(--f-main); font-size: 21px; line-height: 1.2; text-align: center; padding: 8px 2px 2px; color: var(--encre-2); }
@media (min-width: 900px) { .bl-fig { width: 320px; } }

/* ligne de vérification */
.bl-verif {
  margin: 2.2em 0 0; padding: 12px 16px; font-size: 15px !important; line-height: 1.5;
  background: rgba(31, 107, 69, .09); border-left: 4px solid var(--palme); border-radius: 0 12px 12px 0; color: var(--encre-2);
}
.bl-verif a { font-weight: 700; }
.bl-corps .bl-verif { clear: both; }

/* ---------- carte « le guide » ---------- */
.bl-cta {
  position: relative; margin: 44px auto 0; max-width: 760px; padding: 32px 24px 28px;
  background: var(--palme) var(--grain); color: var(--blanc); border-radius: 26px; text-align: center;
  box-shadow: var(--ombre-haute); overflow: hidden;
}
.bl-cta--large { margin: 20px var(--gouttiere) 0; max-width: 1000px; margin-left: auto; margin-right: auto; width: calc(100% - 2 * var(--gouttiere)); }
.bl-cta__obj { position: absolute; width: 84px; height: auto; right: -6px; top: -6px; transform: rotate(14deg); opacity: .95; filter: drop-shadow(0 10px 8px rgba(0, 0, 0, .25)); pointer-events: none; }
.bl-cta__etiq { margin: 0 0 6px; font-family: var(--f-etiquette); font-size: 20px; letter-spacing: .1em; color: var(--soleil); padding-right: 60px; padding-left: 60px; }
.bl-cta__titre { font-family: var(--f-titre) !important; font-weight: 400; font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.5rem) !important; line-height: 1.12; margin: 0 0 14px !important; color: var(--blanc) !important; text-wrap: balance; }
.bl-cta p { font-size: 17px; line-height: 1.55; margin: 0 auto 14px; max-width: 34em; }
.bl-cta__liste { list-style: none; margin: 0 auto 22px; padding: 0; display: grid; gap: 6px; font-weight: 600; font-size: 16px; max-width: 24em; text-align: left; }
.bl-cta__liste li { position: relative; padding-left: 28px; }
.bl-cta__liste li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--soleil); font-weight: 800; }
.bl-cta__actions { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bl-cta .btn { width: 100%; max-width: 360px; text-align: center; }
.bl-cta__lien { color: var(--blanc); font-weight: 700; padding: 12px 8px; min-height: 44px; display: inline-flex; align-items: center; text-align: center; }
.bl-cta__note { margin: 6px auto 0 !important; font-size: 15px !important; opacity: .85; }
.bl-corps a.btn { color: var(--abysse); }

/* ---------- à lire aussi ---------- */
.bl-aussi { padding: 56px var(--gouttiere) 10px; max-width: 1120px; margin: 0 auto; }
.bl-aussi .bl-grille { grid-template-columns: 1fr; }
@media (min-width: 700px) { .bl-aussi .bl-grille { grid-template-columns: repeat(3, 1fr); gap: 22px; } .bl-aussi .bl-carte__txt { display: none; } }

/* pied de page : un peu d'air */
.bl .pied { margin-top: 70px; }

@media (prefers-reduced-motion: reduce) {
  .bl-pol { animation: none; }
  .bl-carte, .bl-carte__photo img, .bl-carte__lire::after { transition: none; }
}
.bl-nav .nav__onglets { margin-left: auto; }

/* ---------- finitions d'article (DA carnet) ---------- */
.bl-article { padding-top: 34px; }
.bl-sommaire { position: relative; border: 0; border-radius: 6px; background: var(--blanc); padding: 24px 22px 14px; transform: rotate(-.5deg); }
.bl-sommaire::before { content: ""; position: absolute; top: -12px; left: 50%; width: 92px; height: 24px; margin-left: -46px; background: rgba(143, 214, 227, .85); transform: rotate(2deg); box-shadow: 0 2px 4px rgba(0, 0, 0, .12); }
.bl-corps h2::after {
  content: ""; display: block; width: 92px; height: 12px; margin-top: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 12' preserveAspectRatio='none'%3E%3Cpath d='M3 7C14 2 20 11 32 6S50 3 60 7s20 3 29-2' fill='none' stroke='%23ffcf4d' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}
.bl-corps h3 { font-family: var(--f-main); font-weight: 700; font-size: 1.7rem; color: var(--corail-fonce); }
/* les « conseils » = bout de papier */
.bl-corps p:has(> strong:first-child) { position: relative; background: var(--blanc); border-radius: 4px; padding: 16px 18px; box-shadow: 0 10px 24px -14px rgba(11, 79, 99, .55); border-left: 6px solid var(--soleil); }
.bl-corps blockquote { margin: 1.6em 0; padding: 18px 20px; background: var(--blanc); border-left: 6px solid var(--corail); border-radius: 4px; box-shadow: var(--ombre); font-family: var(--f-main); font-size: 1.5rem; line-height: 1.3; }
.bl-corps blockquote p { margin: 0; }
.bl-fig { position: relative; width: min(100%, 320px); padding: 11px 11px 6px; box-shadow: var(--ombre); margin: 2.2em auto; }
.bl-fig::before { content: ""; position: absolute; top: -12px; left: 50%; width: 88px; height: 24px; margin-left: -44px; background: rgba(255, 207, 77, .85); transform: rotate(-3deg); box-shadow: 0 2px 4px rgba(0, 0, 0, .12); }
.bl-fig--d::before { background: rgba(143, 214, 227, .85); transform: rotate(3deg); }
.bl-fig img { display: block; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 40%; }
.bl-fig figcaption { font-weight: 700; font-size: 23px; }
@media (min-width: 900px) { .bl-fig { width: 340px; } }
.bl-cta { border-radius: 8px; }
.bl-cta__obj { width: 72px; right: 6px; top: -4px; }
.bl-aussi .bl-grille { gap: 44px; }
.bl-sommaire ol { list-style: none; padding-left: 0; }
.bl-sommaire li { border-bottom: 1px dashed rgba(11, 79, 99, .18); }
.bl-sommaire li:last-child { border-bottom: 0; }
