/* =========================================================================
   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); }

/* --- 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;
}

/* -------------------------------------------------------------------------
   Hero avec carrousel en arrière-plan
   ------------------------------------------------------------------------- */

.hero--carrousel {
  position: relative;
  width: 100%;
  min-height: 680px;
  padding: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Le carrousel couvre entièrement le Hero */
.hero__carrousel-fond {
  position: absolute;
  inset: 0;
  z-index: 0;

  width: 100%;
  height: 100%;

  margin: 0;
  padding: 0;

  border-radius: 0;
  overflow: hidden;
  background: var(--nuit);

  aspect-ratio: auto;
}

/* Piste du carrousel */
.hero__carrousel-fond .carrousel__piste {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Chaque diapositive */
.hero__carrousel-fond .carrousel__diapo {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  position: relative;
  overflow: hidden;
}

/* Photos */
.hero__carrousel-fond .carrousel__diapo img {
  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center center;
}

/* Voile sombre */
.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.80) 42%,
    rgba(6, 63, 115, 0.45) 100%
  );

  pointer-events: none;
}

/* Contenu du Hero */
.hero__contenu {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 590px;

  padding-top: 110px;
  padding-bottom: 110px;
}

/* Titre */
.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);
}

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

/* Boutons */
.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);
}

/* -------------------------------------------------------------------------
   Puces du Hero
   ------------------------------------------------------------------------- */

.hero__carrousel-fond .carrousel__puces {
  position: absolute;

  left: 50%;
  right: auto;
  bottom: 24px;

  z-index: 5;

  display: flex;
  gap: 8px;

  transform: translateX(-50%);
}

.carrousel__puce {
  width: 9px;
  height: 9px;

  padding: 0;

  border: none;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.45);

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

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

/* -------------------------------------------------------------------------
   Hero classique
   ------------------------------------------------------------------------- */

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

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

