/* ============================================================
   DESIGN SYSTEM : TOKENS
   ============================================================ */

:root {
  /* Palette : tons institutionnels adoucis */
  --navy:        #0E2340;
  --navy-deep:   #091828;
  --navy-mid:    #17365E;
  --navy-light:  #23507F;
  --cream:       #F7F3EC;
  --cream-warm:  #F0EADF;
  --cream-deep:  #E7DFD1;
  --surface:     #FFFFFF;
  --gold:        #A9894F;
  --gold-light:  #C7AC76;
  --red:         #B3272C;
  --red-deep:    #932025;
  --text-body:   #3A4B60;
  --text-muted:  #6E7F94;
  --text-light:  #A8B8CC;

  /* Typography : Arial exclusivement (charte uniformisée) */
  --font-serif:   Arial, Helvetica, sans-serif;
  --font-display: Arial, Helvetica, sans-serif;
  --font-sans:    Arial, Helvetica, sans-serif;

  /* Spacing scale : aération renforcée */
  --space-xs:  0.625rem;
  --space-sm:  1.125rem;
  --space-md:  2.25rem;
  --space-lg:  5rem;
  --space-xl:  8.5rem;
  --space-2xl: 13rem;

  /* Transitions */
  --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast:    0.25s var(--ease);
  --t-base:    0.35s var(--ease);
  --t-slow:    0.55s var(--ease-out);

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Ombres : extrêmement douces, à peine perceptibles */
  --shadow-xs:    0 1px 2px rgba(14, 35, 64, 0.035);
  --shadow-card:  0 1px 2px rgba(14, 35, 64, 0.03), 0 6px 24px rgba(14, 35, 64, 0.045);
  --shadow-soft:  0 2px 4px rgba(14, 35, 64, 0.03), 0 12px 34px rgba(14, 35, 64, 0.055);
  --shadow-hover: 0 3px 8px rgba(14, 35, 64, 0.04), 0 20px 52px rgba(14, 35, 64, 0.085);
  --shadow-dark:  0 2px 6px rgba(0, 0, 0, 0.10), 0 16px 44px rgba(0, 0, 0, 0.16);
}

/* ============================================================
   RESET & BASE
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--cream);
  color: var(--navy);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
/* Charte : aucun italique sur l'ensemble du site */
em, i, cite, address { font-style: normal; }

/* ------------------------------------------------------------
   GARDE-FOU ANTI-FILETS
   Aucun trait décoratif ne doit réapparaître : ni <hr>, ni bordure
   de séparation, ni soulignement sur du texte statique.
   ------------------------------------------------------------ */
hr { display: none !important; }

/* ============================================================
   TYPOGRAPHY SYSTEM
   ============================================================ */

/* Surtitre : jamais de filet ni de soulignement : seul l'interlettrage
   et la couleur assurent la hiérarchie. */
.t-overline {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
}

.t-display {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6.2vw, 5.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.005em;
}

.t-display-italic {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 700;
}

.t-heading-1 {
  font-family: var(--font-serif);
  font-size: clamp(2.15rem, 4.2vw, 3.65rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.005em;
}

.t-heading-2 {
  font-family: var(--font-serif);
  font-size: clamp(1.625rem, 2.6vw, 2.375rem);
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: -0.003em;
}

.t-heading-3 {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.t-body-lg {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.003em;
  color: var(--text-body);
}

.t-body {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.78;
  letter-spacing: 0.003em;
  color: var(--text-body);
}

.t-small {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.7;
  letter-spacing: 0.003em;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Les anciens filets dorés (.gold-rule, .divider-gold, .stat-card__rule)
   ont été supprimés. Ils sont neutralisés ici au cas où un fragment de
   markup en réintroduirait : plus aucun trait ne peut s'afficher. */
.gold-rule,
.gold-rule--center,
.divider-gold,
.stat-card__rule {
  display: none !important;
}

.section-pad {
  padding: var(--space-xl) 0;
}

.section-pad-lg {
  padding: var(--space-2xl) 0;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Nouvelles animations légères ─────────────────── */

/* Flottement doux : éléments décoratifs hero */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-10px) rotate(0.5deg); }
  66%       { transform: translateY(-5px) rotate(-0.5deg); }
}

/* Balancement latéral doux */
@keyframes sway {
  0%, 100% { transform: translateX(0px); }
  50%       { transform: translateX(6px); }
}

/* Apparition légère pour les cartes certif */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim-fade-up {
  animation: fadeUp 0.8s var(--ease-out) both;
}

.anim-fade-up--delay-1 { animation-delay: 0.15s; }
.anim-fade-up--delay-2 { animation-delay: 0.3s; }
.anim-fade-up--delay-3 { animation-delay: 0.45s; }
.anim-fade-up--delay-4 { animation-delay: 0.6s; }

/* Appliqué sur éléments décoratifs hero */
.anim-float   { animation: float 6s ease-in-out infinite; }
.anim-float-2 { animation: float 8s ease-in-out 1s infinite; }
.anim-sway    { animation: sway  7s ease-in-out infinite; }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(247, 243, 236, 0.9);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  /* Aucune bordure basse : la séparation se fait par le flou de fond,
     puis par une ombre très douce une fois la page défilée. */
  transition: padding 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}

.site-header.scrolled {
  padding: 1rem var(--space-md);
  background: rgba(247, 243, 236, 0.96);
  box-shadow: var(--shadow-xs);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-shrink: 0;
}

.logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.logo:hover .logo-img {
  transform: rotate(8deg) scale(1.05);
}

/* Nav : aucune séparation verticale entre les entrées, seul l'espace compte */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.main-nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--navy);
  opacity: 0.68;
  position: relative;
  /* Pas de ::after doré : le survol se lit à la couleur seule. */
  transition: opacity var(--t-base), color var(--t-base);
}

.main-nav__link:hover,
.main-nav__link:focus-visible {
  opacity: 1;
  color: var(--gold);
}

/* CTA Button */
.btn-nav {
  font-size: 0.78125rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--navy);
  padding: 0.75rem 1.65rem;
  border-radius: var(--radius-sm);
  transition: background var(--t-base), transform var(--t-base), box-shadow var(--t-base);
}

.btn-nav:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(14, 35, 64, 0.16);
}

