/* =========================================================================
   Khelcombache — identité visuelle
   Inspiration : la bâche d'événement elle-même — toile tendue, liséré
   festonné, couleurs de crépuscule sur le littoral sénégalais.
   ========================================================================= */

:root {
  --nuit: #00509D;
  --nuit-clair: #0062BF;
  --bleu-marque: #00509D;   /* bleu exact extrait du logo Khelcom Bâches */
  --bleu-clair: #eef6fc;    /* fond principal — bleu très clair */
  --bleu-clair-fonce: #d9ecf9; /* fond alterné, un cran plus soutenu */
  --bleu-vif: #e4e5e8;      /* bleu clair vif — accent sur fond sombre */
  --encre: #4A4A4A;
  --blanc: #ffffff;
  --blanc-casse: #ffffff;

  --police-affiche: "Fraunces", "Georgia", "Inter",merriweather,serif;
  --police-texte: "Work Sans", "Helvetica Neue", "Inter", sans-serif;
  --police-util: "Space Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bleu-clair);
  color: var(--encre);
  font-family: var(--police-texte);
  line-height: 1.55;
}

a { color: inherit; }

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

.conteneur {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* -------------------------------------------------------------------------
   Bord festonné — signature graphique reprenant le liséré des bâches
   ------------------------------------------------------------------------- */
.feston {
  --taille-feston: 28px;
  height: var(--taille-feston);
  width: 100%;
  background-repeat: repeat-x;
  background-size: var(--taille-feston) var(--taille-feston);
}

.feston--clair-sur-nuit {
  background-color: var(--nuit);
  background-image: radial-gradient(circle at 50% 0, var(--bleu-clair) 0, var(--bleu-clair) 50%, transparent 51%);
  background-position: bottom;
}

.feston--nuit-sur-clair {
  background-color: var(--bleu-clair);
  background-image: radial-gradient(circle at 50% 100%, var(--nuit) 0, var(--nuit) 50%, transparent 51%);
  background-position: top;
}

/* -------------------------------------------------------------------------
   En-tête
   ------------------------------------------------------------------------- */
.entete {
  background: var(--nuit);
  color: var(--blanc-casse);
  position: sticky;
  top: 0;
  z-index: 20;
}
.entete__barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  position: relative;
}

.logo {
  font-family: var(--police-affiche);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--blanc-casse);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo__marque {
  height: 40px;
  width: auto;
}

.logo__accent { color: var(--bleu-vif); }

/* --- Menu « Filiales » --- */
.nav__item--sous-menu { position: relative; }

.nav__bouton {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--blanc-casse);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav__bouton:hover,
.nav__item--sous-menu[data-ouvert="true"] .nav__bouton {
  background: rgba(79, 179, 240, 0.14);
  color: var(--bleu-vif);
}

.nav__bouton svg { transition: transform 0.25s ease; }
.nav__item--sous-menu[data-ouvert="true"] .nav__bouton svg { transform: rotate(180deg); }

.nav__sous-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 8px;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  background: var(--nuit-clair);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 16px 32px -8px rgba(6, 24, 43, 0.55);
  z-index: 40;
}

.nav__item--sous-menu[data-ouvert="true"] .nav__sous-menu { display: block; }

/* Mobile : le sous-menu s'affiche à la suite, dans le menu burger */
@media (max-width: 860px) {
  .nav__bouton { width: 100%; justify-content: space-between; }

  .nav__sous-menu {
    position: static;
    min-width: 0;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    box-shadow: none;
    margin-top: 4px;
  }
}

/* --- Nav horizontale par défaut (desktop) --- */
.nav-conteneur {
  position: static;
}

.nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  border-radius: 0;
  min-width: 0;
  box-shadow: none;
}

.nav a {
  display: block;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--blanc-casse);
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: rgba(79, 179, 240, 0.14);
  color: var(--bleu-vif);
}

/* Le bouton hamburger est masqué sur desktop */
.nav-toggle {
  display: none;
}

