/* ==========================================================================
   racine.css — pages racine : about, services, solutions, pointeuses,
   contact, politique, termes
   --------------------------------------------------------------------------
   Ces pages portent <body class="page-home page-racine"> et chargent home.css
   avant cette feuille : jetons, typographie, header, boutons, cartes (.service,
   .solution, .device), à propos (.home-apropos__ligne) et pied de page sont
   ceux de l'accueil. Ici, seulement ce qui leur est propre, préfixé par
   body.page-racine.

   Comme sur l'accueil, le contenu CMS (innerHTML sur des id, others.js /
   contact.js) n'est stylé que par son conteneur, jamais par son id.

   Sommaire
     1. Hero compact et fil d'Ariane
     2. Visuels du hero (application, photos, pointeuses)
     3. Grilles de cartes, puces, cases à cocher
     4. Étapes
     5. Sections sombres, bandeau d'appel à l'action
     6. FAQ (<details>)
     7. Pointeuses : familles et fiches PDF
     8. Solutions : secteurs et villes
     9. Contact
    10. Pages légales
    11. Responsive
    12. Pages générées (body.page-seo) : les 139 pages de tools/seo-generator
        portent aussi page-home et page-racine, et donc ce design
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO COMPACT ET FIL D'ARIANE
   -------------------------------------------------------------------------- */
body.page-racine #main_div.page-hero {
  padding: calc(var(--ep-header-h) + 26px) 0 80px !important;
}

body.page-racine #main_div .page-hero__titre {
  margin: 18px 0 16px !important;
  font-size: clamp(36px, 4.4vw, 58px);
  line-height: 1.06 !important;
}

body.page-racine .page-hero .home-hero__chapeau {
  max-width: 620px;
}

body.page-racine .page-hero .home-hero__complement {
  max-width: 620px;
}

body.page-racine .page-hero .home-hero__actions {
  margin-top: 28px;
}

/* Pages légales : hero sans visuel, plus court */
body.page-racine #main_div.page-hero--court {
  padding-bottom: 56px !important;
}

body.page-racine .page-hero--court .home-hero__chapeau {
  margin: 0;
}

body.page-racine .page-hero__note {
  margin: 14px 0 0;
  color: #8fd0ff;
  font: 700 14px/1.4 var(--h-titre);
}

body.page-racine .page-fil ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  color: #8aa3be;
  font: 600 13px/1.4 var(--h-titre);
}

body.page-racine .page-fil li + li::before {
  content: "/";
  margin-right: 6px;
  opacity: .55;
}

body.page-racine .page-fil a {
  color: #cfe3f7;
}

body.page-racine .page-fil a:hover {
  color: #fff;
}

body.page-racine .page-fil [aria-current] {
  color: #8fd0ff;
}

/* --------------------------------------------------------------------------
   2. VISUELS DU HERO
   -------------------------------------------------------------------------- */
body.page-racine .page-visuel {
  position: relative;
  z-index: 1;
  padding: 30px 0 46px 24px;
  perspective: 1800px;
}

body.page-racine .page-visuel:hover .home-mock {
  transform: rotateY(-3deg) rotateX(1.5deg);
}

body.page-racine .page-visuel .home-mock--second {
  width: 58%;
  margin: -12% -2% 0 auto;
}

body.page-racine .page-visuel:hover .home-mock--second {
  transform: rotateY(-3deg) rotateX(1.5deg) translateZ(40px);
}

body.page-racine .page-visuel .home-carte--pointage {
  top: 4px;
}

body.page-racine .page-visuel .home-carte--conge {
  bottom: 6px;
  left: 6%;
}

/* Photos d'installations, en éventail */
body.page-racine .page-visuel--photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 20px 0 20px 16px;
}

body.page-racine .page-visuel--photos figure {
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--h-ombre-lg), 0 0 0 1px rgba(255, 255, 255, .08);
}

body.page-racine .page-visuel--photos figure:first-child {
  grid-row: span 2;
}

body.page-racine .page-visuel--photos img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.page-racine .page-visuel--photos figure:first-child img {
  aspect-ratio: 3 / 4.2;
}

body.page-racine .page-visuel--photos figure:not(:first-child) img {
  aspect-ratio: 4 / 3.9;
}

/* Une photo d'installation, cartes flottantes autour */
body.page-racine .page-visuel--photo {
  max-width: 440px;
  margin-left: auto;
  padding: 30px 26px 40px;
}

body.page-racine .page-visuel--photo figure {
  margin: 0;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--h-ombre-lg), 0 0 0 1px rgba(255, 255, 255, .08), 0 0 80px -10px rgba(52, 198, 232, .35);
  transform: rotate(1.2deg);
}

