/* ============================================================
   Gui-BH — Site vitrine
   Thème clair : crème + blanc, accent bleu profond (sécurité),
   vert (services), violet (pôle 2). Police : Outfit.
   ============================================================ */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-800.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}

:root {
  --bg:        #f8f6f4;   /* fond crème */
  --bg-alt:    #ffffff;   /* sections alternées blanches */
  --surface:   #ffffff;   /* cartes */
  --border:    #e7e1d9;
  --text:      #1a242c;   /* texte principal — très lisible sur fond clair */
  --text-mut:  #3a444e;   /* texte secondaire assombri (paragraphes) */
  --accent:    #1e5fa5;   /* bleu profond — pôle sécurité & SI */
  --accent-2:  #2f9e6e;   /* vert */
  --accent-3:  #7351d6;   /* violet — pôle services informatiques */
  --danger:    #d64545;
  --on-accent: #ffffff;   /* texte posé sur les fonds accentués */
  --shadow:    0 12px 34px rgba(46, 58, 63, 0.10);
  --header-bg: rgba(248, 246, 244, 0.88);
  --glow-1:    #a9cdf2;
  --glow-2:    #b5e3cf;
  --radius:    16px;
  --header-h:  120px;
  --font: "Outfit", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Outfit", var(--font);
}

/* ---------- Mode sombre (bascule via le bouton de l'en-tête) ---------- */
[data-theme="dark"] {
  --bg:        #0b1120;
  --bg-alt:    #0f172a;
  --surface:   #131c31;
  --border:    #253552;
  --text:      #e6ebf2;
  --text-mut:  #a6b2c4;
  --accent:    #5aa2ff;
  --accent-2:  #34d399;
  --accent-3:  #a78bfa;
  --danger:    #f87171;
  --on-accent: #08111f;
  --shadow:    0 12px 34px rgba(0, 0, 0, 0.45);
  --header-bg: rgba(11, 17, 32, 0.85);
  --glow-1:    #0e7490;
  --glow-2:    #065f46;
}
[data-theme="dark"] .skill-bar { background: rgba(255, 255, 255, 0.08); }
[data-theme="dark"] .detail-media { background: rgba(255, 255, 255, 0.03); }
[data-theme="dark"] .btn-ghost { background: rgba(255, 255, 255, 0.04); }
[data-theme="dark"] .testi-stars { color: #fbbf24; }
[data-theme="dark"] .hero-kicker { background: rgba(90, 162, 255, 0.09); }
[data-theme="dark"] .pole-badge-it { background: rgba(90, 162, 255, 0.12); }
[data-theme="dark"] .card-icon { background: rgba(90, 162, 255, 0.1); }
[data-theme="dark"] .card,
[data-theme="dark"] .price-card,
[data-theme="dark"] .team-card,
[data-theme="dark"] .about-skills { box-shadow: none; }

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

html {
  font-size: 18px; /* taille de base relevée pour le confort de lecture */
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5,
.logo-mark, .stat-num, .stat-plus, .step-num, .detail-num {
  font-family: var(--font-head);
}

/* Focus clavier visible et assorti au thème */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Lien d'évitement (visible seulement au focus clavier) */
.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 200;
  transform: translateY(-150%);
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(1140px, 92%); margin-inline: auto; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(30, 95, 165, 0.3); }
/* Reflet qui traverse le bouton au survol */
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: -70%;
  width: 45%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.45s ease;
}
.btn-primary:hover::after { left: 130%; }
.btn-ghost {
  color: var(--text);
  border-color: var(--border);
  background: var(--surface);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; border: none; font-family: var(--font); font-size: 1rem; }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }

.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.logo { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; line-height: 1.15; }
.logo-img { height: 90px; width: auto; display: block; }
.site-footer .logo-img { height: 40px; }
/* L'administration et la page de connexion gardent un logo compact */
.admin-top .logo-img { height: 56px; }
.login-card .logo-img { height: 90px; }
/* Logo tricolore (rouge-jaune-vert) : visible tel quel en clair comme en sombre */
.logo-mark {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo-sub { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--text-mut); }

