:root {
    --color-primary: #0094ff;
    --color-secondary: #00a9e0;
    --color-text: #111;
    --color-border: #e5e5e5;
    --color-hover-bg: #f2f2f2;
}

html, body {
    font-family: "Raleway", sans-serif;
    height: 100%;
    margin: 0;
    padding: 0;
}

.main-content {
    flex: 1 0 auto; /* prend tout l'espace restant */
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar globale */
.custom-navbar {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--color-border);
}

/* Liens classiques */
.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.82rem;
}

/* Espacement (au cas où gap ne suffit pas) */
.navbar-nav .nav-item + .nav-item {
    margin-left: 0.2rem;
}

/* Hover */
.navbar-nav .nav-link:hover {
    color: var(--color-primary);
}

/* ---- Bouton "Rejoindre Move" façon pill ---- */
.nav-item-cta .nav-link {
    border-radius: 999px;
    border: 2px solid var(--color-secondary);
    padding: 0.25rem 1.3rem;
    color: var(--color-secondary);
    font-weight: 600;
}

.nav-item-cta .nav-link:hover {
    background-color: var(--color-secondary);
    color: #ffffff;
}

/* ---- Loupe à droite ---- */
.nav-item-search .nav-search-btn {
    padding: 0.25rem 0.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background-color: transparent;
    color: var(--color-secondary);
}

.nav-item-search .nav-search-btn:hover {
    background-color: #e6f5ff;
}

.nav-item-search .bi {
    font-size: 1.15rem;
}

/* --- Loupe à droite + barre qui se déplie --- */

.search-right {
    position: relative;
    display: flex;
    align-items: center;
}

/* Bouton loupe */
.search-toggle-btn {
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background-color: transparent;
    color: #000;
}

.search-toggle-btn:hover {
    background-color: var(--color-hover-bg);
}

/* Formulaire replié par défaut */
.search-right-form {
    overflow: hidden;
    width: 0;
    opacity: 0;
    transition: width 0.25s ease, opacity 0.2s ease;
    margin-left: 0.5rem;
}

/* Champ de texte */
.search-right-input {
    border-radius: 999px;
    border: 1px solid hotpink;
    padding: 0.15rem 0.6rem;
    font-size: 0.85rem;
    outline: none;
}

/* Quand on ouvre la recherche */
.search-right.open .search-right-form {
    width: 200px;   /* largeur de la barre dépliée */
    opacity: 1;
}

/* Annuler la marge gauche pour les éléments du menu mobile */
.offcanvas-body .navbar-nav .nav-item + .nav-item {
    margin-left: 0;
}

/* Bien aligner tous les liens dans le offcanvas */
.offcanvas-body .navbar-nav {
    padding-left: 0;
    margin-left: 0;
    list-style: none;
}

.offcanvas-body .nav-link {
    display: block;
    padding: 0.4rem 0;
}


/* Bouton "Fermer" dans le menu mobile */
.offcanvas-close-text {
    padding: 0;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 500;
    color: #000;
    text-decoration: none;
}

.offcanvas-close-text:hover {
    text-decoration: none;
    color: #555;
}

.footer-main {
    background: #000;
    font-size: 0.85rem;
    margin-bottom: 0;
    padding-bottom: 0;

    flex-shrink: 0; /* Pour que le footer ne rétrécisse pas */
}

/* La row est déjà display:flex avec Bootstrap.
   align-items-center sur la row fait le centrage vertical. */
.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Liens du footer */
.footer-link {
    color: grey;
    text-decoration: none;
}

.footer-link:hover {
    color: grey;
    text-decoration: underline;
}

/* Icônes réseaux sociaux */
.social-icons a {
    color: deeppink ;         /* couleur de base */
    transition: color 0.2s ease;
    text-decoration: none;
}

.social-icons a:hover {
    color: white;
    text-decoration: none; /* 🌸 hover rose */
}

/* Bouton "To the top" */
.footer-main .btn-light {
    border-radius: 20px;
    padding: 6px 14px;
}

.footer-copyright {
    background: #000;
    font-size: 0.75rem;
    border-top: 1px solid #222;
}

/* Taille du texte dans le menu déroulant Annuaire */
.dropdown-menu .dropdown-item {
    font-size: 0.82rem;   /* tu peux mettre 1rem, 1.1rem, etc. */
    padding: 8px 16px;    /* au cas où tu veux ajuster l'espacement */
}

