/* ═══════════════════════════════════════════
   GROUPE IMT — main.css
   FIXES: overflow, menu mobile, tailles texte
═══════════════════════════════════════════ */

:root {
  --rouge: #8B0000;
  --rouge-clair: #A50000;
  --rouge-pale: #fdf0f0;
  --bleu: #1A3C8F;
  --bleu-clair: #2251C5;
  --bleu-pale: #eef2fc;
  --blanc: #fff;
  --gris-clair: #f7f8fc;
  --gris: #e4e4e4;
  --texte: #1a1a2e;
  --texte-sec: #5a5a72;
  --footer-bg: #1a1a2e;
  --ombre: 0 4px 20px rgba(0,0,0,0.09);
  --ombre-forte: 0 8px 32px rgba(0,0,0,0.13);
}

/* ─── RESET & BASE ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* FIX overflow horizontal */
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Open Sans', sans-serif;
  background: #fff;
  color: var(--texte);
  /* FIX overflow horizontal */
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  /* TEXT SIZE AUGMENTÉE */
  font-size: 1.13rem;
  line-height: 1.82;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

button, a, input, select, textarea, label, li, p {
  word-break: break-word;
}

a { color: inherit; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
::-webkit-scrollbar-thumb { background: var(--rouge); border-radius: 3px; }

/* ─── NAVBAR ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* FIX: pas de width: 100vw qui cause l'overflow */
  width: 100%;
  z-index: 1000;
  background: #fff;
  border-bottom: 2px solid var(--rouge);
  box-shadow: 0 2px 10px rgba(139,0,0,0.08);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  transition: height .3s;
}
nav.scrolled { height: 60px; }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
/* Logo WordPress (custom-logo) */
.nav-logo .custom-logo-link { display: flex; align-items: center; }
.nav-logo .custom-logo-link img,
.nav-logo > img {
  height: 50px;
  width: 50px;
  object-fit: contain;
  transition: height .3s;
  border-radius: 4px;
}
nav.scrolled .nav-logo .custom-logo-link img,
nav.scrolled .nav-logo > img { height: 42px; width: 42px; }

.nav-brand { line-height: 1.1; }
.nav-brand-top {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--texte);
  letter-spacing: 1.5px;
}
.nav-brand-sub {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.62rem;
  color: var(--rouge);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
  /* FIX: peut réduire si viewport réduit */
  flex-wrap: nowrap;
  min-width: 0;
}
.nav-links a {
  font-family: 'Montserrat', sans-serif;
  color: var(--texte);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: color .2s;
  position: relative;
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--rouge);
  transition: width .3s;
}
.nav-links a:hover { color: var(--rouge); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--rouge); }
.nav-links a.active::after { width: 100%; background: var(--rouge); }

.nav-cta {
  background: var(--rouge) !important;
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 4px;
}
.nav-cta:hover { background: var(--rouge-clair) !important; }
.nav-cta::after { display: none !important; }

/* ─── HAMBURGER ─── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  /* FIX: assez grand pour cliquer sur mobile */
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--texte);
  border-radius: 2px;
  transition: all .35s;
  transform-origin: center;
}
/* Hamburger animé quand ouvert */
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ─── MENU MOBILE ─── */
.mobile-menu {
  /* FIX: position fixed — width 100%, pas de dépassement */
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  background: #fff;
  border-top: 1px solid var(--gris);
  z-index: 999;
  padding: 0.5rem 5%;
  flex-direction: column;
  box-shadow: var(--ombre);
  box-sizing: border-box;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  /* Animation */
  transform-origin: top;
}
nav.scrolled ~ .mobile-menu,
nav.scrolled + .mobile-menu { top: 60px; max-height: calc(100vh - 60px); }

.mobile-menu.open { display: flex; }

.mobile-menu a {
  color: var(--texte);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gris);
  display: block;
  transition: color .2s, padding-left .2s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover {
  color: var(--rouge);
  padding-left: 6px;
}

/* ─── SÉPARATEURS ─── */
.section-sep {
  position: relative;
  overflow: hidden;
  height: 48px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  /* FIX overflow */
  width: 100%;
}
.section-sep.grey { background: var(--gris-clair); }
.sep-line {
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--rouge) 30%, var(--bleu) 70%, transparent 100%);
  position: relative;
}
.sep-line::before, .sep-line::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
}
.sep-line::before { left: 30%; background: var(--rouge); }
.sep-line::after  { right: 30%; background: var(--bleu); }
.sep-diamond {
  position: absolute;
  width: 12px; height: 12px;
  background: #fff;
  border: 2px solid var(--rouge);
  transform: rotate(45deg);
}

