/* ============================================================
   TOUITIGROUP — service.css
   Composants des pages service : hero, fil d'Ariane, prose,
   callout, FAQ (<details>), cartes de service.
   Dépend de tokens.css + base.css (à charger avant).
   Réécrit depuis assets/identity.css avec les variables --tg-*.
   RTL : propriétés logiques uniquement (inline-start / inline-end).
   Fond clair : placer le composant dans .tg-surface-light (base.css).

   Structure HTML attendue : voir l'exemple en tête de chaque bloc.
   ============================================================ */

:root {
  --service-hero-pad-top: calc(var(--tg-nav-h) + var(--tg-space-2xl)); /* navbar fixe (72px) + 64px d'air */
  --service-hero-pad-bottom: clamp(3.5rem, 7vw, 5.5rem);
  --service-hero-media-ratio: 4 / 5;
  --service-card-media-ratio: 16 / 10;
  --service-faq-max: 51.25rem;                           /* 820px */

  /* Couleurs contextuelles — fond noir par défaut */
  --service-text: var(--tg-color-text);
  --service-text-muted: var(--tg-color-text-muted);
  --service-accent: var(--tg-color-gold);
  --service-border: var(--tg-color-border);
  --service-surface: var(--tg-color-dark);
}

/* Fond clair : les couleurs contextuelles se retournent une seule fois ici */
.tg-surface-light {
  --service-text: var(--tg-color-ink);
  --service-text-muted: var(--tg-color-ink-muted);
  --service-accent: var(--tg-color-gold-text);
  --service-border: var(--tg-color-border-ink);
  --service-surface: var(--tg-color-white);
}

/* ============================================================
   1. SERVICE HERO
   <section class="service-hero">
     <div class="container service-hero__grid">
       <div class="service-hero__content">
         <nav class="breadcrumb">…</nav>
         <p class="service-hero__eyebrow">Service</p>
         <h1 class="service-hero__title">Enduit <em>monocouche</em> au Maroc</h1>
         <p class="service-hero__lead">…</p>
         <div class="service-hero__actions">…boutons…</div>
       </div>
       <figure class="service-hero__media">
         <img …><figcaption class="service-hero__badge">…</figcaption>
       </figure>
     </div>
   </section>
   ============================================================ */
.service-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--service-hero-pad-top) var(--service-hero-pad-bottom);
  border-bottom: 1px solid var(--tg-color-border);
}
/* Halos or discrets (repris de .page-hero) */
.service-hero::before,
.service-hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
.service-hero::before {
  width: 600px; height: 600px;
  top: -200px; inset-inline-start: -200px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.12) 0%, transparent 70%);
}
.service-hero::after {
  width: 620px; height: 620px;
  bottom: -240px; inset-inline-end: -200px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.07) 0%, transparent 70%);
}

.service-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(var(--tg-space-xl), 5vw, 3.75rem);
  align-items: center;
}

.service-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--tg-space-sm);
  margin-bottom: var(--tg-space-md);
  font-family: var(--tg-font-body);
  font-size: var(--tg-text-xs);
  font-weight: var(--tg-weight-semibold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tg-color-gold);
}
.service-hero__eyebrow::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: currentColor;
}

.service-hero__title {
  margin-bottom: var(--tg-space-lg);
}
.service-hero__title em,
.service-hero__title strong {   /* <strong> : mot mis en valeur (repris des pages existantes) */
  font-style: normal;
  font-weight: inherit;
  background: var(--tg-color-gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.service-hero__lead {
  max-width: 38.75rem; /* 620px */
  font-size: var(--tg-text-lg);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
}

.service-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tg-space-md);
  margin-top: var(--tg-space-xl);
}

.service-hero__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--service-hero-media-ratio);
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: var(--tg-radius-sm);
  background: var(--tg-color-dark-2);
}
.service-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-hero__badge {
  position: absolute;
  top: var(--tg-space-md);
  inset-inline-start: var(--tg-space-md);
  padding: 0.4375rem 0.875rem;
  background: var(--tg-color-gold);
  color: var(--tg-color-black);
  font-family: var(--tg-font-body);
  font-size: var(--tg-text-xs);
  font-weight: var(--tg-weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--tg-radius-sm);
}

/* ============================================================
   2. BREADCRUMB (fil d'Ariane)
   <nav class="breadcrumb" aria-label="Fil d'Ariane">
     <ol>
       <li><a href="/">Accueil</a></li>
       <li><a href="/fr/services/">Services</a></li>
       <li aria-current="page">Monocouche</li>
     </ol>
   </nav>
   ============================================================ */
.breadcrumb {
  margin-bottom: var(--tg-space-lg);
  font-size: var(--tg-text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tg-color-text-subtle);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
}
.breadcrumb li { display: inline-flex; align-items: center; }
/* Séparateur généré : pas de texte parasite pour les lecteurs d'écran */
.breadcrumb li + li::before {
  content: '›';
  margin-inline: var(--tg-space-sm);
  color: rgba(255, 255, 255, 0.3);
}
[dir="rtl"] .breadcrumb li + li::before { content: '‹'; }
.breadcrumb a {
  color: var(--service-accent);
  text-decoration: none;
  transition: color var(--tg-duration);
}
.breadcrumb a:hover { color: var(--tg-color-gold-highlight); }
.breadcrumb [aria-current="page"] { color: var(--service-text-muted); }

