/* styles.css by Cyberius for Tchack & BEBH */

/*
=====================================================
    STYLES GÉNÉRAUX
=====================================================
*/

/*
=====================================================
  DÉCLARATION DE LA POLICE D-DIN
=====================================================
*/
@font-face {
    font-family: 'D-DIN';
    src: url('/static/fonts/D-DIN.ttf') format('truetype');
    font-weight: normal;
}
@font-face {
    font-family: 'D-DIN';
    src: url('/static/fonts/D-DIN-Bold.ttf') format('truetype');
    font-weight: bold;
}


/*
=====================================================
  BASE GÉNÉRALE DU SITE
=====================================================
*/
body {
    font-family: 'D-DIN', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #252525;
    font-family: 'D-DIN';
    src: local ('D-DIN') url( '/static/fonts/D-DIN.ttf');
}

body.dark-mode {background-color: #121212;
    color: #f0f0f0;
}

/*=====================================================
  HEADER ET NAVIGATION
=====================================================*/

header {
    background-color: #c0c0c0;
    color: #fff;
    padding: 1em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom-style: solid;
    border-bottom-width: 30px;
}

.logo img {
    width: 50px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1em;
    color: #000;
}

.nav ul li a {
        color: #4b4a4a;
        transition: color 0.2s ease
    }
nav ul li a:hover {
        color:#333
    }

.nav-link {
        color: rgb(20, 20, 20) !important;
      }

.nav-link:hover {
        color: #353434 !important;
      }

button, input, select, textarea {
  font: inherit;
font: -moz-pull-down-menu;
}
select, option {
  font-family: 'D-DIN', sans-serif;
  font: -moz-pull-down-menu;
}
/*
=====================================================
  MAIN CONTENT
=====================================================
*/
main {
    padding: 2em;
}

.titre {
    margin-top: 1em;
    margin-bottom: 2em;
}

/*
=====================================================
  FOOTER
=====================================================
*/
footer {
    text-align: center;
    padding: 1em;
    background-color: #333;
    color: #fff;
}
.footer-basic {
    padding:40px 0;
    background-color:#ffffff;
    color:#4b4c4d;
  }


  .footer-basic ul {
    padding:0;
    list-style:none;
    text-align:center;
    font-size:18px;
    line-height:1.6;
    margin-bottom:0;
  }

  .footer-basic li {
    padding:0 10px;
  }

  .footer-basic ul a {
    color:inherit;
    text-decoration:none;
    opacity:0.8;
  }

  .footer-basic ul a:hover {
    opacity:1;
  }

  .footer-basic .social {
    text-align:center;
    padding-bottom:25px;
  }

  .footer-basic .social > a {
    font-size:24px;
    width:40px;
    height:40px;
    line-height:40px;
    display:inline-block;
    text-align:center;
    border-radius:50%;
    border:1px solid #ccc;
    margin:0 8px;
    color:inherit;
    opacity:0.75;
  }

  .footer-basic .social > a:hover {
    opacity:0.9;
  }

  .footer-basic .copyright2 {
    margin-top:15px;
    text-align:center;
    font-size:13px;
    color:#aaa;
    margin-bottom:0;
  }
.copyright {
    text-align:center;
    font-size:16px;
    color:#aaa;
    margin-bottom:0;
  }
  .copyright > a {
    color: white;
  }


/*
=====================================================
  ABOUT PAGE
=====================================================
*/

    #about {
        padding: 40px;
        border-radius: 8px;
        max-width: 900px;
        margin: 40px auto;
        text-align: center;
        font-size: 18px;
    }


/*
=====================================================
  IMAGES & ICÔNES
=====================================================
*/

img {
    max-width: 100%;
    height: auto;
    align-items: center;
}

.rounded-circle {
    border-radius: 50%!important;
}

.icon-sm {
    width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 75%;
    line-height: normal;}
/*
=====================================================
  EFFETS VISUELS
=====================================================
*/

.border-5 {
    border-width: 5px;
}

.border-white {
    border-color: rgba(255,255,255, 1) !important;
}

.shadow {
    box-shadow: 0 0.375rem 1.5rem 0 rgba(140,152,164,.125)!important;
}


.hover-top-in .hover-top--in {
    transition: ease-in-out all .35s;
    position: relative;
    top: 0
}

.hover-top-in:hover .hover-top--in {
    top: +15px
}
.me-1 {
    margin-right: 0.25rem!important;
}

.fw-700 {
    font-weight: 700!important;
}
.mb-1 {
    margin-bottom: 0.25rem!important;
}

