/* =====================================================================
   POINT NET - main.css
   Design system global + header + footer + composants transverses
   Regroupé pour limiter les requêtes HTTP (cf. CLAUDE.md §11 perf)
   ===================================================================== */

/* ---------- 0. POLICE (auto-hébergée) ------------------------------
   Inter est servie depuis notre serveur, PAS depuis fonts.googleapis.com.
   Deux raisons :
   1. Perf - la feuille de style Google était une requête bloquante vers un
      tiers avant le premier rendu.
   2. RGPD - charger une police depuis Google transmet l'adresse IP du
      visiteur à Google sans consentement, ce que la CNIL considère comme
      un traitement non conforme. Incohérent pour un site qui vend de la
      conformité RGPD.
   Fichier variable unique (graisses 400 à 800). Le sous-ensemble « latin »
   couvre tout le français, ligature œ comprise ; « latin-ext » n'est
   téléchargé par le navigateur que si un caractère rare apparaît.
   ------------------------------------------------------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- 1. VARIABLES ------------------------------------------- */
:root {
  /* Couleurs principales */
  --color-primary:       #cc3d2a;
  --color-primary-dark:  #a8301f;
  --color-primary-light: #f0d5d0;
  /* Dégradé exact du logo (aperture + "NET") */
  --gradient-primary: linear-gradient(135deg, #c92218 0%, #cc4c24 100%);

  /* Neutres */
  --color-white:      #ffffff;
  --color-bg-alt:     #f7f7f7;
  --color-bg-dark:    #1a1a1a;
  --color-text-dark:  #1a1a1a;
  --color-text-body:  #333333;
  --color-text-muted: #666666;
  --color-border:     #e0e0e0;

  /* Accents par activité */
  --color-maintenance: #1a7a4a;
  --color-cyber:       #cc3d2a;
  --color-rgpd:        #4a4aaa;
  --color-ia:          #0d9488;

  /* Typo */
  --font-main:    'Inter', 'Segoe UI', Arial, sans-serif;
  --font-heading: 'Inter', 'Segoe UI', Arial, sans-serif;

  /* Spacing / layout */
  --section-padding: 80px 0;
  --container-max:   1140px;
  --border-radius:   6px;
  --border-radius-lg: 12px;

  /* Ombres */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.14);

  /* Header */
  --header-top-h: 38px;
  --transition: 0.2s ease;
}

/* ---------- 2. RESET / BASE ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-main);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-body);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; padding: 0; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

/* Typo */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; color: var(--color-text-dark); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { line-height: 1.7; }

::selection { background: var(--color-primary); color: #fff; }

/* Focus visible (accessibilité) */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Lien d'évitement */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 20px;
  z-index: 2000;
  border-radius: 0 0 var(--border-radius) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- 3. LAYOUT ---------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
}
.section { padding: var(--section-padding); }
.section--alt { background: var(--color-bg-alt); }
.section--dark { background: var(--color-bg-dark); color: #fff; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--tight { padding: 56px 0; }

/* En-tête de section réutilisable */
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 14px;
}
.section-head h2 { margin-bottom: 16px; }
.section-head .lead { font-size: 1.1rem; color: var(--color-text-muted); }
.lead { font-size: 1.1rem; color: var(--color-text-muted); line-height: 1.7; }

/* ---------- 4. BOUTONS --------------------------------------------- */
.btn-primary, .btn-secondary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--border-radius);
  text-align: center;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              transform 0.1s ease, box-shadow var(--transition), border-color var(--transition);
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  padding: 14px 32px;
  box-shadow: 0 4px 14px rgba(204,61,42,0.25);
}
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(204,61,42,0.32); }
.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 12px 30px;
}
.btn-secondary:hover { background: var(--color-primary); color: #fff; transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
  padding: 12px 30px;
}
.btn-ghost:hover { background: rgba(255,255,255,0.15); border-color: #fff; color: #fff; }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 38px; font-size: 1.05rem; }
.btn svg, .btn-primary svg, .btn-secondary svg, .btn-ghost svg { width: 18px; height: 18px; }

/* ---------- 5. HEADER ---------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

/* Barre du haut */
.header-top-bar {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
}
.header-top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-top-h);
}
.top-bar-left { display: flex; align-items: center; gap: 22px; }
.top-bar-phone {
  display: inline-flex; align-items: center; gap: 7px;
  color: #fff; font-weight: 600;
}
.top-bar-phone:hover { color: var(--color-primary-light); }
.top-bar-phone svg { width: 14px; height: 14px; }
.top-bar-hours { color: rgba(255,255,255,0.65); }
.top-bar-hours::before { content: "•"; margin-right: 12px; color: rgba(255,255,255,0.3); }

/* Bouton assistance à distance */
.btn-assist-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: #fff;
  padding: 6px 16px;
  border-radius: var(--border-radius);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition), transform 0.1s ease;
}
.btn-assist-download:hover { background: var(--color-primary-dark); color: #fff; transform: translateY(-1px); }
.btn-assist-download svg { width: 15px; height: 15px; }

/* Barre principale */
.header-main { border-bottom: 1px solid var(--color-border); }
.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  transition: min-height var(--transition);
}
.site-header.scrolled .header-main .container { min-height: 66px; }
.site-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.site-logo img { height: 46px; width: auto; transition: height var(--transition); }
.site-header.scrolled .site-logo img { height: 40px; }

