/* ===================
   Variables et Style de Base
==================== */
:root {
    --interpru-green: #009444;
    /* Vert principal */
    --interpru-orange: #f7941d;
    --interpru-yellow: #EDB529;
    /* Jaune/Orange (Accent/Hover) */
    --interpru-red: #ed1c24;
    --interpru-dark-grey: #4d595d;
    --interpru-light-grey: #f0f0f0;
    --interpru-text: #333;
    /* Gris foncé standard pour le texte */
    --interpru-text-light: #555;
    --interpru-success: var(--interpru-green);
    /* Utilisé pour les bordures de blockquote/mission */
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--interpru-text);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--interpru-yellow);
}

a:hover {
    color: var(--interpru-green);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 10px;
    position: relative;
}

.section-title h2 {
    color: var(--interpru-green);
    font-weight: 700;
    font-size: 2.2rem;
    text-transform: uppercase;
}

/* La petite barre orange sous les titres */
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--interpru-yellow);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.section-title.light h2 {
    color: #fff;
}

/* ===================
   Header
==================== */
#header {
    transition: all 0.3s ease-in-out;
}

/* ===================
1. NOUVEAU FORMULAIRE DE RECHERCHE MINIMALISTE (PILL - V2)
==================== */

.header-search-form-pill-v2 {
    /* Utilise relative pour positionner l'icône à l'intérieur */
    position: relative;
    max-width: 250px;
    width: 100%;
}

.header-search-input-pill-v2 {
    /* Style du champ de saisie */
    border-radius: 50px !important;
    border: 1px solid var(--interpru-light-grey);
    padding: 8px 15px 8px 38px;
    /* IMPORTANT: Padding gauche pour l'icône */
    height: 40px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.header-search-input-pill-v2:focus {
    /* Effet au focus */
    border-color: var(--interpru-green);
    box-shadow: 0 0 0 0.25rem rgba(0, 148, 68, 0.25);
}

/* Positionnement de l'icône (Loupe) */
.search-icon-v2 {
    position: absolute;
    top: 50%;
    left: 15px;
    /* Position à gauche */
    transform: translateY(-50%);
    color: var(--interpru-text-light);
    /* Couleur de l'icône */
    pointer-events: none;
    /* Empêche l'icône d'interférer avec le clic */
    font-size: 1.1rem;
    /* Taille de l'icône */
    z-index: 2;
}

/* Suppression de l'ancien pseudo-élément pour éviter les conflits */
.header-search-form-pill::before {
    content: none;
}


/* Styles des boutons Espace (Poussés à droite) */
.btn-espace-filiere,
.btn-espace-admin {
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-espace-filiere {
    border: 2px solid var(--interpru-yellow);
    color: var(--interpru-yellow);
}

.btn-espace-filiere:hover {
    background: var(--interpru-yellow);
    color: #fff;
}

.btn-espace-admin {
    border: 2px solid var(--interpru-green);
    color: var(--interpru-green);
}

.btn-espace-admin:hover {
    background: var(--interpru-green);
    color: #fff;
    transform: scale(1.05);
}

/* Styles de la Navbar */
.navbar .logo {
    max-height: 120px;
}

/* Espace entre les liens de navigation */
.navbar-nav .nav-link {
    color: var(--interpru-green);
    font-weight: 600;
    text-transform: uppercase;
    padding: 10px 15px;
    font-size: 1.0rem;
}

.navbar-nav .nav-item:not(:last-child) {
    margin-right: 1.5rem;
}


.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
    color: var(--interpru-yellow);
}

/* Assurer que le menu centré et les boutons ne se chevauchent pas */
@media (min-width: 992px) {
    .navbar-nav.mx-auto {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* ===================
   Hero Carrousel
==================== */
#hero-carousel {
    width: 100%;
    height: 85vh;
    min-height: 500px;
    overflow: hidden;
}

#hero-carousel .carousel-item {
    width: 100%;
    height: 85vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Overlay sombre pour la lisibilité */
#hero-carousel .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

#hero-carousel .carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
    padding-left: 0;
}

#hero-carousel .carousel-container .container {
    text-align: center;
    color: #fff;
}

#hero-carousel h2 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
}

#hero-carousel p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 15px auto;
}

.btn-hero-register {
    background: var(--interpru-yellow);
    color: #fff;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-hero-register:hover {
    background: #fff;
    color: var(--interpru-green);
    border: 2px solid var(--interpru-green);
    transform: scale(1.05);
}

/* Styles pour les contrôles du carrousel */
#hero-carousel .carousel-control-prev-icon,
#hero-carousel .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    background-size: 50%;
}


/* ===================
   Flash Info
==================== */
.flash-info-bar {
    background: #fff;
    border-bottom: 2px solid var(--interpru-light-grey);
    padding: 10px 0;
}

.flash-info-ticker-container {
    overflow: hidden;
    white-space: nowrap;
    line-height: 1;
    padding: 0;
}