body.page-racine .page-visuel--photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 4.7;
  object-fit: cover;
}

body.page-racine .page-visuel--photo .home-carte--pointage {
  top: 8px;
  left: -26px;
}

body.page-racine .page-visuel--photo .home-carte--gps {
  top: 46%;
  right: -34px;
}

body.page-racine .page-visuel--photo .home-carte--conge {
  bottom: 8px;
  left: -18px;
}

/* Pointeuses posées sur un halo */
body.page-racine .page-visuel--appareils {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4%;
  min-height: 380px;
  padding: 40px 0 30px;
}

body.page-racine .page-visuel--appareils::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: 12px;
  width: 92%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(52, 198, 232, .32), rgba(52, 198, 232, 0));
  transform: translateX(-50%);
}

body.page-racine .page-visuel--appareils img {
  width: 30%;
  height: auto;
  filter: drop-shadow(0 26px 28px rgba(0, 0, 0, .5));
  animation: home-flotte 8s ease-in-out infinite;
}

body.page-racine .page-visuel--appareils img:nth-child(2) {
  width: 34%;
  animation-delay: -2.6s;
}

body.page-racine .page-visuel--appareils img:nth-child(3) {
  animation-delay: -5.2s;
}

/* --------------------------------------------------------------------------
   3. GRILLES DE CARTES, PUCES, CASES À COCHER
   -------------------------------------------------------------------------- */
/* Flex centré, jamais auto-fill : une dernière rangée incomplète reste centrée. */
body.page-racine .page-grille {
  --cols: 3;
  --gap: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
}

body.page-racine .page-grille--4 {
  --cols: 4;
}

body.page-racine .page-grille--2 {
  --cols: 2;
}

body.page-racine .page-grille > * {
  flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  min-width: 0;
}

/* Carte-lien : icône, titre, texte, « En savoir plus » (même famille que .solution) */
body.page-racine .page-lien-carte {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px 22px;
  border-radius: var(--h-rayon);
  background: #fff;
  border: 1px solid var(--h-line);
  color: var(--h-text) !important;
  text-decoration: none;
  box-shadow: var(--h-ombre-sm);
  overflow: hidden;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease, border-color .3s ease;
}

body.page-racine .page-lien-carte::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--h-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}

body.page-racine .page-lien-carte:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 132, 195, .32);
  box-shadow: var(--h-ombre);
}

body.page-racine .page-lien-carte:hover::after {
  transform: scaleX(1);
}