/* Navigation */
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  color: var(--color-text-dark);
  font-weight: 500;
  font-size: 0.92rem;
  border-radius: var(--border-radius);
  position: relative;
  white-space: nowrap;
}
.main-nav > ul > li > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 5px;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.main-nav > ul > li > a:not(.nav-cta):hover::after,
.main-nav > ul > li.current > a:not(.nav-cta)::after { transform: scaleX(1); }
.main-nav a:hover { color: var(--color-primary); }
.main-nav li.current > a { color: var(--color-primary); }

.nav-external > a::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.5;
}
.nav-cta { color: #fff !important; background: var(--color-primary); padding: 9px 18px !important; box-shadow: 0 4px 12px rgba(204,61,42,0.25); }
.nav-cta:hover { background: var(--color-primary-dark); color: #fff !important; }

/* Dropdown */
.has-dropdown { position: relative; }
.has-dropdown > a::after {
  content: "";
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.5;
  transition: transform var(--transition);
}
.dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 14px; border-radius: var(--border-radius); font-weight: 500; }
.dropdown a:hover { background: var(--color-bg-alt); color: var(--color-primary); }
.dropdown a::after { display: none; }

/* ---- Mega menu ---- */
.has-mega { position: static; }
.mega-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-chevron {
  width: 10px; height: 6px;
  transition: transform var(--transition);
  flex-shrink: 0;
}
.has-mega:hover .nav-chevron,
.has-mega.is-open .nav-chevron { transform: rotate(180deg); }

.mega-panel {
  display: none;
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  background: #fff;
  border-top: 3px solid var(--color-primary);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  z-index: 900;
}
.header-main { position: relative; overflow: visible; }
@media (min-width: 1081px) {
  .has-mega:hover .mega-panel,
  .has-mega:focus-within .mega-panel { display: block; }
  /* Le lien est centré verticalement dans une barre plus haute que lui : sans ceci,
     un vide sépare le bas du lien du haut du panneau et la souris "perd" le survol
     en traversant ce vide avant d'atteindre le panneau. On étire le <li> et son nav
     parent sur toute la hauteur de la barre pour que la zone survolable touche le
     panneau sans espace, tout en gardant le lien visuellement centré à l'intérieur. */
  .main-nav { align-self: stretch; }
  .main-nav > ul { height: 100%; }
  .has-mega {
    align-self: stretch;
    display: flex;
    align-items: center;
  }
}
.has-mega.is-open .mega-panel { display: block; }

/* Mega panel - Expertises (4 colonnes) */
.mega-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 16px;
}
.mega-col {
  padding: 28px 24px 28px;
  border-right: 1px solid var(--color-border);
}
.mega-col:last-child { border-right: none; }
.mega-col-icon {
  width: 38px; height: 38px;
  background: color-mix(in srgb, var(--mc, var(--color-primary)) 12%, transparent);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.mega-col-icon svg { width: 20px; height: 20px; stroke: var(--mc, var(--color-primary)); }
.mega-col h4 { font-size: 0.93rem; font-weight: 700; margin-bottom: 10px; }
.mega-col h4 a { color: var(--color-text-dark); }
.mega-col h4 a:hover { color: var(--color-primary); }
.mega-links { list-style: none; padding: 0; margin: 0 0 14px; }
.mega-links li a {
  display: block;
  font-size: 0.83rem;
  color: var(--color-text-muted);
  padding: 4px 0;
  font-weight: 400;
}
.mega-links li a:hover { color: var(--color-primary); padding-left: 4px; }
.mega-more {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  display: inline-block;
}
.mega-more:hover { text-decoration: underline; }
/* .main-nav a (plus spécifique) imposait sa couleur : le rouge prévu ne s'affichait pas. */
.main-nav .mega-more { color: var(--color-primary); }

/* Mega panel - Catalogue (3 colonnes × 3 lignes) */
.mega-panel--catalog { border-top-color: var(--color-text-dark); }
.mega-inner--catalog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 8px 16px 16px;
}
.mega-cat-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--border-radius);
  text-decoration: none;
  color: var(--color-text-dark);
  transition: background var(--transition);
}
.mega-cat-link:hover { background: var(--color-bg-alt); color: var(--color-primary); }
.mcat-icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  background: var(--color-bg-alt);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.mcat-icon svg { width: 18px; height: 18px; stroke: var(--color-primary); }
.mcat-label { display: flex; flex-direction: column; }
.mcat-label strong { font-size: 0.85rem; font-weight: 600; line-height: 1.3; }
.mcat-label small { font-size: 0.75rem; color: var(--color-text-muted); margin-top: 2px; }
.mega-cat-footer {
  grid-column: 1 / -1;
  padding: 10px 14px;
  border-top: 1px solid var(--color-border);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* .nav-expand - bouton chevron mobile uniquement */
.nav-expand {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  width: 34px; height: 34px;
  align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--color-text-muted);
  flex-shrink: 0;
}
.nav-expand svg { width: 10px; height: 6px; transition: transform var(--transition); }
.has-mega.is-open .nav-expand svg { transform: rotate(180deg); }

