/* ---- VARIABLES ---- */
:root {
  --rose: #b22253;
  --rose-clair: #d4456f;
  --rouge-candidats: #e90d0ddf;
  --rose-tres-clair: rgba(178, 34, 83, 0.2);
  --gris-fonce: #333;
  --gris: #666;
  --bg: #fafafa;
  /* Axe 1 - Vert */
  /* Axe 2 - Rouge */
  /* Axe 3 - Jaune orangé */
  /* Axe 4 - Rose */
  /* Axe 5 - Vert */
  /* Axe 6 - Violet */
  /* Axe 7 - Vert */
  /* Axe 8 - Violet */
  /* Axe 9 - Rouge */
  --axe1:#10b981;
  --axe2:#dc2626;
  --axe3:#f59e0b;
  --axe4:#b22253;
  --axe5:#10b981;
  --axe6:#8b5cf6;
  --axe7:#10b981;
  --axe8:#8b5cf6;
  --axe9:#dc2626;
  --font-main: 'Open Sans', Arial, sans-serif;
  --font-condensed: 'Barlow Condensed', sans-serif;

  --radius: 10px;
  --shadow: 0 4px 18px rgba(0,0,0,0.12);
  --transition: 0.3s ease;
  --sidebar-w: 280px;
}

/* Définition de l'animation clignotement */
@keyframes blink {
  0%, 100% { opacity: 1; }   /* visible */
  50%       { opacity: 0; }   /* invisible */
}

/* ---- RESET ---- */
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}


html {
  scroll-behavior: smooth;
}


body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--gris-fonce);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { 
  color: var(--rose); 
  text-decoration: none; 
  transition: var(--transition);
}


img { 
  max-width: 100%; 
  height: auto; 
/*  display: block; */
}


/* ---- LAYOUT CONTAINER ---- */
.site-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
}


/* ---- MOBILE TOP MENU ---- */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--rose);
  z-index: 1;
  box-shadow: var(--shadow);
}


.mobile-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  gap: 0.8rem;
}


.mobile-brand .avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid white;
}


.mobile-brand .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.mobile-brand h1 {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 1.2rem;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
}


.mobile-nav {
  background: rgba(255,255,255,0.95);
  display: flex;
  overflow-x: auto;
  border-top: 2px solid rgba(178,34,83,0.2);
}


.mobile-nav::-webkit-scrollbar {
  height: 3px;
}


.mobile-nav::-webkit-scrollbar-thumb {
  background: var(--rose);
}


.mobile-nav a {
  flex: 0 0 auto;
  padding: 0.8rem 1.2rem;
  font-family: var(--font-condensed);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--rose);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}


.mobile-nav a.active,
.mobile-nav a:hover {
  border-bottom-color: var(--rose);
  background: rgba(178,34,83,0.05);
}


/* ---- SIDEBAR ---- */
.sidebar {
  width: var(--sidebar-w);
  background: var(--rose);
  color: white;
  padding: 2rem 1.5rem;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
  z-index: 1000;
  display: flex;
  flex-direction: column;
}


.brand {
  text-align: center;
  margin-bottom: 2rem;
}


.brand .avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid white;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}


.brand .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.brand h1 {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
}


.brand p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.4;
}


nav.primary ul {
  list-style: none;
  padding: 0;
  margin: 0;
}


nav.primary li {
  margin: 0.5rem 0;
}


nav.primary a {
  display: block;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  font-family: var(--font-condensed);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: white;
  font-size: 1.05rem;
  transition: var(--transition);
}


nav.primary a:hover,
nav.primary a.active {
  background: rgba(255,255,255,0.2);
  padding-left: 1.2rem;
}


.encart {
  background: white;
  padding: 1rem;
  border-radius: var(--radius);
  margin-top: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}


.encart h3 {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
  color: var(--rose);
  font-family: var(--font-condensed);
  text-transform: uppercase;
}


.encart .logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}


.encart img.logo {
  max-width: 65px;
  height: auto;
}


.encart img.portrait {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--rose);
  object-fit: cover;
}


.encart p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--gris-fonce);
}


.socials {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex;
  gap: 0.8rem;
  justify-content: center;
}


.socials a {
  padding: 0.6rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 1.3rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}


.socials a:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.1);
}


/* ---- MAIN CONTENT ---- */
.content {
  flex: 1;
  margin-left: var(--sidebar-w);
  width: calc(100% - var(--sidebar-w));
}