body.page-racine .page-lien-carte__icone {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(145deg, #eef6fd, #e2eef9);
  color: var(--h-blue);
  font-size: 26px;
  line-height: 0;
}

body.page-racine .page-lien-carte h3 {
  margin: 4px 0 0;
  font-size: 17.5px;
  font-weight: 800;
}

body.page-racine .page-lien-carte p {
  margin: 0;
  color: var(--h-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

body.page-racine .page-lien-carte__plus {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding-top: 4px;
  color: var(--h-blue-600);
  font: 700 13.5px/1 var(--h-titre);
}

body.page-racine .page-lien-carte__plus i {
  transition: transform .2s ease;
}

body.page-racine .page-lien-carte:hover .page-lien-carte__plus i {
  transform: translateX(3px);
}

/* Version compacte : icône à côté du titre */
body.page-racine .page-grille--compacte .page-lien-carte {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 14px;
  padding: 18px;
}

body.page-racine .page-grille--compacte .page-lien-carte__icone {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 22px;
}

body.page-racine .page-grille--compacte .page-lien-carte h3 {
  margin: 0;
  font-size: 16px;
}

body.page-racine .page-grille--compacte .page-lien-carte p,
body.page-racine .page-grille--compacte .page-lien-carte__plus {
  grid-column: 1 / -1;
}

body.page-racine .page-grille--compacte .page-lien-carte p {
  font-size: 14px;
}

/* Les cartes .service de l'accueil, en grille centrée */
body.page-racine .page-grille .service {
  display: flex;
  flex-direction: column;
  height: 100%;
}

body.page-racine .page-service__lien {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding-top: 14px;
  color: var(--h-blue-600);
  font: 700 13.5px/1 var(--h-titre);
}

body.page-racine .page-service__lien i {
  transition: transform .2s ease;
}

body.page-racine .page-service__lien:hover i {
  transform: translateX(3px);
}

/* Les cartes .solution (modules du CMS), textes longs de solutions.html */
body.page-racine .page-modules .solution {
  flex-direction: row;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
}

body.page-racine .page-modules .solution__icone {
  flex: none;
}

body.page-racine .page-modules .solution__corps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

body.page-racine .page-modules .solution__titre {
  margin: 4px 0 0;
}

body.page-racine .page-modules .solution__texte {
  font-size: 15px;
  line-height: 1.7;
}

body.page-racine .page-modules .solution__plus {
  opacity: 1;
  transform: none;
}

/* Puces (liens courts) */
body.page-racine .page-puces {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.page-racine .page-puce {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--h-line);
  color: var(--h-ink) !important;
  font: 700 13.5px/1.1 var(--h-titre);
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

body.page-racine .page-puce i {
  color: var(--h-blue);
  font-size: 17px;
  line-height: 0;
}

body.page-racine .page-puce:hover {
  border-color: rgba(56, 132, 195, .45);
  color: var(--h-blue-600) !important;
  transform: translateY(-2px);
}

body.page-racine .page-puce b {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--h-grad);
  color: #fff;
  font-size: 11.5px;
}

/* Sur le fond sombre du hero */
body.page-racine .page-puces--hero {
  margin-top: 26px;
}

body.page-racine .page-puces--hero .page-puce {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .14);
  color: #e6f0fb !important;
  backdrop-filter: blur(8px);
}

body.page-racine .page-puces--hero .page-puce i {
  color: #8fd0ff;
}

body.page-racine .page-puces--hero .page-puce:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(143, 208, 255, .4);
  color: #fff !important;
}

/* Liste à coches vertes */
body.page-racine .page-coches {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

body.page-racine .page-coches li {
  display: flex;
  gap: 12px;
  padding: 7px 0;
  color: var(--h-text);
  font-size: 15.5px;
  line-height: 1.6;
}

body.page-racine .page-coches li > i {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(31, 157, 107, .12);
  color: #1f9d6b;
  font-size: 15px;
  line-height: 0;
}

/* Deux colonnes : texte et visuel */
body.page-racine .page-duo {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: center;
  gap: 56px;
}

body.page-racine .page-duo--inverse {
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
}

body.page-racine .page-duo--inverse > :first-child {
  order: 2;
}

body.page-racine .page-duo h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 800;
}

body.page-racine .page-duo p {
  color: var(--h-muted);
  font-size: 16.5px;
}

body.page-racine .page-duo .home-kicker {
  color: var(--h-blue-600);
  font-size: 12.5px;
}

body.page-racine .page-encart {
  margin: 22px 0 0;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--h-bg);
  border: 1px solid var(--h-line);
  border-left: 4px solid var(--h-blue);
  color: var(--h-text);
  font-size: 15.5px;
}

body.page-racine .page-encart strong {
  color: var(--h-ink);
}

body.page-racine .page-mock-simple {
  position: relative;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--h-ombre), 0 0 0 1px rgba(15, 34, 59, .05);
  overflow: hidden;
}

body.page-racine .page-mock-simple img {
  display: block;
  width: 100%;
  height: auto;
}

/* Titre CMS de la section Plateforme (services.html) : colonne étroite */
body.page-racine .home-services__intro .home-head h2 {
  font-size: clamp(26px, 2.4vw, 34px);
}

body.page-racine .home-centre .btn-home {
  margin-top: 34px;
}

/* Galerie des réalisations (render.render_galerie) : arrondis de l'accueil */
body.page-racine .seo-galerie__lien {
  border-radius: 20px;
}

body.page-racine .seo-galerie__item figcaption {
  color: var(--h-muted);
}

/* --------------------------------------------------------------------------
   4. ÉTAPES
   -------------------------------------------------------------------------- */
body.page-racine .page-etapes {
  --n: 5;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: etape;
}

body.page-racine .page-etapes--3 {
  --n: 3;
}

body.page-racine .page-etapes--4 {
  --n: 4;
}

/* Trait qui relie les numéros */
body.page-racine .page-etapes::before {
  content: "";
  position: absolute;
  top: 25px;
  left: calc(100% / var(--n) / 2);
  right: calc(100% / var(--n) / 2);
  height: 2px;
  background: linear-gradient(90deg, rgba(56, 132, 195, .15), rgba(52, 198, 232, .6), rgba(56, 132, 195, .15));
}

body.page-racine .page-etapes li {
  position: relative;
  text-align: center;
  counter-increment: etape;
}

body.page-racine .page-etapes li::before {
  content: counter(etape);
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: var(--h-ink);
  color: #fff;
  font: 800 18px/1 var(--h-titre);
  box-shadow: 0 0 0 6px #fff, 0 14px 26px -12px rgba(15, 34, 59, .6);
}

body.page-racine .home-section--soft .page-etapes li::before {
  box-shadow: 0 0 0 6px var(--h-bg), 0 14px 26px -12px rgba(15, 34, 59, .6);
}