@media (max-width: 860px) {

  .hero--carrousel {
    min-height: 600px;
  }

  .hero__contenu {
    max-width: 100%;
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .hero h1 {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .hero p.chapeau {
    font-size: 1rem;
    max-width: 55ch;
  }

  .hero__carrousel-fond .carrousel__diapo img {
    object-position: center center;
  }

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

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

@media (max-width: 640px) {

  .hero--carrousel {
    min-height: 620px;
  }

  .hero__contenu {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .hero h1 {
    font-size: 2.1rem;
    line-height: 1.08;
  }

  .hero p.chapeau {
    font-size: 0.96rem;
    line-height: 1.5;
  }

  .boutons {
    flex-direction: column;
    gap: 12px;
  }

  .bouton {
    width: 100%;
    justify-content: center;
  }

  /*
   * Sur mobile, on cadre légèrement plus haut
   * pour éviter de couper les personnes / bâtiments.
   */
  .hero__carrousel-fond .carrousel__diapo img {
    object-position: center center;
  }

  .hero__carrousel-fond .carrousel__puces {
    bottom: 16px;
  }
}

/* -------------------------------------------------------------------------
   Très petits téléphones
   ------------------------------------------------------------------------- */

@media (max-width: 400px) {

  .hero--carrousel {
    min-height: 650px;
  }

  .hero__contenu {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .hero p.chapeau {
    font-size: 0.92rem;
  }
}

/* -------------------------------------------------------------------------
   Accessibilité
   ------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

  .carrousel__piste,
  .bouton,
  .carrousel__puce {
    transition: none !important;
  }
}

/* -------------------------------------------------------------------------
   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(3, 1fr);
  gap: 28px;
  align-items: start;
}


@media (max-width: 770px){
  .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;
}


.carte-video {
  min-width: 0;
}

/* =========================================================
   VIDEOS YOUTUBE
   ========================================================= */

.grille-videos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
}

.carte-video {
  min-width: 0;
  width: 100%;
}

.carte-video__cadre {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

.carte-video__cadre iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.carte-video__titre {
  margin: 10px 0 0;
  font-weight: 600;
  color: var(--encre);
}

/* Tablette */
@media (max-width: 900px) {
  .grille-videos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

/* Téléphone */
@media (max-width: 600px) {
  .grille-videos {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .carte-video__cadre {
    border-radius: 10px;
  }
}



/* =========================================
   PARTENAIRES
========================================= */

.section--partenaires {
  position: relative;
  overflow: hidden;
  padding: 90px 0;
  background: #f8f9fb;
}


/* HEADER */

.partenaires-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 45px;
}

.partenaires-header h2 {
  margin: 8px 0 0;
}


/* NAVIGATION */

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

.partenaires-btn {
  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 50%;

  background: #fff;
  color: #111;

  font-size: 20px;
  cursor: pointer;

  transition:
    background .3s ease,
    color .3s ease,
    transform .3s ease,
    box-shadow .3s ease;
}

.partenaires-btn:hover {
  background: #111;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, .12);
}


/* CAROUSEL */

.partenaires-carousel {
  position: relative;
  overflow: hidden;
  margin: 0 -10px;
}

.partenaires-track {
  display: flex;
  gap: 20px;

  overflow-x: auto;
  scroll-behavior: smooth;

  padding: 10px;

  scrollbar-width: none;

  cursor: grab;
  user-select: none;
}

.partenaires-track::-webkit-scrollbar {
  display: none;
}

.partenaires-track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}


/* SLIDE */

.partenaire-slide {
  flex: 0 0 calc(25% - 15px);
}


/* CARTE */

.partenaire-card {
  position: relative;

  height: 170px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 35px;

  background: rgba(255, 255, 255, .85);

  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 20px;

  box-shadow:
    0 5px 25px rgba(0, 0, 0, .04);

  text-decoration: none;

  transition:
    transform .4s cubic-bezier(.2,.8,.2,1),
    box-shadow .4s ease,
    border-color .4s ease;
}

.partenaire-card::after {
  content: "";

  position: absolute;
  inset: 0;

  border-radius: inherit;

  background: linear-gradient(
    135deg,
    rgba(255,255,255,.5),
    transparent
  );

  opacity: 0;

  transition: opacity .4s ease;
}

.partenaire-card:hover {
  transform: translateY(-7px);

  border-color: rgba(0, 0, 0, .12);

  box-shadow:
    0 20px 45px rgba(0, 0, 0, .10);
}

.partenaire-card:hover::after {
  opacity: 1;
}


/* LOGO */

.partenaire-logo {
  position: relative;
  z-index: 1;

  max-width: 170px;
  max-height: 75px;

  width: auto;
  height: auto;

  object-fit: contain;

  filter: grayscale(100%);
  opacity: .65;

  transition:
    filter .4s ease,
    opacity .4s ease,
    transform .4s ease;
}

.partenaire-card:hover .partenaire-logo {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.05);
}


/* NOM SI PAS DE LOGO */

.partenaire-nom {
  color: #222;

  font-size: 16px;
  font-weight: 600;

  text-align: center;
}


/* FADE SUR LES CÔTÉS */

.partenaires-fade {
  position: absolute;

  top: 0;
  bottom: 0;

  width: 100px;

  z-index: 3;

  pointer-events: none;
}

.partenaires-fade--left {
  left: 0;

  background: linear-gradient(
    to right,
    #f8f9fb,
    transparent
  );
}

.partenaires-fade--right {
  right: 0;

  background: linear-gradient(
    to left,
    #f8f9fb,
    transparent
  );
}


/* TABLETTE */

@media (max-width: 1100px) {

  .partenaire-slide {
    flex: 0 0 calc(33.333% - 14px);
  }

}


/* MOBILE */

@media (max-width: 768px) {

  .section--partenaires {
    padding: 65px 0;
  }

  .partenaires-header {
    align-items: center;
    margin-bottom: 30px;
  }

  .partenaires-navigation {
    gap: 7px;
  }

  .partenaires-btn {
    width: 42px;
    height: 42px;
  }

  .partenaire-slide {
    flex: 0 0 calc(50% - 10px);
  }

  .partenaire-card {
    height: 140px;
    padding: 25px;
  }

  .partenaire-logo {
    max-width: 130px;
    max-height: 60px;
  }

  .partenaires-fade {
    width: 45px;
  }

}


/* PETIT MOBILE */

@media (max-width: 480px) {

  .partenaire-slide {
    flex: 0 0 85%;
  }

  .partenaires-header {
    align-items: flex-start;
  }

}
