/* =====================================================================
   Affinage de la DA 2027 (16/11/2026, issues du train 1 « DA affinage »). Dernière feuille de la page, chargée après da27.css.
   Pas de refonte : mêmes couleurs, mêmes polices, mêmes gabarits. Ici, la définition commune des éléments :
   échelle des titres, blocs sans cadre ni ombre ni arrondi, cibles tactiles, texte de 12 px au moins, aucun mot coupé,
   en-tête à 1024 px, fil d'Ariane mobile, pied de page, bouton « Haut de page ».
   Forme propre au produit : celle de ceevo95.fr (angle de 3 px sur les commandes, blocs à angle droit, aplats de la palette).
   Les sélecteurs du contenu passent par #main-content : ils l'emportent sur les feuilles de page sans !important.
   ===================================================================== */

/* ---------- 1. Échelle typographique unique (H1 > H2 > H3 > corps, à toutes les largeurs) ---------- */
html.da27 {
    --t-h1: 800 clamp(1.75rem, 1.25rem + 1.6vw, 2.75rem)/1.12 var(--font-display);   /* 28 px à 360, 36 px à 1024, 44 px dès 1440 */
    --t-h2: 800 clamp(1.375rem, 1.1rem + 1vw, 2rem)/1.2 var(--font-display);          /* 22 px à 360, 28 px à 1024, 32 px dès 1440 */
    --t-h3: 700 1.125rem/1.35 var(--font-display);                                     /* 18 px */
    --t-corps: 400 1rem/1.5 var(--font-sans);                                          /* 16 / 24 */
    --t-aide: 400 .875rem/1.43 var(--font-sans);                                       /* 14 / 20 */
    --t-legende: 500 .8125rem/1.38 var(--font-sans);                                   /* 13 / 18 */
}
html.da27 #main-content h1:not(.sr-only), html.da27 #main-content .ui-h1, html.da27 #main-content .da-h1,
html.da27 #main-content .ui-hero__titre, html.da27 .home-hero .home-hero__title { font: var(--t-h1); letter-spacing: -.025em; text-wrap: balance; }
html.da27 #main-content h2:not(.sr-only), html.da27 #main-content .ui-h2, html.da27 #main-content .da-h2 { font: var(--t-h2); letter-spacing: -.02em; text-wrap: balance; }
html.da27 #main-content h3:not(.sr-only), html.da27 #main-content .ui-h3 { font: var(--t-h3); letter-spacing: -.01em; text-wrap: balance; }
/* un titre posé dans un composant (carte, figure, encart, accordéon) est un titre de composant : taille H3 */
html.da27 #main-content :is(.ui-card, .ui-offer-card, .da-carte, .act-carte, .an-tuile, .si-card, .osc-carte, figure, .da-acc, details, .ui-chart, .vz-regard, .da-video, .fa, .fb, .sel-encart, .ui-contactpage__card) :is(h2, h3):not(.sr-only) { font: var(--t-h3); letter-spacing: -.01em; }
/* le texte courant suit le même couple taille / interligne */
html.da27 #main-content :is(p, li, dd, td):not([class*="chip"]):not([class*="badge"]) { text-wrap: pretty; }
html.da27[lang="ar"] #main-content :is(h1, h2, h3), html.da27[lang="hi"] #main-content :is(h1, h2, h3) { line-height: 1.3; letter-spacing: 0; }

/* ---------- 2. Aucun mot coupé, aucun débordement ---------- */
/* overflow-wrap: anywhere coupait les mots courts (« ENTREPOTS », « accompagné ») ; break-word ne coupe qu'un mot plus long que sa ligne */
html.da27 #main-content *, html.da27 .ui-entete *, html.da27 .ui-footer * { overflow-wrap: break-word; word-break: normal; hyphens: manual; }
html.da27 #main-content :is(a, code)[href^="http"] { overflow-wrap: anywhere; }   /* adresses web brutes seulement */

/* ---------- 3. Blocs : aplat à angle droit, ni cadre, ni ombre, ni arrondi (règle de dessin d'Alex, 13/11) ---------- */
html.da27 #main-content :is(.ui-panel, .ui-table__cadre, .ui-figure, .ui-chart, .ui-gallery, .ui-fiche__section, .ui-fiche__map, .offer-map, .ui-card, .ui-offer-card,
    .da-video, .da-carte, .da-bloc, .vz-vignette__cadre, .vz-regard__cadre, .vz-moyenne__cadre, .vz-moyenne, .tv-situation, .vo-situation,
    .sp-chiffres, .sp-partie, .sp-contact, .sp-cadre, .sp-sources, .tb-chiffres, .vf-kpi__item, .si-card, .si-section, .si-figs, .si-mandat, .si-tablewrap,
    .an-tuile, .an-filtres, .pc-section, .pc-liees, .fc-carte, .fc-tableau, .fh__carte, .fh__ceevo, .fh__chiffres, .at-carte-bloc,
    .act-carte, .act-carte__logo, .act-ent, .act-bloc, .osc-carte, .fr__item, .cl-tuile__lien, .ne-defile, .ne-carte__cadre, .gp-carte, .ce-apercu__cadre,
    .ui-contactpage__card, .sel-encart, .a11y-page, .home-map__frame, .home-eco, .nb-partage__liste, .cm27-carte, .ui-kpi__item, .sp-chiffre, .si-fig) {
    border-radius: 0; box-shadow: none; }
html.da27 #main-content :is(.ui-panel, .ui-card, .ui-offer-card, .da-video, .da-carte, .sp-partie, .sp-contact, .sp-cadre, .sp-chiffres, .tb-chiffres, .vf-kpi__item,
    .si-card, .si-section, .si-figs, .si-mandat, .an-tuile, .an-filtres, .pc-section, .pc-liees, .fc-carte, .fc-tableau, .fh__carte, .act-carte, .act-bloc,
    .act-ent, .osc-carte, .fr__item, .cl-tuile__lien, .ne-defile, .ui-fiche__section, .ui-contactpage__card, .sel-encart, .a11y-page, .vz-moyenne,
    .home-map__frame, .home-eco, .ui-table__cadre, .si-tablewrap, .gp-carte, .cm27-carte, .ui-chart) { border: 0; }
/* séparation par l'aplat : blanc sur la page grise, gris sur une bande blanche */
html.da27 #main-content :is(.da-bande--alt, .bg-white, .ui-fiche__section) :is(.si-card, .an-tuile, .act-carte, .osc-carte, .sp-chiffres, .tb-chiffres, .fr__item, .vf-kpi__item) { background: var(--c-bg); }
html.da27 #main-content :is(.ui-chart):not(.da-mag__graphe .ui-chart) { background: var(--brand-50); padding: clamp(16px, 2vw, 24px); }
/* survol d'un bloc cliquable : aplat, jamais de déplacement ni d'ombre */
html.da27 #main-content :is(a.an-tuile, .an-tuile:has(> a), a.act-carte, .act-carte:has(a), a.cl-tuile__lien, a.si-card, .ui-offer-card, .ui-card):hover { transform: none; box-shadow: none; }
html.da27 #main-content :is(a.an-tuile, a.cl-tuile__lien, a.si-card):hover { background: var(--brand-50); }
html.da27 #main-content :is(.act-carte, .ui-offer-card, .ui-card, .da-carte):hover img { transform: none; }
/* tableaux : lignes séparées par un filet neutre, sans cadre extérieur */
html.da27 #main-content .ui-table__cadre table { border: 0; }

