/* ==========================================================================
   TEEMLAN — Couche « Élévation » (premium)
   Chargée en dernier. 100% additive : raffine typographie, profondeur,
   cartes, boutons et rendu mobile sans réécrire les feuilles existantes.
   Respecte la charte (dégradé bleu #294c98 → #1c6eb7 → #1090d4) et
   prefers-reduced-motion. Toutes les tailles de titres sont fluides
   (clamp) : elles couvrent mobile → desktop sans dépendre des media
   queries d'origine.
   ========================================================================== */

:root {
  /* Échelle d'espacement cohérente */
  --ev-space-section: clamp(64px, 4vw + 40px, 116px);
  /* Profondeur premium (ombres feuilletées, teintées charte) */
  --ev-shadow-xs: 0 1px 2px rgba(18, 32, 51, .05);
  --ev-shadow-sm: 0 2px 6px rgba(18, 32, 51, .05), 0 8px 18px -12px rgba(18, 32, 51, .14);
  --ev-shadow-md: 0 10px 30px -14px rgba(28, 110, 183, .26), 0 6px 16px -10px rgba(18, 32, 51, .12);
  --ev-shadow-lg: 0 34px 64px -30px rgba(28, 110, 183, .42), 0 12px 26px -16px rgba(18, 32, 51, .16);
  --ev-radius: 16px;
  --ev-radius-sm: 12px;
  --ev-hairline: 1px solid rgba(28, 110, 183, .14);
}

/* --------------------------------------------------------------------------
   1. Typographie fluide & rythme
   -------------------------------------------------------------------------- */
.hero__content h1 {
  font-size: clamp(2.05rem, 1.15rem + 3.7vw, 3.5rem);
  line-height: 1.04;
}
.hero__lead {
  font-size: clamp(1rem, .96rem + .35vw, 1.16rem);
  max-width: 36em;
}
.section-head h2 {
  font-size: clamp(1.65rem, 1.05rem + 2.4vw, 3rem);
  line-height: 1.08;
}
.section-head p,
.testimonials-layout .section-head p,
.method__grid .section-head p {
  max-width: 64ch;
}
.section-head { text-wrap: balance; }

/* Décalage d'ancre sous l'en-tête collant (clics #services, #faq…) */
:where(section, .section, [id]) [id],
section[id],
.section[id],
.hero[id],
.split-section[id],
.method[id],
.testimonials-section[id],
.location-section[id] {
  scroll-margin-top: 120px;
}

/* --------------------------------------------------------------------------
   2. Eyebrow raffiné (filet dégradé + tracking)
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-gradient);
  flex: none;
}

/* --------------------------------------------------------------------------
   3. Boutons premium (rayon plus doux, halo, relief au survol)
   -------------------------------------------------------------------------- */
.btn {
  border-radius: 12px;
  font-weight: 700;
}
.btn-primary {
  box-shadow: 0 16px 32px -12px rgba(28, 110, 183, .55);
}
.btn-primary:hover {
  box-shadow: 0 22px 42px -12px rgba(28, 110, 183, .62);
}
.nav-cta {
  border-radius: 12px;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   4. Cartes : profondeur & élévation au survol
   -------------------------------------------------------------------------- */
.sector-card,
.standard-card,
.insight-card,
.method-card {
  border-radius: var(--ev-radius);
  box-shadow: var(--ev-shadow-sm);
  transition: transform .42s cubic-bezier(.16, 1, .3, 1),
              box-shadow .42s ease,
              border-color .42s ease;
}
.sector-card:hover,
.standard-card:hover,
.insight-card:hover,
.method-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ev-shadow-lg);
  border-color: #a8ccff;
}

/* Familles déjà animées : on raffine seulement l'ombre/le rayon */
.service-directory-card,
.technical-demand-card,
.testimonial-card {
  border-radius: var(--ev-radius);
}
.service-directory-card { box-shadow: var(--ev-shadow-sm); }
.service-directory-card:hover { box-shadow: var(--ev-shadow-lg); }
.service-directory-card__media { border-radius: var(--ev-radius-sm); }
.technical-demand-card:hover { box-shadow: var(--ev-shadow-md); }
.testimonial-card { box-shadow: var(--ev-shadow-sm); }
.testimonial-card:hover { box-shadow: var(--ev-shadow-lg); }

