/** ADD YOUR AWESOME CODES HERE **/

/* =========================================================
   MENU – underline élégant (hover + actif)
   ========================================================= */

body.politics_version .header_style_01 .navbar-nav > li > a{
  position: relative;
  display: inline-block;
}

body.politics_version .header_style_01 .navbar-nav > li > a::before{
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 3px;
  height: 2px;
  background: #075db4;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}

body.politics_version .header_style_01 .navbar-nav > li > a:hover::before,
body.politics_version .header_style_01 .navbar-nav > li.active > a::before{
  transform: scaleX(1);
}


/* =========================================================
   BRANDING – bannière dans la navbar
   ========================================================= */

body.politics_version .header_style_01 .navbar-brand img{
  height: 72px;
  width: auto;
}

@media (max-width: 991px){
  body.politics_version .header_style_01 .navbar-brand img{
    height: 48px;
  }
}


/* =========================================================
   LOGO ROND – section (effet loupe)
   ========================================================= */

.epv-section-badge{
  display: flex;
  justify-content: center;
  margin: 16px 0 8px;
}

.epv-logo-round{
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid rgba(226,232,240,.95);
  box-shadow: 0 12px 28px rgba(2,6,23,.14);
  object-fit: contain;
  padding: 10px;
  transition: transform .35s ease, box-shadow .35s ease;
}

.epv-logo-round:hover{
  transform: scale(1.12);
  box-shadow: 0 18px 40px rgba(2,6,23,.25);
}

@media (max-width: 767px){
  .epv-logo-round{
    width: 110px;
    height: 110px;
    padding: 8px;
  }
}


/* =========================================================
   SECTIONS – espacement Actualités
   ========================================================= */

#event h2,
.section-title h2{
  margin-bottom: 18px;
}

#event .row{
  margin-top: 0;
}


/* =========================================================
   MOBILE – bannière + burger alignés
   ========================================================= */

@media (max-width: 767px){
  body.politics_version .header_style_01 .navbar-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  body.politics_version .header_style_01 .navbar-brand{
    flex: 1 1 auto;
    padding: 6px 0 !important;
    margin-right: 8px !important;
  }

  body.politics_version .header_style_01 .navbar-brand img{
    height: 40px !important;
    max-width: 65vw;
  }

  body.politics_version .header_style_01 .navbar-toggle{
    margin: 0 !important;
  }
}


/* =========================================================
   BOUTONS
   ========================================================= */

body.politics_version .grd1{
  background: #e2874e !important;
}

body.politics_version .grd1:hover{
  background: #075db4 !important;
}


/* =========================================================
   FOOTER
   ========================================================= */

body.politics_version .copyrights{
  background: linear-gradient(90deg, #c3dca3, #91bde0) !important;
}

body.politics_version .copyrights a{
  color: #e2874e !important;
}

body.politics_version .copyrights a:hover{
  color: #075db4 !important;
}


/* =========================================================
   PRELOADER – LOGO + ANNEAU (ROTATION COMPLÈTE GARANTIE)
   ========================================================= */

#preloader.epv-preloader{
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Logo central (fixe) */
#preloader.epv-preloader .epv-preloader-logo{
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid rgba(226,232,240,.95);
  box-shadow: 0 18px 44px rgba(2,6,23,.22);
  object-fit: contain;
  padding: 14px;
  z-index: 2;
}

/* Anneau de chargement – seul élément qui tourne */
#preloader.epv-preloader::after{
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 999px;
  border: 4px solid rgba(226,232,240,.9);
  border-top-color: #075db4;
  border-right-color: #e2874e;

  animation: epvSpin360 1.6s linear infinite;
  will-change: transform;
}

/* Rotation 100% fiable */
@keyframes epvSpin360{
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@media (max-width: 767px){
  #preloader.epv-preloader .epv-preloader-logo{
    width: 120px;
    height: 120px;
    padding: 10px;
  }
  #preloader.epv-preloader::after{
    width: 150px;
    height: 150px;
    border-width: 3px;
  }
}

/* Cache définitif du preloader */
#preloader.is-hidden{
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}


/* =========================================================
   QUESTIONNAIRE – réalignement radios / checkboxes
   ========================================================= */

.epv-avis .epv-q .radio,
.epv-avis .epv-q .checkbox{
  padding-left: 26px;   /* espace confortable depuis le bord */
  margin-left: 0;
}

.epv-avis .epv-q input[type="radio"],
.epv-avis .epv-q input[type="checkbox"]{
  margin-left: -18px;   /* repositionne l’input correctement */
}

/* =========================================================
   QUESTIONNAIRE – correctif mobile (radio/checkbox sur la bordure)
   ========================================================= */
@media (max-width: 767px){

  /* On annule les décalages Bootstrap */
  .epv-avis .epv-q .radio,
  .epv-avis .epv-q .checkbox{
    margin-left: 0 !important;
    padding-left: 34px !important;   /* + large sur mobile */
  }

  .epv-avis .epv-q input[type="radio"],
  .epv-avis .epv-q input[type="checkbox"]{
    margin-left: 0 !important;       /* stop le “tirage” sur la bordure */
    position: relative;
    left: -22px;                     /* reposition propre */
    top: 2px;
  }
}