/* ---------- 4. Commandes : rectangle à angles de 3 px, jamais de pilule ---------- */
html.da27 :is(.ui-btn, .da-btn:not(.da-btn--lien), .ui-badge, .da-chip, .da-pastille, .ui-pill, .ui-chip span, .ui-suggestion, .act-pastille, .act-carte__theme,
    .acr-nature, .pz-badge, .fr-chip, .fr-badge, .ce-chip, .ce-btn, .cm27-type, .cm27-puces li, .nb-btn, .ui-footer__ok, .ui-entete__cta, .home-rech__go,
    .home-map__compte, .home-map__liste, .home-map__eco, .home-pill, .sf-a, .sf-bouton, .ro-compte, .ann-compte, .ve-compte, .da-video__duree, .ui-tabs a,
    .ui-pills a, .si-entree__onglets a, .ui-pagination .ui-page, .ofr-plus__btn) { border-radius: var(--r-sm); }
/* étiquettes de thème d'actualité : aplat de la couleur du thème (remplace le liseré du haut de carte) */
html.da27 .act-carte__theme { background: var(--act-t, var(--c-brand)); color: #fff; border: 0; }
/* bouton secondaire : aplat clair au lieu d'un contour */
html.da27 :is(.ui-btn--secondary, .da-btn--secondaire) { border-color: transparent; background: var(--brand-100); color: var(--c-brand-soft-ink); }
html.da27 :is(.ui-btn--secondary, .da-btn--secondaire):hover { border-color: transparent; background: var(--brand-200); color: var(--c-brand-hover); }
/* lien texte : soulignement au survol, comme tous les liens du texte */
html.da27 :is(.da-btn--lien, .ui-btn--link):hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }

/* ---------- 5. Accordéons, encarts, sommaire : aplats ---------- */
html.da27 #main-content :is(.sp-repli, .ofr-pli, .fr-details, .an-plus, .acr-repli, .eq-plus, .vc-details) { border-radius: 0; border: 0; background: var(--c-surface); box-shadow: none; }
html.da27 :is(.sf-liste, .sf-bouton) { box-shadow: none; }

/* ---------- 6. Texte de 12 px au moins (charte §2) ---------- */
html.da27 :is(.ui-bandeau__credit, .ui-offer-card__credit, .vz-credit, .ui-figure__credit, figcaption small, .home-vc__meta, .cl-tuile__meta, .da-video__duree, .ui-source, p.ui-source, small) { font-size: max(12px, 1em * .75); }
html.da27 #main-content small, html.da27 #main-content .ui-source { font-size: 12px; line-height: 16px; }
html.da27 #main-content :is([class*="credit"], .act-carte__credit) { font-size: 12px; line-height: 1.35; }
html.da27 #main-content :is([class*="credit"], .act-carte__credit) :is(a, span, small) { font-size: inherit; }
html.da27 #main-content :is([class*="mention"], .tv, .tn) { font-size: max(12px, 1em); line-height: 1.35; }
@media (max-width: 767.98px) { html.da27 .nb-barre a { font-size: 12px; } }

/* ---------- 7. Cibles tactiles de 44 px sous 1024 px (charte §0.3) ---------- */
@media (max-width: 1023.98px) {
    html.da27 .ui-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
    html.da27 #main-content :is(.da-btn--lien, .ui-btn--link, .ui-suggestion, .sf-haut a, .home-credits > summary, .ui-pagination a) { display: inline-flex; align-items: center; min-height: 44px; }
    html.da27 #main-content label:has(> input[type="checkbox"]), html.da27 #main-content label:has(> input[type="radio"]) { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
    html.da27 #main-content summary { min-height: 44px; }
    html.da27 .fx-nav { width: 44px; height: 44px; }
    html.da27 .fx-pt { width: 44px; height: 44px; }
    html.da27 .fx-pause { width: 44px; height: 44px; }
    html.da27 .fx-bas { height: 44px; }
}
/* flèches et pause des carrousels : carré plein ardoise, sans ombre ni grossissement */
html.da27 .fx-nav { border-radius: var(--r-sm); background: var(--c-nuit); color: #fff; box-shadow: none; }
html.da27 .fx-nav:hover { transform: none; background: var(--c-nuit-2); }
html.da27[dir="rtl"] .fx-nav:hover { transform: scaleX(-1); }
html.da27 .fx-pause { border-radius: var(--r-sm); font-size: 12px; }
html.da27 .fx-pause:hover { transform: none; }
html.da27 .fx-pt::before { border-radius: 0; width: 8px; height: 8px; }
html.da27 .fx-pt[aria-current="true"]::before { border-radius: 0; width: 8px; height: 8px; background: var(--c-nuit); }

/* ---------- 8. En-tête : à 1024-1279 px le logo ne recouvre plus le menu ---------- */
html.da27 .ui-entete__barre > nav[aria-label] > ul { justify-content: safe center; }
@media (min-width: 1024px) and (max-width: 1279.98px) {
    html.da27 .ui-entete__barre { gap: 8px; }
    html.da27 .ui-entete__logo img, html.da27 .ui-entete.est-reduit .ui-entete__logo img { height: 30px; }
    html.da27 .ui-entete__barre [data-rubrique] > a { padding: 0 8px !important; font-size: .875rem; }
    html.da27 .ui-entete__actions { gap: 0; }
    html.da27 .ui-entete__cta { padding-inline: 12px; }
}
/* champ de recherche de l'en-tête : contour de focus visible (3 px, couleur d'action) */
html.da27 .ui-entete__form:focus-within { outline: var(--da-focus) solid var(--c-action); outline-offset: 2px; box-shadow: none; }
html.da27 .ui-entete__go { border-radius: var(--r-sm); }

/* ---------- 9. Fil d'Ariane sous 768 px : seul le lien parent, jamais de liens superposés ---------- */
@media (max-width: 767.98px) {
    html.da27 .ui-breadcrumb ol { flex-wrap: nowrap; overflow: hidden; }
    html.da27 .ui-breadcrumb li { display: none; }
    html.da27 .ui-breadcrumb li:nth-last-child(2) { display: flex; align-items: center; min-width: 0; flex: 0 1 auto; }
    html.da27 .ui-breadcrumb li:nth-last-child(2)::after { content: none; display: none; }
    html.da27 .ui-breadcrumb li:nth-last-child(2) > a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; line-height: 44px; }
    html.da27 .ui-breadcrumb li:nth-last-child(2) > a::before { content: "‹\00a0"; }
    html.da27[dir="rtl"] .ui-breadcrumb li:nth-last-child(2) > a::before { content: "›\00a0"; }
    html.da27 .ui-breadcrumb li:only-child { display: flex; }
}