.tg-surface-light .breadcrumb { color: var(--tg-color-ink-muted); }
.tg-surface-light .breadcrumb a:hover { color: var(--tg-color-gold-dark); }

/* ============================================================
   3. PROSE (contenu éditorial long)
   <div class="prose"> h2, h3, p, ul/ol, a, strong, blockquote </div>
   ============================================================ */
.prose {
  max-width: var(--tg-prose-max);
  color: var(--service-text-muted);
}
.prose > * + * { margin-top: var(--tg-space-md); }

.prose h2 {
  margin-top: var(--tg-space-2xl);
  margin-bottom: var(--tg-space-sm);
  font-size: clamp(1.625rem, 3vw, 2.25rem); /* 26–36px */
  line-height: 1.2;
  color: var(--service-text);
}
.prose h3 {
  margin-top: var(--tg-space-xl);
  margin-bottom: var(--tg-space-xs);
  font-size: var(--tg-text-lg);
  color: var(--service-text);
}
.prose > :first-child { margin-top: 0; }
.prose h2 + *, .prose h3 + * { margin-top: 0; }

.prose p,
.prose li {
  font-size: 0.96875rem; /* 15.5px */
  line-height: 1.9;
}

.prose ul,
.prose ol { padding-inline-start: var(--tg-space-lg); }
.prose li + li { margin-top: var(--tg-space-sm); }
.prose ul li::marker { color: var(--service-accent); }
.prose ol li::marker { color: var(--service-accent); font-weight: var(--tg-weight-semibold); }

.prose a {
  color: var(--service-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--tg-duration);
}
.prose a:hover { color: var(--tg-color-gold-highlight); }
.tg-surface-light .prose a:hover { color: var(--tg-color-gold-dark); }

.prose strong { color: var(--service-text); }

.prose blockquote {
  padding-inline-start: var(--tg-space-lg);
  border-inline-start: 2px solid var(--service-accent);
  font-style: italic;
}

/* Arabe : lignes un peu plus longues et interligne plus généreux */
:lang(ar) .prose { max-width: 48.75rem; }
:lang(ar) .prose p,
:lang(ar) .prose li { font-size: 1.0625rem; line-height: 2; }

/* ============================================================
   4. CALLOUT (encadré : note qualité, info clé)
   <div class="callout"><p><strong>Contrôle qualité :</strong> …</p></div>
   Variante : .callout--solid (fond plein, plus visible)
   ============================================================ */
.callout {
  max-width: 51.25rem;
  margin-top: var(--tg-space-xl);
  padding: var(--tg-space-lg) var(--tg-space-xl);
  background: var(--tg-color-gold-light);
  border-inline-start: 3px solid var(--tg-color-gold);
  border-start-end-radius: var(--tg-radius-sm);
  border-end-end-radius: var(--tg-radius-sm);
  color: rgba(255, 255, 255, 0.82);
}
.callout p {
  margin: 0;
  font-size: var(--tg-text-sm);
  line-height: 1.85;
}
.callout p + p { margin-top: var(--tg-space-sm); }
.callout strong { color: var(--tg-color-gold); }

.tg-surface-light .callout {
  background: var(--tg-color-white);
  border-inline-start-color: var(--tg-color-gold-dark);
  color: var(--tg-color-ink);
}
.tg-surface-light .callout strong { color: var(--tg-color-gold-text); }

.callout--solid {
  background: var(--tg-color-dark-2);
  border: 1px solid var(--tg-color-border-strong);
  border-inline-start-width: 3px;
  border-radius: var(--tg-radius-sm);
}

@media (max-width: 640px) {
  .callout { padding: var(--tg-space-md) var(--tg-space-lg); }
}

/* ============================================================
   5. FAQ — <details>/<summary> natifs (sans JS, accessibles au clavier)
   <div class="faq">
     <details class="faq__item" name="faq-monocouche">
       <summary class="faq__question">Question ?</summary>
       <div class="faq__answer"><p>Réponse…</p></div>
     </details>
   </div>
   L'attribut name="" commun ouvre une seule réponse à la fois (navigateurs récents).
   Le texte des réponses reste dans le DOM → lisible par Google (FAQPage).
   ============================================================ */
.faq {
  display: flex;
  flex-direction: column;
  gap: var(--tg-space-sm);
  max-width: var(--service-faq-max);
  margin-inline: auto;
}

.faq__item {
  background: var(--tg-color-black);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: var(--tg-radius-sm);
  transition: border-color var(--tg-duration);
}
.faq__item:hover,
.faq__item[open] { border-color: var(--tg-color-border-strong); }

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tg-space-lg);
  padding: 1.375rem 1.625rem; /* 22px 26px */
  list-style: none;
  cursor: pointer;
  font-family: var(--tg-font-body);
  font-size: 0.9375rem;
  font-weight: var(--tg-weight-medium);
  line-height: 1.5;
  color: var(--tg-color-text);
  text-align: start;
  transition: color var(--tg-duration);
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::marker { content: ''; }
.faq__question:hover { color: var(--tg-color-gold); }

