/* ===== Thème clair équilibré ===== */
:root{
  --bg:#f7f7fb;        /* fond légèrement grisé, moins flashy que blanc pur */
  --card:#ffffff;      /* cartes / blocs */
  --text:#0f172a;      /* gris bleuté foncé, très lisible */
  --muted:#667085;     /* gris moyen pour les infos secondaires */
  --primary:#2563eb;   /* bleu moderne */
  --primary-weak:#e8efff;
  --danger:#dc2626;
  --warn:#f59e0b;
  --success:#16a34a;
  --border:#e5e7eb;    /* contours discrets */
  --ring: rgba(37,99,235,.35);
}

/* ===== Reset & base ===== */
*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial;
  background:var(--bg);
  color:var(--text);
  line-height:1.5;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:var(--primary); text-decoration:none; }
a:hover{ text-decoration:underline; }

/* ===== Layout ===== */
.container{ max-width:1024px; margin:0 auto; padding:20px; }
.nav{ display:flex; justify-content:space-between; align-items:center; gap:16px; }

/* Marque (lien Accueil) */
.brand{
  display:inline-flex; align-items:center; gap:8px;
  font-weight:800;
  padding:8px 12px;
  border:2px solid var(--text);
  border-radius:999px;
  color:var(--text);
  text-decoration:none;
  transition:background .15s, color .15s, border-color .15s, transform .06s;
}
.brand:hover, .brand:focus{ background:var(--text); color:#fff; outline:none; }
.brand:active{ transform:translateY(1px); }
.brand:focus-visible{ box-shadow:0 0 0 3px var(--ring); }

/* Nav droite */
nav a{
  margin-left:12px;
  padding:6px 8px;
  border-radius:8px;
  color:var(--text);
}
nav a:hover{
  background:var(--primary-weak);
  text-decoration:none;
}

/* ===== Cards & sections ===== */
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:14px;
  padding:16px 18px;
  box-shadow: 0 1px 0 rgba(16,24,40,.04);
}
.grid2{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:720px){ .grid2{ grid-template-columns:1fr; } }

