body {
    background: #191919;
    color: #fff;
    line-height: 1.7;
    font-size: 16px;
    font-weight: 300;
}

.p1-gradient-bg, .thumb .overlay-bg {
    background: -moz-linear-gradient(0deg, #8490ff 0%, #62bdfc 100%);
    background: -webkit-linear-gradient(0deg, #8490ff 0%, #62bdfc 100%);
    background: -ms-linear-gradient(0deg, #8490ff 0%, #62bdfc 100%);
}

.p1-gradient-color {
    background: -moz-linear-gradient(0deg, #8490ff 0%, #62bdfc 100%);
    background: -webkit-linear-gradient(0deg, #8490ff 0%, #62bdfc 100%);
    background: -ms-linear-gradient(0deg, #8490ff 0%, #62bdfc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

::-moz-selection {
    background: #000;
    color: #fff;
}

::selection {
    background: #000;
    color: #fff;
}

h1, h2, h3, h4, h5 {
    color: #fff;
    font-weight: 200;
}

h2 {
    font-size: 25px;
}

a {
    -webkit-transition: .3s all;
    -o-transition: .3s all;
    transition: .3s all;
    color: #fff;
}

    a:hover, a:focus, a:active {
        color: #fff;
        text-decoration: none;
    }

.parent-nav-link-padding, .site-navbar .navbar-nav > li > a {
    padding: 15px 20px !important;
}

.site-navbar {
    border: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    border-radius: 0px;
    margin-bottom: 0px;
    background: none;
    position: absolute;
    top: 20px;
    width: 100%;
    z-index: 200;
    background: #fff;
}

    .site-navbar .navbar-brand {
        display: inline-block;
        border: 2px solid #FF0000;
        padding: 5px 20px;
        color: #fff;
        text-transform: uppercase;
        letter-spacing: .2em;
    }

        .site-navbar .navbar-brand:hover {
            color: #fff;
        }

    .site-navbar.bg-light {
        background: transparent !important;
    }

@media (max-width: 991.98px) {
    .site-navbar.bg-light {
        background: transparent !important;
        top: 0;
    }

        .site-navbar.bg-light .navbar-brand {
            display: inline-block;
            font-size: 18px;
            border: 2px solid #000;
            padding: 2px 10px !important;
            color: #000;
        }
}

.site-navbar .navbar-nav > li > a {
    color: #fff !important;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: .1em;
    position: relative;
    text-transform: uppercase;
    letter-spacing: .2em;
}

@media (max-width: 991.98px) {
    .site-navbar .navbar-nav > li > a {
        color: #fff !important;
    }
}

.site-navbar .navbar-nav.active > a {
    color: #bac964 !important;
}

.site-navbar.scrolled {
    background: #fff;
    -webkit-box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.09);
    box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.09);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    -webkit-transform: translateY(0%);
    -ms-transform: translateY(0%);
    transform: translateY(0%);
}

    .site-navbar.scrolled.bg-light {
        background: rgba(64, 64, 64, 0.8) !important;
        backdrop-filter: blur(5px);
    }

    .site-navbar.scrolled .navbar-brand {
        display: inline-block;
        font-size: 18px;
        border: 2px solid #000;
        padding: 2px 10px !important;
    }

    .site-navbar.scrolled.awake, .site-navbar.scrolled.sleep {
        -webkit-transition: .3s all ease;
        -o-transition: .3s all ease;
        transition: .3s all ease;
    }

    .site-navbar.scrolled.awake {
        -webkit-transform: translateY(0%);
        -ms-transform: translateY(0%);
        transform: translateY(0%);
        background: #fff !important;
    }

    .site-navbar.scrolled.sleep {
        -webkit-transform: translateY(-100%);
        -ms-transform: translateY(-100%);
        transform: translateY(-100%);
        background: #bac964 !important;
    }

    .site-navbar.scrolled .navbar-brand {
        color: #000;
    }

    .site-navbar.scrolled .dropdown > a:before {
        color: rgba(0, 0, 0, 0.4);
    }

    .site-navbar.scrolled .navbar-nav > li > a {
        color: rgba(0, 0, 0, 0.7) !important;
    }

        .site-navbar.scrolled .navbar-nav > li > a:hover {
            color: #fff !important;
        }

        .site-navbar.scrolled .navbar-nav > li > a.active {
            color: #fff !important;
        }

    .site-navbar.scrolled .navbar-nav > li.active > a {
        color: #fff !important;
    }

    /* Styles spécifiques au mode clair */
@media (prefers-color-scheme: light) {
    body {
        background: #fff;
        color: #000;
    }

    .p1-gradient-bg, .thumb .overlay-bg {
        background: -moz-linear-gradient(0deg, #8490ff 0%, #62bdfc 100%);
        background: -webkit-linear-gradient(0deg, #8490ff 0%, #62bdfc 100%);
        background: -ms-linear-gradient(0deg, #8490ff 0%, #62bdfc 100%);
    }

    .p1-gradient-color {
        background: -moz-linear-gradient(0deg, #8490ff 0%, #62bdfc 100%);
        background: -webkit-linear-gradient(0deg, #8490ff 0%, #62bdfc 100%);
        background: -ms-linear-gradient(0deg, #8490ff 0%, #62bdfc 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    ::-moz-selection {
        background: #191919;
        color: #fff;
    }

    ::selection {
        background: #191919;
        color: #fff;
    }

    h1, h2, h3, h4, h5 {
        color: #000;
        font-weight: 200;
    }

    h2 {
        font-size: 25px;
    }

    a {
        color: #000;
    }

    a:hover, a:focus, a:active {
        color: #000;
        text-decoration: none;
    }

    .site-navbar {
        background: #fff;
    }

    .site-navbar {
        border: none;
        -webkit-box-shadow: none;
        box-shadow: none;
        border-radius: 0px;
        margin-bottom: 0px;
        background: none;
        position: absolute;
        top: 20px;
        width: 100%;
        z-index: 200;
        background: #fff;
    }
    
        .site-navbar .navbar-brand {
            display: inline-block;
            border: 2px solid #FF0000;
            padding: 5px 20px;
            color: #fff;
            text-transform: uppercase;
            letter-spacing: .2em;
        }
    
            .site-navbar .navbar-brand:hover {
                color: #fff;
            }
    
        .site-navbar.bg-light {
            background: transparent !important;
        }
    
    @media (max-width: 991.98px) {
        .site-navbar.bg-light {
            background: transparent !important;
            top: 0;
        }
    
            .site-navbar.bg-light .navbar-brand {
                display: inline-block;
                font-size: 18px;
                border: 2px solid #000;
                padding: 2px 10px !important;
                color: #000;
            }
    }
    
    .site-navbar .navbar-nav > li > a {
        color: #fff !important;
        font-size: 14px;
        font-weight: 400;
        letter-spacing: .1em;
        position: relative;
        text-transform: uppercase;
        letter-spacing: .2em;
    }
    
    @media (max-width: 991.98px) {
        .site-navbar .navbar-nav > li > a {
            color: #fff !important;
        }
    }
    
    .site-navbar .navbar-nav.active > a {
        color: #bac964 !important;
    }
    
    .site-navbar.scrolled {
        background: #fff;
        -webkit-box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.09);
        box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.09);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        -webkit-transform: translateY(0%);
        -ms-transform: translateY(0%);
        transform: translateY(0%);
    }
    
        .site-navbar.scrolled.bg-light {
            background: rgba(64, 64, 64, 0.8) !important;
            backdrop-filter: blur(5px);
        }
    
        .site-navbar.scrolled .navbar-brand {
            display: inline-block;
            font-size: 18px;
            border: 2px solid #000;
            padding: 2px 10px !important;
        }
    
        .site-navbar.scrolled.awake, .site-navbar.scrolled.sleep {
            -webkit-transition: .3s all ease;
            -o-transition: .3s all ease;
            transition: .3s all ease;
        }
    
        .site-navbar.scrolled.awake {
            -webkit-transform: translateY(0%);
            -ms-transform: translateY(0%);
            transform: translateY(0%);
            background: #fff !important;
        }
    
        .site-navbar.scrolled.sleep {
            -webkit-transform: translateY(-100%);
            -ms-transform: translateY(-100%);
            transform: translateY(-100%);
            background: #bac964 !important;
        }
    
        .site-navbar.scrolled .navbar-brand {
            color: #000;
        }
    
        .site-navbar.scrolled .dropdown > a:before {
            color: rgba(0, 0, 0, 0.4);
        }
    
        .site-navbar.scrolled .navbar-nav > li > a {
            color: rgba(0, 0, 0, 0.7) !important;
        }
    
            .site-navbar.scrolled .navbar-nav > li > a:hover {
                color: #fff !important;
            }
    
            .site-navbar.scrolled .navbar-nav > li > a.active {
                color: #fff !important;
            }
    
        .site-navbar.scrolled .navbar-nav > li.active > a {
            color: #fff !important;
        }
}

/* Mode sombre (actuel) */
.site-hero {
    background-color: #ccc;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}
.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4); /* assombrit la vidéo pour une meilleure lisibilité du texte */
  z-index: 2;
}

.content-layer {
  position: relative;
  z-index: 3;
}


.site-hero, .site-hero .row {
    height: 100vh;
    min-height: 800px;
}

.site-hero:before {
    content: "";
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.site-hero h1 {
    font-weight: 200;
    margin-bottom: 20px;
    display: block;
}

.site-hero h1 strong {
    font-weight: 800;
}

.site-hero h1, .site-hero .lead {
    font-weight: 200;
    color: #fff;
}

.site-hero .lead {
    line-height: 2;
}

.site-hero .site-subheading {
    max-width: 640px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.5);
}

.site-section {
    padding: 5em 0;
}

.section-heading {
    margin-bottom: 30px;
    position: relative;
    z-index: 10;
}

.section-heading h2 {
    position: relative;
    font-weight: 200;
    padding-top: 20px;
    font-size: 30px;
}

.section-heading h2 strong {
    font-weight: 800;
}

.section-heading.text-center h2:before {
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
}

.lead {
    font-weight: 200;
    line-height: 1.5;
}

.site-service-item {
    background: #333;
    padding: 30px;
}

.site-service-item .icon {
    display: block;
    margin-bottom: 50px;
    background: #edf0f2;
    background: #fff;
    width: 100px;
    height: 100px;
    position: relative;
    border-radius: 50%;
    margin: 0 auto 30px auto;
}

.site-service-item .icon span {
    font-size: 40px;
    color: #080b0e;
    position: absolute;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
}

.site-service-item h3 {
    font-size: 20px;
    font-weight: 200;
}

.site-link {
    position: relative;
}

.site-link i {
    position: relative;
    top: 2px;
    -webkit-transition: .3s all ease;
    -o-transition: .3s all ease;
    transition: .3s all ease;
}

.site-link:hover i {
    position: relative;
    margin-left: 20px;
}

.site-list {
    padding: 0;
    margin: 0;
}

.site-list li {
    margin: 0 0 10px 0;
    padding: 0;
    position: relative;
    list-style: none;
}

.site-list li:before {
    font-family: 'icomoon';
    position: absolute;
    top: .1em;
    left: 0;
}

.site-list li.site-check {
    padding-left: 30px;
}

.site-list li.site-check:before {
    color: #bac964;
    font-size: 16px;
    content: "\ebd3";
}

/* Mode clair */
@media (prefers-color-scheme: light) {
    .site-hero {
        background-color: #f0f0f0;  /* Exemple de fond pour le mode clair */
    }

    .site-hero h1, .site-hero .lead {
        color: #fff;  /* Texte en noir pour le mode clair */
    }

    .site-hero .site-subheading {
        color: rgba(0, 0, 0, 0.5);  /* Texte moins transparent */
    }

    .site-service-item {
        background: #fafafa;  /* Un fond plus clair pour les services */
    }

    .site-service-item .icon {
        background: #e0e0e0;  /* Couleur plus claire pour l'icône */
    }

    .site-service-item .icon span {
        color: #333;  /* Couleur sombre pour l'icône */
    }

    .site-section {
        padding: 5em 0;
    }

    .section-heading h2 {
        font-weight: 200;
        color: #000;  /* Texte en noir pour les titres */
    }

    .site-link {
        color: #333;  /* Liens plus foncés */
    }

    .site-list li.site-check:before {
        color: #7fa94f;  /* Couleur différente pour les coches en mode clair */
    }
}


/* Mode sombre (actuel) */
.btn {
    border-radius: 100px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .2rem;
}

.btn:active, .btn:focus {
    outline: none;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
}

.btn.btn-primary {
    background-color: #0056b3;
    color: #fff;
    border: none; /* Optionnel : pour enlever les bordures */
}

.btn.btn-primary:hover, .btn.btn-primary:active, .btn.btn-primary:focus {
    background-color: #004095; /* Couleur légèrement plus foncée au survol */
}

.progress {
    overflow: visible;
    margin-bottom: 26px;
    height: 4px;
}

.progress .progress-bar {
    background-color: #bac964;
    position: relative;
    border-radius: 4px;
}

.progress .progress-bar span {
    background-color: #bac964;
    position: absolute;
    bottom: -20px;
    font-size: 10px;
    line-height: 10px;
    padding: 2px 3px 2px 4px;
    right: -1.4em;
    border-radius: 2px;
}

.progress .progress-bar span:after {
    bottom: 100%;
    left: 50%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border-color: rgba(255, 255, 255, 0);
    border-bottom-color: #bac964;
    border-width: 5px;
    margin-left: -5px;
}

.skill h3 {
    font-size: 18px;
}

.filters {
    text-align: center;
}

.filters ul {
    padding: 0;
    margin: 0 0 30px 0;
}

.filters ul li {
    display: inline-block;
    cursor: pointer;
    padding: 20px;
    -webkit-transition: .3s all ease;
    -o-transition: .3s all ease;
    transition: .3s all ease;
}

.filters ul li:hover {
    color: #fff;
}

.filters ul li.active {
    color: #fff;
}

.single-portfolio {
    margin-bottom: 50px;
    display: block;
}

.single-portfolio .relative {
    margin-bottom: 20px;
}

.single-portfolio .p-inner {
    text-align: center;
}

.single-portfolio .p-inner h4 {
    font-size: 20px;
}

.single-portfolio .p-inner .cat {
    font-size: 12px;
    text-transform: uppercase;
    color: #cccccc;
}

/*--------- Start Portfolio Area -------------*/
.portfolio-area .primary-btn {
    color: #0056b3;
    background-color: #0056b3;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-area .filters {
    text-align: center;
}

.portfolio-area .filters ul {
    padding: 0;
}

.portfolio-area .filters ul li {
    list-style: none;
    display: inline-block;
    padding: 18px 15px;
    cursor: pointer;
    position: relative;
    text-transform: uppercase;
    color: #000;
    font-size: 12px;
    font-weight: 500;
}

@media (max-width: 736px) {
    .portfolio-area .filters ul li {
        padding: 6px 6px;
    }
}

.portfolio-area .filters ul li:after {
    content: "";
    display: block;
    width: calc(0% - 60px);
    position: absolute;
    height: 2px;
    background: #333;
    -webkit-transition: width 350ms ease-out;
    -o-transition: width 350ms ease-out;
    transition: width 350ms ease-out;
}

.portfolio-area .filters ul li:hover:after {
    width: calc(100% - 60px);
    -webkit-transition: width 350ms ease-out;
    -o-transition: width 350ms ease-out;
    transition: width 350ms ease-out;
}

.portfolio-area .filters ul li.active {
    color: #bac964;
}

.portfolio-area .filters-content {
    margin-top: 50px;
}

.portfolio-area .filters-content .show {
    opacity: 1;
    visibility: visible;
    -webkit-transition: all 350ms;
    -o-transition: all 350ms;
    transition: all 350ms;
}

.portfolio-area .filters-content .hide {
    opacity: 0;
    visibility: hidden;
    -webkit-transition: all 350ms;
    -o-transition: all 350ms;
    transition: all 350ms;
}

.portfolio-area .filters-content .item {
    text-align: center;
    cursor: pointer;
    margin-bottom: 30px;
}

.portfolio-area .filters-content .item img {
    border-radius: 10px;
}

.portfolio-area .filters-content .p-inner {
    padding: 20px 0px;
    text-align: center;
}

.portfolio-area .filters-content .item .p-inner .cat {
    font-size: 13px;
}

.portfolio-area .filters-content .item img {
    width: 100%;
}

/* Mode clair */
@media (prefers-color-scheme: light) {
    .btn.btn-primary {
        background-color: #007bff; /* Couleur plus claire pour le mode clair */
        color: #fff; /* Texte noir */
    }

    .btn.btn-primary:hover, .btn.btn-primary:active, .btn.btn-primary:focus {
        background-color: #0056b3; /* Couleur plus foncée au survol */
    }

    .progress .progress-bar {
        background-color: #80c34d; /* Un vert plus doux pour la barre de progression */
    }

    .progress .progress-bar span {
        background-color: #80c34d;
    }

    .filters ul li {
        color: #333; /* Texte gris foncé pour les éléments de filtre */
    }

    .filters ul li:hover {
        color: #007bff; /* Changer la couleur au survol */
    }

    .filters ul li.active {
        color: #007bff; /* Activer la couleur bleue */
    }

    .portfolio-area .primary-btn {
        color: #007bff;
        background-color: #007bff; /* Bouton primaire en bleu clair */
    }

    .portfolio-area .filters ul li {
        color: #007bff; /* Liens de filtre en bleu clair */
    }

    .portfolio-area .filters ul li.active {
        color: #80c34d; /* Activer la couleur verte pour les éléments actifs */
    }

    .single-portfolio .p-inner .cat {
        color: #999999; /* Couleur plus claire pour les catégories */
    }

    .single-portfolio .p-inner h4 {
        color: #333; /* Titre en gris foncé */
    }
}


/* Mode sombre (actuel) */
.image {
    opacity: 1;
    display: block;
    width: 100%;
    height: 100%;
    -webkit-transition: .5s ease;
    -o-transition: .5s ease;
    transition: .5s ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.middle {
    -webkit-transition: .5s ease;
    -o-transition: .5s ease;
    transition: .5s ease;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    text-align: center;
}

.single-portfolio:hover .middle {
    opacity: 1;
}

.text {
    color: white;
    font-size: 25px;
    padding: 16px 32px;
}

.single-portfolio {
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.single-portfolio:hover .thumb .overlay-bg {
    opacity: .85;
}

.thumb .overlay-bg {
    opacity: 0;
    border-radius: 5px;
    -webkit-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}

@media screen and (prefers-reduced-motion: reduce) {
    .thumb .overlay-bg {
        -webkit-transition: none;
        -o-transition: none;
        transition: none;
    }
}

.resume-item {
    padding: 30px;
    background: #333;
    -webkit-transition: .3s all ease;
    -o-transition: .3s all ease;
    transition: .3s all ease;
    border: 4px solid transparent;
    border-radius: 7px;
}

.resume-item .date {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.resume-item .school {
    display: block;
    font-size: 16px;
}

.resume-item h3 {
    color: #fff;
    font-size: 20px;
}

.resume-item .school {
    color: rgba(255, 255, 255, 0.3);
}

.resume-item *:last-child {
    margin-bottom: 0;
}

.blog-entry {
    -webkit-transition: .3s all ease;
    -o-transition: .3s all ease;
    transition: .3s all ease;
    position: relative;
    top: 0;
    -webkit-box-shadow: 0 1px 2px 0px rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 2px 0px rgba(0, 0, 0, 0.1);
    background: #333;
}

.blog-entry:hover, .blog-entry:active, .blog-entry:focus {
    -webkit-box-shadow: 0 5px 50px -10px rgba(0, 0, 0, 0.1);
    box-shadow: 0 5px 50px -10px rgba(0, 0, 0, 0.1);
    top: -2px;
}

.blog-entry .blog-entry-text {
    border-top: none;
    padding: 30px;
}

.blog-entry .blog-entry-text h3 {
    font-size: 20px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.blog-entry .blog-entry-text h3 a {
    color: #fff;
}

.blog-entry .blog-entry-text h3 a:hover {
    color: #fff;
}

.blog-entry .meta {
    font-size: 14px;
}

.blog-entry .meta a {
    display: inline-block;
    margin-right: 10px;
    color: rgba(255, 255, 255, 0.4);
}

.blog-entry .meta a:hover {
    color: #bac964;
}

.form-control {
    border: none !important;
    background: #333;
    color: #fff;
    -webkit-box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1) !important;
}

.form-control:active, .form-control:focus {
    background: #404040;
    color: #fff;
}

.form-control::-webkit-input-placeholder {
    color: #fff;
    opacity: 0.6;
}

.form-control::-moz-placeholder {
    color: #fff;
    opacity: 0.6;
}

.form-control:-ms-input-placeholder {
    color: #fff;
    opacity: 0.6;
}

.form-control:-moz-placeholder {
    color: #fff;
    opacity: 0.6;
}

.site-contact-details, .site-contact-details li {
    padding: 0;
    margin: 0;
}

.site-contact-details li {
    list-style: none;
    margin-bottom: 20px;
}

.site-contact-details li > span {
    color: #0056b3;
    letter-spacing: .1em;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
}

/* Mode clair */
@media (prefers-color-scheme: light) {
    .text {
        color: #333; /* Texte noir */
    }

    .resume-item {
        background: #f8f9fa; /* Fond clair */
        border-color: #ddd; /* Bordure claire */
    }

    .resume-item .date {
        color: #333; /* Texte sombre */
    }

    .resume-item h3 {
        color: #333; /* Titre sombre */
    }

    .resume-item .school {
        color: #777; /* Texte secondaire plus clair */
    }

    .blog-entry {
        background: #f8f9fa; /* Fond clair */
        box-shadow: 0 1px 2px 0px rgba(0, 0, 0, 0.05); /* Ombre subtile */
    }

    .blog-entry .blog-entry-text {
        padding: 30px;
    }

    .blog-entry .blog-entry-text h3 a {
        color: #333; /* Lien sombre */
    }

    .blog-entry .meta a {
        color: rgba(0, 0, 0, 0.6); /* Lien plus clair */
    }

    .blog-entry .meta a:hover {
        color: #0056b3; /* Lien au survol */
    }

    .form-control {
        background-color: #f7f7f7; /* Fond légèrement gris */
        color: #000; /* Texte en noir */
        padding: 20px;
        border-radius: 8px;
        border: 1px solid #ccc; /* Bordure grise */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ombre subtile */
    }

    .form-control:active, .form-control:focus {
        background: #e9ecef; /* Fond clair au focus */
        border-color: #007bff; /* Bordure bleue au focus */
        color: #000; /* Texte en noir même au focus */
    }

    .form-control::-webkit-input-placeholder {
        color: #777; /* Texte des placeholders en gris clair */
        opacity: 1;
    }

    .form-control::-moz-placeholder {
        color: #777; /* Texte des placeholders en gris clair */
        opacity: 1;
    }

    .form-control:-ms-input-placeholder {
        color: #777; /* Texte des placeholders en gris clair */
        opacity: 1;
    }

    .form-control:-moz-placeholder {
        color: #777; /* Texte des placeholders en gris clair */
        opacity: 1;
    }

    .site-contact-details li > span {
        color: #0056b3; /* Titre des éléments en bleu */
    }
}



/* Mode sombre (actuel) */
.site-footer {
    padding: 3em 0;
}

.site-footer p:last-child {
    margin-bottom: 0;
}

.site-footer .social-item {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: #333;
    position: relative;
    border-radius: 50%;
    font-size: 22px;
    margin: 0 10px;
}

.site-footer .social-item > span {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.block-47 .block-47-image {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 50px;
    flex: 0 0 50px;
    display: block;
}

.block-47 .block-47-image img {
    border-radius: 50%;
    -webkit-box-shadow: 0 2px 10px 0px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 10px 0px rgba(0, 0, 0, 0.2);
}

.block-47 .block-47-quote {
    margin-left: 40px;
    padding: 30px;
    background: #333;
    border-radius: 7px;
    position: relative;
    -webkit-box-shadow: 0 2px 30px -2px rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 30px -2px rgba(0, 0, 0, 0.1);
}

.block-47 .block-47-quote:before {
    content: "";
    border: 1px solid red;
    z-index: 2;
    position: absolute;
    left: -15px;
    border-width: 0 20px 20px 0;
    border-style: solid;
    border-color: transparent #333 transparent transparent;
}

.block-47 .block-47-quote .block-47-quote-author {
    font-size: 14px;
    color: #666666;
}

.letter-spacing {
    letter-spacing: .2rem;
    color: rgba(255, 255, 255, 0.5) !important;
}

.flex-grow-1 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    transition: max-height 0.3s ease;
}

.single-portfolio.expanded .flex-grow-1 {
    -webkit-line-clamp: unset;
    overflow: visible;
    max-height: 100vh;
}

.single-portfolio .show-less {
    display: none;
}

.single-portfolio.expanded .learn-more {
    display: none;
}

.single-portfolio.expanded .show-less {
    display: inline;
}

/* Carte en plein écran */
.single-portfolio.expanded-full {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 10;
    background: #333;
    color: #fff;
    padding: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;
    overflow: auto;
}

/* Autres cartes en arrière-plan (dimmed) */
.single-portfolio.dimmed {
    opacity: 0.3;
    filter: blur(2px);
    pointer-events: none;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

/* Assurez-vous que Show Less reste toujours visible */
.single-portfolio.expanded-full .show-less {
    display: inline;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 20;
    background: #000;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.single-portfolio.expanded-full .learn-more {
    display: none;
}

.hidden {
    display: none !important;
}

/* Mode clair */
@media (prefers-color-scheme: light) {
    .site-footer .social-item {
        background: #f1f1f1; /* Fond clair pour les icônes de réseaux sociaux */
    }

    .site-footer .social-item > span {
        color: #333; /* Texte sombre sur les icônes */
    }

    .block-47 .block-47-quote {
        background: #fff; /* Fond clair pour les citations */
        color: #333; /* Texte sombre */
        box-shadow: 0 2px 30px -2px rgba(0, 0, 0, 0.1); /* Ombre légère */
    }

    .block-47 .block-47-quote:before {
        border-color: transparent #fff transparent transparent; /* Bordure de citation adaptée au mode clair */
    }

    .block-47 .block-47-quote .block-47-quote-author {
        color: #999; /* Auteur de citation en gris clair */
    }

    .letter-spacing {
        color: rgba(0, 0, 0, 0.6) !important; /* Lettre espacée avec texte sombre */
    }

    .single-portfolio.expanded-full {
        background: #fff; /* Fond blanc pour la carte */
        color: #333; /* Texte sombre */
    }

    .single-portfolio.dimmed {
        opacity: 0.6; /* Moins de transparence pour les cartes non sélectionnées */
    }

    .single-portfolio.expanded-full .show-less {
        background: #ddd; /* Fond clair pour le bouton "Show less" */
        color: #333; /* Texte sombre */
    }

    .single-portfolio.expanded-full .learn-more {
        display: inline;
        background: #f1f1f1; /* Fond léger pour le bouton "Learn more" */
        color: #333; /* Texte sombre */
    }

    .hidden {
        display: none !important;
    }
}

/* Mode sombre (actuel) */
.project-details {
    background: #333;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

.project-details.d-none {
    display: none;
}

.project-details .details-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}


.project-details .btn-back {
    display: block;
    margin: 20px auto 0;
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.project-details .btn-back:hover {
    background-color: #0056b3;
}

.filter-list li {
    color: rgba(255, 255, 255, 0.6); /* Couleur plus foncée par défaut */
    transition: color 0.3s ease;
}

.filter-list li.active {
    color: #fff; /* Couleur blanche pour l'élément actif */
}

.project-item {
    display: flex;
    align-items: center;
    gap: 20px; /* Espacement entre l'image et le texte */
}

.project-image {
    width: auto; /* Taille de l'image, ajuste selon ton besoin */
    height: auto;
    object-fit: cover;
}


.project-info {
    flex-grow: 1;
    text-align: left;
}

.project-info h3 {
    font-weight: bold; /* Titre en gras */
}

/* Style du conteneur de l'icône (le cercle) */
.site-service-item .icon {
    display: flex;  /* Utilisation de flexbox */
    justify-content: center;  /* Centre horizontalement */
    align-items: center;  /* Centre verticalement */
    width: 100px;    /* Taille du cercle */
    height: 100px;   /* Taille du cercle */
    background: #edf0f2;
    border-radius: 50%;  /* Cercle */
    margin: 0 auto 30px auto;
}

/* Style pour le SVG */
.site-service-item .icon-svg {
    max-width: 75px;   /* Limite la largeur du SVG à 70px */
    max-height: 75px;  /* Limite la hauteur du SVG à 70px */
    fill: #080b0e;     /* Couleur du SVG */
    display: block;    /* Pour éviter tout espace inutile autour du SVG */
}

.project-details-container ul {
    padding-left: 20px;
}

.project-images {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.project-image {
    width: auto;
    height: auto;
    object-fit: contain;
}

.project-footer {
    text-align: center;
    margin-top: 30px;
}

.project-footer p {
    font-size: 0.9rem;
    color: #777;
}

/* Style du modal */
.cursor-pointer {
    cursor: pointer;
}

#customModal, #customModalPatriarche {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(25, 25, 25, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: hidden;
    pointer-events: none;
}

.modal-content {
    background: #191919;
    width: 90%; /* Augmentez la largeur du modal */
    max-width: 800px; /* Limite la largeur maximale pour les grands écrans */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    text-align: center;
    max-height: 90%; /* Augmentez la hauteur maximale du modal */
    overflow-y: auto;
    color: #fff;
    pointer-events: auto;
}

.close-btn {
    position: fixed; /* Fixe la croix à une position sur l'écran */
    top: 10px; /* Distance du haut */
    right: 20px; /* Distance de la gauche */
    font-size: 32px;
    cursor: pointer;
    color: #fff; /* Couleur de la croix */
    background: none; /* Pas de fond */
    border: none; /* Pas de bordure */
    padding: 0;
    transition: color 0.3s ease;
    z-index: 10; /* Assure que la croix soit au-dessus de tout le reste du modal */
}

.close-btn:hover {
    color: #f00; /* Change la couleur de la croix au survol */
}

@media (max-width: 768px) {
    .close-btn {
        top: 0; /* Assurez-vous que le bouton est tout en haut sur les petits écrans */
        right: 0; /* Assurez-vous que le bouton est tout à droite sur les petits écrans */
        font-size: 28px; /* Réduisez légèrement la taille de la police pour les petits écrans */
        padding: 5px; /* Réduisez le padding pour les petits écrans */
    }
}

/* Image de couverture */
.profile-header {
    position: relative;
    width: 100%;
    height: 300px; /* Augmentez la hauteur de l'image de couverture */
    background: #f0f0f0;
}

.cover-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mode clair */
@media (prefers-color-scheme: light) {
    .project-details {
        background: #fff; /* Fond clair pour le détail du projet */
        color: #333; /* Texte sombre */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Ombre légère pour un effet subtil */
    }

    .project-details .btn-back {
        background-color: #007bff;
        color: #fff;
    }

    .project-details .btn-back:hover {
        background-color: #0056b3;
    }

    .filter-list li {
        color: rgba(0, 0, 0, 0.6); /* Couleur foncée pour les éléments de la liste */
    }

    .filter-list li.active {
        color: #000; /* Couleur noire pour l'élément actif */
    }

    .project-info h3 {
        color: #000; /* Titre sombre */
    }

    .site-service-item .icon {
        background: #f0f0f0; /* Fond clair pour le cercle */
    }

    .site-service-item .icon-svg {
        fill: #333; /* SVG en couleur sombre */
    }

    .project-footer p {
        color: #333; /* Texte sombre dans le footer */
    }

    /* Modal mode clair */
    #customModal, #customModalPatriarche {
        background: rgba(255, 255, 255, 0.9); /* Fond clair pour le modal */
    }

    .modal-content {
        background: #fff; /* Fond clair pour le contenu du modal */
        color: #333; /* Texte sombre */
    }

    .close-btn {
        color: #333; /* Couleur sombre pour le bouton de fermeture */
    }

    .close-btn:hover {
        color: #f00; /* Couleur rouge au survol */
    }

    .profile-header {
        background: #f0f0f0; /* Fond léger pour l'image de couverture */
    }
}

	
/* Image de profil à gauche */
.profile-picture {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    position: absolute;
    bottom: -60px;
    left: 20px;
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Informations du profil */
.profile-info {
    padding: 70px 20px 20px; 
    text-align: left;
    background: #191919; /* Sombre par défaut */
    color: #fff;
}

.profile-info h2 {
    color: #fff;
}

.profile-info p, .profile-info ul {
    color: #ccc;
}

.profile-info ul {
    list-style: none;
    padding: 0;
}

.profile-info ul li {
    padding: 5px 0;
}

/* Mode clair */
@media (prefers-color-scheme: light) {
    .profile-info {
        background: #f9f9f9; /* Fond clair pour les informations du profil */
        color: #333; /* Texte sombre pour une bonne lisibilité */
    }

    .profile-info h2 {
        color: #333; /* Titre sombre */
    }

    .profile-info p, .profile-info ul {
        color: #555; /* Texte un peu plus clair pour les paragraphes et listes */
    }

    .profile-info ul li {
        padding: 5px 0;
        color: #555; /* Texte des éléments de la liste en couleur sombre */
    }

    .profile-picture {
        border: 4px solid #f9f9f9; /* Bordure claire pour le profil */
    }
}

.highlight {
    color: #fff; /* Blanc en mode sombre */
}

/* Mode clair */
@media (prefers-color-scheme: light) {
    .highlight {
        color: #333; /* Gris foncé ou noir pour le texte en mode clair */
    }
}
/* Styles par défaut */
.main-timeline {
    font-family: 'Poppins', sans-serif;
}

.main-timeline:after {
    content: '';
    display: block;
    clear: both;
}

.main-timeline .timeline {
    width: 50%;
    margin: 0 5px 15px 0;
    float: left;
}

.main-timeline .timeline-content {
    background: linear-gradient(to right, transparent, #eee);
    min-height: 120px;
    padding: 120px 20px 20px;
    display: block;
    position: relative;
    z-index: 1;
    word-wrap: break-word;
}

.main-timeline .timeline-content:hover {
    text-decoration: none;
}

.main-timeline .timeline-icon {
    color: #555;
    background: #eee;
    font-size: 40px;
    text-align: center;
    line-height: 80px;
    width: 70px;
    height: 80px;
    position: absolute;
    left: 20px;
    top: 20px;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.main-timeline .timeline-year {
    color: #fff;
    background-color: #FF9521;
    font-size: 22px;
    font-weight: 600;
    padding: 13px 30px;
    border-radius: 0 0 10px 10px;
    position: absolute;
    top: 0;
    right: 0;
}

.main-timeline .timeline-year:after {
    content: '';
    background-color: #DE7101;
    height: 40px;
    width: 20px;
    border-radius: 0 0 10px 0;
    transform: rotate(-20deg);
    position: absolute;
    right: -8px;
    top: 3px;
    z-index: -1;
}

.main-timeline .title {
    color: #FF9521;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: capitalize;
    margin: 0 0 7px;
}

.main-timeline .description {
    color: #666;
    font-size: 13px;
    font-weight: 400;
    line-height: 21px;
    letter-spacing: 1px;
    margin: 0;
}

.main-timeline .timeline:nth-child(even) {
    margin: 0 0 15px 5px;
    float: right;
}

.main-timeline .timeline:nth-child(even) .timeline-content {
    background: linear-gradient(to left, transparent, #eee);
}

.main-timeline .timeline:nth-child(even) .timeline-icon {
    left: auto;
    right: 0;
}

.main-timeline .timeline:nth-child(even) .timeline-year {
    left: 0;
    right: auto;
}

.main-timeline .timeline:nth-child(even) .timeline-year:after {
    border-radius: 0 0 0 10px;
    transform: rotate(20deg);
    left: -8px;
    right: 0;
}

.main-timeline .timeline:nth-child(2) .timeline-year {
    background-color: #00B7B5;
}

.main-timeline .timeline:nth-child(2) .timeline-year:after {
    background-color: #0073A1;
}

.main-timeline .timeline:nth-child(2) .title {
    color: #00B7B5;
}

.main-timeline .timeline:nth-child(3) .timeline-year {
    background-color: #F03C5B;
}

.main-timeline .timeline:nth-child(3) .timeline-year:after {
    background-color: #BC173F;
}

.main-timeline .timeline:nth-child(3) .title {
    color: #F03C5B;
}

.main-timeline .timeline:nth-child(4) .timeline-year {
    background-color: #8743B5;
}

.main-timeline .timeline:nth-child(4) .timeline-year:after {
    background-color: #592283;
}

.main-timeline .timeline:nth-child(4) .title {
    color: #8743B5;
}

@media screen and (max-width: 767px) {
    .main-timeline .timeline,
    .main-timeline .timeline:nth-child(even) {
        width: 100%;
        padding: 0 10px;
        margin: 0 0 30px;
    }
}

@media screen and (max-width: 480px) {
    .main-timeline .timeline-icon {
        display: none;
    }
}

/* Styles pour le mode sombre */
@media (prefers-color-scheme: dark) {
    .main-timeline .timeline-content {
        background: linear-gradient(to right, transparent, #222);
    }

    .main-timeline .timeline:nth-child(even) .timeline-content {
        background: linear-gradient(to left, transparent, #222);
    }

    .main-timeline .timeline-icon {
        color: #ccc;
        background: #555;
    }

    .main-timeline .description {
        color: #ccc;
    }

    .main-timeline .timeline:nth-child(2) .timeline-year {
        background-color: #007775;
    }

    .main-timeline .timeline:nth-child(2) .timeline-year:after {
        background-color: #004361;
    }

    .main-timeline .timeline:nth-child(3) .timeline-year {
        background-color: #A01C3B;
    }

    .main-timeline .timeline:nth-child(3) .timeline-year:after {
        background-color: #7C071F;
    }

    .main-timeline .timeline:nth-child(4) .timeline-year {
        background-color: #572385;
    }

    .main-timeline .timeline:nth-child(4) .timeline-year:after {
        background-color: #390253;
    }
}

.single-portfolio.expanded-full {
    position: relative;
    z-index: 10;
    transform: scale(1.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.single-portfolio.dimmed {
    opacity: 0.2;
    filter: blur(2px);
    pointer-events: none;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.project-details.active {
    opacity: 1;
    max-height: 1000px;
    transition: opacity 0.3s ease, max-height 0.5s ease;
}

.project-details.d-none {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, max-height 0.5s ease;
}

.btn-back {
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.project-details-container h3 {
    font-weight: bold;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.project-details-container p strong {
    font-weight: bold;
}

h3 {
    font-weight: bold;
}
.project-images {
    display: flex;
    flex-wrap: wrap; /* Permet aux images de passer à la ligne si nécessaire */
    justify-content: center;
    align-items: center;
    gap: 10px; /* Espace entre les images */
    margin-top: 20px;
}

.project-image {
    max-width: 100%; /* Assure que l'image ne dépasse pas la largeur de son conteneur */
    height: auto; /* Garde les proportions de l'image */
    object-fit: contain; /* Affiche l'image entièrement sans la couper */
    display: block; /* Supprime l'espace sous l'image */
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-animate {
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.5s;
}


.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.25, 0.1, 0.25, 1), 
              transform 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: opacity, transform;
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.phone-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.country-select {
    flex: 0 0 140px;
    max-width: 140px;
    padding: 10px;
}

.phone-input {
    flex: 1;
    padding: 10px;
}


.site-form {
  margin: 0 auto;
  max-width: 600px;
}