/* Pastille numérotée des insights / accent des référentiels */
.insight-card span,
.standard-card span {
  background-image: var(--brand-gradient);
}

/* --------------------------------------------------------------------------
   5. Chiffres clés : nombres en dégradé (signature premium)
   -------------------------------------------------------------------------- */
.metrics__grid strong,
.metrics strong {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* --------------------------------------------------------------------------
   6. Héros : pastilles « signaux » glassy + lead aéré
   -------------------------------------------------------------------------- */
.hero__signals span {
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, .7);
  box-shadow: var(--ev-shadow-xs);
}
.hero__actions { gap: 14px; }

/* Encadré studio (aside 3D) : cadre premium */
.bet-studio {
  border-radius: clamp(16px, 1.4vw, 22px);
  box-shadow: var(--ev-shadow-lg);
}

/* --------------------------------------------------------------------------
   7. Sections : rythme + différenciation douce
   -------------------------------------------------------------------------- */
.section-soft {
  background:
    radial-gradient(1200px 420px at 80% -10%, rgba(16, 144, 212, .06), transparent 60%),
    var(--soft, #f4f8ff);
}

/* FAQ : items en « carte » premium */
.faq-item {
  border-radius: var(--ev-radius-sm);
  box-shadow: var(--ev-shadow-xs);
  transition: box-shadow .35s ease, border-color .35s ease;
}
.faq-item.is-open {
  box-shadow: var(--ev-shadow-md);
}

/* Onglets livrables : état actif plus lisible */
.deliverable-tab.is-active {
  box-shadow: var(--ev-shadow-md);
}

/* --------------------------------------------------------------------------
   8. Accessibilité : focus visible net (clavier)
   -------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(16, 144, 212, .55);
  outline-offset: 2px;
  border-radius: 8px;
}

/* --------------------------------------------------------------------------
   9. Affinages mobile (« haut de gamme » sur petit écran)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Rythme vertical plus respirant (surclasse les marges serrées d'origine) */
  .section,
  section.section {
    padding-top: clamp(48px, 9vw, 72px) !important;
    padding-bottom: clamp(48px, 9vw, 72px) !important;
  }
  /* Boutons confortables au pouce, plein largeur si nécessaire */
  .hero__actions { flex-wrap: wrap; }
  .hero__actions .btn { flex: 1 1 200px; justify-content: center; }
  .btn { min-height: 48px; }
  /* Cartes : moins d'élévation au survol (tactile) */
  .sector-card:hover,
  .standard-card:hover,
  .insight-card:hover,
  .method-card:hover { transform: translateY(-3px); }
}

@media (max-width: 520px) {
  .hero__signals { gap: 8px; }
  .hero__signals span { font-size: 12px; padding: 6px 12px; }
  /* Évite tout débordement horizontal résiduel */
  .shell { width: min(1160px, calc(100% - 32px)); }
}

/* --------------------------------------------------------------------------
   10. Respect du mouvement réduit
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .sector-card,
  .standard-card,
  .insight-card,
  .method-card,
  .service-directory-card,
  .testimonial-card,
  .technical-demand-card {
    transition: none;
  }
  .sector-card:hover,
  .standard-card:hover,
  .insight-card:hover,
  .method-card:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   11. Bannière haute (topline) — version mobile
   Masque « WhatsApp TEEMLAN », conserve mail / téléphone / Technopark,
   et force les icônes en blanc.
   -------------------------------------------------------------------------- */