/* Icône « + » qui pivote en « × » */
.faq__question::after {
  content: '+';
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--tg-color-gold);
  border-radius: 50%;
  color: var(--tg-color-gold);
  font-size: 1rem;
  line-height: 1;
  transition: transform var(--tg-duration) var(--tg-ease);
}
.faq__item[open] > .faq__question::after { transform: rotate(45deg); }

.faq__answer {
  padding: 0 1.625rem 1.5rem;
  font-size: var(--tg-text-sm);
  line-height: 1.85;
  color: var(--tg-color-text-muted);
}
.faq__answer > * + * { margin-top: var(--tg-space-sm); }
.faq__answer a { color: var(--tg-color-gold); text-underline-offset: 3px; }

/* Ouverture animée là où c'est supporté (Chrome 131+) ; sinon ouverture instantanée */
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq__item::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size var(--tg-duration) var(--tg-ease), content-visibility var(--tg-duration) allow-discrete;
  }
  .faq__item[open]::details-content { block-size: auto; }
}

/* FAQ sur fond clair */
.tg-surface-light .faq__item {
  background: var(--tg-color-white);
  border-color: var(--tg-color-border-ink);
}
.tg-surface-light .faq__item:hover,
.tg-surface-light .faq__item[open] { border-color: var(--tg-color-gold-dark); }
.tg-surface-light .faq__question { color: var(--tg-color-ink); }
.tg-surface-light .faq__question:hover { color: var(--tg-color-gold-text); }
.tg-surface-light .faq__question::after { border-color: var(--tg-color-gold-dark); color: var(--tg-color-gold-text); }
.tg-surface-light .faq__answer { color: var(--tg-color-ink-muted); }
.tg-surface-light .faq__answer a { color: var(--tg-color-gold-text); }

:lang(ar) .faq__question { font-size: 1.0625rem; }
:lang(ar) .faq__answer { font-size: 1rem; line-height: 2; }

/* ============================================================
   6. SERVICE CARD (liens vers les autres services)
   <div class="service-cards">
     <a class="service-card" href="…" data-service-slug="…">
       <div class="service-card__media"><img … loading="lazy"></div>
       <div class="service-card__body">
         <span class="service-card__num">01</span>
         <h3 class="service-card__title">Monocouche</h3>
         <p class="service-card__text">…</p>
         <span class="service-card__link">En savoir plus <svg class="tg-flip-rtl">…</svg></span>
       </div>
     </a>
   </div>
   ============================================================ */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: var(--tg-space-lg);
}

.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--service-surface);
  color: var(--service-text);
  text-decoration: none;
  border: 1px solid var(--service-border);
  border-radius: var(--tg-radius-sm);
  transition:
    transform 0.45s var(--tg-ease),
    border-color var(--tg-duration),
    box-shadow 0.45s var(--tg-ease);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--tg-color-gold);
  box-shadow: var(--tg-shadow-card);
}

.service-card__media {
  aspect-ratio: var(--service-card-media-ratio);
  overflow: hidden;
  background: var(--tg-color-dark-2);
}
.tg-surface-light .service-card__media { background: #ebe5d8; }
.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--tg-ease);
}
.service-card:hover .service-card__media img { transform: scale(1.06); }

.service-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--tg-space-lg);
}
.service-card__num {
  margin-bottom: var(--tg-space-sm);
  font-size: var(--tg-text-xs);
  font-weight: var(--tg-weight-semibold);
  letter-spacing: 0.12em;
  color: var(--service-accent);
}
.service-card__title {
  margin-bottom: var(--tg-space-sm);
  font-size: 1.3125rem; /* 21px */
}
.service-card__text {
  flex: 1;
  font-size: var(--tg-text-sm);
  line-height: 1.7;
  color: var(--service-text-muted);
}
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--tg-space-sm);
  margin-top: var(--tg-space-lg);
  font-size: var(--tg-text-sm);
  font-weight: var(--tg-weight-semibold);
  color: var(--service-accent);
}
.service-card__link svg {
  width: 1rem;
  height: 1rem;
  transition: translate var(--tg-duration) var(--tg-ease);
}
.service-card:hover .service-card__link svg { translate: 5px 0; }
[dir="rtl"] .service-card:hover .service-card__link svg { translate: -5px 0; }

/* ============================================================
   7. RESPONSIVE  (bp-lg 1024 · bp-md 768 · bp-sm 640)
   ============================================================ */
@media (max-width: 1024px) {
  .service-hero__grid { grid-template-columns: 1fr; }
  .service-hero__media { aspect-ratio: 16 / 10; order: 2; }
}

@media (max-width: 640px) {
  .service-hero__actions > * { flex: 1 1 100%; }
  .faq__question { padding: var(--tg-space-md) var(--tg-space-lg); }
  .faq__answer { padding: 0 var(--tg-space-lg) var(--tg-space-lg); }
}

/* Arabe : pas de majuscules forcées ni d'espacement large dans les petits libellés */
:lang(ar) .service-hero__eyebrow,
:lang(ar) .service-hero__badge,
:lang(ar) .breadcrumb { text-transform: none; font-size: var(--tg-text-sm); }



/* ============================================
   SHARED COMPONENTS (temporary — to be moved
   to components.css in Phase 4)
   ============================================ */