.z-index-1 {
    z-index: 1!important;
}

.pt-6 {
    padding-top: 2.5rem!important;
}
.p-4 {
    padding: 1.5rem!important;
}
.mt-n4 {
    margin-top: -1.5rem!important;
}
.mt-4 {
    margin-top: 0rem!important;
}

.shadow {
    box-shadow: 0 0.375rem 1.5rem 0 rgba(var(--bs-gray-700-rgb),.125)!important;
}
.px-5 {
    padding-right: 2rem!important;
    padding-left: 2rem!important;
}
.position-relative {
    position: relative!important;
}
.overflow-hidden {
    overflow: hidden!important;
}

.px-dkmodeflag {
    padding-right: 0 px!important;
    padding-left:  0 px!important;
}

.content-wrapper {
    display: flex;
    flex-direction: column; /* Arrange le contenu en colonne */
    align-items: center;
    min-height: 100vh; /* Prend toute la hauteur de la page */
}

.row .col figure {
    width: 100%;
    height: 100%;
    margin: 0;
}

.row .col figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0px; /* Optionnel pour l'esthétique */
}



/*
=====================================================
  GALERIE VIDÉOS
=====================================================
*/
.galerie-videos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.video-item {
    border: 1px solid #ddd;
    border-radius:8 px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.video-item img {
    width: 100%;
    height: 200px;
    border-bottom: 1px solid #ddd;
    object-fit: cover;

}

.video-item h2 {
    font-size: 1.2rem;
    margin: 10px;
}

.video-item p {
    margin: 10px;
    font-size: 0.9rem;
    color: #555;
}

.video-detail-container {
    display: grid;
   /* grid-template-columns: 70% 30%; */
    gap: 20px;
    align-items: start;
    margin: 30px;
}

.video-player video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.video-info {
    background-color: #f9f9f9;
    padding: 20px;
    margin-bottom: 50px;
    border-radius: 8px;
    box-shadow: 15px 4px 6px rgba(0, 0, 0, 0.1);

}

.video-info h2 {
    margin-bottom: 10px;
    color: #333;
}

.video-info p {
    margin: 5px 0;
    font-size: 20px;
    line-height: 1.6;
}

.video-info strong {
    color: #555;
}

@media (max-width: 1024px) {
    .video-detail-container {
        grid-template-columns: 1fr; /* Une seule colonne sur les petits écrans */
    }
    .video-info {
        margin-top: 20px;
        margin-bottom: 50px;
    }
    .video-item img {
        width: 100%;
        height: 200px;
        border-bottom: 1px solid #ddd;
        object-fit: cover;
    }

}

/*
=====================================================
  BOUTONS
=====================================================
*/


.button-return-page, .button-goto-page {
    background-color: #f5f4f4;
    border: none;
    color: rgb(16, 16, 17);
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 10px;
  }

  .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    margin-top: 20px;
}

.pagination .step-links a {
    margin: 0 5px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #5a5a5a;
    background-color: #f9f9f9;
    transition: background-color 0.2s ease;
}

.pagination .step-links a:hover {
    background-color: #3d3d3d;
    color: #fff;
}