/* ===== Boutons ===== */
.btn{
  display:inline-block;
  background:var(--primary);
  color:#fff;
  border:1px solid var(--primary);
  padding:10px 14px;
  border-radius:10px;
  cursor:pointer;
  font-weight:600;
  text-decoration:none;
  transition: transform .06s, box-shadow .15s, background .15s, border-color .15s;
}
.btn:hover{ box-shadow:0 2px 10px rgba(37,99,235,.25); text-decoration:none; }
.btn:active{ transform:translateY(1px); }
.btn.outline{ background:#fff; color:var(--primary); }
.btn.danger{ background:var(--danger); border-color:var(--danger); }

/* ===== Formulaires ===== */
.form{ display:grid; gap:12px; max-width:520px; }
.form label{ font-weight:600; }
.form input, .form select, .form textarea{
  width:100%;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
}
.form input:focus, .form select:focus, .form textarea:focus{
  outline:none; border-color:var(--primary);
  box-shadow:0 0 0 3px var(--ring);
}

/* ===== Tableaux ===== */
.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:12px;
  overflow:hidden;
}
.table th, .table td{
  padding:12px 12px;
  border-bottom:1px solid var(--border);
}
.table thead th{
  background:#f3f4f6;
  text-align:left;
  font-weight:700;
}
.table tbody tr:hover{ background:#fafafa; }

/* ===== Badges (statuts) ===== */
.badge{
  display:inline-block;
  padding:4px 8px;
  border-radius:999px;
  font-size:.85rem;
  font-weight:600;
  border:1px solid var(--border);
}
.badge.pending{ background:#fff; color:var(--muted); }
.badge.approved{ background:#ecfdf5; color:var(--success); border-color:#bbf7d0; }
.badge.rejected{ background:#fef2f2; color:var(--danger); border-color:#fecaca; }

/* ===== Flash ===== */
.flash{ list-style:none; padding:0; margin:12px 0; }
.flash li{ margin:8px 0; padding:10px 12px; border-radius:10px; }
.flash li.success{ background:#ecfdf5; border:1px solid #bbf7d0; }
.flash li.error{ background:#fef2f2; border:1px solid #fecaca; }
.flash li.info{ background:#eff6ff; border:1px solid #bfdbfe; }

/* ===== Utilitaires ===== */
.row{ display:flex; gap:8px; align-items:center; }
.muted{ color:var(--muted); }

/* Grille de logos partenaires */
.logo-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:16px;
}
@media (max-width:900px){ .logo-grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width:640px){ .logo-grid{ grid-template-columns: repeat(2, 1fr); } }

.partner{
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px;
  height:90px;           /* hauteur uniforme */
}
.partner img{
  max-height:60px;       /* contrainte visuelle */
  width:auto;
  object-fit:contain;
  filter: saturate(1);
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}
.partner:hover img{ transform:scale(1.04); }
.partner:hover{ box-shadow:0 2px 10px rgba(16,24,40,.08); }

/* Bandeau d'annonces (home) */
.banner {
  background: #fff7ed;               /* orange très léger */
  border: 1px solid #fed7aa;
  color: #7c2d12;
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 0 16px 0;
}
.banner strong { color:#7c2d12; }

/* Compte à rebours (manche) */
.countdown-box.card{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.countdown-meta{ color:var(--muted); margin:0; }
.countdown{
  display:inline-block;
  font-weight:800;
  font-size:1.15rem;
  border:2px solid var(--primary);
  border-radius:12px;
  padding:6px 10px;
  background:#fff;
  color:var(--text);
}
#countdown-wrap.warn .countdown{
  border-color:#f59e0b; background:#fffbeb; color:#7c2d12; /* < 24h */
}
#countdown-wrap.danger .countdown{
  border-color:var(--danger); background:#fef2f2; color:#991b1b; /* < 1h */
}

/* Mini compte à rebours (home) */
.cd-badge{
  display:inline-block;
  margin-left:8px;
  padding:2px 8px;
  border-radius:999px;
  font-size:.85rem;
  font-weight:700;
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
}
.cd-warn{ background:#fffbeb; border-color:#fde68a; color:#7c2d12; }   /* < 24h */
.cd-danger{ background:#fef2f2; border-color:#fecaca; color:#991b1b; } /* < 1h  */

/* Onglets admin times */
.tabs{
  display:flex;
  gap:8px;
  margin:8px 0 12px 0;
  flex-wrap:wrap;
}
.tabs .tab{
  display:inline-block;
  padding:8px 12px;
  border:1px solid var(--border);
  border-radius:999px;
  color:var(--text);
  text-decoration:none;
  background:#fff;
  font-weight:600;
}
.tabs .tab:hover{ background:var(--primary-weak); text-decoration:none; }
.tabs .tab.active{
  background:var(--primary);
  color:#fff;
  border-color:var(--primary);
}

/* Logo sur la page d'accueil : même taille, aligné à gauche */
.hero-logo {
  display: block;
  margin: 0 0 8px 0;   /* plus de centrage */
  max-width: 420px;    /* taille que tu aimais */
  width: 70%;
  height: auto;
  object-fit: contain;
  background: transparent;
}

@media (max-width: 640px) {
  .hero-logo {
    max-width: 300px;
    width: 80%;
  }
}

/* Deux logos en entête */
.hero-logo{
  height: 70px;  /* ajuste si tu veux */
  width: auto;
  object-fit: contain;
}
.hero-logo-second{
  height: 70px;  /* même hauteur que le premier */
  width: auto;
  object-fit: contain;
}
@media (max-width: 640px){
  .hero-logo, .hero-logo-second{ height: 56px; }
}


/* Bandeau d'accueil avec logos gauche / titre / logo droit */
.hero-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin:0 0 8px 0;
}

/* Titre un peu plus costaud mais fluide */
.hero-title{
  margin:0;
  font-size:clamp(22px, 3.2vw, 32px);
  font-weight:800;
  line-height:1.1;
}

/* Logo de droite (WP Challenge) — +30% */
.logo-main{
  height: clamp(94px, 16vw, 188px);  /* avant ~ clamp(72px, 12vw, 144px) */
  width: auto;
  object-fit: contain;
}

@media (max-width:640px){
  .logo-main{
    height: clamp(84px, 18vw, 144px); /* mobile +30% aussi (avant ~ 64/…/110) */
  }
}



/* Logo de gauche (Moto Gymkhana) — un peu plus discret */
.logo-secondary{
  height:clamp(44px, 6vw, 72px);
  width:auto;
  object-fit:contain;
}

/* Sur mobile : on passe en colonne, logo droit sous le titre */
@media (max-width:640px){
  .hero-row{
    flex-direction:column;
    align-items:flex-start;
  }
  .logo-main{ align-self:flex-start; }
}

/* ===== Hero “fondu” dans la page ===== */
.hero-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin:0 0 8px 0;
}

/* Variante “blend” : adoucit les logos pour mieux s’intégrer */
.hero-row.blend{
  border-bottom:1px solid var(--border);
  padding-bottom:8px;
}
.hero-row.blend .logo-secondary,
.hero-row.blend .logo-main{
  opacity:.9;                 /* léger fondu */
  filter: grayscale(12%);     /* très léger NB pour homogénéiser */
  mix-blend-mode:multiply;    /* se “mélange” avec le fond clair */
  transition: filter .2s ease, opacity .2s ease, transform .2s ease;
}
.hero-row.blend .logo-secondary:hover,
.hero-row.blend .logo-main:hover{
  opacity:1;
  filter: grayscale(0%);
  transform: translateY(-1px);
}

/* Titre fluide */
.hero-title{
  margin:0;
  font-size:clamp(22px, 3.2vw, 32px);
  font-weight:800;
  line-height:1.1;
}

/* Logos: tailles cohérentes, ratio respecté */
.logo-secondary{
  height:clamp(44px, 6vw, 72px);
  width:auto;
  object-fit:contain;
}
.logo-main{
  height:clamp(72px, 12vw, 144px); /* logo droit plus présent */
  width:auto;
  object-fit:contain;
}

/* Mobile: pile proprement, tout à gauche */
@media (max-width:640px){
  .hero-row{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }
  .logo-main{ height:clamp(64px, 16vw, 110px); }
}

/* Partenaires — agrandir le 2e logo */
.logo-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  align-items: center;
}
.logo-grid .partner{
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px;
}
.logo-grid .partner img{
  max-width: 100%;
  max-height: 70px;     /* taille “normale” */
  width: auto;
  height: auto;
  object-fit: contain;
}

/* 👉 2e logo plus grand (~+35%) */
.logo-grid .partner:nth-child(2) img{
  max-height: 95px;     /* ajuste ici (ex: 100px si tu veux encore + grand) */
}

/* Mobile : légère réduction pour garder l’équilibre */
@media (max-width:640px){
  .logo-grid .partner img{ max-height: 60px; }
  .logo-grid .partner:nth-child(2) img{ max-height: 80px; }
}

/* Centrer le texte d’intro sur la page d’accueil */
.hero + p {
  text-align: center;
  font-size: 1.05rem;
  margin-top: 12px;
  margin-bottom: 24px;
  color: var(--text);
}

/* --- NAVIGATION --- */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border-bottom: 2px solid var(--border);
  padding: 10px 0;
}

nav a {
  margin-left: 16px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s ease-in-out;
}

nav a:hover {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

nav a.active {
  background: var(--primary);
  color: white;
}

.brand {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
}



/* ===== Partenaires — carrés arrondis, grands et côte à côte (override) ===== */

/* Grille: 2 colonnes fixes sur desktop */
.logo-grid{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(260px, 1fr)) !important;
  gap: 24px !important;
  align-items: stretch !important;
  justify-items: center !important;
}

/* Bulle carrée verrouillée */
.logo-grid > .partner{
  position: relative !important;
  display: block !important;      /* écrase un éventuel display:flex */
  width: 100% !important;
  max-width: 380px !important;     /* ⇦ augmente si tu veux plus grand */
  border-radius: 20px !important;
  overflow: hidden !important;
  background: #fff !important;
  border: 1px solid var(--border) !important;
  padding: 0 !important;           /* supprime tout padding ancien */
  margin: 0 !important;
}

/* Carré garanti (fallback si aspect-ratio est ignoré) */
.logo-grid > .partner::before{
  content: "" !important;
  display: block !important;
  padding-top: 100% !important;    /* hauteur = largeur => carré */
}

/* Image centrée et contenue dans le carré */
.logo-grid > .partner > img{
  position: absolute !important;
  inset: 0 !important;             /* top/right/bottom/left: 0 */
  margin: auto !important;
  width: 90% !important;           /* ajuste 85–95% si besoin */
  height: 90% !important;
  object-fit: contain !important;
  display: block !important;
}



/* Mobile: 1 colonne */
@media (max-width: 720px){
  .logo-grid{
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .logo-grid > .partner{
    max-width: 400px !important;
  }
  .logo-grid > .partner > img{
    width: 92% !important;
    height: 92% !important;
  }
}

/* ===== Partenaires (CSS-only) — carrés arrondis, grands, 2 colonnes ===== */

/* Grille dans la carte Partenaires */
.card .logo-grid{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(260px, 1fr)) !important;
  gap: 24px !important;
  align-items: stretch !important;
  justify-items: center !important;
}

/* Tuile carrée verrouillée */
.card .logo-grid > .partner{
  position: relative !important;
  width: 100% !important;
  max-width: 380px !important;     /* ↑ augmente si tu veux plus grand */
  border-radius: 20px !important;
  overflow: hidden !important;
  background: #fff !important;
  border: 1px solid var(--border) !important;
  padding: 0 !important;
}

/* Carré garanti (hauteur = largeur) */
.card .logo-grid > .partner::before{
  content: "" !important;
  display: block !important;
  padding-top: 100% !important;
}

/* Image centrée et contenue dans le carré */
.card .logo-grid > .partner > img{
  position: absolute !important;
  inset: 0 !important;            /* top/right/bottom/left: 0 */
  margin: auto !important;
  width: 90% !important;          /* ajuste 85–95% si besoin */
  height: 90% !important;
  object-fit: contain !important;
  display: block !important;
}



/* Mobile: 1 colonne, un peu plus grand si tu veux */
@media (max-width: 720px){
  .card .logo-grid{
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .card .logo-grid > .partner{
    max-width: 400px !important;
  }
  .card .logo-grid > .partner > img{
    width: 92% !important;
    height: 92% !important;
  }
}

/* Réseaux du gymkhana français — grille de logos */
.networks-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  align-items: center;
  justify-items: center;
  margin-top: 12px;
}
.networks-grid .netw{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  width: 100%;
  max-width: 260px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.networks-grid .netw:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}
.networks-grid .netw img{
  display: block;
  max-width: 100%;
  max-height: 80px;   /* augmente à 90–100px si besoin */
  object-fit: contain;
}
@media (max-width:640px){
  .networks-grid .netw img{ max-height: 70px; }
}

/* Réseaux — styles spécifiques par tuile (ordre actuel) */

/* 1) wp.jpg : fond rouge */
.networks-grid .netw:nth-child(1){
  background: #dc2626;         /* rouge vif */
  border-color: #dc2626;
}

/* 2) mania2.png : fond noir */
.networks-grid .netw:nth-child(2){
  background: #000;
  border-color: #000;
}

/* 3) angle.jpg & 4) gravity.jpg : logos plus grands */
.networks-grid .netw:nth-child(3) img,
.networks-grid .netw:nth-child(4) img{
  max-height: 110px;           /* ↑ au lieu de 80px */
}

@media (max-width: 640px){
  .networks-grid .netw:nth-child(3) img,
  .networks-grid .netw:nth-child(4) img{
    max-height: 96px;          /* un poil moins grand en mobile */
  }
}

/* Overrides réseaux — remettre WP en fond blanc + tailles harmonisées */

/* 1) wp.jpg : fond blanc (reset) */
.networks-grid .netw:nth-child(1){
  background: #fff !important;
  border-color: var(--border) !important;
}

/* 2) mania2.png : on garde le fond noir tel quel */

/* Harmoniser la taille des 5 logos */
.networks-grid .netw:nth-child(1) img,
.networks-grid .netw:nth-child(2) img,
.networks-grid .netw:nth-child(3) img,
.networks-grid .netw:nth-child(4) img,
.networks-grid .netw:nth-child(5) img{
  max-height: 110px !important;
}

@media (max-width: 640px){
  .networks-grid .netw:nth-child(1) img,
  .networks-grid .netw:nth-child(2) img,
  .networks-grid .netw:nth-child(3) img,
  .networks-grid .netw:nth-child(4) img,
  .networks-grid .netw:nth-child(5) img{
    max-height: 96px !important;
  }
}

/* Zoom sur Angle (3), Gravity (4) ET Moto Liberté (5) */
.networks-grid .netw:nth-child(3) img,
.networks-grid .netw:nth-child(4) img,
.networks-grid .netw:nth-child(5) img{
  transform: scale(1.15);
  transform-origin: center;
}

@media (min-width: 721px){
  .networks-grid .netw:nth-child(3) img,
  .networks-grid .netw:nth-child(4) img,
  .networks-grid .netw:nth-child(5) img{
    transform: scale(1.2);
  }
}
@media (max-width: 640px){
  .networks-grid .netw:nth-child(3) img,
  .networks-grid .netw:nth-child(4) img,
  .networks-grid .netw:nth-child(5) img{
    transform: scale(1.1);
  }
}


/* Réseaux — remettre la 2e bulle (Mania) en fond blanc */
.networks-grid .netw:nth-child(2){
  background: #fff !important;
  border-color: var(--border) !important;
}


.center { text-align: center; }

/* Bouton icône compact (download) */
.icon-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border-radius:10px;
  border:1px solid var(--border);
  background:#fff;
  text-decoration:none;
  transition:.15s ease;
}
.icon-btn:hover{ box-shadow:0 6px 14px rgba(0,0,0,.06); transform:translateY(-1px); }
.icon-btn:active{ transform:translateY(0); }
.icon-btn.green{ border-color:#059669; }
.icon-btn.green:hover{ background:#ecfdf5; }
.icon-btn .i{ font-size:18px; line-height:1; }

/* Bandeau défilant (annonce) */
.banner{
  background:#dbeafe;
  border:1px solid var(--border);
  border-radius:12px;
  overflow:hidden;
  padding:0;
}
.banner .marquee{
  display:flex;
  gap:48px;
  white-space:nowrap;
  padding:10px 16px;
  animation: marquee-scroll 18s linear infinite;
  will-change: transform;
}
.banner:hover .marquee{ animation-play-state: paused; }
.banner .marquee__chunk{ display:inline-block; }

/* Défilement simple (2 blocs clonés) */
@keyframes marquee-scroll{
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Accélérer la bannière défilante */
.banner .marquee{
  animation-duration: 10s; /* plus rapide (au lieu de 18s) */
}


/* --- Boost lisibilité mobile --- */
@media (max-width: 560px){
  html, body{ font-size:18px; line-height:1.6; }

  h1{ font-size:28px; line-height:1.2; }
  h2{ font-size:22px; }
  h3{ font-size:18px; }

  .nav{ gap:10px; }
  .nav a{ font-size:16px; padding:6px 8px; }

  .card{ padding:18px; border-radius:14px; }
  .btn{ padding:12px 16px; font-size:16px; border-radius:10px; }
  .table th, .table td{ padding:12px 10px; }

  /* Bannière défilante un peu plus grande */
  .banner .marquee{ padding:12px 18px; }
}

/* Un petit plus même sur desktop */
body{ line-height:1.55; }

/* --- Hero vidéo (hauteur limitée) --- */
.bg-hero{
  position: relative;
  height: 360px;          /* ajuste 300–480px selon ton goût */
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 16px;
}
.bg-hero-yt{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}
.bg-hero-yt iframe{
  width: 100%; height: 100%;
  border: 0; display: block;
}
.bg-hero-overlay{
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,.2), rgba(249,250,251,.92));
  z-index: 1;
}
.hero-content{
  position: relative;
  z-index: 2;
  padding: 16px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}

/* Sur mobile / réduction de mouvement : on masque la vidéo */
@media (prefers-reduced-motion: reduce){
  .bg-hero-yt{ display:none; }
  .bg-hero-overlay{ background:#f9fafb; }
}
@media (max-width: 640px){
  .bg-hero{ height: 260px; }
}

/* --- Hero vidéo : couvre sans bandes noires --- */
.bg-hero{
  position: relative;
  height: 360px;              /* ajuste 300–480px si tu veux */
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 16px;
}

/* On centre et on SURdimensionne l'iframe pour couvrir le bloc */
.bg-hero-yt{
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
}
.bg-hero-yt iframe{
  position: absolute;
  top: 50%;
  left: 50%;
  /* “cover” pour 16:9 : on fait plus grand que le conteneur */
  width: 120vw;               /* large sur desktop, évite les bandes */
  height: 67.5vw;             /* = 120 * 9/16 */
  min-width: 100%;            /* ne jamais être plus petit que le conteneur */
  min-height: 100%;
  transform: translate(-50%, -50%);
  border: 0;
  display: block;
}

/* Voile plus léger pour que la vidéo paraisse moins sombre */
.bg-hero-overlay{
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,.12), rgba(249,250,251,.86));
  z-index: 1;
}

.hero-content{
  position: relative;
  z-index: 2;
  padding: 16px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}

/* Mobile : hauteur plus compacte, zoom adapté */
@media (max-width: 640px){
  .bg-hero{ height: 260px; }
  .bg-hero-yt iframe{
    width: 200vw;            /* plus de zoom sur mobile */
    height: 112.5vw;         /* = 200 * 9/16 */
  }
}

/* Respecte la préférence “réduire les animations” */
@media (prefers-reduced-motion: reduce){
  .bg-hero-yt{ display:none; }
  .bg-hero-overlay{ background:#f9fafb; }
}

/* Banner + confort mobile */
@media (max-width: 680px){
  .banner{ margin: 14px 0; }
  .banner .marquee{
    font-size: 20px;     /* texte plus grand */
    padding: 14px 18px;  /* plus d’air autour */
    line-height: 1.5;
  }
}

/* Nav plus grande sur mobile */
@media (max-width: 680px){
  .nav{ gap: 10px 12px; }
  .nav a{
    display: inline-block;
    font-size: 16px;      /* + lisible */
    padding: 10px 12px;   /* + grande zone tactile */
    border-radius: 10px;  /* look bouton léger */
  }
  .brand{ font-size: 24px; } /* Titre un poil plus grand */
}

/* Hero + titre plus grands (mobile) */
@media (max-width: 680px){
  .hero{ gap: 14px; }
  .hero-logo{ height: 90px !important; }           /* avant ~72px */
  .hero-logo-second{ height: 90px !important; }    /* le 2e logo */
  .hero h1{ font-size: 28px; line-height: 1.2; margin: 0; }
}

/* Un petit boost aussi sur écrans moyens */
@media (min-width: 681px) and (max-width: 1024px){
  .hero-logo, .hero-logo-second{ height: 88px !important; }
  .hero h1{ font-size: 30px; }
}

/* --- Boost mobile: hero + nav + bannière --- */
@media (max-width: 768px){
  .hero-content{ gap:16px; }
  .hero-content .hero-logo{ height:100px !important; }   /* logo gauche */
  .hero-logo-second{ height:100px !important; }          /* logo droit si présent */
  .hero-content h1{ font-size:30px; line-height:1.2; margin:0; }

  .nav{ gap: 10px 12px; }
  .nav a{
    display:inline-block;
    font-size:16px;
    padding:10px 12px;
    border-radius:10px;
  }
  .brand{ font-size:24px; }

  .banner .marquee{
    font-size:18px;
    padding:14px 18px;
    line-height:1.5;
  }
}

/* ultra-petits écrans: évite que ça déborde */
@media (max-width: 360px){
  .hero-content .hero-logo,
  .hero-logo-second{ height:88px !important; }
  .hero-content h1{ font-size:28px; }
}

/* Petit bouton icône (croix) */
.btn.icon {
  padding: 6px 10px;
  font-weight: 700;
  line-height: 1;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Banner plus grande (desktop + mobile) */
.banner { margin: 16px 0; }
.banner .marquee {
  font-size: 20px;      /* ↑ taille du texte */
  padding: 16px 20px;   /* ↑ hauteur/épaisseur */
  line-height: 1.6;
}

/* Un peu plus grand encore sur mobile */
@media (max-width: 680px){
  .banner .marquee{
    font-size: 22px;
    padding: 18px 22px;
  }
}

/* Bandeau photo bas de page */
.bg-photo{
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin-top: 16px;
}
.bg-photo img{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;          /* plein, sans bandes */
  object-position: center 35%;/* focus un peu plus haut, ajuste 25–45% si besoin */
  z-index: 0;
}

.bg-photo-overlay{
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,.12), rgba(249,250,251,.86));
  z-index: 1;
}
.bg-photo .hero-content{
  position: relative;
  z-index: 2;
  padding: 16px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.bg-photo-bottom{ height: 300px; }        /* ajuste 260–360px si besoin */

@media (max-width: 640px){
  .bg-photo-bottom{ height: 220px; }
}

@media (max-width: 680px){
  .bg-photo img{
    object-fit: contain;
    background:#000; /* ou #fff */
  }
}

/* --- Bandeau photos défilantes (bas de page) --- */
.marquee-photos{
  --h: 160px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin-top: 16px;
  background: #fff;
}
.marquee-photos .marquee-track{
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--h);
  animation: slide-left 45s linear infinite;
  will-change: transform;
}
.marquee-photos img{
  height: 100%;
  width: auto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.marquee-photos::before,
.marquee-photos::after{
  content:"";
  position: absolute; top: 0; bottom: 0; width: 48px; pointer-events: none;
  z-index: 2;
}
.marquee-photos::before{
  left: 0;
  background: linear-gradient(to right, #fff, rgba(255,255,255,0));
}
.marquee-photos::after{
  right: 0;
  background: linear-gradient(to left, #fff, rgba(255,255,255,0));
}
@keyframes slide-left{
  from{ transform: translateX(0); }
  to{   transform: translateX(-50%); }
}
@media (max-width: 680px){
  .marquee-photos{ --h: 130px; }
  .marquee-photos .marquee-track{ animation-duration: 10s; }
}

/* moins de zoom = moins recadrée */
.bg-hero-yt iframe{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 110vw;        /* avant 120vw */
  height: 61.875vw;    /* 110 * 9/16 (avant 67.5vw) */
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  border: 0;
  display: block;
}
@media (max-width: 640px){
  .bg-hero-yt iframe{
    width: 180vw;      /* avant 200vw */
    height: 101.25vw;  /* 180 * 9/16 (avant 112.5vw) */
  }
}


/* === HARMONIE MOBILE (≤ 680px) === */
@media (max-width: 680px){

  /* Typo & rythme */
  html { font-size: 16px; }                /* base lisible */
  body { line-height: 1.5; }

  /* Titres clés */
  .hero-content h1 { font-size: 28px; margin: 0; }
  h2 { font-size: 20px; margin: 12px 0 8px; }
  h3 { font-size: 18px; margin: 10px 0 6px; }

  /* Logos du hero */
  .hero-content { gap: 14px; }
  .hero-content .hero-logo,
  .hero-logo-second { height: 90px !important; }

  /* Nav (onglets du haut) */
  .nav { gap: 8px 10px; }
  .nav a {
    display: inline-block;
    font-size: 15px;
    padding: 8px 10px;
    border-radius: 10px;
  }
  .brand { font-size: 22px; }

  /* Bannière (marquee) */
  .banner .marquee {
    font-size: 18px;
    padding: 12px 14px;
  }

  /* Cartes & sections */
  .card { border-radius: 12px; padding: 14px; }

  /* Tableaux (classements / chronos) */
  .table th, .table td { padding: 8px; font-size: 14px; }
  .badge { font-size: 12px; padding: 3px 8px; }

  /* Boutons */
  .btn { padding: 10px 14px; border-radius: 10px; font-size: 15px; }
  .btn.icon { width: 34px; height: 34px; padding: 0; }

  /* Hero vidéo / overlay (évite l’effet trop sombre sur petit écran) */
  .bg-hero { height: 300px; }
  .bg-hero-yt iframe { width: 180vw; height: 101.25vw; } /* moins de zoom */
  .bg-hero-overlay { background: linear-gradient(to bottom, rgba(255,255,255,.10), rgba(249,250,251,.90)); }

  /* Galerie défilante du bas */
  .marquee-photos { --h: 130px; }
  .marquee-photos .marquee-track { animation-duration: 20s; } /* vitesse modérée */

  /* Bandeau photo (si encore utilisé quelque part) */
  .bg-photo-bottom { height: 220px; }
}

.badge.superseded {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.marquee {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.marquee__track {
  display: inline-block;
  will-change: transform;
  animation: marquee-scroll var(--marquee-duration, 30s) linear infinite;
  /* (Option D) pas de padding-left ici */
}

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  /* Avec 3 copies du texte, on décale d’un “bloc” = 1/3 de la largeur totale */
  100% { transform: translateX(-33.333%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; transform: none; }
}

/* --- Bandeau d'annonce (haut) : défile & pause au centre --- */
.banner .marquee {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  padding: 6px 0;            /* un peu d'air vertical */
  /* léger fondu sur les bords pour entrées/sorties douces */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}

.banner .marquee__track {
  display: inline-block;
  will-change: transform;
  /* neutralise l'ancienne animation du bandeau du haut seulement */
  animation: none !important;
  transform: translateX(0);
}

@media (max-width: 600px) {
  .banner .marquee {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent);
    mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .banner .marquee__track { transform: none !important; }
}

/* --- Taille confort pour le bandeau d'annonce (haut) --- */
:root {
  /* ajuste ces 2 valeurs pour jouer sur la taille du bandeau */
  --banner-font-size: clamp(15px, 1.8vw, 20px);
  --banner-padding-y: 10px; /* ex : 12px ou 14px si tu veux plus haut */
}

.banner .marquee {
  padding: var(--banner-padding-y) 0;
  min-height: calc(var(--banner-font-size) * 1.6 + var(--banner-padding-y) * 2);
}

.banner .marquee__track {
  font-size: var(--banner-font-size);
  line-height: 1.6; /* évite l'effet “écrasé” */
}

/* Optionnel : un peu plus de fondu sur les bords si le bandeau grandit */
@media (min-width: 601px) {
  .banner .marquee {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent);
  }
}

/* Mobile : garde une hauteur agréable sans écraser le texte */
@media (max-width: 600px) {
  :root {
    --banner-font-size: clamp(14px, 4vw, 18px);
    --banner-padding-y: 8px;
  }
}

/* Badges statut — couleurs */
.badge.pending {            /* "En attente" → jaune */
  background: #FFD54F;
  color: #3b2f00;
}

/* Uniformiser la hauteur des encarts réseaux */
.networks-grid .netw {
  height: 150px;             /* hauteur standard */
  min-width: 150px;
  box-sizing: border-box;
}

/* --- Partenaire principal : Lou Éthève Maroquinerie --- */
.partners-grid .partner[title="Sellerie Lou Ethève"] {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  width: 220px;
  height: 220px;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.partners-grid .partner[title="Sellerie Lou Ethève"] img {
  max-height: 140px;
  width: auto;
  object-fit: contain;
  transition: transform .15s ease;
}

.partners-grid .partner[title="Sellerie Lou Ethève"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.partners-grid .partner[title="Sellerie Lou Ethève"]:hover img {
  transform: scale(1.08);
}