@media (max-width: 820px) {
  .topline .social-link--whatsapp { display: none !important; }
  .topline a i,
  .topline span i { color: #fff !important; }
  .topline__inner { gap: 16px; row-gap: 6px; }
}

/* --------------------------------------------------------------------------
   12. Footer — lignes rapprochées sur mobile
   -------------------------------------------------------------------------- */
@media (max-width: 820px) {
  .footer__grid {
    gap: 14px !important;
    padding: 28px 0 !important;
  }
  .footer p { margin: 5px 0 10px !important; line-height: 1.45; }
  .footer strong { margin-bottom: 4px !important; }
  .footer a,
  .footer span { margin-top: 3px !important; line-height: 1.32; }
  .footer .footer-contact-item { margin-top: 5px !important; }
  .footer-social-links { margin-top: 8px !important; }
  .footer__bottom { gap: 10px; padding: 14px 0 !important; }
}

/* --------------------------------------------------------------------------
   13. Arborescence des services (services.html)
   Tree « explorateur de fichiers » : 2 colonnes desktop, 1 colonne mobile,
   avec connecteurs en CSS. 100% liens HTML accessibles.
   -------------------------------------------------------------------------- */
.services-tree-section .section-head { text-align: center; }
.services-tree { max-width: 1010px; margin: 0 auto; }
.services-tree__top { text-align: center; margin-bottom: 6px; }
.services-tree__root {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Sora", "Segoe UI", Roboto, Arial, sans-serif; font-weight: 700; font-size: 15px;
  color: #fff; background: var(--brand-gradient);
  padding: 12px 22px; border-radius: 12px; box-shadow: var(--ev-shadow-md);
}
.services-tree__grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.tree-branch {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--ev-radius);
  box-shadow: var(--ev-shadow-sm);
  padding: 18px 18px 10px;
  transition: box-shadow .35s ease, border-color .35s ease, transform .35s ease;
}
.tree-branch:hover { box-shadow: var(--ev-shadow-lg); border-color: #a8ccff; transform: translateY(-3px); }
.tree-branch__head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 12px; margin-bottom: 4px;
  border-bottom: 1px dashed rgba(28, 110, 183, .22);
}
.tree-branch__ico {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border-radius: 11px; background: var(--soft); color: var(--blue); font-size: 20px;
}
.tree-branch__title { font-family: "Sora", "Segoe UI", sans-serif; font-weight: 700; font-size: 16px; line-height: 1.2; color: var(--ink); }
.tree-branch__count {
  margin-left: auto; font-size: 12px; font-weight: 700; color: var(--blue);
  background: var(--soft); border-radius: 999px; padding: 4px 11px;
}
.tree-leaves { list-style: none; margin: 0; padding: 0 0 0 8px; }
.tree-leaves li { position: relative; padding-left: 22px; }
.tree-leaves li::before {
  content: ""; position: absolute; left: 4px; top: 0;
  width: 12px; height: calc(50% + 2px);
  border-left: 2px solid rgba(28, 110, 183, .26);
  border-bottom: 2px solid rgba(28, 110, 183, .26);
  border-bottom-left-radius: 7px;
}
.tree-leaves li:not(:last-child)::after {
  content: ""; position: absolute; left: 4px; top: calc(50% + 2px); bottom: 0;
  border-left: 2px solid rgba(28, 110, 183, .26);
}
.tree-leaves a {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; margin: 3px 0;
  border-radius: 9px; color: var(--gray-800); font-weight: 600; font-size: 14px;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.tree-leaves a > i:first-child { color: var(--blue); font-size: 15px; flex: none; }
.tree-leaves a .tree-leaf__arrow { margin-left: auto; opacity: 0; transform: translateX(-4px); transition: opacity .25s ease, transform .25s ease; }
.tree-leaves a:hover { background: var(--soft); color: var(--blue); transform: translateX(3px); }
.tree-leaves a:hover .tree-leaf__arrow { opacity: 1; transform: translateX(0); }
@media (max-width: 720px) {
  .services-tree__grid { grid-template-columns: 1fr; gap: 14px; }
}

/* --------------------------------------------------------------------------
   14. Façade carte (perf) — l'iframe Google Maps ne se charge qu'au clic
   -------------------------------------------------------------------------- */
.map-facade {
  position: relative; width: 100%; min-height: 340px; height: 100%;
  border: 0; cursor: pointer; border-radius: 14px; overflow: hidden; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  background: linear-gradient(135deg, #294c98 0%, #1c6eb7 55%, #1090d4 100%);
  font-family: inherit;
}
.map-facade::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, .20), transparent 58%),
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: auto, 38px 38px, 38px 38px;
}
.map-facade > * { position: relative; z-index: 1; }
.map-facade .map-facade__pin { font-size: 32px; }
.map-facade strong { font-family: "Sora", "Segoe UI", sans-serif; font-size: 17px; }
.map-facade span { font-size: 13px; opacity: .92; }
.map-facade .map-facade__btn {
  margin-top: 10px; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .45);
  color: #fff; padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 13px;
  transition: background .25s ease;
}
.map-facade:hover .map-facade__btn { background: rgba(255, 255, 255, .28); }
.map-frame iframe { width: 100%; min-height: 340px; border: 0; display: block; }