/* Mobile burger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--navy);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
  padding-top: 190px;
  padding-bottom: 0;
  background-color: var(--navy-deep);
  /* Chemin relatif a cette feuille de style (assets/css/) */
  background-image:
    linear-gradient(115deg, rgba(9,24,40,0.93) 0%, rgba(9,24,40,0.78) 45%, rgba(9,24,40,0.52) 100%),
    url('../images/photos/ssiap-pompier.jpg');
  background-size: cover;
  background-position: center center;
  position: relative;
  overflow: hidden;
}

/* Voile dégradé bas pour ancrer la barre d'agréments */
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(9,24,40,0.95) 0%, transparent 100%);
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  min-height: 62vh;
}

.hero-content {
  max-width: 760px;
  padding-bottom: var(--space-xl);
}

.hero-content .t-overline {
  margin-bottom: var(--space-sm);
  color: var(--gold-light);
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--space-md);
}

.hero-title em {
  font-style: normal;
  color: var(--gold-light);
}

.hero-lead {
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.75;
  color: rgba(247,243,236, 0.82);
  max-width: 560px;
  margin-bottom: var(--space-md);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

/* CTA principal : rouge institutionnel (moins agressif que le rouge vif) */
.btn-hero {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  padding: 1.1875rem 2.75rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: background var(--t-base), transform var(--t-base), box-shadow var(--t-base);
  box-shadow: 0 8px 26px rgba(179, 39, 44, 0.28);
}
.btn-hero:hover {
  background: var(--red-deep);
  transform: translateY(-3px);
  box-shadow: 0 14px 38px rgba(179, 39, 44, 0.36);
}
.btn-hero span { transition: transform var(--t-base); }
.btn-hero:hover span { transform: translateX(4px); }

/* Bouton secondaire : aplat translucide au lieu d'un contour tracé */
.btn-hero-ghost {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(247, 243, 236, 0.10);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 1.1875rem 2.25rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background var(--t-base), transform var(--t-base), color var(--t-base);
}
.btn-hero-ghost:hover {
  background: rgba(247, 243, 236, 0.2);
  color: var(--gold-light);
  transform: translateY(-3px);
}

/* Barre d'agréments intégrée bas de hero */
.hero-agrements {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--space-md) 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  align-items: stretch;
}
.hero-agrement {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 0.875rem 1.375rem;
  box-shadow: var(--shadow-dark);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.hero-agrement:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12), 0 22px 54px rgba(0,0,0,0.2);
}
.hero-agrement img {
  height: 34px;
  width: auto;
  object-fit: contain;
}
.hero-agrement__txt {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.hero-agrement__name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--navy);
}
.hero-agrement__sub {
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.btn-primary {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--navy);
  padding: 1.0625rem 2.5rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  position: relative;
  overflow: hidden;
  /* Plus de shimmer en boucle : le bouton ne bouge qu'au survol. */
  transition: background var(--t-base), transform var(--t-base), box-shadow var(--t-base);
}

.btn-primary:hover {
  background: var(--navy-mid);
  transform: translateY(-3px);
  box-shadow: 0 12px 34px rgba(14, 35, 64, 0.2);
}

.btn-primary span {
  position: relative;
  z-index: 1;
}

/* Lien-action : la flèche est un caractère, pas un filet. */
.btn-ghost {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap var(--t-base), color var(--t-base);
}

.btn-ghost::after {
  content: '→';
  transition: transform var(--t-base);
}

.btn-ghost:hover {
  gap: 0.875rem;
  color: var(--gold);
}

/* Video Block */
.hero-media {
  position: relative;
}

.video-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--navy-deep);
  box-shadow: var(--shadow-hover);
  aspect-ratio: 16/10;
}

.video-wrapper video,
.video-wrapper iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
  gap: 1rem;
  cursor: pointer;
}

/* Pastille de lecture : disque plein translucide, sans anneau tracé */
.video-placeholder__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(247, 243, 236, 0.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-base), transform var(--t-base);
}

.video-placeholder__icon svg {
  margin-left: 3px;
}

.video-placeholder:hover .video-placeholder__icon {
  background: rgba(169, 137, 79, 0.42);
  transform: scale(1.08);
}

.video-placeholder__label {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(247,243,236, 0.6);
}

.hero-video__sound {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(9, 24, 40, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t-base), transform var(--t-fast);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-video__sound:hover {
  background: rgba(169, 137, 79, 0.6);
  transform: scale(1.08);
}

.video-caption {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.video-caption__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.video-caption__text {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-style: normal;
}

/* Floating stat badges */
.hero-stat {
  position: absolute;
  z-index: 3;
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-soft);
}

.hero-stat--1 {
  top: -20px;
  left: -30px;
  animation: float 5s ease-in-out infinite;
}

.hero-stat--2 {
  bottom: 20px;
  right: -20px;
  animation: float 7s ease-in-out 1.5s infinite;
}

.hero-stat__number {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1;
}

.hero-stat__label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ============================================================
   CERTIFICATIONS & AGRÉMENTS
   ============================================================ */

/* Séparation par contraste de fond uniquement : aucun filet haut/bas. */
.certif-section {
  padding: var(--space-xl) 0;
  background: var(--cream-warm);
}

.certif-intro {
  text-align: center;
  margin-bottom: 4.5rem;
}

.certif-intro .t-overline {
  color: var(--gold);
}

.certif-main-title {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--navy);
  line-height: 1.15;
  max-width: 820px;
  margin: 1rem auto 0;
}

.certif-main-title em {
  color: var(--gold);
  font-style: normal;
}

.certif-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  max-width: 1240px;
  margin: 0 auto;
}

@media (max-width: 1180px) { .certif-grid { grid-template-columns: repeat(2, 1fr); max-width: 780px; } }
@media (max-width: 560px)  { .certif-grid { grid-template-columns: 1fr; max-width: 420px; } }

/* Repere « Document 1/2 » des deux pieces CNAPS */
.certif-tag {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(169, 137, 79, 0.14);
  color: var(--gold);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* Carte sans contour : fond blanc + ombre très douce */
.certif-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  text-align: left;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--t-base), transform var(--t-base);
  opacity: 0;
  animation: slideUp 0.55s var(--ease-out) forwards;
}

.certif-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
}

.certif-card:nth-child(1) { animation-delay: 0.05s; }
.certif-card:nth-child(2) { animation-delay: 0.12s; }
.certif-card:nth-child(3) { animation-delay: 0.19s; }
.certif-card:nth-child(4) { animation-delay: 0.26s; }

.certif-logo-wrap {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  transition: transform 0.3s var(--ease);
}

