/* ==========================================================================
   1. VARIABLES ET CONFIGURATION CORE
   ========================================================================== */
:root {
    --bs-primary: #72968f;
    --bs-primary-rgb: 114, 150, 143;
    --primary-dark: #666666;
    --bs-link-color: #8faca6;
    --bs-link-hover-color: #5b7a74;
    --red-fil: #d10000;
    --red-fil-dark: #a80000;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
  line-height: 1.7em;
  font-family: PT Sans;
  font-size: 0.875rem;
  font-weight: 300;
  background-color: #5f807a;
  background-color: #F4F1EA;
  color: #656565;
}
 .bg-lighter {
  background-color: #ebebeb;
}
#body-bg {
    background-image: url("../img/fil_rouge.png") !important;
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: visible !important;
}

/*-----------------------------------------------------------------------------------*/
/* Typo */
/*-----------------------------------------------------------------------------------*/
h1 {
  font-size: 2em;
}
h2 {
  font-weight: 300;
  line-height: 1em;
  margin: 0 0 10px;
  color: #555555;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 2rem;
}
h3 {
  font-size: 1.25rem;
  font-weight: 300;
  padding: 0;
  font-family: 'Roboto Condensed', sans-serif;
  margin: 0;
  color: #555555;
}
h3.title {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 5px;
  margin-bottom: 15px;
}
h4 {
  font-size: 1.125rem;
  font-weight: 300;
  color: #9e9e9e;
  margin-bottom: 10px;
  line-height: 1.6;
}
h5 {
  font-size: 1.1em;
}
h6 {
  font-size: 1em;
}
a {
  text-decoration: none;
  color: #72968f;
  -webkit-transition: color 0.15s ease-in;
  -moz-transition: color 0.15s ease-in;
  -o-transition: color 0.15s ease-in;
  transition: color 0.15s ease-in;
}
a:hover {
  text-decoration: none;
}
a:focus,
li:focus {
  outline: 0;
}
p {
  margin-bottom: 16px;
  text-align: justify;
}
hr {
  background: url("../img/hr.png") no-repeat scroll 50% 0 transparent;
  border: medium none;
  height: 19px;
  margin: 0px 0 10px;
}

.pt-5-only {
    padding-top: 3rem !important;
    padding-bottom: 0 !important;
}


.text-red {
  color: var(--red-fil);
}

/* ==========================================================================
   2. NAVIGATION ET STICKY (Harmonisé avec index.html)
   ========================================================================== */

/* Bandeau Logo initial */
#header-row {
    background-color: rgba(0, 0, 0, 0.6) !important;
    height: 120px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Conteneur du menu */
#sticky-wrapper {
    min-height: 60px;
    height: auto;
}

/* Barre de navigation initiale */
#hornav {
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
}

/* Révélation du menu au scroll (Classe JS) */
.nav-revealed #hornav {
    opacity: 1;
    visibility: visible;
}

/* Structure du menu (UL) */
#hornav ul.navbar-nav {
    background-color: rgba(23, 23, 23, 0.6) !important;
    border-radius: 5px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Liens du menu - État Normal */
#hornav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    text-transform: uppercase;
    font-size: 0.9375rem;
    font-weight: 300;
	font-weight: bold;
    padding: 18px 20px !important;
    transition: color 0.3s;
}

#hornav .nav-link:hover, 
#hornav .nav-link.active {
    color: var(--red-fil) !important;
}

/* --- MODE STICKY (Activé par le JS) --- */
.sticky-active {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000 !important;
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    animation: slideInDown 0.3s ease-out;
}

/* Ajustements visuels en mode Sticky */
.sticky-active #hornav {
    opacity: 1 !important;
    visibility: visible !important;
}

.sticky-active #hornav ul.navbar-nav {
    background-color: transparent !important;
    border: none;
}

.sticky-active #hornav .nav-link {
    color: #333 !important; /* Texte devient sombre sur fond blanc */
}

@keyframes slideInDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

@media (max-width: 991px) {
    /* 1. Barre fixe blanche en haut */
    #sticky-content {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 3000 !important;
        background-color: #ffffff !important; /* Fond Blanc */
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 15px 0;
		min-height: 80px;
		display: block !important; /* Force l'affichage même si nav-revealed n'est pas actif */
    }

    /* 2. Logo mobile à gauche */
    .navbar-brand img {
        max-height: 60px;
        width: auto;
    }

    /* 3. Bouton Hamburger (Icône Noire) */
