/* ---------- Variables & reset ---------- */
:root {
  --bg-main: #050814;
  --bg-elevated: #0b1021;
  --bg-card: #111729;
  --bg-card-soft: #151c30;
  --accent: #1f6bff;
  --accent-soft: #265bff;
  --accent-gradient: linear-gradient(135deg, #1f6bff, #5b8cff);
  --accent-gradient-soft: linear-gradient(135deg, #273c9b, #56a6ff);
  --text-main: #f5f7ff;
  --text-muted: #9ba3c4;
  --border-subtle: rgba(255, 255, 255, 0.05);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-full: 999px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 14px 30px rgba(0, 0, 0, 0.45);
  --nav-height: 64px;
  --container-width: 1180px;
  --transition-fast: 0.18s ease-out;
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #131935 0, #050814 50%, #02030a 100%);
  color: var(--text-main);
}

body {
  min-height: 100vh;
}

/* ---------- Layout ---------- */

.main-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px 60px;
}

section {
  margin-bottom: 64px;
}

/* ---------- Header / Nav ---------- */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&display=swap');

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: var(--bg-main);
  transition: box-shadow var(--transition-fast);
  font-family: 'Poppins', sans-serif;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(1, 170, 214, 0.2) 15%,
    rgba(1, 170, 214, 0.4) 30%,
    rgba(1, 170, 214, 0.5) 50%,
    rgba(1, 170, 214, 0.4) 70%,
    rgba(1, 170, 214, 0.2) 85%,
    transparent 100%
  );
  opacity: 0.3;
  transition: opacity var(--transition-fast), height var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 2px 8px rgba(1, 170, 214, 0.2);
}

.site-header:hover::after {
  opacity: 0.8;
  height: 3px;
  box-shadow: 0 3px 12px rgba(1, 170, 214, 0.4);
}

.site-header:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-bar {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  width: 100%;
}

.nav-right{
  margin-left: auto;
  flex-shrink: 0;
}



.nav-left {
  display: flex;
  align-items: center;
  gap: 40px;
  min-width: 0;
  flex: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo{
  height: 56px;        /* taille du logo */
  width: auto;
  display: block;

  /* suppression effet bouton */
  background: none;
  box-shadow: none;
  border-radius: 0;

  /* petit confort visuel */
  transition: transform 0.2s ease, opacity 0.2s ease;
}


.brand-logo:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(1, 170, 214, 0.4);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  font-family: 'Poppins', sans-serif;
}

.brand-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

.nav-link:hover {
  color: var(--accent);
  background: rgba(1, 170, 214, 0.08);
  transform: scale(1.05);
}

.nav-link.active {
  color: var(--accent);
  border-color: rgba(1, 170, 214, 0.3);
  background: rgba(1, 170, 214, 0.1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-secondary {
  font-size: 12px;
  color: var(--accent-soft);
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

.nav-secondary:hover {
  color: var(--accent);
  transform: scale(1.05);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast);
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(1, 170, 214, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 35px rgba(1, 170, 214, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--accent-soft);
  border: 1px solid rgba(1, 170, 214, 0.4);
}

.btn-ghost:hover {
  background: rgba(1, 170, 214, 0.1);
  transform: scale(1.05);
}

/* ---------- Hero Accueil ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero-text h1 {
  font-size: 32px;
  line-height: 1.25;
  margin: 0 0 16px;
}

.hero-text p {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 14px;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  font-size: 11px;
  color: var(--text-muted);
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  background: #f9fafb;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
  display: inline-block;
}

.tag-pill:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-visual{
  border-radius: 28px;
  min-height: 320px;     /* <-- essentiel */
  width: 100%;

  background-image: url("https://atlascopco.scene7.com/is/image/atlascopco/_GA75+VSD+IPM+Wuxi+Cover+landschap?$landscape1600$");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  box-shadow: 0 30px 60px rgba(1, 170, 214, 0.4);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
}



.hero-visual:hover {
  transform: scale(1.02);
  box-shadow: 0 35px 70px rgba(1, 170, 214, 0.5);
}

/* ---------- Sections génériques ---------- */

.section-title {
  font-size: 20px;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

/* Cartes génériques */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.card {
  border-radius: var(--radius-md);
  background: radial-gradient(circle at top left, #ffffff 0, #f6f7fc 40%, #eef1f9 100%);
  border: 1px solid var(--border-subtle);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
}

.card:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.card h3 {
  font-size: 14px;
  margin: 0 0 6px;
}

.card p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 6px;
}

/* Blocs chiffres */

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.metric-card {
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: var(--bg-card-soft);
  border: 1px solid var(--border-subtle);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
}

.metric-card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.metric-label {
  font-size: 12px;
  color: var(--text-muted);
}

.metric-value {
  font-size: 18px;
  font-weight: 600;
  margin-top: 6px;
}

/* ---------- Implantations ---------- */

.implantations-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  gap: 18px;
}

.map-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;          /* format carte France (vertical) */
  max-height: 520px;

  background-image: url("http://www.cybervulcans.net/upload/fichier/photo%20cartographie.png");
  background-size: contain;     /* IMPORTANT : pas de déformation */
  background-position: center;
  background-repeat: no-repeat;
  background-color: #ffffff;    /* fond blanc propre */

  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.map-placeholder * {
  display: none;
}



.map-placeholder:hover {
  transform: scale(1.01);
  box-shadow: 0 12px 30px rgba(1, 170, 214, 0.3);
}

.agency-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.agency-card {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
}

.agency-card:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.agency-card-title {
  font-weight: 600;
  margin-bottom: 3px;
}

.agency-card p {
  margin: 0;
  color: var(--text-muted);
}

/* ---------- Solutions & secteurs ---------- */

.icon-circle {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  background: radial-gradient(circle at top, #01aad6, #017a9a);
  font-size: 12px;
}

.sectors-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}

.sector-pill {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: #f9fafb;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
  display: inline-block;
}

.sector-pill:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ---------- Actualités ---------- */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 280px); /* 3 cartes fixes */
  justify-content: center;                 /* CENTRAGE */
  gap: 16px;
}

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

