/* ==========================================================================
   Un Poil Craquant, Éclat : pages éditoriales
   Notre histoire, témoignages, contact, mentions légales, confidentialité,
   404, liste d'articles, article seul. Toutes les classes commencent par
   « ed- » ; les pièces communes (bandeau, prose, champs, boutons) viennent
   d'eclat.css.
   ========================================================================== */

/* ── Bandeau (complète .bandeau d'eclat.css) ─────────────────────────── */
/* Les liens fléchés de ces pages : une cible tactile de 44 px. */
.ed-affil .lien-fleche, .ed-temoins .lien-fleche, .ed-liste .lien-fleche { min-height: 44px; }
.ed-bandeau__texte { min-width: 0; }
.ed-bandeau .bandeau__titre { overflow-wrap: break-word; }

/* ── Notre histoire ───────────────────────────────────────────────────── */
.ed-histoire__photo { margin: 0; }
.ed-histoire__photo img { aspect-ratio: 3 / 2; object-position: 50% 45%; }
.ed-histoire__legende {
    margin-top: .9rem; padding-right: .75rem; text-align: right;
    font: 600 1.45rem/1.1 var(--main); color: var(--brun);
}

.ed-histoire__recit { padding-bottom: var(--bloc); }
.ed-histoire__grille {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: clamp(2.5rem, 6vw, 6rem); align-items: start;
}
.ed-histoire__texte { max-width: 68ch; }
.ed-histoire__texte p:empty { display: none; }
.ed-histoire__texte > h2:first-child,
.ed-histoire__texte > p:empty:first-child + h2 { margin-top: 0; }
.ed-histoire__texte > h2:first-of-type + p { font-size: 1.2rem; line-height: 1.6; color: var(--brun); }
.ed-histoire__texte li > br + * { margin-top: .2rem; }

.ed-histoire__aside { position: sticky; top: calc(var(--entete-h) + 2rem); display: grid; gap: 1.5rem; }
.ed-histoire__image { margin: 0; }
.ed-histoire__image img { width: 100%; border-radius: var(--rayon); aspect-ratio: 4 / 5; object-fit: cover; }
.ed-histoire__image figcaption { margin-top: .7rem; font: 600 1.3rem/1.15 var(--main); color: var(--brun); }