.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.nav-link {
  color: var(--text-mut);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-link:hover, .nav-link.active { color: var(--accent); }
.nav-cta { padding: 0.55rem 1.3rem; font-size: 0.88rem; }

/* ---------- Sous-menu Services ---------- */
.nav-item { position: relative; display: flex; align-items: center; gap: 0.15rem; }
.caret-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-mut); padding: 2px; display: flex;
  transition: transform 0.25s ease, color 0.2s ease;
}
.caret-btn svg { width: 15px; height: 15px; }
.nav-item.open .caret-btn, .nav-item:hover .caret-btn { color: var(--accent); }
.nav-item.open .caret-btn { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  display: flex;
  gap: 2.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.3rem 1.5rem;
  box-shadow: 0 24px 60px rgba(46, 58, 63, 0.16);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
/* Pont invisible pour garder le survol entre le lien et le panneau */
.dropdown::after { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown,
.nav-item.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-col { display: flex; flex-direction: column; gap: 0.5rem; }
.dropdown-title {
  display: block;
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.16em;
  font-weight: 700; margin-bottom: 0.3rem;
  text-decoration: none;
}
a.dropdown-title:hover { text-decoration: underline; }
.dropdown-title-it { color: var(--accent); }
.dropdown-title-tr { color: var(--accent-2); }
.dropdown-title-si { color: var(--accent-3); }
.dropdown-link {
  color: var(--text-mut); text-decoration: none; font-size: 0.9rem;
  transition: color 0.2s ease;
}
.dropdown-link:hover { color: var(--text); }

/* Carte ciblée depuis le sous-menu (classe posée par main.js au changement d'ancre) */
.card.targeted { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

/* ---------- Pages de pôles ---------- */
.pole-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 72px) 0 56px;
  text-align: center;
}
.pole-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; margin-bottom: 1rem; }
.pole-hero .section-lead { max-width: 640px; margin: 0 auto; color: var(--text-mut); }

/* Couleur du pôle transmise aux blocs */
.pole-c-it { --pole-color: var(--accent); }
.pole-c-si { --pole-color: var(--accent-3); }
.pole-c-tr { --pole-color: var(--accent-2); }

