/* ==========================
   Branding & variables globales
   ========================== */
:root{
  /* Palette inspirée du logo Alleins Notre village */
  --brand-blue:#0f9ad6;   /* bleu ciel / pinceau */
  --brand-sand:#e4c88a;   /* beige / colline */
  --brand-green:#2f855a;  /* vert cyprès */
  --ink:#24303f;          /* gris foncé pour le texte */
  --ink-soft:#4b5563;
  --paper:#fffbf2;        /* fond papier très clair */
}

/* ==========================
   Anti-copie / confort global
   ========================== */
body,
.content,
.glass,
.hero{
  -webkit-user-select:none;
  -ms-user-select:none;
  user-select:none;
  -webkit-touch-callout:none;
}
::selection{
  background:transparent;
}
img,
a,
button{
  -webkit-user-drag:none;
  -user-drag:none;
}



/* ==========================
   HERO / AVATAR / CTA
   ========================== */
.hero{
  position:relative;
  border-radius:1.25rem;
  background:linear-gradient(135deg,
    rgba(15,154,214,.12),
    rgba(228,200,138,.25)
  );
  overflow:hidden;
  box-shadow:0 24px 60px rgba(15,23,42,.08);
}
.hero:before,
.hero:after{
  content:"";
  position:absolute;
  width:340px;
  height:340px;
  border-radius:50%;
  filter:blur(80px);
  opacity:.35;
  pointer-events:none;
}
.hero:before{
  background:var(--brand-blue);
  top:-120px;
  left:-120px;
}
.hero:after{
  background:var(--brand-green);
  bottom:-120px;
  right:-120px;
}

.avatar-wrap{
  display:flex;
  justify-content:center;
}
.avatar{
  width:200px;
  height:200px;
  object-fit:cover;
  border-radius:50%;
  border:6px solid rgba(255,255,255,.95);
  box-shadow:0 16px 40px rgba(15,23,42,.18);
  background:#fff;
}

/* Chips */
.badge-chip{
  border-radius:999px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:.75rem;
  padding:.55rem .9rem;
  outline:none;
}
.badge-chip:focus-visible{
  box-shadow:0 0 0 3px rgba(15,23,42,.08),0 0 0 6px rgba(15,23,42,.04);
}
/* sable chaud */
.chip-yellow{
  background:rgba(228,200,138,.2);
  color:#7b622e;
  border:1px solid rgba(228,200,138,.6);
}
/* vert logo */
.chip-red{
  background:rgba(47,133,90,.12);
  color:#1f5e3c;
  border:1px solid rgba(47,133,90,.35);
}
/* gris bleuté */
.chip-slate{
  background:#f8fafc;
  color:#1f2937;
  border:1px solid rgba(31,41,55,.18);
}

/* Carte “glass” réutilisable */
.glass{
  background:rgba(255,255,255,.82);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,.7);
  border-radius:1rem;
}

/* Bouton primaire (Bootstrap override) */
.cta-primary{
  --bs-btn-bg:var(--brand-blue);
  --bs-btn-border-color:var(--brand-blue);
  --bs-btn-hover-bg:#0c7fb2;
  --bs-btn-hover-border-color:#0c7fb2;
  --bs-btn-active-bg:#095f86;
  --bs-btn-active-border-color:#095f86;
  color:#f9fafb;
}

/* Petit séparateur dégradé bleu/sable */
.divider{
  height:10px;
  background:linear-gradient(90deg,var(--brand-blue),var(--brand-sand));
  border-radius:6px;
}

/* ==========================
   Bloc “Prose” (profession de foi)
   ========================== */
.prose{
  background:var(--paper);
  border:1px solid rgba(15,23,42,.06);
  border-radius:1rem;
  padding:1.25rem 1.25rem;
  box-shadow:0 8px 30px rgba(15,23,42,.04);
}
@media(min-width:768px){
  .prose{
    padding:2rem 2rem;
  }
}
.prose h2{
  font-size:1.5rem;
  margin:.5rem 0 1rem;
  font-weight:800;
  color:#0f172a;
}
.prose h3{
  font-size:1.15rem;
  margin:1.25rem 0 .5rem;
  font-weight:700;
  color:#111827;
}
.prose p{
  font-size:1.05rem;
  line-height:1.8;
  color:#334155;
  margin-bottom:1rem;
}
.prose ul{
  padding-left:1.1rem;
}
.prose li{
  margin:.35rem 0;
}
.prose .lead{
  font-size:1.1rem;
  color:#1f2937;
}

