@import './base/varaibles.css';

@import './admin/easyadmin.css';
@import './admin/sidebar.css';
@import './admin/dashboard.css';
@import './admin/tables.css';
@import './admin/forms.css';
@import './admin/buttons.css';
@import './admin/alerts.css';

html{
    scroll-behavior: smooth; /*Navigation douce dans la page*/
    background-color: #F2F2EC;


}

body{
    background-color: #F2F2EC;
}

.nav{
   
 background-color: transparent; 
    

}

.container{
   
  
    background-color: #F2F2EC;
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement */  
    background-size: 95%;

}


.btn,.btn-green{
    text-decoration:none;
    color: black;
    font-weight:bolder ;
    border-color:#b12d5a ;
    margin-left: 10px;
  }

p{
    margin-left: 10px;
  
  }

header {

    background-image:url(./image/Phorogroupe.jpg)no-repeat 50% 50%; ;
}

h1{
    color: #b12d5a;
    font-style: italic;
    text-align:center;
    
}
h5{
    color: #b12d5a;
    font-style: italic;
    text-align:center;
    font-size: large;
}


label {    

    color: #b12d5a;
    font-style: italic;
    font-weight: bold;
}
.hidden{
    display: none;

}
.col
 {

align-items: center;
justify-content:center;
}
.row {
 
    justify-content:justify-middle;
    }




.bureau{
    width: 300px;
    height: 300px;
   
    
}

.img-logofond {
    max-height: 600px;         /* hauteur réduite */
    width: 70%;           /* occupe toute la largeur de la card */
   
}
    
.img-logogroupe {
    max-height: 600px;         /* hauteur réduite */
    width: 50%;           /* occupe toute la largeur de la card */
   
}



.img-logopres{
    width: 100%;
    height: auto;
}



.homepresentation{
    background-color: aliceblue;
    border: 1px solid  #b12d5a;
    border-radius: 4px;
}


.btn:hover {
    color: #74e78d;
}


.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.photo img {
    max-width: 50%;
    height: auto;
}





.btn-primary {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
}


.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
video {
    width: 100%;
    height: auto;
    display: block;
}



/* Style global pour toutes les cards */
.card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #ddd; /* Ajoutez une bordure pour mieux voir les cards */
    border-radius: 10px;
    overflow: hidden; /* Empêche le contenu de déborder */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.card-transparent {
    background-color: transparent;
    border: none; /* optionnel, pour retirer la bordure */
    box-shadow: none; /* optionnel, pour retirer l’ombre */
}
/* Garantie de même hauteur pour toutes les cards */
.card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Aligne le texte en haut et le bouton en bas */
}

/* Style pour l'image dans la card */
.card-img,
.video-wrapper video {
    width: 100%; /* La card prend toute la largeur disponible */
    text-align: center; /* Centrer l'image */
    padding-top: 10px; /* Ajouter un peu d'espace au-dessus de l'image */
}

/* Garantir que les images et vidéos sont responsives */
.card-img img,
.video-wrapper video {
    width: 80%; /* L'image fait 80% de la largeur de la card */
    height: auto; /* Laisser l'image s'ajuster proportionnellement */
    object-fit: cover; /* Couvre la zone sans déformer l'image */
    margin: 0 auto; /* Centrer l'image horizontalement */
}

  
   
  
/* Card title et contenu de la card */
.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Card body ajusté pour être bien espacé */
.card-text {
    flex-grow: 1;
    font-size: 1rem;
    color: #555;
}

/* Boutons en bas de la card */
.card-body .btn {
    margin-top: 10px;
}

/* Custom pagination */
.pagination {
    margin-top: 20px;
}

.pagination .page-item.active .page-link {
    background-color: #b12d5a;
    border-color: #28a745;
}

.pagination .page-link {
    color: #28a745;
}

.pagination .page-link:hover {
    background-color: #218838;
    color: #F2F2EC;
}




/* Réglage pour rendre les cards responsive à différentes tailles d'écran */
@media (max-width: 767px) {
    .card {
        margin-bottom: 20px; /* Espacement entre les cards */
    }

    .card-body .btn {
        font-size: 0.875rem; /* Réduit la taille des boutons sur petits écrans */
    }
}

/* Réglages supplémentaires pour des écrans plus larges */
@media (min-width: 768px) {
    .card-img img,
    .video-wrapper video {
        height: 250px; /* Ajuste la hauteur des images sur les grands écrans */
    }
}


/* ==========================
   RESPONSIVE GLOBAL
========================== */

@media (max-width: 768px) {
    body:not(.ea) .site-content {
        padding: 70px 14px 20px;
    }

    body:not(.ea) .site-content > .container,
    body:not(.ea) .container {
        width: 100%;
        max-width: 430px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    body:not(.ea) .card {
        width: 100%;
        border-radius: 12px;
    }

    body:not(.ea) .card-transparent {
        max-height: 260px;
        overflow: hidden;
    }

    body:not(.ea) .img-logofond {
        width: 100%;
        max-height: 210px;
        object-fit: contain;
        object-position: center;
    }

    body:not(.ea) .img-logogroupe,
    body:not(.ea) .event-thumbnail,
    body:not(.ea) .card-img img {
        width: 100%;
        max-height: 300px;
        object-fit: cover;
    }

    body:not(.ea) .card-body {
        padding: 16px;
    }

    body:not(.ea) h1 {
        font-size: 1.55rem;
        line-height: 1.2;
    }

    body:not(.ea) h6 {
        font-size: 0.95rem;
        line-height: 1.25;
    }
}

/* ==========================
   NAVBAR HAMBURGER RESPONSIVE
========================== */

.nav-toggle {
    display: none;
}

.site-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 100vh;
    padding: 1rem;
    overflow-y: auto;
    z-index: 1000;
    background-color: transparent;
    backdrop-filter: blur(4px);
}

.site-content {
    margin-left: 240px;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        position: fixed;
        top: 12px;
        left: 12px;
        z-index: 1100;
        background: #b12d5a;
        color: #fff;
        border: none;
        border-radius: 12px;
        padding: 10px 14px;
        font-size: 24px;
        font-weight: bold;
    }

    .site-sidebar {
        transform: translateX(-100%);
        transition: transform .25s ease;
        width: 240px;
        background: #F2F2EC;
        box-shadow: 8px 0 20px rgba(0,0,0,.2);
    }

    .site-sidebar.open {
        transform: translateX(0);
    }

    .site-content {
        margin-left: 0;
        padding-top: 65px;
    }
}