/* --------------------------------------------------------------------------
   15. Formulaire de contact — champ piège + messages de statut
   -------------------------------------------------------------------------- */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; opacity: 0; pointer-events: none;
}
.form-status:empty { display: none; }
.form-status:not(:empty) {
  margin-top: 16px; padding: 12px 15px; border-radius: 11px;
  font-weight: 600; font-size: 14px;
  display: flex; align-items: center; gap: 9px;
}
.form-status.is-success { background: rgba(37, 211, 102, .12); color: #0f7a3d; border: 1px solid rgba(37, 211, 102, .4); }
.form-status.is-error { background: rgba(192, 57, 43, .08); color: #b3392c; border: 1px solid rgba(192, 57, 43, .32); }
.form-status a { text-decoration: underline; color: inherit; }

/* --------------------------------------------------------------------------
   16. Images WebP
   - <picture> ne doit pas modifier la mise en page (display:contents).
   - Arrière-plans : override WebP via image-set, encapsulé dans @supports.
     Les navigateurs sans image-set gardent automatiquement le JPG d'origine.
   -------------------------------------------------------------------------- */
picture { display: contents; }

@supports (background-image: image-set(url("i.webp") type("image/webp"))) {
  .hero__media {
    background-image:
      linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.82) 44%, rgba(255, 255, 255, 0.30) 100%),
      image-set(url("../img/hero-bg.webp") type("image/webp"), url("../img/hero-bg.jpg") type("image/jpeg"));
  }
  .page-hero {
    background-image:
      var(--page-motif, linear-gradient(100deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.88) 52%, rgba(234, 244, 255, 0.78) 100%)),
      image-set(url("../img/hero-bg.webp") type("image/webp"), url("../img/hero-bg.jpg") type("image/jpeg"));
  }
  .split-section {
    background-image:
      linear-gradient(90deg, #071d36 0%, rgba(7, 29, 54, 0.92) 48%, rgba(7, 29, 54, 0.76) 100%),
      image-set(url("../img/testimonials-bg.webp") type("image/webp"), url("../img/testimonials-bg.jpg") type("image/jpeg"));
  }
  .testimonials-section {
    background-image:
      linear-gradient(120deg, rgba(41, 76, 152, .94), rgba(28, 110, 183, .9) 50%, rgba(16, 144, 212, .86)),
      image-set(url("../img/testimonials-bg.webp") type("image/webp"), url("../img/testimonials-bg.jpg") type("image/jpeg"));
  }
}

/* --------------------------------------------------------------------------
   17. Navigation mobile — « Services » déroule l'arborescence (accordéon)
   Masqué sur desktop ; actif uniquement ≤ 820px.
   -------------------------------------------------------------------------- */
.nav-services-toggle { display: none; }
.nav-subtree { display: none; }