/* Burger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  border-radius: var(--border-radius);
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--color-text-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 6. PAGE HERO (pages internes) -------------------------- */
.page-hero {
  position: relative;
  background: var(--color-bg-dark);
  color: #fff;
  padding: 56px 0 64px;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 400px at 100% -20%, rgba(204,61,42,0.45), transparent 60%),
    radial-gradient(600px 300px at -10% 120%, rgba(204,61,42,0.18), transparent 60%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin-bottom: 14px; max-width: 18ch; }
.page-hero-desc { font-size: 1.15rem; color: rgba(255,255,255,0.8); max-width: 60ch; }
.page-hero--accent::before {
  background:
    radial-gradient(900px 400px at 100% -20%, var(--accent, rgba(204,61,42,0.45)), transparent 60%);
  opacity: 0.5;
}

/* Hero avec photo de fond (texte blanc lisible grâce à l'overlay sombre) */
.page-hero--photo {
  background-size: cover;
  background-position: center;
  padding: 72px 0 80px;
}
.page-hero--photo::before {
  background:
    linear-gradient(95deg, rgba(18,18,18,0.94) 0%, rgba(18,18,18,0.82) 42%, rgba(18,18,18,0.55) 100%),
    radial-gradient(800px 360px at 100% -10%, rgba(204,61,42,0.5), transparent 60%);
  opacity: 1;
}

/* Fil d'Ariane */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 22px;
  color: rgba(255,255,255,0.6);
}
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span[aria-current] { color: #fff; font-weight: 500; }
/* Breadcrumb sur fond clair */
.breadcrumb--light { color: var(--color-text-muted); margin-bottom: 0; }
.breadcrumb--light a { color: var(--color-text-muted); }
.breadcrumb--light a:hover { color: var(--color-primary); }
.breadcrumb--light span[aria-current] { color: var(--color-text-dark); }

/* ---------- 7. CARTES D'ACTIVITÉ ----------------------------------- */
.activity-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.activity-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent, var(--color-primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.activity-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.activity-card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent, var(--color-primary)) 12%, white);
  color: var(--accent, var(--color-primary));
  margin-bottom: 22px;
}
.card-icon svg { width: 28px; height: 28px; }
.card-title { margin-bottom: 10px; }
.card-desc { color: var(--color-text-muted); margin-bottom: 22px; flex-grow: 1; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600;
  color: var(--accent, var(--color-primary));
}
.activity-card:hover .card-link { gap: 12px; }
.card-link svg { width: 16px; height: 16px; transition: transform var(--transition); }

/* ---------- 8. FAQ ACCORDÉON --------------------------------------- */
.faq-list { max-width: 800px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  background: #fff;
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.faq-item:has(.faq-question[aria-expanded="true"]) { box-shadow: var(--shadow-sm); border-color: var(--color-primary-light); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-dark);
}
.faq-question:hover { color: var(--color-primary); }
.faq-icon { flex-shrink: 0; width: 20px; height: 20px; transition: transform var(--transition); color: var(--color-primary); }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }
.faq-answer { padding: 0 24px 22px; color: var(--color-text-muted); }
.faq-answer p + p { margin-top: 12px; }

/* ---------- 9. FOOTER ---------------------------------------------- */
.site-footer { background: var(--color-bg-dark); color: rgba(255,255,255,0.7); }

/* Bande écosystème */
.footer-ecosystem { border-bottom: 1px solid rgba(255,255,255,0.08); padding: 36px 0; }
.ecosystem-label {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
}
.ecosystem-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ecosystem-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 22px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--border-radius-lg);
  color: #fff;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.ecosystem-link:hover { border-color: var(--color-primary); background: rgba(204,61,42,0.08); color: #fff; transform: translateY(-3px); }
.ecosystem-link.active { border-color: var(--color-primary); background: rgba(204,61,42,0.12); }
.ecosystem-link strong { font-size: 1.05rem; }
.ecosystem-link span { font-size: 0.85rem; color: rgba(255,255,255,0.55); }

/* Footer principal */
.footer-main { padding: 56px 0 44px; }
.footer-main .container {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px;
}
.footer-brand img { height: 42px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: 0.92rem; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  transition: background var(--transition), transform var(--transition);
}
.footer-social a:hover { background: var(--color-primary); color: #fff; transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-col h4 { color: #fff; margin-bottom: 18px; font-size: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: rgba(255,255,255,0.7); font-size: 0.92rem; }
.footer-col ul a:hover { color: var(--color-primary); padding-left: 4px; }
.footer-col address { font-style: normal; font-size: 0.92rem; line-height: 1.8; }
.footer-col address a { color: rgba(255,255,255,0.7); }
.footer-col address a:hover { color: var(--color-primary); }

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  font-size: 0.85rem;
}
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: #fff; }