.pole-details { display: grid; gap: 2rem; }
.pole-detail {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  scroll-margin-top: calc(var(--header-h) + 16px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.pole-detail:hover { transform: translateY(-4px); border-color: var(--pole-color, var(--accent)); }
.pole-detail.flip .detail-media { order: -1; }
.pole-detail.targeted { border-color: var(--pole-color, var(--accent)); box-shadow: 0 0 0 1px var(--pole-color, var(--accent)); }

.detail-num {
  display: inline-block;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em;
  color: var(--pole-color, var(--accent));
  border: 1px solid var(--border);
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.pole-detail h2 { font-size: 1.45rem; margin-bottom: 0.7rem; }
.pole-detail h3 { font-size: 1.05rem; margin: 1.5rem 0 0.6rem; color: var(--pole-color, var(--accent)); }
.pole-detail p { color: var(--text-mut); }
.pole-detail p + p { margin-top: 0.7rem; }
.pole-detail ul { margin: 0.7rem 0 0.4rem 1.3rem; color: var(--text-mut); }
.pole-detail li { margin-bottom: 0.55rem; }
.pole-detail li strong, .pole-detail p strong { color: var(--text); }

.detail-link {
  display: inline-block;
  margin-top: 1.1rem;
  color: var(--pole-color, var(--accent));
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.2s ease;
}
.detail-link:hover { transform: translateX(4px); }

/* Panneau visuel : icône animée, remplaçable par une image */
.detail-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 230px;
  height: 100%;
  border-radius: 12px;
  background: rgba(46, 58, 63, 0.035);
  border: 1px solid var(--border);
  overflow: hidden;
}
.detail-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-glow {
  position: absolute;
  width: 190px; height: 190px;
  border-radius: 50%;
  background: var(--pole-color, var(--accent));
  opacity: 0.13;
  filter: blur(55px);
  animation: media-pulse 6s ease-in-out infinite;
}
.media-icon {
  position: relative;
  width: 88px; height: 88px;
  color: var(--pole-color, var(--accent));
  animation: media-float 5s ease-in-out infinite;
}
@keyframes media-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes media-pulse {
  0%, 100% { transform: scale(1);    opacity: 0.11; }
  50%      { transform: scale(1.25); opacity: 0.2; }
}

/* Apparition en deux temps : le texte puis le visuel */
.pole-detail .detail-text { opacity: 0; transform: translateX(-24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.pole-detail .detail-media { opacity: 0; transform: translateX(24px); transition: opacity 0.6s ease 0.15s, transform 0.6s ease 0.15s; }
.pole-detail.visible .detail-text,
.pole-detail.visible .detail-media { opacity: 1; transform: none; }

.pole-details .hero-actions { margin-top: 1.2rem; }

/* ---------- Pages spécialités (en construction) ---------- */
.page-placeholder {
  padding-top: calc(var(--header-h) + 96px);
  min-height: calc(100vh - 280px);
  text-align: center;
}
.page-placeholder h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 1rem; }
.page-placeholder .section-lead { max-width: 560px; margin: 0 auto 2.2rem; color: var(--text-mut); }
.page-placeholder .section-kicker { color: var(--accent); }
.page-placeholder .section-kicker-tr { color: var(--accent-2); }
.page-placeholder .section-kicker-si { color: var(--accent-3); }

.nav-droite { display: flex; align-items: center; gap: 0.9rem; }

/* Bouton Connexion (espace d'administration) */
.btn-connexion {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.btn-connexion:hover { color: var(--accent); border-color: var(--accent); }
.btn-connexion svg { width: 17px; height: 17px; flex-shrink: 0; }

/* Bouton clair / sombre */
.theme-toggle {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); transform: rotate(15deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; margin: 5px 0;
  background: var(--text); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Héro ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 56px) 0 72px;
  overflow: hidden;
}
.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.35; pointer-events: none;
  animation: glow-drift 14s ease-in-out infinite alternate;
}
.hero-glow-1 { width: 480px; height: 480px; background: var(--glow-1); top: -120px; right: -100px; }
.hero-glow-2 { width: 420px; height: 420px; background: var(--glow-2); bottom: -140px; left: -120px; animation-duration: 18s; }
@keyframes glow-drift {
  from { transform: translate(0, 0); }
  to   { transform: translate(36px, 24px); }
}

.hero-inner { position: relative; text-align: center; }

/* Carrousel du héro : chaque diapositive occupe toute la largeur */
.hero-slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
}
.hero-carousel .carousel-dot.active { background: var(--accent); }
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  border-radius: 14px;
  background: rgba(46, 58, 63, 0.035);
  border: 1px solid var(--border);
  overflow: hidden;
}
[data-theme="dark"] .hero-visual { background: rgba(255, 255, 255, 0.03); }
.hero-visual .media-icon { width: 130px; height: 130px; }
.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Héro en deux colonnes : texte + visuel */
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  text-align: left;
}
.hero-grid h1,
.hero-grid .hero-titre {
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.15;
  font-weight: 800;
}
.hero-grid .hero-lead { margin: 1.4rem 0 2.2rem; max-width: none; }
.hero-grid .hero-actions { justify-content: flex-start; }