.ed-bref { background: var(--vert-pale); border-radius: var(--rayon); padding: clamp(1.6rem, 3vw, 2.1rem) clamp(1.4rem, 2.6vw, 1.9rem); }
.ed-bref__titre { font: 400 1.55rem/1.15 var(--titre); color: var(--brun); margin: 0 0 1.5rem; }
.ed-bref__liste { list-style: none; margin: 0 0 1.9rem; padding: 0; display: grid; gap: 1.25rem; }
.ed-bref__liste li { display: flex; gap: .95rem; align-items: flex-start; }
.ed-bref__liste .icone { flex: none; width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: #fff; color: var(--vert-texte); }
.ed-bref__liste span { font-size: .95rem; line-height: 1.45; color: var(--texte-doux); }
.ed-bref__liste strong { display: block; margin-bottom: .1rem; font: 400 1.12rem/1.25 var(--titre); color: var(--brun); }
.ed-bref__bouton { width: 100%; }

/* Valeurs : le seul bloc brun de la page */
.ed-valeurs .bloc__intro { color: rgba(255, 255, 255, .82); }
.ed-valeurs__liste {
    list-style: none; margin: 0; padding: 0; counter-reset: valeur;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem;
}
.ed-valeur {
    counter-increment: valeur;
    padding: clamp(1.6rem, 2.6vw, 2.1rem);
    border-radius: var(--rayon);
    background: rgba(255, 255, 255, .07);
}
.ed-valeur::before {
    content: counter(valeur, decimal-leading-zero);
    display: block; margin-bottom: 1.1rem;
    font: 400 2.4rem/1 var(--titre); color: var(--vert);
}
.ed-valeur__titre { font: 400 1.4rem/1.2 var(--titre); color: #fff; margin: 0 0 .6rem; }
.ed-valeur p { margin: 0; color: rgba(255, 255, 255, .84); font-size: .98rem; }

/* Affiliations, avec le certificat WFCU */
/* En grand, à la demande de Valentin (« FFBTV… je voulais le mettre en plus grand », 09/10). */
.ed-affil__grille { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.ed-affil__grille--seule { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.ed-affil__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2.25rem, 4vw, 3.25rem); }
.ed-affil__item { max-width: 52ch; }
.ed-affil__sigle { font: 400 clamp(2.4rem, 4.2vw, 3.4rem)/1 var(--titre); letter-spacing: -.01em; color: var(--brun); margin: 0 0 .55rem; }
.ed-affil__nom { margin: 0 0 .6rem; font-weight: 700; font-size: 1.12rem; color: var(--vert-texte); line-height: 1.35; }
.ed-affil__texte { margin: 0 0 .8rem; font-size: 1.05rem; color: var(--texte-doux); }
.ed-certificat { margin: 0; position: relative; }
.ed-certificat img {
    width: 100%; border-radius: var(--rayon-s);
    box-shadow: var(--ombre);
    rotate: 1.5deg;
}
.ed-certificat figcaption { margin-top: 1.4rem; text-align: center; font: 600 1.45rem/1.1 var(--main); color: var(--brun); }

/* ── Témoignages ──────────────────────────────────────────────────────── */
.ed-temoins__compte { display: flex; align-items: baseline; gap: .6rem; margin: 1.6rem 0 0; font-weight: 600; color: var(--texte-doux); }
.ed-temoins__compte strong { font: 400 2.2rem/1 var(--titre); color: var(--vert-texte); }

.ed-temoins__mur { list-style: none; margin: 0; padding: 0; columns: 3 300px; column-gap: 1.5rem; }
.ed-avis { break-inside: avoid; page-break-inside: avoid; margin: 0 0 1.5rem; }
.ed-avis__carte { display: block; background: #fff; border-radius: var(--rayon); overflow: hidden; }
.ed-avis__photo { aspect-ratio: 5 / 4; background: var(--vert-pale); }
.ed-avis__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.ed-avis__corps { padding: clamp(1.4rem, 2.6vw, 1.85rem) clamp(1.3rem, 2.4vw, 1.75rem) clamp(1.3rem, 2.4vw, 1.6rem); }
.ed-avis:not(.ed-avis--photo) .ed-avis__corps::before {
    content: "“"; display: block; height: 1.7rem;
    font: 400 4.2rem/.75 var(--titre); color: var(--vert);
}
.ed-avis__titre { font: 400 1.4rem/1.2 var(--titre); color: var(--brun); margin: 0 0 .8rem; }
.ed-avis__texte { margin: 0 0 1.4rem; }
.ed-avis__texte p { margin: 0; color: var(--texte); overflow-wrap: break-word; }
.ed-avis__pied { display: flex; align-items: center; gap: .9rem; margin: 0; }
.ed-avis__pied strong { display: block; color: var(--brun); }
.ed-avis__pied > span:last-child > span { display: block; font-size: .9rem; color: var(--texte-doux); }
.ed-avis__vignette { flex: none; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--vert-pale); }
.ed-avis__vignette img { width: 100%; height: 100%; object-fit: cover; }

.ed-temoins__invitation { max-width: 620px; margin: clamp(2.5rem, 5vw, 3.75rem) auto 0; text-align: center; }
.ed-temoins__invitation p { margin: 0 0 1.4rem; color: var(--texte-doux); text-wrap: balance; }
.ed-temoins__invitation .ed-temoins__invitation-titre { margin-bottom: .6rem; font: 400 clamp(1.5rem, 2.6vw, 2rem)/1.2 var(--titre); color: var(--brun); }
.ed-temoins__vide { max-width: 620px; }
.ed-temoins__vide-titre { font: 400 clamp(1.5rem, 2.6vw, 2rem)/1.2 var(--titre); color: var(--brun); }
.ed-temoins__vide p:not(.ed-temoins__vide-titre) { color: var(--texte-doux); margin-bottom: 1.8rem; }

/* ── Contact : sur le modèle de la page contact de Terres de Vent (09/10) ── */
.ed-contact-haut { padding: clamp(2.25rem, 5vw, 4rem) 0 clamp(3.5rem, 7vw, 5.5rem); background: linear-gradient(180deg, var(--banniere-haut) 0%, var(--banniere-bas) 60%, #fff 100%); }
.ed-contact-haut__grille { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.ed-contact-haut__texte { min-width: 0; }
.ed-contact-haut .bandeau__titre { font-size: clamp(2.5rem, 5vw, 4.2rem); }
.ed-contact-haut .bandeau__chapeau { margin-bottom: 2rem; }

.ed-direct { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .9rem; max-width: 28rem; }
.ed-direct__lien {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem 1.2rem; border-radius: 22px; background: #fff; box-shadow: var(--ombre-s);
    color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s;
}
.ed-direct__lien:hover { transform: translateY(-2px); box-shadow: var(--ombre); }
.ed-direct__icone { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--vert); color: var(--brun-nuit); }
.ed-direct__icone .icone { width: 1.35rem; height: 1.35rem; }
.ed-direct__texte { display: flex; flex-direction: column; min-width: 0; }
.ed-direct__texte small { font: 700 .72rem/1.2 var(--corps); letter-spacing: .14em; text-transform: uppercase; color: var(--vert-texte); }
.ed-direct__texte strong { margin-top: .25rem; font: 400 1.35rem/1.2 var(--titre); color: var(--brun); overflow-wrap: break-word; }
.ed-direct__texte .ed-direct__long { font-size: 1.08rem; }
.ed-direct li, .ed-direct__lien { min-width: 0; }
/* Très petit téléphone : l'adresse e-mail tient dans la tuile (relecture 2, G1). */
@media (max-width: 380px) { .ed-direct__texte .ed-direct__long { font-size: .9rem; } }

.ed-reseaux-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1rem; margin: 0; color: var(--texte-doux); font-size: .95rem; }
.ed-reseaux-ligne a { display: inline-block; padding: .6rem 0; color: var(--brun); font-weight: 700; text-decoration: none; }
.ed-reseaux-ligne a:hover { color: var(--vert-texte); }

.ed-formulaire { background: #fff; border-radius: var(--rayon); box-shadow: var(--ombre); padding: clamp(1.5rem, 3vw, 2.4rem); scroll-margin-top: calc(var(--entete-h) + 1rem); }
.ed-formulaire__titre { font: 400 clamp(1.7rem, 2.8vw, 2.25rem)/1.1 var(--titre); margin: 0 0 1.6rem; }
.ed-formulaire__form { display: grid; gap: 1.2rem; }
.ed-formulaire__form { container-type: inline-size; }
.ed-formulaire__ligne { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
/* Carte étroite (tablette, téléphone) : un champ par ligne, pour que rien ne soit tronqué. */
@container (max-width: 400px) {
    .ed-formulaire__ligne { grid-template-columns: minmax(0, 1fr); }
    .ed-formulaire__pied .btn { width: 100%; }
}
.ed-formulaire .champ span[aria-hidden] { color: var(--vert-texte); }
.ed-formulaire .champ input,
.ed-formulaire .champ select,
.ed-formulaire .champ textarea { min-height: 52px; }
.ed-formulaire .champ input::placeholder,
.ed-formulaire .champ textarea::placeholder { color: var(--texte-doux); opacity: .75; }
.ed-formulaire__pied { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: .3rem; }
.ed-formulaire__note { margin: 0; font-size: .9rem; color: var(--texte-doux); }
.ed-formulaire__pied .btn .icone { transition: transform .25s var(--ressort); }
.ed-formulaire__pied .btn:hover .icone { transform: translateX(3px); }

.ed-retour { margin: 0 0 1.5rem; padding: 1.15rem 1.35rem; border-radius: var(--rayon-s); }
.ed-retour strong { display: block; margin-bottom: .3rem; font: 400 1.25rem/1.25 var(--titre); }
.ed-retour p { margin: 0; }
.ed-retour--ok { background: #fff; color: var(--texte); }
.ed-retour--ok strong { color: var(--vert-texte); }
.ed-retour--erreur { background: var(--brun); color: #fff; }
.ed-retour--erreur strong { color: #fff; }

/* La carte du quartier sur toute la largeur, la fiche posée dessus. */
.ed-carte { position: relative; display: flex; align-items: center; min-height: clamp(480px, 40vw, 600px); background: #eceae4; }
.ed-carte__fond { position: absolute; inset: 0; overflow: hidden; }
.ed-carte__image { position: absolute; max-width: none; width: 3328px; height: 1024px; left: calc(62% - 1684px); top: calc(50% - 451px); }
.ed-carte__repere { position: absolute; z-index: 1; left: 62%; top: 50%; width: 3.2rem; height: 3.2rem; translate: -50% -92%; filter: drop-shadow(0 8px 10px rgba(61, 37, 8, .35)); }
.ed-carte__repere svg { width: 100%; height: 100%; }
.ed-carte__repere path { fill: var(--brun); stroke: #fff; stroke-width: 1.3; }
.ed-carte__repere circle { fill: var(--vert); }
.ed-carte__credit { position: absolute; z-index: 1; right: 8px; bottom: 6px; padding: 1px 6px; border-radius: 4px; background: rgba(255, 255, 255, .85); color: #4b4b4b; font-size: .7rem; }
.ed-carte__contenu { position: relative; z-index: 3; pointer-events: none; padding-block: clamp(4.5rem, 7vw, 6.5rem); }
.ed-carte__fiche { pointer-events: auto; max-width: 25rem; background: #fff; border-radius: var(--rayon); box-shadow: var(--ombre); padding: 1.9rem; }
.ed-carte__fiche h2 { font: 400 1.9rem/1.1 var(--titre); color: var(--brun); margin: 0 0 .7rem; }
.ed-carte__adresse { margin: 0 0 .6rem; font-size: 1.08rem; font-weight: 700; color: var(--texte); }
.ed-carte__note { margin: 0 0 1.3rem; color: var(--texte-doux); }
.ed-carte__actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ── Pages légales ────────────────────────────────────────────────────── */
.ed-legal {
    display: grid; grid-template-columns: 15.5rem minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 5.5rem); align-items: start;
    padding-bottom: var(--bloc);
}
.ed-legal__sommaire { position: sticky; top: calc(var(--entete-h) + 2rem); }
.ed-legal__sommaire-titre { margin: 0 0 .8rem; padding-left: .9rem; font: 700 .76rem/1.2 var(--corps); letter-spacing: .14em; text-transform: uppercase; color: var(--vert-texte); }
.ed-legal__sommaire-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; counter-reset: sommaire; }
.ed-legal__sommaire-liste a {
    display: flex; gap: .7rem; align-items: baseline;
    padding: .55rem .9rem; border-radius: 12px;
    font-weight: 600; font-size: .95rem; line-height: 1.35;
    color: var(--texte-doux); text-decoration: none;
    transition: background-color .2s, color .2s;
}
.ed-legal__sommaire-liste a::before {
    counter-increment: sommaire; content: counter(sommaire, decimal-leading-zero);
    flex: none; font: 400 .85rem/1 var(--titre); color: var(--vert-texte);
}
.ed-legal__sommaire-liste a:hover { background: var(--vert-pale); color: var(--brun); }
.ed-legal__sommaire-liste a[aria-current] { background: var(--vert-pale); color: var(--brun); }

.ed-legal__texte { min-width: 0; }
.ed-legal__section { scroll-margin-top: calc(var(--entete-h) + 2.5rem); }
.ed-legal__section + .ed-legal__section { margin-top: clamp(2.75rem, 5vw, 3.75rem); }
.ed-legal__texte h2 { display: flex; align-items: center; gap: .85rem; margin: 0 0 1.1rem; font-size: clamp(1.55rem, 2.6vw, 2.05rem); }
.ed-legal__num {
    flex: none; display: inline-grid; place-items: center;
    width: 2.3em; height: 2.3em; border-radius: 50%;
    background: var(--vert-pale); color: var(--vert-texte);
    font: 400 .95rem/1 var(--titre);
}
.ed-legal__texte td, .ed-legal__texte th { overflow-wrap: break-word; }
.ed-legal__texte code { font-size: .88em; padding: .1em .35em; border-radius: 6px; background: var(--vert-pale); color: var(--brun); }
.ed-tableau--grille code { background: #fff; white-space: nowrap; }
.ed-legal__maj { margin-top: clamp(2.75rem, 5vw, 3.75rem); font-size: .92rem; color: var(--texte-doux); }

.ed-legal__contact { list-style: none; margin: 1.2rem 0 0; padding: 1.3rem 1.5rem; display: grid; gap: .8rem; border-radius: var(--rayon-s); background: var(--vert-pale); }
.prose .ed-legal__contact { padding-left: 1.5rem; }
.ed-legal__contact li { display: flex; gap: .8rem; align-items: flex-start; margin: 0; }
.ed-legal__contact .icone { flex: none; width: 20px; height: 20px; margin-top: .2rem; color: var(--vert-texte); }

/* Tableaux : une fiche (intitulé / valeur) ou une grille à en-têtes */
.prose .ed-tableau, .ed-tableau { width: 100%; margin: 1.3rem 0 1.5rem; border-collapse: separate; border-spacing: 0; border-radius: var(--rayon-s); overflow: hidden; font-size: .97rem; }
.ed-tableau--fiche { background: var(--vert-pale); }
.prose .ed-tableau--fiche th, .prose .ed-tableau--fiche td { padding: .8rem 1.1rem; border-bottom: 2px solid #fff; background: none; }
.prose .ed-tableau--fiche tr:last-child th, .prose .ed-tableau--fiche tr:last-child td { border-bottom: 0; }
.prose .ed-tableau--fiche th { width: 36%; font-weight: 700; color: var(--brun); }
.prose .ed-tableau--grille th { padding: .85rem 1.1rem; background: var(--vert-pale); color: var(--brun); border-bottom: 0; }
.prose .ed-tableau--grille td { padding: .85rem 1.1rem; border-bottom: 1px solid var(--vert-brume); background: #fff; }
.prose .ed-tableau--grille tr:last-child td { border-bottom: 0; }

/* ── 404 ──────────────────────────────────────────────────────────────── */
.ed-erreur__bandeau .bandeau__titre { font-size: clamp(2.6rem, 7.4vw, 5.6rem); line-height: 1.02; padding-bottom: .35em; }
.ed-erreur__bandeau .mot-casse__haut { display: none; }
.ed-erreur__bandeau .mot-casse__bas { width: .5em; translate: -50% .14em; }
.ed-erreur__actions { margin: 2.2rem 0 0; }
.ed-erreur__pistes { padding-bottom: var(--bloc); }
.ed-erreur__pistes-titre { font: 400 clamp(1.5rem, 2.4vw, 1.9rem)/1.2 var(--titre); color: var(--brun); margin: 0 0 1.4rem; }
.ed-pistes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.ed-pistes__lien {
    position: relative; display: flex; flex-direction: column; gap: 1.1rem; height: 100%;
    padding: 1.4rem 1.4rem 1.5rem; border-radius: 22px;
    border: 2px solid var(--vert-brume); color: inherit; text-decoration: none;
    transition: border-color .2s, transform .2s;
}
.ed-pistes__lien:hover { border-color: var(--vert); transform: translateY(-3px); }
.ed-pistes__icone { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--vert-pale); color: var(--vert-texte); }
.ed-pistes__icone .icone { width: 24px; height: 24px; }
.ed-pistes__texte strong { display: block; font: 400 1.3rem/1.2 var(--titre); color: var(--brun); }
.ed-pistes__texte span { display: block; margin-top: .3rem; font-size: .93rem; line-height: 1.45; color: var(--texte-doux); }
.ed-pistes__fleche { position: absolute; right: 1.3rem; top: 1.55rem; width: 22px; height: 22px; color: var(--vert-texte); transition: transform .25s var(--ressort); }
.ed-pistes__lien:hover .ed-pistes__fleche { transform: translateX(4px); }

/* ── Liste d'articles (index.php) ─────────────────────────────────────── */
.ed-liste { padding-bottom: var(--bloc); }
.ed-liste__grille { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem 1.5rem; }
.ed-liste__lien { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.ed-liste__photo { display: block; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; background: var(--vert-pale); }
.ed-liste__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.ed-liste__lien:hover .ed-liste__photo img { transform: scale(1.04); }
.ed-liste__corps { display: flex; flex-direction: column; flex: 1; padding-top: 1.1rem; }
.ed-liste__titre { font: 400 1.4rem/1.2 var(--titre); color: var(--brun); }
.ed-liste__extrait { margin-top: .45rem; font-size: .95rem; color: var(--texte-doux); }
.ed-liste__plus { display: inline-flex; align-items: center; gap: .5rem; margin-top: .9rem; font-weight: 700; color: var(--vert-texte); }
.ed-liste__plus .icone { width: 1.15em; height: 1.15em; transition: transform .25s var(--ressort); }
.ed-liste__lien:hover .ed-liste__plus .icone { transform: translateX(4px); }
/* Sans photo : une fiche teintée, de la hauteur des autres. */
.ed-liste__carte--texte .ed-liste__lien { padding: clamp(1.4rem, 2.6vw, 1.9rem); border-radius: 22px; background: var(--vert-pale); }
.ed-liste__carte--texte .ed-liste__corps { padding-top: 0; }
.ed-liste__carte--texte .ed-liste__titre { font-size: 1.6rem; }
.ed-liste__vide { font: 400 1.5rem/1.3 var(--titre); color: var(--brun); }

.ed-pagination { margin-top: 3rem; }
.ed-pagination .screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ed-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.ed-pagination .page-numbers {
    display: inline-grid; place-items: center; min-width: 48px; height: 48px; padding: 0 .9rem;
    border-radius: 999px; border: 2px solid var(--vert-brume);
    font-weight: 700; color: var(--brun); text-decoration: none;
}
.ed-pagination a.page-numbers:hover { border-color: var(--vert); }
.ed-pagination .page-numbers.current { background: var(--vert); border-color: var(--vert); color: var(--brun-nuit); }
.ed-pagination .page-numbers.dots { border-color: transparent; }
.ed-pagination .icone { width: 20px; height: 20px; }

/* ── Article seul (single.php) ────────────────────────────────────────── */
.ed-article {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
    gap: clamp(2.5rem, 6vw, 6rem); align-items: start;
    padding-bottom: var(--bloc);
}
.ed-article__texte { min-width: 0; }
.ed-article__une { margin: 0 0 2rem; }
.ed-article__une img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--rayon); }
.ed-article__texte img { height: auto; }
.ed-article__aside { position: sticky; top: calc(var(--entete-h) + 2rem); }
.ed-aside-chiots { background: var(--vert-pale); border-radius: var(--rayon); padding: 1.8rem 1.6rem; }
.ed-aside-chiots__titre { font: 400 1.45rem/1.2 var(--titre); color: var(--brun); margin: 0 0 1.2rem; }
.ed-aside-chiots__liste { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .6rem; }
.ed-aside-chiots__lien { display: flex; align-items: center; gap: .9rem; min-height: 52px; font-weight: 700; color: var(--brun); text-decoration: none; }
.ed-aside-chiots__lien:hover { color: var(--vert-texte); }
.ed-aside-chiots__photo { flex: none; width: 52px; height: 52px; border-radius: 14px; overflow: hidden; background: #fff; }
.ed-aside-chiots__photo img { width: 100%; height: 100%; object-fit: cover; }
.ed-aside-chiots__vide { margin: 0 0 1.2rem; color: var(--texte-doux); }
.ed-aside-chiots__bouton { width: 100%; }

/* ── Tablette ─────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .ed-valeurs__liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ed-pistes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
    .ed-contact-haut__grille { grid-template-columns: minmax(0, 1fr); }
    /* Téléphone et tablette : la carte d'abord, la fiche dessous qui mord dessus */
    .ed-carte { display: block; min-height: 0; background: #fff; }
    .ed-carte__fond { position: relative; inset: auto; height: 340px; }
    .ed-carte__image { left: calc(50% - 1684px); top: calc(50% - 451px); }
    .ed-carte__repere { left: 50%; }
    .ed-carte__credit { bottom: auto; top: 6px; }
    .ed-carte__contenu { margin-top: -3.5rem; padding-block: 0 var(--bloc); }
    .ed-carte__fiche { max-width: none; padding: 1.5rem; }
    .ed-histoire__grille,
    .ed-affil__grille,
    .ed-article { grid-template-columns: minmax(0, 1fr); }
    .ed-histoire__aside, .ed-article__aside { position: static; }
    .ed-histoire__aside { max-width: 560px; }
    .ed-histoire__photo { max-width: 560px; }
    .ed-certificat { max-width: 560px; }
    .ed-liste__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    /* Pages légales : le sommaire devient une barre qui défile, collée sous l'en-tête. */
    .ed-legal { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
    .ed-legal__sommaire {
        top: var(--entete-h); z-index: 20;
        margin-inline: calc(-1 * var(--gouttiere));
        padding: .5rem 0;
        background: rgba(255, 255, 255, .96);
        backdrop-filter: saturate(1.4) blur(10px);
        -webkit-backdrop-filter: saturate(1.4) blur(10px);
        box-shadow: 0 12px 24px -22px rgba(61, 37, 8, .55);
    }
    .ed-legal__sommaire-titre { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .ed-legal__sommaire-liste {
        display: flex; gap: .45rem; overflow-x: auto; overscroll-behavior-x: contain;
        padding-inline: var(--gouttiere); scroll-padding-inline: var(--gouttiere);
        scrollbar-width: none;
        -webkit-mask-image: linear-gradient(to right, transparent, #000 1rem, #000 calc(100% - 2.75rem), transparent);
        mask-image: linear-gradient(to right, transparent, #000 1rem, #000 calc(100% - 2.75rem), transparent);
    }
    .ed-legal__sommaire-liste::-webkit-scrollbar { display: none; }
    .ed-legal__sommaire-liste li { flex: none; }
    .ed-legal__sommaire-liste a {
        min-height: 44px; align-items: center; white-space: nowrap;
        padding: .5rem 1rem; border-radius: 999px; font-size: .95rem;
    }
    .ed-legal__sommaire-liste a[aria-current] { background: var(--vert-pale); color: var(--brun); }
    .ed-legal__section { scroll-margin-top: calc(var(--entete-h) + 5.5rem); }
}
@media (max-width: 640px) {
    .ed-formulaire__ligne { grid-template-columns: minmax(0, 1fr); }
    .ed-formulaire__pied .btn { width: 100%; }
    .ed-liste__grille { grid-template-columns: minmax(0, 1fr); }

    /* Tableaux sur téléphone : chaque ligne devient une petite fiche. */
    .prose .ed-tableau--fiche th, .prose .ed-tableau--fiche td { display: block; width: auto; border-bottom: 0; }
    .prose .ed-tableau--fiche th { padding: .85rem 1.1rem 0; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--vert-texte); }
    .prose .ed-tableau--fiche td { padding: .15rem 1.1rem .85rem; }
    .prose .ed-tableau--fiche { display: block; }
    .ed-tableau--fiche tr { display: block; border-bottom: 2px solid #fff; }
    .ed-tableau--fiche tr:last-child { border-bottom: 0; }
    .ed-tableau--fiche tbody { display: block; }

    .prose .ed-tableau--grille { display: block; border-radius: 0; overflow: visible; }
    .ed-tableau--grille thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .ed-tableau--grille tbody { display: grid; gap: .75rem; }
    .ed-tableau--grille tr { display: block; padding: 1rem 1.15rem; border-radius: var(--rayon-s); background: var(--vert-pale); }
    .prose .ed-tableau--grille td { display: block; padding: 0; border: 0; background: none; }
    .prose .ed-tableau--grille td + td { margin-top: .7rem; }
    .ed-tableau--grille td::before {
        content: attr(data-label); display: block; margin-bottom: .15rem;
        font: 700 .74rem/1.3 var(--corps); letter-spacing: .1em; text-transform: uppercase; color: var(--vert-texte);
    }
    .ed-legal__texte .ed-tableau--grille code { background: #fff; }
}
@media (max-width: 560px) {
    .ed-valeurs__liste, .ed-pistes { grid-template-columns: minmax(0, 1fr); }
    .ed-pistes__lien { flex-direction: row; align-items: center; padding: 1rem 3.2rem 1rem 1rem; gap: 1rem; }
    .ed-pistes__icone { flex: none; }
    .ed-pistes__fleche { top: 50%; translate: 0 -50%; right: 1.1rem; }
    .ed-erreur__actions .btn { width: 100%; }
    .ed-direct__lien { padding: .85rem 1rem; gap: .9rem; }
    .ed-direct__icone { width: 2.75rem; height: 2.75rem; }
    .ed-legal__texte h2 { gap: .7rem; }
    .ed-certificat img { rotate: none; }
}
