/* =====================================================================
   NOUVEAU LOOK du site Les Chemins Vers Compostelle (novembre 2026)
   Fond blanc, beige dans les encadrés, titres EB Garamond, texte en police système,
   boutons de commande jaune doux. Chargée par communs/premier-head.html APRÈS
   les anciennes feuilles (bootstrap, main.css, mon_css.min.css) qu'elle surcharge.
   1. Base, en-tête, accueil, pied de page   2. Retouches accueil   3. Articles
   ===================================================================== */


:root {
  --sable: #ffffff;          /* fond général : blanc (choix de Gerard, 25/11) */
  --sable-clair: #f8f6f2;    /* fond des vignettes */
  --sable-fonce: #f1ece4;    /* bandeaux, survols */
  --terre: #e3dbcf;          /* filets et bordures */
  --brun: #2b2019;           /* texte principal et titres */
  --brun-moyen: #5f4a3b;     /* texte secondaire (contraste > 7 sur le sable) */
  --brique: #8a4424;         /* liens dans le texte */
  --jaune: #f0c85a;          /* bouton de commande : jaune doux, couleur des flèches du Camino */
  --jaune-survol: #e6b93f;
  --nuit: #241a14;           /* pied de page */
  --nuit-texte: #eae1d4;
  --nuit-doux: #c2b29d;

  --titre: 'EB Garamond', Garamond, 'Times New Roman', serif;
  --texte: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --rayon: 14px;
  --rayon-petit: 10px;
  --ombre: 0 6px 20px rgba(43, 32, 25, .08);
  --ombre-survol: 0 12px 28px rgba(43, 32, 25, .14);
}

html { scroll-padding-top: 96px; }
body {
  background: var(--sable);
  color: var(--brun);
  font-family: var(--texte);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--jaune); color: var(--brun); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--titre);
  font-weight: 500;
  color: var(--brun);
  letter-spacing: -0.01em;
  text-wrap: balance;
  text-align: left;
}
p, li { text-wrap: pretty; }
#main p, #main li, .m-pied p { text-align: left; hyphens: manual; }

a { color: var(--brique); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brun); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--jaune);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Boutons ---------- */
.m-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  font-family: var(--texte);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.m-btn i { font-size: 1.1em; }
.m-btn-commande { background: var(--jaune); color: var(--brun); box-shadow: 0 4px 12px rgba(138, 68, 36, .18); }
.m-btn-commande:hover { background: var(--jaune-survol); color: var(--brun); transform: translateY(-1px); }
.m-btn-second { border-color: var(--brun); color: var(--brun); background: transparent; }
.m-btn-second:hover { background: var(--brun); color: var(--sable); }

/* ---------- En-tête ---------- */
#header.header {
  background: var(--sable-clair);
  border-bottom: 1px solid var(--terre);
  min-height: 84px;
  padding: 0;
  box-shadow: none;
}
#header .logo { text-decoration: none; gap: .75rem; }
#header .logo img { width: 56px; height: 56px; max-height: none; margin: 0; }
#header .TitreLogo {
  font-family: var(--titre);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--brun);
  margin: 0;
  white-space: nowrap;
}
#header .TitreLogo small {
  display: block;
  font-family: var(--texte);
  font-size: .78rem;
  font-weight: 400;
  color: var(--brun-moyen);
  letter-spacing: .02em;
  margin-top: .2rem;
}
#header .container-xl { max-width: 1360px; padding-inline: 1.25rem; }
.m-entete-droite { display: flex; align-items: center; gap: 1.25rem; }
.m-entete-commande { padding: .6rem 1.1rem; font-size: .95rem; white-space: nowrap; }
@media (max-width: 1499px) { .m-cta-long { display: none; } }

@media (min-width: 1280px) {
  .navbar a, .navbar a:focus {
    font-family: var(--texte);
    font-size: .93rem;
    font-weight: 500;
    color: var(--brun);
    padding: 10px 0 10px 16px;
    text-decoration: none;
  }
  .navbar a:hover, .navbar li:hover > a { color: var(--brique); }
  .navbar .dropdown ul {
    background: var(--sable-clair);
    border: 1px solid var(--terre);
    border-radius: var(--rayon-petit);
    box-shadow: var(--ombre);
  }
  .navbar .dropdown ul a { color: var(--brun); font-size: .92rem; }
  .navbar .dropdown ul a:hover, .navbar .dropdown ul li:hover > a { color: var(--brique); }
  .navbar .dropdown ul hr { margin: .3rem .9rem; border-color: var(--terre); opacity: 1; }
}
@media (max-width: 1279px) {
  .m-entete-commande { display: none; }
  .mobile-nav-toggle { color: var(--brun); }
  .navbar-mobile ul { background: var(--sable-clair); }
  .navbar-mobile a, .navbar-mobile a:focus { font-family: var(--texte); color: var(--brun); text-decoration: none; }
}
@media (max-width: 480px) {
  #header .TitreLogo { font-size: 1.1rem; white-space: normal; }
  #header .logo img { width: 46px; height: 46px; }
}