body.page-racine .page-etapes h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
}

body.page-racine .page-etapes p {
  margin: 0;
  color: var(--h-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   5. SECTIONS SOMBRES, BANDEAU D'APPEL À L'ACTION
   -------------------------------------------------------------------------- */
body.page-racine .page-section--sombre {
  position: relative;
  isolation: isolate;
  padding: 72px 0 84px;
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(56, 132, 195, .35), transparent 65%),
    radial-gradient(700px 420px at 100% 100%, rgba(52, 198, 232, .22), transparent 65%),
    linear-gradient(180deg, var(--h-navy-900), var(--h-navy-800));
  color: #b9cbe0;
}

body.page-racine .page-section--sombre .home-head h2 {
  color: #fff;
}

body.page-racine .page-section--sombre .home-head p:not(.home-kicker) {
  color: #a9c2dc;
}

body.page-racine .page-section--sombre .home-kicker {
  background: rgba(143, 208, 255, .12);
  color: var(--h-blue-300);
}

body.page-racine .page-cta {
  padding: 30px 0 80px;
}

body.page-racine .page-cta__carte {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 44px 48px;
  border-radius: 28px;
  background:
    radial-gradient(520px 260px at 100% 0%, rgba(52, 198, 232, .38), transparent 62%),
    radial-gradient(420px 240px at 0% 100%, rgba(56, 132, 195, .45), transparent 62%),
    linear-gradient(150deg, var(--h-navy-950), var(--h-navy-700));
  box-shadow: var(--h-ombre-lg);
  overflow: hidden;
}

body.page-racine .page-cta__carte::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.1'%3E%3Crect x='24' y='24' width='40' height='40'/%3E%3Crect x='24' y='24' width='40' height='40' transform='rotate(45 44 44)'/%3E%3Ccircle cx='44' cy='44' r='8'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 88px 88px;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000);
  mask-image: linear-gradient(90deg, transparent 30%, #000);
}

body.page-racine .page-cta__carte h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 800;
}

body.page-racine .page-cta__carte p {
  max-width: 620px;
  margin: 0;
  color: #a9c2dc;
  font-size: 16.5px;
}

body.page-racine .page-cta__actions {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   6. FAQ (<details>, sans JavaScript)
   -------------------------------------------------------------------------- */
body.page-racine .page-faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.page-racine .page-faq__item {
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--h-line);
  box-shadow: var(--h-ombre-sm);
  transition: border-color .25s ease, box-shadow .25s ease;
}

body.page-racine .page-faq__item:hover,
body.page-racine .page-faq__item[open] {
  border-color: rgba(56, 132, 195, .3);
}

body.page-racine .page-faq__item[open] {
  box-shadow: var(--h-ombre);
}

body.page-racine .page-faq__item summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  color: var(--h-ink);
  font: 700 16px/1.4 var(--h-titre);
  letter-spacing: -.01em;
  list-style: none;
  cursor: pointer;
}

body.page-racine .page-faq__item summary::-webkit-details-marker {
  display: none;
}

body.page-racine .page-faq__item summary:focus-visible {
  outline: 3px solid rgba(52, 198, 232, .7);
  outline-offset: 2px;
  border-radius: 18px;
}

body.page-racine .page-faq__item summary > i:first-child {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--h-bg-2);
  color: var(--h-blue);
  font-size: 19px;
  line-height: 0;
}

body.page-racine .page-faq__item summary > span {
  flex: 1;
  min-width: 0;
}

body.page-racine .page-faq__fleche {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--h-bg);
  color: var(--h-muted);
  font-size: 20px;
  line-height: 0;
  transition: transform .25s ease, background-color .25s ease, color .25s ease;
}

body.page-racine .page-faq__item[open] .page-faq__fleche {
  transform: rotate(180deg);
  background: var(--h-grad);
  color: #fff;
}

body.page-racine .page-faq__reponse {
  padding: 0 22px 20px 68px;
}

body.page-racine .page-faq__reponse p {
  margin: 0;
  color: var(--h-muted);
  font-size: 15.5px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   7. POINTEUSES : FAMILLES ET FICHES PDF
   -------------------------------------------------------------------------- */
body.page-racine .page-famille + .page-famille {
  margin-top: 56px;
}

/* Chaque famille : en-tête centré, puis ses modèles en rangée centrée (une famille de deux
   modèles ne laisse pas la moitié de la rangée vide d'un côté). */
body.page-racine .page-famille__tete {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto 26px;
  text-align: center;
}

body.page-racine .page-famille__icone {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--h-grad);
  color: #fff;
  font-size: 26px;
  line-height: 0;
  box-shadow: 0 12px 24px -12px rgba(47, 182, 223, .85);
}