/* Le terminal reste volontairement sombre : carte de contraste sur le thème clair */
.hero-terminal {
  background: #0d1524;
  border: 1px solid #1e2c47;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(46, 58, 63, 0.28);
  font-family: "Consolas", "Courier New", monospace;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid #1e2c47;
}
.t-dot { width: 11px; height: 11px; border-radius: 50%; }
.t-red { background: #f87171; }
.t-yellow { background: #fbbf24; }
.t-green { background: #34d399; }
.terminal-bar p { margin-left: 8px; color: #8b97a8; font-size: 0.72rem; }
.terminal-body {
  margin: 0;
  padding: 16px 18px;
  min-height: 255px;
  color: #b6c2d9;
  font-size: 0.84rem;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}
.terminal-body .t-prompt { color: #5aa2ff; font-weight: 600; }
.terminal-body .t-ok { color: #3ddc97; }
.terminal-body .t-warn { color: #fbbf24; }
.terminal-cursor {
  display: inline-block;
  width: 8px; height: 15px;
  background: #5aa2ff;
  vertical-align: -2px;
  animation: cursor-blink 1s steps(1) infinite;
}
@keyframes cursor-blink { 50% { opacity: 0; } }
.hero-kicker {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
  background: rgba(30, 95, 165, 0.07);
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.15; font-weight: 800; }
.grad-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  max-width: 680px;
  margin: 1.4rem auto 2.2rem;
  color: var(--text-mut);
  font-size: 1.13rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 2.2rem;
}
.stat-num, .stat-plus, .hero-value-big {
  font-family: var(--font-head);
  font-size: 1.9rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { display: block; color: var(--text-mut); font-size: 0.85rem; margin-top: 0.3rem; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 3.4rem; }
.section-kicker {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--accent-2); font-weight: 700; margin-bottom: 0.6rem;
}
.section-kicker-it { color: var(--accent); }
.section-kicker-si { color: var(--accent-3); }
.section-kicker-tr { color: var(--accent-2); }
.section h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
.section-lead { color: var(--text-mut); margin-top: 0.8rem; font-size: 1.06rem; }

/* ---------- Services ---------- */
.pole { margin-bottom: 3.4rem; }
.pole:last-child { margin-bottom: 0; }
.pole-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.4rem; display: flex; align-items: center; gap: 0.7rem; }
.pole-badge {
  font-size: 0.78rem; font-weight: 800; padding: 0.3rem 0.7rem; border-radius: 8px; letter-spacing: 0.08em;
}
.pole-badge-it { background: rgba(30, 95, 165, 0.1); color: var(--accent); }
.pole-badge-tr { background: rgba(47, 158, 110, 0.12); color: var(--accent-2); }
.pole-badge-si { background: rgba(115, 81, 214, 0.1); color: var(--accent-3); }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }

/* ---------- Carrousel des pôles ---------- */
.carousel { position: relative; }
.carousel-track {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 8px 2px 12px;
}
.carousel-track::-webkit-scrollbar { display: none; }

/* Chaque pôle est une diapositive pleine largeur */
.pole-slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(46, 58, 63, 0.14);
  transition: color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.carousel-btn:hover { color: var(--pole-color, var(--accent)); border-color: var(--pole-color, var(--accent)); }
.carousel-btn:disabled { opacity: 0.3; cursor: default; }
.carousel-btn:disabled:hover { color: var(--text); border-color: var(--border); }
.carousel-btn svg { width: 18px; height: 18px; }
.carousel-prev { left: -14px; }
.carousel-next { right: -14px; }

.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 0.6rem; }
.carousel-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none; padding: 0;
  cursor: pointer;
  background: var(--border);
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-dot.active { transform: scale(1.35); }
.carousel-dot:nth-child(1).active { background: var(--accent); }
.carousel-dot:nth-child(2).active { background: var(--accent-3); }
.carousel-dot:nth-child(3).active { background: var(--accent-2); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: 0 6px 18px rgba(46, 58, 63, 0.05);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 18px 40px rgba(46, 58, 63, 0.14);
}
.card-icon {
  width: 52px; height: 52px; padding: 12px;
  border-radius: 12px;
  background: rgba(30, 95, 165, 0.09);
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.card-icon-tr { background: rgba(47, 158, 110, 0.11); color: var(--accent-2); }
.card-icon-si { background: rgba(115, 81, 214, 0.09); color: var(--accent-3); }
.card h4 { font-size: 1.12rem; margin-bottom: 0.55rem; }
.card p { color: var(--text-mut); font-size: 1rem; }

.disclaimer {
  margin-top: 1.6rem;
  font-size: 0.83rem;
  color: var(--text-mut);
  background: rgba(214, 69, 69, 0.06);
  border: 1px solid rgba(214, 69, 69, 0.28);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
}

/* ---------- À propos ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.4rem;
  align-items: center;
}
.about-text h2 { margin-bottom: 1rem; }
.about-text p { color: var(--text-mut); margin-bottom: 1.4rem; }
.about-text p strong { color: var(--text); }

.check-list { list-style: none; margin-bottom: 1.8rem; }
.check-list li {
  padding-left: 1.8rem;
  position: relative;
  margin-bottom: 0.65rem;
  color: var(--text);
}
.check-list li::before {
  content: "✔";
  position: absolute; left: 0;
  color: var(--accent-2);
  font-weight: 700;
}

.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
}
.value-card h4 { font-size: 1rem; margin-bottom: 0.45rem; }
.value-card p { color: var(--text-mut); font-size: 0.88rem; }

/* ---------- Lien « En savoir plus » des cartes ---------- */
.card-link {
  display: inline-block;
  margin-top: 0.9rem;
  color: var(--pole-color, var(--accent));
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.card-link:hover { transform: translateX(4px); }

/* ---------- Barres de compétences (À propos) ---------- */
.about-skills {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.9rem 1.7rem;
}
.about-skills h3 { font-size: 1.1rem; margin-bottom: 1.3rem; }
.expertise-list { list-style: none; display: grid; gap: 1.1rem; }
.expertise-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.expertise-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(30, 95, 165, 0.09);
  color: var(--accent);
}
.expertise-icon svg { width: 100%; height: 100%; display: block; }
.expertise-list li div { display: flex; flex-direction: column; gap: 0.15rem; }
.expertise-list strong { font-size: 0.98rem; }
.expertise-list li div span { color: var(--text-mut); font-size: 0.9rem; }

/* ---------- Pourquoi nous choisir ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
}
.why-num {
  font-family: var(--font-head);
  font-size: 2.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.why-item h3 { font-size: 1.15rem; margin: 0.5rem 0 0.5rem; }
.why-item p { color: var(--text-mut); font-size: 1rem; }

/* ---------- Tarifs ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  align-items: stretch;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(46, 58, 63, 0.05);
  padding: 2.1rem 1.9rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.price-featured { border-color: var(--accent); box-shadow: 0 18px 44px rgba(30, 95, 165, 0.16); }
.price-pop {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}
.price-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--text-mut);
  margin-bottom: 0.9rem;
}
.price-value {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.7rem;
}
.price-value span {
  display: block;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-mut);
  margin-top: 0.3rem;
}
.price-desc { color: var(--text-mut); font-size: 0.98rem; }
.price-card ul {
  list-style: none;
  margin: 1.3rem 0 1.7rem;
  display: grid;
  gap: 0.55rem;
  flex: 1;
}
.price-card li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.98rem;
}
.price-card li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--accent-2);
  font-weight: 700;
}
.price-card .btn { text-align: center; }

/* ---------- Équipe ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(46, 58, 63, 0.05);
  padding: 2.1rem 1.6rem;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.team-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.team-photo {
  width: 110px; height: 110px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--on-accent);
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 800;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 1.08rem; margin-bottom: 0.25rem; }
.team-card p { color: var(--text-mut); font-size: 0.9rem; }

/* ---------- Méthode (4 étapes) ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--on-accent); font-weight: 800; font-size: 1.05rem;
  margin-bottom: 0.9rem;
}
.step-card h4 { font-size: 1.06rem; margin-bottom: 0.45rem; }
.step-card p { color: var(--text-mut); font-size: 0.97rem; }
/* Connecteurs fléchés entre les étapes */
.step-card { position: relative; }
@media (min-width: 901px) {
  .steps-grid .step-card:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: calc(-0.7rem - 6px);
    width: 11px; height: 11px;
    border-top: 2px solid var(--accent-2);
    border-right: 2px solid var(--accent-2);
    transform: translateY(-50%) rotate(45deg);
    opacity: 0.7;
  }
}

/* ---------- Partenaires ---------- */
.partners-marquee {
  position: relative;
  overflow: hidden;
}
/* Fondu sur les bords du bandeau */
.partners-marquee::before,
.partners-marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 70px;
  z-index: 2;
  pointer-events: none;
}
.partners-marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-alt), transparent); }
.partners-marquee::after { right: 0; background: linear-gradient(270deg, var(--bg-alt), transparent); }