/* WhatsApp flottant */
.floating-whatsapp {
  position: fixed;
  bottom: 22px; right: 22px;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  z-index: 900;
  transition: transform var(--transition);
}
.floating-whatsapp:hover { transform: scale(1.08); color: #fff; }
.floating-whatsapp svg { width: 30px; height: 30px; }

/* ---------- 10. BANDEAU COOKIES ------------------------------------ */
.cookie-banner {
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  max-width: 720px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px 24px;
  z-index: 1500;
  transform: translateY(150%);
  transition: transform 0.4s cubic-bezier(.22,1,.36,1);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner h3 { font-size: 1.1rem; margin-bottom: 8px; }
.cookie-banner p { font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: 16px; }
.cookie-banner p a { font-weight: 600; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions button {
  flex: 1; min-width: 130px;
  padding: 11px 18px;
  border-radius: var(--border-radius);
  font-weight: 600; font-size: 0.9rem;
  transition: all var(--transition);
}
.cookie-accept { background: var(--color-primary); color: #fff; }
.cookie-accept:hover { background: var(--color-primary-dark); }
.cookie-refuse { background: var(--color-bg-alt); color: var(--color-text-dark); border: 1px solid var(--color-border); }
.cookie-refuse:hover { background: #eee; }
.cookie-customize { background: transparent; color: var(--color-text-muted); text-decoration: underline; }
.cookie-save { background: var(--color-maintenance); color: #fff; }
.cookie-save:hover { filter: brightness(0.92); }

/* Panneau de personnalisation, déplié par « Personnaliser ».
   Le bandeau peut alors dépasser la hauteur de l'écran sur mobile : on le rend
   défilable plutôt que de laisser les boutons hors de vue. */
.cookie-banner { max-height: calc(100vh - 32px); overflow-y: auto; }

.cookie-prefs {
  border-top: 1px solid var(--color-border);
  margin: 0 0 18px;
  padding-top: 16px;
}
.cookie-pref + .cookie-pref { margin-top: 14px; }
/* Toute la ligne est cliquable, avec une hauteur d'au moins 44 px : une case à
   cocher de 17 px seule est une cible trop petite au doigt (WCAG 2.5.5). */
.cookie-pref-head {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; font-size: 0.92rem;
  min-height: 44px; padding: 4px 0;
  margin: -4px 0;
}
.cookie-pref-head input {
  width: 17px; height: 17px; flex: 0 0 auto;
  accent-color: var(--color-primary); cursor: pointer;
}
/* Case « toujours actifs » : non modifiable, on l'annonce visuellement plutôt
   que de laisser croire à un réglage possible. */
.cookie-pref-head input[disabled] { cursor: not-allowed; opacity: 0.55; }
.cookie-pref-head input[disabled] + span { color: var(--color-text-muted); }
.cookie-pref-head em { font-style: normal; font-size: 0.82rem; color: var(--color-text-muted); }
.cookie-pref p {
  margin: 5px 0 0 27px;
  font-size: 0.83rem; line-height: 1.55;
  color: var(--color-text-muted);
}

/* ---------- 11. UTILITAIRES & ANIMATIONS --------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Révélation au scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 11bis. MEDIA & PHOTOS ---------------------------------- */
/* Photo encadrée dans le hero d'accueil */
.hero-photo {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.12);
  aspect-ratio: 5/4;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20,20,20,0.35) 100%);
}
/* Badges flottants en verre (sur la photo hero) */
.hero-badge {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  background: rgba(26,26,26,0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
}
.hero-badge .b-ic { width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: var(--gradient-primary); color: #fff; }
.hero-badge .b-ic svg { width: 20px; height: 20px; }
.hero-badge strong { display: block; color: #fff; font-size: 1.05rem; line-height: 1.1; }
.hero-badge span { font-size: 0.8rem; color: rgba(255,255,255,0.7); }
.hero-badge.b-tl { top: 18px; left: -18px; }
.hero-badge.b-br { bottom: 18px; right: -18px; }
.hero-badge .stars { color: #f5b50a; letter-spacing: 1px; font-size: 0.95rem; }

/* Section image + texte */
.media-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.media-split.reverse .media-text { order: 2; }
.media-split .media-text h2 { margin-bottom: 16px; }
.media-split .media-text p { color: var(--color-text-body); margin-bottom: 14px; }
.media-figure {
  position: relative; border-radius: var(--border-radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md);
}
.media-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-figure.tall { aspect-ratio: 4/5; }
.media-figure.wide { aspect-ratio: 3/2; }
/* Petit liseré rouge décoratif */
.media-figure::before {
  content: ""; position: absolute; left: 0; bottom: 0; width: 60%; height: 5px;
  background: var(--gradient-primary); z-index: 2; border-radius: 0 4px 0 0;
}
.media-figure figcaption {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 22px 20px 14px; color: #fff; font-size: 0.88rem;
  background: linear-gradient(transparent, rgba(20,20,20,0.78));
}

/* Bandeau pleine largeur (vitrine) */
.image-band { position: relative; min-height: 360px; display: grid; place-items: center; background-size: cover; background-position: center; overflow: hidden; }
.image-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,18,18,0.86), rgba(18,18,18,0.5)); }
.image-band .container { position: relative; text-align: center; }
.image-band h2 { color: #fff; margin-bottom: 12px; }
.image-band p { color: rgba(255,255,255,0.88); font-size: 1.1rem; margin-bottom: 24px; }

/* Puce de bénéfice (lisibilité / argument de vente) */
.benefits { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.benefit-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--color-bg-alt); border: 1px solid var(--color-border);
  border-radius: 100px; padding: 8px 16px; font-size: 0.9rem; font-weight: 500;
}
.benefit-pill svg { width: 16px; height: 16px; color: var(--color-maintenance); }

/* ---------- 11ter. AVIS GOOGLE ------------------------------------- */
.gr-head { display: flex; justify-content: center; margin-bottom: 40px; }
.gr-badge {
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
  background: #fff; border: 1px solid var(--color-border); border-radius: 100px;
  padding: 10px 22px; box-shadow: var(--shadow-sm);
}
.g-logo { width: 22px; height: 22px; flex-shrink: 0; }
.gr-badge .gr-rating { font-weight: 800; font-size: 1.15rem; color: var(--color-text-dark); }
.gr-badge .gr-stars { color: #fbbc05; letter-spacing: 1px; }
.gr-badge .gr-count { color: var(--color-text-muted); font-size: 0.9rem; }
.gr-badge a { font-weight: 600; white-space: nowrap; }
.gr-badge a::after { content: ""; }

.gr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.gr-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg); padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.gr-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gr-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.gr-top .gr-stars { color: #fbbc05; letter-spacing: 2px; font-size: 1.05rem; }
.gr-card blockquote { color: var(--color-text-body); line-height: 1.7; font-size: 0.97rem; flex-grow: 1; }
.gr-author { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.gr-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; object-fit: cover;
  background: var(--gradient-primary); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 0.95rem;
}
.gr-author strong { display: block; color: var(--color-text-dark); font-size: 0.95rem; }
.gr-author span { font-size: 0.83rem; color: var(--color-text-muted); }
.gr-src { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--color-border); font-size: 0.78rem; color: var(--color-text-muted); }
.gr-src .g-logo { width: 14px; height: 14px; }

/* ---------- 12. RESPONSIVE ----------------------------------------- */
@media (max-width: 1024px) {
  .footer-main .container { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (min-width: 561px) and (max-width: 980px) { .gr-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gr-grid { grid-template-columns: 1fr; } }

@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    width: min(82vw, 360px);
    height: 100dvh;
    background: #fff;
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    padding: 90px 24px 40px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(.22,1,.36,1);
    z-index: 1100;
  }
  .nav-open .main-nav { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: 14px 16px; font-size: 1.05rem; justify-content: space-between; }
  .main-nav > ul > li > a:not(.nav-cta)::after { display: none; }
  .nav-cta { justify-content: center; margin-top: 14px; }
  .nav-toggle { z-index: 1200; }
  /* Dropdown mobile : accordéon JS */
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; border-left: 2px solid var(--color-border);
    border-radius: 0; margin: 4px 0 4px 16px; padding: 0; max-height: 0;
    overflow: hidden; transition: max-height var(--transition);
  }
  .has-dropdown.open > .dropdown { max-height: 320px; }
  .has-dropdown.open > a::after { transform: rotate(-135deg) translateY(-2px); }
  /* Mega menu mobile */
  .nav-expand { display: flex; }
  .has-mega > .mega-label { flex: 1; }
  .has-mega { display: flex; align-items: center; flex-wrap: wrap; }
  .mega-panel {
    position: static; border: none; border-top: none; box-shadow: none;
    border-left: 2px solid var(--color-primary);
    margin: 4px 0 4px 16px; width: 100%;
    flex-basis: 100%;
  }
  .mega-inner, .mega-inner--catalog {
    grid-template-columns: 1fr;
    padding: 8px 0;
  }
  .mega-col { padding: 12px 8px; border-right: none; border-bottom: 1px solid var(--color-border); }
  .mega-col:last-child { border-bottom: none; }
  .mega-col-icon { display: none; }
  .mega-cat-link { padding: 8px 4px; }
  .mega-cat-footer { flex-direction: column; align-items: flex-start; gap: 6px; }
  /* Overlay */
  body.nav-open::after {
    content: ""; position: fixed; inset: 0;
    background: rgba(0,0,0,0.45); z-index: 1050;
  }

  /* ---- Corrections du menu mobile (septembre 2026) ---- */

  /* Empilement. L'en-tête sticky crée son propre contexte (z-index 1000) : le
     tiroir qu'il contient ne peut pas passer au-dessus de ce niveau. Le voile
     (body::after, 1050) et la barre d'actions (1400) le recouvraient, et chaque
     toucher dans le menu tombait sur le voile, qui le refermait. Menu ouvert,
     l'en-tête passe devant, sous le bandeau cookies (1500) qui doit rester
     accessible. */
  body.nav-open .site-header { z-index: 1450; }
  body.nav-open .mobile-bar,
  body.nav-open .floating-whatsapp { visibility: hidden; }
  body.nav-open { overflow: hidden; }

  /* Seule la liste défile, sous une zone fixe de 104 px réservée à la croix de
     fermeture. Avant, tout le tiroir défilait : les entrées passaient sous la
     croix et on la touchait à la place du lien. */
  .main-nav { display: flex; flex-direction: column; overflow: hidden; padding: 104px 0 0; }
  .main-nav > ul {
    flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden;
    overscroll-behavior: contain; padding: 0 24px 40px;
  }
  .main-nav > ul > li { flex-shrink: 0; }

  /* Un seul chevron par entrée dépliable : celui du bouton, sur une zone de
     48 px. Le lien portait le sien, d'où deux flèches côte à côte. */
  .mega-label .nav-chevron { display: none; }
  .nav-expand { width: 48px; height: 48px; border: none; color: var(--color-text-muted); }
  .nav-expand svg { width: 12px; height: 8px; }

  /* « Point Net » se déplie aussi : il retrouve le chevron que lui retirait la
     règle masquant le soulignement des liens de premier niveau. */
  .main-nav > ul > li.has-dropdown > a:not(.nav-cta)::after {
    display: block; position: static; flex-shrink: 0;
    width: 8px; height: 8px; margin-right: 4px;
    background: none; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px); opacity: 0.5;
  }
  .main-nav > ul > li.has-dropdown.open > a:not(.nav-cta)::after { transform: rotate(-135deg) translateY(-2px); }

  /* Textes longs : retour à la ligne. Sans cela le bandeau des collectivités
     portait le tiroir à 1 200 px de large et le menu partait de travers. */
  .main-nav .mega-panel a { white-space: normal; }
  .mega-panel { width: auto; min-width: 0; margin: 4px 0 10px 8px; }

  /* Zones à toucher d'au moins 44 px (WCAG 2.5.5). */
  .mega-col { padding: 8px 4px; }
  .mega-col h4 { margin-bottom: 0; }
  .main-nav .mega-col h4 a,
  .main-nav .mega-links li a,
  .main-nav .mega-more { display: flex; align-items: center; min-height: 44px; padding: 10px 8px; font-size: 0.98rem; }
  .main-nav .mega-links li a:hover { padding-left: 8px; }
  .main-nav .mega-links { margin-bottom: 4px; }
  .main-nav .mega-cat-link { justify-content: flex-start; min-height: 52px; padding: 8px; font-size: 1rem; }
  .main-nav .dropdown a { min-height: 44px; }
  /* Liens de premier niveau sur toute la largeur : zone à toucher pleine ligne,
     et chevron de « Point Net » aligné à droite comme ceux des panneaux. */
  .main-nav > ul > li > a:not(.nav-cta) { display: flex; }
  .main-nav > ul > li.nav-external > a { justify-content: flex-start; }
  .main-nav .mega-segment { display: block; margin: 12px 0 6px; padding: 14px 16px; }
}

@media (max-width: 900px) {
  .media-split { grid-template-columns: 1fr; gap: 32px; }
  .media-split.reverse .media-text { order: 0; }
  .hero-badge.b-tl { left: 12px; }
  .hero-badge.b-br { right: 12px; }
}

@media (max-width: 768px) {
  :root { --section-padding: 56px 0; }
  .top-bar-hours { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .ecosystem-links { grid-template-columns: 1fr; }
  .footer-main .container { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .image-band::before { background: rgba(18,18,18,0.75); }
}

@media (max-width: 480px) {
  .container { padding-inline: 18px; }
  .header-top-bar .container { justify-content: center; }
  .top-bar-left { gap: 14px; }
}

/* =================================================================
   SOLUTIONS / CATALOGUE PAGES
   ================================================================= */

/* Grille de catégories (hub /solutions/) */
.sol-cat-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  border-radius: var(--border-radius-lg);
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--color-text-dark);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  position: relative;
}
.sol-cat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--cat-color, var(--color-primary));
  color: var(--color-text-dark);
}
.sol-cat-icon {
  width: 46px; height: 46px;
  background: color-mix(in srgb, var(--cat-color, var(--color-primary)) 12%, transparent);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.sol-cat-icon svg { width: 24px; height: 24px; stroke: var(--cat-color, var(--color-primary)); }
.sol-cat-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.sol-cat-desc { font-size: 0.87rem; color: var(--color-text-muted); line-height: 1.5; flex: 1; }
.sol-cat-more { font-size: 0.82rem; font-weight: 600; color: var(--cat-color, var(--color-primary)); margin-top: 14px; }

/* Gamme (titre de catégorie dans les sous-pages) */
.sol-gamme-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.15rem; font-weight: 700;
  color: var(--color-text-dark);
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 12px; margin-bottom: 20px;
}
.sol-gamme-title svg { width: 22px; height: 22px; stroke: var(--color-primary); flex-shrink: 0; }