/* --- Version mobile : on repasse en dropdown vertical --- */
@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
  }

  .nav-toggle__barre {
    width: 20px;
    height: 2px;
    background: var(--blanc-casse);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  .entete--ouvert .nav-toggle__barre:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .entete--ouvert .nav-toggle__barre:nth-child(2) { opacity: 0; }
  .entete--ouvert .nav-toggle__barre:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-conteneur {
    position: absolute;
    top: 100%;
    right: 24px;
    z-index: 30;
  }

  .nav {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: var(--nuit-clair);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 10px;
    min-width: 220px;
    box-shadow: 0 16px 32px -8px rgba(6, 24, 43, 0.55);
  }

  .entete--ouvert .nav { display: flex; }
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero {
  background: var(--nuit);
  color: var(--blanc-casse);
  padding: 64px 0 0;
  overflow: hidden;
}

/* Variante « diaporama » : les vraies photos défilent en fond de bandeau,
   le texte de présentation reste fixe par-dessus. */
.hero--carrousel {
  position: relative;
  padding: 0;
  min-height: 620px;
  display: flex;
  align-items: center;
}

.hero__carrousel-fond {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 0;
  aspect-ratio: auto;
  height: 100%;
}

.hero__carrousel-fond .carrousel__piste,
.hero__carrousel-fond .carrousel__diapo,
.hero__carrousel-fond img {
  height: 100%;
}

.hero__superposition {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    rgba(6, 24, 43, 0.94) 0%,
    rgba(6, 24, 43, 0.8) 42%,
    rgba(6, 63, 115, 0.45) 100%
  );
}

.hero__contenu {
  position: relative;
  z-index: 2;
  padding: 110px 24px;
  max-width: 540px;
}

.carrousel__puces--centre {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

@media (max-width: 640px) {
  .hero--carrousel { min-height: 520px; }
  .hero__contenu { padding: 90px 0 64px; }
}

.hero__grille {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 56px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--police-util);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--bleu-vif);
  border: 1px solid rgba(79, 179, 240, 0.5);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--police-affiche);
  font-weight: 600;
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--bleu-vif);
}

.hero p.chapeau {
  font-size: 1.1rem;
  max-width: 46ch;
  color: #d9e0e8;
  margin-bottom: 32px;
}