@media (max-width: 820px) {
  .nav-services-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .nav-services-row > a { flex: 1 1 auto; }
  .nav-services-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--blue);
    font-size: 18px;
  }
  .nav-services-toggle i { transition: transform .3s ease; }
  .nav-services-toggle[aria-expanded="true"] i { transform: rotate(180deg); }

  .nav-subtree {
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height .45s var(--fx-ease-out, ease);
  }
  .nav-subtree.is-open { max-height: 1600px; }
  .nav-subtree__inner {
    padding: 4px 0 8px;
    border-left: 2px solid rgba(28, 110, 183, .18);
    margin: 4px 0 4px 6px;
    padding-left: 12px;
  }
  .nav-subtree__group { margin-top: 12px; }
  .nav-subtree__title {
    display: flex; align-items: center; gap: 8px;
    font-family: "Sora", "Segoe UI", sans-serif; font-weight: 700;
    font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase;
    color: var(--blue); margin-bottom: 2px;
  }
  .nav-subtree a {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 10px; margin: 2px 0;
    font-size: 14px; font-weight: 600; color: var(--gray-800);
    border-radius: 8px;
  }
  .nav-subtree a i { color: var(--blue); font-size: 13px; }
  .nav-subtree a:hover, .nav-subtree a:focus-visible { background: var(--soft); color: var(--blue); }
  .nav-subtree__all {
    margin-top: 10px;
    color: var(--blue) !important;
    border-top: 1px dashed rgba(28, 110, 183, .25);
    padding-top: 12px !important;
  }
}

/* --------------------------------------------------------------------------
   18. CORRECTIFS menu mobile (espace en haut + accordéon complet)
   -------------------------------------------------------------------------- */
@media (max-width: 820px) {
  /* Header visible au-dessus de l'overlay (logo + croix cliquables) */
  body.nav-open .topline { display: none !important; }
  body.nav-open .site-header .service-strip { display: none !important; }
  body.nav-open .brand,
  body.nav-open .nav-toggle { position: relative; z-index: 41; }

  /* Moins d'espace vide en haut du menu */
  .main-nav { padding-top: 82px !important; gap: 0 !important; }

  /* Les enfants ne rétrécissent pas -> l'accordéon s'affiche en entier, le menu défile */
  .main-nav > a,
  .main-nav > span,
  .main-nav > div { flex: 0 0 auto !important; }

  /* Sous-arbre : style propre (annule le style des liens de nav principaux) */
  .main-nav .nav-subtree a {
    justify-content: flex-start !important;
    text-align: left !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
    font-family: "Manrope", "Segoe UI", sans-serif !important;
    font-weight: 600 !important;
    border-bottom: 0 !important;
    color: var(--gray-800) !important;
  }
  .main-nav .nav-subtree a::after { content: none !important; display: none !important; }
  .main-nav .nav-subtree a > i:first-child { color: var(--blue) !important; font-size: 13px !important; }
  .main-nav .nav-subtree a:hover { background: var(--soft) !important; color: var(--blue) !important; }
  .main-nav .nav-subtree__title { justify-content: flex-start; }
  .main-nav .nav-subtree__all { font-weight: 700 !important; }
}

/* --------------------------------------------------------------------------
   19. Recherche — capsules d'en-tête + champ de recherche (redesign)
   -------------------------------------------------------------------------- */
.search-toggle,
.nav-toggle {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue);
  font-size: 19px;
  box-shadow: var(--ev-shadow-xs);
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.search-toggle:hover,
.nav-toggle:hover {
  background: var(--soft);
  border-color: #a8ccff;
  transform: translateY(-1px);
  box-shadow: var(--ev-shadow-sm);
}
.search-toggle:active,
.nav-toggle:active { transform: translateY(0); }