/* ---------- 10. Pied de page : angle droit, colonnes 4 + 3, logos sans pastille ---------- */
html.da27 .ui-footer { border-radius: 0; }
@media (min-width: 640px) { html.da27 .ui-footer__nav { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5) var(--s-4); } }
html.da27 .ui-footer__logo { border-radius: 0; padding: 8px 12px; }
html.da27 .ui-footer ul.ui-footer__partenaires { gap: 8px 24px; }
html.da27 .ui-footer__partenaires a { padding: 0; gap: 10px; min-height: 44px; }
html.da27 .ui-footer__partenaires img { width: 34px; height: 34px; padding: 3px; background: #fff; border-radius: 0; }
html.da27 .ui-footer__ok, html.da27 .ui-footer__langue select, html.da27 .ui-tiroir__langue select { border-radius: var(--r-sm); }

/* ---------- 11. Bouton « Haut de page » : carré ardoise ; masqué quand la barre d'actions mobile est là ---------- */
html.da27 .hp-btn { border-radius: var(--r-sm); box-shadow: none; background: var(--c-nuit); }
html.da27 .hp-btn:hover { background: var(--c-nuit-2); }
@media (max-width: 767.98px) { html.da27 .hp-btn.hp-visible { display: none; } }

/* ---------- 12. Tiroir mobile et menus déroulants : angle droit ---------- */
html.da27 .ui-tiroir { border-radius: 0; }
html.da27 :is(.ui-tiroir__liens a, .ui-tiroir__liens--duo a, .ui-entete__icone, .ui-entete__connexion) { border-radius: var(--r-sm); }
html.da27 .ui-entete__barre [data-rubrique] > a::after { content: none; }

/* ---------- 13. Bandeau de consentement : compact, deux choix de même poids, « Personnaliser » en lien ---------- */
html.da27 .consentement { border: 0; border-radius: 0; box-shadow: 0 -8px 32px rgba(17, 26, 35, .18); padding: 16px 20px; }
html.da27 .consentement__titre { font: 700 1rem/1.35 var(--font-display); margin: 0 0 4px; }
html.da27 .consentement__texte { font-size: .875rem; line-height: 1.43; margin: 0 0 8px; }
html.da27 .consentement__details { margin: 0 0 8px; font-size: .875rem; line-height: 1.43; color: var(--c-text-2); }
html.da27 .consentement__details > summary { display: inline-flex; align-items: center; min-height: 44px; color: var(--c-action); font-weight: 600; cursor: pointer; }
html.da27 .consentement__details p { margin: 0 0 8px; }
html.da27 .consentement__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
html.da27 .consentement__bouton { flex: 1 1 140px; border: 0; border-radius: var(--r-sm); background: var(--c-action); color: #fff; }
html.da27 .consentement__bouton:hover { background: var(--c-action-hover); color: #fff; }
html.da27 .consentement__perso { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; color: var(--c-action); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
html.da27 .consentement__pied { display: none; }
@media (max-width: 640px) {
    html.da27 .consentement { padding: 12px 16px 8px; }
    html.da27 .consentement__actions { position: static; padding: 0; }
    html.da27 .consentement__bouton { flex: 1 1 calc(50% - 8px); min-height: 44px; }
    html.da27 .consentement__bouton:last-child { flex-basis: calc(50% - 8px); }
    html.da27 .consentement__perso { flex: 1 1 100%; justify-content: center; }
}
@media (min-width: 900px) {
    html.da27 .consentement { max-width: 960px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; align-items: center; }
    html.da27 .consentement > :not(.consentement__actions) { grid-column: 1; }
    html.da27 .consentement__actions { grid-column: 2; grid-row: 1 / span 3; flex-wrap: nowrap; }
    html.da27 .consentement__bouton { flex: 0 0 auto; padding-inline: 20px; }
}

/* ---------- 14. Accueil : titre du héros sur deux lignes au plus, champ de recherche de l'en-tête assez large pour son texte ---------- */
html.da27 #main-content .home-hero .home-hero__title { font-size: clamp(1.75rem, 1.2rem + 1.5vw, 2.5rem); max-width: 24ch; }
@media (min-width: 900px) { html.da27 .home-hero__in { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
@media (min-width: 1280px) { html.da27 .ui-entete__form { width: 236px; } html.da27 .ui-entete__form input { text-overflow: ellipsis; } }
@media (min-width: 1400px) { html.da27 .ui-entete__form { width: 272px; } }
html.da27 .da-video__play { box-shadow: none; border-radius: var(--r-sm); }
/* liens de crédit (licence, source) : zone tactile de 44 px sur écran tactile sans décaler les lignes */
@media (max-width: 1023.98px) {
    html.da27 :is(figcaption, .home-credits li, .vz-credit, .ui-figure__credit, .ui-bandeau__credit, nav.ui-help) a { display: inline-block; padding-block: 15px; margin-block: -15px; }
    html.da27 nav.ui-help { padding-block: 12px; }
    html.da27 .home-credits li { padding-block: 6px; }
}
/* légendes de photo : titre puis crédit sur sa propre ligne, même rythme d'une vignette à l'autre */
html.da27 #main-content :is(.ui-photo-libre__credit, .vz-credit) { display: block; margin-block-start: 2px; }
/* chiffres clés : une rangée de 4 dès 640 px */
@media (min-width: 640px) { html.da27 .da-home-chiffres { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* pied de page : sélecteur de langue et bouton à 44 px, icônes de réseau en carré de 44 px */
@media (max-width: 1023.98px) {
    html.da27 .ui-footer :is(select, .ui-footer__ok) { min-height: 44px; }
    html.da27 .ui-footer :is(a:has(> svg:only-child), a[data-reseau]) { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
}
/* catalogue : mention de compte une fois en tête de liste, prix lisible (#376) */
html.da27 .ofr-gate { margin: 0 0 12px; font-size: .875rem; }
html.da27 #main-content .ui-offer-card__price { font-size: .875rem; font-weight: 700; color: var(--c-text); }
/* fiche offre sans photo du bien (#376) : photo de la commune en 16:9 (480 px de haut au plus), plan de situation à côté et non posé
   dessus ; mêmes marges que le texte ; photo réduite sur smartphone pour garder le titre au premier écran */
html.da27 .ui-gallery { margin-inline: 0; }
html.da27 .ui-gallery:has(> .vo-substitut--photo) { height: auto; background: none; }
html.da27 .vo-substitut--photo { position: static; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
html.da27 .vo-substitut--photo > img { position: static; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 200px; object-fit: cover; }
html.da27 .vo-substitut--photo > .ui-offer-card__mention { position: static; padding: 0; background: none; color: var(--c-text-2); font-size: 12px; text-shadow: none; }
html.da27 .vo-substitut--photo .vo-situation { display: none; }
@media (min-width: 768px) {
    html.da27 .vo-substitut--photo { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: auto auto; align-items: start; }
    html.da27 .vo-substitut--photo > img { max-height: 480px; grid-column: 1; grid-row: 1; }
    html.da27 .vo-substitut--photo > .ui-offer-card__mention { grid-column: 1; grid-row: 2; }
    html.da27 .vo-substitut--photo .vo-situation { display: flex; position: static; grid-column: 2; grid-row: 1; width: auto; padding: 16px; background: var(--c-bg-2); box-shadow: none; border-radius: 0; height: 100%; justify-content: center; }
}
@media (max-width: 1023.98px) { html.da27 .fm { margin-inline: 0; } }
@media (max-width: 639.98px) { html.da27 .ui-gallery:not(:has(> .vo-substitut--photo)), html.da27 .fm { height: 200px; } }
/* résumé de la fiche offre : rangée de repères en aplat, chaque repère à sa largeur (un repère seul ne remplit plus la ligne) ;
   « Lire la suite » aligné sur le texte */
html.da27 .fr__liste { display: flex; flex-wrap: wrap; gap: 8px; }
html.da27 .fr__item { flex: 0 1 auto; min-width: 160px; border: 0; }
html.da27 .ui-fiche__main [x-ref="desc"] + .ui-btn--link, html.da27 .ui-fiche__main .ui-btn--link[x-show] { padding-inline: 0; margin-inline: 0; }
html.da27 .fh__pli > summary { list-style: none; cursor: pointer; }
html.da27 .fh__pli > summary::-webkit-details-marker { display: none; }
html.da27 .fh__pli[open] > summary { background: var(--brand-100); }
html.da27 .fh__pli .fh__actions { margin-block-start: 8px; }
/* catalogue des offres : H1 au-dessus de la carte à toutes les largeurs, plus posé dessus dans un pavé (repères masqués) (#376) */
@media (min-width: 1024px) {
    html.da27.js-carte .ofr-hero__titre { position: static; max-width: var(--w-max, 1280px); flex-direction: column; align-items: flex-start; gap: 4px;
        background: none; box-shadow: none; border-radius: 0; padding: 16px var(--marge-page); }
    html.da27.js-carte .ofr-hero__titre :is(.ui-breadcrumb, .ui-breadcrumb a, .ui-breadcrumb [aria-current]) { color: var(--c-text-2); }
    html.da27.js-carte .ofr-hero__h1 { color: var(--c-text); }
    html.da27.js-carte .ofr-carte__replier { box-shadow: none; border-radius: var(--r-sm); }
}
/* cartes d'offre : plus de bande de miniatures sur la photo ; bouton « Garder » carré à plat, 44 px ; flèches de 44 px */
html.da27 .ofr-slides__mini { display: none !important; }
html.da27 #main-content :is(.sel-btn, .cmp-alerte) { border-radius: var(--r-sm); box-shadow: none; min-width: 44px; min-height: 44px; }
@media (max-width: 1023.98px) {
    html.da27 :is(.sel-btn, .ofr-slides__fl, .fx-pt, .fx-pause) { min-width: 44px; min-height: 44px; }
    html.da27 #main-content :is(select, .ui-input) { min-height: 44px; }
}
/* filtres de type du catalogue : aplat, sans cadre */

/* encadrés d'information et liens de suggestion : aplat, sans cadre */
html.da27 #main-content .ui-alert { border: 0; }
html.da27 #main-content .ui-alert--marque { background: var(--c-brand-soft); }
html.da27 #main-content .ui-suggestion { border: 0; background: var(--brand-50); }
/* chiffres, anneaux, barres et listes de partage : aplats, sans cadre */
html.da27 #main-content :is(li.sp-chiffre, .cc-anneau, form.cm27-barre, .tm, .ne-bloc__chiffres, .nb-partage__liste, .ne-bloc__chiffres > li) { border: 0; box-shadow: none; border-radius: 0; }
/* liens de contact (téléphone, courriel, site) et boutons de partage : 44 px sous 1024 px */
@media (max-width: 1023.98px) {
    html.da27 #main-content :is(.nb-partage__liste a, .nb-btn, a[data-reseau]) { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
    html.da27 #main-content :is(a[href^="tel:"], a[href^="mailto:"], a.sp-lien):not(.ui-btn):not(.da-btn):not(:has(> svg)) { display: inline-block; padding-block: 14px; margin-block: -14px; }   /* lien à pictogramme : garde sa ligne flexible et son écart (#395, #401) */
}
/* cadres de carte, fiches, tuiles du hub, barres de jauge : aplats, angles droits */
html.da27 #main-content :is(.ui-map__cadre, .ne-carte__cadre, .ne-fiche, .ce-source-carte, .ce-apercu__cadre, .ui-kpi, .ui-kpi__item) { border: 0; border-radius: 0; box-shadow: none; }
html.da27 #main-content .hub-tuile { box-shadow: none; border-radius: 0; }
html.da27 #main-content :is(.iee-barres__piste, .iee-barres__barre) { border-radius: 0; }
html.da27 #main-content .da-video__play { box-shadow: none; border-radius: var(--r-sm); }
/* tableau plus large que l'écran : il défile dans sa colonne */
@media (max-width: 767.98px) { html.da27 #main-content table.si-table { display: block; max-width: 100%; overflow-x: auto; } }
/* accueil sur smartphone (#13, #9) : « Que cherchez-vous ? » en liste d'une colonne (icône, nom, nombre, lien) ;
   graphiques en rangée qui défile (un écran au lieu de quatre) */
@media (max-width: 639.98px) {
    html.da27 .home-entrees__liste.da-grille { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    html.da27 .home-entree.da-carte { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
    html.da27 .home-entree__lien.da-carte-corps { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: center; padding: 12px 0 12px 12px; }
    html.da27 .home-entree__lien .da-ico { grid-row: span 2; margin: 0; }
    html.da27 .home-entree__carte.da-plus { width: auto; min-height: 44px; padding: 0 12px; border: 0; }
    html.da27 .home-entree__carte.da-plus { font-size: 0; gap: 0; min-width: 44px; justify-content: center; }   /* pictogramme seul ; le texte reste lu par les lecteurs d’écran */
    html.da27 .da-mag__graphes { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
        margin-inline: calc(-1 * var(--marge-page, 16px)); padding-inline: var(--marge-page, 16px); scroll-padding-inline: var(--marge-page, 16px); scrollbar-width: none; }
    html.da27 .da-mag__graphes::-webkit-scrollbar { display: none; }
    html.da27 .da-mag__graphes > * { flex: 0 0 86%; scroll-snap-align: start; }
}
/* tuiles de commune et d'entreprise : aplat, sans cadre ; sur smartphone, liste compacte (nom, code postal) sans photo, 48 px par ligne */
html.da27 #main-content :is(.cl-tuile__lien, .act-ent) { border: 0; box-shadow: none; background: var(--brand-50); }
html.da27 #main-content :is(.cl-tuile__lien, .act-ent):hover { background: var(--brand-100); box-shadow: none; }
@media (max-width: 639.98px) {
    html.da27 .cl-grille--compacte { gap: 4px; }
    html.da27 .cl-grille--compacte .cl-tuile__img { display: none; }
    html.da27 .cl-grille--compacte .cl-tuile__lien { min-height: 48px; padding: 6px 12px; }
    html.da27 .cl-grille--compacte .cl-tuile__chiffres { display: none; }
    html.da27 .cl-grille--compacte .cl-tuile .credit-photo { display: none; }
}
/* blocs restants des pages secondaires : aplats, sans cadre ni ombre (#380) */
html.da27 #main-content :is(.an-logo, .rsm-bloc, .fr-dl, .fr-carte__cadre, .fr-defile, .sp-avis, .sp-fiche, .sp-liste, .vid-carte, li.si-fig) { border: 0; box-shadow: none; border-radius: 0; }
html.da27 #main-content :is(.sp-fiche, .vid-carte, .rsm-bloc, .sp-avis) { background: var(--brand-50); }
html.da27 #main-content .pz-hero__photo, html.da27 #main-content .pz-hero__photo img { border-radius: 0; }
html.da27 .maplibregl-ctrl-attrib.maplibregl-compact, html.da27 .maplibregl-ctrl-attrib-button { border-radius: var(--r-sm); }
/* liens de liste (noms d'entreprise, d'élu, de commune, titres d'actualité) et cases à cocher : 44 px sous 1024 px sans changer l'interligne */
@media (max-width: 1023.98px) {
    html.da27 #main-content :is(li:not(.cm27-offres > li):not(.hub-tuile__liens > li), dd, h3, h4) > a:not(.sf-a):not(.ui-btn):not(.da-btn):not(.da-pastille):not(.da-carte):not(.da-carte-corps), html.da27 #main-content a.ui-card__lien {
        display: inline-block; max-width: 100%; padding-block: max(0px, calc((44px - 1lh) / 2)); margin-block: min(0px, calc((1lh - 44px) / 2)); }
    html.da27 #main-content label:has(> input[type="checkbox"], > input[type="radio"]) { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
}
/* listes de chiffres, parties, voisins, logos et puces : aplats, sans cadre ; fiche offre : carte, proximité, barre d'actions sans ombre */
html.da27 #main-content :is(.tb-liste > li, .sp-corps > section, .dcr-voisines a, .cm27-puces li, .cm27-logo, .cm27-offres li a, .offer-map, .ui-fiche__map, .fp__item) { border-color: transparent; box-shadow: none; border-radius: 0; }
html.da27 #main-content :is(.tb-liste > li, .dcr-voisines a, .cm27-collec a) { background: var(--brand-50); }
html.da27 #main-content .cm27-collec a { border-color: transparent; border-radius: 0; box-shadow: none; }
html.da27 #main-content .cm27-collec a:hover { background: var(--brand-100); }
html.da27 #main-content :is(.ui-fiche, .fb) { box-shadow: none; }
html.da27 #main-content .sp-cadre { overflow-x: auto; }
@media (max-width: 1023.98px) { html.da27 #main-content :is(.da-pastille, .ui-btn, .da-btn) { min-height: 44px; } }
/* frise des étapes : chemin en pointillés plutôt qu'un filet plein ; épingles de la carte des écoles sans ombre */
html.da27 #main-content .ui-timeline__etape::before { width: 4px; margin-left: -1px; background: radial-gradient(circle, var(--c-border-strong) 1.5px, transparent 2px) center top / 4px 8px repeat-y; }
html.da27 #main-content .ui-timeline__etape--fait::before { background-image: radial-gradient(circle, var(--c-brand) 1.5px, transparent 2px); }
html.da27 #main-content .fr-pin { box-shadow: none; }
/* tableaux des écoles : en-têtes sur une ligne, défilement horizontal ; pied de carte d'offre : le prix passe à la ligne au lieu de couper les mots */
html.da27 #main-content .fr-defile { overflow-x: auto; }
html.da27 #main-content .fr-table th { white-space: nowrap; }
html.da27 #main-content .ui-offer-card__badges .ui-badge { max-width: 100%; white-space: normal; text-align: start; }
html.da27 #main-content .ui-offer-card__foot { flex-wrap: wrap; gap: 2px 12px; }
html.da27 #main-content .ui-offer-card__price { overflow-wrap: normal; min-width: 0; }
/* aucun défilement horizontal de page, même pendant le glissement d'un diaporama (clip garde les éléments collants) */
html.da27 #main-content { overflow-x: clip; }
/* vidéos courtes sur smartphone : une rangée qui défile (2 colonnes de 160 px coupaient « technologiques », « développement ») */
@media (max-width: 639.98px) {
    html.da27 #main-content .da-videos-piece--vignette { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
        margin-inline: calc(-1 * var(--marge-page, 16px)); padding-inline: var(--marge-page, 16px); scroll-padding-inline: var(--marge-page, 16px); scrollbar-width: none; }
    html.da27 #main-content .da-videos-piece--vignette::-webkit-scrollbar { display: none; }
    html.da27 #main-content .da-videos-piece--vignette > * { flex: 0 0 72%; scroll-snap-align: start; }
    html.da27 #main-content .da-video--vignette .da-video__titre { font-size: 1rem; line-height: 1.35; }
}
/* vidéos de la FAQ entre 1024 et 1279 px : 2 par ligne (4 vignettes de 100 px coupaient les titres) */
@media (min-width: 1024px) and (max-width: 1279.98px) {
    html.da27 #main-content .da-faq :is(.da-faq__corps, .sp-contact) .da-videos-piece--vignette > * { grid-column: span 6; }
    html.da27 #main-content .da-faq :is(.da-faq__corps, .sp-contact) .da-videos-piece--vignette > :nth-child(2n+1):last-child { grid-column: span 12; }
}
/* chiffres des pages S'implanter sur petit smartphone, chiffres de fiche entre 1024 et 1279 px : libellés longs (« télécommunications », « Établissements ») sans coupure */
@media (max-width: 419.98px) {
    html.da27 #main-content .sp-chiffre { padding: 12px; }
    html.da27 #main-content .sp-chiffre__l { font-size: 13px; line-height: 18px; }
}
@media (min-width: 1024px) and (max-width: 1279.98px) {
    html.da27 #main-content .fh__chiffres:not(.fh__chiffres--3) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

html.da27 #main-content .da-mag__graphe .ui-chart { max-width: none; width: 100%; }
/* héros sur smartphone : types de bien dans « Affiner » (un seul jeu visible à la fois), crédits sous le formulaire, chiffres sur une rangée */
html.da27 .home-rech__types--panneau { display: none; }
@media (max-width: 639.98px) {
    html.da27 .home-rech > .home-rech__types.da-types { display: none; }
    html.da27 .home-hero__in { padding-bottom: 12px; }
    html.da27 .home-rech__panneau .home-rech__types--panneau { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; border: 0; }
    html.da27 .home-rech__types--panneau legend { margin: 0 0 8px; font-weight: 600; font-size: .875rem; }
    html.da27 .home-rech__types--panneau .home-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; background: var(--brand-100); border-radius: var(--r-sm); font-size: .875rem; font-weight: 600; color: var(--c-brand-soft-ink); }
    html.da27 .home-rech__types--panneau .home-pill:has(input:checked) { background: var(--c-brand); color: #fff; }
    html.da27 .home-rech { grid-template-columns: minmax(0, 1fr) auto; }
    html.da27 .home-rech__bas { grid-column: 1 / -1; }
    html.da27 .home-credits { position: static; display: flex; justify-content: flex-end; padding: 0 var(--marge-page) 8px; }
    html.da27 .home-credits > summary { font-size: 12px; background: none; padding: 0; min-height: 44px; }
    html.da27 .da-home-chiffres { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    html.da27 .da-home-chiffres > * { padding: 12px 8px; }
    html.da27 .da-home-chiffres .da-chiffre { font-size: 1.25rem; }
    html.da27 .da-home-lib { font-size: .75rem; line-height: 1.25; }
}

/* ---------- 15. Mouvement : aucune apparition qui décale (contenu lisible tout de suite) ---------- */
@media (prefers-reduced-motion: reduce) { html.da27 .fx-pre { opacity: 1; transform: none; } }

/* =====================================================================
   Affinage 2 (16/11/2026, contrôle aveugle 1 : #383 à #391). Même palette, mêmes gabarits ; rien d'autre que la définition des éléments.
   ===================================================================== */

/* ---------- 16. Accueil, « Que cherchez-vous ? » : index de quatre entrées, filets gris de 1 px, ni carte ni fond (#383) ---------- */
html.da27 .home-entrees__liste.da-grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
html.da27 .home-entrees__liste > li.home-entree.da-carte { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 16px; padding: 0; background: none; }
html.da27 .home-entrees__liste > li.home-entree.da-carte + li { border-block-start: 1px solid var(--c-border); }
html.da27 .home-entrees__liste .home-entree__lien.da-carte-corps { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 16px; row-gap: 2px; align-items: center; padding: 16px 0; }
html.da27 .home-entrees__liste .home-entree__lien .da-ico { grid-row: span 2; width: 32px; height: 32px; margin: 0; background: none; color: var(--c-brand); align-self: center; }
html.da27 .home-entrees__liste .home-entree__nom { margin: 0; }
html.da27 .home-entrees__liste .home-entree__txt { font-size: .9375rem; line-height: 1.4; }
html.da27 .home-entrees__liste .home-entree__lien:hover .home-entree__nom { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
html.da27 .home-entrees__liste .home-entree__carte.da-plus { width: auto; min-height: 44px; padding: 0 4px; border: 0; background: none; gap: 8px; font-size: .9375rem; }
html.da27 .home-entrees__liste .home-entree__carte.da-plus:hover { background: none; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 639.98px) {
    html.da27 .home-entrees__liste .home-entree__lien.da-carte-corps { padding: 12px 0; }
    html.da27 .home-entrees__liste .home-entree__carte.da-plus { min-width: 44px; padding: 0; justify-content: center; font-size: 0; }
}
@media (min-width: 1024px) {
    html.da27 .home-entrees__liste.da-grille { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-inline: -24px; }
    html.da27 .home-entrees__liste > li.home-entree.da-carte { grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; align-items: start; padding-inline: 24px; }
    html.da27 .home-entrees__liste > li.home-entree.da-carte + li { border-block-start: 0; border-inline-start: 1px solid var(--c-border); }
    html.da27 .home-entrees__liste .home-entree__lien.da-carte-corps { grid-template-columns: minmax(0, 1fr); row-gap: 8px; padding: 0; align-content: start; }
    html.da27 .home-entrees__liste .home-entree__lien .da-ico { grid-row: auto; margin-block-end: 8px; }
    html.da27 .home-entrees__liste .home-entree__carte.da-plus { justify-content: flex-start; padding: 0; margin-block-start: 12px; }
}

/* ---------- 17. Accueil, Actualités : fil de trois dépêches, vignette à gauche, filets de 1 px, ni carte ni fond (#383) ---------- */
html.da27 .home--da > .da-bande[data-home-news] { padding-block: 20px 28px; }
html.da27 .da-grille.da-actus { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
html.da27 .da-actus > li { display: flex; min-width: 0; }
html.da27 .da-actus > li + li { border-block-start: 1px solid var(--c-border); }
html.da27 .da-actus .da-carte.da-carte-corps { flex-direction: row; align-items: flex-start; gap: 16px; padding: 12px 0; background: none; color: var(--c-text); }
html.da27 .da-actus .da-actus__img { width: 96px; height: 72px; }
html.da27 .da-actus .da-actus__texte { gap: 4px; padding-block-start: 2px; }
html.da27 .da-actus .da-h3 { font: 700 1rem/1.4 var(--font-display); -webkit-line-clamp: 3; }
html.da27 .da-actus a.da-carte:hover { background: none; }
html.da27 .da-actus a.da-carte:hover .da-h3 { color: var(--c-brand-soft-ink); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 640px) and (max-width: 1023.98px) {
    html.da27 .da-grille.da-actus { grid-template-columns: minmax(0, 1fr); gap: 0; }
    html.da27 .da-actus .da-actus__img { width: 120px; height: 90px; }
    html.da27 .da-actus .da-h3 { font-size: 1.0625rem; -webkit-line-clamp: 2; }
    html.da27 .da-actus .da-carte.da-carte-corps { padding: 14px 0; gap: 20px; align-items: center; }
}
@media (min-width: 1024px) {
    html.da27 .da-grille.da-actus { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-inline: -20px; }
    html.da27 .da-actus > li { padding-inline: 20px; }
    html.da27 .da-actus > li + li { border-block-start: 0; border-inline-start: 1px solid var(--c-border); }
    html.da27 .da-actus .da-carte.da-carte-corps { padding: 4px 0; }
}

/* ---------- 18. Accueil, héros : « Affiner » sur la ligne de recherche, types en dessous, crédits hors du panneau (#384) ---------- */
@media (min-width: 640px) and (max-width: 1279.98px) {
    html.da27 .home-rech .home-rech__ligne { grid-column: 1; grid-row: 1; }
    html.da27 .home-rech .home-rech__bas { grid-column: 2; grid-row: 1; padding: 0; }
    html.da27 .home-rech .home-rech__types.da-types { grid-column: 1 / -1; grid-row: 2; }
    html.da27 .home-rech__plus summary { min-height: 48px; padding: 0 12px; }
}
@media (min-width: 900px) and (max-width: 1279.98px) { html.da27 .home-hero__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 32px; } }
/* bouton « Rechercher » réduit à sa loupe là où le panneau est étroit : le texte indicatif reste entier */
@media (min-width: 900px) and (max-width: 1279.98px), (max-width: 479.98px) {
    html.da27 .home-rech__go { width: 52px; padding: 0; justify-content: center; }
    html.da27 .home-rech__go > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 900px) and (max-width: 1279.98px) {
    html.da27 .home-rech__q > svg { display: none; }
    html.da27 .home-rech__q .ui-input { padding-inline: 12px; }
}
@media (max-width: 479.98px) {
    html.da27 .home-rech { padding: 6px; }
    html.da27 .home-rech__ligne { gap: 6px; }
    html.da27 .home-rech__q > svg { display: none; }
    html.da27 .home-rech__q .ui-input { padding-inline: 10px; }
    html.da27 .home-rech__q .ui-input::placeholder { font-size: .9375rem; }
    html.da27 .home-rech__go { width: 48px; }
}
/* crédits des photos sous le panneau, jamais dessus, sous 900 px */
@media (max-width: 899.98px) {
    html.da27 .home-hero__in { padding-bottom: 8px; }
    html.da27 .home-credits { position: static; display: flex; justify-content: flex-end; padding: 0 var(--marge-page) 8px; }
    html.da27 .home-credits > summary { min-height: 44px; display: inline-flex; align-items: center; background: none; padding: 0; }
}

/* ---------- 19. Carrousels : points et pause sous les images, jamais sur une légende ; pause en aplat, sans cadre (#384) ---------- */
html.da27 .fx-bas { position: static; height: auto; min-height: 24px; margin-block-start: 8px; }
html.da27 .fx-pause { border: 0; background: var(--c-bg-2); color: var(--c-text); }
html.da27 .fx-pause:hover { background: var(--brand-100); }
@media (max-width: 1023.98px) { html.da27 .fx-bas { min-height: 44px; } }

/* ---------- 20. Cadres de 1 px, bord d'accent et ombre dure restants : aplats de la palette, sans contour (#385) ---------- */
html.da27 #main-content :is(.sp-etape, .sp-sommaire, .vc-outil, .vc-graphique, .legal-choix, .si-note, .eco-carte, .pc-filtres, .gp-avertissement) { border: 0; border-radius: 0; box-shadow: none; }
html.da27 #main-content :is(.sp-etape, .sp-sommaire, .vc-outil, .legal-choix, .eco-carte, .pc-filtres) { background: var(--brand-50); }
html.da27 #main-content .vc-graphique { background: var(--c-surface); padding: clamp(16px, 2vw, 24px); }
html.da27 #main-content .si-note { background: var(--c-accent-soft); color: var(--c-text); }
html.da27 #main-content .gp-avertissement { background: #FEF3C7; color: #78350F; }
/* étapes numérotées : numéro en carré plein, pas en rond */
html.da27 #main-content .sp-etape::before { border-radius: var(--r-sm); }
/* sommaire collant sous 1024 px : la marge blanche du haut est un vrai remplissage, plus une ombre pleine de 8 px */
@media (max-width: 1023.98px) {
    html.da27 .sf[data-sf-js] { box-shadow: none; padding-block-start: calc(var(--s-1) + 8px); margin-block-start: -8px; }
}
/* sommaire : bouton en aplat, sans contour */
html.da27 .sf-bouton { border: 0; background: var(--brand-50); }
html.da27 .sf-bouton:hover { background: var(--brand-100); }
/* pied de page : bouton « Valider » en aplat clair, sans contour */
html.da27 .ui-footer__langue .ui-footer__ok, html.da27 .ui-footer__ok { border: 0; background: rgba(255, 255, 255, .14); color: #fff; }
html.da27 .ui-footer__langue .ui-footer__ok:hover, html.da27 .ui-footer__ok:hover { background: rgba(255, 255, 255, .24); }
/* page Contact : état « Ouvert » / « Fermé » en aplat, sans contour */
html.da27 .ui-contactpage__etat { border: 0; border-radius: var(--r-sm); }

/* ---------- 21. Étiquette de thème d'actualité : à la largeur de son mot, jamais en bande sur toute la carte (#385) ---------- */
html.da27 .act-carte__theme { display: inline-block; width: fit-content; max-width: 100%; align-self: flex-start; padding: 2px 8px; }

/* ---------- 22. Bandeau des pages : crédit photo sous le texte sous 1024 px, jamais sur le titre (#386) ---------- */
@media (max-width: 1023.98px) {
    html.da27 .ui-bandeau__credit { position: relative; display: block; width: fit-content; max-width: 100%; margin-inline-start: auto; }
    html.da27 .ui-bandeau:not(.ui-bandeau--uni) .ui-hero__corps { padding-block-end: 12px; }
}

/* ---------- 23. Barres de filtres (Actualités, Annuaire, Vidéos) : filtres sur toute la largeur, compteur et flux dessous (#386) ---------- */
html.da27 .acr-repli__t { border: 0; border-radius: var(--r-sm); background: var(--brand-100); color: var(--c-brand-soft-ink); font-weight: 600; white-space: nowrap; padding-inline: 16px; }
html.da27 .rss-abo { align-items: center; gap: 0 20px; }
html.da27 .rss-abo > a, html.da27 .rss-abo > .ui-btn--link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; font-size: .875rem; font-weight: 600; line-height: 1.3; }
html.da27 .acr-barre .fil-compteur { font-size: .9375rem; }
@media (max-width: 767.98px) {
    html.da27 .act .acr-barre { flex-wrap: wrap; align-items: center; gap: 4px 16px; }
    html.da27 .act .acr-barre__meta { display: contents; }
    html.da27 .act .acr-barre .fil-compteur { order: 1; margin-inline-start: auto; text-align: end; }
    html.da27 .act .acr-barre .rss-abo { order: 2; flex: 1 1 100%; justify-content: flex-start; }
    html.da27 .act .acr-barre .acr-repli[open] { order: 3; }
}
@media (min-width: 768px) {
    html.da27 .act .acr-barre { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 4px; }
    html.da27 #main-content .act .acr-barre .acr-repli { flex: none; background: none; }
    html.da27 .act .acr-barre .acr-filtres { padding: 12px 0; background: none; border: 0; box-shadow: none; }
    html.da27 .act .acr-barre__meta { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px; min-width: 0; text-align: start; }
}
@media (min-width: 1100px) {
    html.da27 .act .acr-barre .acr-filtres.fil-filtres { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 8px 24px; }
}

/* ---------- 24. Actualités : « À la une » au rang de titre de section, texte de la une en haut (#386) ---------- */
html.da27 #main-content .act-surtitre { font: var(--t-h2); letter-spacing: -.02em; text-transform: none; color: var(--c-text); }
html.da27 #main-content .act[data-u366] .act-carte--une { border: 0; border-radius: 0; }
html.da27 #main-content .act[data-u366] .act-carte--une .act-carte__corps { justify-content: flex-start; }
/* affiches (image en hauteur) : montrées entières sur un fond de la couleur du thème, jamais rognées */
html.da27 #main-content .act-carte__media--affiche img { object-fit: contain; }

/* ---------- 25. Fil d'actualités : liste de dépêches (photo à gauche, texte à droite), filets de 1 px, ni carte ni grille (#386) ---------- */
html.da27 #main-content .act[data-u366] .act-liste { display: block; }
html.da27 #main-content .act[data-u366] .act-liste--ul > li { display: block; }
html.da27 #main-content .act[data-u366] .act-liste :is(.act-carte:not(.act-carte--une)) {
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; height: auto; overflow: visible;
    padding-block: 20px; background: none; border: 0; border-block-start: 1px solid var(--c-border); border-radius: 0; box-shadow: none; }
html.da27 #main-content .act[data-u366] :is(.act-liste--ul > li:first-child > .act-carte, .act-liste > .act-carte:first-child) { border-block-start: 0; padding-block-start: 4px; }
html.da27 #main-content .act[data-u366] .act-liste .act-carte:not(.act-carte--une) .act-carte__media { flex: none; width: 100%; min-height: 0; aspect-ratio: 16 / 9; }
html.da27 #main-content .act[data-u366] .act-liste .act-carte:not(.act-carte--une) .act-carte__media :is(img, svg) { position: absolute; inset: 0; width: 100%; height: 100%; }
html.da27 #main-content .act[data-u366] .act-liste .act-carte:not(.act-carte--une) .act-carte__corps { padding: 0; gap: 6px; justify-content: flex-start; }
html.da27 #main-content .act[data-u366] .act-liste .act-carte:hover { background: none; }
html.da27 #main-content .act[data-u366] .act-liste .act-carte__titre a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 640px) {
    html.da27 #main-content .act[data-u366] .act-liste .act-carte:not(.act-carte--une) { grid-template-columns: 200px minmax(0, 1fr); gap: 20px; }
    html.da27 #main-content .act[data-u366] .act-liste .act-carte:not(.act-carte--une) .act-carte__media { aspect-ratio: 4 / 3; }
}
@media (min-width: 1024px) {
    html.da27 #main-content .act[data-u366] .act-liste .act-carte:not(.act-carte--une) { grid-template-columns: 240px minmax(0, 1fr); gap: 24px; }
}

/* ---------- 26. S'implanter : le parcours en cinq étapes, une étape par ligne le long d'un chemin, ni tuile ni grille (#387) ---------- */
html.da27 .hub-etapes__tete { flex-direction: column; align-items: stretch; gap: 16px; }
html.da27 .hub-recherche { flex: none; width: 100%; max-width: 640px; min-width: 0; }
html.da27 .hub-recherche .ui-input { border-radius: var(--r-sm); text-overflow: ellipsis; }
@media (max-width: 639.98px) { html.da27 .hub-recherche .ui-input::placeholder { font-size: .875rem; } }
html.da27 #main-content .hub-grille { display: block; counter-reset: none; }
html.da27 #main-content .hub-grille > .hub-tuile {
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px 16px; align-items: start; min-height: 0; overflow: visible; isolation: auto;
    padding-block: 24px; background: none; color: var(--c-text); border: 0; border-block-start: 1px solid var(--c-border); border-radius: 0; box-shadow: none; transform: none; }
html.da27 #main-content .hub-grille > .hub-tuile:first-child { border-block-start: 0; padding-block-start: 0; }
html.da27 #main-content .hub-grille > .hub-tuile[hidden] { display: none; }
html.da27 #main-content .hub-tuile::before { content: none; }
html.da27 #main-content .hub-tuile__media { position: relative; inset: auto; aspect-ratio: 4 / 3; width: 100%; background: var(--c-bg-2); }
html.da27 #main-content .hub-tuile__media { display: none; }
html.da27 #main-content .hub-tuile:hover .hub-tuile__media .ui-figure img { transform: none; }
html.da27 #main-content .hub-tuile__picto { display: none; }
html.da27 #main-content .hub-tuile__corps { display: contents; }
html.da27 #main-content .hub-tuile__corps > :is(.hub-tuile__etape, .hub-tuile__titre, .hub-tuile__phrase) { grid-column: -2; }
html.da27 #main-content .hub-tuile__etape { grid-row: 1; align-self: start; margin: 0; font: 800 .8125rem/1.2 var(--font-display); letter-spacing: .06em; color: var(--c-brand-soft-ink); }
html.da27 #main-content .hub-tuile__titre { grid-row: 1; margin: 22px 0 0; font: var(--t-h3); font-size: 1.25rem; color: var(--c-text); }
html.da27 #main-content .hub-tuile__phrase { margin: 0; color: var(--c-text-2); font-size: .9375rem; }
html.da27 #main-content .hub-tuile__media { grid-column: 1; grid-row: 1 / span 2; }
html.da27 #main-content .hub-tuile__liens { grid-column: 1 / -1; margin: 4px 0 0; border: 0; }
html.da27 #main-content .hub-tuile__liens li { border: 0; border-block-start: 1px solid var(--c-border); }
html.da27 #main-content .hub-tuile__liens a { color: var(--c-action); font-weight: 600; font-size: .9375rem; min-height: 44px; }
html.da27 #main-content .hub-tuile__liens a:hover { color: var(--c-action-hover); }
html.da27 #main-content .hub-tuile a:focus-visible { outline: var(--da-focus) solid var(--c-action); }
@media (min-width: 640px) {
    html.da27 #main-content .hub-grille > .hub-tuile { grid-template-columns: 200px minmax(0, 1fr); column-gap: 24px; }
    html.da27 #main-content .hub-tuile__media { display: block; grid-row: 1 / span 4; }
    html.da27 #main-content .hub-tuile__liens { grid-column: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
    html.da27 #main-content .hub-tuile__titre { font-size: 1.375rem; }
}
@media (min-width: 1024px) {
    html.da27 #main-content .hub-grille > .hub-tuile { grid-template-columns: 320px minmax(0, 1fr); column-gap: 40px; padding-block: 32px; }
    html.da27 #main-content .hub-tuile__titre { font-size: 1.5rem; }
}
/* chiffres du hub et des pages : une rangée de valeurs posées sur la page, séparées par un filet, sans case */
html.da27 #main-content .hub-chiffres { margin-block-start: 0; }
html.da27 #main-content .hub-chiffres .ui-h2 { margin: 0 0 24px; }
html.da27 #main-content :is(.hub-chiffres .ui-kpi, .sp-chiffres) { gap: 24px 0; background: none; border: 0; border-radius: 0; overflow: visible; }
html.da27 #main-content :is(.hub-chiffres .ui-kpi .ui-kpi__item, .sp-chiffres .sp-chiffre) { background: none; padding: 0 20px; border: 0; border-inline-start: 1px solid var(--c-border); }
html.da27 #main-content :is(.hub-chiffres .ui-kpi .ui-kpi__item, .sp-chiffres .sp-chiffre):nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
@media (min-width: 900px) {
    html.da27 #main-content :is(.hub-chiffres .ui-kpi .ui-kpi__item, .sp-chiffres .sp-chiffre):nth-child(odd) { border-inline-start: 1px solid var(--c-border); padding-inline-start: 20px; }
    html.da27 #main-content :is(.hub-chiffres .ui-kpi .ui-kpi__item, .sp-chiffres .sp-chiffre):first-child { border-inline-start: 0; padding-inline-start: 0; }
}
html.da27 #main-content .hub-chiffres .ui-kpi__item:last-child:nth-child(odd) { grid-column: auto; }
/* lien « Voir tous les interlocuteurs » aligné sur le texte */
html.da27 #main-content .hub-contact__lien .ui-btn--link { padding-inline: 0; margin-inline: 0; }

/* ---------- 27. Étiquettes avec pictogramme : 6 px entre l'icône et le mot (fiche offre, cartes) (#388) ---------- */
html.da27 .ui-badge:has(> svg) { gap: 6px; }
html.da27 #main-content .fe__badges .ui-badge { height: 28px; padding-inline: 10px; font-size: .8125rem; }
/* page Contact : « Appeler » et « Itinéraire » de même hauteur, contenu centré, icône à 8 px du mot */
html.da27 #main-content .ui-contactpage__actions .ui-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding-block: 0; margin-block: 0; }

/* ---------- 28. Contrastes de 4,5:1 au moins (#389) ---------- */
/* crédits des fonds de carte (Leaflet, MapLibre) : fond blanc plein, lien bleu nuit, 12 px, zone tactile de 44 px sous 1024 px */
html.da27 :is(.leaflet-control-attribution, .maplibregl-ctrl-attrib) { background: rgba(255, 255, 255, .94); color: var(--c-text); font-size: 12px; line-height: 16px; padding: 2px 6px; }
html.da27 :is(.leaflet-control-attribution, .maplibregl-ctrl-attrib) a { color: #0B4A8B; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 1023.98px) {
    html.da27 :is(.leaflet-control-attribution, .maplibregl-ctrl-attrib-inner) a { display: inline-block; padding: 14px 4px; margin: -14px -4px; }
}
/* texte gris clair de Tailwind sur les aplats gris : un ton plus sombre */
html.da27 #main-content .text-slate-500 { color: #4B5869; }
html.da27 #main-content .text-slate-400:not(svg) { color: #556273; }

/* ---------- 29. Texte de 13 px au moins sur smartphone : libellés de chiffres, dates, sources, crédits, étiquettes (#390) ---------- */
@media (max-width: 639.98px) {
    html.da27 :is(.da-home-lib, .ui-footer__titre, .ui-footer__titre-fixe, .ui-source, p.ui-source, .ui-bandeau__credit, .home-credits > summary, .vz-vignette__legende,
        .ui-badge, .da-etiquette, .act-carte__theme, .act-carte__meta, .act-carte__meta time, .ui-kpi__source, .sp-chiffre__s, .sp-chiffre__l, small) { font-size: 13px; line-height: 1.35; }
    html.da27 #main-content :is(small, .ui-source, [class*="credit"], .act-carte__credit) { font-size: 13px; line-height: 1.35; }
}
html.da27 .home-basemap button { font-size: 14px; }
/* plafonds de la page Aides, carte des équipements sportifs : aplats sans contour ; pastilles de légende sans anneau */
html.da27 #main-content :is(.vf-plafond, .sp95-carte__cadre) { border: 0; border-radius: 0; box-shadow: none; }
html.da27 #main-content .vf-plafond { background: var(--brand-50); }
html.da27 #main-content .sp95-pastille { border: 0; box-shadow: none; }