.flash-info-btn {
    background: var(--interpru-red);
    color: #fff;
    padding: 10px 20px;
    font-weight: 700;
    border-radius: 5px;
    display: inline-block;
    position: relative;
    z-index: 2;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.flash-info-ticker-text {
    white-space: nowrap;
    color: var(--interpru-text-light);
    font-weight: 500;
}

/* ===================
   Abonnement SMS
==================== */
.sms-go-banner {
    background: var(--interpru-light-grey);
}

.sms-go-banner h3 {
    color: var(--interpru-text);
    font-weight: 700;
}

.sms-go-banner p {
    color: var(--interpru-text-light);
    font-size: 0.9rem;
}

.btn-sms-subscribe {
    background: var(--interpru-red);
    color: #fff;
    padding: 10px 30px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-sms-subscribe:hover {
    color: #fff;
    opacity: 0.8;
}

/* ===================
   Actualités
==================== */

/* Conteneur de Lien */
.article-link-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Carte de l'Article */
.article-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

/* Effet de survol sur la carte via le lien */
.article-link-wrapper:hover .article-card {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.article-card .card-body {
    padding: 20px;
}

/* Titre de l'Article */
.article-card .card-title {
    color: var(--interpru-dark-grey);
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    flex-grow: 1;
    margin-bottom: 0;
}

/* Changement de couleur du titre au survol du lien */
.article-link-wrapper:hover .card-title {
    color: var(--interpru-yellow);
}

/* Bouton Détails */
.btn-article-details {
    border: 2px solid var(--interpru-green);
    color: var(--interpru-green);
    font-weight: 600;
    padding: 5px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: inline-block;
    white-space: nowrap;
}

/* Effet de survol sur le bouton Détails (quand le lien principal est survolé) */
.article-link-wrapper:hover .btn-article-details {
    background: var(--interpru-green);
    color: #fff;
    border-color: var(--interpru-green);
}

/* Bouton "Tout voir" */
.btn-tout-voir {
    border: 2px solid var(--interpru-green);
    color: var(--interpru-green);
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.btn-tout-voir:hover {
    background: var(--interpru-green);
    color: #fff;
}

/* ===================
   Annonces (Styles pour la capture)
==================== */

/* Conteneur principal du carrousel d'annonces */
.annonces-carousel-custom {
    position: relative;
    max-width: 950px;
    margin: 0 auto;
}

/* Contour Jaune autour de l'image de l'annonce */
.annonces-item-yellow-border img {
    border: 5px solid var(--interpru-yellow);
    border-radius: 10px;
}

/* Styles pour les flèches de navigation */

/* Personnalisation des boutons de contrôle pour les pousser à l'extérieur */
.annonces-carousel-custom .carousel-control-prev,
.annonces-carousel-custom .carousel-control-next {
    width: 50px;
}

/* Flèche Précédent : Poussée hors du carrousel */
.annonces-carousel-custom .carousel-control-prev {
    left: -60px;
}

/* Flèche Suivant : Poussée hors du carrousel */
.annonces-carousel-custom .carousel-control-next {
    right: -60px;
}

/* Style de l'icône (taille et couleur verte) */
.annonces-control-icon {
    display: block;
    background-color: transparent;
}

.annonces-prev-icon::before {
    content: "\F284";
    font-family: "bootstrap-icons";
    font-size: 3rem;
    color: var(--interpru-green);
}

.annonces-next-icon::before {
    content: "\F285";
    font-family: "bootstrap-icons";
    font-size: 3rem;
    color: var(--interpru-green);
}

/* Survol */
.annonces-carousel-custom .carousel-control-prev:hover .annonces-prev-icon::before,
.annonces-carousel-custom .carousel-control-next:hover .annonces-next-icon::before {
    color: var(--interpru-yellow);
}

/* Suppression des styles par défaut de Bootstrap qui cachent les flèches personnalisées */
.annonces-carousel-custom .carousel-control-prev-icon,
.annonces-carousel-custom .carousel-control-next-icon {
    display: none;
}

/* ===================
   Accès Directs
==================== */
#acces-directs {
    background: var(--interpru-dark-grey);
}

.acces-box {
    display: block;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 40px 20px;
    text-align: center;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.acces-box h3 {
    color: #fff;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
}

.acces-box:hover {
    background: var(--interpru-yellow);
    border-color: var(--interpru-yellow);
    transform: scale(1.05);
}

/* ===================
   Partenaires (Carrousel Bootstrap)
==================== */

.partenaires-container-custom {
    position: relative;
}

.partenaires-logos-row {
    padding: 0 40px;
}

.partenaires-carousel-inner .carousel-indicators {
    display: none;
}

/* Styles pour les flèches de navigation (Positionnement Extérieur) */
.partenaires-container-custom .carousel-control-prev,
.partenaires-container-custom .carousel-control-next {
    width: 50px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.partenaires-container-custom .carousel-control-prev {
    left: -60px;
}

.partenaires-container-custom .carousel-control-next {
    right: -60px;
}

/* Style de l'icône (couleur verte et taille) */
.partenaires-control-icon {
    display: block;
    background-color: transparent;
}

.partenaires-prev-icon::before {
    content: "\F284";
    font-family: "bootstrap-icons";
    font-size: 3rem;
    color: var(--interpru-green);
}

.partenaires-next-icon::before {
    content: "\F285";
    font-family: "bootstrap-icons";
    font-size: 3rem;
    color: var(--interpru-green);
}

/* Survol */
.partenaires-container-custom .carousel-control-prev:hover .partenaires-prev-icon::before,
.partenaires-container-custom .carousel-control-next:hover .partenaires-next-icon::before {
    color: var(--interpru-yellow);
}

/* Supprime les icônes par défaut de Bootstrap */
.partenaires-container-custom .carousel-control-prev-icon,
.partenaires-container-custom .carousel-control-next-icon {
    display: none;
}

/* Styles pour les logos */
.partner-logo {
    padding: 15px 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    min-width: 180px;
}

.partner-logo img {
    max-height: 60px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* ===================
   Footer
==================== */
#footer {
    background: var(--interpru-light-grey);
    color: var(--interpru-text-light);
}

.footer-logo {
    max-height: 120px;
    background-color: white;
    border-radius: 10px 10px;
}

.footer-title {
    color: var(--interpru-text);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-transform: uppercase;
}

#footer p {
    font-size: 0.9rem;
    line-height: 1.6;
}

#footer a {
    color: var(--interpru-text-light);
}

#footer a:hover {
    color: var(--interpru-yellow);
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--interpru-green);
    color: #fff;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--interpru-yellow);
    color: #fff;
    transform: scale(1.1);
}

/* ===================
   Contact
==================== */

.map-container {
    height: 100%;
    min-height: 450px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
}

.contact-info-top .contact-item {
    font-size: 1rem;
    font-weight: 500;
    color: var(--interpru-text-light);
}

.contact-info-top .contact-item i {
    font-size: 1.2rem;
}

.php-email-form {
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.php-email-form .form-group {
    padding-bottom: 8px;
}

.php-email-form .error-message {
    display: none;
    color: #fff;
    background: #ed3c0d;
    text-align: left;
    padding: 15px;
    font-weight: 600;
}

.btn-contact-submit {
    border: 2px solid var(--interpru-green);
    background: var(--interpru-green);
    color: #fff;
    padding: 8px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-contact-submit:hover {
    background: white;
    border-color: var(--interpru-yellow);
    color: var(--interpru-green);
}


/* ===================
   Pagination Personnalisée
==================== */

.pagination-custom .page-item .page-link {
    color: var(--interpru-green);
    border: 1px solid var(--interpru-light-grey);
    border-radius: 5px;
    margin: 0 4px;
    transition: all 0.3s ease;
}

.pagination-custom .page-item.active .page-link,
.pagination-custom .page-item .page-link:hover {
    background-color: var(--interpru-yellow);
    border-color: var(--interpru-yellow);
    color: var(--interpru-text);
}

.pagination-custom .page-item.disabled .page-link {
    color: var(--interpru-dark-grey);
    opacity: 0.6;
    pointer-events: none;
}


/* ===================
   Article Détails
==================== */

.article-content {
    padding-right: 20px;
}

.article-header-image img {
    max-height: 400px;
    object-fit: cover;
    width: 100%;
}

.article-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--interpru-text);
}

.article-meta {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--interpru-dark-grey) !important;
}