/* ─── SECTIONS ─── */
section {
  padding: 90px 5%;
  /* FIX overflow horizontal */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-tag {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--rouge);
  margin-bottom: 0.7rem;
}
.section-tag::before, .section-tag::after { content: '—'; margin: 0 7px; opacity: 0.4; }

/* TEXT SIZE AUGMENTÉE */
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  color: var(--texte);
  margin-bottom: 0.9rem;
  line-height: 1.2;
}
.section-desc {
  color: var(--texte-sec);
  font-size: 1.1rem;
  line-height: 1.9;
  max-width: 700px;
  margin: 0 auto;
}

/* ─── HERO ─── */
#accueil {
  min-height: 100vh;
  padding: 110px 5% 70px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #fff 0%, #f8f9fc 60%, #fff 100%);
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}
#accueil::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%238B0000' fill-opacity='0.035'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  /* FIX: limit width */
  width: 100%;
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  /* TEXT SIZE AUGMENTÉE */
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  color: var(--texte);
  margin-bottom: 1.2rem;
}
.hero-title .accent { color: var(--rouge); }

.hero-sub {
  /* TEXT SIZE AUGMENTÉE */
  font-size: 1.15rem;
  color: var(--texte-sec);
  line-height: 1.9;
  margin-bottom: 2.2rem;
  max-width: 560px;
}

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-rouge {
  background: var(--rouge);
  color: #fff;
  padding: 15px 32px;
  border-radius: 4px;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: all .25s;
  border: 2px solid var(--rouge);
  display: inline-block;
}
.btn-rouge:hover { background: transparent; color: var(--rouge); }

.btn-outline {
  background: transparent;
  color: var(--bleu);
  padding: 15px 32px;
  border-radius: 4px;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: all .25s;
  border: 2px solid var(--bleu);
  display: inline-block;
}
.btn-outline:hover { background: var(--bleu); color: #fff; }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--gris);
  flex-wrap: wrap;
}
/* TEXT SIZE AUGMENTÉE */
.hero-stat-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 2.6rem;
  color: var(--rouge);
  line-height: 1;
  display: block;
}
.hero-stat-label {
  font-size: 0.78rem;
  color: var(--texte-sec);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 4px;
  display: block;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  /* FIX overflow: pas de largeur fixe dépassant le parent */
}
.hero-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* FIX: largeur responsive au lieu de 420px fixe */
  width: min(420px, 100%);
  height: min(420px, 100vw - 10%);
  max-width: 100%;
}
.hero-logo-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,0,0,0.06) 0%, rgba(26,60,143,0.04) 50%, transparent 75%);
  animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.06); opacity: 0.8; }
}
.hero-logo-img {
  /* FIX: taille responsive */
  width: min(340px, 85%);
  height: min(340px, 85vw);
  max-width: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  animation: float 5s ease-in-out infinite;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 12px 32px rgba(139,0,0,0.22)) drop-shadow(0 4px 12px rgba(26,60,143,0.15));
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-16px) scale(1.02); }
}

/* ─── À PROPOS ─── */
#apropos { background: var(--gris-clair); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.about-logo-side { display: flex; justify-content: center; align-items: center; }
.about-logo-img {
  width: min(240px, 100%);
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 6px 18px rgba(139,0,0,0.16));
}
.about-tag {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--rouge);
  display: block;
  margin-bottom: 0.7rem;
}
/* TEXT SIZE AUGMENTÉE */
.about-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(1.65rem, 2.5vw, 2.2rem);
  color: var(--texte);
  margin-bottom: 1.1rem;
  line-height: 1.25;
}
.about-title .accent { color: var(--rouge); }
/* TEXT SIZE AUGMENTÉE */
.about-desc {
  color: var(--texte-sec);
  line-height: 1.9;
  margin-bottom: 1.5rem;
  font-size: 1.08rem;
}
.about-vals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-top: 1.5rem;
}
.aval {
  background: #fff;
  padding: 1.2rem 1.3rem;
  border-radius: 8px;
  border-left: 3px solid var(--rouge);
  transition: all .3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.aval:hover { transform: translateX(4px); box-shadow: var(--ombre); }
/* TEXT SIZE AUGMENTÉE */
.aval h4 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1rem; color: var(--texte); margin-bottom: 0.35rem; }
.aval p  { font-size: 0.93rem; color: var(--texte-sec); line-height: 1.72; }