.pagination .current {
    margin: 0 5px;
    padding: 5px 10px;
    border-radius: 5px;
    background-color: #3b3b3b;
    color: #fff;
}
btn-custom .btn-custom {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-custom:hover {
    background-color: #5a6268;
}

/* Bouton de recherche */
.btn.btn-search {
    background-color: #f5f4f4;
    color: #101011;
    border: 1px solid #ccc;
    padding: 10px 18px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Pour icône + texte */
}

.btn.btn-search:hover {
    background-color: #e0e0e0;
    color: #000;
    border-color: #999;
}

/* Variante dark mode */
.dark-mode .btn.btn-search {
    background-color: #2c2c2c;
    color: #eee;
    border: 1px solid #444;
}

.dark-mode .btn.btn-search:hover {
    background-color: #444;
    color: #fff;
    border-color: #666;
}

------------------------------------------------------------


/*
=====================================================
  GALERIE
=====================================================
*/
    .gallery {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }
    .gallery img.thumbnail {
        width: 100%;
        max-width: 500px;
        height: auto;
        cursor: pointer;
        border-radius: 4px;
        transition: transform 0.3s ease;
    }
    .gallery img.thumbnail:hover {
        transform: scale(1.1);
    }

   /*
=====================================================
  ARTICLE
=====================================================
*/
    .card {
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .card-title {
        font-size: 1.2rem;
        font-weight: bold;
        text-align: center;
    }

    .card-img-top {
        border-bottom: 2px solid #ddd;
    }



        /*
=====================================================
  HOME VIDEO
=====================================================
*/
      @supports not (-webkit-mask-clip: text) {
        figure figcaption {
            -webkit-mask: none; /* WebKit browsers */
            mask: none; /* Standard property for other modern browsers */
            color: #fff;
        }
      }
      figure {
        display: grid;
        place-items: center; /* Centre le contenu (titre) dans l'image */
        border-radius: 0rem;
        overflow: hidden;
        cursor: pointer;
        position: relative;
        margin: 0;
      }

      figure img {
        width: 100%;
        height: auto;
        object-fit: cover;
        transition: transform 0.4s ease;
      }

      figure figcaption {
        display: flex;
        justify-content: center;
        align-items: center;
        font-family: 'D-DIN';
        src: local ('D-DIN') url( '/static/fonts/D-DIN-Bold.ttf');
        font-size: 1.5rem;
        font-weight: bold;
        color: rgba(255, 255, 255, 0); /* Le texte est invisible au départ */
        text-align: center;
        background: rgba(0, 0, 0, 0); /* Fond transparent (0.0.0.0,5 pour semi transparent) */
        width: 100%;
        height: 100%;
        position: absolute; /* Positionne le titre au-dessus de l'image */
        top: 0;
        left: 0;
        transition: color 0.4s, background 0.4s ease;
      }

      figure:hover figcaption {
        color: #fff; /* Le texte devient visible au survol */
        background: rgba(0, 0, 0, 0.7); /* Renforce la transparence */
      }

      figure:hover img {
        transform: scale(1.2); /* Zoom de l'image au survol */
      }


      .carousel-item img {
        max-height: 70%;
        object-fit: cover;
    }

/*
=====================================================
  CONTACT
=====================================================
*/
    .contact_container {
        display: grid;
        grid-template-columns: 50% 50%;
        gap: 20px;
        align-items: start;
    }

    .map_contact {
        width: 100%;
        height: auto;
        border-radius: 8px;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    }


    .form_contact {
        width: 100%;
        height: auto;
    }

    /*
=====================================================
  A PROPOS
=====================================================
*/

.team-card {
    background-color: white;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Surcharge en mode sombre */
.dark-mode .team-card {
    background-color: #2b2b2b;  /* gris foncé */
    color: #f5f5f5;
}


    #team .row {
        display: flex;
        justify-content: center;
        gap: 20px; /* Espacement entre les cartes */
    }

    @media (max-width: 992px) {
        #team .row {
            flex-wrap: wrap;
        }
        #team .col-lg-2 {
            flex: 1 1 calc(33.33% - 20px); /* 3 par ligne */
        }
    }

    @media (max-width: 768px) {
        #team .col-lg-2 {
            flex: 1 1 calc(50% - 20px); /* 2 par ligne */
        }
    }

    @media (max-width: 576px) {
        #team .col-lg-2 {
            flex: 1 1 100%; /* 1 par ligne */
        }
    }


/*
===========================================
 MODE SOMBRE GLOBAL
===========================================
*/

/* Arrière-plan principal */
.dark-mode {
    background-color: #1c1b1b;
    color: #e2e1e1;
}

font-face {
    font-family: 'D-DIN';
    src: local ('D-DIN') url( '/static/fonts/D-DIN.ttf');
    color:rgb(250, 250, 250);
}

.dark-mode