/* Le bouton lui-même (la bordure) */
    .navbar-toggler {
        border-color: #6c757d !important; /* Gris standard (Bootstrap secondary) */
        outline: none !important;
    }

    /* L'icône hamburger (les 3 barres) */
    .navbar-toggler-icon {
        /* On utilise un filtre pour obtenir une couleur grise précise */
        /* sepia(0) brightness(0.5) donne un gris moyen */
        filter: invert(0.5) !important; 
    }
    
    /* Optionnel : couleur un peu plus foncée au clic */
    .navbar-toggler:active {
        background-color: rgba(108, 117, 125, 0.1) !important;
    }


    /* 4. Menu déroulant : Liens en NOIR */
    /* Attention : on cible bien #navbarNav car c'est votre nouvel ID HTML */
    #navbarNav .nav-link {
        color: #000000 !important; 
        font-weight: 600;
        padding: 12px 15px !important;
        border-bottom: 1px solid #f0f0f0;
        text-align: left;
    }

    /* 5. Dropdown mobile */
    .dropdown-menu {
        background-color: #f8f9fa !important;
        border: none;
        padding-left: 20px;
    }
    
    .dropdown-item {
        color: #333 !important;
        font-size: 0.875rem;
    }

    /* 6. On décale le reste du site vers le bas pour ne pas être caché */
    body {
        padding-top: 65px !important;
    }
    
    /* 7. On cache le header (logo) d'origine pour éviter le doublon */
    #header-row {
        display: none !important;
    }
}


/* Désactive l'affichage du logo qui apparaît normalement au scroll */
#sticky-logo-line {
    display: none !important;
}

/* On s'assure que sur grand écran, le conteneur ne devient pas fixe */
@media (min-width: 992px) {
    .sticky-active {
        position: relative !important; /* On annule le position: fixed */
        top: auto !important;
        box-shadow: none !important;
        background: transparent !important; /* Garde le fond d'origine */
    }

    #sticky-wrapper {
        height: auto !important; /* Empêche le wrapper de réserver de l'espace */
    }
}

/* Uniquement pour grand écran */
@media (min-width: 992px) {
    /* État initial (Conteneur parent) */
    #main-header-container {
        width: 100%;
        position: relative;
        background: transparent;
        transition: all 0.4s ease;
        z-index: 9999;
    }

	/* ÉTAT INITIAL : Barre en haut (pas de scroll) */
    #hornav ul.navbar-nav {
        background-color: rgba(23, 23, 23, 0.6) !important;
        border-radius: 5px;
        padding: 0 15px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: background-color 0.4s ease; /* Transition fluide */
    }

    /* ÉTAT FIXÉ : Quand on scroll (la classe .fixed-header est ajoutée) */
    #main-header-container.fixed-header #hornav ul.navbar-nav {
        background-color: rgba(23, 23, 23, 0.9) !important;
        /* Les autres propriétés (radius, padding, border) restent héritées */
    }
	
    /* État FIXE au scroll */
    #main-header-container.fixed-header {
        position: fixed;
        top: 0;
        left: 0;
        background-color: transparent !important; /* On garde le parent transparent */
        box-shadow: none;
        padding: 0; /* On gère le padding dans les lignes directement */
    }

    /* LIGNE DU LOGO : Fond blanc avec légère transparence */
    #main-header-container.fixed-header #header-row {
        background-color: rgba(255, 255, 255, 0.9) !important; /* Blanc transparent */
        padding: 10px 0;
        transition: all 0.4s ease;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Optionnel : ombre légère sous le logo */
    }

    /* LOGO : Devient noir */
    #main-header-container.fixed-header #header-row img {
        filter: brightness(0) !important;
        max-height: 50px;
        transition: all 0.4s ease;
    }

    /* LIGNE DU MENU : Reste transparente */
    #main-header-container.fixed-header #sticky-wrapper,
    #main-header-container.fixed-header #sticky-content,
    #main-header-container.fixed-header #hornav {
        background-color: transparent !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

}

/* Dropdown Menus */
.dropdown-menu {
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    background-color: rgba(23, 23, 23, 0.95) !important;
}

.dropdown-item {
    color: white !important;
    padding: 10px 20px;
}

.dropdown-item:hover {
    background-color: var(--red-fil) !important;
}

.navbar {
  --bs-navbar-padding-x: 0;
  --bs-navbar-padding-y: 0rem;
  padding: var(--bs-navbar-padding-y) var(--bs-navbar-padding-x);
}

/* ==========================================================================
   3. COMPOSANTS ET SIDEBAR
   ========================================================================== */

/* État normal du bouton */
.btn-primary {
  color: #ffffff;
  background-color: var(--red-fil);
  /* Un seul border ici, ajustez l'épaisseur au besoin */
  border: 2px solid #000000 !important; 
  
  /* Réduction du bouton */
  padding: 6px 16px;          /* Réduit (Haut/Bas Gauche/Droite) */
  font-size: 0.9rem;          /* Plus petit que 1.1rem */
  
  /* Arrondi plus prononcé */
  border-radius: 30px;        /* Utilisez 8px pour un arrondi modéré, 30px pour un effet pilule */
  
  transition: all 0.3s ease;
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;      /* Assure que le padding s'applique correctement */
}