#navbar a { text-decoration: none; font-family: var(--texte); color: var(--brun); }
#navbar .dropdown ul a:hover { color: var(--brique); }

#main { margin-top: 84px; }

/* ---------- Mise en page générale ---------- */
.m-conteneur { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.m-section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.m-section-titre {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.m-section-titre h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); margin: 0; }
.m-lien-fleche {
  font-weight: 600;
  font-size: .95rem;
  color: var(--brun);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  white-space: nowrap;
}
.m-lien-fleche:hover { color: var(--brique); }

/* ---------- Haut de page ---------- */
.m-hero { padding-top: clamp(1.5rem, 4vw, 3rem); }
.m-hero-grille {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.m-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem) !important; /* l'ancienne feuille force 16px sur téléphone */
  line-height: 1.08;
  margin: 0 0 1.1rem;
  color: var(--brun);
}
.m-hero h1 strong { font-weight: 500; }
.m-hero-texte { font-size: 1.15rem; color: var(--brun-moyen); max-width: 34rem; margin-bottom: 1.75rem; }
.m-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.m-hero-photo { position: relative; margin: 0; }
.m-hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 25 / 16;
  object-fit: cover;
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  display: block;
}
.m-hero-photo figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(36, 26, 20, .78);
  color: var(--nuit-texte);
  font-size: .85rem;
  padding: .4rem .8rem;
  border-radius: 999px;
}

/* ---------- Bandeau de chiffres ---------- */
.m-chiffres {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--sable-clair);
  border: 1px solid var(--terre);
  border-radius: var(--rayon);
}
.m-chiffre { display: flex; align-items: center; gap: .9rem; padding: 1.25rem 1.4rem; }
.m-chiffre + .m-chiffre { border-left: 1px solid var(--terre); }
.m-chiffre i { font-size: 1.6rem; color: var(--brique); flex: none; }
.m-chiffre strong { display: block; font-family: var(--titre); font-size: 1.45rem; font-weight: 500; line-height: 1.1; }
.m-chiffre span { display: block; font-size: .9rem; color: var(--brun-moyen); line-height: 1.35; }

/* ---------- Bloc credencial ---------- */
.m-credencial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  background: var(--sable-fonce);
  border-radius: var(--rayon);
  padding: clamp(1.5rem, 4vw, 3rem);
}
.m-credencial h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); margin: 0 0 1rem; }
.m-credencial p { max-width: 36rem; }
.m-credencial .m-hero-actions { margin-top: 1.5rem; }
.m-credencial-photos { display: grid; grid-template-columns: 1fr 1.25fr; gap: 1rem; align-items: end; }
.m-credencial-photos img { width: 100%; height: auto; border-radius: var(--rayon-petit); box-shadow: var(--ombre); display: block; }

