/* ====== PALETTE AGIR ====== */
:root {
    --agir-blue: #7FB3FF;
    --agir-red:  #FF4E5C;
    --agir-white: #FFFFFF;
}

/* Style global de base */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #f7f7f7;
    color: #222;
}

/* ====== NAVBAR AGIR ====== */

.agir-navbar {
    background-color: var(--agir-white);
    border-bottom: 1px solid #ececec;
}

/* marque */
.agir-navbar .navbar-brand span {
    font-size: 1.1rem;
    letter-spacing: 0.03em;
}

/* liens */
.agir-navbar .nav-link {
    color: #1f1f1f !important;
    font-weight: 500;
    margin-right: 0.75rem;
    font-size: 0.95rem;
}

.agir-navbar .nav-link:hover,
.agir-navbar .nav-link:focus {
    color: var(--agir-blue) !important; /* rappel bleu drapeau */
}

/* bouton renseignement */
.btn-renseignement {
    background-color: var(--agir-red);   /* rouge drapeau */
    color: #fff !important;
    border-radius: 999px;
    padding: 0.4rem 1.3rem;
    font-weight: 600;
    border: none;
    font-size: 0.95rem;
}

.btn-renseignement:hover {
    background-color: #d63a4c;
    color: #fff !important;
}

/* petit carré pour futur logo */
.agir-logo-placeholder {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--agir-blue), var(--agir-red));
    opacity: 0.25;            /* discret en attendant le vrai logo */
}


/* ================= HERO ================= */

/* ====== HERO (section accueil) ====== */

.hero-wrapper {
    position: relative;
    min-height: 95vh;
    overflow: hidden;
}

/* Conteneur des slides */
.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Chaque slide */
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: heroFade 18s infinite;
}

/* 3 photos : hero1.png, hero2.png, hero3.png */
.hero-slide.hero1 {
    background-image: url("../images/hero1.png");
    animation-delay: 5s;
}

.hero-slide.hero2 {
    background-image: url("../images/hero3new.png");
    animation-delay: 6s;
}

.hero-slide.hero3 {
    background-image: url("../images/hero3new.png");
    animation-delay: 12s;
}

/* Animation fondu pour 3 images */
/* Animation fluide avec fondu croisé */
@keyframes heroFade {
    0%   { opacity: 0; }
    10%  { opacity: 1; }
    40%  { opacity: 1; }
    50%  { opacity: 0; }
    100% { opacity: 0; }
}


/* Dégradé bleu semi-transparent par-dessus les photos */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(15, 76, 129, 0.75),
        rgba(0, 0, 0, 0.35)
    );
    z-index: 2;
}

/* Le texte au-dessus de tout ça */
#hero .container {
    position: relative;
    z-index: 3;
}
/* ===== Bouton du hero ===== */
.hero-btn {
    background: var(--agir-red);
    color: #fff !important;
    border-radius: 999px;
    padding: 0.7rem 1.8rem;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    display: inline-block;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    transition: all .25s ease;
}

.hero-btn:hover {
    background: #d63a4c;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0,0,0,.18);
}
/* ===== Cartes fond drapeau français flouté ===== */

.flag-card {
    border-radius: 22px;
    color: #1f1f1f;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 45px rgba(0,0,0,.06);
}

/* couche floutée */
.flag-card::before {
    content: "";
    position: absolute;
    inset: 0;
    filter: blur(8px);
    opacity: .35;
    z-index: 0;
}

/* contenu au-dessus */
.flag-card * {
    position: relative;
    z-index: 2;
}


/* Toutes les cartes utilisent la même image floutée */
.flag-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../images/hero4.jpg");
    background-size: cover;
    background-position: center;
    filter: blur(6px) brightness(0.9);
    opacity: 0.55;
    z-index: 0;
}
.flag-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.6);
    z-index: 1;
    border-radius: 22px;
}
/* ===== Cartes "Nos engagements" avec photo floutée ===== */

.flag-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    color: #1f1f1f;
    box-shadow: 0 25px 45px rgba(0,0,0,.06);
    background-color: #ffffff; /* au cas où l'image ne charge pas */
}

/* IMAGE DE FOND */
.flag-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../images/hero4.png"); /* utilise une image qui EXISTE */
    background-size: cover;
    background-position: center;
    filter: blur(6px) brightness(0.9);
    opacity: 0.7;
    z-index: 0;
}

/* VOILE BLANC PAR-DESSUS POUR LA LISIBILITÉ */
.flag-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.65);
    z-index: 1;
}

/* TEXTE AU-DESSUS */
.flag-card * {
    position: relative;
    z-index: 2;
}

/* ===== Packs de formations ===== */

.pack-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,.06);
    font-size: 0.9rem;
}

.pack-card h6 {
    font-weight: 600;
    margin-top: 1rem;
}

.pack-card ul {
    padding-left: 1.1rem;
    margin-bottom: 0.5rem;
}

.pack-card ul li {
    margin-bottom: 0.3rem;
}

/* Badge durée */
.duration-badge {
    background-color: #7FB3FF;
    color: #fff;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
}

/* Pack intégral mis en avant */
.pack-highlight {
    border: 2px solid #ff4e5c;
}
.featured-badge {
    display: inline-block;
    margin-top: 0.5rem;
    background: #ff4e5c;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}
/* ===== PACKS: DESIGN PRO (force override) ===== */

#packs .pack-card{
  border-radius: 22px !important;
  background: #fff !important;
  box-shadow: 0 24px 60px rgba(0,0,0,.07) !important;
  transition: transform .25s ease, box-shadow .25s ease, outline-color .25s ease !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Hover moderne */
#packs .pack-card:hover{
  transform: translateY(-6px) !important;
  box-shadow: 0 34px 80px rgba(0,0,0,.12) !important;
}