main {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}


/* ---- PAGE HEADER ---- */
.page-header {
  background: white;
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  background: linear-gradient(135deg, #ffffff 0%, #fef5f8 100%);
}


.page-header h1 {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 2.8rem;
  color: var(--rose);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.page-header p {
  font-size: 1.15rem;
  color: var(--gris);
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.7;
}



/*---- Icones de video sur les pages candidats, programme et engagement ----*/
/*---- Le conteneur du svg de video ---- */
.video_icon  {
  display:inline;
  z-index: 1;
}

/* curseur « main » au survol */
.video_icon:hover {
  cursor: pointer;   
}

/* Taille de l'icone */
.video_icon svg {
  width: 4rem;
  height: auto; /*Laisser libre*/
}

/* Clignotement de la petite main dans le svg */
.video_icon svg path:nth-of-type(2) {
  animation: blink 1s linear infinite; 
}


/* ---- AXES NAVIGATION ---- */
.axes-nav {
  background: white;
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 1rem;
  z-index: 1;
  display:flex;
  align-items: center; /* vertical */
  justify-content: center  
}

.axes-nav h2 {
  margin:0;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--rose);
  text-transform: uppercase;
  text-align: center;
  margin-right: 1em;;
}

.axes-nav h2 span {
  font-size: 1.5rem;
}

.axes-links {
  display: flex; /* crée un conteneur flex */
/*  gap: 0.5rem;*/
  flex-wrap: wrap;
}

.axes-links a {
  margin: 0.2rem;
  padding:0.1rem;
  background: linear-gradient(135deg, #ffffff 0%, #fef5f8 100%);
  border: 2px solid var(--rose);
  border-radius: var(--radius);
  /*font-family: var(--font-condensed);*/
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--rose);
  text-align: center;
  text-transform: uppercase;
}


.axes-links a:hover {
  background: var(--rose);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.axes-links .axe_num {
  font-size:150%;
  margin:0.2rem;
}

.axes-links a:hover .axe_num {
  background: var(--rose);
  color: white;
}

/* ---- AXES GRID ---- */
.axes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.axe-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.axe-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(178, 34, 83, 0.2);
}


/* Version sans photo : afficher le numéro et le picto en haut de la carte */

.axe-ref {
  padding: 0.8rem;
  display: flex;
}

.axe-ref img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none; /* TEMPORAIRE : Masquer les photos en attendant d'avoir les bonnes images */
}

.axe-ref .axe-picto{
  display: none; /* Pictos retirés ? */
}

.axe-ref .axe-num {
  font-size: 5em;
  line-height: 0.7em;
  color: white;
  padding:0;
  margin-right: 0.3rem;;
}

.axe-ref .axe-titre {
  display: inline-block;
  letter-spacing: 0.5px;
  line-height: 1.3;
  clear: both;
  color: white;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 1.2rem;
  border-radius: var(--radius);
  text-transform: uppercase;
}

/* Ces styles seront utilisés quand les photos seront r�activ�es
.axe-numero-avec-photo {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255,255,255,0.95);
  color: var(--rose);
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  text-transform: uppercase;
}

.axe-picto-avec-photo {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
*/

.axe-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Recallage de l'icone de video après le titre de la mesure */
.axe-content .mesure-phare {
  position: relative;
}

.axe-content .mesure-phare .video_icon {
  position: absolute;
  right: -1.5rem;
  top: -1rem;
}