/* Panneau de recherche */
.site-search__panel {
  border-radius: 20px !important;
  box-shadow: var(--ev-shadow-lg) !important;
}
.site-search__field {
  border-radius: 14px !important;
  border: 1.5px solid var(--line) !important;
  background: var(--gray-050, #f7f8fa) !important;
  padding: 6px 14px !important;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease !important;
}
.site-search__field:focus-within {
  border-color: var(--blue-2) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(16, 144, 212, .15) !important;
}
.site-search__field input { font-size: 16px !important; }
.site-search__field i { color: var(--blue) !important; }
.site-search__suggest button {
  border-radius: 999px !important;
  border: 1px solid var(--line) !important;
  background: #fff !important;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease !important;
}
.site-search__suggest button:hover {
  background: var(--soft) !important;
  border-color: #a8ccff !important;
  color: var(--blue) !important;
  transform: translateY(-1px);
}
.site-search__results a { border-radius: 12px !important; }

/* --------------------------------------------------------------------------
   20. Boutons — présentation premium (« Voir les téléchargements », etc.)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  min-height: 50px;
  font-weight: 700;
  letter-spacing: .005em;
}
.btn i { font-size: 1.05em; }
.btn-secondary {
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--blue);
  box-shadow: var(--ev-shadow-xs);
}
.btn-secondary:hover {
  background: var(--soft);
  border-color: var(--blue-2);
  color: var(--blue-3);
  transform: translateY(-2px);
  box-shadow: var(--ev-shadow-md);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  color: var(--blue);
  transition: gap .25s ease, color .25s ease;
}
.text-link:hover { gap: 12px; color: var(--blue-3); }

/* --------------------------------------------------------------------------
   21. Finitions (round 5)
   -------------------------------------------------------------------------- */
/* a. Le bouton menu (hamburger) ne s'affiche que sur mobile */
.nav-toggle { display: none; }
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
}

