/*
 * vcvp.css — Surcharges VCVP sur le thème Escape Velocity
 * On ne touche PAS à main.css — on surcharge uniquement ici.
 * PHP 8.5 / WordPress ready
 */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600&family=Source+Sans+3:wght@300;400;600&display=swap');

/* ── Typo body ── */
body {
  font-family: 'Source Sans 3', sans-serif;
}


/* ════════════════════════════════════════
   NAV STICKY — Technique gabaritsV3 / Singer
   Clone JS du #nav injecté en fixed sur le body.
   ID : #nav-sticky-clone
   Classe .show ajoutée par JS au scroll.
   Compatible tous navigateurs. Zéro tremblement.
   ════════════════════════════════════════ */

/* Clone fixe — invisible par défaut */
#nav-sticky-clone {
  position: fixed;
  top: -50px; /* Hors écran par défaut */
  left: 0;
  width: 100%;
  height: 50px;
  z-index: 2000;
  background: rgba(34, 40, 53, 0.97);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: top 0.25s ease;
}

/* Visible au scroll */
#nav-sticky-clone.show {
  top: 0;
}

/* Liens du clone */
#nav-sticky-clone ul {
  display: inline-flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0 1em;
  height: 50px;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

#nav-sticky-clone ul li {
  display: inline-block;
  padding: 0;
}

#nav-sticky-clone ul li a,
#nav-sticky-clone ul li span {
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0 14px;
  font-size: 14px;
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

#nav-sticky-clone ul li a:hover { color: #fff; }

#nav-sticky-clone ul li.current > a {
  color: #e97770;
}

/* Pas de compensation padding-top :
   le clone est en position fixed, il ne prend pas de place
   dans le flux — ajouter du padding changerait le threshold
   et créerait un ping-pong au point de bascule. */

/* Désactivé sur mobile — burger menu actif */
@media screen and (max-width: 736px) {
  #nav-sticky-clone { display: none !important; }
}

/* ── NAV : compact, fond gris sombre, actif souligné ── */

/* Fond solide sur le ul */
#nav > ul {
  background: rgba(34, 40, 53, 0.95);
  border-radius: 10px;
  box-shadow: none;
  padding: 8px 8px;
}

/* Liens compacts : height 40px, centrage vertical */
#nav > ul > li > a,
#nav > ul > li > span {
  font-size: 14px !important;
  letter-spacing: 0.12em;
  height: 40px !important;
  line-height: 40px !important;
  color: rgba(255,255,255,0.8) !important;
  padding: 0 8px;
}

#nav > ul > li > a:hover,
#nav > ul > li > span:hover {
  color: #fff !important;
}

/* Onglet actif : souligné rouge */
#nav > ul > li.current > a,
#nav > ul > li.current > span {
  color: #e97770 !important;
  /*border-bottom: 2px solid #e97770;*/
}
#footer section h3.icon::before {
  padding-right: 5px;
}
/* ── Footer liens 13px ── */
#copyright ul {
  margin-bottom: -10px !important;
}

#copyright ul li,
#copyright ul li a {
  font-size: 13px;
}

/* Copyright centré avec séparateur */
#copyright {
  text-align: center;
  padding-top: 6px;
  margin-top: 35px;
  border-top: none !important;
}

/* ════════════════════════════════════════
   BANNIÈRE — slideshow
   ════════════════════════════════════════ */
#header {
  overflow: hidden;
  padding: 0;
}

#banner-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#banner-slides .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

#banner-slides .slide.active {
  opacity: 1;
}

/* Hauteur bannière homepage fixée à 330px */
.homepage #header {
  height: 330px !important;
}

/* Logo image (remplace le h1 texte EV) */
#logo {
  position: relative;
  z-index: 3;
  top: 0;
}

#logo a {
  display: inline-block;
}

#site-logo {
  height: 110px;
  width: auto;
  filter: drop-shadow(0 2px 16px rgba(0,0,0,0.55));
}

/* Dots supprimés — slideshow silencieux */
#banner-dots { display: none; }

/* ════════════════════════════════════════
   CHIFFRES CLÉS — #stats (wrapper style1)
   Le .title EV est conservé tel quel
   ════════════════════════════════════════ */
/* Padding réduit : 15px au lieu de 6em/9em du wrapper EV */
#stats.wrapper { padding: 1.5em 0 2.5em 0; }

#stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0 0 22px;
}

.stat-item {
  text-align: center;
  padding: 0.5em 1em;
  border-right: 1px solid rgba(255,255,255,0.2);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 40px;
  font-weight: 600;
  color: #fff;
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.75em;
  color: rgba(255,255,255,0.78);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.4em;
  line-height: 1.3;
}