/* Optionnel : hover plus élégant */
.dropdown-menu .dropdown-item:hover {
    background-color: var(--color-hover-bg);
    color: var(--color-primary);
}

/* Fix dropdown Bootstrap (navbar sticky) */
.navbar {
    overflow: visible;
    z-index: 1050;
}

.dropdown-menu {
    z-index: 1055;
}



/* Taille uniforme pour tout le menu mobile */
#mobileMenu .nav-link {
    font-size: 1rem;
    font-weight: 300;
}


.admin-search-wrapper {
    margin-top: 50px;
    margin-bottom: 80px;
}


/* Optionnel : donner un max-width plus élégant */
@media (min-width: 1400px) {
    .admin-search-wrapper {
        max-width: 1200px;
    }
}


/* --- Onglets --- */
.admin-tabs {
    display: flex;
    gap: 1.2rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 30px;
}

.admin-tab {
    background: none;
    border: none;
    padding: 8px 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: #111;
    cursor: pointer;
    position: relative;
}

.admin-tab:hover {
    color: var(--color-primary);
}

/* Onglet actif */
.admin-tab.active {
    color: var(--color-primary);
    font-weight: 600;
}

.admin-tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 3px 3px 0 0;
}

/* --- Panels --- */
.admin-content {
    min-height: 200px;
}

.admin-panel {
    display: none;
}

.admin-panel.active {
    display: block;
}


/* Fix dropdown Bootstrap (navbar sticky) */
.navbar {
    overflow: visible;
    z-index: 1050;
}

.dropdown-menu {
    z-index: 1055;
}


.hero-section {
    width: 100%;
    border-radius: 18px;
    padding-top: 40px;
    padding-bottom: 10px;/* ⚠️ pas de padding horizontal */
    margin-bottom: 40px;
}

/* IMAGE FULL WIDTH */
.hero-image {
    width: 100vw;             /* 👈 prend toute la largeur écran */
    height: 450px;
    /*background-image: url("/resources/images/hero3.png");*/
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* centrage par rapport à la page */
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* TEXTE */
.hero-text {
    margin-top: 40px;
    text-align: center;
}

.hero-description {
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.6;
}



.site-title {
    font-weight: bolder;
    letter-spacing: 0.1em; /* optionnel, très élégant */
}

.action-section {
    padding: 60px 0;
}

.action-container {
    /* On enlève l'ancien border et le radius */
    border: none;
    border-radius: 0;

    /* On crée les deux lignes horizontales */
    border-top: 2px solid hotpink;
    border-bottom: 2px solid hotpink;

    /* On garde le padding interne pour aérer le contenu */
    padding: 50px 0;
}

/* TITRE bien placé */
.action-title {
    margin-bottom: 20px;
    font-weight: bolder;
    text-align: center;
}

/* IMAGE */
.action-image-wrapper {
    text-align: right; /* pousse l’image à droite */
}

.action-image-wrapper img {
    max-width: 95%;     /* presque collée mais pas collée */
    height: auto;
    border-radius: 1px;
}

.action-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;                /* espace entre les deux */
    margin-top: 70px;         /* espace sous le texte */
}

.action-card {
    background-color: #f6f8ff;   /* couleur douce */
    border-radius: 16px;
    padding: 30px;
    text-align: center;
}

.action-card h4 {
    margin-bottom: 15px;
    font-weight: 600;
}

.action-card p {
    margin-bottom: 20px;
    line-height: 1.5;
}
@media (max-width: 768px) {
    .action-cards {
        grid-template-columns: 1fr;
    }
}


/* ---- Bouton Move réutilisable ---- */
.move-pill {
    display: inline-block;
    border-radius: 999px;
    border: 2px solid yellow;
    padding: 0.25rem 1.3rem;
    color: black;
    font-weight: 600;
    font-size: 0.82rem;
    text-decoration: none;
    background: yellow;
}

/* ---- .move-pill:hover {
    background-color: var(--color-secondary);
    color: #ffffff;
    text-decoration: none;
}---- */


.video-section {
    margin: 60px 0; /* espace avant/après la section */
}