/* NOTE: this page does NOT load identity.css.
   If you need identity.css, rename these classes first (migration plan Phase 4). */

/* Mobile-first : styles de base = mobile, puis @media (min-width: <bp>).
   Breakpoints (tokens.css) : sm 640 · md 768 · lg 1024 · xl 1280 */


/* ============================================================
   8. BOUTONS
   <a class="tg-btn tg-btn--gold" href="#devis">Demander un devis</a>
   <button class="tg-btn tg-btn--outline" type="button">…</button>
   Icône flèche : <svg class="tg-btn-icon tg-flip-rtl" aria-hidden="true">…</svg>
   ============================================================ */
.tg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--tg-space-sm);
  min-height: var(--tg-control-h);
  padding: var(--tg-space-sm) var(--tg-space-lg);
  font-family: var(--tg-font-body);
  font-size: var(--tg-text-sm);
  font-weight: var(--tg-weight-semibold);
  line-height: 1.2;
  letter-spacing: var(--tg-tracking-wide);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  color: var(--tg-color-text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--tg-radius-sm);
  cursor: pointer;
  transition:
    background-color var(--tg-duration) var(--tg-ease),
    border-color var(--tg-duration) var(--tg-ease),
    color var(--tg-duration) var(--tg-ease),
    box-shadow var(--tg-duration) var(--tg-ease),
    translate var(--tg-duration) var(--tg-ease),
    scale var(--tg-duration-fast) var(--tg-ease-press);
}
.tg-btn-icon {
  width: var(--tg-icon-size);
  height: var(--tg-icon-size);
  flex-shrink: 0;
  transition: translate var(--tg-duration) var(--tg-ease);
}
.tg-btn:hover .tg-btn-icon { translate: var(--tg-space-xs) 0; }
[dir="rtl"] .tg-btn:hover .tg-btn-icon { translate: calc(-1 * var(--tg-space-xs)) 0; }

.tg-btn:focus-visible {
  outline: 2px solid var(--tg-focus-color);
  outline-offset: var(--tg-focus-offset);
}
.tg-btn:active { scale: 0.97; }

.tg-btn:disabled,
.tg-btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  translate: none;
}

/* Or — action principale (Devis) */
.tg-btn--gold {
  background: var(--tg-color-gold-gradient);
  color: var(--tg-color-black);
}
.tg-btn--gold:hover {
  box-shadow: var(--tg-shadow-gold);
  translate: 0 calc(-0.5 * var(--tg-space-xs));
}

/* Contour — action secondaire */
.tg-btn--outline {
  color: var(--tg-color-gold);
  border-color: var(--tg-color-gold);
}
.tg-btn--outline:hover {
  background: var(--tg-color-gold-hover);
  border-color: var(--tg-color-gold-hover);
  color: var(--tg-color-black);
}
.tg-surface-light .tg-btn--outline {
  color: var(--tg-color-gold-text);
  border-color: var(--tg-color-gold-dark);
}
.tg-surface-light .tg-btn--outline:hover {
  background: var(--tg-color-gold-dark);
  color: var(--tg-color-white);
}

/* Fantôme — action tertiaire */
.tg-btn--ghost {
  color: var(--tg-color-text);
  padding-inline: var(--tg-space-md);
}
.tg-btn--ghost:hover {
  background: var(--tg-color-gold-light);
  color: var(--tg-color-gold);
}
.tg-surface-light .tg-btn--ghost { color: var(--tg-color-ink); }
.tg-surface-light .tg-btn--ghost:hover { color: var(--tg-color-gold-text); }

/* Tailles */
.tg-btn--lg {
  min-height: var(--tg-control-h-lg);
  padding-inline: var(--tg-space-xl);
  font-size: var(--tg-text-base);
}
.tg-btn--block {
  display: flex;
  width: 100%;
}

:lang(ar) .tg-btn { font-size: var(--tg-text-base); }


/* ============================================================
   9. NAVIGATION
   <header class="tg-nav" id="tgNav">
     <div class="tg-nav-inner">
       <a class="tg-nav-logo" href="/"><img src="/images/logo-tg.png" alt="TOUITIGROUP" width="900" height="672"></a>
       <nav aria-label="Navigation principale">
         <ul class="tg-nav-links">
           <li><a class="tg-nav-link" href="/fr/services/" aria-current="page">Services</a></li> … (7 liens)
         </ul>
       </nav>
       <div class="tg-nav-actions">
         <div class="tg-nav-lang"><a href="…" aria-current="true">FR</a><span aria-hidden="true">|</span><a href="…" lang="ar">AR</a></div>
         <a class="tg-btn tg-btn--gold tg-nav-cta" href="#devis">Demander un devis</a>
         <button class="tg-nav-toggle" type="button" aria-expanded="false" aria-controls="tgMobileMenu" aria-label="Ouvrir le menu">
           <span></span><span></span><span></span>
         </button>
       </div>
     </div>
   </header>
   <div class="tg-mobile-menu" id="tgMobileMenu"> … liens + tg-btn … </div>

   États posés par le JS :
     .tg-nav.is-solid        après ~40px de scroll
     .tg-nav.is-menu-open    menu ouvert (la nav passe au-dessus du menu)
     .tg-mobile-menu.is-open menu ouvert
     body.tg-no-scroll       bloque le défilement pendant l'ouverture
   ============================================================ */