/* ════════════════════════════════════════
   ACTUALITÉS & CALENDRIER — #actualites
   ════════════════════════════════════════ */
/* Padding section actualités */
#actualites.wrapper { padding: 49px 0 45px 0; }
#actualites.wrapper .container {
  border-radius: 5px;
  border-color: #FFF !important;
}

/* Reset margin section/article globaux dans main */
#actualites section,
#actualites article { margin: 0 0 4px 0; }

#actu-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  border: 1px solid #fff;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 1em;
}

/* ── Widgets (têtes de colonne rouge) ── */
.widget-head {
  font-family: 'Oswald', sans-serif;
  font-size: 0.72em;
  font-weight: 600;
  color: #fff;
  background: #e97770;
  padding: 7px 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 4px;
  white-space: nowrap;
  gap: 8px;
  height: unset;
  max-height: 45px;
}

.widget-head span {
  font-size: 0.9em;
  font-weight: 400;
  opacity: 0.82;
}

/* ── Colonne calendrier ── */
#cal-col {
  padding: 18px 10px;
  border-right: 0 none;
  background: #fff;
}

/* Prochaine réunion */
.next-race {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

.race-date-block {
  text-align: center;
  min-width: 38px;
  flex-shrink: 0;
}

.race-day-num, .race-month {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 25px;
  font-weight: 600;
  color: #e97770;
  line-height: 1.3;
}

.race-month {
  font-size: 15px;
  text-transform: uppercase;
  line-height: 1.3;
}

.race-details { flex: 1; }

.race-name {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95em;
  font-weight: 500;
  color: #484d55;
  margin: 0 0 2px;
}

.race-time {
  font-size: 0.78em;
  color: #919499;
  margin: 0 0 6px;
}

.race-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.race-tag {
  font-size: 0.68em;
  padding: 2px 5px;
  background: #fdf0ef;
  color: #e97770;
  border-radius: 3px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Mini calendrier navigable */
.cal-nav-head {
  justify-content: space-between;
  white-space: nowrap;
  min-height: 32px;
  align-items: center;
}

.cal-nav-head button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1.1em;
  padding: 0 8px;
  line-height: 1;
  opacity: 0.85;
  flex-shrink: 0;
  width: 5px !important;
  min-width: unset;
}

.cal-nav-head button:hover { opacity: 1; }

#cal-month-label {
  flex: 1;
  text-align: center;
  white-space: nowrap;
  font-size: 1em;
}

/* Encadré blanc autour du mini-calendrier (comme next-race) */
.mini-cal-wrap {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  padding: 10px 8px 8px;
  margin-bottom: 10px;
}

#mini-cal {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78em;
}

#mini-cal th {
  color: #919499;
  text-align: center;
  padding: 3px 2px;
  font-weight: 400;
}

#mini-cal td {
  text-align: center;
  padding: 1px 1px;
  color: #484d55;
  border-radius: 3px;
  cursor: default;
}

#mini-cal td.race-day {
  background: #fdf0ef;
  color: #e97770;
  font-weight: 600;
  cursor: pointer;
}

#mini-cal td {
  position: relative;
}
#mini-cal td.today {
  background: transparent !important;
  color: #fff !important;
  font-weight: 600;
  position: relative;
  z-index: 1;
}
#mini-cal td.today::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e97770;
  z-index: -1;
}

#mini-cal td.empty {
  color: transparent;
}

.cal-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.72em;
  color: #919499;
}

.cal-legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: #fdf0ef;
  border: 1px solid #e97770;
  flex-shrink: 0;
}

/* ── Colonne actualités ── */
#news-col {
  padding: 18px 16px;
  background: #fff;
}

#news-col .widget-head{
  background-color: #fff;
  color: #e97770;
  font-weight: 700;
  letter-spacing: 0.25em;
  font-size: 0.9em;
}

.news-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.news-item:last-of-type {
  border-bottom: none;
}

.news-thumb {
  width: 300px;
  height: 180px;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.news-body { flex: 1; min-width: 0; }

.news-meta {
  font-size: 0.72em;
  color: #919499;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 3px;
}

.news-title {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95em;
  font-weight: 500;
  margin: 0 0 4px;
  line-height: 1.3;
}

.news-title a {
  color: #e97770;
  text-decoration: none;
}

.news-title a:hover {
  color: #d96760;
}

.news-excerpt {
  font-size: 0.8em;
  color: #919499;
  line-height: 1.5;
  margin: 0;
}

.news-all-link {
  text-align: center;
  font-size: 0.82em;
  margin-top: 8px;
}

.news-all-link a {
  color: #e97770;
}

/* ════════════════════════════════════════
   BLOCS ACF PLACEHOLDER — #acf-blocks
   ════════════════════════════════════════ */
#acf-placeholder {
  text-align: center;
  padding: 1em 0 2em;
}

