/* Thème 11e (choisi sur maquette) posé par-dessus style.css : fond crème, bandeau du haut plus fin, cartes teintées,
   accueil avec photo, horloge et voyant ouvert/fermé. Règles FALC gardées : Tahoma, 19 px minimum, ni italique ni majuscules. */

:root { --color-bg: #f3eade; --header-height: 60px; }
@media (max-width: 768px) { :root { --header-height: 60px; } }
body { background: #f3eade; }

/* bandeau « version de développement » : plus discret, toujours lisible */
.dev-banner { background: #fff4d6; color: #5c4400; border-bottom: 1px solid #e9d39a; box-shadow: none; font-weight: 600; }

/* barre de l'horloge : le bouton d'arrêt des animations à droite, avant la roue de l'administration */
.live-clock-bar { gap: .8rem; text-shadow: none; }
.pause-anim {
    margin-left: auto; flex: 0 0 auto; background: transparent; color: #fff;
    border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: 0 .55rem;
    font: inherit; font-size: 18.7px; font-weight: 400; line-height: 1.2; letter-spacing: 0; cursor: pointer; white-space: nowrap;
}
.pause-anim:hover { background: rgba(255,255,255,.14); }
.pause-anim:focus-visible { outline: 3px solid #f2c14e; outline-offset: 2px; }
#mairieClock > span:last-child .pause-anim { margin-left: 0; margin-right: .3rem; }
/* bouton compact : à l'écran « ❚❚ Arrêter » (ou « ▶ Relancer ») ; les lecteurs d'écran entendent toujours « Arrêter les animations » */
.pause-anim .pa-suite { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.pause-anim::before { content: "❚❚"; content: "❚❚" / ""; font-size: .7em; margin-right: .4em; vertical-align: .1em; }
.anim-figee .pause-anim::before { content: "▶"; content: "▶" / ""; }
/* la règle générale des boutons sur téléphone (44 px de haut) le faisait déborder de la barre de 36 px : hauteur fixe,
   toujours au-dessus des 24 px minimum demandés pour le doigt */
.live-clock-bar .pause-anim { min-height: 0 !important; height: 28px; display: inline-flex; align-items: center; box-sizing: border-box; }
@media (max-width: 600px) {
    .live-clock-bar { gap: .4rem; padding: 0 .6rem; }
    .pause-anim { padding: 0 .55rem; }
    .pause-anim .pa-suite { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
}
/* le compteur est seul à gauche de la barre : il tient sur téléphone, sauf sur les très petits écrans */
@media (max-width: 359px) { #visit-counter { display: none; } }
/* lien de l'espace de gestion : en bas de page, de la couleur du texte voisin, pour ne pas attirer l'œil */
.footer-bottom #admin-icon { color: inherit; text-decoration: none; margin-left: .4rem; }
.footer-bottom #admin-icon:focus-visible { outline: 3px solid #f2c14e; outline-offset: 2px; }

/* affiche cliquable : l'image garde sa taille, le bouton ne se voit pas, sauf la mention « Agrandir l'affiche » dessous */
.affiche-agrandir { display: inline-block; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; font: inherit; color: inherit; text-align: left; }
.affiche-agrandir:focus-visible { outline: 3px solid #0b5a6d; outline-offset: 3px; border-radius: 8px; }
.affiche-agrandir-texte { display: block; margin-top: .4rem; color: #0b5a6d; font-weight: 700; text-decoration: underline; }
.affiche-agrandir:hover .affiche-agrandir-texte { text-decoration-thickness: 2px; }
.accueil-11e .rdv-affiche.affiche-agrandir { line-height: 0; }

/* la visionneuse : l'affiche en grand, sur fond sombre, avec les boutons au-dessus */
.visionneuse-affiche { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0; background: transparent; overflow: auto; }
.visionneuse-affiche[open] { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.visionneuse-affiche::backdrop { background: rgba(10, 15, 25, .92); }
.visionneuse-affiche .va-barre { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; padding: .7rem .7rem 0; }
.visionneuse-affiche .va-bouton { display: inline-block; padding: .5rem 1.1rem; border: 0; border-radius: 999px; background: #fff; color: #14243a; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.visionneuse-affiche .va-bouton:focus-visible { outline: 3px solid #f2c14e; outline-offset: 2px; }
.visionneuse-affiche img { display: block; max-width: 96vw; max-height: calc(100vh - 5.5rem); width: auto; height: auto; object-fit: contain; border-radius: 6px; }

/* bandeau du haut : plus fin, logo plus petit, menu en pastilles */
.site-header { -webkit-backdrop-filter: none; backdrop-filter: none; }
.logo-icon-img { height: 34px !important; padding: 3px 8px !important; }
.logo-title { font-size: 1.1875rem; line-height: 1.25; text-shadow: none; }
.logo-subtitle { line-height: 1.25; text-shadow: none; }
.nav-list { gap: .1rem; }
.nav-link { padding: .25rem .65rem; border-radius: 999px; text-shadow: none; line-height: 1.35; }
.nav-link:hover { background: rgba(255,255,255,.14); }
.nav-link.active { border-bottom: 0; background: #fff; color: #152E4A !important; }
.dropdown-menu { border-radius: 12px; border-color: #e3d6c7; }
.dropdown-menu a:hover, .dropdown-menu a.active { background: #f3eade; color: #152E4A; }

/* FALC : plus aucun texte sous 14 points (sous-titre du logo sur téléphone, fonctions des élus sur la page du conseil) */
.logo-subtitle { font-size: 1.1875rem !important; }
.conseiller-adjoint, .conseiller-delegation { font-size: 1.1875rem !important; }
@media (max-width: 430px) { .logo-subtitle { display: none; } }
@media (max-width: 360px) { .logo-icon-img { height: 30px !important; padding: 2px 4px !important; } }

/* pages intérieures : bandeau photo moins haut, titres sans ombre lourde */
.page-hero h1, .hero h1 { letter-spacing: 0; }

/* cartes et encadrés des pages intérieures : coins arrondis, teintes douces de la palette */
.info-card, .service-card, .asso-card, .actu-card, .conseiller-card, .maire-card, .lieu-dit-card, .event-card {
    border-radius: 14px;
}
.service-card:nth-child(3n+1), .asso-card:nth-child(3n+1) { background: #f6ede4; }
.service-card:nth-child(3n+2), .asso-card:nth-child(3n+2) { background: #e6f1ea; }
.service-card:nth-child(3n), .asso-card:nth-child(3n) { background: #f6e8ec; }

/* pied de page : bouton Facebook et liens gardés, coins arrondis */
.site-footer .btn-facebook { border-radius: 999px !important; }

/* ===================== ACCUEIL ===================== */
.accueil-11e { margin-top: calc(var(--header-height) + var(--clock-bar-height) + var(--dev-banner-height)); }
.accueil-11e .ecran { position: relative; overflow: hidden; }
.accueil-11e .ecran img {
    display: block; width: 100%; height: clamp(240px, 36vw, 460px); object-fit: cover; object-position: center 40%;
    animation: zoomDoux 15s ease-in-out infinite alternate;
    /* calcul confié à la carte graphique : sans cela le zoom très lent avance au pixel près, par petits sauts */
    will-change: transform; transform: translate3d(0, 0, 0); backface-visibility: hidden; transform-origin: center 40%;
}
/* rotate(0.02deg) : invisible, mais empêche Firefox de caler l'image sur des pixels entiers (sinon le zoom lent avance par sauts) */
@keyframes zoomDoux { from { transform: scale(1) rotate(0.02deg); } to { transform: scale(1.08) rotate(0.02deg); } }
.accueil-11e .ecran::after { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(transparent, #f3eade); }
.accueil-11e .accueil {
    position: relative; z-index: 2; margin-top: -4.5rem; padding-bottom: 2rem;
    display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; align-items: start;
}
.accueil-11e h1 { margin: 0; font-size: 2.6rem; line-height: 1.15; color: #14243a; text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.accueil-11e .sous-titre { margin: .4rem 0 0; color: #3d4c61; }
.accueil-11e .hero-rdv { margin: .5rem 0 0; color: #14243a; font-weight: 700; }
.accueil-11e .hero-rdv a { color: #0b5a6d; }
/* le lieu et l'heure du rendez-vous, sur leur propre ligne sous le titre, en texte normal ; ses retours à la ligne sont gardés */
.accueil-11e #rdv-bandeau-details { display: block; margin-top: .3rem; font-weight: 400; color: #3d4c61; white-space: pre-line; }
.accueil-11e #rdv-bandeau-details:empty { display: none; }
/* avec l'affiche (comme sur PanneauPocket) : l'affiche à gauche, à droite l'intitulé, le titre puis le lieu, l'un sous l'autre */
.accueil-11e .hero-rdv.avec-affiche { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: start; }
.accueil-11e .hero-rdv.avec-affiche .rdv-affiche { grid-row: 1 / span 3; line-height: 0; }
.accueil-11e .rdv-affiche img { display: block; width: 120px; height: auto; border-radius: 8px; border: 1px solid #d9c3b1; box-shadow: 0 4px 12px rgba(20,36,58,.15); }
@media (max-width: 600px) { .accueil-11e .rdv-affiche img { width: 96px; } }
/* le rouge d'erreur du site est trop pâle sur le fond crème (4,06) : #b91c1c donne 5,43 */
.required { color: #b91c1c; }
.accueil-11e .chiffres { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2rem; margin-top: 1.4rem; }
.accueil-11e .chiffres div { text-align: center; padding: 0 .8rem; }
.accueil-11e .chiffres div { border-left: 3px solid #8B6F5E; padding-left: .8rem; }
.accueil-11e .chiffres div:nth-child(2) { border-left-color: #2f7d5b; }
.accueil-11e .chiffres div:nth-child(3) { border-left-color: #8a3346; }
.accueil-11e .chiffres b { display: block; font-size: 1.5rem; font-variant-numeric: tabular-nums; color: #14243a; }
.accueil-11e .chiffres span { color: #3d4c61; }

.accueil-11e .statut {
    position: relative; overflow: hidden; width: 400px; max-width: 100%; box-sizing: border-box; color: #fff; padding: 3rem 1.8rem 1.4rem; text-align: center;
    /* forme d'arche, comme une fenêtre de la mairie : le haut en demi-cercle, le bas à peine arrondi */
    border-radius: 50% 50% 18px 18px / 120px 120px 18px 18px;
    align-self: center; margin-top: 2.5rem;
    background: linear-gradient(270deg, #152E4A, #5C1E2B, #143528, #1A3A3A, #3A1850, #152E4A); background-size: 600% 600%;
    animation: colorShift 45s ease infinite; box-shadow: 0 10px 30px rgba(20,36,58,.12);
}
.accueil-11e .statut .etat { display: block; }
.accueil-11e .statut .etat i { display: inline-block; vertical-align: .08em; margin-right: .5rem; }
.accueil-11e .titre-statut { margin: 0; font-size: 1.4rem; font-weight: 700; line-height: 1.3; }
.accueil-11e .statut .heure { font-size: 2.1rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .04em; line-height: 1.2; }
.accueil-11e .statut .date { color: #dfe7f1; }
.accueil-11e .etat { display: flex; align-items: center; gap: .6rem; margin-top: .5rem; font-weight: 700; font-size: 1.25rem; }
.accueil-11e .statut .etat, .accueil-11e .statut .etat span { color: #fff; }
.accueil-11e .etat i { flex: 0 0 auto; width: .8rem; height: .8rem; border-radius: 50%; background: #c9d6e6; }
.accueil-11e .etat.ouvert i { background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.25); }
.accueil-11e .etat.ferme i { background: #ff8a8a; box-shadow: 0 0 0 4px rgba(255,138,138,.25); }
.accueil-11e .statut .note-horaires { margin: .5rem 0 0; color: #fff; }

.accueil-11e .la-mairie { padding: 1rem 0 2.6rem; }
.accueil-11e h2 { font-size: 1.6rem; margin: 0 0 1rem; color: #14243a; }
.accueil-11e .grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.accueil-11e .carte { position: relative; overflow: hidden; border: 1px solid; border-radius: 14px; padding: 1.3rem 1.4rem; color: #14243a; transition: transform .25s ease, box-shadow .25s; }
.accueil-11e .carte::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; }
.accueil-11e .carte:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(15,111,134,.14); }
.accueil-11e .c1 { background: #ecdfd3; border-color: #d9c3b1; } .accueil-11e .c1::before { background: #8B6F5E; }
.accueil-11e .c2 { background: #d8eadf; border-color: #b5d4c2; } .accueil-11e .c2::before { background: #2f7d5b; }
.accueil-11e .c3 { background: #efd9df; border-color: #dfb9c3; } .accueil-11e .c3::before { background: #8a3346; }
.accueil-11e .carte h3 { margin: 0 0 .6rem; font-size: 1.3rem; color: #14243a; }
.accueil-11e .carte p { margin: 0 0 .5rem; }
.accueil-11e .carte .note { margin-top: .8rem; color: #3d4c61; }
.accueil-11e .carte a { color: #0b4f60; }
#card-contact-text a { font-size: 1.1875rem !important; font-weight: 400 !important; color: #0b4f60 !important; text-decoration: underline !important; }
#card-contact-text a[href^="tel:"] { display: inline-block; font-size: 1.7rem !important; font-weight: 700 !important; color: #14243a !important; text-decoration: none !important; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.accueil-11e .bouton {
    display: inline-block; margin-top: .6rem; padding: .6rem 1.2rem; border-radius: 999px; background: #2f7d5b;
    color: #fff !important; text-decoration: none; font-weight: 700; transition: background .2s, transform .2s;
}
.accueil-11e .bouton:hover { background: #246549; transform: translateY(-2px); }

.accueil-11e .urgences { background: #e3dbef; padding: 2.4rem 0; }
.accueil-11e .urgences h2 { color: #3A1850; }
.accueil-11e .urgences ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.accueil-11e .urgences a {
    display: block; height: 100%; background: #fff; border: 1px solid rgba(192,38,45,.3); border-radius: 12px; padding: .7rem .9rem;
    color: #14243a; text-decoration: none; transition: transform .25s ease, box-shadow .25s;
}
/* des cartes entières cliquables : le cadre suffit à les distinguer, pas de soulignement (RGAA 10.6 visé par style.css pour le texte courant) */
.accueil-11e .urgences li a { text-decoration: none !important; }
.accueil-11e .urgences a:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(192,38,45,.12); }
.accueil-11e .urgences .n { display: block; font-weight: 700; color: #b0222a; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.accueil-11e .urgences .q { display: block; color: #3d4c61; }

@media (max-width: 900px) {
    .accueil-11e .accueil { grid-template-columns: 1fr; margin-top: -3rem; }
    .accueil-11e .grille { grid-template-columns: 1fr; }
    .accueil-11e .urgences ul { grid-template-columns: repeat(2, 1fr); }
    .accueil-11e .statut { min-width: 0; margin-top: 0; justify-self: center; width: min(100%, 380px); }
    .accueil-11e h1 { font-size: 2.1rem; }
}
@media (max-width: 420px) {
    .accueil-11e .urgences ul { grid-template-columns: 1fr; }
}

/* ===================== ARRÊT DES ANIMATIONS (RGAA 13.8) ===================== */
.anim-figee *, .anim-figee *::before, .anim-figee *::after { animation-play-state: paused !important; }
.anim-figee .accueil-11e .carte:hover, .anim-figee .accueil-11e .urgences a:hover, .anim-figee .accueil-11e .bouton:hover { transform: none; }
@media (prefers-reduced-motion: reduce) {
    .accueil-11e .ecran img, .accueil-11e .statut { animation: none; }
    .accueil-11e .carte, .accueil-11e .urgences a, .accueil-11e .bouton { transition: none; }
    .accueil-11e .carte:hover, .accueil-11e .urgences a:hover, .accueil-11e .bouton:hover { transform: none; }
}

/* ===================== PAGES INTÉRIEURES : MÊME LANGAGE QUE L'ACCUEIL ===================== */
/* titres bleu nuit, sans trait décoratif dessous */
.section-title, .page-main h2, .page-main h3 { color: #0f766e; }
.section-title::after { display: none !important; }
.accessibilite-content h2, .accessibilite-content h3,
.confidentialite-content h2, .confidentialite-content h3 { color: #14243a !important; }
.note-ref, .critere-partiel { color: #8a3346 !important; }
.critere-ok { color: #1f6b47 !important; }

/* blocs de texte (déclaration d'accessibilité, politique, mentions) : une carte claire, barre taupe en haut */
.accessibilite-content, .confidentialite-content {
    background: #fffaf4; border: 1px solid #e3d6c7; border-top: 5px solid #8B6F5E; border-radius: 14px;
    padding: 1.6rem 2rem 2rem; box-shadow: 0 1px 2px rgba(20,36,58,.05);
}
.badge-conforme { background: #8a3346 !important; border-radius: 999px !important; }

/* cartes : teintes de l'accueil, coins arrondis, barre de couleur en haut au lieu du filet à gauche */
.service-card, .asso-card, .lieu-dit-card, .conseiller-card, .maire-card, .actu-card, .info-box, .permanence-elus-block,
.contact-form-wrapper, .reservation-form-wrapper, .tarifs-box, .plan-acces-info, .horaires-block {
    border-radius: 14px !important;
}
.service-card, .asso-card {
    border: 1px solid #d9c3b1 !important; border-top: 5px solid #8B6F5E !important; background: #ecdfd3 !important; box-shadow: none;
}
.service-card:nth-child(3n+2), .asso-card:nth-child(3n+2) { border-color: #b5d4c2 !important; border-top-color: #2f7d5b !important; background: #d8eadf !important; }
.service-card:nth-child(3n), .asso-card:nth-child(3n) { border-color: #dfb9c3 !important; border-top-color: #8a3346 !important; background: #efd9df !important; }
.service-card:hover, .asso-card:hover, .lieu-dit-card:hover, .actu-card:hover { box-shadow: 0 12px 28px rgba(15,111,134,.14); }
.service-card h3, .asso-card h3, .asso-card h4 { color: #14243a !important; }
.lieu-dit-card, .conseiller-card, .actu-card, .maire-card { background: #fffaf4 !important; border: 1px solid #e3d6c7 !important; box-shadow: 0 1px 2px rgba(20,36,58,.05) !important; }
.maire-card { border-top: 5px solid #8B6F5E !important; }

/* encadrés d'information : vert de l'accueil au lieu du bleu */
.info-box, .permanence-elus-block {
    background: #d8eadf !important; border: 1px solid #b5d4c2 !important; border-left: 5px solid #2f7d5b !important; color: #14243a;
}

/* formulaires dans une carte claire */
.contact-form-wrapper, .reservation-form-wrapper {
    background: #fffaf4; border: 1px solid #e3d6c7; border-top: 5px solid #2f7d5b; padding: 1.4rem 1.6rem 1.6rem;
}

/* chiffres clés de la commune : comme sur l'accueil (filet coloré à gauche) */
.chiffres-cles { border-top: 0; gap: 1rem 2rem; flex-wrap: wrap; }
.chiffre { text-align: left; border-left: 3px solid #8B6F5E; padding-left: .8rem; }
.chiffre:nth-child(2) { border-left-color: #2f7d5b; }
.chiffre:nth-child(3) { border-left-color: #8a3346; }
.chiffre-nombre { color: #0f766e; }

/* boutons en pastille, vert de l'accueil */
.btn { border-radius: 999px !important; }
.btn-primary { background: #2f7d5b !important; border-color: #2f7d5b !important; color: #fff !important; }
.btn-primary:hover { background: #246549 !important; border-color: #246549 !important; }
.btn-secondary, .btn-outline { border-color: #152E4A !important; color: #152E4A !important; background: transparent !important; }
.btn-secondary:hover, .btn-outline:hover { background: #152E4A !important; color: #fff !important; }

/* liste des comptes rendus : une carte arrondie */
.cr-list { border-radius: 14px; overflow: hidden; border: 1px solid #e3d6c7; }

/* fonds de section : crème un peu plus soutenu au lieu du gris */
.section-alt, .page-main .section-alt { background: #ece1d3 !important; }

/* conseil : fonctions des élus aux couleurs de l'accueil (bordeaux pour les adjoints, vert pour les délégations) */
.conseiller-adjoint { background: #efd9df !important; color: #7a2a3b !important; border-color: #dfb9c3 !important; }
.conseiller-delegation, .maire-delegation { background: #d8eadf !important; color: #1f5c3f !important; border-color: #b5d4c2 !important; }

/* contact : les coordonnées dans une carte, comme le formulaire */
.contact-info { background: #fffaf4; border: 1px solid #e3d6c7; border-top: 5px solid #8B6F5E; border-radius: 14px; padding: 1.4rem 1.6rem 1.6rem; }

/* comptes rendus : bandeau du mandat aux couleurs du site au lieu du noir */
.cr-mandat-header { background: linear-gradient(90deg, #152E4A, #3A1850) !important; color: #fff !important; }
.cr-mandat-group { border-radius: 14px !important; overflow: hidden; }
.cr-year-header { background: #f3eade !important; }

/* salle polyvalente : pas de trait décoratif sous le titre */
.salle-titre-trait { display: none !important; }

/* conseil : le maire en grand médaillon sans cadre, séparé des conseillers par un trait en dégradé nuit */
.maire-card { position: relative; gap: 2rem !important; padding: 0 0 2rem !important; border: 0 !important; border-radius: 0 !important;
    background: none !important; box-shadow: none !important; }
.maire-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, #0f1c33, #6b3d8c, transparent); }
.maire-avatar img, .maire-avatar svg { width: 160px !important; height: 160px !important; border-radius: 50%; border: 6px solid transparent !important; box-shadow: 0 12px 26px rgba(20,36,58,.2) !important;
    background: linear-gradient(#fffaf4, #fffaf4) padding-box, linear-gradient(135deg, #0f1c33, #6b3d8c, #c9a227) border-box; }
.maire-info h2 { color: #14243a !important; font-size: 2.1rem; margin: 0 0 .3rem; }
.maire-titre { color: #3d2350 !important; font-size: 1.3rem !important; }
.maire-detail { color: #4a5568 !important; font-size: 1.1875rem !important; }
.maire-delegation { background: #14243a !important; color: #fff !important; }

.conseillers-titre { text-align: center; font-size: 1.6rem !important; margin: 1rem auto 1.4rem !important; width: fit-content; color: #3d2350 !important; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .conseillers-titre { background: linear-gradient(90deg, #0f1c33, #3d2350 55%, #6b3d8c); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
}
.conseillers-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 2rem 1.4rem !important; }
.conseiller-card { flex-direction: column !important; align-items: center !important; text-align: center; gap: .7rem !important; padding: 0 !important;
    background: transparent !important; border: 0 !important; box-shadow: none !important; }
.conseiller-card img { width: 124px !important; height: 124px !important; border: 4px solid transparent !important; box-shadow: 0 10px 22px rgba(20,36,58,.18) !important;
    background: linear-gradient(#fffaf4, #fffaf4) padding-box, linear-gradient(135deg, #0f1c33, #3d2350) border-box; transition: transform .3s ease; }
.conseiller-card:hover img { transform: scale(1.04); }
.conseiller-card-info { display: flex; flex-direction: column; align-items: center; }
.conseiller-card h3 { font-size: 1.2rem !important; color: #14243a !important; margin-bottom: .2rem !important; }
.conseiller-card h3::after { content: ""; display: block; width: 50px; height: 4px; border-radius: 4px; margin: .5rem auto .3rem; background: linear-gradient(90deg, #0f1c33, #3d2350); }
.conseiller-card-info > p:not(.conseiller-lieu):not(.conseiller-delegation) { color: #14243a; font-weight: 500; }
/* les adjoints se repèrent au violet clair, sur la photo, le trait et la pastille */
.conseiller-card:has(.conseiller-adjoint) img { background: linear-gradient(#fffaf4, #fffaf4) padding-box, linear-gradient(135deg, #3d2350, #9b5cc4) border-box; }
.conseiller-card:has(.conseiller-adjoint) h3::after { background: linear-gradient(90deg, #3d2350, #9b5cc4); }
.conseiller-adjoint { background: linear-gradient(90deg, #3d2350, #7a4aa0) !important; color: #fff !important; border: 0 !important; padding: .25rem 1rem !important; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.conseiller-delegation { background: #fff !important; color: #14243a !important; border: 1px solid #e3d6c7 !important; padding: .2rem .9rem !important; }
.conseil-note { text-align: center; margin-top: 2rem; }

@media (max-width: 1200px) { .conseillers-grid { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 900px) { .conseillers-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 600px) {
    .conseillers-grid { grid-template-columns: 1fr !important; }
    .maire-card { flex-direction: column; text-align: center; gap: 1.2rem !important; }
    .maire-info h2 { font-size: 1.8rem; }
    .maire-delegation { margin-left: auto; margin-right: auto; }
}
/* les couleurs tournent autour des photos des élus (le bouton « Arrêter » les fige) */
@property --tour-cercle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes tourCercle { to { --tour-cercle: 360deg; } }
.maire-avatar img, .conseiller-card img, .conseiller-card:has(.conseiller-adjoint) img {
    background: linear-gradient(#fffaf4, #fffaf4) padding-box,
        conic-gradient(from var(--tour-cercle), #14243a, #3d2350, #6b3d8c, #c9a227, #6b3d8c, #3d2350, #14243a) border-box;
    animation: tourCercle 8s linear infinite; }
.conseiller-card img { border-width: 5px !important; }
/* portraits plus hauts que larges : on garde le haut de la tête */
.maire-avatar img, .conseiller-card img { object-position: 50% 15%; }
.conseiller-card img[src$="la-portrait.webp"] { object-position: 50% 0; }
.conseiller-card img[src$="vc-portrait.webp"] { object-position: 50% 100%; }
@media (prefers-reduced-motion: reduce) { .conseiller-card img { transition: none; } .conseiller-card:hover img { transform: none; }
    .maire-avatar img, .conseiller-card img { animation: none; } }

/* conseil, délégations : tableaux bleu nuit et or, assortis au bandeau du maire (les styles en ligne de la page sont écrasés ici) */
section[aria-labelledby="titre-delegations"] { background: linear-gradient(180deg, #e9edf5, #fffaf4) !important; }
section[aria-labelledby="titre-delegations"] h3 { display: flex !important; align-items: center; gap: .6rem; font-size: 1.35rem; color: #14243a !important; }
section[aria-labelledby="titre-delegations"] h3::before { content: ""; width: 8px; height: 1.4em; border-radius: 4px; background: linear-gradient(#c9a227, #e8c766); }
section[aria-labelledby="titre-delegations"] table { border-radius: 16px; overflow: hidden; border-collapse: separate !important; border-spacing: 0; box-shadow: 0 10px 26px rgba(20,36,58,.1); }
section[aria-labelledby="titre-delegations"] thead { background: #14243a !important; box-shadow: inset 0 -4px 0 #c9a227; }
section[aria-labelledby="titre-delegations"] th { padding: .95rem 1.2rem !important; color: #e8c766 !important; text-transform: uppercase; letter-spacing: .03em; font-size: 1.05rem; }
section[aria-labelledby="titre-delegations"] td { padding: .85rem 1.2rem !important; border-bottom: 1px solid #eee6f3; }
section[aria-labelledby="titre-delegations"] td:first-child { box-shadow: inset 4px 0 0 #c9a227; }
section[aria-labelledby="titre-delegations"] tbody tr { background: #fff !important; }
section[aria-labelledby="titre-delegations"] tbody tr:nth-child(even) { background: #f4f1ea !important; }
section[aria-labelledby="titre-delegations"] tbody tr:hover { background: #fbf3d9 !important; }
section[aria-labelledby="titre-delegations"] tbody tr:last-child td { border-bottom: 0; }
section[aria-labelledby="titre-delegations"] td strong { color: #14243a; }
/* gris plus foncé : le gris d'origine passait sous 4,5:1 sur les nouveaux fonds crème et bleuté */
section[aria-labelledby="titre-delegations"] td span, section[aria-labelledby="titre-delegations"] td[style*="color"], section[aria-labelledby="titre-delegations"] > .container > p { color: #4a5568 !important; }

/* polices du site (servies par le site lui-même) : Public Sans pour le texte et le menu, Fraunces pour les titres */
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-v21-latin_latin-ext-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-v21-latin_latin-ext-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-v21-latin_latin-ext-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-v21-latin_latin-ext-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-v38-latin_latin-ext-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-v38-latin_latin-ext-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
:root { --font-family: "Public Sans", Tahoma, Arial, sans-serif; }
body, .nav-link, .logo-subtitle, button, input, select, textarea { font-family: "Public Sans", Tahoma, Arial, sans-serif !important; }
.nav-link { font-weight: 600 !important; }
h1, h2, h3, .logo-title { font-family: "Fraunces", Georgia, serif !important; font-weight: 600 !important; letter-spacing: 0; }
/* couleurs fixes sarcelle (plus de degrade qui bouge), choisies par la mairie */
.live-clock-bar { animation: none; background: linear-gradient(100deg, #0d3233, #0f3d3e); }
.site-header { animation: none; background: linear-gradient(100deg, rgba(15,61,62,.97), rgba(35,122,116,.97)); border-bottom: 0; }
.site-footer, .brown-gradient, .accueil-11e .statut { animation: none; background: linear-gradient(135deg, #0f3d3e, #237a74); }

/* le bas du menu ondule : la couleur du menu se termine en petites vagues qui glissent doucement */
.site-header::after {
    content: ""; position: absolute; left: 0; right: -32px; bottom: -8px; height: 9px; pointer-events: none; will-change: transform;
    background: linear-gradient(100deg, rgba(15,61,62,.97), rgba(35,122,116,.97));
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='9' viewBox='0 0 32 9'%3E%3Cpath d='M0 0 H32 V4.5 Q24 9 16 4.5 Q8 0 0 4.5 Z' fill='black'/%3E%3C/svg%3E") repeat-x;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='9' viewBox='0 0 32 9'%3E%3Cpath d='M0 0 H32 V4.5 Q24 9 16 4.5 Q8 0 0 4.5 Z' fill='black'/%3E%3C/svg%3E") repeat-x;
    -webkit-mask-size: 32px 9px; mask-size: 32px 9px;
    animation: vagueMenu 2.5s linear infinite;
}
@keyframes vagueMenu { from { transform: translateX(-32px); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .site-header::after { animation: none; } }

/* ===================== PAGE DES DÉMARCHES : un rond dessiné par démarche, sans cartes ===================== */
/* Tout est limité à body.page-demarches : les cartes .asso-card de l'agenda et des associations ne bougent pas. */
body.page-demarches .dm-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
body.page-demarches .dm-rubrique { text-align: center; }
body.page-demarches .dm-rubrique:nth-of-type(3n+1) { --dm-c: #8B6F5E; }
body.page-demarches .dm-rubrique:nth-of-type(3n+2) { --dm-c: #2f7d5b; }
body.page-demarches .dm-rubrique:nth-of-type(3n) { --dm-c: #8a3346; }
body.page-demarches .dm-rubrique h2 { display: flex; flex-direction: column; align-items: center; gap: .9rem; margin: 3.4rem 0 1.8rem; font-size: 1.9rem; line-height: 1.2; color: #222222; text-wrap: balance; }
body.page-demarches .dm-rubrique:first-of-type h2 { margin-top: 1.2rem; }
body.page-demarches .dm-rubrique h2 .dm-rond { width: 5rem; height: 5rem; margin: 0; }
body.page-demarches .dm-liste { list-style: none; margin: 0 auto; padding: 0; max-width: 38rem; }
body.page-demarches .dm-item { display: flex; flex-direction: column; align-items: center; --dm-inclinaison: -5deg; }
body.page-demarches .dm-item:nth-child(even) { --dm-inclinaison: 5deg; }
body.page-demarches .dm-item:nth-child(3n+1) { --dm-c: #8B6F5E; }
body.page-demarches .dm-item:nth-child(3n+2) { --dm-c: #2f7d5b; }
body.page-demarches .dm-item:nth-child(3n) { --dm-c: #8a3346; }
body.page-demarches .dm-rond { display: block; flex: none; width: 7.8rem; height: 7.8rem; color: #f3eade; }
body.page-demarches .dm-item .dm-rond { margin-bottom: 1rem; transform: rotate(var(--dm-inclinaison)); }
body.page-demarches .dm-fond { fill: #f3eade; }
body.page-demarches .dm-disque { fill: var(--dm-c); }
body.page-demarches .dm-item h3 { margin: 0 0 .4rem; font-size: 2.05rem; line-height: 1.15; color: #14243a; text-wrap: balance; }
body.page-demarches .dm-item p { margin: 0; max-width: 31rem; font-size: 1.1875rem; line-height: 1.55; color: #555555; }
body.page-demarches .dm-item p + p { margin-top: .6rem; }
body.page-demarches .dm-item .dm-alerte { color: #c0392b; font-weight: 600; }
body.page-demarches .dm-alerte-rond { display: inline-grid; place-items: center; width: 1.75em; height: 1.75em; margin-right: .25rem; border-radius: 50%; background: #c0392b; color: #f3eade; vertical-align: middle; font-weight: 400; line-height: 1; }
body.page-demarches .dm-item .service-link { color: #222222; text-decoration-thickness: 1.5px; text-underline-offset: .22em; }
body.page-demarches .dm-item .service-link:hover { text-decoration-thickness: 3px; }
body.page-demarches .dm-fin { white-space: nowrap; }
body.page-demarches .dm-item { padding-bottom: 3.5rem; }
body.page-demarches .dm-item:last-child { padding-bottom: 0; }
/* 2 puis 3 démarches par ligne ; une ligne incomplète reste centrée */
@media (min-width: 760px) {
    body.page-demarches .dm-liste { max-width: 76rem; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; column-gap: 2.5rem; }
    body.page-demarches .dm-liste .dm-item { flex: 0 1 calc((100% - 2.5rem) / 2); }
}
@media (min-width: 1100px) {
    body.page-demarches .dm-liste .dm-item { flex-basis: calc((100% - 5rem) / 3); }
    body.page-demarches .dm-item h3 { font-size: 1.8rem; }
}
@media (max-width: 640px) {
    body.page-demarches .dm-rubrique h2 { margin: 2.6rem 0 1.4rem; font-size: 1.65rem; }
    body.page-demarches .dm-rubrique:first-of-type h2 { margin-top: 1rem; }
    body.page-demarches .dm-rubrique h2 .dm-rond { width: 4.2rem; height: 4.2rem; }
    body.page-demarches .dm-item .dm-rond { width: 7rem; height: 7rem; }
    body.page-demarches .dm-item h3 { font-size: 1.75rem; }
    body.page-demarches .dm-item .service-link { display: inline-block; padding: .5rem 0; }
}
/* le rond se redresse et grossit un peu au survol : seulement avec une souris et si le mouvement est permis */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    body.page-demarches .dm-item .dm-rond { transition: transform .3s ease; }
    body.page-demarches .dm-item:hover .dm-rond { transform: rotate(0deg) scale(1.07); }
}
/* bouton « Arrêter les animations » (RGAA 13.8) : plus aucun mouvement au survol */
.anim-figee body.page-demarches .dm-item .dm-rond { transition: none; }
.anim-figee body.page-demarches .dm-item:hover .dm-rond { transform: rotate(var(--dm-inclinaison)); }

/* bouton pour remonter, toujours visible en bas à droite de l'écran */
.footer-bottom .haut-page { margin: 0; opacity: 1; }
.haut-page a { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 900; display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: .6rem 1.3rem; border: 2px solid #ffffff; border-radius: 999px; background: #0f3d3e; color: #ffffff; font-size: 1.05rem; font-weight: 700; text-decoration: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.haut-page a span { font-size: 1.3em; line-height: 1; }
.haut-page a:hover { background: #237a74; }
.haut-page a:focus-visible { outline: 3px solid #f2c14e; outline-offset: 3px; }
/* sur téléphone : un simple rond avec la flèche, pour ne pas couvrir le texte (le libellé reste lu par les lecteurs d'écran) */
@media (max-width: 640px) {
    .haut-page a { right: .9rem; bottom: .9rem; width: 48px; height: 48px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
    .haut-page a span { font-size: 1.5rem; }
}
/* caché tant qu'on est en haut de la page (sans JavaScript, il reste toujours visible) */
.haut-pret:not(.haut-visible) .haut-page a { opacity: 0; visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
    .haut-page a { transition: opacity .25s ease, visibility .25s; }
}
@media print { .haut-page { display: none; } }

/* page démarches : titre et phrase d'accueil plus grands, la phrase tient sur une ligne sur ordinateur */
body.page-demarches .page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); }
body.page-demarches .page-hero p.page-hero-subtitle { font-size: clamp(1.3rem, 2.2vw, 1.55rem); }
body.page-demarches .section-intro { max-width: none; text-align: center; font-size: clamp(1.25rem, 1.9vw, 1.5rem); color: #333333; text-wrap: balance; }

/* page commerces : chaque fiche en forme de galet, rangées serrées en colonnes, logo dans un hexagone, rubrique écrite sur le galet */
body.page-commerces .cga-grid { display:block !important; columns:340px; column-gap:2rem; }
body.page-commerces .cga-grid > .cga-card { break-inside:avoid; margin:0 0 2.2rem; width:100%; display:inline-flex !important; }
body.page-commerces .cga-cat-title { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
body.page-commerces article.cga-card:nth-of-type(7n+1) { --g1:#fff3e6; --g2:#f6cfa6; --ga:#a4471f; }
body.page-commerces article.cga-card:nth-of-type(7n+2) { --g1:#eefaf4; --g2:#bfe6d3; --ga:#1d6b4f; }
body.page-commerces article.cga-card:nth-of-type(7n+3) { --g1:#f4f1fb; --g2:#d6cdf0; --ga:#5b3f9a; }
body.page-commerces article.cga-card:nth-of-type(7n+4) { --g1:#fdeef2; --g2:#f3c2cf; --ga:#a3214a; }
body.page-commerces article.cga-card:nth-of-type(7n+5) { --g1:#eef6fc; --g2:#c4dff2; --ga:#1f5f8b; }
body.page-commerces article.cga-card:nth-of-type(7n+6) { --g1:#fbf5e1; --g2:#ecd9a0; --ga:#7a5a12; }
body.page-commerces article.cga-card:nth-of-type(7n) { --g1:#f3f9e8; --g2:#d3e8b0; --ga:#4d6b16; }
body.page-commerces .cga-card { border:0 !important; box-shadow:none !important; padding:2.8rem 2.6rem 3.4rem; display:flex; flex-direction:column; align-items:center; text-align:center; overflow:visible; height:auto; align-self:center; background:radial-gradient(circle at 30% 18%, var(--g1), var(--g2)) !important; border-radius:46% 54% 42% 58% / 20% 22% 19% 23%; }
body.page-commerces .cga-card:nth-child(3n+1) { border-radius:54% 46% 58% 42% / 22% 19% 23% 20%; }
body.page-commerces .cga-card:nth-child(3n) { border-radius:50% 50% 44% 56% / 19% 23% 20% 22%; }
body.page-commerces .cga-card::before { display:none; }
body.page-commerces .cga-card:hover { transform:none; }
body.page-commerces .cga-top { flex-direction:column; align-items:center; width:100%; gap:.7rem; }
body.page-commerces .cga-logo, body.page-commerces .cga-pastille { width:128px; height:112px; background:#fff; border:0; border-radius:0; clip-path:polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); filter:drop-shadow(0 5px 8px rgba(0,0,0,.15)); }
body.page-commerces .cga-logo { object-fit:contain; padding:14px 20px; }
body.page-commerces .cga-pastille { display:grid; place-items:center; }
body.page-commerces .cga-pastille svg { width:46px; height:46px; stroke:var(--ga); }
body.page-commerces .cga-badge { display:inline-block !important; background:#fff !important; color:var(--ga) !important; border:0; border-radius:999px; padding:.25rem .9rem; font-size:.95rem; font-weight:700; }
body.page-commerces .cga-card h3 { color:#14243a; font-size:1.75rem; margin:.7rem 0 .2rem; }
body.page-commerces .cga-act { color:var(--ga) !important; font-weight:800; font-size:1.1rem; }
body.page-commerces .cga-desc { max-width:24rem; color:#333 !important; }
body.page-commerces .cga-meta { justify-content:center; font-weight:700; font-size:1.15rem; border:0 !important; }
body.page-commerces .cga-actions { flex-direction:column; align-items:center; gap:.55rem; margin-top:0; padding-top:.8rem; max-width:100%; }
body.page-commerces .cga-btn { background:var(--ga) !important; color:#fff !important; border-radius:999px; min-width:11rem; max-width:100%; justify-content:center; white-space:normal; text-align:center; }
body.page-commerces .cga-btn-ghost { background:#fff; border-radius:999px; min-width:11rem; max-width:100%; justify-content:center; }
body.page-commerces .cga-chip { border-radius:999px; }
body.page-commerces .cga-chip.is-active { background:#14243a; border-color:#14243a; color:#fff; box-shadow:none; }
body.page-commerces .cga-grid { columns:300px; }
body.page-commerces .cga-card, body.page-commerces .cga-card:nth-child(3n+1), body.page-commerces .cga-card:nth-child(3n) { padding:2.3rem 2.1rem 2.8rem; }
body.page-commerces .cga-logo, body.page-commerces .cga-pastille { width:108px; height:94px; }
body.page-commerces .cga-logo { padding:12px 16px; }
body.page-commerces .cga-pastille svg { width:40px; height:40px; }
body.page-commerces .cga-badge { font-size:.88rem; }
body.page-commerces .cga-card h3 { font-size:1.5rem; }
body.page-commerces .cga-act { font-size:1rem; }
body.page-commerces .cga-desc { font-size:1rem; line-height:1.5; }
body.page-commerces .cga-meta { font-size:1.05rem; }
body.page-commerces .cga-btn, body.page-commerces .cga-btn-ghost { min-width:9.5rem; font-size:1rem; padding:.5rem 1.1rem; }
body.page-commerces .cga-filterbar:has(.cga-chip.is-active:not(:first-child)) + .cga-grid { display:flex !important; flex-wrap:wrap; justify-content:center; align-items:center; gap:2rem; columns:auto; }
body.page-commerces .cga-filterbar:has(.cga-chip.is-active:not(:first-child)) + .cga-grid > .cga-card { flex:0 1 330px; margin:0; }
@media (max-width: 640px) {
    body.page-commerces .cga-grid > .cga-card { margin-bottom:1.4rem; }
    body.page-commerces .cga-card, body.page-commerces .cga-card:nth-child(3n+1), body.page-commerces .cga-card:nth-child(3n) { padding:1.6rem 1.3rem 1.8rem; border-radius:38% 42% 40% 44% / 9% 10% 9% 10%; }
    body.page-commerces .cga-top { gap:.5rem; }
    body.page-commerces .cga-logo, body.page-commerces .cga-pastille { width:88px; height:76px; }
    body.page-commerces .cga-card h3 { font-size:1.4rem; margin:.5rem 0 .1rem; }
    body.page-commerces .cga-actions { flex-direction:row; flex-wrap:wrap; justify-content:center; gap:.5rem; padding-top:.6rem; }
    body.page-commerces .cga-btn, body.page-commerces .cga-btn-ghost { min-width:0; padding:.5rem 1rem; }
}

/* agenda : chaque cadre prend la hauteur de son texte rangés serrés en colonnes */
body.page-agenda .asso-grid { display:block !important; columns:340px; column-gap:1.6rem; }
body.page-agenda .asso-grid > .asso-card { break-inside:avoid; margin:0 0 1.6rem; height:auto; width:100%; display:inline-block; }

/* agenda : texte des cadres centré ; citrouille en filigrane derrière le texte de la fête d'Halloween */
#events-container .asso-card { text-align:center; }
#events-container .event-desc { position:relative; isolation:isolate; }
#events-container .event-citrouille { position:absolute; height:auto; opacity:.2; z-index:-1; pointer-events:none; }
#events-container .citrouille-1 { width:110px; left:2%;  top:4%;  transform:rotate(-18deg); }
#events-container .citrouille-2 { width:80px;  right:4%; top:28%; transform:rotate(22deg); }
#events-container .citrouille-3 { width:130px; left:8%;  top:58%; transform:rotate(12deg); }
#events-container .citrouille-4 { width:95px;  right:2%; bottom:2%; transform:rotate(-25deg); }

/* page vie pratique : chaque service en forme de galet, comme la page commerces */
body.page-viepratique .services-grid { display:flex !important; flex-wrap:wrap; justify-content:center; align-items:center; gap:2rem 2.2rem; margin-top:1.6rem; }
body.page-viepratique .services-grid > .service-card { flex:0 1 calc(50% - 1.2rem); max-width:430px; display:flex !important; flex-direction:column; align-items:center; text-align:center; margin:0; height:auto; border:0 !important; box-shadow:none !important; padding:2.3rem 2.1rem 2.8rem; background:radial-gradient(circle at 30% 18%, var(--g1), var(--g2)) !important; border-radius:46% 54% 42% 58% / 20% 22% 19% 23%; }
body.page-viepratique .services-grid > .service-card:nth-child(3n+1) { border-radius:54% 46% 58% 42% / 22% 19% 23% 20%; }
body.page-viepratique .services-grid > .service-card:nth-child(3n) { border-radius:50% 50% 44% 56% / 19% 23% 20% 22%; }
body.page-viepratique .services-grid > .service-card:hover { transform:none; }
body.page-viepratique .services-grid > .service-card:nth-of-type(7n+1) { --g1:#fff3e6; --g2:#f6cfa6; --ga:#a4471f; }
body.page-viepratique .services-grid > .service-card:nth-of-type(7n+2) { --g1:#eefaf4; --g2:#bfe6d3; --ga:#1d6b4f; }
body.page-viepratique .services-grid > .service-card:nth-of-type(7n+3) { --g1:#f4f1fb; --g2:#d6cdf0; --ga:#5b3f9a; }
body.page-viepratique .services-grid > .service-card:nth-of-type(7n+4) { --g1:#fdeef2; --g2:#f3c2cf; --ga:#a3214a; }
body.page-viepratique .services-grid > .service-card:nth-of-type(7n+5) { --g1:#eef6fc; --g2:#c4dff2; --ga:#1f5f8b; }
body.page-viepratique .services-grid > .service-card:nth-of-type(7n+6) { --g1:#fbf5e1; --g2:#ecd9a0; --ga:#7a5a12; }
body.page-viepratique .services-grid > .service-card:nth-of-type(7n) { --g1:#f3f9e8; --g2:#d3e8b0; --ga:#4d6b16; }
/* rubrique de 3 services : les 3 sur la même ligne */
body.page-viepratique .services-grid:has(> .service-card:nth-child(3):last-child) > .service-card { flex-basis:calc(33.3% - 1.5rem); }
@media (max-width: 640px) { body.page-viepratique .services-grid > .service-card, body.page-viepratique .services-grid:has(> .service-card:nth-child(3):last-child) > .service-card { flex-basis:100%; max-width:100%; } }
/* urgences : galets rouges */
body.page-viepratique .vp-urgences > .service-card { --g1:#fff1f0 !important; --g2:#f6c4c0 !important; --ga:#b42318 !important; }
body.page-viepratique .service-card .service-icon { width:96px; height:84px; display:grid; place-items:center; background:#fff; clip-path:polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); filter:drop-shadow(0 3px 6px rgba(20,36,58,.12)); margin:0 auto .6rem; }
body.page-viepratique .service-card .service-icon svg { width:38px; height:38px; stroke:var(--ga) !important; }
body.page-viepratique .service-card h3 { color:#14243a !important; font-size:1.45rem; margin:.4rem 0 .5rem; }
body.page-viepratique .service-card p, body.page-viepratique .service-card li { color:#2b2b2b !important; font-size:1.02rem; line-height:1.55; }
body.page-viepratique .service-card ul { list-style:none; padding:0 !important; }
body.page-viepratique .service-card a { color:var(--ga) !important; font-weight:700; }
body.page-viepratique .service-card a[href^="tel:1"] { font-size:1.6rem; }
/* titres de rubrique : tous pareils, centrés, en sarcelle */
body.page-viepratique .section .container > h2:not(.sr-only) { border:0 !important; padding:0 !important; text-align:center; color:#0b5a6d !important; font-size:1.9rem; margin-top:3.4rem !important; }
body.page-viepratique .section .container > h2:not(.sr-only)::after { content:""; display:block; width:64px; height:4px; border-radius:4px; background:#e8a33d; margin:.6rem auto 0; }
/* permanence des élus et comptes rendus : bandeaux arrondis centrés */
body.page-viepratique .permanence-elus-block, body.page-viepratique .comptes-rendus { border:0 !important; border-radius:28px !important; background:#e6f1ea !important; text-align:center; padding:1.4rem 1.6rem !important; max-width:760px; margin-left:auto !important; margin-right:auto !important; }
body.page-viepratique .comptes-rendus { background:#f4f1fb !important; }
/* bloc commerces du bas : centré comme le reste */
body.page-viepratique section[aria-labelledby="titre-commerces"] .container { text-align:center; }
body.page-viepratique section[aria-labelledby="titre-commerces"] p { margin-left:auto; margin-right:auto; }
body.page-viepratique #titre-commerces { color:#0b5a6d !important; }
@media (max-width: 640px) {
  body.page-viepratique .services-grid > .service-card, body.page-viepratique .services-grid > .service-card:nth-child(3n+1), body.page-viepratique .services-grid > .service-card:nth-child(3n) { padding:1.6rem 1.3rem 1.8rem; border-radius:38% 42% 40% 44% / 9% 10% 9% 10%; margin-bottom:1.4rem; }
}