.video-wrapper {
    max-width: 1200px;   /* ← largeur MAX de la vidéo */
    margin: 0 auto;      /* centre la vidéo */
    border-radius: 20px; /* optionnel mais joli */
    overflow: hidden;    /* important pour les coins arrondis */
}

.video-wrapper video {
    width: 100%;         /* prend toute la largeur du wrapper */
    height: auto;        /* garde les proportions */
    display: block;
}







/* Coupe la description à 3 lignes */
.clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Carte partenaire plus compacte */
.partner-card {
    border: 1px solid var(--color-border);
    font-size: 0.95rem;
}
.row.g-3 {
    margin-top:3rem ;
    margin-bottom: 3rem;
}

/* Réduit l’espace interne */
.partner-card .card-body {
    padding: 0.75rem;
}

/* Image partenaire : plus petite, non coupée */
.partner-card img {
    height: 120px;          /* ajuste ici : 100–140px selon ton goût */
    width: 100%;
    object-fit: contain;    /* IMPORTANT : ne coupe PAS l’image */
    background-color: #fff; /* optionnel, pour images transparentes */
}




.text-truncate-multi {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Nombre de lignes maximum */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px; /* Largeur max de la cellule description */
    font-size: 0.85rem;
    line-height: 1.4;
}


.img-fiche {
    width: 100%;
    max-width: 500px;      /* On peut l'élargir un peu si on veut */
    height: 400px;         /* Hauteur fixe pour l'harmonie de la page */
    object-fit: contain;   /* Affiche TOUTE l'image sans la couper */
    background-color: white; /* Ajoute un fond gris très léger pour combler les vides sur les côtés */
    border-bottom: 1px solid #ddd;
    display: block;
    margin: 0 auto;        /* Centre parfaitement */
}



/* --- Style spécifique au Formulaire d'adhésion --- */

/* La carte du formulaire */
#joinForm.card {
    border: none;
    /*border-top: 6px solid var(--color-secondary); /* Le bleu de ta navbar */
    border-top: 6px solid #e83e8c !important;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08) !important;
    padding: 2.5rem !important;
    /*background: linear-gradient(135deg, #f5f9ff 0%, #fff8fb 100%);*/
}

/* Le titre de la page (on lui donne du peps) */
main h2.text-center {
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 2.5rem !important;
    /*text-transform: uppercase;*/
    letter-spacing: 2px;
}


/* On personnalise les labels */
#joinForm .form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0.5rem;
}

/* On stylise les champs de saisie */
#joinForm .form-control {
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 10px 15px;
    font-size: 0.95rem;
    transition: all 0.2s ease-in-out;
}

#joinForm .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(0, 148, 255, 0.1);
    background-color: #fff;
}

/* Le bouton d'envoi (façon pill comme ta navbar) */
#joinForm .btn-primary {
    background-color: var(--color-primary);
    border: none;
    border-radius: 999px;
    padding: 12px 30px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#joinForm .btn-primary:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 169, 224, 0.25);
}

/* Séparateur discret entre les sections */
#joinForm hr {
    opacity: 0.15;
}

/* Ajustement mobile */
@media (max-width: 768px) {
    #joinForm.card {
        padding: 1.5rem !important;
    }
}






/* Style des petites boîtes d'avantages - Version Rose */
.benefit-box {
    background: #ffffff;
    border: 1px solid #f2f2f2;
    /* Bordure haute avec le rose de ton logo */
    border-top: 4px solid #e83e8c;
    border-radius: 15px;
    padding: 25px 20px;
    height: 100%;
    transition: all 0.3s ease;
    text-align: center;
}

.benefit-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(232, 62, 140, 0.1) !important;
    border-color: #e83e8c;
}

.benefit-box i {
    font-size: 2.2rem;
    /* Un rose soutenu pour les icônes */
    color: #d63384;
    margin-bottom: 15px;
    display: block;
}

.benefit-box p {
    color: #444;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0;
}

/* Texte d'introduction */
.lead {
    font-size: 1.25rem;
    color: #666 !important;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}





/* Garde les images du carrousel à une taille harmonieuse */
.action-carousel-img {
    height: 500px; /* Ajuste cette hauteur selon tes besoins */
    object-fit: cover; /* Recadre l'image proprement si elle est trop grande */
    border-radius: 10px;
}

/* Optionnel : styliser les flèches pour qu'elles ressortent mieux */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.5));
}