.mesure-phare {
  background: linear-gradient(135deg, #fef5f8 0%, #ffffff 100%);
  padding: 1.2rem;
  border-left: 4px solid var(--rose);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  position: relative;
}

.mesure-phare h4 {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--rose);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.mesure-phare p {
  font-size: 0.9rem;
  color: var(--gris-fonce);
  margin: 0;
  line-height: 1.6;
  font-style: italic;
}

.mesures-secondaires {
  margin-bottom: 1rem;
}

.mesures-secondaires h5 {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gris-fonce);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.mesures-secondaires .engage-id {
  font-weight: bolder;
  margin-right: 0.5rem;;
}

.axe-conclusion {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 2px solid rgba(178, 34, 83, 0.1);
  font-weight: 600;
  color: var(--rose);
  font-style: italic;
  font-size: 0.95rem;
  text-align: center;
}

/* ---- COULEURS PAR AXE ---- */
/* Axe 1 - Vert */
#axe1 .axe-ref {background-color: var(--axe1); }
#axe1 .video_icon path {fill: var(--axe1);}
#axe1 .mesure-phare { border-left-color: var(--axe1); }
#axe1 .mesure-phare h4 { color: var(--axe1); }
#axe1 .mesures-secondaires .engage-id { color: var(--axe1); }
#axe1 .axe-conclusion { color: var(--axe1); border-top-color: rgba(139, 92, 246, 0.2); }

/* Axe 2 - Rouge */
#axe2 .axe-ref {background-color: var(--axe2); }
#axe2 .video_icon path {fill: var(--axe2);}
#axe2 .mesure-phare { border-left-color: var(--axe2); }
#axe2 .mesure-phare h4 { color: var(--axe2); }
#axe2 .mesures-secondaires .engage-id { color: var(--axe2); }
#axe2 .axe-conclusion { color: var(--axe2); border-top-color: rgba(178, 34, 83, 0.2); }

/* Axe 3 - Jaune orangé */
#axe3 .axe-ref {background-color: var(--axe3); }
#axe3 .video_icon path {fill: var(--axe3);}
#axe3 .mesure-phare { border-left-color: var(--axe3); }
#axe3 .mesure-phare h4 { color: var(--axe3); }
#axe3 .mesures-secondaires .engage-id { color: var(--axe3); }
#axe3 .axe-conclusion { color: var(--axe3); border-top-color: rgba(245, 158, 11, 0.2); }

/* Axe 4 - Rose */
#axe4 .axe-ref {background-color: var(--axe4); }
#axe4 .video_icon path {fill: var(--axe4);}
#axe4 .mesure-phare { border-left-color: var(--axe4); }
#axe4 .mesure-phare h4 { color: var(--axe4); }
#axe4 .mesures-secondaires .engage-id { color: var(--axe4); }
#axe4 .axe-conclusion { color: var(--axe4); border-top-color: rgba(220, 38, 38, 0.2); }

/* Axe 5 - Vert */
#axe5 .axe-ref {background-color: var(--axe5); }
#axe5 .video_icon path {fill: var(--axe5);}
#axe5 .mesure-phare { border-left-color: var(--axe5); }
#axe5 .mesure-phare h4 { color: var(--axe5); }
#axe5 .mesures-secondaires .engage-id { color: var(--axe5); }
#axe5 .axe-conclusion { color: var(--axe5); border-top-color: rgba(16, 185, 129, 0.2); }

/* Axe 6 - Violet */
#axe6 .axe-ref {background-color: var(--axe6); }
#axe6 .video_icon path {fill: var(--axe6);}
#axe6 .mesure-phare { border-left-color: var(--axe6); }
#axe6 .mesure-phare h4 { color: var(--axe6); }
#axe6 .mesures-secondaires .engage-id { color: var(--axe6); }
#axe6 .axe-conclusion { color: var(--axe6); border-top-color: rgba(245, 158, 11, 0.2); }

/* Axe 7 - Vert */
#axe7 .axe-ref {background-color: var(--axe7); }
#axe7 .video_icon path {fill: var(--axe7);}
#axe7 .mesure-phare { border-left-color: var(--axe7); }
#axe7 .mesure-phare h4 { color: var(--axe7); }
#axe7 .mesures-secondaires .engage-id { color: var(--axe7); }
#axe7 .axe-conclusion { color: var(--axe7); border-top-color: rgba(16, 185, 129, 0.2); }

/* Axe 8 - Violet */
#axe8 .axe-ref {background-color: var(--axe8); }
#axe8 .video_icon path {fill: var(--axe8);}
#axe8 .mesure-phare { border-left-color: var(--axe8); }
#axe8 .mesure-phare h4 { color: var(--axe8); }
#axe8 .mesures-secondaires .engage-id { color: var(--axe8); }
#axe8 .axe-conclusion { color: var(--axe8); border-top-color: rgba(16, 185, 129, 0.2); }

/* Axe 9 - Rouge */
#axe9 .axe-ref {background-color: var(--axe9); }
#axe9 .video_icon path {fill: var(--axe9);}
#axe9 .mesure-phare { border-left-color: var(--axe9); }
#axe9 .mesure-phare h4 { color: var(--axe9); }
#axe9 .mesures-secondaires .engage-id { color: var(--axe9); }
#axe9 .axe-conclusion { color: var(--axe9); border-top-color: rgba(139, 92, 246, 0.2); }

/*---- Pages engagement ---- */
/* Effet de boite d'encadrement */
.boite {
  position: relative;
  margin-top: 0.2rem;
  margin-bottom: 0.2rem;
  padding: 0.5rem;
  box-shadow: var(--shadow);
}

.page-header h1 {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 2.8rem;
  color: var(--rose);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.enga header h1 {
  font-size: 1.5rem;
  border-left: 1rem solid var(--rose);
  padding-left:0.5rem;
}

.enga header h2 {
  font-size: 1.5rem;
  color: var(--rose);
  margin-bottom: 1rem;
  line-height: 1.6em;          /* ou une valeur en px, ex. 1.6em */
  overflow-wrap: break-word;

    /* Assure un espacement vertical suffisant 
    margin-top: 0.5em;        /* espace au-dessus 
    margin-bottom: 0.5em;     /* espace en dessous 

    /* Empêche le débordement horizontal
    white-space: normal;      /* autorise le retour à la ligne 
    word-wrap: break-word;    /* coupe les mots trop longs 
    */
}

.enga .nav_engage nav {
  display: block;
}

.enga .nav_engage nav a{
  margin:0.2rem;
}

.enga .nav_engage h1 {
  text-align: left;
  margin-bottom: 0;
}

.enga .nav_engage nav i {
  font-size: 2rem;
}

.enga .page-header .rehausse {
  color: var(--bg);
  background-color: var(--rose-clair);
  border-radius: var(--radius);
  border:.1em solid var(--rose);
  padding: .1em .3em;
  margin-right: 0.2rem;
}

/* Positionnement icone video sur page engagement */
.enga .page-header .video_icon path {
  /* position:static; */
  fill: var(--rose);
}

.enga_article {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.enga_section {
  padding: 1.0rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.enga_section:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px var(--rose-tres-clair);
}

.enga_section ul, .enga_section ol {
  list-style-type: none;
  position: relative;
  padding-left: 0px;
}

.enga_section li::before {
  content: "▸";
  font-weight: bold;
  font-size: larger;
}

/* Hyperlien dans chaque section vers le haut de page */
.enga_section .top_page {
  font-size: 1.6rem;
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 2rem;
  opacity: 0.5;
}

.enga_section h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.enga_section h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.enga_section h3>i {
  margin-right: 1rem;
  font-size: xx-large;
}

/* Emphase */
.enga_section em {
  /* font-style: normal;
  font-weight:bolder; */
}

/* Effet de boite ombragée sur chaque terme */
.enga_terme {
  padding: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.enga_terme h5 {
  font-size: larger;
  font-weight: bolder;
}

.enga_terme h6 {
  font-size: larger;
  font-weight: bolder;
}

.enga_terme h6 {
  font-size:smaller; 
}

.enga_pourquoi h3, 
.enga_pourquoi h4, 
.enga_pourquoi li::before,
.enga_pourquoi .enga_terme h5,
.enga_pourquoi .top_page
{
  color:#154eec; 
}

.enga_comment h3,
.enga_comment h4,
.enga_comment li::before,
.enga_comment .enga_terme h5,
.enga_comment .enga_terme h6,
.enga_comment .top_page 
{
  color:#04b83a; 
}

.enga_cout_finan h3, 
.enga_cout_finan h4,
.enga_cout_finan li::before,
.enga_cout_finan .enga_terme h5,
.enga_cout_finan .top_page
{
  color:var(--rose); 
}

.euro {
  color: var(--bg);
  font-size: larger;
  font-weight: bold;
  background-color: var(--rose-clair);
  display: inline-block;
  border-radius:50%;
  text-align: center;
  width:1.6em;
  border:.1em solid var(--rose);
  margin-left: 0.5rem;
}

.euro.eteint {
  opacity: 25%;
}


/*---- Page candidats ---- */
#candidats_liste {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  list-style-type: none;
}

#candidats_liste .candidat-item {
  width:25%;
  text-align: center;   /* centers inline‑block children */
  margin-bottom: 1rem;
  position: relative;
}

/* Ajustement icone video dans la page candidats */
#candidats_liste .candidat-item .video_icon {
  position: absolute;
  top:2rem;
  right:2rem;
}

#candidats_liste .candidat-item .video_icon path {
  fill: var(--rouge-candidats);
}