body.page-racine .page-famille__tete h3 {
  margin: 4px 0 0;
  color: #fff;
  font-size: 23px;
  font-weight: 800;
}

body.page-racine .page-famille__tete p {
  margin: 0;
  color: #a9c2dc;
  font-size: 15.5px;
}

body.page-racine .page-famille__lien {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--h-blue-300) !important;
  font: 700 14px/1 var(--h-titre);
}

body.page-racine .page-famille__lien i {
  transition: transform .2s ease;
}

body.page-racine .page-famille__lien:hover i {
  transform: translateX(3px);
}

/* Largeur d'une carte : celle d'une rangée de quatre, quel que soit le nombre de modèles. */
body.page-racine .page-famille__grille {
  --gap: 18px;
}

body.page-racine .page-famille__grille > * {
  flex-basis: calc((100% - 3 * var(--gap)) / 4);
}

body.page-racine .device__nom {
  font-size: 16.5px;
}

body.page-racine .device__texte {
  margin: 0;
  color: #a9c2dc;
  font-size: 13.5px;
  line-height: 1.55;
}

body.page-racine .page-fiches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body.page-racine .page-fiche {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--h-line);
  color: var(--h-text) !important;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

body.page-racine .page-fiche:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 132, 195, .4);
  box-shadow: var(--h-ombre-sm);
}

body.page-racine .page-fiche > i:first-child {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fdecec;
  color: #d93a3a;
  font-size: 24px;
  line-height: 0;
}

body.page-racine .page-fiche__texte {
  flex: 1;
  min-width: 0;
}

body.page-racine .page-fiche__texte strong {
  display: block;
  color: var(--h-ink);
  font: 800 15px/1.3 var(--h-titre);
}

body.page-racine .page-fiche__texte > span {
  display: block;
  margin-top: 2px;
  color: var(--h-muted);
  font-size: 13px;
  line-height: 1.4;
}

body.page-racine .page-fiche__action {
  flex: none;
  color: var(--h-blue);
  font-size: 20px;
}

/* --------------------------------------------------------------------------
   8. SOLUTIONS : SECTEURS ET VILLES
   -------------------------------------------------------------------------- */
body.page-racine .page-territoires {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

body.page-racine .page-territoires__bloc {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border-radius: var(--h-rayon);
  background: #fff;
  border: 1px solid var(--h-line);
  box-shadow: var(--h-ombre-sm);
}

body.page-racine .page-territoires__bloc h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

body.page-racine .page-territoires__bloc h3 i {
  color: var(--h-blue);
  font-size: 24px;
}

body.page-racine .page-territoires__bloc .page-puce {
  background: var(--h-bg);
  font-size: 13px;
}

body.page-racine .page-territoires__tout {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  color: var(--h-blue-600);
  font: 700 14px/1 var(--h-titre);
}

/* --------------------------------------------------------------------------
   9. CONTACT
   -------------------------------------------------------------------------- */
/* « Après votre message » : trois étapes sur verre dépoli, dans le hero */
body.page-racine .page-suite {
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .13);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* #main_div : my_style.css colore et dimensionne tout h2 du hero (#main_div h2) */
body.page-racine #main_div .page-suite h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
}

body.page-racine .page-suite ol {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: suite;
}

body.page-racine .page-suite li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  column-gap: 14px;
  counter-increment: suite;
}

body.page-racine .page-suite li::before {
  content: counter(suite);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--h-grad);
  color: #fff;
  font: 800 16px/1 var(--h-titre);
  box-shadow: 0 10px 22px -10px rgba(52, 198, 232, .8);
}

body.page-racine .page-suite strong {
  color: #fff;
  font: 700 15.5px/1.35 var(--h-titre);
}

body.page-racine .page-suite span {
  color: #a9c2dc;
  font-size: 14.5px;
  line-height: 1.55;
}

/* La carte du formulaire chevauche le bas du hero. */
body.page-racine #main_div.page-hero--contact {
  padding-bottom: 150px !important;
}

body.page-racine .page-contact {
  position: relative;
  z-index: 5;
  margin-top: -110px;
  padding-bottom: 30px;
}

body.page-racine .page-contact .home-contact__panneau {
  justify-content: flex-start;
}

body.page-racine .page-contact__coordonnees {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

/* > li > a : le CMS injecte un lien tel: dans #header_phone, lui-même dans le lien */
body.page-racine .page-contact__coordonnees > li > a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #e6f0fb !important;
  font-size: 15px;
  letter-spacing: .02em;
  transition: background-color .2s ease;
}