/* État au survol (Hover) */
.btn-primary:hover {
  background-color: var(--red-fil-dark);
  border-color: #000000;
   color: #ffffff; /* Évite que le texte change de couleur selon les thèmes */
}

/* État au clic et focus */
.btn-primary:active, .btn-primary:focus {
  background-color: #8a0000 !important;
  outline: none;
}

#btn-back-to-top {
    position: fixed !important;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex !important; /* Pour centrer l'icône */
    align-items: center;
    justify-content: center;
    
    /* Transition fluide */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.3s ease;
    
    background-color: var(--red-fil);
    color: white;
    border: none;
    cursor: pointer;
}

/* Classe activée par le JS */
#btn-back-to-top.show-fluid {
    opacity: 1 !important;
    visibility: visible !important;
}

#btn-back-to-top:hover {
    background-color: var(--red-fil-dark);
}

@media (max-width: 576px) {
    /* On descend un peu le bouton sur mobile pour ne pas gêner la navigation */
    #btn-back-to-top {
        bottom: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
    
    /* On peut aussi cacher la barre sociale sur très petits écrans si besoin */
    .social-sidebar-area {
        display: none;
    }
}

/* ==========================================================================
   SOCIAL
   ========================================================================== */
.social-sidebar-area {
    position: fixed !important; 
    bottom: 0;                   /* On le plaque en bas */
    left: 0;                    
    top: auto !important;        /* On annule le centrage vertical précédent */
    z-index: 9999;              
    transition: all 0.3s ease;
}

.social-info-area {
    display: flex;
    /* Rotation pour écrire à la verticale */
    transform: rotate(-90deg);
    transform-origin: left bottom; 
    position: absolute;
    
    /* POSITIONNEMENT PRÉCIS EN BAS À GAUCHE */
    /* bottom: 20px décolle le texte du bord bas de l'écran */
    /* left: 40px décolle le texte du bord gauche de l'écran */
    bottom: 20px; 
    left: 40px;   
    
    align-items: center;
    gap: 20px;     /* Espace entre les réseaux sociaux */
    white-space: nowrap;
}

.social-info-area a {
    display: flex !important;
    align-items: center;
    white-space: nowrap;
    gap: 8px;      
    text-transform: uppercase;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 5px;
    color: var(--red-fil);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-info-area a:hover {
    color: var(--red-fil-dark) !important;
}

/* On remet l'icône droite car la rotation du parent l'a couchée */
.social-info-area a i {
    transform: rotate(90deg); 
    width: 15px;
    text-align: center;
}

/* icon social site */

.hover-opacity:hover {
    color: var(--red-fil-dark) !important;
}

/* Si vous voulez des icônes circulaires stylisées */
.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary-dark);
    text-decoration: none;
}

/* ==========================================================================
   4. RESPONSIVE
   ========================================================================== */
@media (max-width: 991px) {
    #hornav {
        opacity: 1;
        visibility: visible;
    }
    
    #hornav ul.navbar-nav {
        background-color: white !important;
        margin-top: 10px;
    }
    
    #hornav .nav-link {
        color: #333 !important;
    }
}


/* ==========================================================================
   5. Section
   ========================================================================== */
.container {
  max-width: 1160px;
  padding-left: 40px;
  padding-right: 40px;
  width: 100%;
}

.container.no-padding {
  padding-left: 20px !important;
  padding-right: 20px !important;
}

.content-top-border {
  background-color: var(--red-fil) !important;
  border-radius: 5px 5px 0 0;
  height: 7px;
}
.content-bottom-border {
  background-color: var(--red-fil) !important;
  border-radius: 0 0 5px 5px;
  height: 7px;
}

.about-section {
  scroll-margin-top: 150px; /* Ajustez selon la hauteur de votre menu */
}

.intro-section {
  scroll-margin-top: 150px; /* Ajustez selon la hauteur de votre menu */
  padding: 5rem 0;
}

/* Section globale */
.projects-section {
  scroll-margin-top: 150px; /* Ajustez selon la hauteur de votre menu */
  padding: 5rem 0;
}

/* Texte du projet vedette (Featured) */
.projects-section .featured-text {
  padding: 2rem;
}

@media (min-width: 992px) {
  .projects-section .featured-text {
    /* On force le padding-left à 0 pour coller la bordure à l'image */
    padding: 0 0 0 2rem;
    border-left: 0.5rem solid var(--red-fil);
  }
}

/* Textes des projets secondaires */
.projects-section .project-text {
  padding: 3rem;
  font-size: 90%;
}

@media (min-width: 992px) {
  .projects-section .project-text {
    padding: 5rem;
  }
}