/* =========================================================
   CONTACT – cartes + mise en page
   ========================================================= */
.epv-contact{ background:#fff !important; }

.epv-contact .epv-card{
  background:#fff;
  border:1px solid rgba(226,232,240,.95);
  border-radius:16px;
  box-shadow:0 14px 34px rgba(2,6,23,.10);
  padding:22px 18px;
}

.epv-contact .epv-card h4{
  margin:0 0 14px;
  font-weight:700;
}

.epv-contact .epv-muted{
  color:#64748b;
  font-size:13px;
}

.epv-contact .epv-contact-item{
  display:flex;
  gap:12px;
  padding:12px 0;
  border-bottom:1px solid rgba(226,232,240,.75);
}
.epv-contact .epv-contact-item:last-child{ border-bottom:none; }

.epv-contact .epv-ico{
  width:42px;
  height:42px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(7,93,180,.10);
  color:#075db4;
  flex:0 0 auto;
}

.epv-contact .epv-contact-text a{
  font-weight:600;
  color:#0f172a;
}
.epv-contact .epv-label{
  font-size:12px;
  color:#64748b;
  margin-bottom:2px;
}

.epv-contact .epv-hours{
  list-style:none;
  padding:0;
  margin:10px 0 0;
}
.epv-contact .epv-hours li{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:10px 0;
  border-bottom:1px solid rgba(226,232,240,.75);
}
.epv-contact .epv-hours li:last-child{ border-bottom:none; }

.epv-contact .epv-cta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}

.epv-contact .epv-map{
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(226,232,240,.95);
  margin-top:12px;
}
.epv-contact .epv-map iframe{
  width:100%;
  height:320px;
  border:0;
  display:block;
}

.epv-contact .epv-note{
  margin-top:10px;
  color:#64748b;
  font-size:12px;
}

@media (max-width:767px){
  .epv-contact .epv-map iframe{ height:260px; }
}

/* =========================================================
   CONTACT – gestion des textes longs (email, téléphone)
   ========================================================= */

.epv-contact-text a{
  word-break: break-word;
  overflow-wrap: anywhere;
  display: inline-block;
  max-width: 100%;
}


/* =========================================================
   CONTACT – anti-débordement email sur mobile
   ========================================================= */

.epv-contact .epv-contact-text{
  min-width: 0 !important;
}

.epv-contact .epv-contact-text a{
  display: inline-block;
  max-width: 100% !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

.epv-contact .epv-contact-item{
  min-width: 0 !important;
}

/* =========================================================
   CONTACT – mobile : icône au-dessus, texte en dessous
   ========================================================= */
@media (max-width: 767px){

  .epv-contact .epv-contact-item{
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .epv-contact .epv-ico{
    margin-bottom: 6px;
  }

  .epv-contact .epv-contact-text{
    width: 100%;
    min-width: 0;
  }

  .epv-contact .epv-contact-text a{
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    text-align: center;
  }
}

/* =========================================================
   CONTACT – appel à contribution (Donner son avis)
   ========================================================= */

.epv-avis-cta{
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(7,93,180,.06),
    rgba(226,135,78,.08)
  );
  border: 1px dashed rgba(7,93,180,.35);
}

.epv-avis-cta h4{
  font-weight: 800;
  margin-bottom: 8px;
}

.epv-avis-cta .btn{
  margin-top: 10px;
}

/* =========================================================
   FOOTER – liens légaux à droite
   ========================================================= */

.footer-distributed{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-right{
  text-align: right;
}

.footer-legal{
  font-size: 13px;
  opacity: 0.75;
}

.footer-legal a{
  color: inherit;
  text-decoration: none;
}

.footer-legal a:hover{
  text-decoration: underline;
}

@media (max-width: 767px){
  .footer-left,
  .footer-right{
    width: 100%;
    text-align: center;
    margin-top: 6px;
  }
}

/* =========================================================
   MOBILE – accueil : supprimer le grand “blanc” et éviter chevauchement
   (cause : #main-banner conserve une hauteur sur mobile)
   ========================================================= */
@media (max-width: 767px){

  /* 1) Sur mobile on masque le slider/bannière de tête qui crée un énorme vide */
  #main-banner,
  #main-banner.banner{
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* 2) On remet un démarrage propre de la section actus (juste sous la navbar) */
  #event.section{
    padding-top: clamp(72px, 14vh, 120px) !important;
    padding-bottom: 35px !important;
  }

  /* 3) Logo rond : marge équilibrée (pas collé, pas trop bas) */
  #event .epv-section-badge{
    margin-top: 6px !important;
    margin-bottom: 10px !important;
  }

  /* 4) Titre : pas de “vide” au-dessus */
  #event .section-title{
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}