body.page-racine .page-contact__coordonnees > li > a:hover {
  background: rgba(255, 255, 255, .12);
}

body.page-racine .page-contact__coordonnees a a {
  color: inherit !important;
}

body.page-racine .page-contact__coordonnees i,
body.page-racine .page-contact__coordonnees img {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 18px;
  line-height: 0;
}

/* la règle .home-contact__panneau img (illustration) ne doit pas s'appliquer à l'icône */
body.page-racine .page-contact__coordonnees img {
  max-width: none;
  margin: 0;
  padding: 7px;
  background: #25d366;
}

body.page-racine .page-contact__coordonnees small {
  display: block;
  color: #8aa3be;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body.page-racine .page-contact .home-contact__formulaire h2 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
}

body.page-racine .page-contact .home-contact__formulaire > p {
  margin: 0 0 22px;
  color: var(--h-muted);
  font-size: 15px;
}

body.page-racine .page-contact .email-form label:not(.visually-hidden) {
  display: block;
  margin-bottom: 6px;
  color: var(--h-ink);
  font: 700 13.5px/1.2 var(--h-titre);
}

body.page-racine .page-contact .email-form .row {
  --bs-gutter-x: 14px;
}

/* --------------------------------------------------------------------------
   10. PAGES LÉGALES (texte injecté par le CMS)
   -------------------------------------------------------------------------- */
body.page-racine .page-doc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 36px;
}

body.page-racine .page-doc__texte {
  min-height: 260px;
  padding: 44px 48px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--h-line);
  box-shadow: var(--h-ombre-sm);
  color: var(--h-text);
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

body.page-racine .page-doc__texte h2,
body.page-racine .page-doc__texte h3,
body.page-racine .page-doc__texte h4 {
  margin: 1.6em 0 .6em;
  color: var(--h-ink);
  font-size: 20px;
  font-weight: 800;
}

body.page-racine .page-doc__texte strong {
  color: var(--h-ink);
}

body.page-racine .page-doc__texte ol,
body.page-racine .page-doc__texte ul {
  margin: 1em 0;
  padding-left: 1.3em;
}

body.page-racine .page-doc__texte li {
  margin: .35em 0;
}

body.page-racine .page-doc__texte li::marker {
  color: var(--h-blue);
  font-weight: 700;
}

body.page-racine .page-doc__texte a {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(56, 132, 195, .35);
  text-underline-offset: 3px;
}

body.page-racine #loading_image {
  display: grid;
  place-items: center;
  min-height: 200px;
}

body.page-racine .page-doc__aside {
  position: sticky;
  top: calc(var(--ep-header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.page-racine .page-doc__carte {
  padding: 22px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--h-line);
}

body.page-racine .page-doc__carte h2 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
}

body.page-racine .page-doc__carte ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.page-racine .page-doc__carte li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  color: var(--h-text);
  font-size: 14.5px;
}

body.page-racine .page-doc__carte li + li a {
  border-top: 1px solid var(--h-line);
}

body.page-racine .page-doc__carte li a i {
  color: var(--h-blue);
  font-size: 18px;
}

body.page-racine .page-doc__carte li a[aria-current] {
  color: var(--h-blue-600);
  font-weight: 700;
}

body.page-racine .page-doc__carte--sombre {
  background: linear-gradient(160deg, var(--h-navy-900), var(--h-navy-700));
  border: 0;
  color: #a9c2dc;
}

body.page-racine .page-doc__carte--sombre h2 {
  color: #fff;
}

body.page-racine .page-doc__carte--sombre p {
  margin: 0 0 16px;
  font-size: 14.5px;
}

body.page-racine .page-doc__carte--sombre .btn-home {
  width: 100%;
  padding: 13px 18px;
  font-size: 14.5px;
}