/* ---------- Vignettes d'articles ---------- */
.m-grille-articles {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}
.m-vignettes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.m-vignettes-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.m-vignette {
  background: var(--sable-clair);
  border-radius: var(--rayon);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--brun);
  box-shadow: 0 1px 0 var(--terre);
  transition: box-shadow .25s ease, transform .25s ease;
}
.m-vignette:hover { box-shadow: var(--ombre-survol); transform: translateY(-3px); color: var(--brun); }
.m-vignette img { width: 100%; aspect-ratio: 284 / 180; object-fit: cover; display: block; }
.m-vignette-corps { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.m-vignette h3 { font-size: 1.25rem; line-height: 1.2; margin: 0; }
.m-vignette p { font-size: .95rem; color: var(--brun-moyen); margin: 0; }
.m-vignette .m-lire { margin-top: auto; padding-top: .4rem; font-size: .9rem; font-weight: 600; display: inline-flex; gap: .3rem; align-items: center; }

/* grande vignette (film, fontaine d'Irache) */
.m-une { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 0; }
.m-une img { aspect-ratio: auto; height: 100%; min-height: 280px; }
.m-une .m-vignette-corps { padding: 1.5rem 1.6rem; gap: .8rem; }
.m-une h3 { font-size: 1.6rem; }
.m-une p { font-size: 1rem; max-width: 62ch; }
.m-une .m-liens-une { display: flex; flex-direction: column; gap: .35rem; margin-top: .4rem; }
.m-une .m-liens-une a { font-weight: 600; font-size: .95rem; }

/* ---------- Articles les plus lus ---------- */
.m-plus-lus {
  background: var(--sable-clair);
  border: 1px solid var(--terre);
  border-radius: var(--rayon);
  padding: 1.5rem 1.4rem;
  position: sticky;
  top: 104px;
}
.m-plus-lus h2 { font-size: 1.6rem; margin: 0 0 .75rem; }
.m-plus-lus ol { list-style: none; margin: 0; padding: 0; counter-reset: lus; }
.m-plus-lus li { counter-increment: lus; border-top: 1px solid var(--terre); }
.m-plus-lus li:first-child { border-top: 0; }
.m-plus-lus ol a {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: .5rem;
  align-items: baseline;
  padding: .8rem 0;
  color: var(--brun);
  text-decoration: none;
  font-weight: 500;
  line-height: 1.35;
}
.m-plus-lus ol a::before {
  content: counter(lus);
  font-family: var(--titre);
  font-size: 1.5rem;
  color: var(--brique);
  line-height: 1;
}
.m-plus-lus ol a:hover { color: var(--brique); }

/* liste simple (webcams, récits) */
.m-liste-liens { list-style: none; margin: 0; padding: 0; }
.m-liste-liens li { border-top: 1px solid var(--terre); }
.m-liste-liens li:first-child { border-top: 0; }
.m-liste-liens a { display: block; padding: .85rem 0; color: var(--brun); text-decoration: none; font-weight: 500; line-height: 1.35; }
.m-liste-liens a:hover { color: var(--brique); }
.m-liste-liens small { display: block; font-weight: 400; color: var(--brun-moyen); margin-top: .2rem; }

/* bande photo panoramique */
.m-panorama { margin: 0; }
.m-panorama img { width: 100%; height: auto; display: block; border-radius: var(--rayon); }

/* ---------- Pied de page ---------- */
.m-pied { background: var(--nuit); color: var(--nuit-texte); padding: clamp(2.5rem, 6vw, 4rem) 0 6rem; font-size: .95rem; }
.m-pied a { color: var(--nuit-texte); text-decoration: none; }
.m-pied a:hover { color: var(--jaune); text-decoration: underline; }
.m-pied-recherche {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(234, 225, 212, .18);
}
.m-pied-recherche h2 { color: var(--nuit-texte); font-size: 1.5rem; margin: 0; }
.m-pied-recherche form { display: flex; gap: .5rem; flex: 1 1 360px; max-width: 520px; }
.m-pied-recherche input {
  flex: 1;
  min-width: 0;
  padding: .75rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(234, 225, 212, .3);
  background: rgba(255, 255, 255, .06);
  color: var(--nuit-texte);
  font-size: 1rem;
}
.m-pied-recherche input::placeholder { color: var(--nuit-doux); }
.m-pied-recherche button {
  padding: .75rem 1.3rem;
  border-radius: 999px;
  border: 0;
  background: var(--jaune);
  color: var(--brun);
  font-weight: 600;
  cursor: pointer;
}
.m-pied-recherche button:hover { background: var(--jaune-survol); }
.m-pied-colonnes { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.m-pied-marque { display: flex; gap: .9rem; align-items: flex-start; }
.m-pied-marque img { width: 52px; height: 52px; border-radius: 50%; flex: none; }
.m-pied-marque strong { font-family: var(--titre); font-size: 1.35rem; font-weight: 500; display: block; line-height: 1.15; margin-bottom: .5rem; }
.m-pied-marque p { color: var(--nuit-doux); margin: 0; max-width: 30rem; }
.m-pied h3 { font-family: var(--texte); font-size: .95rem; font-weight: 600; color: var(--nuit-texte); margin: 0 0 .8rem; }
.m-pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.m-pied ul a { color: var(--nuit-doux); }
.m-pied-labels { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1rem; }
.m-pied-labels img { background: #fff; border-radius: 6px; padding: 3px; height: 40px; width: auto; }
.m-pied-bas { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(234, 225, 212, .18); color: var(--nuit-doux); font-size: .88rem; }

/* bouton de retour en haut */
.scroll-top { background: var(--brun); }
.scroll-top i { color: var(--sable); }

/* ---------- Bandeau de commande fixe (téléphone) ---------- */
.m-barre-commande { display: none; }
@media (max-width: 767px) {
  .m-barre-commande {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 990;
    gap: .75rem;
    align-items: center;
    justify-content: space-between;
    padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
    background: var(--sable-clair);
    border-top: 1px solid var(--terre);
    box-shadow: 0 -6px 18px rgba(43, 32, 25, .08);
  }
  .m-barre-commande span { font-size: .85rem; color: var(--brun-moyen); line-height: 1.25; }
  .m-barre-commande span strong { display: block; color: var(--brun); font-size: .95rem; }
  .m-barre-commande .m-btn { padding: .65rem 1.1rem; font-size: .95rem; white-space: nowrap; }
  .scroll-top { bottom: 84px !important; }
}

/* ---------- Écrans moyens et petits ---------- */
@media (max-width: 991px) {
  .m-hero-grille, .m-credencial, .m-grille-articles, .m-une { grid-template-columns: 1fr; }
  .m-chiffres { grid-template-columns: repeat(2, 1fr); }
  .m-chiffre:nth-child(3) { border-left: 0; }
  .m-chiffre:nth-child(n + 3) { border-top: 1px solid var(--terre); }
  .m-vignettes, .m-vignettes-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-plus-lus { position: static; }
  .m-pied-colonnes { grid-template-columns: 1fr 1fr; }
  .m-pied-marque { grid-column: 1 / -1; }
  .m-une img { min-height: 0; aspect-ratio: 400 / 256; }
}
@media (max-width: 575px) {
  body { font-size: 16.5px; }
  .m-conteneur { width: calc(100% - 2rem); }
  .m-hero-actions .m-btn { flex: 1 1 auto; justify-content: center; }
  .m-chiffre { padding: .9rem 1rem; }
  .m-chiffre i { display: none; }
  .m-chiffre strong { font-size: 1.15rem; }
  .m-chiffre span { font-size: .85rem; }
  .m-hero-texte { font-size: 1.05rem; }
  .m-vignettes, .m-vignettes-4 { grid-template-columns: 1fr; }
  .m-vignette { display: grid; grid-template-columns: 38% 1fr; }
  .m-vignette img { height: 100%; aspect-ratio: auto; }
  .m-vignette-corps { padding: .8rem .9rem; }
  .m-vignette h3 { font-size: 1.1rem; }
  .m-vignette p { display: none; }
  .m-une { display: flex; flex-direction: column; }
  .m-une img { aspect-ratio: 400 / 256; height: auto; }
  .m-une p { display: block; }
  .m-pied-colonnes { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}


/* ===================== 2. Retouches de l'accueil ===================== */
/* =====================================================================
   Accueil : retouches validées par Gerard le 25/11/2026
   Demandes de Gerard : titre un peu plus petit (même police),
   image du chien réduite dans le rapport 700/800, bandeau photo en haut.
   ===================================================================== */

/* Bandeau photo en haut de page */
.m-bandeau-haut { margin: 0 0 clamp(1.5rem, 4vw, 2.5rem); }
.m-bandeau-haut img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--rayon);
}
@media (max-width: 575px) {
  .m-bandeau-haut img { height: 120px; object-fit: cover; object-position: 40% 60%; }
}

/* Titre un peu plus petit : 51 px devient 43 px sur un écran de 1366 px */
.m-hero h1 { font-size: clamp(1.8rem, 3.3vw, 2.7rem) !important; }

/* Image du chien réduite de 12,5 % (rapport 700/800), proportions gardées */
.m-hero-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 490px); }
.m-hero-photo img { max-width: 490px; margin-left: auto; }
@media (max-width: 991px) {
  .m-hero-grille { grid-template-columns: 1fr; }
  .m-hero-photo img { max-width: 100%; }
}