/*-----------------------------------------------------------------------------------*/
/* Glyphicons */
/*-----------------------------------------------------------------------------------*/
.bs-glyphicons li {
  font-size: 0.75rem;
  width: 12.5%;
}
.bs-glyphicons li {
  float: left;
  font-size: 0.625rem;
  height: 115px;
  line-height: 1.4;
  padding: 10px;
  text-align: center;
  width: 10%;
}
.bs-glyphicons-list {
  list-style: none outside none;
  padding-left: 0;
}
.bs-glyphicons .glyphicon {
  font-size: 1.5rem;
  margin-bottom: 10px;
  margin-top: 5px;
}
.glyphicon {
  display: inline-block;
  font-family: 'Glyphicons Halflings';
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  position: relative;
  top: 1px;
}
.bs-glyphicons .glyphicon-class {
  display: block;
  text-align: center;
  word-wrap: break-word;
}

/*-----------------------------------------------------------------------------------*/
/* glightbox */
/*-----------------------------------------------------------------------------------*/
/* Empêche le saut de page sur mobile à l'ouverture/fermeture */
.glightbox-open {
    overflow: visible !important; /* Garde le scroll actif en arrière-plan */
    height: auto !important;
    width: auto !important;
    position: static !important;
}

/* Évite les conflits avec le header sticky */
body.glightbox-open #sticky-content {
    z-index: 1000 !important; /* Assure que le header reste sous la lightbox */
}

.glightbox img {
    cursor: zoom-in;
    transition: opacity 0.3s ease;
}

.glightbox:hover img {
    opacity: 0.8;
}

/*-----------------------------------------------------------------------------------*/
/* Portfolio */
/*-----------------------------------------------------------------------------------*/
.portfolio-group {
  text-align: center;
  padding: 0;
  width: 100% !important;
}
.portfolio-group .portfolio-item {
  overflow: hidden;
  border-radius: 5px;
  position: relative;
  text-align: center;
  vertical-align: text-top;
  list-style: none outside none;
}
.portfolio-group .portfolio-item > div {
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}
.portfolio-group figure {
  border-radius: 5px;
  margin: 1px;
  padding: 0px;
  position: relative;
  overflow: hidden;
}
.portfolio-group figure img {
  max-width: 100%;
  display: block;
  position: relative;
  z-index: 0;
  -webkit-transition: -webkit-transform 0.4s ease-out;
  -moz-transition: -moz-transform 0.4s ease-out;
  transition: transform 0.4s ease-out;
}
.portfolio-group figcaption {
  border-top: 5px solid #2f403c;
  color: #ffffff;
  top: 0;
  left: 0;
  padding: 30px 40px;
  background-color: color: var(--red-fil);
  text-align: left;
  text-transform: none;
  position: relative;
  z-index: 1;
}
.portfolio-group h3 {
  color: #ffffff;
  margin: 0;
  padding: 0px 0px 15px;
  font-size: 1.375rem;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1em;
}
.portfolio-group .col-md-4 {
  width: 33.33%;
}
ul.portfolio li a,
ul.grid li:first-child a {
  padding: 0 !important;
  margin: 0 !important;
}
.portfolio-filter {
  margin: 0;
  padding: 0px;
}
.portfolio-filter li {
  list-style: none;
  display: inline-block;
}
.portfolio-filter-label {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.625rem;
  padding: 11px 12px;
}
.portfolio figcaption span {
  color: #cccccc;
  line-height: 2em;
  display: block;
  padding: 30px;
}
.no-touch .portfolio-item figure:hover img,
.portfolio-item figure.cs-hover img {
  bottom: 0px;
  -webkit-transform: scale(1.2) translateY(-7.5%);
  -moz-transform: scale(1.2) translateY(-7.5%);
  -ms-transform: scale(1.2) translateY(-7.5%);
  transform: scale(1.2) translateY(-7.5%);
}
.portfolio-item figcaption {
  height: 100%;
  width: 100%;
  opacity: 0.7;
  -webkit-transition: opacity 0.5s 0.2s;
  -moz-transition: opacity 0.5s 0.2s;
  transition: opacity 0.5s 0.2s;
}

.portfolio-group figcaption {
  border-top: 5px solid #2f403c;
  color: #ffffff;
  top: 0;
  left: 0;
  padding: 30px 40px;
  background-color: var(--red-fil);
  text-align: left;
  text-transform: none;
  position: relative;
  z-index: 1;
}

.no-touch .portfolio-item figure:hover figcaption,
.portfolio-item figure.cs-hover figcaption {
  opacity: 1;
  -webkit-transition: opacity 0.5s;
  -moz-transition: opacity 0.5s;
  transition: opacity 0.5s;
}