.partners-row {
  display: flex;
  align-items: center;
  width: max-content;
  animation: partners-scroll 30s linear infinite;
}
.partners-marquee:hover .partners-row { animation-play-state: paused; }

/* Cartes uniformes : même hauteur pour les logos et les noms */
.partner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-right: 1.3rem;
  height: 96px;
  min-width: 180px;
  padding: 0.8rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text-mut);
  font-weight: 600;
  font-size: 1.02rem;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.partner:hover { color: var(--text); border-color: var(--accent); }
.partner svg { width: 22px; height: 22px; color: var(--accent); opacity: 0.7; flex-shrink: 0; }
.partner img {
  max-height: 72px;
  max-width: 175px;
  width: auto;
  height: auto;
  display: block;
  border-radius: 10px;
}
/* Les cartes avec logo : fond blanc pour que le logo ressorte, même en mode sombre */
.partner-logo { background: #ffffff; }

@keyframes partners-scroll {
  to { transform: translateX(-50%); }
}

/* ---------- Témoignages ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.testi-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.testi-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.testi-stars { color: #e3a008; letter-spacing: 3px; font-size: 0.9rem; }
.testi-card blockquote { margin: 0; color: var(--text-mut); font-size: 1rem; flex: 1; }
.testi-card figcaption { display: flex; align-items: center; gap: 0.8rem; }
.testi-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--on-accent);
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.testi-card figcaption span:not(.testi-avatar) { color: var(--text-mut); font-size: 0.83rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 0.9rem; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.25s ease;
}
.faq-item[open] { border-color: var(--accent); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  padding: 1.1rem 1.3rem;
  font-weight: 600;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron {
  flex-shrink: 0;
  width: 9px; height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}
.faq-item[open] .faq-chevron { transform: rotate(225deg); }
.faq-item p { padding: 0 1.3rem 1.2rem; color: var(--text-mut); font-size: 1rem; }

/* ---------- Page devis ---------- */
.devis-wrap { max-width: 780px; }
.champ-optionnel { color: var(--text-mut); font-weight: 400; font-size: 0.8rem; }
.devis-note { margin-top: 0.9rem; text-align: center; color: var(--text-mut); font-size: 0.83rem; }

/* ---------- Bande d'appel à l'action ---------- */
.cta-band { padding: 0 0 80px; background: var(--bg); }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(30, 95, 165, 0.08), rgba(47, 158, 110, 0.08));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2.6rem 2.4rem;
}
.cta-inner h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 0.4rem; }
.cta-inner p { color: var(--text-mut); }