/* Retouches du 25/11 au soir : bouton « Commander » de l'en-tête un peu plus petit */
.m-entete-commande { padding: .45rem .95rem; font-size: .88rem; gap: .4rem; }

/* Retouches du 25/11 au soir (2) */
/* Recherche du pied de page : titre centré juste au-dessus du champ */
.m-pied-recherche { flex-direction: column; justify-content: center; text-align: center; gap: .9rem; }
.m-pied-recherche h2 { text-align: center; }
.m-pied-recherche form { flex: 0 1 auto; width: min(560px, 100%); max-width: none; }

/* Vignettes : toutes ont une accroche ; sur téléphone on la garde, sur 3 lignes au plus */
@media (max-width: 575px) {
  .m-vignette p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: .88rem;
  }
  .m-vignette .m-lire { display: none; }
}


/* ===================== 3. Pages de contenu (articles, commande, rubriques) =====================
   Toutes ces pages ont <section class="single-post-content">. Le préfixe #main fait passer
   ces règles devant les petites feuilles <style> placées dans certaines pages. */

/* En-tête des pages de contenu : menu poussé à droite, avant le bouton de commande */
#header .container-xl > #navbar { margin-left: auto; margin-right: 1.25rem; }

/* ---------- Une seule colonne ---------- */
#main .single-post-content { padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(2.5rem, 6vw, 4rem); overflow: visible; }
#main .single-post-content > .container > .row { display: block; margin: 0; }
#main .single-post-content .post-content,
#main .single-post-content .col-md-3 {
  width: 100%;
  max-width: 37rem;            /* environ 75 caractères par ligne au plus */
  margin-inline: auto;
  padding: 0;
  background: transparent !important;
  float: none;
  flex: none;
}
/* les deux lignes vides placées avant le fil d'Ariane */
#main .post-content > p:has(+ p + .breadcrumb),
#main .post-content > p:has(+ .breadcrumb) { display: none; }

