@font-face {
  font-family: "Telegraf";
  src: url("../fonts/telegraf/Telegraf-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Telegraf";
  src: url("../fonts/telegraf/Telegraf-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Migra";
  src: url("../fonts/migra/Migra-Extralight.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Minimum : variables + application des fontes */
:root{
  --font-title: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-body: "Telegraf", "Lato", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-accent: "Migra", "Lato", serif;
}
html{
  scroll-behavior: smooth;
}
html, body{
  overflow-x: hidden;
}
body{ font-family: var(--font-body); }
h1,h2,h3,h4,h5,h6,.font-title{ font-family: var(--font-title); }
.font-accent{ font-family: var(--font-accent); }
/****************************Navigation****************/
nav.navbar {
  background-color: #f70059;
  color: white;
}
nav.navbar a{
  color: white;
  font-weight: 600;
}
.btnrs-header{
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: thin solid white;
  background-color: #f70059;
  font-size: 18px;
  padding: 0;
}
.btn-contact-header{
  border:thin solid white;
  background-color: #f70059;
}
/************************Content general**************/
.padding-bloc{
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.bg-grey{
  background-color: #eef2f1;
}
.bg-grey2{
  background-color: #def0ec;
}
.bg-white{
  background-color: white;
}
.bg-white-head{
  /*background-color: white;*/
  background:
    radial-gradient(950px 520px at 18% 18%, rgba(247,0,89,.18), transparent 60%),
    radial-gradient(780px 460px at 88% 8%, rgba(26,123,108,.16), transparent 60%),
    linear-gradient(180deg, #ffffff, #f4f7f6);
    /*border-bottom: 1px solid rgba(0,0,0,.06);*/
}
.bloc_vert_turquoise{
  background-color: #1a7b6c;
  color: white;
}
.bloc_vert_turquoise article{
  color: #0f453c;
}
.btnprogramme{
  background-color: #1a7b6c;
  color: #0f453c;
  border: 2px solid #0f453c;
  transition: .3s;
}
a.btn.btnprogramme:hover{
  background-color: white ;
  color: #0f453c;
  border: 2px solid #0f453c;
}
a.btn.btn-plus-sujet{
  background-color: #0f453c;
  color: white;
  border: 2px solid #0f453c;
  transition: .3s;
  text-transform: uppercase;
  padding: 15px 25px;
}
a.btn.btn-plus-sujet:hover{
  background-color: white ;
  color: #0f453c;
}
.btn.btn-details{
  background-color:#0f453c;
  color:#fff;
  border:2px solid #0f453c;
  transition:.3s;
}

.btn.btn-details:hover{
  background:#fff;
  color:#0f453c;
  border-color:#0f453c;
}

.bloc_magenta{
  background-color: #f70059;
  color: white;
}
.bloc_magenta .table>:not(caption)>*>*{
  background-color: #9c0239!important;
  color: white;
}
.bloc_magenta .table .btn{
  background-color: white;
  color: #9c0239;
  border:2px solid white;
}
.bloc_magenta .table .btn:hover{
  background-color: #9c0239;
  color: white;
}
.btn_principal{
  background-color: #1a7b6c;
  border: 2px solid #1a7b6c;
  transition: .3s;
  font-weight: 600;
}
.btn_principal:hover{
  background-color: white;
  color: #1a7b6c;
  border: 2px solid #1a7b6c;
}
.btn_agenda{
  border: 2px solid #e52687;
  color: #e52687;
  transition: .3s;
  font-weight: 600;
}
.btn_agenda:hover{
  border: 2px solid white;
  color: white;
  transition: .3s;
  font-weight: 600;
  background-color: #f70059;
}
#equipe h3{
  color: #1a7b6c;
  font-weight: 600;
}
#top{
  position: relative;
  background-image: url("../img/Gauche-Unie-Saint-Lo-Municipale2026-couverture-2.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 50px;
}
.bloc_gris{
  background-color: #f4f4f4;
}
span.bluefont{
    color: #1a7b6c;
}
/* Portrait 3:4 */
.ratio-portrait {
    --bs-aspect-ratio: 145.33%; 
    /* 4/3 = 1.333 → hauteur plus grande que largeur */
}
/* Overlay couleur */
#top::before{
  content: "";
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  background-color: rgb(218 218 218 / 49%);
  z-index: 0;
}
#equipe article{
  background-color: white;
}
/* Le contenu doit passer au-dessus */
#top > .container{
  position: relative;
  z-index: 1;
}
.titlehero{

}
span.seb{
    font-weight: 700;
}
.titlehero span.font-accent{
  color: #e52687;
}
.keywords{
  background-color: #ffffffad;
}
/* Masquer le titre "Follow us on Instagram" du feed Elfsight */
.eapps-instagram-feed-title{
    display: none !important;
}
.eapps-instagram-feed-header-inner{
  margin: 0!important;
}
.btn-contact{
  background-color: #0f453c;
  color: white;
  border: 2px solid #0f453c;
  transition: .3s;
}
.btn-contact:hover{
  background-color: white ;
  border: 2px solid #0f453c;
  color: #0f453c;
}
.citation-equipe{
  position: relative;           
  background-color: white;
  padding: 40px;
  border-radius: 20px;
  color: #1a7b6c;
  font-size: x-large;
}
.citation-text{
  font-family: var(--font-body);
    font-weight: 700;
}

/* Triangle "bulle BD" à gauche */
.citation-equipe::before{
  content: "";
  position: absolute;
  top: 50%;
  left: -14px;                  
  transform: translateY(-50%);
  width: 0;
  height: 0;

  /* Triangle CSS */
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-right: 14px solid #fff; 
}
/* auteur */
.citation-author{
  background-color: white;
  color: #7f7f7f;
  font-size: large;
}
@media (max-width: 991px){
  .citation-equipe::before,
  .citation-equipe::after{
    display: none;
  }
}
.modal .ratio iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.fond-sujets{
    background-color: #ffffffc4;
    padding: 50px 20px;
}
.page-sujet{
  position: relative;
  background-image: url("../img/municipale-saintLo-2026-3.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.page-equipe{
  position: relative;
  background-image: url("../img/municipale-saintLo-2026-gaucheunie.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
tr.passed td{
    color: #9e9e9e !important;
    background-color: #e8e8e8;
}
/* fallback mobile */
@media (max-width: 991px){
  .page-sujet{
    background-attachment: scroll;
  }
}
/************************Footer*********************/
footer{
  background-color: #f70059;
  color: white;
}
footer a{
  color: white;
  text-decoration: none;
}
/*********************Back to top****************/
#backToTop{
  position: fixed;
  right: 31px;
  bottom: 90px;

  width: 44px;
  height: 44px;

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

  background-color: #f70059; /* à adapter à ta charte */
  color: #fff;

  border-radius: 50%;
  text-decoration: none;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;

  z-index: 999;
}

#backToTop:hover{
  color: #fff;
  background-color: #ab1e51; /* légère variation */
}

/* visible */
#backToTop.is-visible{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#backToTop:hover i{
  transform: translateY(-2px);
  transition: transform .2s ease;
}
/* ==============================
   Bannière cookies (consentement)
   - Bas-gauche, 10px
   - Noir semi-transparent, texte blanc
   - Masquée 24h après Acceptation / Refus
   ============================== */
.cookie-consent{
  position: fixed;
  left: 10px;
  bottom: 10px;
  width: min(400px, calc(100vw - 20px));
  background: rgba(0,0,0,.82);
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 14px 14px 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  z-index: 1200;
}

.cookie-consent__title{
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 6px;
}

.cookie-consent__text{
  font-size: 13px;
  line-height: 1.35;
  margin: 0;
  opacity: .92;
}

.cookie-consent__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.cookie-consent__btn{
  appearance: none;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.06);
  color: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.cookie-consent__btn:hover{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.35);
  transform: translateY(-1px);
}

.cookie-consent__btn:focus-visible{
  outline: 2px solid rgba(255,255,255,.7);
  outline-offset: 2px;
}

.cookie-consent__btn--accept{
  background: rgba(247,0,89,.85);
  border-color: rgba(247,0,89,.95);
}

.cookie-consent__btn--accept:hover{
  background: rgba(247,0,89,1);
}

.cookie-consent__link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.cookie-consent.is-hidden{
  display: none;
}

/* ===============================
   MOBILE (grands téléphones et -)
   =============================== */
.navbar-toggler{
    border: 1px solid white!important;
    color: white!important;
}
.navbar-toggler-icon{
    color: white!important;
}
.navbar-toggler{
  border-color: rgba(255,255,255,0.5);
}

.navbar-toggler-icon{
  background-image: url("data:image/svg+xml;charset=utf8,\
%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E\
%3Cpath stroke='rgba(255,255,255,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E\
%3C/svg%3E");
}
@media screen and (min-width: 992px) {
  .btncontactnonebig{
    display: none!important;
  }
}
@media screen and (max-width: 991px) {
  #top img{
      display: none;
  }
  .noneresponsive{
    display: none!important;
  }
  li.nav-item{
    padding: 15px;
    border-bottom: 1px solid #ffffff52;
  }
  .rsresponsive{
    padding: 20px;
    text-align: center;
  }
  .navbar-collapse {
    text-align: center;
  }

  /* colonne centrée */
    #equipe .tete-liste .col-lg-4{
        display:flex;
        justify-content:center;
    }

    /* carte plus petite */
    #equipe .tete-liste article{
        width: 85%;          
        max-width: 335px;    
        text-align:center;  
    }

    /* image un peu réduite */
    #equipe .tete-liste .ratio{
        width: 80%;
        margin: 0 auto;
    }
      .rsresponsive{
    display:block !important;
  }

}
@media screen and (max-width: 600px) {

  #top{
      padding: 30px;
  }
}
@media (max-width: 575px){

    /* colonne centrée */
    #equipe .tete-liste .col-lg-4{
        display:flex;
        justify-content:center;
    }

    /* carte plus petite */
    #equipe .tete-liste article{
        width: 85%;          /* taille de la carte */
        max-width: 260px;    /* évite trop large */
        text-align:center;   /* texte centré */
    }

    /* image un peu réduite */
    #equipe .tete-liste .ratio{
        width: 80%;
        margin: 0 auto;
    }

}