@media (max-width: 500px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}



.news-card {
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
}

.news-card:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.news-thumb {
  height: 86px;
  background: linear-gradient(135deg, #c4d7ff, #f8fbff);
}

.news-body {
  padding: 12px 14px 14px;
}

.news-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.news-text {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- Bandeau CTA ---------- */

.cta-banner {
  margin-top: 40px;
  margin-bottom: 32px;
  border-radius: 26px;
  padding: 20px 22px;
  background: linear-gradient(90deg, #01aad6, #0190b8, #01c4f0);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 20px 60px rgba(1, 170, 214, 0.4);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
}

.cta-banner:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 70px rgba(1, 170, 214, 0.5);
}

.cta-banner-text {
  font-size: 14px;
  color: #f9fafb;
}

.cta-banner-sub {
  font-size: 12px;
  opacity: 0.9;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 26px 24px 32px;
  background: var(--bg-main);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: auto;
  position: relative;
  transition: box-shadow var(--transition-fast);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(1, 170, 214, 0.2) 15%,
    rgba(1, 170, 214, 0.4) 30%,
    rgba(1, 170, 214, 0.5) 50%,
    rgba(1, 170, 214, 0.4) 70%,
    rgba(1, 170, 214, 0.2) 85%,
    transparent 100%
  );
  opacity: 0.3;
  transition: opacity var(--transition-fast), height var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 -2px 8px rgba(1, 170, 214, 0.2);
}

.site-footer:hover::before {
  opacity: 0.8;
  height: 3px;
  box-shadow: 0 -3px 12px rgba(1, 170, 214, 0.4);
}

.site-footer:hover {
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2.2fr repeat(3, 1fr);
  gap: 26px;
}

.footer-column-title {
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 11px;
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

.footer-link:hover {
  color: var(--text-main);
  transform: scale(1.05);
}

.footer-bottom {
  max-width: var(--container-width);
  margin: 18px auto 0;
  font-size: 11px;
  color: var(--text-muted);
}

/* ---------- Pages intérieures ---------- */

.page-hero {
  padding-top: 40px;
  padding-bottom: 28px;
}

.page-hero-title {
  font-size: 24px;
  margin-bottom: 8px;
}

.breadcrumb {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.content-card {
  border-radius: 20px;
  padding: 20px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
}

.content-card:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 18px;
}

/* Formulaire contact / devis */

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
}

.form-field label {
  color: var(--text-main);
}

.form-field input,
.form-field textarea,
.form-field select {
  border-radius: 10px;
  border: 1px solid rgba(1, 170, 214, 0.3);
  padding: 8px 10px;
  background: #ffffff;
  color: var(--text-main);
  font-size: 13px;
}

.form-field textarea {
  min-height: 110px;
  resize: vertical;
}

/* ---------- Tableaux simples ---------- */

.table-like {
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  font-size: 13px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.table-like:hover {
  transform: scale(1.01);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.table-like-row {
  display: grid;
  grid-template-columns: 2fr 3fr 1.5fr;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.table-like-row.header {
  background: rgba(255, 255, 255, 0.02);
  font-weight: 600;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .implantations-layout {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-bar {
    padding: 0 12px;
  }
  .nav-links {
    display: none;
  }
  .nav-left {
    gap: 10px;
  }
  .brand {
    gap: 6px;
  }
  .brand-logo {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
  .brand-title {
    font-size: 14px;
  }
  .brand-sub {
    font-size: 10px;
  }
  .btn {
    font-size: 11px;
    padding: 6px 12px;
  }
  .hero-text h1 {
    font-size: 26px;
  }
  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
}


/* --- Nav: pas de retour à la ligne + responsive --- */
.nav-link { white-space: nowrap; }           /* sécurité sur chaque lien */


/* Ajustements pour éviter le wrap sur largeurs intermédiaires */
@media (max-width: 1100px) {
  .nav-left { gap: 24px; }
  .nav-links { gap: 12px; }
  .nav-link { padding: 7px 12px; font-size: 14px; }
  .brand-title { font-size: 17px; }
  .btn { font-size: 13px; padding: 8px 16px; }
}

/* Ajustements pour zoom 150% et écrans moyens */
@media (max-width: 900px) {
  .nav-bar {
    padding: 0 16px;
  }
  .nav-left { 
    gap: 16px; 
    min-width: 0;
  }
  .nav-links { 
    gap: 8px; 
    font-size: 13px;
  }
  .nav-link { 
    padding: 6px 10px; 
    font-size: 13px; 
  }
  .brand {
    gap: 8px;
    flex-shrink: 0;
  }
  .brand-logo {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }
  .brand-title { 
    font-size: 16px; 
  }
  .brand-sub {
    font-size: 11px;
  }
  .btn { 
    font-size: 12px; 
    padding: 7px 14px; 
  }
}

/* Ajustements pour zoom 150% et écrans plus petits */
@media (max-width: 750px) {
  .nav-bar {
    padding: 0 12px;
  }
  .nav-left { 
    gap: 12px; 
  }
  .nav-links { 
    gap: 6px; 
    font-size: 12px;
  }
  .nav-link { 
    padding: 5px 8px; 
    font-size: 12px; 
  }
  .brand {
    gap: 6px;
  }
  .brand-logo {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
  .brand-title { 
    font-size: 15px; 
  }
  .brand-sub {
    font-size: 10px;
  }
  .btn { 
    font-size: 11px; 
    padding: 6px 12px; 
  }
}


/* le CTA ne doit JAMAIS rétrécir */
.nav-right{
  flex: 0 0 auto;
  flex-shrink: 0;
}

/* le texte du bouton ne doit JAMAIS passer à la ligne */
.nav-right .btn,
.nav-right .btn-primary{
  white-space: nowrap;
}

/* Barre full width + CTA à droite */
.nav-bar{
  display:flex;
  align-items:center;
  width:100%;
  padding:0 24px;
}

/* Le bloc gauche prend toute la place disponible */
.nav-left{
  display:flex;
  align-items:center;
  flex:1;         /* <-- important */
  min-width:0;
}

/* Le logo ne bouge pas */
.brand{
  flex:0 0 auto;
}

/* Les rubriques se centrent dans l’espace restant */
.nav-links{
  display:flex;
  align-items:center;
  justify-content:center;  /* <-- centre les rubriques */
  flex:1;                  /* <-- prend l’espace restant */
  gap:20px;
  min-width:0;
  white-space:nowrap;
}

/* CTA forcé à droite + jamais sur 2 lignes */
.nav-right{
  margin-left:auto;
  flex:0 0 auto;
}
.nav-right .btn{ white-space:nowrap; }

/* ---------- Thème clair Exlair (override) ---------- */
:root {
  /* Palette claire corporate */
  --bg-main: #dedfdf;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-soft: #f7f8fc;
  --accent: #01aad6;
  --accent-soft: #0190b8;
  --accent-gradient: linear-gradient(135deg, #01aad6, #01c4f0);
  --accent-gradient-soft: linear-gradient(135deg, #0190b8, #01aad6);
  --text-main: #111827;
  --text-muted: #4b5563;
  --border-subtle: #d1d5db;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-full: 999px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.15);
  --shadow-card: 0 14px 30px rgba(0, 0, 0, 0.12);
  --nav-height: 64px;
  --container-width: 1180px;
  --transition-fast: 0.18s ease-out;
}

html,
body {
  background: var(--bg-main);
  color: var(--text-main);
}

/* =========================================
   NAV QUALITATIVE – 1 LIGNE / ZOOM SAFE
   Objectif : jamais de chevauchement.
   La nav reste sur 1 ligne et scroll si besoin.
   ========================================= */

/* Empêche le contenu de “déborder visuellement” du header */
.nav-bar {
  overflow: hidden;
}

/* Gap adaptatif (évite qu'à 125% le gap fixe bouffe trop d'espace) */
.nav-left {
  gap: clamp(12px, 2.2vw, 40px);
  min-width: 0;           /* crucial en flex */
}

/* Le bloc logo peut se compresser (au lieu de pousser la nav) */
.brand-text {
  min-width: 0;
}

/* Le sous-titre ne doit jamais forcer une largeur énorme */
.brand-sub {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: clamp(140px, 18vw, 260px);
}

/* La nav prend l’espace restant et, si besoin, scroll horizontalement */
.nav-links {
  flex: 1 1 0;
  min-width: 0;

  justify-content: flex-start; /* IMPORTANT: ne pas centrer en situation contrainte */
  overflow-x: auto;
  overflow-y: hidden;

  padding: 0 6px;              /* respirations */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Fade élégant sur les bords (qualitatif) */
.nav-links {
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 18px,
    #000 calc(100% - 18px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 18px,
    #000 calc(100% - 18px),
    transparent 100%
  );
}

/* Le CTA ne rétrécit jamais (tu l’as déjà, je laisse sécurisé) */
.nav-right {
  flex: 0 0 auto;
  flex-shrink: 0;
}
.nav-right .btn {
  white-space: nowrap;
}


.nav-links{
  justify-content:center;  /* <-- centre les rubriques */
  ...
  white-space:nowrap;
}


/* =========================
   IMPORTANT RESPONSIVE BASE
   ========================= */

/* 1) Empêcher les débordements horizontaux (cause n°1 du “pas responsive”) */
html, body { overflow-x: hidden; }

/* 2) Images/vidéos toujours fluides */
img, video, svg, canvas { max-width: 100%; height: auto; }

/* 3) Les enfants flex/grid doivent pouvoir rétrécir (sinon overflow) */
* { min-width: 0; }

/* 4) Conteneur : padding fluide */
.page-container {
  padding-left: clamp(12px, 4vw, 24px);
  padding-right: clamp(12px, 4vw, 24px);
}

/* 5) Titres et textes : tailles fluides (évite d’exploser au zoom) */
.hero-text h1 {
  font-size: clamp(22px, 2.2vw + 12px, 34px);
}
.section-title {
  font-size: clamp(18px, 1.2vw + 10px, 22px);
}
.section-subtitle,
.hero-text p {
  font-size: clamp(13px, 0.4vw + 11px, 15px);
}

/* 6) Grilles : assurer des colonnes qui tombent naturellement */
.card-grid,
.news-grid,
.metrics-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}

/* 7) Hero : passe en 1 colonne plus tôt si besoin (qualitatif) */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { min-height: 220px; }
}

/* 8) Implantations : passe en colonne */
@media (max-width: 980px) {
  .implantations-layout { grid-template-columns: 1fr; }
}

/* 9) Footer : colonnes -> 2 -> 1 */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* 10) CTA banner : empilement propre */
@media (max-width: 700px) {
  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ===== Logo header (clean & pro) ===== */
.brand{
  display:flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 12px;
  transition: background .2s ease, transform .2s ease;
}

.brand-logo{
  height: 42px;         /* + équilibré */
  width: auto;
  display:block;

  /* rendu plus doux */
  border-radius: 8px;
  background: transparent;
  box-shadow: 0 6px 18px rgba(0,0,0,.10);   /* ombre légère (pro) */
}

/* Hover discret (pas "bouton") */
.brand:hover{
  background: rgba(1,170,214,.08);
  transform: translateY(-1px);
}

.brand:hover .brand-logo{
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
}

/* Mobile : logo un peu plus petit */
@media (max-width: 640px){
  .brand-logo{ height: 34px; }
}



/* ===== Logo NON cliquable ===== */
.brand{
  cursor: default;
}

.brand-logo{
  pointer-events: none;   /* empêche toute interaction */
  box-shadow: none !important;
  transform: none !important;
  opacity: 1 !important;
}

/* Supprime tout hover existant */
.brand:hover,
.brand-logo:hover{
  background: none;
  transform: none;
  box-shadow: none;
}