/* Header */
.dark-mode header {
        background-color: #353535;
        color: #353535;
        padding: 1em;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

/* Liens de navigation */
.dark-mode nav ul li a {
    color: #ffffff;
    transition: color 0.2s ease
}
.dark-mode nav ul li a:hover {
    color:#333
}


/* Boutons */
.dark-mode .button-return-page,
.dark-mode .button-goto-page {
    background-color: #333;
    color: #ffffff;
    border: 1px solid #555;
}

.dark-mode .button-return-page:hover,
.dark-mode .button-goto-page:hover {
    background-color: #555;
}

.dark-mode .btn-custom {
    background-color: #525353; /* Gris */
    color: white; /* Texte blanc */
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.dark-mode .btn-custom:hover {
    background-color: #5a6268; /* Gris plus foncé au survol */
}

/* Footer */
.dark-mode footer {
    background-color: #1e1e1e;
    color: #ccc;
}

.dark-mode .footer-basic {
    background-color: #1e1e1e;
    color: #ccc;
}

.dark-mode .footer-basic .social > a {
    border-color: #ccc;
    color: #ccc;
}

.dark-mode .footer-basic ul a {
    color: #ccc;
}


/* Articles */

.dark-mode .article-contenu {

    font-family: 'D-DIN';
    src: local ('D-DIN') url( '../static/fonts/D-DIN.ttf');
    color:#ffffff;
}

.dark-mode strong {

    color:#ffffff;
}

/* Galerie Vidéos */
.dark-mode .video-item {
    background: #504f4f;
    border: 1px solid #333;
}

.dark-mode .video-item h2,
.dark-mode .video-item p {
    color: #ffffff;
}

/* Ombres adaptées pour le mode sombre */
.dark-mode .shadow {
    box-shadow: 0 0.375rem 1.5rem 0 rgba(255, 255, 255, 0.1) !important;
}

/* Cartes */
.dark-mode .card {
    background-color: #222;
    color: #ffffff;
}

/* Effet sur les images et figures */
.dark-mode figure figcaption {
    background: rgba(71, 71, 71, 0.2);
}

.dark-mode figure:hover figcaption {
    background: rgba(46, 45, 45, 0.4);
}

/* Mode sombre pour les formulaires */
.dark-mode .form_contact {
    background-color: #222;
    color: #fff;
}

.dark-mode .form-select {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: white;
    background-color: #2b2929;
    background-clip: padding-box;
    border: var(--bs-border-width) solid var(--bs-border-color);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: var(--bs-border-radius);
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
  }

  .dark-mode .btn-primary {
    color: white;
    background-color: #2b2929;
    border: var(--bs-border-width) solid var(--bs-border-color);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: var(--bs-border-radius);
  }

  .dark-mode .btn-primary:hover {
    color: white;
    background-color: #444141;
    border: var(--bs-border-width) solid var(--bs-border-color);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: var(--bs-border-radius);
  }

/* Pagination */
.dark-mode .pagination .step-links a {
    border-color: #555;
    background-color: #222;
    color: #ffffff;
}

.dark-mode .pagination .step-links a:hover {
    background-color: #444;
}

/* Mode sombre pour la carte Google Map */


/* Mode sombre pour les vidéos */
.dark-mode .video-player video {
    background-color: #000;
}

/* Effets de survol et d'interaction */
.dark-mode .hover-top-in:hover .hover-top--in {
    top: +10px;
}

.dark-mode .bg-light {
    --bs-bg-opacity: 1;
    background-color: rgb(97, 98, 99) !important;
  }
 .dark-mode .video-info {
    margin: 5px 0;
    font-size: 20px;
    line-height: 1.6;
    background-color: #3f3f3f;
    color: #c4c4c4;
    margin-top: 20px;
    margin-bottom: 50px;
  }

  /*------------------------------TEST--------------------------------  */

  #intro-video-container {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Positionne le bouton en bas pour desktop */
.intro-overlay {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    color: rgb(92, 91, 91);
    text-align: center;
    background-color: rgba(0, 0, 0, 0);
    padding: 1rem;
    border-radius: 10px;
}

/* Ajustement responsive pour petits écrans */
@media (max-width: 768px) {
    .intro-overlay {
        bottom: 100px; /* remonte un peu pour ne pas être masqué par les barres systèmes */
        padding: 0.5rem;
    }

    #enter-but {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
}



.intro-footer {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 10001;
    color:rgb(128, 126, 126);
}

#enter-but {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    background-color: rgba(252, 252, 252, 0.5);
    color: #111;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem auto 0 auto; /* auto horizontal = centré */
    z-index: 10;
}

#enter-but.de {
    width: 130px;
    height: 130px;
}

#enter-but::after {
    font-size: 1.8rem;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

#enter-but:hover {
    background-color: #000;
    color: #fff;
    transform: scale(1.1);
}

#enter-but:hover::after {
    transform: translateX(5px);
}


/* header semi-transparent */
.transparent-header {
    background-color: rgba(0, 0, 0, 0.034) !important; /* fond semi-transparent */
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 10000;
    border: none;
    backdrop-filter: blur(5px); /* floute léger en option */
    color: rgb(235, 235, 235);
}

.transparent-header .nav-link {
    color: rgba(22, 20, 20, 0.747) !important;
}

.transparent-header .nav-link:hover {
    color: #464545 !important;
}

/* ------------- TRANSITIONS PAGE ----------------*/