/* --------------------------------------------------------------------------
   11. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
  body.page-racine .page-grille--4 {
    --cols: 3;
  }

  body.page-racine .page-famille__grille > * {
    flex-basis: calc((100% - 2 * var(--gap)) / 3);
  }

  body.page-racine .page-fiches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  body.page-racine #main_div.page-hero {
    padding: calc(var(--ep-header-h) + 22px) 0 64px !important;
  }

  body.page-racine .page-visuel {
    max-width: 600px;
    margin: 40px auto 0;
  }

  body.page-racine .page-visuel--appareils {
    min-height: 0;
    max-width: 520px;
  }

  body.page-racine .page-grille,
  body.page-racine .page-grille--4 {
    --cols: 2;
  }

  body.page-racine .page-duo,
  body.page-racine .page-duo--inverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  body.page-racine .page-duo--inverse > :first-child {
    order: 0;
  }

  body.page-racine .page-etapes {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
    gap: 22px;
  }

  body.page-racine .page-etapes::before {
    top: 26px;
    bottom: 26px;
    left: 25px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, rgba(56, 132, 195, .15), rgba(52, 198, 232, .6), rgba(56, 132, 195, .15));
  }

  body.page-racine .page-etapes li {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 18px;
    text-align: left;
  }

  body.page-racine .page-etapes li::before {
    grid-row: span 2;
    margin: 0;
  }

  body.page-racine .page-cta__carte {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 32px;
  }

  body.page-racine .page-famille__grille > * {
    flex-basis: calc((100% - var(--gap)) / 2);
  }

  body.page-racine .page-territoires {
    grid-template-columns: 1fr;
  }

  body.page-racine .page-doc {
    grid-template-columns: 1fr;
  }

  body.page-racine .page-doc__aside {
    position: static;
  }

  body.page-racine #main_div.page-hero--contact {
    padding-bottom: 130px !important;
  }

  body.page-racine .page-contact {
    margin-top: -90px;
  }

  /* cartes flottantes gardées dans la largeur de l'écran (le hero masque ce qui dépasse) */
  body.page-racine .page-visuel--photo {
    max-width: 380px;
    margin: 36px auto 0;
    padding: 26px 12px 34px;
  }

  body.page-racine .page-visuel--photo .home-carte--pointage {
    left: -4px;
  }

  body.page-racine .page-visuel--photo .home-carte--gps {
    right: -4px;
  }

  body.page-racine .page-visuel--photo .home-carte--conge {
    left: 4px;
  }
}

@media (max-width: 767px) {
  body.page-racine .page-grille,
  body.page-racine .page-grille--4,
  body.page-racine .page-grille--2 {
    --cols: 1;
    --gap: 12px;
  }

  body.page-racine .page-modules .solution {
    padding: 20px 18px;
    gap: 14px;
  }

  body.page-racine .page-modules .solution__icone {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  body.page-racine .page-modules .solution__icone img {
    width: 36px;
    height: 36px;
  }

  body.page-racine .page-famille__grille {
    --gap: 12px;
  }

  body.page-racine .page-famille__tete h3 {
    font-size: 19px;
  }

  body.page-racine .page-fiches {
    grid-template-columns: 1fr;
  }

  body.page-racine .page-faq__item summary {
    padding: 16px;
    font-size: 15px;
  }

  body.page-racine .page-faq__reponse {
    padding: 0 16px 16px 62px;
  }

  body.page-racine .page-cta {
    padding: 10px 0 56px;
  }

  body.page-racine .page-cta__carte {
    padding: 30px 22px;
    border-radius: 22px;
  }

  body.page-racine .page-cta__actions,
  body.page-racine .page-cta__actions .btn-home {
    width: 100%;
  }

  body.page-racine .page-territoires__bloc {
    padding: 22px 18px;
  }

  body.page-racine .page-doc__texte {
    padding: 28px 20px;
    font-size: 15.5px;
  }

  body.page-racine .page-visuel--photos {
    gap: 10px;
    padding-left: 0;
  }

  body.page-racine .page-visuel--photos figure {
    border-radius: 16px;
  }
}

@media (max-width: 575px) {
  body.page-racine #main_div .page-hero__titre {
    font-size: 34px;
  }

  body.page-racine .page-hero .home-hero__chapeau {
    font-size: 17.5px;
  }

  /* un seul écran d'application sur téléphone */
  body.page-racine .page-visuel .home-mock--second {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-racine .page-visuel--appareils img {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   12. PAGES GÉNÉRÉES (body.page-seo, tools/seo-generator/render.py)
   Même hero, même fil d'Ariane, même FAQ, mêmes cartes-liens et même bandeau
   d'appel que les pages racine ; ici leurs variantes : titres plus longs
   (mots-clés), visuel choisi d'après l'image, badges d'une fiche produit,
   date d'un article, page 404. Les blocs de contenu (.seo-*) : seo_pages.css.
   -------------------------------------------------------------------------- */
body.page-seo #main_div.page-hero {
  padding-bottom: 72px !important;
}

body.page-seo #main_div .page-hero__titre {
  font-size: clamp(32px, 3.5vw, 50px);
  line-height: 1.1 !important;
}

/* La partie du titre après les deux-points (ou la ville), en dégradé, sur plusieurs lignes. */
body.page-seo .page-hero__accent {
  background: var(--h-grad-texte);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

body.page-seo .page-hero .home-hero__chapeau {
  max-width: 680px;
  font-size: 18px;
  line-height: 1.6;
}

body.page-seo .page-hero--court .home-hero__chapeau {
  max-width: 780px;
}

/* Points clés d'une fiche produit, en pastilles de verre */
body.page-seo .seo-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

body.page-seo .seo-badges li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px 7px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #e6f0fb;
  font: 700 13px/1.2 var(--h-titre);
}

body.page-seo .seo-badges i {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--h-grad);
  color: #fff;
  font-size: 14px;
  line-height: 0;
}