.certif-logo-wrap img {
  max-height: 64px;
  max-width: 150px;
  width: auto;
  object-fit: contain;
}

.certif-card:hover .certif-logo-wrap {
  transform: scale(1.05);
}

.certif-name {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--navy);
  line-height: 1.3;
  margin-top: 0.25rem;
}

.certif-num {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.5;
}

.certif-desc {
  font-size: 0.8125rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 0.25rem;
}

.certif-arrow {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.6875rem;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.25s var(--ease), color 0.25s;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.certif-card:hover .certif-arrow {
  gap: 0.65rem;
  color: var(--gold-light);
}

/* ============================================================
   CHIFFRES CLÉS : STATS
   ============================================================ */

.stats-section {
  padding: var(--space-xl) 0 calc(var(--space-xl) + 1rem);
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(169,137,79,0.07) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.stats-section .container { position: relative; z-index: 1; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stats-grid { grid-template-columns: 1fr; } }

/* Base card */
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.75rem 1.75rem 2.5rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--t-base), box-shadow var(--t-base);
  will-change: transform;
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* Accent (dark) card variant */
.stat-card--accent {
  background: var(--navy);
  box-shadow: 0 2px 6px rgba(14,35,64,0.08), 0 14px 40px rgba(14,35,64,0.14);
}

.stat-card--accent:hover {
  box-shadow: 0 3px 10px rgba(14,35,64,0.1), 0 24px 60px rgba(14,35,64,0.22);
}

/* ── Ring (circular progress) ── */
.stat-ring {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 1.375rem;
  flex-shrink: 0;
}

.stat-ring svg {
  transform: rotate(-90deg);
  overflow: visible;
}

.stat-ring__bg {
  fill: none;
  stroke: rgba(14,35,64,0.06);
  stroke-width: 5;
}

.stat-ring__fill {
  fill: none;
  stroke: var(--gold);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 251.3;   /* 2π × r=40 */
  stroke-dashoffset: 251.3;  /* starts empty */
  transition: stroke-dashoffset 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-ring__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0px;
}

.stat-ring__number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.stat-card--accent .stat-ring__bg { stroke: rgba(247,243,236,0.1); }
.stat-card--accent .stat-ring__number { color: var(--cream); }

/* ── Plain (big number) ── */
.stat-plain {
  margin-bottom: 1.375rem;
}

.stat-plain__number {
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  letter-spacing: 0.01em;
}

.stat-plain__unit {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold);
}

/* ── Labels ── */
.stat-label {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--navy);
  /* L'espace remplace l'ancien filet doré .stat-card__rule */
  margin-bottom: 0.875rem;
  line-height: 1.45;
}

.stat-desc {
  font-size: 0.8125rem;
  color: var(--text-muted, #6b7280);
  line-height: 1.7;
  max-width: 200px;
}

.stat-card--accent .stat-label { color: var(--cream); }
.stat-card--accent .stat-desc  { color: rgba(247,243,236,0.45); }

/* ── Icon badge ── */
.stat-icon {
  width: 44px; height: 44px;
  background: rgba(169,137,79,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  transition: background 0.3s;
}
.stat-card:hover .stat-icon { background: rgba(169,137,79,0.2); }
.stat-card--accent .stat-icon { background: rgba(247,243,236,0.08); }
.stat-card--accent:hover .stat-icon { background: rgba(247,243,236,0.14); }

/* Le filet doré interne des cartes chiffres a été supprimé
   voir la neutralisation de .stat-card__rule plus haut. */

/* ============================================================
   CATALOGUE SECTION
   ============================================================ */

.catalogue-section {
  padding: var(--space-xl) 0;
  background: var(--cream);
}

.section-header {
  margin-bottom: var(--space-lg);
}

.section-header--center {
  text-align: center;
}

/* Onglets : pastilles douces, sans filet de soulignement ni rail bas */
.tabs-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-lg);
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}

.tabs-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 0.875rem 1.75rem;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--t-base), background var(--t-base);
}

.tab-btn:hover {
  color: var(--navy);
  background: rgba(14, 35, 64, 0.045);
}

.tab-btn.active {
  color: var(--cream);
  background: var(--navy);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  animation: fadeIn 0.4s var(--ease) both;
}

/* ── Carte de formation (style vignette) ── */
/* Vignette formation : aucun contour, seulement fond + ombre douce */
.fcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--t-slow), box-shadow var(--t-slow);
  will-change: transform;
}
.fcard:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-hover);
}

.fcard__media {
  position: relative;
  height: 180px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.fcard__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(14,35,64,0.05) 0%, rgba(14,35,64,0.55) 100%);
  transition: opacity 0.4s var(--ease);
}
.fcard:hover .fcard__media { transform: scale(1.04); transition: transform 0.6s var(--ease); }
.fcard__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(14, 35, 64, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Badges colorés par type de formation : aplats pleins, sans contour */
.fcard__badge--green  { background: rgba(26, 112, 69, 0.95); }
.fcard__badge--yellow { background: rgba(186, 146, 0, 0.96); color: #241d00; }
.fcard__badge--red    { background: rgba(172, 51, 39, 0.95); }
.fcard__badge--blue   { background: rgba(27, 68, 118, 0.95); }
.fcard__badge--purple { background: rgba(81, 38, 118, 0.95); }
.fcard__badge--navy   { background: rgba(14, 35, 64, 0.92); }
.fcard__badge--soon   { background: rgba(99, 115, 137, 0.96); }

/* Carte « à venir » (non cliquable) */
.fcard--soon { opacity: 0.92; }
.fcard--soon:hover { transform: none; box-shadow: var(--shadow-card); }
.fcard__media--soon {
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy-deep) 100%) !important;
  position: relative;
}
.fcard__media--soon::before {
  content: '⏳';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  opacity: 0.6;
}
.fcard__link--soon {
  color: var(--text-muted);
  cursor: not-allowed;
  font-style: normal;
}
.fcard__link--soon:hover { color: var(--text-muted); gap: normal; }

.fcard__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.75rem 1.875rem 2rem;
}
.fcard__cat {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.625rem;
}
.fcard__title {
  font-family: var(--font-serif);
  font-size: 1.3125rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.32;
  letter-spacing: -0.004em;
  margin-bottom: 0.875rem;
}
.fcard__desc {
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.72;
  margin-bottom: 1.5rem;
}
.fcard__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem 1.375rem;
  margin-bottom: 1.5rem;
}
.fcard__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.fcard__meta-item svg { flex-shrink: 0; }
.fcard__link {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: gap 0.25s var(--ease), color 0.25s;
}
.fcard__link span { transition: transform 0.25s var(--ease); }
.fcard__link:hover { gap: 0.75rem; color: var(--gold-light); }
.fcard__link:hover span { transform: translateX(3px); }