.transition-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(255, 255, 255);
    z-index: 100000;
    opacity: 1;
    pointer-events: all;
    transition: opacity 0.8s ease-in-out;
}

/* État visible = écran noir */
.transition-screen.active {
    opacity: 1;
    pointer-events: all;
}

/* État invisible = page visible */
.transition-screen.hide {
    opacity: 0;
    pointer-events: none;
}

.dark-mode .transition-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(10, 10, 10);
    z-index: 100000;
    opacity: 1;
    pointer-events: all;
    transition: opacity 0.8s ease-in-out;
}

/* État visible = écran noir */
.dark-mode .transition-screen.active {
    opacity: 1;
    pointer-events: all;
}

/* État invisible = page visible */
.dark-mode .transition-screen.hide {
    opacity: 0 !important;
    pointer-events: none;
}

/* ===== AJOUT / OVERWRITE DES NOUVEAUTÉS SIDEBAR ===== */

@font-face {
    font-family: 'D-DIN-Bold';
    src: url('/static/fonts/D-DIN-Bold.ttf') format('truetype');
    font-weight: bold;
}

#sidebar {
    width: 70px;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding: 1rem 0.5rem;
    background-color: #f8f9fa;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    transition: width 0.3s ease, transform 0.3s ease;
    z-index: 1040;
}

#sidebar:hover {
    width: 220px;
}

/* Bouton burger (visible en mobile) */
#burgerButton {
    display: none;
    position: relative;
    top: 1rem;
    left: 1rem;
    z-index: 1050;
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 0.5rem 0.75rem;
    border-radius: 5px;
}

.sidebar-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

.sidebar-header img {
    max-width: 100%;
    max-height: 60px;
    height: auto;
    width: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}


#sidebar .components {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-left: 0;
    margin-top: 2rem;
}

#sidebar .components li {
    list-style: none;
    display: flex;
    justify-content: center;
    position: relative;
}

#sidebar .components li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 70px;
    width: 100%;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 5px;
    font-family: 'D-DIN-Bold', sans-serif;
    font-weight: bold;
    position: relative;
}

#sidebar .components li a i {
    font-size: 1.2rem;
    transition: font-size 0.3s ease;
}

.sidebar-label {
    display: none;
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
    margin-left: 0.5rem;
}

#sidebar:hover .components li a {
    flex-direction: row;
    justify-content: flex-start;
    padding-left: 1rem;
}

#sidebar:hover .components li a i {
    font-size: 1.4rem;
    margin-right: 0.5rem;
}

#sidebar:hover .sidebar-label {
    display: inline;
}

#sidebar .components li a[title]:hover::after {
    content: attr(title);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    background: #222;
    color: #fff;
    padding: 4px 10px;
    font-size: 0.7rem;
    border-radius: 4px;
    margin-left: 8px;
    z-index: 999;
}

#main-content {
    margin-left: 70px;
    padding: 1rem;
    width: 100%;
    transition: margin-left 0.3s ease;
}

#sidebar:hover ~ #main-content {
    margin-left: 220px;
}

@media (max-width: 768px) {
    #burgerButton {
        display: block;
    }

    /* Décale le contenu du sidebar sous le bouton burger pour éviter le chevauchement du logo */
    #sidebar {
        transform: translateX(-100%);
        padding-top: 4.5rem; /* espace pour le bouton burger (~72px) */
    }

    #sidebar.active {
        transform: translateX(0);
    }

    #main-content,
    #sidebar:hover ~ #main-content {
        margin-left: 0;
    }
}

.dark-mode #sidebar {
    background-color: #2b2b2b;
}

.dark-mode #sidebar .components li a {
    color: #eee;
}

.dark-mode #sidebar .components li a:hover {
    background-color: #444;
}

.dark-mode #sidebar .components li a[title]:hover::after {
    background-color: #eee;
    color: #111;
}

.language-select {
    background-image: url('https://flagcdn.com/fr.svg'); /* valeur par défaut */
    background-repeat: no-repeat;
    background-position: left 1rem center;
    background-size: 1.5rem;
    text-transform: uppercase;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* hide text */
    text-indent: -1000000%;
    text-indent: -999px;
}

/*dark mode */
.dark-mode .language-select {
    background-color: #222;
    color: #eee;
}


/*BLOCS ARTICLES*/
.article-texte {
    margin: 20px 0;
    font-size: 18px;
}

.article-image {
    margin: 30px 0;
    text-align: center;
}

.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.article-citation {
    font-style: italic;
    background: #f4f4f4;
    padding: 15px;
    border-left: 5px solid #ccc;
    margin: 20px 0;
}