/* ---------- Bouton WhatsApp flottant ---------- */
.whatsapp-btn {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-btn:hover { transform: scale(1.08); box-shadow: 0 16px 38px rgba(37, 211, 102, 0.45); }
.whatsapp-btn svg { width: 28px; height: 28px; }

/* ---------- Barre d'action fixe (mobile) ---------- */
.mobile-cta { display: none; }
@media (max-width: 640px) {
  .mobile-cta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 95;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 20px rgba(46, 58, 63, 0.12);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .mobile-cta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0.55rem 0.3rem;
    color: var(--text-mut);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
  }
  .mobile-cta-item svg { width: 22px; height: 22px; }
  .mobile-cta-primary { color: var(--accent); }
  .mobile-cta-wa { color: #128c40; }
  .mobile-cta-item + .mobile-cta-item { border-left: 1px solid var(--border); }
  /* Le bouton flottant ferait doublon avec la barre : on le masque */
  .whatsapp-btn { display: none; }
  /* Espace pour ne pas cacher le bas de page sous la barre */
  body { padding-bottom: 62px; }
}

/* ---------- Indices & réassurance des formulaires ---------- */
.form-hint { font-size: 0.86rem; color: var(--text-mut); margin: -0.3rem 0 0.9rem; }
.form-hint strong { color: var(--accent); }
.form-reassurance {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.2rem;
  margin-top: 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-2);
}

