/* Poitou Clic – informatique à domicile, Poitiers et route de Niort
   Thème « polychromies » : pierre calcaire, encre, et les couleurs des façades romanes illuminées */
:root {
  --encre: #23284A;
  --encre-2: #3A3F63;
  --texte: #2B2A33;
  --doux: #5D5B6B;
  --pierre: #F7F2E8;
  --pierre-2: #EDE4D2;
  --pierre-3: #DCCFB6;
  --blanc: #FFFFFF;
  --lapis: #2B4C9B;
  --safran: #E3A21F;
  --emeraude: #2F8A62;
  --cinabre: #C23B2C;
  --violet: #6A3E8E;
  --ocre: #A8652B;
  --turquoise: #1F8C9A;
  --rayon: 18px;
  --ombre: 0 10px 30px -12px rgba(35, 40, 74, .28);
  --titres: "Playfair Display", Georgia, "Times New Roman", serif;
  --corps: "Jost", "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--corps); font-size: 1.07rem; line-height: 1.65; color: var(--texte); background: var(--pierre); }
img, svg { max-width: 100%; }
a { color: var(--lapis); text-underline-offset: 3px; }
a:hover { color: var(--cinabre); }
h1, h2, h3, b, .tr-num { font-variant-numeric: lining-nums; }
h1, h2, h3 { font-family: var(--titres); color: var(--encre); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.05rem, 4.6vw, 3.35rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.22rem; font-weight: 700; }
h1 em, h2 em { font-style: italic; color: var(--cinabre); }
p { margin: 0 0 1em; }
.cadre { width: min(1180px, 100% - 2.6rem); margin-inline: auto; }
.etroit { width: min(860px, 100% - 2.6rem); }
.centre { text-align: center; }
.pic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; flex: none; }
.evitement { position: absolute; left: -9999px; }
.evitement:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--blanc); padding: .6rem 1rem; border-radius: 10px; }
.surtitre { font-family: var(--corps); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; color: var(--cinabre); margin-bottom: .7rem; display: flex; align-items: center; gap: .45rem; }
.tete-bloc .surtitre, .centre .surtitre { justify-content: center; }
.surtitre.clair { color: var(--safran); justify-content: flex-start; }
.chapo { font-size: 1.2rem; color: var(--doux); max-width: 62ch; }
.fil { font-size: .9rem; color: var(--doux); margin-bottom: .9rem; }
.fil a { color: var(--doux); }