#candidats_liste .candidat-item .clip-cercle {
  position: relative;
  width: 6rem;
  height: 6rem;
  overflow: hidden;
  border: 0.25rem solid var(--rouge-candidats);
  border-radius: 50%;
  background-color: #51ac69;
  margin: 0 auto; /*centrage*/
}

#candidats_liste .candidat-item .clip-cercle img {
  position: absolute;
  left: 50%;
  top: 20%;
  transform: translate(-50%) scale(150%);
  /*clip-path: circle(80px at 50% 25%); no more needed*/
}

#candidats_liste .candidat-item .candidat-nom {
  position: relative;
  top:-0.5rem;
  background-color: var(--rouge-candidats);
  color: white;
  padding: 0.25rem;
  border-radius: 5%;
  display: inline-block;
}

#candidats_liste .candidat-item .candidat-num {
  display: none; /*Numéros cachés*/
  /*background-color: var(--rose-clair);
  color: var(--rouge-candidats);
  position: absolute;
  top: -1.5rem;
  left: 0rem;
  font-weight: bold;
  font-size: large;
  */
}

#candidats_liste .candidat-item .prof-quartier {
  /* background-color: rgb(230, 235, 237); */
  margin: auto 1em;
}

#candidats_liste .candidat-item .candidat-prof {
  font-family: var(--font-condensed);
  font-size: 1.2rem;
}