/* ── Modal détail de formation ── */
.fmodal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(14,35,64, 0.55);
  backdrop-filter: blur(4px);
}
.fmodal-overlay.open { display: flex; animation: fadeIn 0.25s var(--ease) both; }
.fmodal {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--cream);
  border-radius: var(--radius-md);
  box-shadow: 0 30px 90px rgba(14,35,64, 0.4);
}
.fmodal__media {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.fmodal__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(14,35,64,0.15), rgba(14,35,64,0.55));
}
.fmodal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(14,35,64, 0.6);
  color: var(--cream);
  font-size: 1.125rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s;
}
.fmodal__close:hover { background: var(--navy); }
.fmodal__body { padding: 2rem 2.25rem 2.25rem; }
.fmodal__cat {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.fmodal__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 0.875rem;
}
.fmodal__desc {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
/* Bloc chiffres : encadré par un aplat doux, jamais par deux filets. */
.fmodal__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding: 1.75rem;
  background: var(--cream-warm);
  border-radius: var(--radius-md);
  margin: 2rem 0;
}
.fmodal__prereq-title {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.fmodal__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  padding: 0.875rem 1.75rem;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.3s;
}
.fmodal__cta:hover { background: var(--navy-light); }

/* Stat display */
.stat-block {
  margin-bottom: 1.5rem;
}

.stat-block:last-child {
  margin-bottom: 0;
}

.stat-block__label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.stat-block__value {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--navy);
  line-height: 1;
}

.stat-block__value--normal {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 400;
}

.stat-block__value sup {
  font-size: 0.875rem;
  font-weight: 300;
  opacity: 0.6;
}

.stat-block__sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.125rem;
}

/* Prérequis */
.prereq-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.prereq-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.65;
}

/* Puce de validation : pastille pleine (aucun anneau tracé). */
.prereq-item::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
  background-color: rgba(169, 137, 79, 0.18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 8 6'%3E%3Cpath d='M1 3l2 2 4-4' stroke='%23A9894F' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
}

/* ============================================================
   PLANNING SECTION
   ============================================================ */

.planning-section {
  padding: var(--space-xl) 0;
  background: var(--cream-warm);
}

.planning-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-lg);
  align-items: start;
}

/* Calendar */
.calendar-widget {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.calendar-header {
  background: var(--navy);
  color: var(--cream);
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calendar-month {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 500;
}

.calendar-nav {
  display: flex;
  gap: 0.5rem;
}

.calendar-nav button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  color: var(--cream);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), transform var(--t-fast);
  cursor: pointer;
  background: rgba(247, 243, 236, 0.1);
}

.calendar-nav button:hover {
  background: rgba(247, 243, 236, 0.22);
  transform: scale(1.06);
}

.calendar-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 0.75rem 1rem 0;
}

.calendar-days-header span {
  text-align: center;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  padding: 0.5rem 1rem 1rem;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2px;
  min-height: 50px;
}

.cal-day__num {
  font-size: 0.8125rem;
  color: var(--navy);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.25s;
  cursor: default;
  font-weight: 400;
}

.cal-day--today .cal-day__num {
  background: var(--navy);
  color: var(--cream);
  font-weight: 500;
}

.cal-day--other .cal-day__num {
  color: var(--text-light);
}

.cal-day--weekend .cal-day__num {
  color: var(--text-muted);
}

.session-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-top: 2px;
  justify-content: center;
}

.session-tag {
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 1px 4px;
  border-radius: 2px;
}

.session-tag--sst  { background: #D4EDD1; color: #1A6B30; }
.session-tag--mac  { background: #D1DEF0; color: #1A3A6B; }
.session-tag--ssiap { background: #F0E8D1; color: #6B3A1A; }
.session-tag--hobo { background: #EDD1D4; color: #6B1A20; }

/* Calendar Legend */
/* Légende : détachée par un aplat, pas par un filet haut. */
.calendar-legend {
  padding: 1.125rem 1.75rem 1.375rem;
  background: var(--cream-warm);
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.6875rem;
  color: var(--text-body);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

/* Planning sidebar */
.planning-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Toolbox */
.toolbox-widget {
  background: var(--navy);
  border-radius: var(--radius-md);
  padding: 2rem;
  color: var(--cream);
}

.toolbox-widget .t-overline {
  color: var(--gold-light);
  margin-bottom: var(--space-sm);
}

.toolbox-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.toolbox-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toolbox-link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.125rem;
  background: rgba(247, 243, 236, 0.07);
  border-radius: var(--radius-md);
  color: var(--cream);
  font-size: 0.875rem;
  transition: background var(--t-base), transform var(--t-base);
}

.toolbox-link:hover {
  background: rgba(247, 243, 236, 0.14);
  transform: translateX(5px);
}

.toolbox-link__icon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: rgba(247,243,236, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toolbox-link__arrow {
  margin-left: auto;
  opacity: 0.4;
  font-size: 0.75rem;
  transition: opacity 0.3s, transform 0.3s;
}

.toolbox-link:hover .toolbox-link__arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* Accessibility widget */
.access-widget {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
}

.access-widget .t-overline { margin-bottom: var(--space-sm); }

.access-widget__title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.875rem;
}

.access-widget__text {
  font-size: 0.8125rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.access-person {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem;
  background: var(--cream-warm);
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
}

.access-person__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  flex-shrink: 0;
}

.access-person__name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--navy);
}

.access-person__role {
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Bouton contact : aplat doux plutôt qu'un contour tracé */
.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--cream-warm);
  padding: 0.9375rem 1.25rem;
  border-radius: var(--radius-sm);
  width: 100%;
  justify-content: center;
  transition: background var(--t-base), color var(--t-base), transform var(--t-base);
}

.btn-contact:hover {
  background: var(--navy);
  color: var(--cream);
  transform: translateY(-2px);
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--navy-deep);
  color: var(--cream);
  padding: var(--space-xl) 0 var(--space-md);
}

/* Colonnes séparées par l'espace seul : plus de filet bas. */
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr 1fr;
  gap: 3.5rem;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
}

.footer-col__label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.footer-col__logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.footer-col__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--cream);
  line-height: 1.2;
}