.tg-nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: var(--tg-z-nav);
  height: var(--tg-nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--tg-duration) var(--tg-ease),
    border-color var(--tg-duration) var(--tg-ease),
    backdrop-filter var(--tg-duration) var(--tg-ease);
}
.tg-nav.is-solid,
.tg-nav.is-menu-open {
  background: var(--tg-color-overlay-strong);
  -webkit-backdrop-filter: blur(var(--tg-blur));
  backdrop-filter: blur(var(--tg-blur));
  border-bottom-color: var(--tg-color-border);
}
.tg-nav.is-menu-open { z-index: calc(var(--tg-z-overlay) + 1); }

.tg-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tg-space-lg);
  width: 100%;
  max-width: var(--tg-container-max);
  margin-inline: auto;
  padding-inline: var(--tg-container-pad);
}

.tg-nav-logo {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  border-radius: var(--tg-radius-sm);
}
.tg-nav-logo img {
  width: auto;
  height: calc(var(--tg-nav-h) - var(--tg-space-lg)); /* 48px */
}

/* Liens : masqués sur mobile, visibles à partir de xl (7 liens = besoin de place) */
.tg-nav-links {
  display: none;
  align-items: center;
  gap: var(--tg-space-lg);
  list-style: none;
}
.tg-nav-link {
  position: relative;
  display: inline-block;
  padding-block: var(--tg-space-sm);
  font-size: var(--tg-text-sm);
  font-weight: var(--tg-weight-medium);
  color: var(--tg-color-text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--tg-duration) var(--tg-ease);
}
.tg-nav-link::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: var(--tg-space-xs);
  width: 100%;
  height: 1px;
  background: var(--tg-color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--tg-duration) var(--tg-ease);
}
[dir="rtl"] .tg-nav-link::after { transform-origin: right; }
.tg-nav-link:hover,
.tg-nav-link[aria-current="page"] { color: var(--tg-color-gold); }
.tg-nav-link:hover::after,
.tg-nav-link[aria-current="page"]::after { transform: scaleX(1); }

.tg-nav-actions {
  display: flex;
  align-items: center;
  gap: var(--tg-space-md);
}

/* Sélecteur de langue : masqué sur très petit écran (présent dans le menu mobile) */
.tg-nav-lang {
  display: none;
  align-items: center;
  gap: var(--tg-space-xs);
  font-size: var(--tg-text-xs);
  font-weight: var(--tg-weight-semibold);
  letter-spacing: var(--tg-tracking-wide);
  color: var(--tg-color-text-subtle);
}
.tg-nav-lang a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tg-control-h);
  padding-inline: var(--tg-space-xs);
  color: var(--tg-color-text-muted);
  text-decoration: none;
  transition: color var(--tg-duration) var(--tg-ease);
}
.tg-nav-lang a:hover,
.tg-nav-lang a[aria-current="true"] { color: var(--tg-color-gold); }

/* Bouton Devis : masqué sur mobile (présent dans le menu), visible dès md */
.tg-nav-cta { display: none; }

/* Hamburger */
.tg-nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--tg-space-xs);
  width: var(--tg-control-h);
  height: var(--tg-control-h);
  border-radius: var(--tg-radius-sm);
}
.tg-nav-toggle span {
  display: block;
  width: var(--tg-space-lg);
  height: 2px;
  background: var(--tg-color-gold);
  border-radius: 1px;
  transition: transform var(--tg-duration) var(--tg-ease), opacity var(--tg-duration);
}
/* écart 4px + barre 2px = décalage de 6px pour former la croix */
.tg-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(calc(var(--tg-space-xs) + 2px)) rotate(45deg); }
.tg-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.tg-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(calc(-1 * (var(--tg-space-xs) + 2px))) rotate(-45deg); }

/* Menu mobile : panneau qui glisse depuis le bord de fin (droite en LTR, gauche en RTL) */
.tg-mobile-menu {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  z-index: var(--tg-z-overlay);
  display: flex;
  flex-direction: column;
  gap: var(--tg-space-xs);
  width: min(100%, 24rem);
  padding: calc(var(--tg-nav-h) + var(--tg-space-lg)) var(--tg-container-pad) var(--tg-space-xl);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--tg-color-dark);
  border-inline-start: 1px solid var(--tg-color-border);
  translate: 100% 0;
  visibility: hidden;
  transition:
    translate var(--tg-duration) var(--tg-ease),
    visibility 0s linear var(--tg-duration);
}
[dir="rtl"] .tg-mobile-menu { translate: -100% 0; }
.tg-mobile-menu.is-open {
  translate: 0 0;
  visibility: visible;
  transition: translate var(--tg-duration) var(--tg-ease), visibility 0s;
  /* voile sur le reste de la page (non cliquable : le JS ferme au clic extérieur) */
  box-shadow: 0 0 0 100vmax var(--tg-color-overlay);
}