/* Contour bleu au hover pour les 3 packs simples */
#packs .pack-card:not(.pack-highlight):hover{
  outline: 2px solid var(--agir-blue) !important;
}

/* Pack intégral mis en avant + badge */
#packs .pack-highlight{
  outline: 2px solid var(--agir-red) !important;
  box-shadow: 0 30px 75px rgba(255,78,92,.18) !important;
}

/* Badge "Le plus complet" (si tu l’ajoutes en HTML) */
#packs .featured-badge{
  display: inline-block;
  margin-top: 10px;
  background: var(--agir-red);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .28rem .75rem;
  border-radius: 999px;
}

/* Petites icônes de titres (optionnel) */
#packs .pack-card h6{
  font-weight: 700 !important;
  margin-top: 1rem !important;
  margin-bottom: .35rem !important;
}
/* ===== PACKS : CONTOUR ROUGE PASTEL POUR TOUS ===== */

#packs .pack-card {
    border-radius: 22px;
    background: #ffffff;
    padding: 1.5rem;
    box-shadow: 0 20px 45px rgba(0,0,0,.06);
    outline: 2px solid rgba(255, 78, 92, 0.35); /* rouge pastel */
    transition: transform .25s ease, box-shadow .25s ease, outline-color .25s ease;
}

/* Effet hover doux */
#packs .pack-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 70px rgba(255, 78, 92, 0.15);
    outline-color: rgba(255, 78, 92, 0.7);
}
/* Bouton "Choisir" dans les packs */
#packs .pack-actions {
    display: flex;
    justify-content: flex-start;
}

#packs .pack-btn {
    background: rgba(255, 78, 92, 0.9); /* rouge pastel */
    color: #fff !important;
    border-radius: 999px;
    padding: 0.6rem 1.3rem;
    font-weight: 700;
    border: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

#packs .pack-btn:hover {
    background: rgba(255, 78, 92, 1);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(255, 78, 92, 0.25);
}
/* Les cartes servent de référence */
#packs .pack-card {
    position: relative;
    padding-bottom: 4rem; /* espace pour le bouton */
}

/* Bouton fixé en bas à droite */
#packs .pack-actions {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
}
/* foooooter---------
/* ================= FOOTER ================= */

/* ===== FOOTER ÉQUILIBRÉ ===== */

.site-footer{
  padding: 2.8rem 0 1.2rem;
  background: linear-gradient(
    135deg,
    rgba(127,179,255,0.14),
    rgba(255,78,92,0.10)
  );
  border-top: 1px solid rgba(0,0,0,.06);
}

.footer-info{
  display: grid;
  gap: .6rem;
}

.footer-link{
  display: inline-flex;
  align-items: center;
  color: rgba(0,0,0,.8);
  text-decoration: none;
  font-weight: 600;
  width: fit-content;
  padding: .35rem .6rem;
  border-radius: 12px;
  transition: background .18s ease, transform .18s ease;
}

.footer-link:hover{
  background: rgba(255,255,255,.6);
  transform: translateY(-1px);
}

.footer-text{
  display: inline-flex;
  align-items: center;
  color: rgba(0,0,0,.65);
  font-weight: 500;
  padding: .35rem .6rem;
  border-radius: 12px;
  background: rgba(255,255,255,.35);
  width: fit-content;
}

.footer-social{
  display: flex;
  gap: .75rem;
}

.footer-social a{
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(0,0,0,.06);
  color: rgba(0,0,0,.85);
  font-size: 1.15rem;
  transition: transform .2s ease, box-shadow .2s ease;
}

.footer-social a:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,.12);
}

.footer-bottom{
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-top{
  color: rgba(0,0,0,.7);
  text-decoration: none;
  font-weight: 600;
}

.footer-top:hover{
  text-decoration: underline;
}



/* Mobile */
@media (max-width: 768px) {
    .footer-social {
        justify-content: flex-start;
        margin-top: 1rem;
    }
}


/* Logo AGIR – agrandi sans casser la navbar */
.agir-logo {
    height: 60px;        /* augmente le logo */
    width: auto;
    object-fit: contain;
}
html {
    scroll-behavior: smooth;
}
/* ===== MODAL STYLE + BLUR BACKDROP ===== */
.modal-backdrop.show {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: .6;
}

/* Style de la fenêtre */
.agir-modal {
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 25px 60px rgba(0,0,0,.20);
}
.agir-modal .form-control,
.agir-modal .form-select {
  border-radius: 12px;
  padding: .8rem .9rem;
}


.modal-backdrop.show{
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(10px);
  opacity: .6;
}
.popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.popup.active {
  display: flex;
}

.popup-content {
  background: #ffffff;
  width: 100%;
  max-width: 420px;
  padding: 28px 24px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  animation: popupFade 0.25s ease;
}

.popup-content h2 {
  margin: 0 0 10px;
  font-size: 2rem;
  color: #1f2937;
}

.popup-content p {
  margin: 0 0 18px;
  color: #6b7280;
  font-size: 1rem;
}

.popup-content button {
  border: none;
  background: #ff5a67;
  color: #fff;
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

.popup-content button:hover {
  opacity: 0.92;
}

@keyframes popupFade {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}