/*index image*/
.cap-custom {
    border-top: 5px solid #2f403c;
    color: #ffffff;
    top: 0;
    left: 0;
    padding: 30px 40px;
    background-color: var(--red-fil); /* Votre rouge vif */
    text-align: left;
    text-transform: none;
    position: relative;
    z-index: 1;
    display: block; /* S'assure que la légende prend toute la largeur */
    width: 100%;
}

/* Optionnel : Style du texte à l'intérieur pour plus de lisibilité */
.cap-custom h4 {
    color: #ffffff;
    margin-bottom: 5px;
}

.cap-custom p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

/*-----------------------------------------------------------------------------------*/
/* Testimonials */
/*-----------------------------------------------------------------------------------*/
.testimonials p {
  background: #f4f4f4;
  border-radius: 5px;
  margin-bottom: 25px;
  padding: 20px;
  position: relative;
  font-style: italic;
}
.testimonials p:after {
  border-top: 22px solid ;
  border-left: 0px solid transparent;
  border-right: 22px solid transparent;
  left: 60px;
  bottom: -22px;
  width: 0;
  height: 0;
  content: "";
  display: block;
  position: absolute;
  border-top-color: #f4f4f4;
  border-left-style: inset;
  border-right-style: inset;
}
.testimonials .testimonial-info {
  min-height: 60px;
}
.testimonials .testimonial-info span {
  color: #000000;
  font-size: 1.125rem;
}
.testimonials .testimonial-info span em {
  color: #777;
  display: block;
  font-size: 0.8125rem;
}
.testimonials .testimonial-info img {
  border: 4px solid #f4f4f4;
  float: left;
  height: 60px;
  margin-right: 15px;
  padding: 2px;
  width: 60px;
}
.testimonials .carousel-indicators {
  bottom: 46px;
  left: auto;
  right: 80px;
  width: auto;
}
.testimonials .carousel-indicators li {
  border-color: #b3b3b3;
}
.testimonials-arrows {
  bottom: 57px;
  left: auto;
  right: 37px;
  width: auto;
  position: absolute;
}
.testimonials-arrows a {
  color: #b3b3b3;
}
.testimonials-bg-primary p {
  background: #72968f;
  color: #ffffff;
}
.testimonials-bg-primary p:after {
  border-top-color: #72968f;
}
.testimonials-bg-light p {
  background: #ffffff;
}
.testimonials-bg-light p:after {
  border-top-color: #ffffff;
}
.testimonials-bg-dark p {
  background: var(--red-fil);
  color: #FFFFFF;
}
.testimonials-bg-dark p:after {
  border-top-color: var(--red-fil);
}
/*-----------------------------------------------------------------------------------*/
/* Accordions */
/*-----------------------------------------------------------------------------------*/
.panel-group .panel-heading {
  padding: 0;
}
.panel-group .panel-heading h4 {
  margin: 0;
  padding: 0;
  color: #555555;
  font-size: 1.0625rem;
}
.panel-group .panel-heading a {
  display: block;
  padding: 10px 15px;
  margin: 0;
}
.panel-group .panel-heading a:hover,
.panel-group .panel-heading a:focus {
  text-decoration: none;
}
.panel-group .panel-heading a [class^="icon-"] {
  margin-right: 4px;
  position: relative;
  top: 1px;
}
.panel-group.alternative .panel-heading {
  background: #8faca6;
}
.panel-group.alternative .panel-heading h4 a {
  color: #FFFFFF;
}
/*-----------------------------------------------------------------------------------*/
/* Carousel */
/*-----------------------------------------------------------------------------------*/
/* 1. On retire le padding du container pour que l'image touche les bords */
.carousel-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 2. On s'assure que la row ne crée pas de décalage */
.carousel-container .row.g-0 {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* 3. On force l'image à être à 100% de ce nouvel espace */
#carousel-example .carousel-inner img {
    width: 100% !important;
    display: block;
}

/* Retire l'arrondi sur le conteneur principal */
#carousel-example {
    border-radius: 0 !important;
}

/* Retire l'arrondi sur le cadre qui contient les images */
#carousel-example .carousel-inner {
    border-radius: 0 !important;
}

/* Retire l'arrondi directement sur les images (écrase la classe .rounded de Bootstrap) */
#carousel-example .carousel-inner img {
    border-radius: 0 !important;
}

#carousel-example .carousel-indicators [data-bs-target] {
    background-color: var(--red-fil) !important;
}