.acf-label {
  font-size: 0.82em;
  color: #919499;
  font-style: italic;
  margin-bottom: 14px;
}

.acf-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.acf-pill {
  font-size: 0.8em;
  padding: 6px 14px;
  background: #fff;
  border: 1.5px dashed #ccc;
  border-radius: 4px;
  color: #919499;
}

/* ════════════════════════════════════════
   LE CLUB — #le-club
   ════════════════════════════════════════ */
.club-card {
  margin-bottom: 2em;
}

.club-img {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1em;
}

.club-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.club-card:hover .club-img img {
  transform: scale(1.03);
}

#le-club h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1em;
  font-weight: 500;
  color: #484d55;
  margin-bottom: 0.5em;
}

#le-club p {
  font-size: 0.9em;
  color: #919499;
  line-height: 1.7;
}

#le-club p strong {
  color: #e97770;
  font-weight: 600;
}

/* ════════════════════════════════════════
   GALERIE À L'AFFICHE — #a-laffiche
   ════════════════════════════════════════ */
#gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.gallery-cell {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 4px;
  overflow: hidden;
}

.gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-cell:hover img {
  transform: scale(1.05);
}

.gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.52);
  color: rgba(255,255,255,0.88);
  font-size: 0.72em;
  padding: 5px 8px;
}

.gallery-flickr {
  text-align: center;
  font-size: 0.85em;
  padding-bottom: 1em;
}

.gallery-flickr a {
  color: #e97770;
}


/* ════════════════════════════════════════
   FOOTER — compact, 4 blocs côte à côte
   ════════════════════════════════════════ */
#footer.wrapper { padding-top: 2.5em; padding-bottom: 1.5em; }

/* Le formulaire de contact EV original est conservé dans le HTML */
/* Les styles de formulaire #footer form sont déjà dans main.css  */

/* ════════════════════════════════════════
   RESPONSIVE DESKTOP large
   ════════════════════════════════════════ */
@media screen and (max-width: 1680px) {
  .row {
    margin-top: -47px;
    margin-left: -50px;
  }
}

/* ════════════════════════════════════════
   RESPONSIVE TABLETTE — 980px
   ════════════════════════════════════════ */
@media screen and (max-width: 980px) {
  #stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }
  #actu-grid {
    grid-template-columns: 1fr;
  }
  #cal-col {
    border-right: none;
    border-bottom: 1px solid #e8e8e8;
  }
  #gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ════════════════════════════════════════
   RESPONSIVE MOBILE — 736px (breakpoint EV)
   ════════════════════════════════════════ */
@media screen and (max-width: 736px) {

  /* Sticky clone désactivé sur mobile — burger menu actif */
  #nav-sticky-clone { display: none !important; }
  body.nav-sticky-active { padding-top: 0 !important; }

  /* Logo plus petit */
  #site-logo {
    height: 70px;
  }

  /* Bannière moins haute */
  .homepage #header {
    height: 240px !important;
  }

  /* Stats 2x2 */
  #stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-num {
    font-size: 28px;
  }

  /* Actualités : une colonne */
  #actu-grid {
    grid-template-columns: 1fr;
  }
  #cal-col {
    border-right: none;
    border-bottom: 1px solid #e8e8e8;
  }

  /* News : cacher images sur mobile */
  .news-thumb {
    display: none;
  }
  .news-item {
    display: block;
    padding: 10px 0;
  }

  /* Le Club : fix débordement gauche */
  #acf-blocks .container,
  #acf-blocks .row {
    margin-left: 0 !important;
    padding-left: 16px;
    padding-right: 16px;
  }
  #acf-blocks .col-6 {
   /* padding-left: 0 !important;*/
  }
  .row.aln-center {
    margin :0 !important;
  }

  .club-card {
    margin: 0;
    padding: 0;
  }
  .club-card p {
    text-align: justify;
  }
  /* Footer blocs : 2 colonnes, sans icônes FontAwesome */
  #footer .feature-list.small .row {
    margin-left: 0 !important;
  }
  #footer .footer-bloc h3,
  #footer section h3 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    /* Cacher l'icône FA, garder le texte */
    padding-left: 0 !important;
  }
  #footer .footer-bloc h3::before,
  #footer section h3.icon::before {
    display: none !important;
  }
  #footer .col-3 {
    width: 50% !important;
    margin-bottom: 1em;
  }
  #footer p {
    font-size: 13px;
    line-height: 1.5;
  }

  /* Galerie : 1 colonne */
  #gallery-grid {
    grid-template-columns: 1fr;
  }
}