/* ---------- Fil d'Ariane ---------- */
#main .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0 0 1.25rem;
  font-size: .9rem;
  color: var(--brun-moyen);
}
#main .breadcrumb a { color: var(--brun-moyen); text-decoration: none; }
#main .breadcrumb a:hover { color: var(--brique); text-decoration: underline; }
#main .breadcrumb > li + li::before { color: var(--terre); padding: 0 .5rem; }

/* ---------- Titres et texte ---------- */
#main .single-post-content h1 {
  font-family: var(--titre);
  font-size: clamp(1.75rem, 3.5vw, 2.45rem) !important; /* l'ancienne feuille force 16px sur téléphone */
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--brun);
  text-align: left !important;
  margin: 0 0 .75rem;
}
#main .single-post-content h2 {
  font-family: var(--titre);
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--brun);
  text-align: left;
  margin: 2.4rem 0 .8rem;
  scroll-margin-top: 100px;
}
#main .single-post-content h3 {
  font-family: var(--titre);
  font-size: 1.28rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--brun);
  text-align: left;
  margin: 1.8rem 0 .5rem;
}
#main .single-post-content h4,
#main .single-post-content h5,
#main .single-post-content h6 { font-family: var(--texte); font-weight: 600; color: var(--brun); text-align: left; }
#main .post-content p, #main .post-content li { font-size: 1.06rem; line-height: 1.7; color: var(--brun); }
#main .post-content p { margin: 0 0 1.1rem; }
#main .post-content ul, #main .post-content ol { padding-left: 1.3rem; margin-bottom: 1.2rem; }
#main .post-content li { margin-bottom: .35rem; }
#main .post-content li::marker { color: var(--brique); }

/* Ligne « Article écrit par Gérard » */
#main .post-content p.text-center.small {
  text-align: left !important;
  font-size: .9rem;
  color: var(--brun-moyen) !important;
  margin-bottom: 1.5rem;
}

/* Photos : main.css les élargissait à 990 px, elles restent dans la colonne */
#main .post-content figure {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  left: 0 !important;
  transform: none !important;
  margin: 0 0 2rem !important;
  text-align: left !important;
}
#main .post-content figure > img, #main .post-content figure > a > img, #main .post-content figure > picture img { width: auto; max-width: 100%; height: auto; margin: 0 !important; border-radius: var(--rayon); box-shadow: var(--ombre); }
#main .post-content figcaption, #main .post-content figcaption small { font-size: .85rem; color: var(--brun-moyen); margin-top: .5rem; text-align: left; }

/* ---------- Encadré résumé ---------- */
#main .post-content div[style*="fff59d"] {
  background: var(--sable-fonce) !important;
  border: 0 !important;
  border-radius: var(--rayon) !important;
  padding: clamp(1.25rem, 3vw, 1.75rem) !important;
  margin: 0 0 2.25rem !important;
}
#main .post-content div[style*="fff59d"] > h2 {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 0 .75rem !important;
  text-align: left !important;
  font-size: 1.45rem;
  line-height: 1.25;
}
#main .post-content div[style*="fff59d"] p { font-size: 1.02rem; margin: 0; }

/* ---------- Sommaire ---------- */
#main .post-content .container.mt-4 {
  padding: 1.25rem 1.5rem;
  margin: 0 0 1rem !important;
  border: 1px solid var(--terre);
  border-radius: var(--rayon);
  background: var(--sable-clair);
}
#main .post-content .container.mt-4 h2 { font-size: 1.3rem; margin: 0 0 .6rem; }
#main .post-content .container.mt-4 ol { margin: 0; }
#main .post-content .list-group-item { border: 0; padding: .2rem 0; background: transparent; }
#main .post-content .list-group-item a { color: var(--brun); text-decoration: none; }
#main .post-content .list-group-item a:hover { color: var(--brique); text-decoration: underline; }

/* ---------- Tableaux ---------- */
#main .post-content .table-responsive { margin: 1.25rem 0 1.5rem; border: 1px solid var(--terre); border-radius: var(--rayon); }
#main .post-content .table { margin: 0; caption-side: bottom; --bs-table-bg: transparent; border-color: var(--terre); }
#main .post-content .table > :not(caption) > * > * { padding: .7rem .85rem; border-color: var(--terre); color: var(--brun); font-size: .97rem; }
#main .post-content .table thead th { background: var(--sable-fonce); font-weight: 600; }
#main .post-content .table tbody tr:nth-child(even) td { background: var(--sable-clair); }
#main .post-content .table caption { padding: .6rem .85rem; font-size: .85rem; color: var(--brun-moyen); }
#main .post-content .table-bordered > :not(caption) > * > * { border-width: 0 0 1px; }
@media (max-width: 575px) {
  #main .post-content .table > :not(caption) > * > * { padding: .5rem .45rem; font-size: .86rem; }
}