.tg-mobile-menu a:not(.tg-btn) {
  display: flex;
  align-items: center;
  min-height: var(--tg-control-h);
  padding-inline: var(--tg-space-sm);
  font-size: var(--tg-text-lg);
  font-weight: var(--tg-weight-medium);
  color: var(--tg-color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--tg-color-border);
  transition: color var(--tg-duration) var(--tg-ease), background-color var(--tg-duration);
}
.tg-mobile-menu a:not(.tg-btn):hover,
.tg-mobile-menu a[aria-current="page"] {
  color: var(--tg-color-gold);
  background: var(--tg-color-gold-light);
}
.tg-mobile-menu .tg-btn { margin-top: var(--tg-space-lg); }

/* Bloque le défilement de la page quand le menu est ouvert (classe posée par le JS sur <body>) */
.tg-no-scroll { overflow: hidden; }

@media (min-width: 640px) {
  .tg-nav-lang { display: flex; }
}
@media (min-width: 768px) {
  .tg-nav-cta { display: inline-flex; }
}
@media (min-width: 1280px) {
  .tg-nav-links { display: flex; }
  .tg-nav-toggle,
  .tg-mobile-menu { display: none; }
}


/* (10. FOOTER : déplacé dans assets/css/footer.css) */


/* ============================================================
   11. BOUTON WHATSAPP FLOTTANT
   <a class="tg-wa-float" href="https://wa.me/212661894818" target="_blank" rel="noopener"
      aria-label="Nous écrire sur WhatsApp">
     <svg viewBox="0 0 24 24" aria-hidden="true">…</svg>
   </a>
   Position : bas-droite en LTR, bas-gauche en RTL (inset-inline-end).
   ============================================================ */
.tg-wa-float {
  position: fixed;
  inset-block-end: calc(var(--tg-space-md) + env(safe-area-inset-bottom, 0px));
  inset-inline-end: var(--tg-space-md);
  z-index: var(--tg-z-wa-float);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tg-wa-size);
  height: var(--tg-wa-size);
  color: var(--tg-color-black);
  background: var(--tg-color-gold-gradient);
  border-radius: 50%;
  box-shadow: var(--tg-shadow-gold);
  text-decoration: none;
  transition: scale var(--tg-duration) var(--tg-ease), box-shadow var(--tg-duration) var(--tg-ease);
}
.tg-wa-float svg {
  width: 55%;
  height: 55%;
  fill: currentColor;
}
/* Icône au trait (stroke) : ajouter .tg-wa-float--stroke sur le lien */
.tg-wa-float--stroke svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tg-wa-float:hover { scale: 1.08; }
.tg-wa-float:active { scale: 0.96; }
.tg-wa-float:focus-visible {
  outline: 2px solid var(--tg-color-gold);
  outline-offset: var(--tg-focus-offset);
}

@media (min-width: 640px) {
  .tg-wa-float {
    inset-block-end: calc(var(--tg-space-lg) + env(safe-area-inset-bottom, 0px));
    inset-inline-end: var(--tg-space-lg);
  }
}


/* ============================================================
   12. APPARITION AU SCROLL
   <div class="tg-reveal" style="--d: .1s">…</div>
   Actif seulement si <html class="js"> (sinon tout reste visible).
   Le JS (IntersectionObserver) ajoute .is-visible.
   ============================================================ */
.js .tg-reveal {
  opacity: 0;
  translate: 0 var(--tg-space-lg);
  transition:
    opacity var(--tg-duration-slow) var(--tg-ease),
    translate var(--tg-duration-slow) var(--tg-ease);
  transition-delay: var(--d, 0s);
}
.js .tg-reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
  .js .tg-reveal {
    opacity: 1;
    translate: none;
  }
}



/* ============================================================
   13. SECTIONS DE PAGE (ajout Phase 2A — page Monocouche)
   <section class="tg-section [tg-surface-light]" id="…">
     <div class="container tg-section-inner">
       <p class="tg-eyebrow">Questions fréquentes</p>
       <h2 class="tg-section-title">Ce qu'il faut savoir sur le <strong>monocouche</strong></h2>
       <div class="prose">…</div>
       <div class="tg-btn-row">…boutons…</div>
     </div>
   </section>
   ============================================================ */
.tg-section {
  position: relative;
  padding-block: var(--tg-section-y);
}
/* Sections sombres successives : filet or discret pour les séparer */
.tg-section:not(.tg-surface-light) + .tg-section:not(.tg-surface-light) {
  border-top: 1px solid var(--tg-color-border);
}

/* Largeur de lecture : la section suit la largeur de .prose */
.tg-section-inner { max-width: calc(var(--tg-prose-max) + 2 * var(--tg-container-pad)); }
.tg-section-inner--wide { max-width: var(--tg-container-max); }

/* Sur-titre (petit libellé or au-dessus d'un h2) */
.tg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--tg-space-sm);
  margin-bottom: var(--tg-space-md);
  font-size: var(--tg-text-xs);
  font-weight: var(--tg-weight-semibold);
  letter-spacing: var(--tg-tracking-wider);
  text-transform: uppercase;
  color: var(--service-accent);
}
.tg-eyebrow::before {
  content: '';
  width: var(--tg-space-xl);
  height: 1px;
  background: currentColor;
}
:lang(ar) .tg-eyebrow { font-size: var(--tg-text-sm); text-transform: none; }

