/* Arpentage et Perspectives — proposition 3
   Principe inspiré d'un site de cabinet classique : menu à séparateurs, grand
   visuel avec panneau de couleur, tuiles rondes des métiers, encart latéral,
   pied de page sombre à colonnes. Couleurs et polices du cabinet. */

/* Police du site : TeX Gyre Adventor, version libre de l'Avant Garde Gothic, très proche de Century Gothic.
   Fichiers d'origine non modifiés (CTAN), licence GUST Font License : fonts/GUST-FONT-LICENSE.txt.
   Les graisses 500 à 900 utilisent le gras, comme le faisait Century Gothic. */
@font-face { font-family: "TeX Gyre Adventor"; src: url("fonts/texgyreadventor-regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "TeX Gyre Adventor"; src: url("fonts/texgyreadventor-bold.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "TeX Gyre Adventor"; src: url("fonts/texgyreadventor-italic.otf") format("opentype"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  /* Couleurs définitives, tirées du logo final (19/11/2026) */
  --vert: #66A651;          /* vert du P et du cœur du A */
  --vert-clair: #9AC475;    /* vert clair du haut du A */
  --vert-fonce: #1F6B5A;    /* vert profond du pied du A */
  --marron: #7F5F25;        /* bronze de l'arc et des triangles */
  --pierre: #AEAEAC;        /* gris pierre du P (face éclairée) */
  --pierre-fonce: #7E7E7E;  /* gris pierre du P (côté ombré), lisible sur fond blanc */
  --terre: #44434D;
  --terre-nuit: #2D2C36;
  --foret: #2D2C36;
  --papier: #FFFFFF;
  --fond: #EFEFEE;          /* gris pierre très clair des zones de tuiles */
  --teinte-vert: #EDF4E8;
  --teinte-terre: #F4EFE4;
  --encre: #2D2C36;         /* anthracite du texte du logo */
  --encre-douce: #4F4E58;
  --sur-sombre: #E7E7EA;
  --f-titre: "TeX Gyre Adventor", "Century Gothic", "URW Gothic", "URW Gothic L", "Avant Garde", "Futura", "Trebuchet MS", sans-serif;
  --f-texte: "TeX Gyre Adventor", "Century Gothic", "URW Gothic", "URW Gothic L", "Avant Garde", "Futura", "Trebuchet MS", sans-serif;
  --largeur: 1200px;
  --marge: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--papier); color: var(--encre); font-family: var(--f-texte); font-size: 1.0625rem; line-height: 1.6; }
/* Pages courtes (compétences en attente de contenu) : le bas de page reste en bas de l'écran */
body { min-height: 100vh; display: flex; flex-direction: column; }
#contenu { flex: 1 0 auto; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--f-titre); line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0; }
a { color: var(--marron); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--vert); outline-offset: 3px; border-radius: 3px; }
.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 var(--marge); }
.lien-evitement { position: absolute; left: -9999px; top: 0; background: var(--papier); padding: .5rem 1rem; z-index: 20; }
.lien-evitement:focus { left: 1rem; top: 1rem; }
.a-completer { font-style: normal; background: rgba(102,166,81,.16); border: 1px dashed var(--marron); border-radius: 3px; padding: 0 .35em; color: #6A4E1D; }

/* Boutons */
.bouton { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--f-texte); font-weight: 600; font-size: 1rem; line-height: 1.2; padding: .8rem 1.2rem; border-radius: 6px; border: 2px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap; }
.bouton svg { width: 18px; height: 18px; flex: none; }
.bouton:hover { text-decoration: none; }
.bouton-vert { background: var(--vert); color: #2D2C36; }
.bouton-vert:hover { background: #7AB866; }
.bouton-marron { background: var(--marron); color: #fff; }
.bouton-marron:hover { background: var(--terre); }
.bouton-blanc { color: #fff; border-color: rgba(255,255,255,.8); background: transparent; }
.bouton-blanc:hover { background: #fff; color: var(--terre); }
.bouton-petit { padding: .55rem .9rem; font-size: .9375rem; }

/* ---------- En-tête ---------- */
.entete { background: var(--papier); border-bottom: 4px solid var(--vert); position: relative; z-index: 10; }
/* Le bandeau reste toujours déplié. Grand écran (bandeau sur une ligne, ~100 px) : il reste fixé en haut,
   et un espace de sa hauteur lui est réservé (--hauteur-entete, mesuré par menu.js).
   Tablette et téléphone : le bandeau passe sur deux niveaux (~300 px), il défile donc avec la page
   au lieu de masquer un tiers de l'écran. */
@media (min-width: 1100px) {
  .entete { position: fixed; top: 0; left: 0; right: 0; box-shadow: 0 4px 14px rgba(45, 44, 54, .08); }
  body { padding-top: var(--hauteur-entete, 0px); }
}
.sans-transition .entete, .sans-transition .entete * { transition: none !important; }
/* Bandeau du haut compact une fois la page défilée (classe posée par menu.js) */
.entete .conteneur, .marque img, .marque-nom, .marque-titre { transition: padding .25s ease, width .25s ease, font-size .25s ease; }
.entete-reduite .entete { box-shadow: 0 4px 14px rgba(45, 44, 54, .08); }
.entete-reduite .entete .conteneur { padding-top: .5rem; padding-bottom: .5rem; row-gap: .3rem; }
.entete-reduite .marque img { width: 64px; }
.entete-reduite .marque-nom, .entete-reduite .marque-titre { font-size: 1.3rem; }
.entete-reduite .entete-droite { gap: 0; }
.entete-reduite .entete-contact { display: none; }
.entete-reduite .entete-droite nav { border-top: 0; padding-top: 0; }
@media (min-width: 1100px) {
  .entete-reduite .entete-droite nav { grid-column: 2; grid-row: 1; justify-self: end; }
  .entete-reduite .entete .conteneur { column-gap: 1.25rem; }
  .entete-reduite .menu { justify-content: flex-end; font-size: .96875rem; flex-wrap: nowrap; white-space: nowrap; }
  .entete-reduite .marque { gap: .75rem; }
  .entete-reduite .marque > span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .entete .conteneur, .marque img, .marque-nom, .marque-titre { transition: none; } }

/* Coordonnées (téléphone, e-mail, message) dans le bandeau du haut, sous le menu.
   Même police et même gris que l'ancienne barre verticale de gauche. */
.entete-coord { grid-column: 1 / -1; justify-self: end; justify-content: flex-end; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; }
.coord-tel, .coord-mail { color: #7A7A7A; text-decoration: none; font-size: .6rem; font-weight: 600; white-space: nowrap; }
.coord-tel { letter-spacing: .14em; text-transform: uppercase; }
.coord-mail { letter-spacing: .06em; }
.coord-tel:hover, .coord-mail:hover { color: var(--vert-fonce); }
.coord-separateur { width: 1px; height: 10px; background: #C4C4C1; }
.coord-icone { color: #7A7A7A; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; }
.coord-icone:hover { color: #fff; background: var(--vert); }
.coord-icone svg { width: 13px; height: 13px; }
.entete-coord { gap: .2rem .7rem; }
.entete .conteneur { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .75rem 2.5rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.marque { display: flex; align-items: center; gap: 1.25rem; text-decoration: none; color: var(--encre); }
.marque img { width: 140px; height: auto; }
.marque-nom { font-family: var(--f-titre); font-weight: 700; font-size: 1.85rem; line-height: 1.15; display: block; }
.marque-titre { display: block; font-family: var(--f-titre); font-size: 1.5rem; line-height: 1.15; color: #317B66; font-weight: 700; }
/* « Géomètre-Expert » en dégradé, comme le A du logo : vert tendre vers vert bleuté */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .marque-titre { width: fit-content; background: linear-gradient(90deg, #7DAA5E 0%, #56945D 45%, #2A7466 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
}
@media (forced-colors: active) { .marque-titre { -webkit-text-fill-color: CanvasText; background: none; } }
/* « Ingénierie », sous « Géomètre-Expert » : même taille et même graisse, en bronze ; masquée quand le bandeau est replié */
.marque-ingenieur { display: block; font-family: var(--f-titre); font-size: 1.5rem; font-weight: 700; line-height: 1.15; color: var(--marron); white-space: nowrap; }
.entete-reduite .marque-ingenieur { display: none; }
.entete-droite { display: grid; justify-items: end; gap: .9rem; }
.entete-contact { display: flex; gap: 1.5rem; align-items: center; font-size: 1.0625rem; }
.entete-contact a { color: var(--encre); text-decoration: none; font-weight: 600; display: inline-flex; gap: .4rem; align-items: center; }
.entete-contact svg { width: 17px; height: 17px; color: var(--marron); }
/* Transition entre les pages : écran blanc avec le triangle bronze du logo qui se déploie,
   se rétracte et pivote (assets/chargement-triangle.svg).
   1. Au clic : le voile blanc apparaît en fondu, le triangle s'anime, puis la page s'ouvre.
   2. À l'arrivée : la nouvelle page démarre sous le même voile, qui s'efface en fondu. */
.transition-page { position: fixed; inset: 0; z-index: 1000; pointer-events: none; background: #fff url("chargement-triangle.svg") center / 110px 110px no-repeat; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s; }
.transition-page.active { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .2s ease; }
html.arrivee::after { content: ""; position: fixed; inset: 0; z-index: 1000; pointer-events: none; background: #fff url("chargement-triangle.svg") center / 110px 110px no-repeat; animation: arrivee-fondu .4s ease .35s forwards; }
@keyframes arrivee-fondu { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { html.arrivee::after { display: none; } }
/* Boutons « Appelez-nous / Écrivez-nous / Nous trouver » : un clic affiche le numéro, le courriel ou l'adresse */
.entete-contact { gap: .6rem; }
.revele { position: relative; }
.revele summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .9375rem; color: var(--encre); border: 2px solid var(--vert); border-radius: 999px; padding: .4rem .95rem; background: var(--papier); transition: background .2s ease, color .2s ease; }
.revele summary::-webkit-details-marker { display: none; }
.revele summary:hover, .revele[open] summary { background: var(--vert); color: #fff; }
.revele summary:hover svg, .revele[open] summary svg { color: #fff; }
.revele-contenu { position: absolute; right: 0; top: calc(100% + .5rem); z-index: 30; display: grid; gap: .25rem; background: var(--papier); border: 1px solid #DCDCDB; border-top: 4px solid var(--vert); border-radius: 6px; padding: .8rem 1.1rem; box-shadow: 0 12px 28px rgba(0,0,0,.14); white-space: nowrap; }
.revele-contenu a { font-size: 1.125rem; color: var(--vert-fonce); }
.revele-contenu a:hover { text-decoration: underline; }
.revele-contenu span { font-size: .8125rem; color: var(--encre-douce); }
.revele-contenu address { font-style: normal; font-weight: 600; color: var(--encre); line-height: 1.5; }
@media (max-width: 760px) { .revele-contenu { right: auto; left: 0; white-space: normal; min-width: 15rem; } .revele:last-child .revele-contenu { left: auto; right: 0; } }
@media (prefers-reduced-motion: reduce) { .revele summary { transition: none; } }
.menu { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .25rem 0; list-style: none; margin: 0; padding: 0; font-weight: 600; font-size: .875rem; }
.menu li { display: flex; align-items: center; }
.menu > li + li::before { content: ""; width: 14px; height: 4px; border-radius: 2px; background: var(--vert); margin: 0 .85rem; }
/* Menu déroulant « Nos compétences » */
.deroulant { position: relative; }
.deroulant-bouton { font: inherit; color: var(--encre); background: none; border: 0; border-bottom: 2px solid transparent; padding: .2rem 0; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; }
.deroulant-bouton svg { width: 14px; height: 14px; transition: transform .2s ease; }
.deroulant-bouton:hover { color: var(--marron); }
.deroulant-bouton.actif { color: var(--marron); border-bottom-color: var(--marron); }
.deroulant.ouvert .deroulant-bouton svg { transform: rotate(180deg); }
.sous-menu { display: none; position: absolute; top: calc(100% + .6rem); left: 0; z-index: 30; min-width: 17.5rem; list-style: none; margin: 0; padding: .4rem 0; background: var(--papier); border: 1px solid #DCDCDB; border-top: 3px solid var(--vert); border-radius: 0 0 6px 6px; box-shadow: 0 12px 28px rgba(45, 44, 54, .16); font-size: 1em; font-weight: 500; }
/* Menus déroulants : textes jamais plus gros que les titres du menu principal (Accueil, Nous connaître…) :
   tailles en « em », donc alignées automatiquement sur la taille du menu, qui varie selon l'écran */
.deroulant.ouvert .sous-menu, .sans-js .deroulant:hover .sous-menu, .sans-js .deroulant:focus-within .sous-menu { display: block; }
.sous-menu li { display: block; }
.menu .sous-menu a { display: block; padding: .5rem 1.1rem; border-bottom: 0; color: var(--encre); white-space: nowrap; }
.menu .sous-menu a:hover, .menu .sous-menu a:focus-visible { background: var(--teinte-vert); color: var(--vert-fonce); outline-offset: -3px; }
.menu .sous-menu a[aria-current="page"] { color: var(--marron); font-weight: 700; border-left: 4px solid var(--marron); padding-left: calc(1.1rem - 4px); }
/* Menu regroupé par pôles : intitulé du pôle (non cliquable) puis ses compétences, légèrement en retrait */
.sous-menu ul { list-style: none; margin: 0; padding: 0; }
.sous-menu-pole + .sous-menu-pole { border-top: 1px solid #E6E6E4; margin-top: .3rem; padding-top: .3rem; }
.sous-menu-titre { display: block; padding: .5rem 1.1rem .25rem; font-family: var(--f-titre); font-size: .9em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--vert-fonce); }
.menu .sous-menu-pole a { padding-top: .3rem; padding-bottom: .3rem; padding-left: 1.6rem; font-size: 1em; }
.menu .sous-menu-pole a[aria-current="page"] { padding-left: calc(1.6rem - 4px); }
/* Menu « Nous connaître » : même taille de texte et même interligne que le détail des compétences */
.menu .sous-menu-simple a { padding-top: .3rem; padding-bottom: .3rem; font-size: 1em; }
.sous-menu-simple { padding: .5rem 0; }
@media (prefers-reduced-motion: reduce) { .deroulant-bouton svg { transition: none; } }
.menu a { color: var(--encre); text-decoration: none; padding: .2rem 0; border-bottom: 2px solid transparent; }
.menu a:hover { color: var(--marron); }
.menu a[aria-current="page"] { color: var(--marron); border-bottom-color: var(--marron); }

/* ---------- Carrousel des métiers ---------- */
.vitrine { background: var(--fond); padding: clamp(1rem, 2.5vw, 1.75rem) 0; }
.carrousel { position: relative; }
.diapos { list-style: none; margin: 0; padding: 0; }
.diapo { display: none; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); min-height: 380px; background: var(--papier); box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.diapo.active { display: grid; }
.diapo-visuel { position: relative; overflow: hidden; }
.diapo-visuel svg.illus { width: 100%; height: 100%; aspect-ratio: auto; }
.diapo-panneau { background: linear-gradient(160deg, var(--marron), var(--terre) 75%); color: #fff; padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; align-content: start; gap: 1rem; }
.diapo-panneau h2 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.diapo-panneau ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.diapo-panneau li { display: flex; gap: .6rem; align-items: baseline; color: var(--sur-sombre); }
.diapo-panneau li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--vert); flex: none; transform: translateY(-1px); }
.diapo-panneau .lien-suite { margin-top: .5rem; justify-self: start; }
.carrousel-commandes { position: absolute; right: calc(100% / 3 + 1rem); bottom: 1rem; display: flex; gap: .5rem; align-items: center; z-index: 2; }
.carrousel-commandes button.fleche { width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); color: var(--encre); cursor: pointer; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.carrousel-commandes button.fleche:hover { background: var(--vert); }
.carrousel-commandes svg { width: 20px; height: 20px; }
.points { display: flex; gap: .4rem; margin-left: .5rem; background: rgba(255,255,255,.9); padding: .45rem .6rem; border-radius: 999px; }
.points button { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--vert-fonce); background: #fff; padding: 0; cursor: pointer; }
.points button[aria-current="true"] { background: var(--vert); border-color: var(--vert-fonce); }
.sans-js .carrousel-commandes { display: none; }

/* ---------- Présentation ---------- */
.presentation { padding: clamp(2rem, 4vw, 3rem) 0 1.5rem; background: var(--fond); }  /* ~ une ligne d'espace avant les courbes de niveau */
.presentation .conteneur { display: grid; gap: .8rem; max-width: var(--largeur); }
.presentation .chapo { color: var(--encre-douce); font-size: .9rem; max-width: 52rem; }
/* Titre de l'accueil sur une seule ligne : sa taille suit la largeur disponible (avec « (Doubs) », il mesure ~33 fois sa taille de police) */
@media (min-width: 700px) {
  .presentation .conteneur { container-type: inline-size; }
  #titre-principal { white-space: nowrap; font-size: min(2.05rem, 2.9cqw); }
}
.presentation .chapo { font-size: .85rem; }
.presentation .chapo abbr { text-decoration: none; cursor: help; }
/* Pages « Qu'est-ce qu'un géomètre-expert ? » et « Contact » (classe texte-uniforme sur <body>) :
   titre réduit de 20 % et une seule taille pour tous les textes,
   alignée sur la phrase d'introduction de l'accueil (13 px, 13,6 px sur petit écran) */
.texte-uniforme h1 { font-size: clamp(1.52rem, 2.88vw, 2.08rem); }
.texte-uniforme #contenu h2 { font-size: clamp(1.28rem, 2.4vw, 1.76rem); }
.texte-uniforme #contenu p, .texte-uniforme #contenu li, .texte-uniforme #contenu dt, .texte-uniforme #contenu dd, .texte-uniforme #contenu label { font-size: .8125rem; line-height: 1.6; }
@media (max-width: 819px) { .texte-uniforme #contenu p, .texte-uniforme #contenu li, .texte-uniforme #contenu dt, .texte-uniforme #contenu dd, .texte-uniforme #contenu label { font-size: .85rem; } }
/* Phrase d'introduction sur une seule ligne quand la place le permet (elle mesure ~74 fois sa taille de police) */
@container (min-width: 820px) {
  .presentation .chapo { white-space: nowrap; max-width: none; font-size: min(.8125rem, 1.3cqw); }
}

/* ---------- Tuiles des métiers + encart ---------- */
.zone-tuiles { background: var(--fond); padding: 1.5rem 0 clamp(2.5rem, 5vw, 4rem); }
.zone-tuiles .conteneur { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); align-items: stretch; }
.tuiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.2vw, 1.75rem); }
/* Vignettes épurées (inspirées du site cmsgeo.fr) : carte aux angles arrondis, sans trait,
   le dessin occupe le haut de la carte sur son fond uni, le titre en dessous */
.tuile a { position: relative; display: flex; flex-direction: column; text-decoration: none; background: var(--papier); border-radius: 12px; overflow: hidden; height: 100%; box-shadow: 0 1px 3px rgba(45, 44, 54, .08); }
.rond { display: block; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: var(--teinte-vert); }
.rond svg { width: 100%; height: 100%; }
.tuile-titre { font-family: var(--f-titre); font-weight: 650; font-size: 1.15rem; color: var(--encre); text-align: center; padding: 1rem 1rem 0; }
.tuile-titre:last-child { padding-bottom: 1.2rem; }
.tuile-texte { font-size: .9375rem; color: var(--encre-douce); text-align: center; padding: .3rem 1rem 1.2rem; }
.tuile a:hover .tuile-titre { text-decoration: underline; text-decoration-color: var(--vert); text-decoration-thickness: 2px; }
/* Effet au survol : toute la vignette grandit légèrement, dans les mêmes proportions */
.tuile a { transition: transform .3s ease, box-shadow .3s ease; }
.tuile a:hover, .tuile a:focus-visible { transform: scale(1.04); box-shadow: 0 12px 28px rgba(45, 44, 54, .14); z-index: 2; }
.tuile a:focus-visible .tuile-titre { text-decoration: underline; text-decoration-color: var(--vert); text-decoration-thickness: 2px; }
@media (prefers-reduced-motion: reduce) { .tuile a { transition: none; } .tuile a:hover, .tuile a:focus-visible { transform: none; } }

.encart { background: var(--terre-nuit); color: var(--sur-sombre); padding: clamp(1.5rem, 2.5vw, 2rem); display: grid; align-content: start; gap: 1.1rem; margin-top: 18px; }
.encart h2 { color: #fff; font-size: 1.4rem; }
.encart-tel { font-family: var(--f-titre); font-weight: 700; font-size: 1.75rem; color: #fff; text-decoration: none; line-height: 1; }
.encart-tel:hover { color: var(--vert-clair); }
.encart dl { margin: 0; display: grid; gap: .8rem; }
.encart dt { font-size: .8125rem; color: var(--vert-clair); font-weight: 600; }
.encart dd { margin: .05rem 0 0; color: #fff; font-size: .9375rem; }
.encart .bouton { justify-content: center; }

/* ---------- Bandeau de page intérieure ---------- */
.bandeau-page { color: var(--encre); background: #EFEFEE url("topo-gris.svg") center / cover no-repeat; padding: clamp(1.5rem, 3.5vw, 2.25rem) 0; border-bottom: 1px solid #DCDCDB; }
/* Voile blanc sous le texte posé sur les courbes de niveau, comme le cadre des vignettes de l'accueil */
.bandeau-texte { width: fit-content; max-width: 100%; background: rgba(255, 255, 255, .82); border: 1px solid rgba(255, 255, 255, .95); border-radius: 14px; box-shadow: 0 1px 3px rgba(45, 44, 54, .06); padding: clamp(.9rem, 2vw, 1.25rem) clamp(1rem, 2.4vw, 1.6rem); }
.bandeau-page h1 { color: var(--encre); }
.bandeau-page p { color: var(--encre-douce); margin-top: .7rem; max-width: 46rem; font-size: 1.125rem; }
.fil { font-size: .875rem; color: var(--encre-douce); margin-bottom: .6rem; }
.fil a { color: var(--vert-fonce); }

/* ---------- Page Nos métiers ---------- */
.metiers { padding: clamp(2.5rem, 5vw, 4rem) 0; display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.metier { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; scroll-margin-top: 140px; }
.metier:nth-child(even) .metier-visuel { order: 2; }
.metier-visuel { border-radius: 8px; overflow: hidden; border-top: 5px solid var(--vert); }
.metier:nth-child(even) .metier-visuel { border-top-color: var(--marron); }
.metier-texte { display: grid; gap: .8rem; }
.metier-texte h2 { color: var(--encre); }
.metier-texte p { color: var(--encre-douce); font-size: 1.0625rem; }
.metier-texte ul { margin: .2rem 0 0; padding: 0; list-style: none; display: grid; gap: .4rem; }
.metier-texte li { display: flex; gap: .6rem; align-items: baseline; }
.metier-texte li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--vert); flex: none; transform: translateY(-1px); }
.illus-vert { background: var(--teinte-vert); }
.illus-terre { background: var(--teinte-terre); }
.illus-foret { background: var(--foret); }
.illus text { font-family: var(--f-texte); }
.illus .t-titre { font-family: var(--f-titre); font-weight: 650; }

/* ---------- Page Le géomètre-expert ---------- */
.role { padding: clamp(2.5rem, 5vw, 4rem) 0; }
/* Une seule colonne de texte (le plan d'exemple a été retiré), même largeur de lecture que les autres sections */
.role .conteneur { display: block; }
.role-texte { display: grid; gap: 1rem; max-width: 50rem; }
.role-texte p { color: var(--encre-douce); font-size: 1.0625rem; }
.encadre { background: var(--teinte-vert); border-left: 5px solid var(--vert); padding: 1rem 1.2rem; border-radius: 0 8px 8px 0; color: var(--encre) !important; }
/* Rappel d'un article de loi (page géomètre-expert) */
.rappel-loi { margin: .9rem 0 1.1rem; max-width: 50rem; }
.rappel-loi p { margin: 0; font-style: italic; font-size: 1.05rem; line-height: 1.55; }
.rappel-loi footer { margin-top: .45rem; font-size: .85rem; font-weight: 600; color: var(--encre-douce); }
.planche { margin: 0; background: var(--papier); border: 1px solid #D2D3D6; border-radius: 6px; padding: clamp(.75rem, 2vw, 1.25rem); box-shadow: 0 20px 40px -26px rgba(45,44,54,.45); }
.plan { width: 100%; height: auto; font-family: var(--f-texte); }
.plan-croix { stroke: #C8CBD0; stroke-width: 1; fill: none; }
.plan-voisin { stroke: #9A958C; stroke-width: 1.25; fill: none; }
.plan-parcelle { fill: #8A847A; font-size: 13px; }
.plan-fond { fill: var(--vert); fill-opacity: .16; stroke: none; }
.plan-limite { fill: none; stroke: var(--marron); stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 1000; stroke-dashoffset: 0; animation: tracer 1.6s cubic-bezier(.4,0,.2,1) both; }
.plan-num { fill: var(--encre); font-family: var(--f-titre); font-weight: 650; font-size: 20px; }
.plan-contenance { fill: var(--encre-douce); font-size: 13px; }
.plan-cote { fill: var(--marron); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; animation: apparaitre .4s ease-out both; animation-delay: calc(1.7s + var(--i) * .08s); }
.plan-borne circle { fill: #fff; stroke: var(--vert-fonce); stroke-width: 2.75; }
.plan-borne .plan-borne-c { fill: var(--vert); stroke: none; }
.plan-borne { transform-box: fill-box; transform-origin: center; animation: poser .35s cubic-bezier(.3,1.4,.5,1) both; animation-delay: calc(1.3s + var(--i) * .12s); }
.plan-borne-nom { fill: var(--vert-fonce); font-size: 13px; font-weight: 600; animation: apparaitre .4s ease-out both; animation-delay: calc(1.4s + var(--i) * .12s); }
.plan-nord path { fill: #fff; stroke: var(--encre); stroke-width: 1.25; stroke-linejoin: round; }
.plan-nord .plan-nord-g { fill: var(--encre); }
.plan-nord text { fill: var(--encre); font-size: 13px; font-weight: 600; }
.plan-echelle rect { fill: var(--encre); stroke: var(--encre); stroke-width: 1; }
.plan-echelle .plan-echelle-v { fill: #fff; }
.plan-echelle text { fill: var(--encre-douce); font-size: 12px; }
@keyframes tracer { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
@keyframes poser { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }
@keyframes apparaitre { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .plan-limite, .plan-borne, .plan-borne-nom, .plan-cote { animation: none; } }
.cartouche { width: min(19rem, 100%); margin: .5rem 0 0 auto; border: 1.5px solid var(--encre); font-size: .8125rem; line-height: 1.35; }
.cartouche div { padding: .4rem .6rem; }
.cartouche div + div { border-top: 1px solid var(--encre); }
.cartouche strong { font-family: var(--f-titre); font-size: .9375rem; font-weight: 650; display: block; }
.cartouche-legende { color: var(--encre-douce); display: flex; justify-content: space-between; gap: .5rem; }

.bornage { color: #fff; background: url("topo.svg") center / cover no-repeat, var(--foret); padding: clamp(3rem, 7vw, 5rem) 0; }
.bornage h2 { color: #fff; }
.bornage .intro { color: #DCEBD2; font-size: 1.125rem; margin: .8rem 0 clamp(2rem, 4vw, 3rem); max-width: 44rem; }
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.25rem; position: relative; counter-reset: etape; }
.etapes::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; border-top: 3px dashed rgba(154,196,117,.7); }
.etape { position: relative; display: grid; gap: .45rem; align-content: start; counter-increment: etape; }
.etape::before { content: counter(etape); width: 46px; height: 46px; border-radius: 50%; background: var(--vert); color: #2D2C36; display: grid; place-items: center; font-weight: 700; font-size: 1.125rem; position: relative; margin-bottom: .6rem; box-shadow: 0 0 0 6px var(--foret), 0 0 0 8px rgba(154,196,117,.45); }
.etape h3 { font-size: 1.0625rem; color: #fff; }
.etape p { font-size: .9375rem; color: #D3E5C8; }
.bornage-notes { margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; }
.bornage-notes p { font-size: .9375rem; color: #E6F1DF; background: rgba(255,255,255,.07); border-left: 4px solid var(--vert); border-radius: 0 8px 8px 0; padding: .9rem 1.1rem; }

/* ---------- Page Contact ---------- */
.contact { padding: clamp(2.5rem, 5vw, 4rem) 0; background: var(--fond); }
.contact .conteneur { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 2.5rem); align-items: start; }
.carte-contact { color: var(--encre); border-radius: 10px; padding: clamp(1.75rem, 4vw, 2.5rem); background: var(--papier); border-top: 4px solid var(--vert); display: grid; gap: 1.4rem; }
.carte-contact h2 { color: var(--encre); }
.gros-tel { font-family: var(--f-titre); font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--encre); text-decoration: none; line-height: 1; }
.gros-tel:hover { color: var(--vert-fonce); }
.carte-contact dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; }
.carte-contact dl > div:first-child { grid-column: 1 / -1; }
.carte-contact dt { font-size: .8125rem; color: var(--vert-fonce); font-weight: 600; }
.carte-contact dd { margin: .1rem 0 0; color: var(--encre); font-weight: 500; }
.carte-contact dd a { color: var(--encre); text-decoration-color: var(--vert); text-decoration-thickness: 2px; word-break: break-word; }
.ligne-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.ligne-actions .lien-carte { color: var(--encre); }
.retour-copie { font-size: .9375rem; color: var(--vert-fonce); min-height: 1.5em; }
/* Formulaire « Nous écrire » : uniquement sur la page Contact */
.contact-ecrire { background: #2D2C36; color: #D2D3D6; scroll-margin-top: 100px; }
.contact-ecrire .pied-formulaire { border-bottom: 0; padding: clamp(2.5rem, 5vw, 4rem) 0; }
/* Bas de page : logo | Nous trouver | carte de la zone d'intervention */
/* ---------- Accueil : compétences regroupées en pôles (sphère centrale reliée à des vignettes) ----------
   Chaque schéma est un repère de 125 × 120 unités (1 unité = 0,8 % de la largeur, 0,8333 % de la hauteur).
   Sphère : --x / --y = son centre. Vignette : --x = son centre horizontal, --y = son bord haut.
   Les traits du SVG .pole-liens utilisent les mêmes coordonnées. */
.zone-poles { background: #EFEFEE url("topo-dense.svg") center top / 720px 720px repeat; padding: .75rem 0 clamp(2.5rem, 5vw, 4rem); }
.poles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.2vw, 1.75rem); }
.pole { background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .9); border-radius: 14px; box-shadow: 0 1px 3px rgba(45, 44, 54, .06); padding: clamp(.75rem, 2vw, 1.25rem); }
/* Teinte pastel propre à chaque pôle, en couleurs chaudes, de l'orange clair au rouge clair
   (légèrement transparente : les courbes restent visibles) */
/* Simple voile : même fond blanc translucide que les autres cadres, plus une touche de couleur très transparente */
.pole[aria-labelledby="pole-foncier"]     { background: linear-gradient(rgba(240, 170, 80, .09), rgba(240, 170, 80, .09)), rgba(255, 255, 255, .5); border-color: rgba(236, 178, 104, .25); }  /* abricot */
.pole[aria-labelledby="pole-amenagement"] { background: linear-gradient(rgba(238, 140, 80, .09), rgba(238, 140, 80, .09)), rgba(255, 255, 255, .5); border-color: rgba(234, 160, 106, .25); }  /* pêche */
.pole[aria-labelledby="pole-topographie"] { background: linear-gradient(rgba(232, 112, 90, .08), rgba(232, 112, 90, .08)), rgba(255, 255, 255, .5); border-color: rgba(228, 140, 116, .25); }  /* corail */
.pole[aria-labelledby="pole-ingenierie"]  { background: linear-gradient(rgba(220, 90, 90, .08), rgba(220, 90, 90, .08)), rgba(255, 255, 255, .5); border-color: rgba(220, 124, 124, .25); }   /* rouge clair */
/* Variante précédente, couleurs du logo :
   foncier rgba(232,242,224,.78) · aménagement rgba(244,236,220,.80) · topographie rgba(224,239,236,.80) · ingénierie rgba(233,233,240,.82) */
.pole-schema { position: relative; aspect-ratio: 125 / 120; container-type: inline-size; }
.pole-liens { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pole-liens line { stroke: var(--vert); stroke-width: 2.5; stroke-dasharray: 6 5; stroke-linecap: round; vector-effect: non-scaling-stroke; transition: stroke .25s ease, stroke-width .25s ease; }
/* Schéma fixe : plus d'orbite des sphères (poles.js n'est plus chargé) ni de défilement des pointillés */
.pole-sphere { position: absolute; z-index: 1; left: calc((var(--x) - 18) * .8%); top: calc((var(--y) - 18) * .83333%); width: 28.8%; aspect-ratio: 1; margin: 0; padding: 0 .6em; box-sizing: border-box; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #FFFFFF; background: radial-gradient(circle at 32% 28%, #A9CF8A 0%, #66A651 38%, #2A7466 100%); box-shadow: 0 10px 24px rgba(31, 107, 90, .28), inset 0 -6px 14px rgba(0, 0, 0, .12); font-family: var(--f-titre); font-weight: 700; font-size: clamp(.75rem, 3.5cqw, 1.35rem); line-height: 1.15; }
/* Dessin de la sphère, à la manière du logo : nom en capitales le long du cercle, anneau fin, repères triangulaires, pictogramme au centre */
.pole-sphere { padding: 0; }
.sphere-dessin { display: block; width: 100%; height: 100%; overflow: visible; }
.sphere-anneau { fill: none; stroke: #FFFFFF; stroke-opacity: .45; stroke-width: 1.5; }
.sphere-repere { fill: #FFFFFF; fill-opacity: .85; }
.sphere-texte { fill: #FFFFFF; font-family: var(--f-titre); font-weight: 700; letter-spacing: .12em; }
.sphere-picto { fill: none; stroke: #FFFFFF; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sphere-bornes circle { fill: #FFFFFF; stroke: none; }
.pole-sats { list-style: none; margin: 0; padding: 0; }
.sat { position: absolute; z-index: 2; left: calc((var(--x) - 19) * .8%); top: calc(var(--y) * .83333%); width: 30.4%; }
.sat a { display: flex; flex-direction: column; text-decoration: none; background: var(--papier); border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(45, 44, 54, .14); transition: transform .3s ease, box-shadow .3s ease; }
.sat-rond { display: block; aspect-ratio: 360 / 208; }
.sat-rond svg { display: block; width: 100%; height: 100%; }
/* Bandeau du nom : gris anthracite adouci (un ton plus clair que le pied de page), texte blanc */
/* Hauteur identique pour toutes les vignettes : le bandeau réserve toujours 3 lignes, et le texte y est centré */
.sat-nom { box-sizing: border-box; height: calc(3 * 1.2em + 1.1em); display: flex; align-items: center; justify-content: center; padding: .5em .55em .6em; text-align: center; font-family: var(--f-titre); font-weight: 650; font-size: clamp(.7rem, 2.55cqw, .9rem); line-height: 1.2; color: #FFFFFF; background: #5A5963; overflow: hidden; }
.sat a:hover, .sat a:focus-visible { transform: scale(1.07); box-shadow: 0 12px 26px rgba(45, 44, 54, .22); z-index: 3; }
.sat:has(a:is(:hover, :focus-visible)) { z-index: 3; }
/* Au survol, le nom passe du blanc à l'orange (pas de soulignement) */
.sat-nom { transition: color .25s ease; }
.sat a:hover .sat-nom, .sat a:focus-visible .sat-nom { color: #F7A64B; }
/* Le trait de la bulle survolée se renforce */
.pole-schema:has(.sat:nth-child(1) a:is(:hover, :focus-visible)) .pole-liens line:nth-child(1),
.pole-schema:has(.sat:nth-child(2) a:is(:hover, :focus-visible)) .pole-liens line:nth-child(2),
.pole-schema:has(.sat:nth-child(3) a:is(:hover, :focus-visible)) .pole-liens line:nth-child(3),
.pole-schema:has(.sat:nth-child(4) a:is(:hover, :focus-visible)) .pole-liens line:nth-child(4) { stroke: var(--vert-fonce); stroke-width: 3.5; stroke-dasharray: none; }
@media (max-width: 860px) { .poles { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }
/* Téléphone : la sphère en haut, puis les vignettes sur deux colonnes, reliées par un trait vertical */
@media (max-width: 600px) {
  .pole-schema { aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; }
  .pole-liens { display: none; }
  .pole-sphere { position: static; width: 8.5rem; font-size: 1rem; }
  .pole-sats { position: relative; width: 100%; margin-top: 1.25rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .pole-sats::before { content: ""; position: absolute; left: 50%; top: -1.25rem; height: 1.25rem; border-left: 2.5px dashed var(--vert); }
  .sat { position: static; width: auto; }
  .sat a { height: 100%; }
  .sat-nom { font-size: .85rem; }
  .sat:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - .375rem); }
}
@media (prefers-reduced-motion: reduce) { .sat a, .pole-liens line { transition: none; } .sat a:hover, .sat a:focus-visible { transform: none; } }

/* ---------- Essai : les quatre pôles réunis dans une seule vignette ----------
   Grille de 4 × 4 cases : les quatre sphères forment le carré central (2 × 2),
   les douze compétences font le tour sur la ceinture extérieure (12 cases).
   Les traits du SVG .carte-liens vont du centre d'une sphère au centre d'une vignette
   (repère 0 – 4 : la case de la colonne c a son centre en x = c − 0,5). */
.carte-poles { position: relative; container-type: inline-size; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr)); aspect-ratio: 4 / 3.25; max-width: 1080px; margin: 0 auto; padding: clamp(.4rem, 1.2vw, .9rem); box-sizing: border-box; background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .9); border-radius: 14px; box-shadow: 0 1px 3px rgba(45, 44, 54, .06); }
.carte-pole, .carte-sats { display: contents; }
.carte-liens { grid-area: 1 / 1 / -1 / -1; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.carte-liens line { stroke: var(--vert); stroke-width: 2.5; stroke-dasharray: 6 5; stroke-linecap: round; vector-effect: non-scaling-stroke; transition: stroke .25s ease, stroke-width .25s ease; }
.carte-poles .pole-sphere { position: relative; z-index: 2; left: auto; top: auto; width: auto; height: 86%; aspect-ratio: 1; place-self: center; }
.carte-poles .sat { list-style: none; position: relative; z-index: 2; left: auto; top: auto; width: auto; min-width: 0; min-height: 0; padding: clamp(4px, .9cqw, 10px); }
.carte-poles .sat a { height: 100%; }
.carte-poles .sat-rond { flex: 1; min-height: 0; aspect-ratio: auto; }
.carte-poles .sat-nom { flex: none; height: calc(2 * 1.2em + .9em); padding: .45em .5em; font-size: clamp(.66rem, 1.25cqw, .85rem); }
/* au survol d'une vignette, son trait se renforce */
.carte-poles:has(.sat[data-n="1"] a:is(:hover, :focus-visible)) .carte-liens line:nth-child(1),
.carte-poles:has(.sat[data-n="2"] a:is(:hover, :focus-visible)) .carte-liens line:nth-child(2),
.carte-poles:has(.sat[data-n="3"] a:is(:hover, :focus-visible)) .carte-liens line:nth-child(3),
.carte-poles:has(.sat[data-n="4"] a:is(:hover, :focus-visible)) .carte-liens line:nth-child(4),
.carte-poles:has(.sat[data-n="5"] a:is(:hover, :focus-visible)) .carte-liens line:nth-child(5),
.carte-poles:has(.sat[data-n="6"] a:is(:hover, :focus-visible)) .carte-liens line:nth-child(6),
.carte-poles:has(.sat[data-n="7"] a:is(:hover, :focus-visible)) .carte-liens line:nth-child(7),
.carte-poles:has(.sat[data-n="8"] a:is(:hover, :focus-visible)) .carte-liens line:nth-child(8),
.carte-poles:has(.sat[data-n="9"] a:is(:hover, :focus-visible)) .carte-liens line:nth-child(9),
.carte-poles:has(.sat[data-n="10"] a:is(:hover, :focus-visible)) .carte-liens line:nth-child(10),
.carte-poles:has(.sat[data-n="11"] a:is(:hover, :focus-visible)) .carte-liens line:nth-child(11),
.carte-poles:has(.sat[data-n="12"] a:is(:hover, :focus-visible)) .carte-liens line:nth-child(12) { stroke: var(--vert-fonce); stroke-width: 3.5; stroke-dasharray: none; }
@media (prefers-reduced-motion: reduce) { .carte-liens line { transition: none; } }
/* Écrans étroits : le carré deviendrait illisible, on revient à un pôle sous l'autre
   (sphère en haut, vignettes sur deux colonnes en dessous) */
@media (max-width: 760px) {
  .carte-poles { display: block; aspect-ratio: auto; padding: 1rem; }
  .carte-liens { display: none; }
  .carte-pole { display: flex; flex-direction: column; align-items: center; }
  .carte-pole + .carte-pole { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid rgba(45, 44, 54, .1); }
  .carte-poles .pole-sphere { width: 8.5rem; height: auto; }
  .carte-sats { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; width: 100%; margin: 1.25rem 0 0; padding: 0; list-style: none; }
  .carte-sats::before { content: ""; position: absolute; left: 50%; top: -1.25rem; height: 1.25rem; border-left: 2.5px dashed var(--vert); }
  .carte-poles .sat { grid-area: auto !important; padding: 0; }
  .carte-poles .sat-rond { flex: none; aspect-ratio: 360 / 208; }
  .carte-poles .sat-nom { font-size: .85rem; }
  .carte-poles .sat:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - .375rem); }
}
/* Vignettes « pictogrammes » : pictogramme au trait dans un médaillon, carte blanche sans bandeau sombre */
.carte-picto .sat a { align-items: center; gap: .35em; padding: 7% 6% 4%; background: #FFFFFF; border: 1px solid #E2E5E0; border-radius: 14px; box-shadow: 0 2px 8px rgba(45, 44, 54, .07); }
.carte-picto .sat a:hover, .carte-picto .sat a:focus-visible { border-color: var(--vert); box-shadow: 0 12px 26px rgba(31, 107, 90, .16); }
.carte-picto .picto { flex: 1; min-height: 0; width: 100%; display: block; }
.picto-svg { display: block; width: 100%; height: 100%; overflow: visible; fill: none; stroke: #1F6B5A; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.picto-svg .medaillon { fill: #F3F8EF; stroke: rgba(102, 166, 81, .45); stroke-width: 1.6; transition: fill .25s ease, stroke .25s ease; }
.carte-picto .sat a:hover .medaillon, .carte-picto .sat a:focus-visible .medaillon { fill: #E3EFDA; stroke: var(--vert); }
.picto-svg .a { stroke: #7F5F25; }
.picto-svg .f { fill: #D5E8C6; }
.picto-svg .o { fill: #ECE2CF; }
.picto-svg .w { fill: #FFFFFF; }
.picto-svg .pt { fill: #1F6B5A; stroke: none; }
.carte-picto .sat-nom { background: none; color: #2D2C36; height: calc(2 * 1.2em + .3em); padding: 0 .2em; }
.carte-picto .sat a:hover .sat-nom, .carte-picto .sat a:focus-visible .sat-nom { color: var(--marron); }
@media (max-width: 760px) { .carte-picto .picto { flex: none; height: 6.5rem; } .carte-picto .sat a { padding: .9rem .6rem .5rem; } .carte-picto .sat-nom { height: auto; min-height: calc(2 * 1.2em + .3em); } }
@media (prefers-reduced-motion: reduce) { .picto-svg .medaillon { transition: none; } }

/* Mot mis en valeur avec le dégradé du logo (même couleurs que « Géomètre-Expert » sous le logo) */
/* padding vertical : le dégradé n'est peint que dans la boîte du mot ; avec TeX Gyre Adventor, le haut du G et les accents
   dépassent de cette boîte et étaient rognés. Le padding agrandit la zone peinte sans changer la hauteur de ligne. */
.texte-degrade { padding: .2em 0; white-space: nowrap; background: linear-gradient(90deg, #7DAA5E 0%, #56945D 45%, #2A7466 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.pied-carte .carte-pied { width: 100%; max-width: 340px; height: auto; display: block; margin-left: auto; }
/* Légende discrète sous la carte, alignée sur l'image */
.pied-carte-legende { max-width: 340px; margin: .5rem 0 0 auto; text-align: center; color: #FFFFFF; opacity: .75; font-size: .85rem; letter-spacing: .02em; }
/* Menu déroulant dans le bandeau fixe : la liste reste entièrement accessible même sur un petit écran */
.sous-menu { max-height: calc(100vh - 150px); overflow-y: auto; overscroll-behavior: contain; }
/* Grands écrans : le menu déroulant s'ouvre vers la gauche sous « Nos compétences »,
   avec une largeur fixe et des intitulés qui passent à la ligne si besoin */
@media (min-width: 1021px) {
  .sous-menu { left: auto; right: 0; width: max-content; min-width: 23rem; }
  .menu .sous-menu a { white-space: nowrap; }
  /* Petit menu « Nous connaître » : s'ouvre sous son intitulé, largeur ajustée au contenu */
  .sous-menu-simple { left: 0; right: auto; width: auto; min-width: 15rem; }
  .menu .sous-menu-simple a { white-space: nowrap; }
}
/* Écrans moyens et petits : le menu déroulant prend la largeur du bandeau et les longs intitulés
   passent à la ligne, pour ne jamais dépasser de l'écran */
@media (max-width: 1020px) {
  .entete .conteneur { position: relative; }
  .deroulant { position: static; }
  .sous-menu { left: 1rem; right: 1rem; top: calc(100% - .5rem); min-width: 0; }
  .menu .sous-menu a { white-space: normal; }
}
/* (ancienne carte de la page Contact, plus utilisée) */
.zone-intervention { padding: clamp(2.5rem, 5vw, 4rem) 0; background: var(--papier); }
.zone-intervention .conteneur { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.zone-texte { display: grid; gap: 1rem; }
.zone-texte h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--encre); scroll-margin-top: 120px; }
.zone-texte p { margin: 0; color: var(--encre-douce); }
.zone-legende { list-style: none; margin: .4rem 0; padding: 0; display: grid; gap: .9rem; }
.zone-legende li { display: grid; grid-template-columns: 30px 1fr; gap: .8rem; align-items: start; line-height: 1.45; }
.pastille { width: 26px; height: 20px; border-radius: 4px; margin-top: .15rem; }
.pastille-coeur { background: #A9CF8E; box-shadow: inset 0 0 0 1px rgba(31,107,90,.4); }
.pastille-rayon { background: repeating-linear-gradient(45deg, #F3EDE1 0 4px, #C9AE7F 4px 6.5px); }
.pastille-cercle { border: 2px dashed #7F5F25; border-radius: 50%; width: 22px; height: 22px; margin-left: 2px; }
.zone-note { font-size: .9375rem; }
.zone-carte { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid #E2E2E0; background: #F7F7F5; }
.zone-carte img { width: 100%; height: auto; display: block; }
.zone-carte figcaption { font-size: .75rem; color: #8C8C8C; padding: .4rem .8rem; text-align: right; }
@media (max-width: 860px) { .zone-intervention .conteneur { grid-template-columns: 1fr; } }
.preparer { background: var(--papier); border-top: 5px solid var(--vert); border-radius: 10px; padding: clamp(1.75rem, 4vw, 2.5rem); display: grid; gap: 1rem; }
.preparer h2 { font-size: 1.5rem; color: var(--encre); }
.preparer p { color: var(--encre-douce); }
.preparer ol { margin: 0; padding: 0; list-style: none; display: grid; gap: .85rem; }
.preparer li { display: grid; grid-template-columns: 32px 1fr; gap: .8rem; align-items: start; }
.preparer li::before { content: ""; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--vert-fonce); }

/* ---------- Mentions légales ---------- */
.page-texte { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem); }
.page-texte .conteneur { max-width: 54rem; }
.page-texte section { padding: 1.75rem 0; border-top: 1px solid #E2E4E8; display: grid; gap: .75rem; }
.page-texte section:first-child { border-top: 0; padding-top: 0; }
.page-texte h2 { font-size: 1.375rem; color: var(--encre); }
.page-texte dl { margin: 0; display: grid; grid-template-columns: minmax(9rem, 14rem) 1fr; gap: .5rem 1.5rem; }
.page-texte dt { color: var(--encre-douce); }
.page-texte dd { margin: 0; }
.page-texte ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; }

/* ---------- Pied de page ---------- */
.pied { background: #2D2C36; color: #D2D3D6; font-size: .9375rem; }
.pied-haut { padding: 2.75rem 0 2.25rem; }
/* Formulaire de contact en haut du pied de page */
.pied-formulaire { padding: 2.75rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.pied-formulaire .conteneur { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1.5rem 3rem; align-items: start; }
.pied-formulaire-intro h2 { font-family: var(--f-titre); font-size: 1.6rem; font-weight: 650; color: #fff; margin-bottom: .7rem; letter-spacing: 0; }
.pied-formulaire-intro p { margin: 0; }
.formulaire { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.formulaire .champ { display: grid; gap: .35rem; }
.formulaire .champ-large { grid-column: 1 / -1; }
.formulaire label { color: #fff; font-weight: 600; font-size: .875rem; }
.formulaire .facultatif { font-weight: 400; color: #C9C9CC; }
.formulaire input[type="text"], .formulaire input[type="email"], .formulaire textarea { font: inherit; color: var(--encre); background: #fff; border: 1px solid #fff; border-radius: 6px; padding: .6rem .75rem; width: 100%; }
.formulaire textarea { resize: vertical; min-height: 7rem; }
.formulaire input[type="file"] { font: inherit; font-size: .875rem; color: #D2D3D6; background: rgba(255,255,255,.06); border: 1px dashed rgba(255,255,255,.35); border-radius: 6px; padding: .55rem .75rem; width: 100%; }
.formulaire input[type="file"]::file-selector-button { font: inherit; font-weight: 600; color: var(--encre); background: #fff; border: 0; border-radius: 4px; padding: .35rem .8rem; margin-right: .8rem; cursor: pointer; }
.formulaire input:focus-visible, .formulaire textarea:focus-visible { outline: 3px solid var(--vert); outline-offset: 2px; }
.formulaire button { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; border: 0; font: inherit; font-weight: 600; }
.formulaire button svg { width: 18px; height: 18px; }
.formulaire-rgpd { margin: 0; font-size: .8125rem; color: #B9B9BD; }
.formulaire-rgpd a { color: #D2D3D6; }
/* Message affiche apres l'envoi du formulaire (envoi.php) */
.formulaire-retour { margin: 0; padding: .7rem 1rem; border-radius: 6px; font-weight: 600; }
.formulaire-retour[hidden] { display: none; }
.formulaire-retour.retour-ok { background: #66A651; color: #fff; }
.formulaire-retour.retour-erreur { background: #F3E3C4; color: #5A3F10; }
/* Pièces jointes : jusqu'à 3 champs, empilés */
.fichiers { display: grid; gap: .5rem; }
.fichiers [hidden] { display: none; }
.fichiers-alerte { margin: 0; color: #F2C66D; }
.fichiers-alerte:empty { display: none; }
.formulaire-piege { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 760px) { .pied-formulaire .conteneur, .formulaire { grid-template-columns: 1fr; } }
.pied-haut .conteneur { display: grid; grid-template-columns: minmax(12rem, 1fr) max-content minmax(14rem, 340px); gap: 2rem 3rem; align-items: center; }
/* Logo du bas de page (version retenue le 21/11) : carré blanc net aux angles arrondis, comme les vignettes */
.pied-logo { width: 210px; height: 210px; background: #FFFFFF; border-radius: 12px; display: grid; place-items: center; }
.pied-logo img { width: 180px; height: 180px; display: block; }
.pied { overflow-x: clip; }
/* Variante précédente (fondu rond validé le 21/11), à remettre à la place des deux premières règles si besoin :
.pied-logo { width: 270px; height: 270px; border-radius: 50%; display: grid; place-items: center; margin: 0 0 -14px -45px;
  background: radial-gradient(circle closest-side,
    #FFFFFF 0%, #FFFFFF 66.67%, #FAFAFB 69.45%, #EEEEEF 72.23%, #DBDADC 75%, #C3C3C6 77.78%, #A9A9AE 80.56%,
    #8F8E94 83.34%, #75747B 86.11%, #5D5D65 88.89%, #494952 91.67%, #3A3943 94.45%, #302F39 97.22%, #2D2C36 100%); }
@media (max-width: 760px) { .pied-logo { margin-left: -14px; } }
.pied-logo img { width: 180px; height: 180px; display: block; border-radius: 50%; }
*/
.pied-marque { display: grid; gap: .9rem; align-content: start; }
.pied-marque strong { color: #fff; font-family: var(--f-titre); font-weight: 650; font-size: 1.3rem; }
.pied h2 { font-family: var(--f-texte); font-size: .8125rem; font-weight: 600; color: var(--vert-clair); margin-bottom: .7rem; letter-spacing: .02em; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.pied li { display: flex; gap: .55rem; align-items: baseline; }
.pied li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--vert); flex: none; transform: translateY(-2px); }
.pied a { color: #fff; text-decoration: none; }
.pied a:hover { text-decoration: underline; text-decoration-color: var(--vert); }
.pied address { font-style: normal; display: grid; gap: .3rem; }
/* Bandeau de l'Ordre des géomètres-experts, juste au-dessus du bas de page */
/* Version discrète : bande fine, logo de l'Ordre en blanc et en petit, textes réduits,
   pour que les informations du cabinet restent prioritaires */
.pied-ordre { border-top: 1px solid rgba(255,255,255,.1); padding: .55rem 0; }
.pied-ordre .conteneur { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 3rem; }
/* Ordre et UNGE : petit logo blanc + adresse du site, rien de plus */
.pied-partenaire { display: inline-flex; align-items: center; gap: .7rem; color: #A9A9AE; font-size: .75rem; text-decoration: none; opacity: .85; transition: opacity .2s ease; }
.pied-partenaire:hover { opacity: 1; color: #fff; }
.pied-partenaire img { height: 32px; width: auto; display: block; }
.pied-partenaire-sigle { font-family: var(--f-titre); font-weight: 700; font-size: 1rem; letter-spacing: .12em; color: #fff; }
.pied-ordre-logo:empty { display: none; }
.pied-ordre-logo { display: grid; place-items: center; opacity: .85; }
.pied-ordre-logo img { height: 34px; width: auto; display: block; }
.pied-ordre-logo a { display: block; }
.pied-ordre-logo a:hover { opacity: 1; }
.pied-ordre-texte { display: flex; flex-wrap: wrap; gap: 0 .5rem; align-items: baseline; font-size: .75rem; color: #A9A9AE; }
.pied-ordre-texte strong { color: #D2D3D6; font-family: var(--f-texte); font-weight: 600; font-size: .75rem; }
.pied-ordre-coord { font-style: normal; display: flex; flex-wrap: wrap; gap: 0 .5rem; margin-left: auto; text-align: right; font-size: .75rem; color: #A9A9AE; }
.pied-ordre-coord a { color: #D2D3D6; }
@media (max-width: 760px) { .pied-ordre-coord { margin-left: 0; text-align: left; } .pied-ordre-logo img { height: 30px; } }
.pied-bas { background: var(--vert); color: #2D2C36; font-size: .875rem; }
.pied-bas .conteneur { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; justify-content: center; padding-top: .7rem; padding-bottom: .7rem; }
.pied-bas a { color: #2D2C36; text-decoration: underline; }

/* ---------- Responsive ---------- */
.marque-nom, .marque-titre { white-space: nowrap; }
/* En-tête sur deux niveaux : logo, nom et contact en haut, menu en dessous */
.entete .conteneur { grid-template-columns: auto 1fr; }
.entete-droite { display: contents; }
.entete-contact { justify-self: end; flex-wrap: wrap; justify-content: flex-end; }.entete-droite nav { grid-column: 1 / -1; border-top: 1px solid #E2E4E8; padding-top: .8rem; }
.menu { justify-content: flex-start; }
/* Bandeau sur une seule ligne (grands écrans) : logo + nom à gauche, menu à droite, tailles réduites.
   Le nom reste visible même une fois la page défilée ; seul l'espacement vertical se resserre. */
@media (min-width: 1100px) {
  .entete .conteneur { grid-template-columns: auto 1fr; column-gap: 1.5rem; padding-top: .7rem; padding-bottom: .7rem; }
  .entete .entete-droite nav { grid-column: 2; grid-row: 1; justify-self: end; align-self: end; border-top: 0; padding-top: 0; }
  .entete .marque { grid-row: 1 / span 2; }
  /* coordonnées en bas à droite du bandeau, sous le menu */
  .entete .entete-coord { grid-column: 2; grid-row: 2; justify-self: end; align-self: end; margin-top: .55rem; margin-bottom: -.35rem; }
  .entete .conteneur { row-gap: 0; }
  .entete-reduite .entete .entete-coord { margin-top: .3rem; margin-bottom: 0; }
  .entete .menu { justify-content: flex-end; flex-wrap: nowrap; white-space: nowrap; font-size: .75rem; }
  .entete .menu > li + li::before { width: 10px; height: 3px; margin: 0 .55rem; }
  .marque { gap: .75rem; }
  .marque img { width: 72px; }
  .marque-nom { font-size: 1.4rem; }
  .marque-titre { font-size: 1.1rem; }
  .marque-ingenieur { font-size: 1.1rem; }
  .entete-reduite .entete .conteneur { padding-top: .35rem; padding-bottom: .35rem; }
  .entete-reduite .marque img { width: 54px; }
  .entete-reduite .marque-nom { font-size: 1.25rem; }
  .entete-reduite .marque-titre { font-size: 1rem; }
  .entete-reduite .marque > span { display: block; }
  .entete-reduite .menu { font-size: .75rem; }
}
@media (max-width: 760px) {
  .entete-contact { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 1020px) {
  .diapo { grid-template-columns: 1fr; }
  .diapo-visuel { aspect-ratio: 2 / 1; }
  .carrousel-commandes { left: 1rem; right: auto; top: calc((100vw - 2 * var(--marge)) / 2 - 58px); bottom: auto; }
  .zone-tuiles .conteneur { grid-template-columns: 1fr; }
  .encart { margin-top: 0; }
  .metier, .role .conteneur, .contact .conteneur { grid-template-columns: 1fr; }
  .metier:nth-child(even) .metier-visuel { order: 0; }
  .etapes { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2rem; }
  .etapes::before { display: none; }
  .pied-haut .conteneur { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .entete { position: static; }
  .entete .conteneur { grid-template-columns: 1fr; }
  .entete-droite { justify-items: start; }
  .menu { justify-content: flex-start; }
  .menu > li + li::before { margin: 0 .55rem; width: 10px; }
  .entete-contact .masquable { display: none; }
  .tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .etapes { grid-template-columns: 1fr; gap: 1.4rem; }
  .etapes::before { display: block; left: 22px; right: auto; top: 22px; bottom: 22px; border-top: 0; border-left: 3px dashed rgba(154,196,117,.7); }
  .etape { grid-template-columns: 46px 1fr; column-gap: 1rem; }
  .etape::before { grid-row: span 2; margin-bottom: 0; }
  .bornage-notes, .carte-contact dl { grid-template-columns: 1fr; }
  .pied-haut .conteneur { grid-template-columns: 1fr; }
  .page-texte dl { grid-template-columns: 1fr; gap: .15rem; }
  .page-texte dd { margin-bottom: .6rem; }
}
@media (max-width: 440px) {
  .tuiles { grid-template-columns: 1fr; }
  .marque { gap: .75rem; }
  .marque img { width: 80px; }
  .marque-nom, .marque-titre { font-size: 1.2rem; white-space: normal; }
  .marque-titre, .marque-ingenieur { font-size: 1rem; }
  .menu { font-size: .85rem; }
  .bouton { white-space: normal; }
}

/* Texte réservé aux lecteurs d'écran */
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Pages de compétence ---------- */
.metier-texte h2 a { color: inherit; }
.metier-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .6rem; }
.autres-metiers { background: var(--fond); padding: clamp(2rem, 5vw, 3.25rem) 0; }
.autres-metiers h2 { color: var(--encre); font-size: 1.375rem; margin-bottom: 1rem; }
.autres-metiers ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .75rem; }
.autres-metiers ul a { display: block; height: 100%; background: var(--papier); border-left: 5px solid var(--vert); border-radius: 6px; padding: .9rem 1rem; font-weight: 600; color: var(--encre); text-decoration: none; }
.autres-metiers ul a:hover { border-left-color: var(--marron); color: var(--marron); }
.tous-metiers { margin-top: 1.1rem; }
.tous-metiers a { color: var(--marron); font-weight: 600; }
.tuile:last-child:nth-child(3n+1) { grid-column: 2; }
@media (max-width: 760px) {
  .tuile:last-child:nth-child(3n+1) { grid-column: auto; }
  .tuile:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - .5rem); }
}
@media (max-width: 440px) {
  .tuile:last-child:nth-child(odd) { width: 100%; }
}
/* ---------- Page Le géomètre-expert : blocs d'information ---------- */
.infos { padding: clamp(2.5rem, 5vw, 4rem) 0; background: var(--fond); }
.infos-clair { background: var(--papier); }
.infos h2 { color: var(--encre); }
.infos .intro { color: var(--encre-douce); font-size: 1.0625rem; margin-top: .6rem; max-width: 50rem; }
.infos p { max-width: 50rem; }
.cartes-infos { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.25rem; margin: 1.75rem 0 2rem; }
.carte-info { background: var(--papier); border-top: 4px solid var(--vert); border-radius: 6px; padding: 1.25rem 1.4rem; display: grid; gap: .6rem; align-content: start; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.infos-clair .carte-info { background: var(--fond); }
.carte-info:nth-child(even) { border-top-color: var(--marron); }
.carte-info h3 { font-size: 1.15rem; color: var(--encre); }
.carte-info p { color: var(--encre-douce); }
.sous-titre { font-size: 1.25rem; color: var(--encre); margin: 0 0 .7rem; }
.infos .intro + .sous-titre { margin-top: 1.6rem; }
.infos .titre-suite { margin-top: 2.2rem; }
.liste-puces { list-style: none; margin: .4rem 0 1rem; padding: 0; display: grid; gap: .45rem; }
.liste-puces li { display: flex; gap: .6rem; align-items: baseline; }
.liste-puces li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--vert); flex: none; transform: translateY(-1px); }
.infos-unge { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.infos-unge > div:first-child { display: grid; gap: .9rem; }
.liens-officiels { background: var(--papier); border-left: 5px solid var(--vert); border-radius: 0 8px 8px 0; padding: 1.2rem 1.4rem; display: grid; gap: .6rem; }
.liens-officiels h3 { font-size: 1.1rem; color: var(--encre); }
.liens-officiels ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .4rem; }
.liens-officiels a { color: var(--marron); font-weight: 600; }
.sources-note { margin: 0; color: var(--encre-douce); font-style: italic; }
/* Encadré des sources seul en fin de page : largeur de lecture, fond gris clair sur section blanche */
.liens-sources { max-width: 50rem; }
.liens-sources ul { gap: .15rem; }
.liens-sources li { line-height: 1.45; }
.infos-clair .liens-officiels { background: var(--fond); }
@media (max-width: 760px) { .infos-unge { grid-template-columns: 1fr; } }
/* Page « Qu'est-ce qu'un géomètre-expert ? » : espacements resserrés et colonnes vides mises à profit */
.texte-uniforme .bandeau-page { padding: clamp(1rem, 2.4vw, 1.5rem) 0; }
.texte-uniforme .bandeau-page p:not(.fil) { margin-top: .45rem; }
.page-geometre .infos, .page-geometre .prerogatives { padding: clamp(1.5rem, 3vw, 2.25rem) 0; }
.page-geometre .infos .intro { margin-top: .4rem; }
.page-geometre .cartes-infos { gap: 1rem; margin: 1rem 0 1.25rem; }
.page-geometre .cartes-infos:last-child { margin-bottom: 0; }
.page-geometre .carte-info { padding: 1rem 1.2rem; gap: .4rem; }
.page-geometre .sous-titre { margin-bottom: .4rem; }
.page-geometre .liste-puces { gap: .3rem; margin: .3rem 0 0; }
/* listes à puces sur deux colonnes */
@media (min-width: 900px) { .page-geometre .infos .liste-puces { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; } }
/* « Ses prérogatives » : les trois missions réservées par la loi, sur fond blanc uni
   (les courbes de niveau restent seulement dans le bandeau du titre) */
.prerogatives { background: var(--papier); }
.prerogatives-badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #FFFFFF; background: var(--marron); border-radius: 999px; padding: .28rem .8rem; }
.prerogatives h2 { color: var(--encre); margin-top: 1.1rem; }
.prerogatives .intro { color: var(--encre-douce); margin-top: .4rem; max-width: 50rem; }
.prerogatives-cartes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.prerogative { background: #FFFFFF; border: 1px solid #E2E5E0; border-top: 4px solid var(--vert); border-radius: 10px; padding: 1rem 1.1rem; display: grid; grid-template-columns: 3.75rem minmax(0, 1fr); column-gap: .9rem; row-gap: .25rem; align-content: start; box-shadow: 0 2px 8px rgba(45, 44, 54, .07); }
.prerogative:nth-child(even) { border-top-color: var(--marron); }
.prerogative-picto { grid-row: 1 / span 2; width: 3.75rem; height: 3.75rem; }
.prerogative h3 { font-size: 1.15rem; color: var(--encre); align-self: end; }
.prerogative p { color: var(--encre-douce); }
@media (max-width: 899px) { .prerogatives-cartes { grid-template-columns: 1fr; } }
/* Page Contact : mêmes tailles et mêmes styles d'écriture que la page « Qu'est-ce qu'un géomètre-expert ? »
   titres de bloc = sous-titres (20 px), textes, liens, boutons et champs = texte courant (13 px), puces vertes identiques */
.page-contact .contact, .page-contact .contact-ecrire .pied-formulaire { padding: clamp(1.5rem, 3vw, 2.25rem) 0; }
.page-contact .contact .conteneur { gap: 1rem; }
.page-contact #contenu h2 { font-size: 1.25rem; font-weight: 650; }
.page-contact .carte-contact, .page-contact .preparer { padding: clamp(1rem, 2.4vw, 1.5rem); gap: .7rem; }
.page-contact .preparer { border-top-width: 4px; }
.page-contact #contenu .gros-tel { font-size: 1.25rem; color: var(--vert-fonce); letter-spacing: .02em; }
.page-contact #contenu .gros-tel:hover { color: var(--encre); }
.page-contact .carte-contact dl { gap: .6rem 1.5rem; }
.page-contact .carte-contact dd { font-weight: 400; }
.page-contact #contenu .lien-carte, .page-contact #contenu .bouton { font-size: .8125rem; }
.page-contact .formulaire input[type="text"], .page-contact .formulaire input[type="email"], .page-contact .formulaire textarea, .page-contact .formulaire input[type="file"] { font-size: .8125rem; }
.page-contact .formulaire { gap: .8rem 1.25rem; }
.page-contact .pied-formulaire-intro h2 { margin-bottom: .45rem; }
.page-contact .preparer ol { gap: .3rem; }
.page-contact .preparer li { grid-template-columns: 9px minmax(0, 1fr); gap: .6rem; align-items: baseline; }
.page-contact .preparer li::before { width: 9px; height: 9px; border: 0; background: var(--vert); transform: translateY(-1px); }
/* Sur téléphone, champs à 16 px : en dessous, l'iPhone zoome automatiquement sur le champ touché */
@media (max-width: 819px) { .page-contact .formulaire input[type="text"], .page-contact .formulaire input[type="email"], .page-contact .formulaire textarea { font-size: 1rem; } }

/* Horaires du pied de page sur une seule ligne */
@media (min-width: 441px) { .pied .horaires { white-space: nowrap; } }
/* Liens du pied de page (compétences, navigation) toujours sur une seule ligne */
.pied ul a { white-space: nowrap; }
.pied-haut .conteneur > div:nth-child(2) ul a { white-space: normal; }
@media (max-width: 1100px) { .pied-haut .conteneur { grid-template-columns: 1fr 1fr; } .pied-carte { grid-column: 1 / -1; } .pied-carte .carte-pied, .pied-carte-legende { margin-left: auto; margin-right: auto; } }
@media (max-width: 760px) { .pied-haut .conteneur { grid-template-columns: 1fr; } }

/* ---------- Bas de page compact : moins haut, logo à côté du nom, carte réduite,
   textes à 13 px comme le reste du site, titres « Arpentage et Perspectives » et « Nous trouver » à 16 px ---------- */
.pied { font-size: .8125rem; line-height: 1.6; }
.pied-haut { padding: 1.5rem 0 1.25rem; }
.pied-haut .conteneur { grid-template-columns: minmax(0, 1.25fr) max-content minmax(11rem, 230px); grid-template-areas: "marque trouver carte"; gap: 1.25rem 2.5rem; align-items: center; }
.pied-marque { grid-area: marque; grid-template-columns: 120px minmax(0, 1fr); column-gap: 1.1rem; row-gap: .3rem; align-items: center; align-content: center; }
.pied-logo { grid-row: 1 / span 2; width: 120px; height: 120px; border-radius: 10px; }
.pied-logo img { width: 102px; height: 102px; }
.pied-marque strong { align-self: end; font-size: 1rem; font-weight: 700; }
.pied-marque > span { align-self: start; }
.pied-haut .conteneur > div:nth-child(2) { grid-area: trouver; }
.pied-carte { grid-area: carte; }
.pied h2 { font-family: var(--f-titre); font-size: 1rem; font-weight: 700; letter-spacing: 0; margin-bottom: .35rem; }
.pied address { gap: .1rem; }
.pied-carte .carte-pied { max-width: 230px; }
.pied-carte-legende { max-width: 230px; margin-top: .3rem; font-size: .8125rem; }
.pied-bas { font-size: .8125rem; }
.pied-bas .conteneur { padding-top: .5rem; padding-bottom: .5rem; }
/* Tablette : logo et coordonnées l'un sous l'autre à gauche, carte à droite */
@media (max-width: 1100px) {
  .pied-haut .conteneur { grid-template-columns: minmax(0, 1fr) minmax(11rem, 230px); grid-template-areas: "marque carte" "trouver carte"; }
  .pied-carte .carte-pied, .pied-carte-legende { margin-left: auto; margin-right: 0; }
}
/* Téléphone : une colonne, logo plus petit, carte centrée */
@media (max-width: 760px) {
  .pied-haut .conteneur { grid-template-columns: minmax(0, 1fr); grid-template-areas: "marque" "trouver" "carte"; }
  .pied-marque { grid-template-columns: 96px minmax(0, 1fr); }
  .pied-logo { width: 96px; height: 96px; }
  .pied-logo img { width: 82px; height: 82px; }
  .pied-carte .carte-pied, .pied-carte-legende { margin-left: auto; margin-right: auto; }
}

/* ---------- Parcours du géomètre-expert ---------- */
.parcours-colonnes { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(2rem, 5vw, 4rem); margin-top: 2rem; align-items: start; }
.frise { list-style: none; margin: 0; padding: 0 0 0 1.6rem; position: relative; display: grid; gap: 1.5rem; }
.frise::before { content: ""; position: absolute; left: 6px; top: .4rem; bottom: .4rem; width: 3px; border-radius: 2px; background: var(--vert-clair); }
.frise li { position: relative; display: grid; gap: .2rem; }
.frise li::before { content: ""; position: absolute; left: calc(-1.6rem + 1px); top: .3rem; width: 13px; height: 13px; border-radius: 50%; background: var(--papier); border: 3px solid var(--vert); box-sizing: border-box; }
.frise li:first-child::before { background: var(--vert); }
.frise-date { font-size: .875rem; font-weight: 700; color: var(--marron); letter-spacing: .02em; }
.frise strong { font-size: 1.0625rem; color: var(--encre); }
.frise-lieu { font-size: .9375rem; color: var(--encre-douce); }
.frise p { margin: .2rem 0 0; color: var(--encre-douce); font-size: .9375rem; }
@media (max-width: 860px) { .parcours-colonnes { grid-template-columns: 1fr; } }
/* Page Nos geometres-experts alignee sur la page Qu'est-ce qu'un geometre-expert ? */
.texte-uniforme .parcours-colonnes { margin-top: 1.25rem; }
.texte-uniforme .frise { gap: 1rem; }
.texte-uniforme .frise-date { font-size: .8125rem; }
.texte-uniforme .frise strong { font-size: .9375rem; }
.texte-uniforme .frise-lieu { font-size: .8125rem; }
/* Page Presentation du cabinet : espace avant chaque sous-titre, liste sur une colonne, bouton detache */
.page-geometre p + .sous-titre, .page-geometre ul + .sous-titre { margin-top: 1.25rem; }
@media (min-width: 900px) { .page-geometre .infos .liste-une-colonne { grid-template-columns: 1fr; } }
.page-geometre .bouton-suite { margin-top: 1.25rem; }

/* ---------- Accueil : sans l'encart, les tuiles prennent toute la largeur ---------- */
.zone-tuiles .conteneur { grid-template-columns: 1fr; }

/* Accueil : une couleur par pôle (validé le 25/11/2026).
   --p1 clair, --p2 couleur principale, --p3 foncé. Foncier garde le vert du logo,
   Aménagement le bronze du logo, Topographie un bleu pétrole, Ingénierie une prune (remplace l'ardoise, jugée fade). */
.carte-pole[aria-labelledby="pole-foncier"]     { --p1: #A9CF8A; --p2: #66A651; --p3: #2A7466; }
.carte-pole[aria-labelledby="pole-amenagement"] { --p1: #DDBE80; --p2: #A98140; --p3: #6B4E1E; }
.carte-pole[aria-labelledby="pole-topographie"] { --p1: #93C6D8; --p2: #3F8FAE; --p3: #1F5872; }
.carte-pole[aria-labelledby="pole-ingenierie"]  { --p1: #C9A3C4; --p2: #8E5A8A; --p3: #5A3358; }
.carte-poles .pole-sphere { background: radial-gradient(circle at 32% 28%, var(--p1) 0%, var(--p2) 38%, var(--p3) 100%); box-shadow: 0 10px 24px color-mix(in srgb, var(--p3) 30%, transparent), inset 0 -6px 14px rgba(0, 0, 0, .12); }
.carte-picto .sat a { border-top: 4px solid var(--p2); }
.carte-picto .sat a:hover, .carte-picto .sat a:focus-visible { border-color: var(--p2); }
.carte-liens line:nth-child(-n+4)              { stroke: #66A651; }
.carte-liens line:nth-child(n+5):nth-child(-n+6)  { stroke: #A98140; }
.carte-liens line:nth-child(n+7):nth-child(-n+9)  { stroke: #3F8FAE; }
.carte-liens line:nth-child(n+10)              { stroke: #8E5A8A; }
/* Pictos de l'accueil, style S2 « carreau technique » (validé le 25/11/2026) : carreau blanc droit, filet fin
   de la couleur du pôle, ombre douce ; aplats dans les couleurs du pôle (--p1/--p2/--p3 ci-dessus). */
.picto-sticker { display: block; width: 100%; height: 100%; overflow: visible; fill: none; stroke: #2D2C36; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.picto-sticker .ombre { display: none; }
.picto-sticker .carte { fill: #FFFFFF; stroke: var(--p2); stroke-width: 1.6; transition: stroke-width .2s ease; }
.carte-picto .picto:has(.picto-sticker) { filter: drop-shadow(0 1.5px 2px rgba(45, 44, 54, .14)); }
.carte-picto .sat a:hover .picto-sticker .carte, .carte-picto .sat a:focus-visible .picto-sticker .carte { stroke-width: 2.4; }
.picto-sticker .a { stroke: var(--p3); }
.picto-sticker .f { fill: var(--p1); }
.picto-sticker .o { fill: #F3E9D2; }
.picto-sticker .w { fill: #FFFFFF; }
.picto-sticker .pt { fill: #2D2C36; stroke: none; }
.picto-sticker [stroke="#66A651"] { stroke: var(--p2); }
.picto-sticker [fill="#66A651"] { fill: var(--p2); }
.picto-sticker [stroke="#FFFFFF"] { stroke: #FFFFFF; }
/* Halo lumineux de la couleur du pôle au survol des vignettes (25/11/2026) */
.carte-picto .sat a:hover, .carte-picto .sat a:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--p1) 85%, transparent), 0 0 24px 9px color-mix(in srgb, var(--p2) 65%, transparent), 0 10px 22px rgba(45, 44, 54, .14); }
@media (prefers-reduced-motion: reduce) { .picto-sticker .carte { transition: none; } }

/* Survol d'un pole (vignette ou rond) : les ronds des trois autres poles et leurs traits de liaison passent en transparence ; les vignettes restent pleines (25/11/2026) */
.carte-picto .pole-sphere, .carte-picto .carte-liens line { transition: opacity .35s ease, stroke .25s ease, stroke-width .25s ease; }
.carte-picto:has(:is(.sat, .pole-sphere):is(:hover, :focus-within)) .carte-pole:not(:has(:is(.sat, .pole-sphere):is(:hover, :focus-within))) .pole-sphere { opacity: .65; }
.carte-picto:has(.carte-pole[aria-labelledby="pole-foncier"] :is(.sat, .pole-sphere):is(:hover, :focus-within)) .carte-liens line:not(:nth-child(n+1):nth-child(-n+4)) { opacity: .65; }
.carte-picto:has(.carte-pole[aria-labelledby="pole-amenagement"] :is(.sat, .pole-sphere):is(:hover, :focus-within)) .carte-liens line:not(:nth-child(n+5):nth-child(-n+6)) { opacity: .65; }
.carte-picto:has(.carte-pole[aria-labelledby="pole-topographie"] :is(.sat, .pole-sphere):is(:hover, :focus-within)) .carte-liens line:not(:nth-child(n+7):nth-child(-n+9)) { opacity: .65; }
.carte-picto:has(.carte-pole[aria-labelledby="pole-ingenierie"] :is(.sat, .pole-sphere):is(:hover, :focus-within)) .carte-liens line:not(:nth-child(n+10):nth-child(-n+12)) { opacity: .65; }
@media (prefers-reduced-motion: reduce) { .carte-picto .pole-sphere, .carte-picto .carte-liens line { transition: none; } }

/* Accueil sur grand ecran : toute la carte des competences tient dans un seul ecran sous le bandeau (25/11/2026).
   Carte etiree en largeur (proportion 4 / 2,4) : les deux rangees du milieu (ronds des poles) sont plus hautes
   que les rangees du haut et du bas, les ronds sont donc plus grands ; les vignettes sont en largeur
   (dessin a gauche, nom a droite). Hauteur disponible : ecran - bandeau (~98 px) - titre et phrase (~105 px) - marges.
   Largeur mini 670 px pour rester lisible. */
@media (min-width: 1100px) {
  .presentation { padding-top: 1.25rem; padding-bottom: .75rem; }
  /* titre et phrase d'accueil centres ; phrase toujours sur UNE ligne (elle mesure ~62 fois sa taille de police) : 1,05rem au plus, reduite si la largeur manque */
  .presentation .conteneur { justify-items: center; text-align: center; gap: .55rem; }
  .presentation .chapo { white-space: nowrap; max-width: none; font-size: min(1.05rem, 1.58cqw); line-height: 1.4; }
  /* agrandissement de la carte au-dela de la largeur normale du contenu (--zoom-carte : 1 = largeur normale ; la hauteur d'ecran reste la limite) */
  .zone-poles { --zoom-carte: 1.15; --depasse-ecran: 1.05; } /* --depasse-ecran : 1 = la carte tient juste dans la hauteur d'ecran ; 1,05 = 5 % plus grande, leger defilement */
  .zone-poles .conteneur { max-width: calc((var(--largeur) - 2 * var(--marge)) * var(--zoom-carte) + 2 * var(--marge)); }
  .carte-poles.carte-picto { aspect-ratio: 4 / 2.4; grid-template-rows: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.4fr) minmax(0, 1fr); max-width: min(100%, max(670px, calc((100svh - 222px) * 4 / 2.4 * var(--depasse-ecran, 1)))); }
  .carte-picto .pole-sphere { height: 94%; }
  .carte-picto .sat { align-self: center; height: 12.5cqw; padding: clamp(3px, .45cqw, 6px); } /* moins d'espace entre vignettes : vignettes plus larges */
  .carte-picto .sat a { flex-direction: row; align-items: center; gap: 0; padding: 0 0 0 2.5%; text-align: left; }
  .carte-picto .picto { flex: none; width: auto; height: 72%; aspect-ratio: 1; margin-right: .55em; }
  /* nom en pastille (proposition N3 retenue le 25/11/2026) : blanc dans une pastille arrondie de la couleur foncee du pole */
  .carte-picto .sat-nom { flex: 1; align-self: center; display: flex; align-items: center; justify-content: center; height: auto; min-height: 62%; min-width: 0; margin-right: 4.5%; padding: .7em .85em; border-radius: 1.1em; text-align: center; font-size: clamp(.56rem, 1.25cqw, 1rem); line-height: 1.5; letter-spacing: .065em; color: #FFFFFF; background: var(--p3); }
  .carte-picto .sat a:hover .sat-nom, .carte-picto .sat a:focus-visible .sat-nom { color: #FFFFFF; }
}
/* Trait de liaison de la vignette survolee : couleur foncee de SON pole (et non le vert pour tous) (25/11/2026) */
.carte-poles:has(.sat[data-n="1"] a:is(:hover, :focus-visible)) .carte-liens line:nth-child(1) { stroke: #2A7466; }
.carte-poles:has(.sat[data-n="2"] a:is(:hover, :focus-visible)) .carte-liens line:nth-child(2) { stroke: #2A7466; }
.carte-poles:has(.sat[data-n="3"] a:is(:hover, :focus-visible)) .carte-liens line:nth-child(3) { stroke: #2A7466; }
.carte-poles:has(.sat[data-n="4"] a:is(:hover, :focus-visible)) .carte-liens line:nth-child(4) { stroke: #2A7466; }
.carte-poles:has(.sat[data-n="5"] a:is(:hover, :focus-visible)) .carte-liens line:nth-child(5) { stroke: #6B4E1E; }
.carte-poles:has(.sat[data-n="6"] a:is(:hover, :focus-visible)) .carte-liens line:nth-child(6) { stroke: #6B4E1E; }
.carte-poles:has(.sat[data-n="7"] a:is(:hover, :focus-visible)) .carte-liens line:nth-child(7) { stroke: #1F5872; }
.carte-poles:has(.sat[data-n="8"] a:is(:hover, :focus-visible)) .carte-liens line:nth-child(8) { stroke: #1F5872; }
.carte-poles:has(.sat[data-n="9"] a:is(:hover, :focus-visible)) .carte-liens line:nth-child(9) { stroke: #1F5872; }
.carte-poles:has(.sat[data-n="10"] a:is(:hover, :focus-visible)) .carte-liens line:nth-child(10) { stroke: #5A3358; }
.carte-poles:has(.sat[data-n="11"] a:is(:hover, :focus-visible)) .carte-liens line:nth-child(11) { stroke: #5A3358; }
.carte-poles:has(.sat[data-n="12"] a:is(:hover, :focus-visible)) .carte-liens line:nth-child(12) { stroke: #5A3358; }

/* Impression : garder les couleurs et les fonds comme a l'ecran */
@media print { html { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* ---------- Fiches de compétences : trame de l'accueil et couleurs du pôle ----------
   Classe « fiche-pole » + classe du pôle sur <body> ; mêmes teintes que les sphères de l'accueil. */
.pole-foncier     { --p1: #A9CF8A; --p2: #66A651; --p3: #2A7466; }
.pole-amenagement { --p1: #DDBE80; --p2: #A98140; --p3: #6B4E1E; }
.pole-topographie { --p1: #93C6D8; --p2: #3F8FAE; --p3: #1F5872; }
.pole-ingenierie  { --p1: #C9A3C4; --p2: #8E5A8A; --p3: #5A3358; }
.fiche-pole main { background: #EFEFEE url("topo-dense.svg") center top / 720px 720px repeat; padding-bottom: clamp(2rem, 4vw, 3rem); }
.fiche-pole .bandeau-page { background: transparent; border-bottom: 0; }
.fiche-pole .bandeau-texte { border-top: 4px solid var(--p2); }
.fiche-pole .bandeau-page h1 { color: var(--p3); }
.fiche-pole .infos { background: transparent; padding: 0 0 clamp(1rem, 2.5vw, 1.5rem); }
.fiche-pole .infos > .conteneur { width: calc(100% - 2 * var(--marge)); max-width: calc(var(--largeur) - 2 * var(--marge)); background: #fff; border-top: 4px solid var(--p2); border-radius: 14px; box-shadow: 0 1px 3px rgba(45, 44, 54, .08); padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1.1rem, 3vw, 2.5rem); }
.fiche-pole .infos h2 { color: var(--p3); }
.fiche-pole .liste-puces li::before { background: var(--p2); }
.fiche-pole .encadre { border-left-color: var(--p2); background: color-mix(in srgb, var(--p1) 22%, #fff); }
/* Texte des fiches : même largeur partout (toute la carte) et liste resserrée */
.fiche-pole .infos p, .fiche-pole .infos .intro, .fiche-pole .rappel-loi, .fiche-pole .liste-puces { max-width: none; }
.fiche-pole .liste-puces { gap: .15rem; }

/* ---------- Menu « Nos compétences » : couleurs des pôles, comme l'organigramme de l'accueil ---------- */
#sous-menu-competences { border-top-color: #DCDCDB; }
#sous-menu-competences > .sous-menu-pole:nth-child(1) { --p1: #A9CF8A; --p2: #66A651; --p3: #2A7466; }
#sous-menu-competences > .sous-menu-pole:nth-child(2) { --p1: #DDBE80; --p2: #A98140; --p3: #6B4E1E; }
#sous-menu-competences > .sous-menu-pole:nth-child(3) { --p1: #93C6D8; --p2: #3F8FAE; --p3: #1F5872; }
#sous-menu-competences > .sous-menu-pole:nth-child(4) { --p1: #C9A3C4; --p2: #8E5A8A; --p3: #5A3358; }
#sous-menu-competences > .sous-menu-pole { border-left: 5px solid var(--p2); }
#sous-menu-competences .sous-menu-titre { color: var(--p3); display: flex; align-items: center; gap: .5rem; }
#sous-menu-competences .sous-menu-titre::before { content: ""; width: .65rem; height: .65rem; border-radius: 50%; flex: none; background: radial-gradient(circle at 32% 28%, var(--p1) 0%, var(--p2) 45%, var(--p3) 100%); }
.menu #sous-menu-competences a:hover, .menu #sous-menu-competences a:focus-visible { background: color-mix(in srgb, var(--p1) 38%, #fff); color: var(--p3); }
.menu #sous-menu-competences a[aria-current="page"] { color: var(--p3); border-left-color: var(--p3); }
/* Menus déroulants simples (« Nous connaître ») : même mise en forme, barre verticale anthracite */
.sous-menu-simple { border-top-color: #DCDCDB; }
.sous-menu-simple > li { border-left: 5px solid var(--encre); }
.menu .sous-menu-simple a:hover, .menu .sous-menu-simple a:focus-visible { background: #EDEDEC; color: var(--encre); }
.menu .sous-menu-simple a[aria-current="page"] { color: var(--encre); border-left-color: var(--encre); }

/* ---------- Fiches : deux volets basculants (explications / réalisations du cabinet) ----------
   Le volet actif occupe la carte ; l'autre est résumé par une bande verticale cliquable,
   à droite puis à gauche une fois basculé. Sans JavaScript : les deux volets l'un sous l'autre. */
.fiche-pole .infos > .conteneur.bascule { padding: 0; overflow: hidden; display: grid; grid-template-columns: 0 minmax(0, 1fr) 3.6rem; transition: grid-template-columns .55s ease; }
.fiche-pole .infos > .conteneur.bascule[data-vue="2"] { grid-template-columns: 3.6rem minmax(0, 1fr) 0; }
.bascule-fenetre { overflow: hidden; transition: height .55s ease; }
.bascule-piste { display: flex; align-items: flex-start; transition: transform .55s ease; }
.bascule[data-vue="2"] .bascule-piste { transform: translateX(-100%); }
.bascule-volet { flex: 0 0 100%; min-width: 0; padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1.1rem, 3vw, 2.5rem); }
.bascule-onglet { display: flex; flex-direction: column; align-items: center; min-width: 0; overflow: hidden; margin: 0; padding: 1.4rem 0; border: 0; cursor: pointer; font: 700 .95rem/1.2 var(--f-titre); letter-spacing: .05em; color: var(--p3); background: color-mix(in srgb, var(--p1) 26%, #fff); transition: background .2s ease, color .2s ease; }
.onglet-droite { border-left: 1px solid color-mix(in srgb, var(--p2) 45%, #fff); }
.onglet-gauche { border-right: 1px solid color-mix(in srgb, var(--p2) 45%, #fff); }
.bascule-onglet:hover, .bascule-onglet:focus-visible { background: var(--p2); color: #fff; }
.bascule-onglet:focus-visible { outline: 3px solid var(--p3); outline-offset: -3px; }
.bascule-libelle { position: sticky; top: 1.4rem; display: flex; align-items: center; gap: .7rem; writing-mode: vertical-rl; text-orientation: sideways; white-space: nowrap; }
.bascule-libelle svg { width: 1.3rem; height: 1.3rem; flex: none; }
@media (min-width: 1100px) { .bascule-libelle { top: calc(var(--hauteur-entete, 0px) + 1.4rem); } }
.bascule[data-vue="1"] .onglet-gauche, .bascule[data-vue="2"] .onglet-droite { visibility: hidden; }
@media (max-width: 640px) {
  .fiche-pole .infos > .conteneur.bascule { grid-template-columns: 0 minmax(0, 1fr) 2.7rem; }
  .fiche-pole .infos > .conteneur.bascule[data-vue="2"] { grid-template-columns: 2.7rem minmax(0, 1fr) 0; }
  .bascule-onglet { font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) { .bascule, .bascule-fenetre, .bascule-piste { transition: none !important; } }
.sans-js .fiche-pole .infos > .conteneur.bascule { display: block; }
.sans-js .bascule-piste { display: block; transform: none !important; }
.sans-js .bascule-onglet { display: none; }
/* Bandes du rideau un peu plus visibles : texte plus grand, fond plus soutenu, flèche dans une pastille,
   léger ombrage côté contenu (effet de pli) et petit mouvement de la flèche pour inviter au clic */
.fiche-pole .infos > .conteneur.bascule { grid-template-columns: 0 minmax(0, 1fr) 4.3rem; }
.fiche-pole .infos > .conteneur.bascule[data-vue="2"] { grid-template-columns: 4.3rem minmax(0, 1fr) 0; }
.bascule-onglet { font-size: 1.12rem; background: color-mix(in srgb, var(--p1) 40%, #fff); }
.onglet-droite { box-shadow: inset 7px 0 9px -7px rgba(45, 44, 54, .22); }
.onglet-gauche { box-shadow: inset -7px 0 9px -7px rgba(45, 44, 54, .22); }
.bascule-libelle { gap: .8rem; }
.bascule-libelle svg { width: 1.9rem; height: 1.9rem; padding: .3rem; box-sizing: border-box; border-radius: 50%; background: var(--p2); color: #fff; transition: background .2s ease, color .2s ease; }
.bascule-onglet:hover .bascule-libelle svg, .bascule-onglet:focus-visible .bascule-libelle svg { background: #fff; color: var(--p2); }
@keyframes bascule-invite-gauche { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-5px); } }
@keyframes bascule-invite-droite { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
.onglet-droite .bascule-libelle svg { animation: bascule-invite-gauche 1.1s ease-in-out 1s 3; }
.onglet-gauche .bascule-libelle svg { animation: bascule-invite-droite 1.1s ease-in-out .6s 3; }
.bascule-onglet:hover .bascule-libelle svg { animation: bascule-invite-gauche 1.1s ease-in-out infinite; }
.onglet-gauche:hover .bascule-libelle svg { animation-name: bascule-invite-droite; }
@media (max-width: 640px) {
  .fiche-pole .infos > .conteneur.bascule { grid-template-columns: 0 minmax(0, 1fr) 3.2rem; }
  .fiche-pole .infos > .conteneur.bascule[data-vue="2"] { grid-template-columns: 3.2rem minmax(0, 1fr) 0; }
  .bascule-onglet { font-size: .95rem; }
  .bascule-libelle svg { width: 1.6rem; height: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) { .bascule-libelle svg { animation: none !important; } }
/* Flèche du rideau : mouvement continu (petit aller-retour + halo qui pulse) pour bien la repérer */
@keyframes bascule-halo { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--p2) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 .55rem color-mix(in srgb, var(--p2) 0%, transparent); } }
.onglet-droite .bascule-libelle svg, .onglet-droite:hover .bascule-libelle svg { animation: bascule-invite-gauche 1.6s ease-in-out infinite, bascule-halo 1.6s ease-out infinite; }
.onglet-gauche .bascule-libelle svg, .onglet-gauche:hover .bascule-libelle svg { animation: bascule-invite-droite 1.6s ease-in-out infinite, bascule-halo 1.6s ease-out infinite; }
@media (prefers-reduced-motion: reduce) { .bascule-libelle svg { animation: none !important; } }

/* ---------- Rideau horizontal (variante) : les bandes passent en haut et en bas ----------
   Volet 1 affiché : bande « réalisations » en bas, qui reste visible en bas de l'écran pendant la lecture.
   Volet 2 affiché : le rideau remonte, bande « … en quelques mots » en haut. */
.fiche-pole .infos > .conteneur.bascule.bascule-horizontale,
.fiche-pole .infos > .conteneur.bascule.bascule-horizontale[data-vue="2"] { grid-template-columns: minmax(0, 1fr); grid-template-rows: 0 minmax(0, 1fr) 4rem; transition: grid-template-rows .55s ease; overflow: clip; }
.fiche-pole .infos > .conteneur.bascule.bascule-horizontale[data-vue="2"] { grid-template-rows: 4rem minmax(0, 1fr) 0; }
.bascule-horizontale .onglet-gauche { grid-row: 1; }
.bascule-horizontale .bascule-fenetre { grid-row: 2; }
.bascule-horizontale .onglet-droite { grid-row: 3; }
.bascule-horizontale .bascule-piste { flex-direction: column; }
.bascule-horizontale .bascule-volet { flex: 0 0 auto; width: 100%; }
.bascule-horizontale .bascule-onglet { flex-direction: row; justify-content: center; padding: 0 1rem; min-height: 0; position: sticky; z-index: 2; }
.bascule-horizontale .onglet-droite { bottom: 0; border-left: 0; border-top: 1px solid color-mix(in srgb, var(--p2) 45%, #fff); box-shadow: inset 0 7px 9px -7px rgba(45, 44, 54, .22); }
.bascule-horizontale .onglet-gauche { top: 0; border-right: 0; border-bottom: 1px solid color-mix(in srgb, var(--p2) 45%, #fff); box-shadow: inset 0 -7px 9px -7px rgba(45, 44, 54, .22); }
@media (min-width: 1100px) { .bascule-horizontale .onglet-gauche { top: var(--hauteur-entete, 0px); } }
.bascule-horizontale .bascule-libelle { position: static; writing-mode: horizontal-tb; white-space: normal; text-align: center; }
@keyframes bascule-monte { 0%, 100% { transform: translateY(0) rotate(90deg); } 50% { transform: translateY(-5px) rotate(90deg); } }
@keyframes bascule-descend { 0%, 100% { transform: translateY(0) rotate(90deg); } 50% { transform: translateY(5px) rotate(90deg); } }
.bascule-horizontale .onglet-droite .bascule-libelle svg, .bascule-horizontale .onglet-droite:hover .bascule-libelle svg { animation: bascule-monte 1.6s ease-in-out infinite, bascule-halo 1.6s ease-out infinite; }
.bascule-horizontale .onglet-gauche .bascule-libelle svg, .bascule-horizontale .onglet-gauche:hover .bascule-libelle svg { animation: bascule-descend 1.6s ease-in-out infinite, bascule-halo 1.6s ease-out infinite; }
@media (max-width: 640px) {
  .fiche-pole .infos > .conteneur.bascule.bascule-horizontale { grid-template-columns: minmax(0, 1fr); grid-template-rows: 0 minmax(0, 1fr) 3.4rem; }
  .fiche-pole .infos > .conteneur.bascule.bascule-horizontale[data-vue="2"] { grid-template-rows: 3.4rem minmax(0, 1fr) 0; }
}
@media (prefers-reduced-motion: reduce) { .bascule-horizontale .bascule-libelle svg { animation: none !important; transform: rotate(90deg); } }
/* Carte du pied de page intégrée au code de la page : ses numéros de départements prennent la police du site */
.carte-num { font-family: var(--f-titre); font-weight: 700; fill: #1F5A4C; text-anchor: middle; dominant-baseline: central; }