.social-icons a {
    font-size: 2.2rem; /* taille des icônes */
    color: #333;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
    color: #000;
    transform: scale(1.2);
}

/* Pour le mode sombre */
.dark-mode .social-icons a {
    color: #ccc;
}

.dark-mode .social-icons a:hover {
    color: #fff;
}

/* =============================
   NAV-TABS Contact en mode sombre
============================= */

.dark-mode .nav-tabs {
    border-bottom: 1px solid #444;
}

.dark-mode .nav-tabs .nav-link {
    background-color: #818080;
    color: #ccc;
    border: 1px solid #444;
    border-bottom: none;
}

.dark-mode .nav-tabs .nav-link:hover {
    background-color: #aca9a9;
    color: #fff;
}

.dark-mode .nav-tabs .nav-link.active {
    background-color: #949494;
    color: #fff;
    border: 1px solid #666;
    border-bottom: 1px solid #1c1c1c; /* cache la ligne du dessous */
}
.hidden {
    display: none !important;
}

/* Formulaire de contact */

form .form-group,
form .mb-3 {
    margin-bottom: 1.5rem;
}

form input[type="text"],
form input[type="email"],
form input[type="file"],
form input[type="url"],
form textarea,
form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px; /* coins arrondis */
    background-color: #fff;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

form textarea {
    min-height: 150px;
    resize: vertical;
}

form input:focus,
form textarea:focus,
form select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

/* Bouton d'envoi */
form button[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

form button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Responsive et esthétique */
form .row > .col {
    padding: 0.5rem;
}

/* Mode sombre */
.dark-mode form input,
.dark-mode form textarea,
.dark-mode form select {
    background-color: #2c2c2c;
    color: #eee;
    border: 1px solid #555;
}

.dark-mode form button[type="submit"] {
    background-color: #444;
    color: #eee;
}

.dark-mode form button[type="submit"]:hover {
    background-color: #222;
}

/* Style des erreurs de formulaire Django */
/* captcha */
.errorlist {
  display: none; 
  list-style: none;
  margin: 15px 0;
  padding: 0;
  text-align: center;
}

.errorlist li {
  background-color: #f2dede;
  border: 1px solid #ebccd1;
  color: #a94442;
  padding: 10px 15px;
  margin-bottom: 10px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.95em;
}
.alerte-error {
  list-style: none;
  margin: 15px 0;
  padding: 0;
  text-align: center;
}

.alerte-error {
  background-color: #f2dede;
  border: 1px solid #ebccd1;
  color: #a94442;
  padding: 10px 15px;
  margin-bottom: 10px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.95em;
}


/* Pour les messages alerte à la suite des uns des autres (contact forms) */
.errorlist li + li {
  margin-top: 5px;
}

/* 🔄 Loader en cercle */
.loader-container {
  display: none; /* caché par défaut */
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  height: 100%;
  background-color: rgba(162, 162, 163, 0.8);
  justify-content: center;
  align-items: center;
}

.loader {
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: linear-gradient(0deg, #FFFFFF 50%, #6e6e6e 100%);
  animation: spin 1s linear infinite;
}

.inner-circle {
  width: 90%;
  height: 90%;
  background-color:#0057b367;
  border-radius: 50%;
}

@keyframes spin {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}

.tab-content > .tab-pane {
  transition: opacity 2s ease-in-out; /* Durée ici : 0.5s */
  opacity: 0;
  display: block;
  height: 0;
  overflow: hidden;
}

.tab-content > .tab-pane.active {
  opacity: 1;
  height: auto;
}
@media (max-width: 768px) {
  /* Transitions pour tous les blocs de page */
  #main-content > * {
    transition: transform .3s ease;
    will-change: transform;
  }

  /* Ne décale PAS l'intro vidéo */
  #sidebar.active ~ #main-content > #intro-video-container {
    transform: none !important;
  }

  /* Décale tout le reste (home-content et autres pages) */
  #sidebar.active ~ #main-content > :not(#intro-video-container) {
    transform: translateX(70px);
  }

  /* Sécurité si un ancien style touche #main-content */
  #sidebar.active ~ #main-content { transform: none !important; }
}

/* Honeypot: visually hidden, resilient */
label[for="id_honeypot"],
#id_honeypot,
.hp-input {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  white-space: nowrap;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

/* Prevent accidental interaction on style flash */
#id_honeypot { pointer-events: none; }

/* (Removed unused .hp-block rules) */