.boutons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.bouton {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bouton:hover { transform: translateY(-2px); }

.bouton--primaire {
  background: var(--bleu-vif);
  color: var(--nuit);
  box-shadow: 0 8px 20px -6px rgba(79, 179, 240, 0.6);
}

.bouton--fantome {
  background: transparent;
  color: var(--blanc-casse);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Illustration bâche — pans de toile superposés en SVG */
.hero__illustration {
  position: relative;
  height: 100%;
  min-height: 280px;
}

.hero__illustration svg { width: 100%; height: auto; }

/* -------------------------------------------------------------------------
   Bandeau chiffres
   ------------------------------------------------------------------------- */
.chiffres {
  background: var(--nuit-clair);
  color: var(--blanc-casse);
}

.chiffres__grille {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 28px 0 48px;
}

.chiffre__valeur {
  font-family: var(--police-affiche);
  font-size: 2.1rem;
  color: var(--bleu-vif);
  margin: 0;
}

.chiffre__libelle {
  margin: 4px 0 0;
  font-size: 1.1rem;
  color: #cfd8e2;
}

/* -------------------------------------------------------------------------
   Sections génériques
   ------------------------------------------------------------------------- */
.section { padding: 72px 0; }
.section--alterne { background: var(--bleu-clair-fonce); }

.entete-section {
  max-width: 60ch;
  margin: 0 0 40px;
}

.entete-section .eyebrow {
  color: var(--bleu-marque);
  border-color: rgba(238, 241, 244, 0.35);
}

.entete-section h2 {
  font-family: var(--police-affiche);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0 0 12px;
}

.entete-section p { color: var(--encre); margin: 0; }

/* --- Cartes de services dépliables --- */

.grille-services{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  align-items: start;
}

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

@media (max-width: 560px){
  .grille-services{ grid-template-columns: 1fr; }
}

.carte-service{
  position: relative;
  background: var(--blanc-casse);
  border: 1px solid rgba(74,74,74,0.18);
  border-radius: 2px;
  overflow: hidden;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.carte-service::before{
  /* coin plié, clin d'œil à la bâche */
  content:"";
  position:absolute;
  top:0; right:0;
  width:0; height:0;
  border-style: solid;
  border-width: 0 30px 30px 0;
  border-color: transparent rgba(0,80,157,0.12) transparent transparent;
  transition: border-color 0.35s ease;
  pointer-events: none;
}

.carte-service:hover{
  box-shadow: 0 14px 32px rgba(0,80,157,0.14);
  transform: translateY(-2px);
}

.carte-service__entete{
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 30px 26px 22px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.carte-service__entete:focus-visible{
  outline: 2px solid var(--bleu-marque);
  outline-offset: -2px;
}

.carte-service__photo{
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.carte-service__pictogramme{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  background: rgba(0,80,157,0.07);
  border-bottom: 1px solid rgba(74,74,74,0.12);
}

.carte-service__pictogramme svg{
  width: 34px;
  height: 34px;
  color: var(--bleu-marque);
}

.carte-service__entete h3,
.carte-service__corps h3{
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--bleu-marque);
  margin: 2px 0 0;
}

.carte-service__corps{
  padding: 24px 26px 26px;
}

.carte-service__entete p,
.carte-service__corps p{
  color: var(--encre);
}

.carte-service__cta{
  display:flex;
  align-items:center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bleu-marque);
  margin-top: 4px;
}

.carte-service__cta svg{
  width: 14px;
  height: 14px;
  transition: transform 0.35s ease;
}

.carte-service[data-ouvert="true"] .carte-service__cta svg{
  transform: rotate(180deg);
}

.carte-service__cta-texte::after{
  content: "Voir les détails";
}
.carte-service[data-ouvert="true"] .carte-service__cta-texte::after{
  content: "Replier";
}

.carte-service__detail{
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.4,0,0.2,1);
}

.carte-service[data-ouvert="true"] .carte-service__detail{
  grid-template-rows: 1fr;
}

.carte-service__detail-interieur{
  overflow: hidden;
}

.carte-service__ligne{
  height: 1px;
  margin: 0 26px;
  background: repeating-linear-gradient(
    to right,
    rgba(74,74,74,0.18) 0, rgba(74,74,74,0.18) 6px,
    transparent 6px, transparent 12px
  );
}

.carte-service__detail-contenu{
  padding: 18px 26px 28px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--encre);
}

.carte-service__detail-contenu p{
  margin: 0 0 10px;
}
.carte-service__detail-contenu p:last-child{
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce){
  .carte-service, .carte-service__detail, .carte-service__cta svg{
    transition-duration: 0.01ms !important;
  }
}

/* -------------------------------------------------------------------------
   Galerie
   ------------------------------------------------------------------------- */
.grille-galerie {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.carte-realisation {
  border-radius: 14px;
  overflow: hidden;
  background: var(--nuit);
  color: var(--blanc-casse);
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  position: relative;
}

.carte-realisation::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(79, 179, 240, 0.65),
    rgba(16, 35, 58, 0.92) 75%
  );
  z-index: 0;
}

.carte-realisation--photo {
  background-size: cover;
  background-position: center;
}

.carte-realisation--photo::after {
  background: linear-gradient(
    180deg,
    rgba(16, 35, 58, 0.05) 40%,
    rgba(16, 35, 58, 0.9) 100%
  );
}

.carte-realisation > * { position: relative; z-index: 1; }

.carte-realisation .type {
  font-family: var(--police-util);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--bleu-vif);
  margin: 0 0 6px;
}