.footer-col__text {
  font-size: 0.8125rem;
  color: rgba(247,243,236, 0.55);
  line-height: 1.75;
}

.footer-col__text strong {
  color: rgba(247,243,236, 0.85);
  font-weight: 500;
}

.footer-address {
  font-style: normal;
  font-size: 0.8125rem;
  color: rgba(247,243,236, 0.55);
  line-height: 1.8;
}

.footer-transport-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-transport-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.8125rem;
  color: rgba(247,243,236, 0.55);
  line-height: 1.5;
}

.transport-badge {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 1px;
}

.transport-badge--metro { background: #8E4EA8; color: #fff; }
.transport-badge--bus   { background: #23984F; color: #fff; }
.transport-badge--rer   { background: #B3272C; color: #fff; }
.transport-badge--auto  { background: rgba(247,243,236,0.18); color: var(--cream); }

.footer-legal-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-legal-item {
  font-size: 0.75rem;
  color: rgba(247,243,236, 0.4);
  line-height: 1.6;
}

.footer-legal-item a {
  transition: color 0.3s;
}

.footer-legal-item a:hover {
  color: var(--gold-light);
}

.footer-legal-item strong {
  color: rgba(247,243,236, 0.65);
  font-weight: 500;
  display: block;
  margin-bottom: 1px;
}

/* Footer bottom bar */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom__copy {
  font-size: 0.75rem;
  color: rgba(247,243,236, 0.3);
}

.footer-bottom__links {
  display: flex;
  gap: 2rem;
}

.footer-bottom__links a {
  font-size: 0.75rem;
  color: rgba(247,243,236, 0.3);
  transition: color 0.3s;
}

.footer-bottom__links a:hover {
  color: var(--gold-light);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .planning-inner {
    grid-template-columns: 1fr;
  }

  .planning-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --space-xl: 4rem;
    --space-2xl: 6rem;
  }

  /* Qui sommes-nous : stack on mobile */
  #qui-sommes-nous .container > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Financements : stack on mobile */
  section[aria-labelledby="fin-title"] div[style*="grid-template-columns:repeat(3"] {
    grid-template-columns: 1fr !important;
  }

  /* Gallery : stack on mobile */
  section[aria-label="Nos formations sur le terrain"] div[style*="grid-template-columns:1.55fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Header */
  .main-nav,
  .btn-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-stat--1,
  .hero-stat--2 {
    display: none;
  }

  /* Tab panel */
  .tab-panel.active {
    grid-template-columns: 1fr;
  }

  /* Formation modal */
  .fmodal__stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .fmodal__body { padding: 1.5rem 1.5rem 1.75rem; }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .planning-sidebar {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-cta-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .tabs-nav {
    gap: 0;
  }

  .tab-btn {
    padding: 0.875rem 1.25rem;
    font-size: 0.75rem;
  }
}

/* ============================================================
   RESPONSIVE MOBILE : Nouvelles sections
   ============================================================ */
@media (max-width: 768px) {
  /* Video showcase */
  .video-showcase__inner {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .video-showcase__videos {
    grid-template-columns: 1fr 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  /* Footer certifs */
  .footer-certifs-bar {
    gap: 1.25rem;
    padding: 1.5rem 0 1.25rem;
  }
  .footer-certifs-bar img {
    max-height: 24px;
    max-width: 80px;
  }

  /* Partners marquee */
  .partner-item img {
    max-height: 28px;
  }

  /* FAQ */
  .faq-question {
    font-size: 0.875rem;
    padding: 1.1rem 0;
  }
}

/* Terrain photo grid : mobile */
@media (max-width: 860px) {
  .terrain-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 560px) {
  .terrain-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Financing cards grid : mobile */
@media (max-width: 860px) {
  .financing-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

@media (max-width: 480px) {
  /* Video showcase : stack videos vertically on very small screens */
  .video-showcase__videos {
    grid-template-columns: 1fr;
    max-width: 240px;
  }
  .video-thumb {
    aspect-ratio: 16/9;
  }

  /* Footer certifs */
  .footer-certifs-bar {
    gap: 1rem;
  }
  .footer-certifs-bar img {
    max-height: 20px;
    max-width: 70px;
  }
}

/* ============================================================
   MOBILE NAV OVERLAY
   ============================================================ */

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--navy-deep);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-out);
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav__link {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--cream);
  opacity: 0.8;
  transition: opacity 0.3s;
}

.mobile-nav__link:hover { opacity: 1; }

.mobile-nav__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: var(--cream);
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.mobile-nav__close:hover { opacity: 1; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */

/* Apparition au défilement : fondu + légère montée, rapide et discrète. */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.08s; }
.reveal--delay-2 { transition-delay: 0.16s; }
.reveal--delay-3 { transition-delay: 0.24s; }
.reveal--delay-4 { transition-delay: 0.32s; }
.reveal--delay-5 { transition-delay: 0.4s; }
.reveal--delay-6 { transition-delay: 0.48s; }

/* ============================================================
   SÉPARATION DES SECTIONS
   Uniquement par le rythme vertical et le contraste de fond :
   aucun séparateur graphique n'est défini dans cette feuille.
   ============================================================ */

/* ============================================================
   SKIP LINK (ACCESSIBILITY)
   ============================================================ */

.skip-link {
  position: absolute;
  top: -50px;
  left: 0;
  background: var(--navy);
  color: var(--cream);
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  z-index: 1000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ============================================================
   TÉMOIGNAGES / AVIS
   ============================================================ */

.testimonials-section {
  padding: var(--space-xl) 0;
  background: var(--cream);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 860px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-form-grid { grid-template-columns: 1fr !important; }
}
@media (min-width: 861px) and (max-width: 1100px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.375rem 2.25rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--t-base), box-shadow var(--t-base);
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.testimonial-stars {
  color: #C08D18;
  font-size: 1.125rem;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

/* Citation : aucun filet vertical à gauche : le guillemet suffit. */
.testimonial-quote {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.85;
  font-style: normal;
  flex: 1;
  margin-bottom: 1.75rem;
  position: relative;
  padding-left: 1.5rem;
}

.testimonial-quote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -2px;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--gold);
  line-height: 1;
  opacity: 0.4;
}

/* Auteur : détaché par l'espace, plus par un filet haut. */
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-top: 0.5rem;
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 600;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--navy);
  margin-bottom: 0.125rem;
}

.testimonial-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--cream-warm);
  color: var(--navy-mid);
}
.testimonial-badge--google {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--cream-warm);
  color: #3c4043;
  text-transform: none;
  letter-spacing: 0.02em;
}
.testimonial-avatar img { display: block; }