.carousel-control {
  background-image: none !important;
  background: rgba(255, 255, 255, 0.4);
  width: 34px;
  border-radius: 50px;
  font-size: 1rem !important;
  height: 34px;
  margin-top: -20px;
  top: 50%;
  text-shadow: none;
  opacity: 1;
}
.carousel-control:focus {
  opacity: 0.5;
}
.carousel-control.left span,
.carousel-control.icon-prev span,
.carousel-control.right span,
.carousel-control.icon-next span {
  font-size: 1.25rem;
  margin-top: -10px;
  color: rgba(0, 0, 0, 0.6);
}
.carousel-control.left,
.carousel-control.icon-prev {
  left: 20px;
}
.carousel-control.right,
.carousel-control.icon-next {
  right: 20px;
}
.carousel-indicators {
  bottom: 0;
  right: 30px;
}
.carousel-control .icon-next,
.carousel-control .glyphicon-chevron-right {
  right: auto;
}
.carousel.alternative {
  margin-bottom: 30px;
  padding: 0 40px 0px 40px;
  margin-top: 30px;
  /* Changes the position of the indicators */
  /* Changes the colour of the indicators */
}
.carousel.alternative img {
  padding: 4px;
  background: #ebebeb;
  box-shadow: 0 0 1px #b3b3b3;
}
.carousel.alternative .carousel-control.left,
.carousel.alternative .carousel-control.right {
  background-image: none !important;
  background-color: transparent;
}
.carousel.alternative .carousel-control.left span,
.carousel.alternative .carousel-control.right span {
  font-size: 1.125rem;
  background: #b3b3b3;
  border-radius: 50%;
  padding: 5px;
}
.carousel.alternative .carousel-control.left {
  left: -12px;
}
.carousel.alternative .carousel-control.right {
  right: -12px !important;
}
.carousel.alternative .carousel-indicators {
  right: 50%;
  top: auto;
  bottom: -35px;
  margin-right: -19px;
}
.carousel.alternative .carousel-indicators li {
  background: #ebebeb;
}
.carousel.alternative .carousel-indicators .active {
  background: #b3b3b3;
}
/*-----------------------------------------------------------------------------------*/
/* Thumbs Gallery */
/*-----------------------------------------------------------------------------------*/
.thumbs-gallery .clear {
  clear: both;
  height: 0px;
  width: 100%;
}
.thumbs-gallery {
  float: left;
  margin: 6px 0 0 0;
}
.thumbs-gallery i {
  background: #000000;
  display: block;
  position: absolute;
  left: 3px;
  top: 3px;
  height: 60px;
  width: 60px;
  opacity: 0;
}
.thumbs-gallery .thumbBox {
  float: left;
  margin: 2px;
  padding: 0px;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  font-size: 0;
  line-height: 0;
  position: relative;
}
.thumbs-gallery .thumbBox img {
  background-color: #e0e0e0;
  border: 1px solid #fafafa;
  padding: 3px;
}
/* SlimBox */
#lbOverlay {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  cursor: pointer;
}
#lbCenter,
#lbBottomContainer {
  position: absolute;
  z-index: 9999;
  overflow: hidden;
  background-color: #fff;
}
.lbLoading {
  background: #ffffff url(../img/loading.gif) no-repeat center;
}
#lbImage {
  position: absolute;
  left: 0;
  top: 0;
  border: 10px solid #fff;
  background-repeat: no-repeat;
}
#lbPrevLink,
#lbNextLink {
  display: block;
  position: absolute;
  top: 0;
  width: 50%;
  outline: none;
}
#lbPrevLink {
  left: 0;
}
#lbPrevLink:hover {
  background: transparent url(../img/prevlabel.gif) no-repeat 0 15%;
}
#lbNextLink {
  right: 0;
}
#lbNextLink:hover {
  background: transparent url(../img/nextlabel.gif) no-repeat 100% 15%;
}
#lbBottom {
  font-family: Verdana, Arial, Geneva, Helvetica, sans-serif;
  font-size: 0.625rem;
  color: #666;
  line-height: 1.4em;
  text-align: left;
  border: 10px solid #fff;
  border-top-style: none;
}
#lbCloseLink {
  display: block;
  float: right;
  width: 66px;
  height: 22px;
  background: transparent url(../img/closelabel.gif) no-repeat center;
  margin: 5px 0;
  outline: none;
}
#lbCaption,
#lbNumber {
  margin-right: 71px;
}
#lbCaption {
  font-weight: bold;
}
/*-----------------------------------------------------------------------------------*/
/* Blog */
/*-----------------------------------------------------------------------------------*/
.blog-post-date {
  background-color: #f4f4f4;
  padding: 0 5px;
  text-align: left;
  font-weight: 300;
  font-size: 0.625rem;
}
.blog-post-date .day,
.blog-post-date .month,
.blog-post-date .year {
  display: inline-block;
  padding: 0px 2px;
  position: relative;
  top: 0;
  vertical-align: middle;
}
.blog-post-date .month {
  text-transform: uppercase;
  font-size: 1.4em;
  color: #b3b3b3;
}
.blog-post {
  margin-bottom: 30px;
}
.blog-post-details-item {
  float: left;
  padding: 3px 10px;
  font-size: 0.75rem;
  background: #f4f4f4;
  margin: 0 10px 0 0;
}
.blog-post-details-item a {
  color: #b3b3b3;
}
.blog-item-header {
  display: block;
  padding-bottom: 0px;
  margin-bottom: 10px;
}
.blog-item-header h2 {
  padding: 20px 0 0;
}
.blog-item-header h2 a {
  color: #555555;
  text-decoration: none;
}
.blog-item-footer .blog-author p {
  padding: 0;
  margin: 0;
}
.blog-item-footer .blog-recent-comments .profile-thumb {
  padding: 10px 20px;
}
.blog-item-footer .blog-recent-comments h4 {
  color: #555555;
}
.blog-item-footer .blog-recent-comments .date {
  color: #b3b3b3;
}
.blog-item-footer .blog-recent-comments img {
  border: 5px solid #ebebeb;
  border-radius: 5px;
}
.blog-item-footer .blog-recent-comments .list-group-item {
  padding-bottom: 30px;
}
.blog-item-footer hr {
  width: 100%;
}
.blog-item-footer h4 {
  margin: 0;
  padding: 0;
}
/* Blog - Tags */
.blog-tags {
  list-style: none;
  margin: 10px 0 20px;
  overflow: hidden;
  padding: 0;
}
.blog-tags li {
  float: left;
}
.blog-tag {
  background: #F4F4F4;
  border-radius: 3px 0 0 3px;
  color: #333333;
  display: inline-block;
  font-size: 0.625rem;
  height: 22px;
  line-height: 22px;
  padding: 0 25px 0 10px;
  position: relative;
  margin: 0 7px 7px 0;
  text-decoration: none;
  -webkit-transition: color 0.2s;
  box-shadow: 1px -1px 0px rgba(0, 0, 0, 0.15) inset;
}
.blog-tag::before {
  background: #b3b3b3;
  border-radius: 10px;
  box-shadow: inset 0 1px rgba(0, 0, 0, 0.25);
  content: '';
  height: 6px;
  right: 10px;
  position: absolute;
  width: 6px;
  top: 8px;
}
.blog-tag::after {
  background: #FFF;
  border-bottom: 11px solid transparent;
  border-left: 10px solid #F4F4F4;
  border-top: 11px solid transparent;
  content: '';
  position: absolute;
  right: 0;
  top: 0;
}
.blog-tag:hover {
  background-color: #cad7d5;
  color: white;
}
.blog-tag:hover::after {
  border-left-color: #cad7d5;
}
/* Recent Posts */
ul.posts-list {
  margin-left: 0;
  padding-left: 0;
}
ul.posts-list li {
  list-style: none;
}
.recent-post {
  margin-bottom: 20px;
}
.recent-post img {
  padding-right: 10px;
}
.recent-post .recent-post-date {
  font-size: 0.6875rem;
}
.posts-list-title {
  font-size: 0.75rem;
}
/*-----------------------------------------------------------------------------------*/
/* Pages */
/*-----------------------------------------------------------------------------------*/
/* Services */
.list-services li i {
  margin-right: 10px;
  font-size: 1.125rem;
}
.list-services li {
  font-size: 1rem;
  padding: 5px 0px;
}
/* About Me */
.about-me-icons.list-inline > li {
  padding: 5px 2px;
}
.about-me-icons.list-inline > li a:hover {
  text-decoration: none;
}
/* Login */
.login-page {
  background: none repeat scroll 0 0 #FEFEFE;
  border: 1px solid #ebebeb;
  border-radius: 5px;
  box-shadow: 0 0 3px #EEEEEE;
  color: #555555;
  padding: 30px;
}
.login-page label {
  font-weight: normal;
}
/* Sign Up */
.signup-page {
  background: none repeat scroll 0 0 #FEFEFE;
  border: 1px solid #ebebeb;
  border-radius: 5px;
  box-shadow: 0 0 3px #EEEEEE;
  color: #555555;
  padding: 30px;
}
.signup-page label {
  font-weight: normal;
}
/* 404 */
.error-404-page h2 {
  font-size: 10rem;
  font-weight: bold;
  color: #b3b3b3;
}
.error-404-page h3 {
  font-size: 1.875rem;
  padding: 0 0 20px;
}
.error-404-page .search-404 {
  background: none repeat scroll 0 0 #dedede;
  border: 1px solid #ebebeb;
  border-radius: 5px;
  box-shadow: 0 0 3px #EEEEEE;
  color: #555555;
  padding: 30px;
  width: 360px;
  margin: 0 auto 30px;
}
.error-404-page .search-404 input {
  height: 33px;
  border: 1px solid #ebebeb;
  border-radius: 5px;
  width: 210px;
  padding: 5px 10px;
}
/* Person Details */
.person-details figure {
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid #ebebeb;
  border-radius: 5px;
  margin: 0;
}
.person-details figure img {
  display: block;
  max-width: 100%;
  position: relative;
}
.person-details figure figcaption {
  padding: 15px;
}
.person-details figure small {
  font-size: 0.55rem;
}
.person-details-icons {
  background: #72968f;
  padding: 10px;
  text-align: center;
  margin: 0;
}
.person-details-icons [class^="fa-"]:before,
.person-details-icons [class*=" fa-"]:before {
  color: rgba(255, 255, 255, 0.2);
  padding: 0;
}
.person-details-icons a:hover {
  text-decoration: none;
}
.person-details-icons a:hover [class^="fa-"]:before,
.person-details-icons a:hover [class*=" fa-"]:before {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}
/* Grid System */
.show-grid [class*="col-md-"] .show-grid-block {
  background-color: #8faca6;
  border: 1px solid #FFFFFF;
  color: #ffffff;
  display: block;
  line-height: 40px;
  min-height: 40px;
  text-align: center;
}
/*-----------------------------------------------------------------------------------*/
/* Footer */
/*-----------------------------------------------------------------------------------*/