.carte-realisation h3 { margin: 0 0 4px; font-family: var(--police-affiche); }
.carte-realisation .lieu { margin: 0; font-size: 0.85rem; color: #e4e9ef; }

/* -------------------------------------------------------------------------
   À propos — valeurs
   ------------------------------------------------------------------------- */
.grille-valeurs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.valeur h3 {
  font-family: var(--police-affiche);
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: var(--bleu-marque);
}

.valeur p { margin: 0; color: var(--encre); font-size: 0.95rem; }

/* -------------------------------------------------------------------------
   Formulaire de contact
   ------------------------------------------------------------------------- */
.grille-contact {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}

.bloc-coordonnees {
  background: var(--nuit);
  color: var(--blanc-casse);
  border-radius: 14px;
  padding: 32px;
}

.bloc-coordonnees h3 {
  font-family: var(--police-affiche);
  margin-top: 0;
}

.bloc-coordonnees ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.bloc-coordonnees li {
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.95rem;
}

.bloc-coordonnees li:first-child { border-top: none; }

.formulaire label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin: 18px 0 6px;
}

.formulaire label:first-child { margin-top: 0; }

.champ {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(16, 35, 58, 0.2);
  border-radius: 8px;
  font-family: var(--police-texte);
  font-size: 0.95rem;
  background: var(--blanc-casse);
}

.champ:focus {
  outline: 2px solid var(--bleu-vif);
  outline-offset: 1px;
}

.formulaire .bouton { margin-top: 24px; }

.alerte-succes {
  background: rgba(0, 80, 157, 0.12);
  border: 1px solid var(--bleu-marque);
  color: var(--bleu-marque);
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.erreurs-champ {
  color: var(--bleu-marque);
  font-size: 0.82rem;
  margin: 4px 0 0;
}

/* -------------------------------------------------------------------------
   Carrousel — photos réelles d'installations
   ------------------------------------------------------------------------- */
.carrousel {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--nuit);
  aspect-ratio: 16 / 9;
}

.carrousel__piste {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.carrousel__diapo {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
}

.carrousel__diapo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carrousel__legende {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px 28px 22px;
  background: linear-gradient(180deg, transparent, rgba(6, 24, 43, 0.88) 70%);
  color: var(--blanc-casse);
}

.carrousel__legende .eyebrow {
  color: var(--bleu-vif);
  border-color: rgba(79, 179, 240, 0.5);
  margin-bottom: 10px;
}

.carrousel__legende h3 {
  font-family: var(--police-affiche);
  margin: 0 0 6px;
  font-size: 1.3rem;
}

.carrousel__legende p {
  margin: 0;
  font-size: 0.92rem;
  color: #d9e0e8;
  max-width: 56ch;
}

.carrousel__fleche {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(6, 24, 43, 0.55);
  color: var(--blanc-casse);
  border: 1px solid rgba(255, 255, 255, 0.35);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.2s ease;
}

.carrousel__fleche:hover { background: rgba(79, 179, 240, 0.85); color: var(--nuit); }
.carrousel__fleche--prec { left: 16px; }
.carrousel__fleche--suiv { right: 16px; }

.carrousel__puces {
  position: absolute;
  bottom: 18px;
  right: 24px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.carrousel__puce {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carrousel__puce[aria-current="true"] {
  background: var(--bleu-vif);
  transform: scale(1.2);
}

@media (max-width: 640px) {
  .carrousel { aspect-ratio: 4 / 3; }
  .carrousel__legende { padding: 22px 18px 16px; }
  .carrousel__fleche { width: 34px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .carrousel__piste { transition: none; }
}

/* -------------------------------------------------------------------------
   Pied de page
   ------------------------------------------------------------------------- */
.pied {
  background: var(--nuit);
  color: #cfd8e2;
  padding: 40px 0;
  font-size: 1rem;
}

.pied a { text-decoration: none; }
.pied a:hover { color: var(--bleu-vif); }

.pied__grille {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 48px 0 32px;
}

.pied__section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 1rem;
}

.pied__section p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  color: #cfd8e2;
}

.pied__section strong {
  font-size: 1.15rem;
  color: var(--blanc-casse);
}

.pied__logo {
  height: 56px;
  width: auto;
  align-self: flex-start;
  margin-bottom: 8px;
}

.pied__titre {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--blanc-casse);
  margin: 0 0 4px;
}

.pied__liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 1rem;
}