/* Titre de section hors .prose */
.tg-section-title {
  margin-bottom: var(--tg-space-xl);
  color: var(--service-text);
}
.tg-section-title strong {
  font-weight: inherit;
  color: var(--service-accent);
}
.tg-section-title--center { text-align: center; }

/* Titre du CTA final : sans-serif gras, plus « corporate » que le serif (Inter FR / Cairo AR) */
.tg-cta-title {
  font-family: var(--tg-font-body-fr);
  font-weight: var(--tg-weight-bold);
  letter-spacing: -0.02em;
}
:lang(ar) .tg-cta-title {
  font-family: var(--tg-font-heading-ar);
  letter-spacing: 0;
}

/* Mot mis en valeur dans un titre de CTA (règle « blanc + or ») :
   or sur fond noir, gold-text sur fond clair (contraste AA) */
.tg-gold-accent { color: var(--service-accent); }

/* Rangée de boutons */
.tg-btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--tg-space-md);
  margin-top: var(--tg-space-xl);
}
.tg-btn-row--center { justify-content: center; }

/* Callout isolé dans sa propre section : pas de marge haute superflue */
.tg-section > .container > .callout:first-child { margin-top: 0; }

@media (max-width: 639px) {
  .tg-btn-row > .tg-btn { flex: 1 1 100%; }
}



/* ============================================================
   14. PAGE MATÉRIAUX (ajout — /fr/materiaux/)
   Cartes fabricants · tableau produits par service · liste d'atouts
   ============================================================ */

/* ----- Cartes fabricants (noms en texte, sans logo — décision 2026-09-25) -----
   <div class="tg-brand-grid">
     <article class="tg-brand-card">
       <h3 class="tg-brand-card__name">Weber</h3>
       <p class="tg-brand-card__group">Groupe Saint-Gobain</p>      ← optionnel
       <p class="tg-brand-card__text">Leader mondial des mortiers industriels</p>  ← une phrase
       <span class="tg-brand-card__divider" aria-hidden="true"></span>
       <p class="tg-brand-card__label">Produit utilisé</p>
       <ul class="tg-brand-card__products">
         <li><span class="tg-brand-card__product">weber.pral prisma</span>
             <span class="tg-brand-card__product-desc">Mortier monocouche…</span></li>
       </ul>
       <div class="tg-brand-card__actions">
         <a class="tg-btn tg-btn--outline">Documentation officielle</a>
         <a class="tg-btn tg-btn--gold">Découvrir plus</a>
       </div>
     </article>
   </div>
   Carte volontairement claire (fond off-white) : lisible sur fond ivoire comme sur fond noir. */
.tg-brand-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--tg-space-lg);                         /* 24px */
}
.tg-brand-card {
  display: flex;
  flex-direction: column;
  padding: var(--tg-card-pad);                     /* 32px */
  background: var(--tg-color-card-bg);
  border: 1px solid var(--tg-color-card-border);
  border-radius: var(--tg-radius-sm);
  color: var(--tg-color-ink);
  transition:
    translate var(--tg-duration) var(--tg-ease),
    box-shadow var(--tg-duration) var(--tg-ease);
}
.tg-brand-card:hover {
  translate: 0 calc(-1 * var(--tg-space-xs));      /* -4px */
  box-shadow: var(--tg-shadow-card-soft);
}
.tg-brand-card__name {
  font-family: var(--tg-font-body);
  font-size: clamp(1.5rem, 2.2vw, 1.75rem);        /* 24–28px */
  font-weight: var(--tg-weight-bold);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--tg-color-ink);
}
.tg-brand-card__group {
  margin-top: var(--tg-space-xs);
  font-size: var(--tg-text-sm);
  color: var(--tg-color-ink-muted);
}
.tg-brand-card__text {
  margin-top: var(--tg-space-sm);
  font-size: var(--tg-text-sm);
  line-height: 1.5;
  color: var(--tg-color-ink);
  text-wrap: balance;
}
.tg-brand-card__divider {
  display: block;
  width: 40px;
  height: 2px;
  margin-block: var(--tg-space-lg);
  background: var(--tg-color-gold);
}
.tg-brand-card__label {
  margin-bottom: var(--tg-space-sm);
  font-size: var(--tg-text-xs);
  font-weight: var(--tg-weight-semibold);
  letter-spacing: var(--tg-tracking-wide);
  text-transform: uppercase;
  color: var(--tg-color-gold-text);
}
.tg-brand-card__products {
  display: flex;
  flex-direction: column;
  gap: var(--tg-space-md);
  list-style: none;
}
.tg-brand-card__products li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tg-brand-card__product {
  font-size: var(--tg-text-base);
  font-weight: var(--tg-weight-semibold);
  color: var(--tg-color-ink);
}
.tg-brand-card__product-desc {
  font-size: var(--tg-text-sm);
  font-weight: var(--tg-weight-regular);
  line-height: 1.55;
  color: var(--tg-color-ink-muted);
}
.tg-brand-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tg-space-sm);
  margin-top: auto;
  padding-top: var(--tg-space-xl);
}
/* Le bouton contour doit rester lisible sur la carte claire */
.tg-brand-card .tg-btn--outline {
  color: var(--tg-color-gold-text);
  border-color: var(--tg-color-gold-dark);
}
.tg-brand-card .tg-btn--outline:hover {
  background: var(--tg-color-gold-dark);
  color: var(--tg-color-white);
}