.base {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.5);
}
.base .container {
  background-color: #000000;
  border-radius: 5px;
}
.base h3 {
  color: #FFFFFF;
  text-shadow: none;
  opacity: 0.8;
}
.base input,
.base button,
.base select,
.base textarea {
  color: #fff;
}
.base input {
  background: none repeat scroll 0 0 rgba(45, 55, 70, 0.15);
  border: 1px solid;
  border-color: rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1) inset;
  color: #fff;
  padding: 4px 12px;
}
.base input:focus {
  border-color: rgba(255, 255, 255, 0.4);
}


.footer a {
    text-decoration: none !important;
    color: var(--red-fil) !important;
    transition: color 0.15s ease-in;
}

/* État au survol */
.footer a:hover {
    color: var(--red-fil-dark) !important;
    text-decoration: none !important;
}

/* Copyright */
#copyright p {
  padding: 0;
  margin: 0;
}

.copyright a {
    text-decoration: none !important;
    color: var(--red-fil) !important;
    transition: color 0.15s ease-in;
}

/* État au survol */
.copyright a:hover {
    color: var(--red-fil-dark) !important;
    text-decoration: none !important;
}

/*-----------------------------------------------------------------------------------*/
/* animations */
/*-----------------------------------------------------------------------------------*/

/* --- REMPLACEMENT LÉGER DE ANIMATE.CSS --- */