.pied__liste a {
  color: var(--blanc-casse);
  text-decoration: none;
  opacity: 0.9;
}

.pied__liste a:hover {
  color: var(--bleu-vif);
  opacity: 1;
}

.pied__reseaux {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 10px;
}

.pied__reseau-lien {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--blanc-casse);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.pied__reseau-lien svg {
  width: 18px;
  height: 18px;
}

.pied__reseau-lien:hover {
  background: var(--bleu-vif);
  color: var(--nuit);
  transform: translateY(-2px);
}

/* Responsive : passe en 2 colonnes puis 1 sur petit écran */
@media (max-width: 860px) {
  .pied__grille {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

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

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .hero__grille { grid-template-columns: 1fr; }
  .hero__illustration { order: -1; min-height: 180px; }
  .grille-contact { grid-template-columns: 1fr; }
  .nav-conteneur { right: 12px; left: 12px; }
  .nav { width: 100%; }
}

@media (max-width: 640px) {
  .chiffres__grille { grid-template-columns: 1fr; text-align: center; }
  .boutons { flex-direction: column; }
  .bouton { justify-content: center; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bouton { transition: none; }
}

.grille-partenaires {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  align-items: center;
  gap: 2rem;
}

.carte-partenaire {
  display: flex;
  justify-content: center;
  align-items: center;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.carte-partenaire:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.carte-partenaire__logo {
  max-height: 80px;
  max-width: 100%;
  object-fit: contain;
}



.grille-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.carte-video__cadre {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
}
.carte-video__cadre iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.carte-video__titre {
  margin-top: .5rem;
  font-weight: 600;
}


/* --- Carrousel partenaires --- */
.partenaires-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: none;
}

.partenaires-navigation { display: flex; gap: 10px; }

.partenaires-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(0, 80, 157, 0.35);
  background: transparent;
  color: var(--bleu-marque);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.partenaires-btn:hover {
  background: var(--bleu-marque);
  color: var(--blanc);
}

.partenaires-carousel { position: relative; }

.partenaires-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 8px 2px;
  cursor: grab;
}
.partenaires-track::-webkit-scrollbar { display: none; }

/* Pendant le glisser à la souris, on coupe le snap et le smooth */
.partenaires-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
  user-select: none;
}

.partenaire-slide {
  flex: 0 0 calc((100% - 4 * 20px) / 5);
  scroll-snap-align: start;
}

@media (max-width: 980px) {
  .partenaire-slide { flex-basis: calc((100% - 2 * 20px) / 3); }
}
@media (max-width: 640px) {
  .partenaire-slide { flex-basis: calc((100% - 20px) / 2); }
}

.partenaire-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  padding: 16px;
  background: var(--blanc);
  border: 1px solid rgba(74, 74, 74, 0.12);
  border-radius: 10px;
  text-decoration: none;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.partenaire-card:hover { filter: grayscale(0%); opacity: 1; }

.partenaire-logo {
  max-height: 70px;
  max-width: 100%;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
}

.partenaire-nom {
  font-weight: 600;
  color: var(--bleu-marque);
  text-align: center;
}

.partenaires-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  z-index: 2;
  pointer-events: none;
}
.partenaires-fade--left  { left: 0;  background: linear-gradient(to right, var(--bleu-clair-fonce), transparent); }
.partenaires-fade--right { right: 0; background: linear-gradient(to left,  var(--bleu-clair-fonce), transparent); }


.formulaire--candidature { max-width: 680px; }

.formulaire--candidature textarea.champ { resize: vertical; min-height: 140px; }
.formulaire--candidature input[type="file"].champ { padding: 10px; background: var(--blanc); }

.formulaire label small { font-weight: 400; opacity: 0.7; }

.aide-champ { margin: 4px 0 0; font-size: 0.82rem; opacity: 0.75; }

/* Champ piège hors écran */
.piege { position: absolute; left: -9999px; height: 0; overflow: hidden; }