.article-body {
    line-height: 1.7;
    font-size: 1.05rem;
    color: var(--interpru-text-light);
}

.article-body h3 {
    color: var(--interpru-yellow);
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-body ul {
    padding-left: 20px;
}

.article-body blockquote {
    border-left: 5px solid var(--interpru-green);
    background-color: #f7f7f7;
    padding: 15px 20px;
    margin: 20px 0;
    font-style: italic;
}

.sidebar-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--interpru-text);
}

.sidebar .recent-posts a {
    color: var(--interpru-text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.sidebar .recent-posts a:hover {
    color: var(--interpru-green);
}


/* ===================
   Page À Propos
==================== */

.directeur-photo-container {
    padding: 20px;
}

.directeur-photo-container img {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: cover;
    border: 5px solid #fff;
}

.mot-directeur-block .blockquote {
    border-left: 4px solid var(--interpru-success);
    padding-left: 15px;
    margin-bottom: 0;
}

.mot-directeur-block .blockquote p {
    font-size: 1.1rem;
    color: var(--interpru-text);
}

.mot-directeur-block .blockquote-footer {
    font-size: 0.95rem;
    color: var(--interpru-dark-grey);
}

.mission-vision-block {
    background-color: #f8f9fa;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.mission-list li {
    padding: 5px 0;
}


/* ===================
   Bouton Scroll-to-Top
==================== */
#scrollTopBtn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 44px;
    height: 44px;
    background: var(--interpru-yellow);
    color: #fff;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    z-index: 999;
    transition: all 0.3s ease;
    cursor: pointer;
}

#scrollTopBtn:hover {
    background: var(--interpru-green);
    color: #fff;
    transform: scale(1.1);
}