/* ==========================
   Sommaire sticky / actions mobile
   ========================== */
.toc{
  position:sticky;
  top:88px;
}
.toc .card{
  border-radius:1rem;
}
.toc a{
  display:block;
  padding:.35rem 0;
  color:#334155;
  text-decoration:none;
  border-left:2px solid transparent;
}
.toc a.active{
  font-weight:700;
  border-left-color:var(--brand-blue);
  padding-left:.5rem;
}
.toc small{
  color:#64748b;
}

/* Barre d’actions mobile (PDF / Partager / Autoriser copie) */
.sticky-actions{
  position:sticky;
  bottom:0;
  z-index:1030;
  background:rgba(255,255,255,.94);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
  border-top:1px solid rgba(15,23,42,.08);
}

/* Accessibilité / Mobile bouton */
.btn{
  padding:.75rem 1rem;
}

/* ==========================
   NAVBAR / MENU / MEGA-MENU
   ========================== */

/* Navbar plus compacte */
.classy-navbar{
  background:#ffffff;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
  border-radius:0 0 12px 12px;
  z-index:2000;

  padding-top:.01rem;
  padding-bottom:.01rem;
}


/* Toggler (toujours lisible) */
.navbar-toggler{
  border:1px solid rgba(0,0,0,.2);
  padding:.35rem .5rem;
}
.navbar-toggler-icon{
  width:1.25rem;
  height:1.25rem;
  background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(33,37,41,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Liens de navigation */
.navbar .nav-link{
  font-weight:600;
  letter-spacing:.2px;
  border-radius:.5rem;
  padding:.55rem .75rem;
  font-size:1.05rem;
  transition:background .15s ease, color .12s ease;
}
.navbar .nav-link:hover{
  background:linear-gradient(
    90deg,
    rgba(15,154,214,.12),
    rgba(228,200,138,.12)
  );
  color:#111827;
}
.navbar .nav-link.active{
  color:#0b1220;
  background:linear-gradient(
    90deg,
    rgba(15,154,214,.20),
    rgba(228,200,138,.28)
  );
}

/* Liens du méga menu */
.dropdown-mega > .nav-link{
  font-size:1.15rem;
  font-weight:700;
}

/* ==========================
   Mega menu
   ========================== */
.mega-menu{
  width:100%;
  left:0;
  right:0;
  border:1px solid rgba(0,0,0,.06);
  border-top:0;
  border-radius:0 0 12px 12px;
  box-shadow:0 18px 50px rgba(0,0,0,.12);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.96)) padding-box;
}

/* Liseré identitaire */
.mega-menu::before{
  content:"";
  display:block;
  height:6px;
  background:linear-gradient(90deg, var(--brand-blue), var(--brand-sand));
  border-radius:0 0 8px 8px;
}

/* Cartes */
.hover-card{
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  transition:background .15s ease, border-color .15s ease, transform .12s ease;
}
.hover-card:hover{
  background:linear-gradient(
    90deg,
    rgba(15,154,214,.08),
    rgba(228,200,138,.10)
  );
  border-color:rgba(15,154,214,.25);
  transform:translateY(-1px);
}

/* CTA */
.hover-card-primary{
  border-color:rgba(15,154,214,.45);
  background:linear-gradient(135deg,
    rgba(15,154,214,.12),
    rgba(15,154,214,.04)
  );
}
.hover-card-primary .cta-icon{
  width:64px;
  height:64px;
  background:rgba(15,154,214,.10);
  color:var(--brand-blue);
}
.hover-card-primary .cta-title{
  color:var(--brand-blue);
}
.hover-card-primary .cta-subtitle{
  color:var(--ink-soft);
}
.hover-card-primary:hover{
  background:linear-gradient(135deg,
    rgba(15,154,214,.18),
    rgba(15,154,214,.08)
  );
  border-color:var(--brand-blue);
}