/*Image-symbole du quartier*/
#candidats_liste .candidat-item .candidat-quartier {
  height:3em;
  float: left;
}

/*---- Popup video sur les pages programme et candidats ----*/
.video_popup {
}

/* Popup video : Contenu centré */
.video_popup .overlay {
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:#000a;
  display:none;
  z-index: 2;
}

.video_popup .popup_content {
  position:fixed;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  background:#fff;
  display:none;
  border: 5px solid white;
  z-index: 3;
}

.video_popup .vid{
  width:100%;
  height:auto;
  max-height: 650px;
}

/* Page candidats Popup video : Bouton de fermeture */
.video_popup .close {
  border-radius: 50%;
  width:2rem;
  height:2rem;
  display: flex;
  justify-content: center;  /* centre horizontalement */
  align-items: center;      /* centre verticalement */
  background-color: rgba(255,255,255,0.5);
  position: absolute;
  top: 20px; 
  right: 20px;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ---- FOOTER ---- */
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--gris);
  font-size: 0.85rem;
  border-top: 1px solid rgba(0,0,0,0.05);
}


.site-footer a {
  color: var(--gris);
  text-decoration: underline;
}


.site-footer a:hover {
  color: var(--rose);
}


/* ---- RESPONSIVE ---- */
@media (max-width: 1200px) {
  .axes-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  #candidats_liste .candidat-item {
    width:50%;
  }

}


@media (max-width: 900px) {
  :root {
    --sidebar-w: 0;
  }
  
  .sidebar {
    display: none;
  }
  
  .mobile-header {
    display: block;
  }
  
  .content {
    margin-left: 0;
    width: 100%;
    padding-top: 120px;
  }
  
  main {
    padding: 1rem;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  .axes-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .axes-nav {
    position: relative;
    top: 0;
  }
  
  .axes-links {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
  }
  
  .axes-links a {
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
  }

  .enga .nav_engage nav a{
    margin:0.1rem;
  }

  .enga .nav_engage nav a i{
    font-size: 2rem;
  }
}


@media (max-width: 600px) {
  .content {
    padding-top: 110px;
  }
  
  .page-header {
    padding: 1.5rem;
  }
  
  .page-header h1 {
    font-size: 1.6rem;
    letter-spacing: 1px;
  }
  
  .page-header p {
    font-size: 1rem;
  }
  
  .axe-ref {
    height: 180px;
  }
  
  .axe-content {
    padding: 1.2rem;
  }
  
  .axe-titre {
    font-size: 1.1rem;
  }
  
  .axes-links {
    grid-template-columns: 1fr;
  }

  #candidats_liste .candidat-item {
    width:100%;
  }

  #candidats_liste .candidat-item .candidat-prof {
    font-size: 1.5rem;
  }
}


@media (max-width: 400px) {
  .page-header h1 {
    font-size: 1.4rem;
  }
  
  .axe-ref {
    height: 150px;
  }
  
  .axe-id {
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
  }
  
  .axe-picto {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
}