/* b. Icônes de la bannière haute (mail, téléphone, adresse) toujours en blanc */
.topline a i,
.topline span i { color: #fff !important; }

/* c. Bloc auteur d'article : icône bien visible (cohérent avec le footer) */
.article-author__avatar {
  background: var(--soft) !important;
  background-image: none !important;
  color: var(--blue) !important;
  border: 1px solid rgba(28, 110, 183, .18);
}
.article-author__avatar i { color: var(--blue) !important; }

/* d. Boutons « Partager » : icônes nettes et lisibles */
.article-share a { color: var(--blue) !important; background: #fff; border: 1px solid var(--line); }
.article-share a i { color: inherit !important; }
.article-share a:hover,
.article-share a:hover i { color: #fff !important; }

/* e. WhatsApp du footer : pastille verte + icône blanche (lisible sur footer clair) */
.footer .footer-contact-item.social-link--whatsapp i {
  color: #fff !important;
  background: var(--whatsapp);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 13px;
  flex: none;
}

/* f. Footer encore plus resserré sur mobile */
@media (max-width: 820px) {
  .footer__grid { gap: 10px !important; padding: 24px 0 !important; }
  .footer strong { margin-bottom: 3px !important; }
  .footer a,
  .footer span { margin-top: 2px !important; line-height: 1.28 !important; }
  .footer .footer-contact-item { margin-top: 4px !important; }
  .footer p { margin: 4px 0 8px !important; }
}

/* --------------------------------------------------------------------------
   22. Finitions (round 6)
   -------------------------------------------------------------------------- */
/* a. Boutons jamais coupés sur plusieurs lignes (ex. « Demander un document ») */
.btn { white-space: nowrap; }
.section-head--row .btn { flex: 0 0 auto; }

/* b. Badges de carte (CVC-D, PLB…) sur une seule ligne */
.proof-card > span { white-space: nowrap; }

/* c. Bloc auteur d'article : suppression de l'icône (avatar) */
.article-author__avatar { display: none !important; }
.article-author { padding-top: 26px; }

/* d. FAQ secondaire (.faq-grid) : présentation en cartes premium */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.faq-grid > article {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue-2);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: var(--ev-shadow-sm);
  transition: transform .35s var(--fx-ease-out, ease), box-shadow .35s ease, border-color .35s ease;
}
.faq-grid > article:hover {
  transform: translateY(-3px);
  box-shadow: var(--ev-shadow-md);
  border-left-color: var(--blue);
}
.faq-grid > article h3 {
  margin: 0 0 8px;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.3;
  color: var(--ink);
}
.faq-grid > article p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
@media (max-width: 720px) { .faq-grid { grid-template-columns: 1fr; } }

/* e. Menu mobile ouvert : le logo (header) reste fixe pendant le défilement */
@media (max-width: 820px) {
  body.nav-open .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
  }
}

/* --------------------------------------------------------------------------
   23. Finitions (round 7)
   -------------------------------------------------------------------------- */
/* a. Menu mobile : la barre du logo reste fixe en haut et le contenu défile
   EN DESSOUS (plus aucun chevauchement, plus de logo qui transparaît). */
@media (max-width: 820px) {
  body.nav-open .site-header { background: #fff !important; }
  body.nav-open .main-nav {
    top: 64px !important;
    height: calc(100vh - 64px) !important;
    height: calc(100dvh - 64px) !important;
    padding-top: 16px !important;
    background: #fff !important;
  }
  body.nav-open .brand img,
  body.nav-open .brand.is-logo-focus img {
    transform: none !important;
    filter: none !important;
  }
}

/* b. WhatsApp du footer : même couleur que les autres icônes (bleu), pas de vert */
.footer .footer-contact-item.social-link--whatsapp i {
  color: var(--blue-3) !important;
  background: none !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  display: inline !important;
  padding: 0 !important;
  font-size: inherit !important;
}

/* c. Footer mobile : espacement uniforme entre toutes les lignes */
@media (max-width: 820px) {
  .footer a,
  .footer span,
  .footer .footer-contact-item {
    margin-top: 3px !important;
    line-height: 1.35 !important;
  }
  .footer__grid { gap: 12px !important; }
  .footer-social-links { margin-top: 8px !important; }
}

/* d. Témoignages : texte d'intro en blanc (fond bleu) */
.testimonials-section .section-head p,
.testimonials-section .section-head h2 { color: #fff !important; }
.testimonials-section .section-head .eyebrow { color: #eaf3ff !important; }

/* --------------------------------------------------------------------------
   24. Mise en ligne : accueil stable et entête mobile lisible
   -------------------------------------------------------------------------- */
.hero__media {
  transform: none !important;
  transition: none !important;
  will-change: auto !important;
  background-position: center center !important;
  background-attachment: fixed;
}

.hero::before,
.hero .engineering-3d__model,
.hero .bet-node,
.hero .engineering-tower,
.hero .engineering-plate,
.hero .engineering-axis,
.hero .mep-path {
  animation: none !important;
}

.hero .tilt-3d,
.hero .tilt-3d.is-tilting {
  transform: none !important;
}

@media (max-width: 820px) {
  .hero__media {
    background-attachment: scroll;
    transform: none !important;
  }

  .topline {
    background: var(--brand-gradient) !important;
  }

  .topline__inner {
    justify-content: center !important;
    gap: 8px !important;
    padding: 7px 12px !important;
    overflow: hidden !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }

  .topline .social-link--whatsapp,
  .topline__inner a[href*="maps"] {
    display: none !important;
  }

  .topline__inner a[href^="mailto"],
  .topline__inner a[href^="tel"] {
    min-height: 30px;
    padding: 5px 10px;
    color: #fff !important;
    font-weight: 800;
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
  }

  .topline__inner a[href^="mailto"] i,
  .topline__inner a[href^="tel"] i {
    display: inline-block !important;
    color: #fff !important;
    font-size: 13px !important;
    margin-right: 4px !important;
  }
}

@media (max-width: 430px) {
  .topline__inner a[href^="mailto"],
  .topline__inner a[href^="tel"] {
    width: 38px;
    min-width: 38px;
    height: 30px;
    padding: 0 !important;
    justify-content: center;
    gap: 0 !important;
    font-size: 0 !important;
  }

  .topline__inner a[href^="mailto"] i,
  .topline__inner a[href^="tel"] i {
    font-size: 15px !important;
    margin: 0 !important;
  }
}