/* ---------- Case de consentement des formulaires ---------- */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  font-size: 0.88rem;
  color: var(--text-mut);
  cursor: pointer;
}
.form-consent input {
  width: 18px; height: 18px;
  margin-top: 0.1rem;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.form-consent a { color: var(--accent); }

/* ---------- Pages légales ---------- */
.legal-content { max-width: 780px; }
.legal-content h2 {
  font-size: 1.2rem;
  margin: 1.8rem 0 0.7rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}
.legal-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal-content p { color: var(--text-mut); margin-bottom: 0.8rem; }
.legal-content p strong { color: var(--text); }
.legal-content ul { margin: 0.4rem 0 1rem 1.3rem; color: var(--text-mut); }
.legal-content li { margin-bottom: 0.45rem; }
.legal-content a { color: var(--accent); }
.legal-content .hero-actions { margin-top: 2.2rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2.6rem;
  align-items: start;
}
.contact-info {
  display: flex; flex-direction: column; gap: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
}
.info-item { display: flex; gap: 0.9rem; align-items: flex-start; color: var(--text-mut); font-size: 0.98rem; text-decoration: none; }
.info-item strong { color: var(--text); }
a.info-item { transition: color 0.2s ease, transform 0.2s ease; }
a.info-item:hover { color: var(--accent); transform: translateX(3px); }
a.info-item:hover strong { color: var(--accent); }
.info-icon { font-size: 1.2rem; line-height: 1.4; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 0.4rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s ease;
}
.form-group textarea { resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-alert { border-radius: 10px; padding: 0.85rem 1.1rem; margin-bottom: 1.2rem; font-size: 0.92rem; }
.form-alert-success {
  background: rgba(47, 158, 110, 0.1);
  border: 1px solid rgba(47, 158, 110, 0.45);
  color: var(--accent-2);
}
.form-alert-error {
  background: rgba(214, 69, 69, 0.07);
  border: 1px solid rgba(214, 69, 69, 0.4);
  color: var(--danger);
}
.form-alert-error p { margin: 0.15rem 0; }

/* ---------- Pied de page ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 1.2fr 1fr;
  gap: 2.2rem;
  padding-bottom: 2.6rem;
}
.footer-text { color: var(--text-mut); font-size: 0.96rem; margin-top: 0.9rem; max-width: 320px; }
.footer-suivez {
  margin-top: 1.3rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--text);
}
.social-row { display: flex; gap: 0.7rem; margin-top: 0.7rem; }
.social-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-mut);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.social-btn:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.social-btn svg { width: 19px; height: 19px; }
.site-footer h5 {
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text); margin-bottom: 1rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--text-mut); text-decoration: none; font-size: 0.96rem; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.4rem 1.2rem;
  border-top: 1px solid var(--border);
  padding-block: 1.2rem;
  font-size: 0.85rem;
  color: var(--text-mut);
}
.footer-legal a { color: var(--text-mut); text-decoration: none; transition: color 0.2s ease; }
.footer-legal a:hover { color: var(--accent); }

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pole-detail .detail-text,
  .pole-detail .detail-media { opacity: 1; transform: none; transition: none; }
  .media-icon, .media-glow, .hero-glow { animation: none; }
  .partners-row { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .partner { margin-bottom: 1rem; }
  .partner[aria-hidden="true"] { display: none; }
  .skill-fill { transition: none; width: var(--pct); }
}

/* ---------- Adaptatif ---------- */
@media (max-width: 900px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pole-detail { grid-template-columns: 1fr; gap: 1.6rem; padding: 1.8rem 1.5rem; }
  .pole-detail.flip .detail-media { order: 2; }
  .detail-media { min-height: 190px; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.4rem; text-align: center; }
  .hero-grid .hero-lead { margin-inline: auto; }
  .hero-grid .hero-actions { justify-content: center; }
  .hero-terminal { max-width: 560px; margin: 0 auto; width: 100%; }
  .testi-grid { grid-template-columns: 1fr; }
  .cta-inner { justify-content: center; text-align: center; }
  .why-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .price-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --header-h: 88px; }
  .logo-img { height: 64px; }
  .site-footer .logo-img { height: 40px; }
  .btn-connexion { width: 38px; height: 38px; padding: 0; justify-content: center; border-radius: 50%; }
  .btn-connexion span { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 1.2rem 6%;
    gap: 1rem;
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    z-index: 99;
  }
  .main-nav.open { transform: translateY(0); }

  .nav-item { flex-wrap: wrap; justify-content: center; }
  .dropdown {
    position: static;
    transform: none;
    display: none;
    flex-direction: column;
    gap: 1.1rem;
    width: 100%;
    margin-top: 0.9rem;
    padding: 1.1rem 1rem;
    box-shadow: none;
    white-space: normal;
    opacity: 1;
    visibility: visible;
    transition: none;
  }
  .nav-item.open .dropdown { display: flex; }
  .dropdown::after { display: none; }

  .hero { padding-top: calc(var(--header-h) + 32px); }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 1.6rem 1rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .carousel-prev { left: -8px; }
  .carousel-next { right: -8px; }
  .carousel-btn { width: 34px; height: 34px; }
  .steps-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
  .team-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}