/* --- En-tête ------------------------------------------------------------- */
.lisere { background: var(--encre); color: #E9E6F3; font-size: .84rem; }
.li-ligne { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; }
.li-zone { opacity: .8; }
.entete { position: sticky; top: 0; z-index: 30; background: var(--blanc); transition: box-shadow .25s; }
.entete.ombre { box-shadow: 0 6px 22px -10px rgba(35, 40, 74, .35); }
.entete-ligne { display: flex; align-items: center; gap: 1.4rem; padding: .7rem 0; }
.marque { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--encre); }
.marque img { height: 48px; width: auto; }
.marque-nom { display: flex; flex-direction: column; line-height: 1.05; border-left: 2px solid var(--pierre-3); padding-left: .8rem; }
.marque-nom b { font-family: var(--titres); font-size: 1.45rem; font-weight: 900; }
.marque-nom span { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--doux); }
.menu { display: flex; gap: .2rem; margin-left: auto; flex-wrap: wrap; }
.menu a { text-decoration: none; color: var(--encre); font-weight: 500; padding: .45rem .7rem; border-radius: 999px; font-size: .97rem; }
.menu a:hover { background: var(--pierre); color: var(--cinabre); }
.menu a[aria-current] { background: var(--encre); color: var(--blanc); }
.entete-tels { display: flex; flex-direction: column; gap: .3rem; }
.entete-tels a { display: flex; align-items: center; gap: .4rem; text-decoration: none; font-weight: 700; font-size: .95rem; padding: .3rem .8rem; border-radius: 12px; white-space: nowrap; }
.tel-fort { background: var(--cinabre); color: var(--blanc); }
.tel-fort:hover { background: var(--encre); color: var(--blanc); }
.tel-doux { color: var(--encre); border: 1.5px solid var(--pierre-3); }
.polychromie { display: flex; height: 6px; }
.polychromie i { flex: 1; animation: lueur 7s ease-in-out infinite; }
.polychromie i:nth-child(1) { background: var(--lapis); }
.polychromie i:nth-child(2) { background: var(--safran); animation-delay: -1s; }
.polychromie i:nth-child(3) { background: var(--emeraude); animation-delay: -2s; }
.polychromie i:nth-child(4) { background: var(--cinabre); animation-delay: -3s; }
.polychromie i:nth-child(5) { background: var(--violet); animation-delay: -4s; }
.polychromie i:nth-child(6) { background: var(--ocre); animation-delay: -5s; }
.polychromie i:nth-child(7) { background: var(--turquoise); animation-delay: -6s; }
@keyframes lueur { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* --- Boutons d’appel -------------------------------------------------------- */
.appel { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.4rem 0; }
.appel a { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; padding: .75rem 1.3rem; border-radius: 16px; font-weight: 700; font-size: 1.2rem; transition: transform .15s, background .2s; }
.appel a:hover { transform: translateY(-2px); }
.appel a span { display: flex; flex-direction: column; line-height: 1.1; }
.appel small { font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; opacity: .85; }
.appel .pic { width: 1.5em; height: 1.5em; }
.bouton-fort { background: var(--cinabre); color: var(--blanc); box-shadow: 0 8px 20px -10px var(--cinabre); }
.bouton-fort:hover { background: #A52F22; color: var(--blanc); }
.bouton-doux { background: var(--blanc); color: var(--encre); border: 2px solid var(--encre); }
.bouton-doux:hover { background: var(--encre); color: var(--blanc); }
.centre .appel, .centree .appel { justify-content: center; }

/* --- Arcades (séparateur) ---------------------------------------------- */
.arcades { display: flex; height: 34px; overflow: hidden; background: var(--pierre-2); }
.arcades span { flex: 1; border-radius: 40px 40px 0 0; margin: 8px 4px 0; animation: lueur 9s ease-in-out infinite; }
.arcades span:nth-child(7n+1) { background: var(--lapis); }
.arcades span:nth-child(7n+2) { background: var(--safran); animation-delay: -1.3s; }
.arcades span:nth-child(7n+3) { background: var(--emeraude); animation-delay: -2.6s; }
.arcades span:nth-child(7n+4) { background: var(--cinabre); animation-delay: -3.9s; }
.arcades span:nth-child(7n+5) { background: var(--violet); animation-delay: -5.2s; }
.arcades span:nth-child(7n+6) { background: var(--ocre); animation-delay: -6.5s; }
.arcades span:nth-child(7n) { background: var(--turquoise); animation-delay: -7.8s; }

/* --- Accueil : façade ---------------------------------------------------- */
.facade { background: radial-gradient(ellipse at 85% 10%, #FFFFFF 0, var(--pierre) 55%); padding: 3.2rem 0 2.6rem; }
.facade-grille { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.engagements { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; color: var(--encre); font-weight: 500; }
.engagements .pic { color: var(--emeraude); stroke-width: 2.6; }
.facade-dessin { position: relative; }
.portail { display: block; width: 100%; height: auto; }
.po-mur { fill: #EFE3CC; stroke: var(--encre); stroke-width: 3; stroke-linejoin: round; }
.po-pignon { fill: none; stroke: var(--pierre-3); stroke-width: 6; }
.po-sol { stroke: var(--encre); stroke-width: 3; }
.arc { stroke: var(--encre); stroke-width: 2.5; animation: illumine 10s ease-in-out infinite; }
.a1 { fill: var(--lapis); } .a2 { fill: var(--safran); animation-delay: -1.4s; }
.a3 { fill: var(--emeraude); animation-delay: -2.8s; } .a4 { fill: var(--violet); animation-delay: -4.2s; }
.a5 { fill: var(--turquoise); animation-delay: -5.6s; } .a6 { fill: var(--cinabre); animation-delay: -7s; }
.a7 { fill: var(--ocre); animation-delay: -8.4s; }
@keyframes illumine { 0%, 100% { opacity: 1; } 40% { opacity: .35; } 60% { opacity: .9; } }
.po-portail { fill: var(--encre); stroke: var(--encre); stroke-width: 3; }
.po-ecran { fill: #2F3A7A; stroke: #FFFFFF; stroke-width: 2.5; }
.po-courbe { fill: none; stroke: var(--safran); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; animation: courbe 4s ease-in-out infinite; }
@keyframes courbe { 0% { stroke-dashoffset: 60; } 50%, 100% { stroke-dashoffset: 0; } }
.po-pied { fill: none; stroke: #FFFFFF; stroke-width: 2.5; stroke-linecap: round; }
.pastille-prix { position: absolute; right: -6px; bottom: 6px; width: 172px; height: 172px; border-radius: 50%; background: var(--cinabre); color: var(--blanc); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.1; box-shadow: 0 0 0 7px var(--blanc), 0 0 0 10px var(--safran), var(--ombre); transform: rotate(-8deg); }
.pastille-prix b { font-family: var(--titres); font-size: 2.15rem; font-weight: 900; margin: .15rem 0; }
.pastille-prix span { font-size: .8rem; }
.pastille-prix small { font-size: .74rem; opacity: .85; margin-top: .25rem; }

.compteurs { background: var(--encre); color: var(--blanc); padding: 1.8rem 0; }
.compteurs-ligne { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.compteurs p { margin: 0; text-align: center; display: flex; flex-direction: column; }
.compteurs b { font-family: var(--titres); font-size: 2.6rem; font-weight: 900; color: var(--safran); line-height: 1.1; }
.compteurs span { font-size: .95rem; color: #D7D5E6; }

/* --- Blocs ------------------------------------------------------------------ */
.bloc { padding: 4rem 0; }
.calcaire { background: var(--pierre-2); background-image: linear-gradient(rgba(255, 255, 255, .35) 1px, transparent 1px); background-size: 100% 46px; }
.tete-bloc { text-align: center; max-width: 760px; margin: 0 auto 2.4rem; }
.tete-bloc p:not(.surtitre) { color: var(--doux); }

/* Tesselles : services en mosaïque */
.tesselles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.tesselles.liste { grid-template-columns: 1fr 1fr; }
.texte-long .tesselles { grid-template-columns: 1fr 1fr; margin-top: 1rem; }
.tesselle { background: var(--blanc); border-radius: var(--rayon); padding: 1.3rem 1.2rem 1.1rem; box-shadow: var(--ombre); position: relative; overflow: hidden; border-top: 6px solid var(--lapis); }
.tesselle.t1 { border-top-color: var(--safran); } .tesselle.t2 { border-top-color: var(--emeraude); } .tesselle.t3 { border-top-color: var(--cinabre); }
.tesselle h3 { font-size: 1.12rem; margin: .5rem 0 .4rem; }
.tesselle h3 a { color: var(--encre); text-decoration: none; }
.tesselle h3 a:hover { color: var(--cinabre); }
.tesselle p { font-size: .96rem; color: var(--doux); margin: 0; }
.te-ico { width: 40px; height: 40px; fill: none; stroke: var(--encre); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; background: var(--pierre); border-radius: 50% 50% 8px 8px; padding: 7px; }

/* Prix : rosace + barème */
.prix-bloc { display: grid; grid-template-columns: 340px 1fr; gap: 2.6rem; align-items: center; max-width: 960px; margin: 0 auto; }
.rosace { position: relative; width: 320px; height: 320px; margin: 0 auto; }
.rosace-fond { position: absolute; inset: 0; width: 100%; height: 100%; animation: tourne 60s linear infinite; }
.ro-petales circle { stroke: var(--blanc); stroke-width: 3; opacity: .92; }
.ro-petales circle:nth-child(1) { fill: var(--lapis); } .ro-petales circle:nth-child(2) { fill: var(--safran); }
.ro-petales circle:nth-child(3) { fill: var(--emeraude); } .ro-petales circle:nth-child(4) { fill: var(--cinabre); }
.ro-petales circle:nth-child(5) { fill: var(--violet); } .ro-petales circle:nth-child(6) { fill: var(--ocre); }
.ro-petales circle:nth-child(7) { fill: var(--turquoise); } .ro-petales circle:nth-child(8) { fill: var(--lapis); }
.ro-coeur { fill: var(--blanc); stroke: var(--encre); stroke-width: 3; }
@keyframes tourne { to { transform: rotate(360deg); } }
.rosace-texte { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.15; }
.ro-haut, .ro-bas { font-size: .9rem; color: var(--doux); }
.rosace-texte b { font-family: var(--titres); font-size: 2.9rem; font-weight: 900; color: var(--cinabre); margin: .1rem 0; }
.ro-ttc { font-size: .78rem; color: var(--doux); margin-top: .4rem; max-width: 150px; }
.bareme { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--blanc); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); }
.bareme caption { font-family: var(--titres); font-weight: 800; color: var(--encre); font-size: 1.25rem; text-align: left; padding-bottom: .7rem; }
.bareme th, .bareme td { padding: .85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--pierre-2); }
.bareme thead th { background: var(--encre); color: var(--blanc); font-weight: 600; font-size: .9rem; }
.bareme td b { font-family: var(--titres); font-size: 1.55rem; font-weight: 900; color: var(--cinabre); }
.bareme td:last-child { color: var(--doux); font-size: .92rem; }
.bareme tbody tr:last-child th, .bareme tbody tr:last-child td { border-bottom: 0; }
.note-prix { max-width: 760px; margin: 2rem auto 0; text-align: center; color: var(--doux); }
.note-prix b { color: var(--cinabre); }

/* Plan du territoire */
.plan-cadre { position: relative; background: var(--blanc); border-radius: 26px; padding: 1rem; box-shadow: var(--ombre); }
.plan { display: block; width: 100%; height: auto; }
.zone-bord circle { fill: none; stroke: var(--lapis); stroke-width: 7; }
.zone-fond circle { fill: #EEF0F7; stroke: none; }
.zone-cercles circle { fill: none; stroke: var(--lapis); stroke-width: 1.2; stroke-dasharray: 4 7; opacity: .35; }
.plan.mini .zone-fond circle { fill: #E6E9F3; }
.rayon-txt { font: 600 12px var(--corps); fill: var(--lapis); }
.route-niort { fill: none; stroke: var(--pierre-3); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.route-txt { font: italic 600 13px var(--corps); fill: var(--ocre); }
.dep-txt { font: 700 12px var(--corps); fill: var(--pierre-3); text-transform: uppercase; letter-spacing: .2em; }
.pt circle, circle.pt { stroke: var(--blanc); stroke-width: 1.6; transition: r .2s; }
.pt.s-coeur circle, circle.pt.s-coeur { fill: var(--lapis); }
.pt.s-nord circle, circle.pt.s-nord { fill: var(--safran); }
.pt.s-est circle, circle.pt.s-est { fill: var(--emeraude); }
.pt.s-sud circle, circle.pt.s-sud { fill: var(--cinabre); }
.pt.s-ouest circle, circle.pt.s-ouest { fill: var(--violet); }
.pt.s-vonne circle, circle.pt.s-vonne { fill: var(--ocre); }
.pt.s-sevre circle, circle.pt.s-sevre { fill: var(--turquoise); }
.pt.s-vouille circle, circle.pt.s-vouille { fill: #9A6CC0; }
.pt.s-clain circle, circle.pt.s-clain { fill: #E07A5F; }
.pt.s-gatine circle, circle.pt.s-gatine { fill: #7D8F2A; }
.pt.s-niort circle, circle.pt.s-niort { fill: #1E3470; }
.pt.s-niort-nord circle, circle.pt.s-niort-nord { fill: #C88A10; }
.pt.s-niort-sud circle, circle.pt.s-niort-sud { fill: #22705A; }
.pt.pole circle, circle.pt.pole { fill: var(--encre); stroke: var(--safran); stroke-width: 3; }
a.pt:hover circle, a.pt:focus circle { stroke: var(--encre); stroke-width: 3; }
.etiq { font: 500 11.5px var(--corps); fill: var(--texte); paint-order: stroke; stroke: rgba(255, 255, 255, .85); stroke-width: 3px; }
.etiq.forte { font: 800 15px var(--titres); fill: var(--encre); }
.plan.mini { border-radius: 14px; background: var(--pierre); }
.plan.mini .pt { opacity: .45; }
.plan.mini .pt.courant, .plan.mini .pt.pole { opacity: 1; }
.plan.mini .etiq { font-size: 22px; }
.plan.mini .etiq.forte { font-size: 28px; }
.plan.mini.zoom .etiq { font-size: 12px; }
.plan.mini.zoom .etiq.forte { font-size: 15px; }
.plan.mini.zoom .halo { stroke-width: 2.5; }
.plan.mini.zoom .trajet { stroke-width: 1.8; }
.trajet { stroke: var(--encre); stroke-width: 3; stroke-dasharray: 8 7; }
.halo { fill: none; stroke: var(--cinabre); stroke-width: 4; animation: halo 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes halo { 0% { opacity: 1; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.5); } }
.infobulle-plan { position: absolute; transform: translate(-50%, -130%); background: var(--encre); color: var(--blanc); font-size: .85rem; padding: .3rem .7rem; border-radius: 8px; pointer-events: none; opacity: 0; transition: opacity .15s; white-space: nowrap; }
.infobulle-plan.vu { opacity: 1; }
.legende-plan { text-align: center; color: var(--doux); font-size: .92rem; margin-top: 1rem; }
.deux-groupes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1.6rem; }
.groupe-lien { display: flex; gap: 1rem; align-items: center; text-decoration: none; color: var(--texte); background: var(--blanc); border-radius: var(--rayon); padding: 1.2rem 1.4rem; box-shadow: var(--ombre); border-left: 7px solid var(--lapis); }
.groupe-lien.g-route { border-left-color: var(--ocre); }
.groupe-lien .pic { width: 2.2em; height: 2.2em; color: var(--encre); }
.groupe-lien span { display: flex; flex-direction: column; }
.groupe-lien b { font-family: var(--titres); font-size: 1.25rem; color: var(--encre); }
.groupe-lien:hover b { color: var(--cinabre); }

/* Travées : étapes sous des arcs */
.travees { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: t; }
.travees li { background: var(--blanc); border-radius: 160px 160px var(--rayon) var(--rayon); padding: 2.6rem 1.3rem 1.4rem; text-align: center; box-shadow: var(--ombre); border: 2px solid var(--pierre-3); }
.tr-num { display: inline-flex; width: 54px; height: 54px; align-items: center; justify-content: center; border-radius: 50%; background: var(--encre); color: var(--safran); font-family: var(--titres); font-weight: 900; font-size: 1.35rem; margin-bottom: .8rem; }
.travees li:nth-child(2) .tr-num { background: var(--lapis); color: var(--blanc); }
.travees li:nth-child(3) .tr-num { background: var(--emeraude); color: var(--blanc); }
.travees li:nth-child(4) .tr-num { background: var(--cinabre); color: var(--blanc); }
.travees p { color: var(--doux); font-size: .97rem; margin: 0; }
.lien-suite { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--cinabre); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.lien-suite:hover { color: var(--encre); }

/* Questions */
.questions details { background: var(--blanc); border-radius: 14px; margin-bottom: .8rem; box-shadow: 0 4px 14px -8px rgba(35, 40, 74, .3); border-left: 5px solid var(--safran); }
.questions summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 600; color: var(--encre); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; font-family: var(--titres); font-size: 1.5rem; line-height: 1; color: var(--cinabre); }
.questions details[open] summary::after { content: "–"; }
.questions details p { padding: 0 1.2rem 1rem; margin: 0; color: var(--doux); }

/* Appel final */
.appel-final { background: var(--encre); color: #E7E5F2; padding: 3.4rem 0; position: relative; overflow: hidden; }
.appel-final::before { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: conic-gradient(var(--lapis), var(--safran), var(--emeraude), var(--cinabre), var(--violet), var(--ocre), var(--turquoise), var(--lapis)); opacity: .3; }
.af-grille { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; position: relative; }
.appel-final h2 { color: var(--blanc); }
.appel-final .bouton-doux { background: transparent; color: var(--blanc); border-color: var(--blanc); }
.appel-final .bouton-doux:hover { background: var(--blanc); color: var(--encre); }

/* --- Pages intérieures ---------------------------------------------------- */
.ouverture-page { padding: 3.4rem 0 2.6rem; background: radial-gradient(ellipse at 10% 0, #FFFFFF 0, var(--pierre) 60%); }
.ouverture-ville { padding: 2.8rem 0 2.4rem; background: radial-gradient(ellipse at 90% 0, #FFFFFF 0, var(--pierre) 60%); }
.ouverture-ville.centree { text-align: center; }
.ouverture-ville.centree .chapo { margin-inline: auto; }
.ov-grille { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.6rem; align-items: center; }
.ov-grille.inverse { grid-template-columns: .55fr 1.45fr; }
.cartouche { display: inline-flex; align-items: center; gap: .5rem; background: var(--blanc); border: 2px solid var(--pierre-3); border-radius: 999px; padding: .35rem 1rem; font-weight: 600; color: var(--encre); font-size: .95rem; }
.centree.s-coeur .cartouche { border-color: var(--lapis); } .centree.s-nord .cartouche { border-color: var(--safran); }
.centree.s-est .cartouche { border-color: var(--emeraude); } .centree.s-sud .cartouche { border-color: var(--cinabre); }
.centree.s-ouest .cartouche { border-color: var(--violet); } .centree.s-vonne .cartouche { border-color: var(--ocre); }
.centree.s-sevre .cartouche { border-color: var(--turquoise); }
.centree.s-vouille .cartouche { border-color: #9A6CC0; } .centree.s-clain .cartouche { border-color: #E07A5F; } .centree.s-gatine .cartouche { border-color: #7D8F2A; }
.centree.s-niort .cartouche { border-color: #1E3470; } .centree.s-niort-nord .cartouche { border-color: #C88A10; } .centree.s-niort-sud .cartouche { border-color: #22705A; }
.fiche-ville { background: var(--blanc); border-radius: 22px; padding: 1rem; box-shadow: var(--ombre); }
.fiche-ville.compacte { align-self: start; }
.fv-donnees { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: .9rem 0 .6rem; }
.fv-donnees div { background: var(--pierre); border-radius: 12px; padding: .5rem; text-align: center; }
.fv-donnees dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--doux); }
.fv-donnees dd { margin: 0; font-weight: 700; color: var(--encre); }
.fv-prix { margin: 0; text-align: center; font-size: .92rem; color: var(--doux); }
.fv-prix b { display: block; font-family: var(--titres); font-size: 2rem; font-weight: 900; color: var(--cinabre); line-height: 1.1; }
.fv-prix small { display: block; }
.fv-legende { text-align: center; font-size: .9rem; color: var(--doux); margin: .6rem 0 0; }
.mini-rosace { width: 210px; height: 210px; border-radius: 50%; margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.15; background: var(--blanc); box-shadow: 0 0 0 10px var(--lapis), 0 0 0 20px var(--safran), 0 0 0 30px var(--cinabre), var(--ombre); }
.mini-rosace b { font-family: var(--titres); font-size: 2.3rem; font-weight: 900; color: var(--cinabre); }
.mini-rosace span { font-size: .85rem; color: var(--doux); }
.reperes { list-style: none; padding: 0; margin: 0 0 .5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.reperes li { display: inline-flex; align-items: center; gap: .4rem; background: var(--blanc); border-radius: 999px; padding: .3rem .9rem; font-size: .92rem; font-weight: 500; color: var(--encre); box-shadow: 0 3px 10px -6px rgba(35, 40, 74, .4); }
.colonnes { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2.8rem; align-items: start; }
.colonnes.inverse { grid-template-columns: 1fr 1.6fr; }
.texte-long h2 { margin-top: .4em; }
.texte-long h3 { margin-top: 1.6em; }
.texte-long .intro { font-size: 1.15rem; color: var(--encre); }
.encart { background: var(--blanc); border-radius: 22px; padding: 1.5rem; box-shadow: var(--ombre); border-top: 8px solid var(--safran); position: sticky; top: 110px; }
.encart-titre { font-family: var(--titres); font-weight: 800; color: var(--encre); font-size: 1.15rem; display: flex; align-items: center; gap: .5rem; margin: 1.2rem 0 .7rem; }
.encart .encart-titre:first-child { margin-top: 0; }
.liste-coches { list-style: none; padding: 0; margin: 0 0 1rem; }
.liste-coches li { display: flex; gap: .55rem; align-items: flex-start; padding: .3rem 0; }
.liste-coches .pic { color: var(--emeraude); stroke-width: 2.6; margin-top: .2em; }
.petit-texte { font-size: .9rem; color: var(--doux); margin: 0; }
.logo-50 { display: block; margin: .4rem 0 1rem; height: auto; }
.trois-cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.carte-arche { background: var(--blanc); border-radius: 140px 140px var(--rayon) var(--rayon); padding: 2.4rem 1.4rem 1.5rem; text-align: center; box-shadow: var(--ombre); }
.carte-arche .pic { width: 46px; height: 46px; color: var(--lapis); stroke-width: 1.6; margin-bottom: .6rem; }
.carte-arche p { color: var(--doux); margin: 0; }

/* Secteurs en vitraux */
.vitraux { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.vitrail-secteur { background: var(--blanc); border-radius: 120px 120px var(--rayon) var(--rayon); padding: 2.2rem 1.4rem 1.4rem; box-shadow: var(--ombre); border: 3px solid var(--lapis); scroll-margin-top: 120px; }
.vitrail-secteur.s-nord { border-color: var(--safran); } .vitrail-secteur.s-est { border-color: var(--emeraude); }
.vitrail-secteur.s-sud { border-color: var(--cinabre); } .vitrail-secteur.s-ouest { border-color: var(--violet); }
.vitrail-secteur.s-vonne { border-color: var(--ocre); } .vitrail-secteur.s-sevre { border-color: var(--turquoise); }
.vitrail-secteur.s-vouille { border-color: #9A6CC0; } .vitrail-secteur.s-clain { border-color: #E07A5F; } .vitrail-secteur.s-gatine { border-color: #7D8F2A; }
.vitrail-secteur.s-niort { border-color: #1E3470; } .vitrail-secteur.s-niort-nord { border-color: #C88A10; } .vitrail-secteur.s-niort-sud { border-color: #22705A; }
.vitrail-secteur h3 { text-align: center; }
.vitrail-secteur > p { font-size: .95rem; color: var(--doux); }
.vs-compte { text-align: center; font-size: .78rem !important; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; color: var(--cinabre) !important; margin-bottom: .3rem; }
.pastilles { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.pastilles a { display: inline-block; text-decoration: none; background: var(--pierre); color: var(--encre); padding: .3rem .8rem; border-radius: 999px; font-size: .93rem; font-weight: 500; border: 1px solid var(--pierre-3); }
.pastilles a:hover { background: var(--encre); color: var(--blanc); }
.pastilles a[aria-current] { background: var(--cinabre); color: var(--blanc); border-color: var(--cinabre); }
.pastilles.large a { font-size: 1rem; padding: .45rem 1rem; }
.legal h2 { font-size: 1.3rem; margin-top: 1.4em; }

/* --- Pied de page ----------------------------------------------------------- */
.pied { background: var(--encre); color: #D9D7E7; padding: 0 0 5rem; margin-top: 0; }
.pied-arcs { height: 28px; background: radial-gradient(circle at 20px 28px, var(--encre) 18px, transparent 19px) repeat-x; background-size: 40px 28px; background-color: var(--pierre); }
.pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.4rem; padding: 2.8rem 0 2rem; }
.pied-nom { font-family: var(--titres); font-size: 1.7rem; font-weight: 900; color: var(--blanc); margin-bottom: .5rem; }
.pied-logos { display: inline-flex; gap: 1.2rem; align-items: center; background: var(--blanc); border-radius: 16px; padding: .8rem 1.1rem; margin-top: .5rem; }
.pied-logos img { height: auto; }
.pied-titre { font-family: var(--titres); color: var(--safran); font-weight: 800; font-size: 1.1rem; margin: 0 0 .6rem; }
.pied ul { list-style: none; padding: 0; margin: 0 0 1.3rem; }
.pied li { padding: .15rem 0; }
.pied a { color: #ECEAF6; text-decoration: none; }
.pied a:hover { color: var(--safran); text-decoration: underline; }
.pied-bas { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 1.2rem; font-size: .88rem; }
.barre-appel { display: none; }

/* --- Apparitions ------------------------------------------------------------- */
.js .apparait { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .apparait.vu { opacity: 1; transform: none; }
.pastille-prix.apparait.vu { transform: rotate(-8deg); }

/* --- Adaptations ---------------------------------------------------------------- */
@media (max-width: 1240px) { .entete-tels { display: none; } } @media (max-width: 1100px) {
  .entete-tels { display: none; }
  .tesselles { grid-template-columns: repeat(2, 1fr); }
  .travees { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .li-zone { display: none; }
  .entete-ligne { flex-wrap: wrap; gap: .6rem; }
  .menu { margin-left: 0; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: .2rem; }
  .menu a { white-space: nowrap; }
  .facade-grille, .ov-grille, .ov-grille.inverse, .colonnes, .colonnes.inverse, .af-grille, .prix-bloc, .deux-groupes { grid-template-columns: 1fr; }
  .facade-dessin { max-width: 420px; margin: 0 auto; }
  .compteurs-ligne { grid-template-columns: repeat(2, 1fr); row-gap: 1.4rem; }
  .trois-cartes { grid-template-columns: 1fr; }
  .encart { position: static; }
  .pied-grille { grid-template-columns: 1fr; }
  .barre-appel { display: grid; grid-template-columns: 1.4fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; box-shadow: 0 -6px 18px -8px rgba(0, 0, 0, .4); }
  .barre-appel a { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .9rem; font-weight: 700; text-decoration: none; color: var(--blanc); background: var(--cinabre); }
  .barre-appel a + a { background: var(--encre); }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .bloc { padding: 2.8rem 0; }
  .tesselles, .tesselles.liste, .texte-long .tesselles, .travees { grid-template-columns: 1fr; }
  .marque img { height: 40px; }
  .marque-nom b { font-size: 1.2rem; }
  .rosace { width: 270px; height: 270px; }
  .rosace-texte b { font-size: 2.4rem; }
  .pastille-prix { width: 140px; height: 140px; }
  .pastille-prix b { font-size: 1.7rem; }
  .fv-donnees { grid-template-columns: 1fr 1fr 1fr; }
  .appel a { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* --- Gaieté : dessins, photos en arche, bande glissante, animations Motion ---- */
.entete { position: sticky; }
.progression { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--lapis), var(--emeraude), var(--safran), var(--cinabre), var(--violet)); z-index: 2; display: none; }
.motion .progression { display: block; }
.doodle { position: absolute; display: block; pointer-events: none; filter: drop-shadow(0 6px 8px rgba(35, 40, 74, .18)); }
.doodle svg { width: 100%; height: 100%; display: block; }
.dd1 { width: 58px; height: 58px; left: -4%; top: 6%; }
.dd2 { width: 62px; height: 62px; right: 2%; top: -2%; }
.dd3 { width: 50px; height: 50px; left: 2%; bottom: 14%; }
.dd4 { width: 30px; height: 30px; left: 30%; top: -4%; }
.dd5 { width: 52px; height: 52px; right: 44%; bottom: -6%; }
.dd6 { width: 22px; height: 22px; right: 22%; top: 26%; }
.titre-dessin { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -.12em; margin-left: .15em; }
.arcades { position: relative; }
.souris-coureuse { position: absolute; left: 0; bottom: 1px; width: 26px; height: 26px; display: none; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); }
.motion .souris-coureuse { display: block; }
.af-droite { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; }
.mascotte { display: flex; align-items: flex-end; gap: .5rem; }
.mascotte svg { width: 76px; height: 76px; }
.bulle { position: relative; background: var(--blanc); color: var(--encre); font-weight: 600; padding: .45rem .9rem; border-radius: 16px 16px 16px 4px; margin-bottom: 2.6rem; font-size: .95rem; }
.photo-arche { margin: 1.8rem 0; position: relative; }
.photo-arche img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 3.2; object-fit: cover; border-radius: 200px 200px 22px 22px; border: 7px solid var(--blanc); box-shadow: var(--ombre); }
.photo-arche figcaption { font-size: .92rem; font-style: italic; color: var(--doux); text-align: center; margin-top: .5rem; }
.photo-arche.penche-g { transform: rotate(-1.6deg); } .photo-arche.penche-d { transform: rotate(1.6deg); }
.js .photo-arche.apparait.vu.penche-g { transform: rotate(-1.6deg); } .js .photo-arche.apparait.vu.penche-d { transform: rotate(1.6deg); }
.photo-arche:hover img { transform: scale(1.02); transition: transform .3s; }
.encart .photo-arche { margin: 1.2rem 0 .4rem; }
.duo-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin-top: 1.6rem; }
.bande-photos { background: var(--encre); padding: 2rem 0 2.2rem; overflow: hidden; }
.bp-piste { display: flex; gap: 1.2rem; overflow-x: auto; padding: 0 1.2rem; scrollbar-width: thin; }
.motion .bp-piste { overflow: visible; width: max-content; padding: 0; }
.bp-liste { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.2rem; }
.bp-liste li { flex: none; width: 250px; display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.bp-photo img { width: 250px; height: 165px; object-fit: cover; border-radius: 125px 125px 16px 16px; border: 5px solid var(--blanc); display: block; }
.bp-liste span { color: #E7E5F2; font-size: .92rem; text-align: center; }
.bp-dessin { justify-content: center; }
.bp-dessin svg { width: 120px; height: 120px; padding: 18px; border-radius: 50%; box-sizing: content-box; background: #2F3560; }
.bp-dessin.t1 svg { background: #3B3460; } .bp-dessin.t2 svg { background: #24405A; } .bp-dessin.t3 svg { background: #4A2F45; }
.bp-dessin span { font-family: var(--titres); font-weight: 800; font-size: 1.1rem; color: var(--safran); }
.tesselle .te-ico { transition: transform .2s; }
.tesselle.t0 .te-ico { background: #E4EAF7; stroke: var(--lapis); }
.tesselle.t1 .te-ico { background: #FBF0D5; stroke: #A87307; }
.tesselle.t2 .te-ico { background: #DDF0E6; stroke: var(--emeraude); }
.tesselle.t3 .te-ico { background: #F8E0DC; stroke: var(--cinabre); }
.po-arcs .arc { transform-box: fill-box; transform-origin: 50% 100%; }
@media (max-width: 880px) { .duo-photos { grid-template-columns: 1fr; } .dd1, .dd3 { left: 0; } .mascotte svg { width: 60px; height: 60px; } }
@media (prefers-reduced-motion: reduce) { .motion .progression, .motion .souris-coureuse { display: none; } }
/* 5 secteurs de l'agglomération sur une seule ligne en grand écran */
@media (min-width: 1100px) {
  .vitraux-agglo { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
  .vitraux-agglo .vitrail-secteur { padding: 2rem 1rem 1.2rem; }
  .vitraux-agglo .vitrail-secteur h3 { font-size: 1.1rem; }
  .vitraux-agglo .pastilles a { font-size: .86rem; padding: .25rem .65rem; }
}