/* Badge note globale Google : pastille pleine, sans contour */
.google-badge-wrap { margin-top: 1.5rem; }
.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface);
  border-radius: var(--radius-pill);
  padding: 0.7rem 1.25rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--t-base), transform var(--t-base);
}
.google-badge:hover { box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.google-badge__rating { font-size: 1.2rem; font-weight: 800; color: var(--navy); }
.google-badge__stars { font-size: 0.95rem; letter-spacing: 1px; }
.google-badge__count { font-size: 0.875rem; color: var(--text-muted); }

/* ── Bouton avis ─── */
.btn-leave-review {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--navy);
  color: var(--cream);
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background 0.3s, transform 0.3s;
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
}

.btn-leave-review:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
}

/* ── Modal avis ─── */
.review-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9,24,40, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.review-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.review-modal {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 24px 80px rgba(14,35,64, 0.28);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.35s var(--ease-out);
  max-height: 90vh;
  overflow-y: auto;
}

.review-overlay.open .review-modal {
  transform: translateY(0) scale(1);
}

.review-modal__title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  color: var(--navy);
  margin-bottom: 1.75rem;
}

.rv-field {
  margin-bottom: 1.25rem;
}

.rv-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* Champs : délimités par un aplat, pas par un contour tracé.
   L'anneau de focus reste présent (accessibilité clavier). */
.rv-input, .rv-select, .rv-textarea {
  width: 100%;
  padding: 0.875rem 1.125rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--cream-warm);
  transition: background var(--t-fast), box-shadow var(--t-fast);
  outline: none;
}

.rv-input::placeholder, .rv-textarea::placeholder { color: var(--text-muted); }

.rv-input:focus, .rv-select:focus, .rv-textarea:focus {
  background: var(--surface);
  box-shadow: 0 0 0 2px var(--gold);
}

.rv-textarea { resize: vertical; min-height: 100px; }

/* Étoiles interactives */
.star-picker {
  display: flex;
  gap: 0.375rem;
  font-size: 1.875rem;
  cursor: pointer;
}

.star-picker span {
  color: #D8D8D8;
  transition: color 0.12s, transform 0.12s;
  user-select: none;
}

.star-picker span.lit {
  color: #C9900C;
}

.star-picker span:hover {
  transform: scale(1.15);
}

.review-thanks {
  text-align: center;
  padding: 2rem 1rem;
}

.review-thanks__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.review-thanks__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.review-thanks__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   SECTION VIDÉO SHOWCASE
   ============================================================ */
.video-showcase-section {
  padding: var(--space-xl) 0;
  background: var(--navy);
}
.video-showcase__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}
@media (max-width: 768px) {
  .video-showcase__inner { grid-template-columns: 1fr; }
}
.video-showcase__text { color: var(--cream); }
.video-showcase__text .t-overline { color: rgba(169,137,79,0.8); }
.video-showcase__text .t-heading-1 { color: var(--cream); }
.video-showcase__text .t-body-lg { color: rgba(247,243,236,0.65); }
.video-showcase__videos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
}
.video-thumb {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 9/16;
  cursor: pointer;
  background: var(--navy-deep);
  transition: transform 0.4s var(--ease-out);
}
.video-thumb:hover { transform: translateY(-4px); }
.video-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.video-thumb__overlay {
  position: absolute;
  inset: 0;
  background: rgba(9,24,40,0.48);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  transition: background 0.3s;
}
.video-thumb:hover .video-thumb__overlay { background: rgba(9,24,40,0.22); }
/* Bouton lecture : disque plein translucide, sans anneau tracé */
.video-thumb__play {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(247,243,236,0.2);
  transition: background var(--t-base), transform var(--t-base);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.video-thumb:hover .video-thumb__play {
  background: rgba(169,137,79,0.65);
  transform: scale(1.1);
}
.video-thumb__label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247,243,236,0.7);
  text-align: center;
  padding: 0 0.875rem;
  line-height: 1.4;
}
/* When playing : hide overlay */
.video-thumb.playing .video-thumb__overlay { opacity: 0; }

/* ============================================================
   PARTENAIRES : "Ils nous font confiance"
   ============================================================ */
.partners-section {
  padding: var(--space-lg) 0 calc(var(--space-lg) + 0.5rem);
  background: var(--navy-deep);
  overflow: hidden;
}
.partners-intro {
  text-align: center;
  margin-bottom: 2.5rem;
}
.partners-intro .t-overline { color: rgba(169,137,79,0.65); }
.partners-title {
  font-family: var(--font-sans);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--cream);
  margin-top: 0.625rem;
  letter-spacing: 0.01em;
}
.partners-track-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}
.partners-track {
  display: flex;
  gap: 4rem;
  align-items: center;
  animation: marquee 22s linear infinite;
  width: max-content;
}
.partners-track:hover { animation-play-state: paused; }
.partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 52px;
}
.partner-item img {
  max-height: 38px;
  max-width: 150px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.5;
  transition: opacity 0.3s;
}
.partner-item img:hover { opacity: 0.9; }

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section {
  padding: var(--space-xl) 0;
  background: var(--cream-warm);
}
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  /* Les questions étaient séparées par des filets : elles le sont
     désormais par des cartes espacées. */
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.faq-item {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 0 1.75rem;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--t-base), transform var(--t-base);
}
.faq-item:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem 0;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--navy);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--t-fast);
}
.faq-question:hover { color: var(--gold); }
.faq-question[aria-expanded="true"] { color: var(--gold); }
.faq-chevron {
  flex-shrink: 0;
  color: var(--gold);
  transition: transform var(--t-base);
}
.faq-question[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.3s;
}
.faq-answer.open {
  max-height: 320px;
  padding-bottom: 1.625rem;
}
.faq-answer p {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.82;
}

/* ============================================================
   FOOTER CERTIFS BAR
   ============================================================ */
.footer-certifs-bar {
  padding: 2.5rem 0 1.5rem;
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  justify-content: center;
}
.footer-certifs-bar img {
  max-height: 32px;
  max-width: 110px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.35;
  transition: opacity 0.3s;
}
.footer-certifs-bar img:hover { opacity: 0.75; }

/* ============================================================
   NOS PUBLICS : liste à puces (colonne droite qui-sommes-nous)
   ============================================================ */