/* ---------- Complétez votre lecture ---------- */
#main .post-content div.border.border-danger:not([style]),
#main .lecture-credencial {
  border: 0 !important;
  padding: 0 !important;
  margin: 3rem auto 0 !important;
}
#main .lecture-credencial { max-width: 50rem; padding: 0 1.25rem !important; }
#main .post-content div.border.border-danger:not([style]) > h2,
#main .lecture-credencial > h2 { text-align: left !important; font-family: var(--titre); font-weight: 500; color: var(--brun); font-size: 1.6rem; margin: 0 0 1rem; }
#main .post-content .card,
#main .lecture-credencial .card {
  position: relative;
  background: var(--sable-clair);
  border: 0;
  border-radius: var(--rayon);
  box-shadow: 0 1px 0 var(--terre);
  transition: box-shadow .25s ease, transform .25s ease;
}
#main .post-content .card:hover,
#main .lecture-credencial .card:hover { box-shadow: var(--ombre-survol); transform: translateY(-2px); }
#main .post-content .card-body,
#main .lecture-credencial .card-body { padding: 1.1rem 1.2rem; }
#main .post-content .card p.fw-bold,
#main .lecture-credencial .card p.fw-bold { font-family: var(--titre); font-weight: 500 !important; font-size: 1.25rem; line-height: 1.2; margin-bottom: .35rem !important; }
#main .post-content .card p.fw-bold a,
#main .lecture-credencial .card p.fw-bold a { color: var(--brun); text-decoration: none; }
#main .post-content .card p.fw-bold a::after,
#main .lecture-credencial .card p.fw-bold a::after { content: ""; position: absolute; inset: 0; } /* toute la vignette est cliquable */
#main .post-content .card .card-text,
#main .lecture-credencial .card .card-text { font-size: .93rem; color: var(--brun-moyen); line-height: 1.5; }

/* ---------- Ancienne colonne de droite, désormais sous l'article ---------- */
#main .single-post-content .col-md-3 {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--terre);
}
#main .single-post-content .col-md-3 .btn-success {          /* bouton vert remplacé par le bouton jaune */
  background: var(--jaune);
  border: 0;
  color: var(--brun);
  border-radius: 999px;
  padding: .55rem 1.1rem;
  font-weight: 600;
  margin-top: .5rem;
}
#main .single-post-content .col-md-3 .btn-success:hover { background: var(--jaune-survol); color: var(--brun); }
#main .single-post-content .col-md-3 .custom-tab-nav { border: 0; margin-bottom: .75rem !important; }
#main .single-post-content .col-md-3 .custom-tab-nav .nav-link {
  background: transparent;
  color: var(--brun);
  font-family: var(--titre);
  font-size: 1.4rem;
  text-transform: none;
  letter-spacing: 0;
  padding: 0;
  border: 0 !important;
}
#main .single-post-content .col-md-3 .panel-body h5, #main .single-post-content .col-md-3 .panel-body p.m-lien-menu { font-family: var(--texte); font-size: 1rem; font-weight: 400; margin: 0 0 .45rem; }
#main .single-post-content .col-md-3 .panel-body h5 a, #main .single-post-content .col-md-3 .panel-body p.m-lien-menu a { color: var(--brique); }
#main .single-post-content .col-md-3 .panel-body > p:not(.m-lien-menu) { display: none; }
#main .single-post-content .col-md-3 .aside-title { font-size: 1.4rem; text-align: left; text-transform: none; letter-spacing: 0; border: 0 !important; padding-bottom: 0; }
#main .single-post-content .col-md-3 .aside-title::after,
#main .single-post-content .col-md-3 .aside-title::before { display: none; }
#main .single-post-content .col-md-3 p,
#main .single-post-content .col-md-3 .text-center { text-align: left !important; }
#main .single-post-content .col-md-3 .aside-block:empty,
#main .single-post-content .col-md-3 .aside-title:empty { display: none; }