/* Article : date de mise à jour et durée de lecture */
body.page-seo .page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 24px 0 0;
  color: #a9c2dc;
  font: 600 14px/1.4 var(--h-titre);
}

body.page-seo .page-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

body.page-seo .page-hero__meta i {
  color: #8fd0ff;
  font-size: 17px;
}

/* Visuels : capture dans une fenêtre, pointeuse sur un halo, photo, illustration */
body.page-seo .page-visuel--app {
  padding: 22px 0 30px 24px;
}

body.page-seo .page-visuel--appareil {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 340px;
  padding: 26px 0 30px;
}

body.page-seo .page-visuel--appareil::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: 8px;
  width: 88%;
  height: 72%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(52, 198, 232, .34), rgba(52, 198, 232, 0));
  transform: translateX(-50%);
}

body.page-seo .page-visuel--appareil img {
  width: auto;
  max-width: 78%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  filter: drop-shadow(0 26px 28px rgba(0, 0, 0, .5));
  animation: home-flotte 8s ease-in-out infinite;
}

body.page-seo .page-visuel--libre img {
  aspect-ratio: auto;
}

/* Illustrations dessinées pour un fond blanc : posées sur une carte claire */
body.page-seo .page-visuel--illustration {
  max-width: 460px;
  margin-left: auto;
  padding: 24px 0 32px 20px;
}

body.page-seo .page-visuel--illustration figure {
  position: relative;
  margin: 0;
  aspect-ratio: 5 / 4;
  border-radius: 28px;
  background: radial-gradient(circle at 50% 35%, #ffffff 0%, #f1f6fb 62%, #e3ecf5 100%);
  box-shadow: var(--h-ombre-lg), 0 0 0 1px rgba(255, 255, 255, .08), 0 0 80px -10px rgba(52, 198, 232, .35);
  transform: rotate(1.2deg);
}

body.page-seo .page-visuel--illustration img {
  position: absolute;
  inset: 9%;
  width: 82%;
  height: 82%;
  object-fit: contain;
}

/* FAQ et pages liées */
body.page-seo .seo-faq .home-head {
  margin-bottom: 0;
}

body.page-seo .seo-faq .home-head a {
  color: var(--h-blue-600);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.page-seo .page-faq__reponse a {
  color: var(--h-blue-600);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(56, 132, 195, .35);
  text-underline-offset: 3px;
}

body.page-seo .seo-liees .home-head,
body.page-seo .seo-hub .home-head {
  margin-bottom: 40px;
}

body.page-seo .page-lien-carte p:empty {
  display: none;
}

/* Page 404 */
body.page-seo #main_div.page-hero--404 {
  padding: calc(var(--ep-header-h) + 40px) 0 96px !important;
}

body.page-seo .page-404__code {
  margin: 0;
  background: var(--h-grad-texte);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font: 800 clamp(96px, 14vw, 160px)/1 var(--h-titre);
  letter-spacing: -.04em;
}

body.page-seo .page-hero--404 .home-hero__chapeau {
  max-width: 640px;
}

body.page-seo .page-hero--404 .page-puces {
  justify-content: center;
}

@media (max-width: 991px) {
  body.page-seo #main_div.page-hero {
    padding-bottom: 60px !important;
  }

  body.page-seo .page-visuel--app {
    padding: 10px 0 10px;
  }

  body.page-seo .page-visuel--appareil {
    min-height: 0;
    max-width: 420px;
    margin-top: 30px;
    padding: 20px 0 22px;
  }

  body.page-seo .page-visuel--appareil img {
    max-height: 260px;
  }
}

@media (max-width: 767px) {
  body.page-seo .page-hero .home-hero__chapeau {
    font-size: 16.5px;
  }

  body.page-seo .home-hero__actions .btn-home {
    flex: 1 1 100%;
  }

  body.page-seo .seo-badges li {
    font-size: 12.5px;
  }

  body.page-seo .seo-liees .home-head,
  body.page-seo .seo-hub .home-head {
    margin-bottom: 28px;
  }
}

@media (max-width: 575px) {
  body.page-seo #main_div .page-hero__titre {
    font-size: 30px;
  }

  body.page-seo .page-visuel--appareil img {
    max-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-seo .page-visuel--appareil img {
    animation: none;
  }
}