/* ─── DÉPARTEMENTS ─── */
#departements { background: #fff; }
.dept-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--ombre-forte);
}
.dept-card {
  background: #fff;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all .35s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  border: 1px solid var(--gris);
}
.dept-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--rouge);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s;
}
.dept-card.bleu::before  { background: var(--bleu); }
.dept-card.or::before    { background: #B8860B; }
.dept-card.teal::before  { background: #009688; }
.dept-card:hover::before { transform: scaleX(1); }
.dept-card:hover         { background: var(--gris-clair); }

.dept-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 3.5rem;
  color: rgba(139,0,0,0.06);
  position: absolute;
  top: 1.2rem; right: 1.8rem;
  line-height: 1;
}
.dept-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 100px;
  margin-bottom: 1.2rem;
  width: fit-content;
  position: relative;
  z-index: 1;
}
.bg-rouge { background: var(--rouge-pale); color: var(--rouge); border: 1px solid rgba(139,0,0,0.2); }
.bg-bleu  { background: var(--bleu-pale);  color: var(--bleu);  border: 1px solid rgba(26,60,143,0.2); }
.bg-or    { background: #fdf9e8; color: #B8860B; border: 1px solid rgba(184,134,11,0.2); }
.bg-teal  { background: #e8f5f4; color: #009688; border: 1px solid rgba(0,150,136,0.2); }

.dept-icon {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  display: block;
}
/* TEXT SIZE AUGMENTÉE */
.dept-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.55rem;
  color: var(--texte);
  margin-bottom: 0.8rem;
  position: relative;
  z-index: 1;
}
.dept-card p {
  color: var(--texte-sec);
  font-size: 0.97rem;
  line-height: 1.78;
  position: relative;
  z-index: 1;
  flex: 1;
}
.dept-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 1.3rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: gap .3s;
  position: relative;
  z-index: 1;
}
.dept-link:hover { gap: 10px; }
.link-rouge { color: var(--rouge); }
.link-bleu  { color: var(--bleu); }
.link-or    { color: #B8860B; }
.link-teal  { color: #009688; }

/* ─── PARTENAIRES ─── */
#partenaires { background: var(--gris-clair); }
.partners-carousel-wrap {
  position: relative;
  /* FIX: overflow hidden pour le carousel */
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}
.partners-carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.8s cubic-bezier(0.33, 0.1, 0.25, 1.0);
  padding: 0.5rem 0;
  /* FIX: ne pas dépasser le conteneur */
  min-width: 0;
}
.partner-card {
  flex: 0 0 calc(20% - 1.2rem);
  background: #fff;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gris);
  transition: all .3s;
  min-height: 140px;
  cursor: pointer;
  text-decoration: none;
}
.partner-card:hover {
  border-color: var(--rouge);
  box-shadow: var(--ombre);
  transform: translateY(-3px);
}
.partner-img {
  max-width: 180px;
  max-height: 100px;
  width: 100%;
  object-fit: contain;
  filter: grayscale(15%);
  transition: filter .3s;
}
.partner-card:hover .partner-img { filter: grayscale(0%); }

.carousel-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}
.cbtn {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--rouge);
  color: var(--rouge);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  font-weight: bold;
}
.cbtn:hover { background: var(--rouge); color: #fff; }
.carousel-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1rem; }
.cdot { width: 9px; height: 9px; border-radius: 50%; background: var(--gris); cursor: pointer; transition: background .2s; }
.cdot.active { background: var(--rouge); }

/* ─── CLIENTS ─── */
#clients { background: #fff; }
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
  max-width: 1200px;
  margin: 0 auto;
}
.client-card {
  background: var(--gris-clair);
  border-radius: 10px;
  padding: 1.8rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  transition: all .3s;
  border: 1px solid var(--gris);
  text-decoration: none;
  color: inherit;
}
.client-card:hover {
  border-color: var(--rouge);
  box-shadow: var(--ombre);
  transform: translateY(-4px);
  background: #fff;
}
.client-img { width: 120px; height: 75px; object-fit: contain; }
/* TEXT SIZE AUGMENTÉE */
.client-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--texte);
  text-align: center;
  line-height: 1.4;
  letter-spacing: 0.5px;
}

.voir-plus-wrap { text-align: center; margin-top: 2.5rem; }
.btn-voir-plus {
  background: transparent;
  color: var(--rouge);
  border: 2px solid var(--rouge);
  padding: 12px 36px;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .3s;
}
.btn-voir-plus:hover { background: var(--rouge); color: #fff; }

/* ─── CONTACT ─── */
#contact { background: var(--gris-clair); }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4.5rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}
/* TEXT SIZE AUGMENTÉE */
.contact-info-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.55rem;
  color: var(--texte);
  margin-bottom: 0.5rem;
}
.contact-info-sub {
  color: var(--texte-sec);
  font-size: 0.98rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}
.contact-items { display: flex; flex-direction: column; gap: 1.4rem; }
.citem { display: flex; gap: 1rem; align-items: flex-start; }
.citem-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--rouge-pale);
  color: var(--rouge);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.citem h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--texte-sec);
  margin-bottom: 0.25rem;
}
.citem p, .citem a {
  color: var(--texte);
  font-size: 0.97rem;
  line-height: 1.65;
  text-decoration: none;
}
.citem a:hover { color: var(--rouge); }