/* ===================== 4. Page de commande (credencial/commande-credencial.php) ===================== */
#main .page-commande .post-content { max-width: 50rem; }
#main .page-commande .post-content > p.fs-5 { text-align: left !important; font-size: 1.15rem !important; font-weight: 400 !important; color: var(--brun-moyen); margin-bottom: 1.5rem !important; }
#main .page-commande .row > .col-1 { display: none; }
#main .page-commande .row:has(> .col-md-5.single-post) { display: flex; gap: 1.25rem; margin: 2rem 0; }
#main .page-commande .col-md-5.single-post {
  flex: 1 1 0;
  max-width: none;
  width: auto;
  background: var(--sable-clair) !important;
  border: 1px solid var(--terre);
  border-radius: var(--rayon);
  padding: 1.5rem 1.4rem;
  text-align: left !important;
}
#main .page-commande .col-md-5.single-post > p:first-child { display: none; }
#main .page-commande .col-md-5.single-post h2 { font-size: 1.35rem; line-height: 1.25; margin: 0 0 .9rem; }
#main .page-commande .col-md-5.single-post p { font-size: .98rem; line-height: 1.6; text-align: left !important; }
#main .page-commande .bg-warning {
  display: inline-block;
  background: #fbefc6 !important;
  color: var(--brun);
  border-radius: 999px;
  padding: .45rem 1rem;
  font-size: .88rem;
  line-height: 1.35;
}
#main .page-commande .col-md-5.single-post figure { margin: 1rem 0 !important; text-align: center !important; }
#main .page-commande .col-md-5.single-post figure img { width: auto; max-width: 100%; border: 0; padding: 0; }
#main .page-commande .col-md-5.single-post figcaption p { text-align: center !important; margin: .4rem 0 0; }
#main .page-commande .custom-main { max-width: 50rem; padding: 0; }
#main .page-commande .custom-main hr { border-color: var(--terre); opacity: 1; margin: 2rem 0; }
.m-etapes-commande {
  background: var(--sable-fonce);
  border-radius: var(--rayon-petit);
  padding: 1rem 1.2rem;
  text-align: left;
}
.m-etapes-commande strong { font-weight: 500; }
.m-btn-grand { padding: 1rem 2.2rem; font-size: 1.15rem; border: 0; cursor: pointer; margin-top: .5rem; }
@media (max-width: 767px) {
  #main .page-commande .row:has(> .col-md-5.single-post) { flex-direction: column; }
}

/* Questions fréquentes en accordéon (page de commande et autres) */
#main .faq-section h2 {
  font-family: var(--titre);
  font-weight: 500;
  color: var(--brun);
  font-size: 1.7rem;
  border-bottom: 1px solid var(--terre);
}
#main .faq-list details {
  background: var(--sable-clair);
  border: 1px solid var(--terre) !important;
  border-radius: var(--rayon-petit);
  box-shadow: none;
}
#main .faq-list summary { color: var(--brun); font-weight: 600; }
#main .faq-list summary:hover { background: var(--sable-fonce); }
#main .faq-list summary::after { color: var(--brique); }
#main .faq-list details[open] summary { background: var(--sable-fonce); border-bottom-color: var(--terre); }
#main .faq-answer a { color: var(--brique); }

/* ===================== 5. Corrections après le premier contrôle Playwright (25/11) ===================== */
/* Rien ne doit dépasser sur le côté (rangées Bootstrap à marges négatives) */
#main .single-post-content { overflow-x: clip; }

/* Petite icône « AI » dans les légendes de photo : elle garde sa taille */
#main .post-content figcaption img {
  display: inline-block;
  width: auto !important;
  height: 1.1em;
  margin: 0 .3rem 0 0 !important;
  vertical-align: -0.15em;
  border-radius: 0;
  box-shadow: none;
}

/* Pages légales, contact, liens : colonnes vides et fond gris supprimés */
#main .single-post-content > .row > .col-md-1,
#main .single-post-content > .row > .col-1-lg,
#main .single-post-content > .container > .row > .col-md-1 { display: none; }
#main .single-post-content > .row { display: block; margin: 0; }
#main .single-post-content > .row > .col-md-10 {
  width: 100%;
  max-width: 46rem;
  margin-inline: auto;
  padding: 0 1.25rem;
  flex: none;
  background: transparent !important;
}
#main .single-post-content .bg-light { background: transparent !important; }

/* Boutons Bootstrap du contenu aux couleurs du site */
#main .btn-success, #main .btn-warning {
  background: var(--jaune);
  border: 0;
  color: var(--brun);
  border-radius: 999px;
  font-weight: 600;
  padding: .55rem 1.2rem;
}
#main .btn-success:hover, #main .btn-warning:hover { background: var(--jaune-survol); color: var(--brun); }
#main .btn-primary, #main .btn-secondary {
  background: transparent;
  border: 1.5px solid var(--brun);
  color: var(--brun);
  border-radius: 999px;
  font-weight: 600;
  padding: .5rem 1.2rem;
  text-decoration: none;
}
#main .btn-primary:hover, #main .btn-secondary:hover { background: var(--brun); color: #fff; }

/* Encadrés colorés des pages de liens : beige au lieu de bleu et jaune vif */
#main .post-content .bg-info,
#main .post-content .bg-warning:not(.page-commande *) {
  background: var(--sable-clair) !important;
  border: 1px solid var(--terre);
  border-radius: var(--rayon-petit);
  color: var(--brun);
}