.public-row {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  background: var(--cream-warm);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--navy);
  transition: transform var(--t-base), background var(--t-base), box-shadow var(--t-base);
}
.public-row:hover {
  transform: translateX(5px);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.public-check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}

/* ============================================================
   NOS VALEURS : grille 4 colonnes (style épuré)
   ============================================================ */
.values-section {
  padding: var(--space-xl) 0;
  background: #fff;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-top: var(--space-lg);
}
.value-col {
  text-align: center;
  padding: 0 0.5rem;
}
/* Pastille de valeur : disque plein doré très clair, sans anneau tracé */
.value-col__icon {
  width: 68px; height: 68px;
  margin: 0 auto 1.75rem;
  border-radius: 50%;
  background: rgba(169,137,79,0.13);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-base), transform var(--t-base);
}
.value-col:hover .value-col__icon {
  background: var(--navy);
  transform: translateY(-4px);
}
.value-col:hover .value-col__icon path,
.value-col:hover .value-col__icon circle,
.value-col:hover .value-col__icon rect {
  stroke: var(--gold-light);
}
.value-col__title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1rem;
}
.value-col__text {
  font-size: 1rem;
  line-height: 1.78;
  color: var(--text-muted);
}
.values-grid + .values-grid { margin-top: 2.5rem; }

/* ============================================================
   PHOTOS SHOWCASE (remplacent les vidéos test)
   ============================================================ */
.showcase-photo {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 200px;
  margin: 0;
}
.showcase-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}
.showcase-photo:hover img { transform: scale(1.05); }
.showcase-photo__label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--cream);
  background: linear-gradient(to top, rgba(9,24,40,0.88) 0%, transparent 100%);
}

/* ============================================================
   RÉFÉRENCES CLIENTS
   ============================================================ */
.clients-section {
  padding: var(--space-xl) 0;
  background: var(--cream);
}
.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.clients-group-label {
  margin-top: var(--space-lg);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
}
.clients-group-label:first-of-type { margin-top: var(--space-lg); }
.client-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 140px;
  text-align: center;
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.client-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}
/* Cadre de logo a hauteur fixe : toutes les marques s'alignent de la
   meme facon, quelles que soient leurs proportions d'origine. */
.client-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  width: 100%;
  margin-bottom: 0.875rem;
}
.client-card__logo img {
  max-height: 60px;
  max-width: 148px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform var(--t-base);
}
.client-card--logo:hover .client-card__logo img { transform: scale(1.06); }

.client-card__caption {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  line-height: 1.4;
}

.client-card img {
  max-height: 46px;
  max-width: 150px;
  width: auto;
  object-fit: contain;
}
.client-card__name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--navy);
}
.client-card__tag {
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

@media (max-width: 900px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .values-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 150px; }
  .hero-title { font-size: clamp(2.1rem, 9vw, 3rem); }
}

/* ============================================================
   MICRO-DÉTAILS PREMIUM (finitions subtiles)
   ============================================================ */

/* Sélection de texte aux couleurs de la charte */
::selection { background: var(--gold); color: #fff; }
::-moz-selection { background: var(--gold); color: #fff; }

/* Barre de défilement discrète (WebKit) */
@media (min-width: 900px) {
  html { scrollbar-width: thin; scrollbar-color: var(--gold) var(--cream-warm); }
  ::-webkit-scrollbar { width: 11px; }
  ::-webkit-scrollbar-track { background: var(--cream-warm); }
  ::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 8px;
    border: 3px solid var(--cream-warm);
  }
  ::-webkit-scrollbar-thumb:hover { background: var(--navy-mid); }
}

/* Focus visible net et accessible (navigation clavier) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Décalage d'ancre pour ne pas passer sous l'en-tête fixe */
section[id],
[id^="tab-"],
#accueil, #qui-sommes-nous, #nos-valeurs, #catalogue,
#planning, #avis, #faq, #acces, #etudes-de-cas, #contact-form, #contact {
  scroll-margin-top: 96px;
}

/* Le filet doré fixe en haut de page a été supprimé.
   Il est neutralisé explicitement pour qu'aucune règle ne le rétablisse. */
body::before,
body::after {
  content: none !important;
}

.value-col, .client-card, .public-row, .showcase-photo, .fcard, .certif-card, .stat-card {
  will-change: transform;
}

/* ============================================================
   BLOCS SUR FOND SOMBRE (financements, contact)
   Anciennement délimités par des contours 1px : désormais par
   un aplat translucide et un simple décalage au survol.
   ============================================================ */

.dark-card {
  background: rgba(247, 243, 236, 0.06);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: background var(--t-base), transform var(--t-base);
}
.dark-card:hover {
  background: rgba(247, 243, 236, 0.1);
  transform: translateY(-4px);
}

.dark-panel {
  background: rgba(247, 243, 236, 0.05);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
}

/* Pastille d'icône sur fond sombre : disque plein, sans contour */
.icon-chip {
  width: 46px;
  height: 46px;
  background: rgba(169, 137, 79, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Champs du formulaire de contact (fond sombre) ── */
.cf-input {
  width: 100%;
  padding: 0.9375rem 1.125rem;
  background: rgba(247, 243, 236, 0.08);
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--cream);
  outline: none;
  transition: background var(--t-fast), box-shadow var(--t-fast);
}
.cf-input::placeholder { color: rgba(247, 243, 236, 0.42); }
.cf-input:focus {
  background: rgba(247, 243, 236, 0.13);
  box-shadow: 0 0 0 2px var(--gold);
}
select.cf-input { appearance: none; cursor: pointer; }
textarea.cf-input { resize: vertical; }

/* Bouton de fermeture de modale : sans contour */
.modal-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
  background: var(--cream-warm);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.modal-close-btn:hover { background: var(--navy); color: var(--cream); }

/* Piège à robots : retiré du flux et de l'affichage, sans display:none
   (certains automates ignorent les champs explicitement masqués). */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
/* Le champ piège hérite sinon de la bordure par défaut du navigateur :
   on la neutralise pour que le site reste à zéro trait, même hors écran. */
.hp-field input { border: 0 !important; outline: 0 !important; background: none; }

/* ============================================================
   ÉTUDES DE CAS
   ============================================================ */

.cases-section {
  padding: var(--space-xl) 0;
  background: var(--cream);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: var(--space-lg);
}
@media (max-width: 980px) { .cases-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cases-grid { grid-template-columns: 1fr; } }

.case-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--t-slow), box-shadow var(--t-slow);
}
.case-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-hover); }