/* Base pour tous les éléments animés */
.animate {
    animation-duration: 0.8s;
    animation-fill-mode: both;
    opacity: 0; 
    /* On empêche l'animation de se lancer toute seule au chargement */
    animation-play-state: paused; 
}

/* Quand le JS ajoute la classe ou quand l'élément devient visible */
.animate.is-visible {
    animation-play-state: running !important;
    opacity: 1 !important;
}

/* Cette classe permet de déclencher l'animation (souvent couplée à du JS) */
.animate.fadeIn, 
.animate.fadeInLeft, 
.animate.fadeInRight, 
.animate.fadeInUp,
.animate.fadeInDown {
    opacity: 1;
}
/* Animation Apparition simple (Utilisée dans Portfolio et About) */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fadeIn {
    animation-name: fadeIn;
}

/* Animation Apparition par la gauche (Utilisée dans About) */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-30px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fadeInLeft {
    animation-name: fadeInLeft;
}

/* Animation Apparition par la droite */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(30px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fadeInRight {
    animation-name: fadeInRight;
}

/* Animation Apparition par le bas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fadeInUp {
    animation-name: fadeInUp;
}

/* Animation Apparition par le haut */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fadeInDown {
    animation-name: fadeInDown;
}

/* Optimisation : Désactive les animations si l'utilisateur préfère réduire les mouvements */
@media (prefers-reduced-motion: reduce) {
    .animate {
        animation: none !important;
        transition: none !important;
    }
}

/* Désactivation des animations sur mobile (Optionnel mais recommandé) */
@media (max-width: 991px) {
    .animated, .animate {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        opacity: 1 !important; /* Pour éviter que les éléments restent invisibles si l'anim ne se lance pas */
    }
}

/* Vos styles très spécifiques pour très petits téléphones (iPhone SE, etc.) */
@media (max-width: 440px) {
    /* Uniquement ce qui ne peut pas être fait avec les classes Bootstrap */
    .navbar-brand img {
        max-height: 50px !important; /* On réduit un peu si l'écran est minuscule */
    }
}

/*-----------------------------------------------------------------------------------*/
/* pages secondaires */
/*-----------------------------------------------------------------------------------*/