/* ----- Tableau (produits par service) -----
   <div class="tg-table-wrap"><table class="tg-table">…</table></div>
   Sur mobile : chaque ligne devient une carte (data-label sur chaque <td>). */
.tg-table-wrap { overflow-x: auto; }
.tg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--tg-text-sm);
  color: var(--service-text);
}
.tg-table caption {
  margin-bottom: var(--tg-space-md);
  text-align: start;
  font-size: var(--tg-text-sm);
  color: var(--service-text-muted);
}
.tg-table th,
.tg-table td {
  padding: var(--tg-space-md) var(--tg-space-lg);
  text-align: start;
  vertical-align: top;
  border-bottom: 1px solid var(--service-border);
}
.tg-table thead th {
  font-size: var(--tg-text-xs);
  font-weight: var(--tg-weight-semibold);
  letter-spacing: var(--tg-tracking-wide);
  text-transform: uppercase;
  color: var(--service-accent);
  border-bottom-color: var(--tg-color-border-strong);
}
.tg-table tbody th { font-weight: var(--tg-weight-semibold); }
.tg-table tbody th a { color: inherit; text-underline-offset: 3px; }
.tg-table tbody th a:hover { color: var(--service-accent); }
.tg-table tbody tr { transition: background-color var(--tg-duration); }
.tg-table tbody tr:hover { background: var(--tg-color-gold-light); }
.tg-table .tg-table__product { font-weight: var(--tg-weight-semibold); }

@media (max-width: 639px) {
  .tg-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .tg-table caption { display: block; width: 100%; } /* sinon la légende reste en colonne étroite une fois le tableau en bloc */
  .tg-table,
  .tg-table tbody,
  .tg-table tr,
  .tg-table th,
  .tg-table td { display: block; width: 100%; }
  .tg-table tr {
    margin-bottom: var(--tg-space-md);
    border: 1px solid var(--service-border);
    border-radius: var(--tg-radius-sm);
  }
  .tg-table th,
  .tg-table td { border-bottom: 0; padding-block: var(--tg-space-sm); }
  .tg-table tbody th { padding-top: var(--tg-space-md); }
  .tg-table td::before {
    content: attr(data-label);
    display: block;
    font-size: var(--tg-text-xs);
    font-weight: var(--tg-weight-semibold);
    letter-spacing: var(--tg-tracking-wide);
    text-transform: uppercase;
    color: var(--service-accent);
  }
}

/* ----- Liste d'atouts (icône + titre + texte) -----
   <ul class="tg-feature-list">
     <li class="tg-feature"><span class="tg-feature__icon"><svg aria-hidden="true">…</svg></span>
       <h3 class="tg-feature__title">…</h3><p class="tg-feature__text">…</p></li>
   </ul> */
.tg-feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--tg-space-lg);
  list-style: none;
}
.tg-feature {
  padding: var(--tg-space-lg);
  background: var(--service-surface);
  border: 1px solid var(--service-border);
  border-radius: var(--tg-radius-sm);
}
.tg-feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tg-control-h);
  height: var(--tg-control-h);
  margin-bottom: var(--tg-space-md);
  color: var(--service-accent);
  border: 1px solid var(--service-accent);
  border-radius: 50%;
}
.tg-feature__icon svg { width: var(--tg-icon-size); height: var(--tg-icon-size); }
.tg-feature__title {
  margin-bottom: var(--tg-space-xs);
  font-size: var(--tg-text-lg);
  color: var(--service-text);
}
.tg-feature__text {
  font-size: var(--tg-text-sm);
  line-height: 1.75;
  color: var(--service-text-muted);
}

/* Mention légale discrète (marques) */
.tg-legal-note {
  margin-top: var(--tg-space-xl);
  font-size: var(--tg-text-xs);
  line-height: 1.6;
  color: var(--service-text-muted);
}

@media (min-width: 768px) {
  .tg-feature-list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .tg-brand-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Hero sans visuel (page sans photo de chantier dédiée) : une seule colonne */
.service-hero__grid--single { grid-template-columns: 1fr; }
.service-hero__grid--single .service-hero__lead { max-width: 46rem; }

/* ----- Étapes de méthode (liste numérotée) -----
   <ol class="tg-steps"><li class="tg-step"><span class="tg-step__num">01</span><span class="tg-step__title">…</span></li></ol> */
.tg-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--tg-space-md);
  list-style: none;
}
.tg-step {
  display: flex;
  align-items: center;
  gap: var(--tg-space-md);
  padding: var(--tg-space-lg);
  background: var(--service-surface);
  border: 1px solid var(--service-border);
  border-radius: var(--tg-radius-sm);
}
.tg-step__num {
  flex-shrink: 0;
  min-width: 2.75rem;
  font-size: var(--tg-text-h3);
  font-weight: var(--tg-weight-extrabold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--service-accent);
}
.tg-step__title {
  font-size: var(--tg-text-base);
  font-weight: var(--tg-weight-semibold);
  color: var(--service-text);
}
@media (min-width: 640px) { .tg-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tg-steps { grid-template-columns: repeat(3, 1fr); } }