.socials { display: flex; gap: 0.7rem; margin-top: 1.8rem; }
.slink {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--gris);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all .3s;
}
.slink:hover { border-color: var(--rouge); box-shadow: 0 2px 8px rgba(139,0,0,0.15); }
.slink svg { width: 20px; height: 20px; }

.contact-form {
  background: #fff;
  border-radius: 12px;
  padding: 2.5rem;
  border: 1px solid var(--gris);
  box-shadow: var(--ombre);
}
/* TEXT SIZE AUGMENTÉE */
.contact-form h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--texte);
  margin-bottom: 1.5rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fg { margin-bottom: 1.2rem; }
.fg label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--texte-sec);
  margin-bottom: 0.4rem;
}
.fg input, .fg select, .fg textarea {
  width: 100%;
  background: var(--gris-clair);
  border: 1px solid var(--gris);
  border-radius: 6px;
  padding: 12px 14px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.97rem;
  color: var(--texte);
  outline: none;
  transition: border-color .3s;
}
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: var(--rouge);
  background: #fff;
}
.fg textarea { resize: vertical; min-height: 110px; }
.fg select { appearance: none; cursor: pointer; }
.btn-send {
  width: 100%;
  background: var(--rouge);
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .3s;
  margin-top: 0.3rem;
}
.btn-send:hover { background: var(--rouge-clair); transform: translateY(-2px); }

/* ─── FOOTER ─── */
footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.75);
  padding: 4rem 5% 2rem;
  /* FIX overflow */
  width: 100%;
  box-sizing: border-box;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto 2.5rem;
}
.fl-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 0.9rem; }
.fl-logo img {
  width: 50px; height: 50px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  padding: 3px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
/* Logo WordPress dans le footer */
.fl-logo .custom-logo-link { display: flex; }
.fl-logo .custom-logo-link img { width: 50px; height: 50px; border-radius: 6px; padding: 3px; background: #fff; }

/* TEXT SIZE AUGMENTÉE */
.fl-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: 1.5px;
  line-height: 1.1;
}
.fl-desc {
  font-size: 0.87rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.2rem;
}
.fl-socials { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.fl-social {
  width: 36px; height: 36px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all .3s;
}
.fl-social:hover { background: var(--rouge); border-color: var(--rouge); }
.fl-social svg { width: 17px; height: 17px; fill: rgba(255,255,255,0.7); }
.fl-social:hover svg { fill: #fff; }

/* TEXT SIZE AUGMENTÉE */
.fcol h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.flinks { list-style: none; }
.flinks li { margin-bottom: 0.6rem; }
/* TEXT SIZE AUGMENTÉE */
.flinks a {
  text-decoration: none;
  font-size: 0.87rem;
  color: rgba(255,255,255,0.5);
  transition: color .2s;
  display: block;
}
.flinks a:hover { color: rgba(255,255,255,0.9); padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  max-width: 1200px;
  margin: 0 auto;
}
/* TEXT SIZE AUGMENTÉE */
.footer-bottom p { font-size: 0.83rem; color: rgba(255,255,255,0.35); }
.footer-bottom a { color: rgba(255,200,200,0.75); text-decoration: none; }

/* ─── ANIMATIONS ─── */
.anim-hidden { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.anim-hidden.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════
   RESPONSIVE — CORRECTIONS OVERFLOW + MENU
═══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* FIX: hero & grids en colonne */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .hero-visual { display: none; }
  .hero-btns, .hero-stats { justify-content: center; }
  .hero-title, .hero-sub { text-align: center; }
  .hero-sub { max-width: 100%; }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-logo-side { display: none; }

  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }

  .dept-grid { grid-template-columns: 1fr; }

  .clients-grid { grid-template-columns: repeat(2, 1fr); }

  .partner-card { flex: 0 0 calc(33.33% - 1rem); }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  section { padding: 65px 5%; }

  .clients-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .about-vals { grid-template-columns: 1fr; }

  .partner-card { flex: 0 0 calc(50% - 0.75rem); }

  /* TEXT: ajustement mobile */
  .hero-title { font-size: clamp(2rem, 8vw, 2.8rem); }
  .section-title { font-size: clamp(1.6rem, 6vw, 2rem); }
  .dept-card h3 { font-size: 1.3rem; }
  .contact-form { padding: 1.5rem; }

  /* FIX: hamburger bien visible */
  .hamburger { padding: 10px; }
}

@media (max-width: 380px) {
  .clients-grid { grid-template-columns: 1fr; }
  .partner-card { flex: 0 0 100%; }
}