.dropdown-menu{
  border-radius:.75rem;
  box-shadow:0 12px 30px rgba(0,0,0,.08);
}

/* ==========================
   MEDIA QUERIES
   ========================== */

@media (min-width: 992px){
  .mega-menu{
    max-height:none;
  }
  .mega-menu > .px-3{
    max-height: calc(100vh - 70px);
    overflow-y:auto;
    overflow-x:hidden;
    overscroll-behavior:contain;
    padding-bottom:2.5rem;
  }
}

@media (max-width: 991.98px){
  .classy-navbar{
    border-radius:0;
  }

  .dropdown-mega .dropdown-menu{
    position:static!important;
    transform:none!important;
    left:auto!important;
    right:auto!important;
    width:100%!important;
    margin:.25rem 0 .75rem!important;
    border-radius:.75rem;
  }

  .dropdown-mega .dropdown-menu > .px-3{
    max-height: calc(100vh - 130px);
    overflow-y:auto;
    overflow-x:hidden;
    overscroll-behavior:contain;
    padding-bottom:2.5rem;
  }

  .dropdown-mega .dropdown-menu::before{
    border-radius:.75rem .75rem 0 0;
  }

  .navbar .nav-link{
    font-size:1.15rem;
    padding:.7rem .85rem;
  }

  .navbar .container,
  .navbar .navbar-collapse{
    overflow-x:clip;
  }

  header .hero .col-12.col-md-8{
    text-align:center;
  }
  header .hero .d-flex.flex-wrap.gap-2{
    justify-content:center;
  }
  header .hero h1,
  header .hero .lead{
    text-align:center;
    margin-left:auto;
    margin-right:auto;
  }
  header .hero .d-flex.flex-wrap.gap-2 a.btn{
    width:100%;
    max-width:340px;
  }
}

@media (max-width: 575.98px){
  .hover-card{
    padding:.75rem!important;
  }
  .hover-card img{
    width:56px;
    height:56px;
  }
}


/* On prévoit de la place pour le footer pour éviter qu'il recouvre le contenu */
body{
  padding-bottom:10px; /* adapte la valeur à la hauteur réelle de ton footer */
}

/* Footer fixé en bas de la fenêtre */
footer{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:1020;
  /* Optionnel : fond blanc + ombre pour bien se détacher */
  background:#ffffff;
  box-shadow:0 -6px 18px rgba(15,23,42,.12);
}
/* ==========================
   FOOTER STYLE (comme le menu)
   ========================== */

footer.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;

  background:#fff;
  border-radius:12px 12px 0 0;
  box-shadow:0 -10px 30px rgba(0,0,0,.08);
  padding:1rem 1.5rem;

  z-index:2000; /* comme le menu */
}

/* Réserver de la place sous le contenu */
body {
  padding-bottom:60px; /* hauteur du footer */
}

/* Dégradé subtil identitaire bleu → sable (comme la navbar hover) */
footer.site-footer .footer-topline {
  height:6px;
  background:linear-gradient(90deg,var(--brand-blue),var(--brand-sand));
  border-radius:12px 12px 0 0;
  margin:-1rem -1.5rem 1rem -1.5rem;
}

/* Style texte et liens */
footer.site-footer small {
  color:#475569; /* gris bleuté menu */
  font-weight:500;
}

footer.site-footer a {
  color:#334155;
  text-decoration:none;
  font-weight:600;
  transition:color .15s ease;
}

footer.site-footer a:hover {
  color:var(--brand-blue);
}

.navbar .navbar-brand .logo img{
    max-height:100px;
    width:auto;
     margin-left:auto;
    margin-right:auto;
  }
   .navbar .navbar-brand .logo img{
    max-height:100px;
    width:auto;
    display:block;
    margin:auto; /* centre dans son propre bloc */
  }

  /* ==========================
   BOUTON FLOTTANT PARTAGER
   ========================== */

.share-fab{
  position:fixed;
  right:1.25rem;
  bottom:6rem; /* au-dessus du footer fixe */
  z-index:2500;
}