/* Grille d'items */
.sol-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.sol-item {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
}
.sol-item-photo {
  width: calc(100% + 40px);
  margin: -18px -20px 14px;
  aspect-ratio: 1 / 1;
  background: var(--color-bg-alt);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.sol-item-photo img { width: 100%; height: 100%; object-fit: contain; }
/* Fiche sans photo : même cadre carré, icône de la gamme (cf. produit_photo()). */
.sol-item-photo--vide svg { width: 34%; height: 34%; color: #b3b9c0; }
.sol-item strong { display: block; font-size: 0.92rem; color: var(--color-text-dark); margin-bottom: 4px; }
.sol-item .sol-item-type {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  color: var(--color-primary); background: var(--color-primary-light);
  padding: 2px 8px; border-radius: 4px; margin-bottom: 8px;
}
.sol-item .sol-item-specs {
  font-size: 0.8rem; color: var(--color-text-muted);
  font-family: monospace; margin-bottom: 6px;
}
.sol-item p { font-size: 0.87rem; color: var(--color-text-muted); line-height: 1.5; margin: 0; }

/* Item card (pour /solutions/caisse/) */
.sol-item-card {
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg); box-shadow: var(--shadow-sm);
  padding: 24px; transition: box-shadow var(--transition);
}
.sol-item-card:hover { box-shadow: var(--shadow-md); }
.sol-item-card .sol-item-photo {
  width: calc(100% + 48px);
  margin: -24px -24px 16px;
}
.sol-item-icon {
  width: 44px; height: 44px; background: var(--color-primary-light);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.sol-item-icon svg { width: 22px; height: 22px; stroke: var(--color-primary); }
.sol-item-card h3 { font-size: 0.97rem; margin-bottom: 8px; }
.sol-item-card p { font-size: 0.87rem; color: var(--color-text-muted); line-height: 1.55; margin: 0; }

/* Steps row (pfSense) */
.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.step { text-align: center; }
.step-num {
  width: 48px; height: 48px;
  background: var(--color-primary); color: #fff;
  border-radius: 50%; font-size: 1.3rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step h3 { font-size: 0.97rem; margin-bottom: 8px; }
.step p { font-size: 0.87rem; color: var(--color-text-muted); }

@media (max-width: 900px) {
  .steps-row { grid-template-columns: repeat(2, 1fr); }
  .sol-items-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .steps-row { grid-template-columns: 1fr; }
  .sol-items-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   12. CONVERSION - formulaires courts, tarifs, barre mobile
   Ajoute par la mission « leads ». Reprend la charte existante sans la
   redessiner : rouge #cc3d2a, rayons et ombres deja definis plus haut.
   ===================================================================== */

/* ---------- Formulaire court integre dans les pages ---------- */
.lead-form {
  background: #fff;
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
  border-radius: var(--border-radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-md);
}
.lead-form-head h3 { margin: 0 0 4px; font-size: 1.25rem; }
.lead-form-head p  { margin: 0 0 20px; color: var(--color-text-muted); font-size: 0.9rem; }

.lead-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-field { margin-bottom: 14px; }
.lead-field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 5px; }
.lead-field .req { color: var(--color-primary); }
.lead-form input[type=text], .lead-form input[type=tel],
.lead-form input[type=email], .lead-form textarea {
  width: 100%; padding: 11px 13px; font: inherit;
  border: 1px solid #c9c9c9; border-radius: var(--border-radius); background: #fff;
}
.lead-form input:focus, .lead-form textarea:focus {
  outline: none; border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(204, 61, 42, 0.15);
}
.lead-form [aria-invalid="true"] { border-color: var(--color-primary); background: #fdf6f5; }
.lead-form textarea { resize: vertical; min-height: 76px; }

/* Champ piege : sorti de l'ecran plutot que display:none, que certains robots
   savent reperer. aria-hidden le retire des lecteurs d'ecran. */
.lead-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.lead-consent { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 18px; }
.lead-consent input { margin-top: 3px; width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--color-primary); }
.lead-consent label { font-size: 0.84rem; line-height: 1.5; color: var(--color-text-muted); }

.lead-erreur {
  background: #fdecea; border-left: 4px solid var(--color-primary);
  padding: 11px 14px; border-radius: var(--border-radius);
  margin-bottom: 16px; font-size: 0.9rem; color: #8c2618;
}
.lead-form .btn-block { width: 100%; text-align: center; padding: 15px; font-size: 1rem; border: 0; cursor: pointer; }
.lead-form-alt { margin: 14px 0 0; text-align: center; font-size: 0.9rem; color: var(--color-text-muted); }
.lead-form-alt a { color: var(--color-primary); }

/* Tous les formulaires du site (contact, demandes de rappel, outils) */
/* ---------- Protection anti-spam (reCAPTCHA) ------------------------ */
/* Rendu uniquement si une clé est configurée dans /admin/securite.php. */
.rc-box { margin: 4px 0 18px; }

/* Le badge flottant de la v3 se place en bas à droite, exactement là où se
   trouve le bouton WhatsApp du site. Google autorise à le masquer à condition
   d'afficher la mention légale - c'est ce que fait rc_notice(). */
.grecaptcha-badge { visibility: hidden; }

.rc-notice {
  margin: 14px 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}
.rc-notice a { color: var(--color-text-muted); text-decoration: underline; }
.rc-notice a:hover { color: var(--color-primary); }

@media (max-width: 640px) {
  .lead-form { padding: 22px 18px; }
  .lead-form-grid { grid-template-columns: 1fr; }
}

/* ---------- Prix ---------- */
.prix { display: inline-flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.prix strong { font-size: 2rem; font-weight: 800; color: var(--color-text-dark); line-height: 1; }
.prix-apd { font-size: 0.8rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.prix-unite { font-size: 0.85rem; color: var(--color-text-muted); }

/* ---------- Grille de paliers ---------- */
.offre-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.offre-card {
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg); padding: 26px 24px; position: relative;
  display: flex; flex-direction: column;
}
.offre-card--phare { border-color: var(--color-primary); border-width: 2px; box-shadow: var(--shadow-md); }
.offre-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--color-primary); color: #fff; font-size: 0.74rem; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.06em;
  white-space: nowrap;
}
.offre-card h3 { margin: 0 0 4px; font-size: 1.3rem; }
.offre-pour { color: var(--color-text-muted); font-size: 0.86rem; margin-bottom: 16px; min-height: 2.6em; }
.offre-prix { padding: 14px 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); margin-bottom: 18px; }
.offre-card ul { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 9px; flex-grow: 1; }
.offre-card li { display: flex; gap: 9px; font-size: 0.9rem; line-height: 1.5; }
.offre-card li::before { content: "\2713"; color: var(--color-maintenance); font-weight: 700; flex-shrink: 0; }
.offre-card li.non { color: var(--color-text-muted); }
.offre-card li.non::before { content: "\2013"; color: #bbb; }
.offre-card .btn-primary, .offre-card .btn-secondary { width: 100%; text-align: center; }

@media (max-width: 900px) { .offre-grid { grid-template-columns: 1fr; } .offre-pour { min-height: 0; } }

/* ---------- Bloc preuve ---------- */
.preuve {
  background: var(--color-bg-alt); border-left: 4px solid var(--color-maintenance);
  border-radius: var(--border-radius-lg); padding: 22px 26px; margin: 28px 0;
}
.preuve p { margin: 0; }
.preuve .preuve-qui { display: block; margin-top: 10px; font-size: 0.86rem; color: var(--color-text-muted); }

/* ---------- Trois benefices ---------- */
.benefices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 32px 0; }
.benefice .benefice-chiffre { font-size: 2.2rem; font-weight: 800; color: var(--color-primary); line-height: 1.1; }
/* h2 quand les bénéfices suivent directement le H1 (collectivités) : même rendu qu'un h3. */
.benefice h2, .benefice h3 { margin: 6px 0 6px; font-size: 1.05rem; }
.benefice h2 { font-weight: 600; letter-spacing: normal; }
.benefice p { color: var(--color-text-muted); font-size: 0.92rem; margin: 0; }
@media (max-width: 820px) { .benefices { grid-template-columns: 1fr; gap: 18px; } }

/* ---------- Barre mobile fixe ---------- */
/* Deux actions, toujours atteignables : le pouce ne remonte pas chercher un
   numero en haut de page. Masquee au-dela du mobile, ou l'en-tete suffit. */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1400;
  display: none; background: #fff; border-top: 1px solid var(--color-border);
  box-shadow: 0 -3px 14px rgba(0, 0, 0, 0.1);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  gap: 8px;
}
.mobile-bar a {
  flex: 1; text-align: center; padding: 13px 8px; border-radius: var(--border-radius);
  font-weight: 700; font-size: 0.94rem; text-decoration: none;
  display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px;
}
.mobile-bar svg { width: 17px; height: 17px; flex: 0 0 auto; }
.mobile-bar .mb-tel    { background: var(--color-primary); color: #fff; }
.mobile-bar .mb-rappel { background: #fff; color: var(--color-primary); border: 2px solid var(--color-primary); }

@media (max-width: 767px) {
  .mobile-bar { display: flex; }
  /* Le bouton WhatsApp flottant chevauchait la barre. */
  .floating-whatsapp { bottom: 84px; }
  body { padding-bottom: 68px; }
}

/* ---------- Page de remerciement ---------- */
.merci-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.merci-etapes { margin: 0 0 26px; padding-left: 20px; display: grid; gap: 12px; }
.merci-etapes li { line-height: 1.6; }
.merci-urgent { background: var(--color-bg-alt); border-radius: var(--border-radius-lg); padding: 22px 26px; }
.merci-urgent p { margin: 0 0 10px; }
.merci-tel .btn-primary { font-size: 1.15rem; }
.merci-horaires { font-size: 0.86rem; color: var(--color-text-muted); margin: 10px 0 0 !important; }
.merci-suite {
  background: #fff; border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
  border-radius: var(--border-radius-lg); padding: 26px;
}
.merci-suite h2 { font-size: 1.2rem; margin: 0 0 10px; }
.merci-suite p { color: var(--color-text-muted); margin-bottom: 18px; }
@media (max-width: 860px) { .merci-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Bandeau de segment en pied de mega-menu (collectivites). */
.mega-segment {
  display: block; margin-top: 22px; padding: 16px 20px;
  background: var(--color-bg-alt); border-left: 4px solid var(--color-rgpd);
  border-radius: var(--border-radius); text-decoration: none; color: inherit;
  transition: background var(--transition);
}
.mega-segment:hover { background: #efefef; color: inherit; }
.mega-segment strong { display: block; font-size: 0.98rem; color: var(--color-text-dark); }
.mega-segment span   { display: block; font-size: 0.87rem; color: var(--color-text-muted); margin-top: 3px; }
@media (min-width: 1081px) {
  /* Aligné sur les colonnes du panneau. La règle .main-nav a (inline-flex) le
     rendait aussi large que son texte et le collait au bord gauche de l'écran. */
  .main-nav .mega-segment { display: block; max-width: calc(var(--container-max) - 32px); margin: 0 auto 20px; }
}