/* Pages de liens (.info-box) : encadrés beige, les cases vides disparaissent */
#main .info-box {
  background: var(--sable-clair) !important;
  border: 1px solid var(--terre) !important;
  border-left-width: 1px !important;
  border-radius: var(--rayon-petit);
  color: var(--brun);
  padding: 1rem 1.2rem;
  margin-bottom: .75rem;
}
#main .info-box:has(> .title:empty):has(> .description:empty) { display: none; }
#main .info-box .title, #main .info-box .title a { font-family: var(--titre); font-size: 1.2rem; font-weight: 500; color: var(--brun); }
#main .info-box .description { text-align: left; font-size: 1rem; line-height: 1.6; color: var(--brun); }
#main .post-content .container { padding-left: 0; padding-right: 0; }

/* Boutons qui valident une étape de la commande : jaune, comme tous les boutons de commande */
#main button.btn-primary,
#main input[type="submit"].btn-primary {
  background: var(--jaune);
  border: 0;
  color: var(--brun);
}
#main button.btn-primary:hover,
#main input[type="submit"].btn-primary:hover { background: var(--jaune-survol); color: var(--brun); }

/* Page de commande : colonne un peu moins large, pour des lignes faciles à lire */
#main .page-commande .post-content { max-width: 42rem; }
#main .page-commande .custom-main { max-width: 42rem; }

/* Pages à colonnes 2 / 8 / 2 (credencial TV…) : même colonne centrée que les autres */
#main .single-post-content > .row > .col-md-2 { display: none; }
#main .single-post-content > .row > .col-md-8 {
  width: 100%;
  max-width: 46rem;
  margin-inline: auto;
  padding: 0 1.25rem;
  flex: none;
  background: transparent !important;
}

/* ===================== 6. Pages aussi larges que l'accueil (choix de Gerard, 25/11) =====================
   Sur ordinateur, une seule colonne de la largeur de l'accueil (1200 px), texte un peu plus grand.
   Les photos, souvent de 400 px, ne dépassent pas 760 px pour rester nettes. */
@media (min-width: 992px) {
  #main .single-post-content > .container { max-width: 1200px; }
  #main .single-post-content .post-content,
  #main .single-post-content .col-md-3 { max-width: 1140px; }
  #main .post-content p, #main .post-content li { font-size: 1.15rem; }
  #main .single-post-content > .row > .col-md-10,
  #main .single-post-content > .row > .col-md-8 { max-width: 1200px; padding: 0 2rem; }
  #main .page-commande .post-content, #main .page-commande .custom-main { max-width: 1140px; }
  #main .post-content figure > img,
  #main .post-content figure > a > img,
  #main .post-content figure > picture img { max-width: 760px; display: block; margin-inline: auto !important; }
  #main .post-content figcaption { max-width: 760px; margin-inline: auto; }
}

/* ===================== 7. Pages sans barre latérale (26/11) =====================
   Les photos gardent leur taille réelle : elles ne sont jamais agrandies (sinon elles deviennent floues). */
#main .post-content figure { text-align: center !important; }
#main .post-content figure > img,
#main .post-content figure > a > img,
#main .post-content figure > picture img { display: inline-block; margin-inline: auto !important; }
#main .post-content figcaption { text-align: center; }

/* ===================== 8. Récits et tableaux (26/11) ===================== */
/* Tableau de toutes les étapes, sous le bouton « Étape suivante » (communs/etapes-*.php) */
#main .m-etapes { margin: 2.5rem 0 1rem; text-align: left; clear: both; }
#main .m-etapes h2 {
  font-family: var(--titre);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--brun);
  text-align: left;
  margin: 0 0 1rem;
}
#main .m-etapes ol {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 2.5rem;
  column-rule: 1px solid var(--terre);
}
#main .m-etapes li {
  break-inside: avoid;
  margin: 0;
  padding: .5rem .5rem;
  border-bottom: 1px solid var(--terre);
  font-family: var(--texte);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--brun);
}
#main .m-etapes a { display: block; color: var(--brun); text-decoration: none; }
#main .m-etapes a:hover { color: var(--brique); text-decoration: underline; }
#main .m-etape-num {
  display: inline-block;
  min-width: 2.1rem;
  font-family: var(--titre);
  font-size: 1.1rem;
  color: var(--brique);
}
#main .m-etapes .m-etape-courante { background: var(--sable-fonce); font-weight: 600; border-radius: 6px; }
@media (max-width: 575px) {
  #main .m-etapes ol { columns: 1; }
}

/* Tableau en largeur (mois côte à côte, chiffres dessous) */
#main .post-content .m-tableau-mois th,
#main .post-content .m-tableau-mois td { text-align: center; white-space: nowrap; }
@media (max-width: 991px) {
  #main .post-content .m-tableau-mois > :not(caption) > * > * { padding: .5rem .4rem; font-size: .85rem; }
}