.share-fab button{
  border:none;
  border-radius:999px;
  padding:.75rem .9rem;
  display:flex;
  align-items:center;
  gap:.35rem;
  font-weight:600;
  font-size:.95rem;

  background:linear-gradient(135deg,var(--brand-blue),var(--brand-sand));
  color:#f9fafb;
  box-shadow:0 10px 30px rgba(15,23,42,.25);
}

.share-fab button i{
  font-size:1.1rem;
}

/* Petit panneau de partage */
.share-panel{
  position:fixed;
  right:1.25rem;
  bottom:calc(6rem + 3.2rem);
  z-index:2499;

  min-width:220px;
  padding:.75rem;
  border-radius:1rem;

  background:rgba(255,255,255,.95);
  box-shadow:0 16px 40px rgba(15,23,42,.22);
  border:1px solid rgba(15,23,42,.08);

  opacity:0;
  transform:translateY(10px);
  pointer-events:none;
  transition:opacity .15s ease, transform .15s ease;
}

.share-panel.open{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}

.share-panel .share-item{
  display:flex;
  align-items:center;
  gap:.5rem;
  padding:.35rem .4rem;
  border-radius:.5rem;
  border:none;
  width:100%;
  background:transparent;
  font-size:.9rem;
  text-align:left;
}

.share-panel .share-item + .share-item{
  margin-top:.15rem;
}

.share-panel .share-item:hover{
  background:rgba(15,154,214,.06);
}

.share-panel .share-item i{
  font-size:1.1rem;
}

/* Bloc candidat */
.candidate-card{
  position:relative;
  border-radius:1.9rem;
  overflow:hidden;
  min-height:260px;
  background:#020617;
  color:#f9fafb;
  isolation:isolate;
}

/* FOND VILLAGE EXISTANT */
.candidate-card::before{
  content:"";
  position:absolute;
  inset:-4%;
  background-image:
   
    url("village.jpg");
  background-size:cover;
  background-position:center;
  filter:brightness(1.08) contrast(1.1);
  transform:scale(1.12);
  animation: heroPan 16s ease-in-out infinite alternate;
  z-index:0;
}

/* NOUVEAU CALQUE DEVANT : IMAGE fond2.png */
.candidate-card::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-40px;          /* ajuste si besoin */
  height:260px;          /* ajuste selon le rendu */
  background:url("fond2.png") center bottom no-repeat;
  background-size:cover; /* ou contain selon ton besoin */
  pointer-events:none;
  z-index:1;             /* devant le village, derrière le contenu */
}

.candidate-inner{
  position:relative;
  z-index:2;
  padding:1.8rem 1.7rem 1.9rem;
  display:flex;
  flex-direction:column;
  gap:1.1rem;
  background:rgba(8, 8, 8, 0.267); /* opacité uniforme */
}

@keyframes heroPan{
  0%{transform:scale(1.12) translate3d(-18px,-10px,0);}
  50%{transform:scale(1.18) translate3d(12px,8px,0);}
  100%{transform:scale(1.12) translate3d(18px,-6px,0);}
}
.candidate-text h1{
  font-size:3rem;
  margin:0;
  color:#1cb9a4;
  font-weight:800;
text-shadow:
  0 0 6px rgba(0,0,0,0.8),
  0 0 12px rgba(0,0,0,0.7);
}
.candidate-text h2{
  font-size:1,2rem;
  margin:.4rem 0 0;
  font-weight:400;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#f6f8fa;
   text-shadow:
  0 0 12px rgb(0, 0, 0),
  0 0 12px rgb(0, 0, 0);
}

.candidate-overline
{
  font-size:2rem;
  margin:.4rem 0 0;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#fafd2a;
  text-shadow:
  0 0 12px rgba(0,0,0,0.8),
  0 0 12px rgba(0,0,0,0.7);
}
 
.tagline{
  margin-top:1rem;font-size:1.52rem;color:#e5e8eb;
  text-shadow:
  0 0 6px rgba(0,0,0,0.8),
  0 0 12px rgba(0,0,0,0.7);
}
.tagline span{color:#7dd3fc;font-weight:600;}