.case-card__media {
  position: relative;
  height: 190px;
  overflow: hidden;
}
.case-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.case-card:hover .case-card__media img { transform: scale(1.05); }

.case-card__sector {
  position: absolute;
  top: 1rem; left: 1rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(14, 35, 64, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--cream);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case-card__body { padding: 1.75rem 1.875rem 2rem; }

.case-card__client {
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.case-card__list dt {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.case-card__list dd {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 1.125rem;
}
.case-card__list dd:last-child { margin-bottom: 0; }

/* ============================================================
   BANDEAU DE CONSENTEMENT (affiché seulement si un traceur est actif)
   ============================================================ */

.cookie-banner {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 400;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.375rem 1.75rem;
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dark);
  animation: fadeUp 0.5s var(--ease-out) both;
}
.cookie-banner__txt {
  flex: 1 1 320px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(247, 243, 236, 0.82);
}
.cookie-banner__txt a { color: var(--gold-light); font-weight: 600; }
.cookie-banner__actions { display: flex; gap: 0.625rem; }
.cookie-btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--t-base), transform var(--t-base);
}
.cookie-btn--ghost { background: rgba(247,243,236,0.1); color: var(--cream); }
.cookie-btn--ghost:hover { background: rgba(247,243,236,0.2); }
.cookie-btn--main { background: var(--gold); color: #fff; }
.cookie-btn--main:hover { background: var(--gold-light); transform: translateY(-2px); }

@media (max-width: 768px) {
  /* Ne doit pas recouvrir la barre d'action fixe. */
  .cookie-banner { bottom: 88px; }
}

/* ============================================================
   ACCÈS AU CENTRE : carte + itinéraire
   ============================================================ */

.access-section {
  padding: var(--space-xl) 0;
  background: var(--cream-warm);
}

.access-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: var(--space-md);
  align-items: stretch;
  margin-top: var(--space-lg);
}
@media (max-width: 900px) { .access-grid { grid-template-columns: 1fr; } }

.access-info {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}
.access-info__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.625rem;
}
.access-info__addr {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--navy);
}

.access-transports {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.access-transports li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-body);
}

.access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.access-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--cream-warm);
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background var(--t-base), color var(--t-base), transform var(--t-base);
}
.access-btn:hover { background: var(--cream-deep); transform: translateY(-2px); }
.access-btn--primary { background: var(--navy); color: var(--cream); }
.access-btn--primary:hover { background: var(--navy-mid); color: #fff; }

.access-note {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Carte : visuel de substitution tant que le visiteur n'a pas consenti */
.access-map {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream-deep);
  box-shadow: var(--shadow-card);
}
.access-map__placeholder { position: absolute; inset: 0; }
.access-map__placeholder img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.75) brightness(0.62);
}
.access-map__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  padding: 2rem;
  background: rgba(9, 24, 40, 0.55);
}
.access-map__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}
.access-map__consent {
  max-width: 420px;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(247, 243, 236, 0.82);
}

/* ============================================================
   BARRE D'ACTION FIXE : MOBILE UNIQUEMENT
   Masquee sur ordinateur (l'en-tete y porte deja le CTA).
   ============================================================ */

.sticky-cta { display: none; }

@media (max-width: 768px) {
  .sticky-cta {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 180;
    gap: 0.625rem;
    padding: 0.75rem 0.875rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: rgba(247, 243, 236, 0.94);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    box-shadow: 0 -6px 28px rgba(14, 35, 64, 0.1);
  }

  .sticky-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9375rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    /* Cible tactile confortable (>= 44px) */
    min-height: 50px;
    transition: background var(--t-base), transform var(--t-base);
  }
  .sticky-cta__btn:active { transform: scale(0.97); }

  .sticky-cta__btn--call {
    flex: 0 0 38%;
    background: var(--cream-deep);
    color: var(--navy);
  }
  .sticky-cta__btn--main {
    flex: 1;
    background: var(--red);
    color: #fff;
  }

  /* Le contenu de bas de page ne doit jamais passer sous la barre. */
  .site-footer { padding-bottom: calc(var(--space-md) + 76px); }
}

/* ============================================================
   GARDE-FOU FINAL : ZÉRO TRAIT PARASITE
   Filet de sécurité appliqué après toutes les autres règles :
   même un style hérité, injecté par JS ou écrit en ligne ne peut
   pas réintroduire un trait horizontal, vertical ou incliné.
   ============================================================ */

/* 1. Séparateurs HTML */
hr,
.divider,
.separator,
.gold-rule,
.divider-gold,
.stat-card__rule,
.legal-hero .rule {
  display: none !important;
}

/* 2. Aucune bordure décorative sur les conteneurs de contenu */
section,
article,
aside,
figure,
blockquote,
.card,
.container,
.container-narrow,
.section-header,
.certif-section,
.faq-section,
.partners-section,
.footer-grid,
.testimonial-author,
.calendar-legend,
.fmodal__stats,
.footer-certifs-bar,
.tabs-nav {
  border: 0 !important;
}

/* 3. Aucun soulignement sur du texte statique (seuls les liens
      peuvent en porter un, et uniquement au survol) */
.t-overline,
.t-display,
.t-heading-1,
.t-heading-2,
.t-heading-3,
.t-body,
.t-body-lg,
.t-small,
h1, h2, h3, h4, h5, h6,
p, span, li, dt, dd, label, figcaption, strong {
  text-decoration: none;
}

/* ============================================================
   TRANSITIONS DE SURVOL HOMOGÈNES
   Rapides, discrètes, jamais bloquantes.
   ============================================================ */

a,
button,
.fcard,
.certif-card,
.stat-card,
.client-card,
.testimonial-card,
.public-row,
.value-col,
.faq-item,
.toolbox-link,
.hero-agrement,
.google-badge,
.showcase-photo {
  transition: color 0.3s ease-in-out,
              background-color 0.3s ease-in-out,
              opacity 0.3s ease-in-out,
              transform 0.3s ease-in-out,
              box-shadow 0.3s ease-in-out;
}

/* Effet de levée subtil, mutualisé */
.lift:hover { transform: translateY(-4px); }

/* ============================================================
   RESPECT DES PRÉFÉRENCES DE MOUVEMENT RÉDUIT (accessibilité)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  /* Le contenu à révéler doit rester visible sans animation */
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
