.bgblue {
  background: linear-gradient(135deg, #fffffff5, #3a4b8a, #ffffff98);
  padding: 1px;
  border-radius: 1.2rem;
  box-shadow: 0px 1rem 1.5rem -0.9rem #000000e1;
  max-width: 300px;
}

.card-main {
    --bs-card-spacer-y: 1rem;
    --bs-card-spacer-x: 1rem;
    --bs-card-title-spacer-y: 0.5rem;
    --bs-card-title-color: ;
    --bs-card-subtitle-color: ;
    --bs-card-border-width: var(--bs-border-width);
    --bs-card-border-color: var(--bs-border-color-translucent);
    --bs-card-border-radius: var(--bs-border-radius);
    --bs-card-box-shadow: ;
    --bs-card-inner-border-radius: calc(var(--bs-border-radius) - (var(--bs-border-width)));
    --bs-card-cap-padding-y: 0.5rem;
    --bs-card-cap-padding-x: 1rem;
    --bs-card-cap-bg: rgba(var(--bs-body-color-rgb), 0.03);
    --bs-card-cap-color: ;
    --bs-card-height: ;
    --bs-card-color: ;
    --bs-card-bg: var(--bs-body-bg);
    --bs-card-img-overlay-padding: 1rem;
    --bs-card-group-margin: 0.75rem;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: var(--bs-card-height);
    color: var(--text-color);
    word-wrap: break-word;
    background-color: var(--contrast-main-bg);
    background-clip: border-box;
    border: var(--bs-card-border-width) solid var(--bs-card-border-color);
    border-radius: 1rem;
    padding: var(--bs-card-spacer-y) var(--bs-card-spacer-x);
}

.card-scd {
  width: 190px;
  height: 254px;
  border-radius: 30px;
  background: #e0e0e0;
  box-shadow: 15px 15px 30px #bebebe,
             -15px -15px 30px #ffffff;
}

.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}

.custom-card {
    position: relative;
    padding: 1rem;
    background-color: var(--contrast-main-bg);
    border: 1px solid rgba(134, 134, 134, 0.24);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: fit-content;  
}

.custom-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border-bottom-right-radius: 0;
    background: var(--shadow-card);
    pointer-events: none;
    z-index: 1;
}


button {
    color: #090909;
    padding: 0.7em 1.7em;
    font-size: 18px;
    border-radius: 0.5em;
    background: var(--contrast-main-bg);
    cursor: pointer;
    border: 1px solid #55555529;
    transition: all 0.3s;
    box-shadow: var(--shadow-lg);
    width: fit-content;
}

button:hover {
  border: 1px solid white;
}

button:active {
  box-shadow: 4px 4px 12px #c5c5c5, -4px -4px 12px #ffffff;
}

.partner-logo img {
    width: 150px;
    height: 150px;
    object-fit: contain; 
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

.overlay-text {
  top: 59%;
  left: 50%;
  font-size: 39px !important;
}

html {
    overflow-y: scroll;
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    display: none;
}

:root {
    --background-color: #f5f5f5;
    --text-color: #000000;
    --navbar-color: #f4ece4;
    --navbar-bg-color: #f4ece4;
    --hr-container-bg-color: #212529;
    --hr-style-two-gradient: linear-gradient(to right, rgba(0, 0, 0, 0), rgb(0, 0, 0), rgba(0, 0, 0, 0));
    --footer-bg-color: #212529;
    --footer-color: #f5f5f5;
    --navbar-toggler-icon-color: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    --offcanvas-bg-color: #f4ece4;
    --offcanvas-color: #000000;
    --contrast-main-bg: #f5f5f5;
    --contrast-scd-bg: #282828;
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.23);
    --shadow-card: linear-gradient(to bottom right, transparent 50%, rgba(0, 0, 0, 0.1));
}

/* Variables pour le mode sombre */
body.dark-theme {
    --background-color: #212529;
    --text-color: #ffffff;
    --navbar-color: #373737;
    --navbar-bg-color: #212529;    
    --hr-container-bg-color: #f4ece4;
    --hr-style-two-gradient: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(255, 255, 255), rgba(0, 0, 0, 0)); 
    --footer-bg-color: #ffffff;
    --footer-color: #212529;   
    --navbar-toggler-icon-color: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    --offcanvas-bg-color: #212529;
    --offcanvas-color: #ffffff;
    --contrast-main-bg: #1c1c1c70;
    --contrast-scd-bg: #282828;  
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.66);  
    --shadow-card: linear-gradient(to bottom right, transparent 50%, rgba(255, 255, 255, 0.1));
}

/* Application des couleurs */
body {
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: var(--text-color);
}

.btn {
    color: var(--text-color);
    background-color: var(--navbar-color);
    border: 1px solid var(--text-color);
}


h1,
h2,
h5 {
    font-family: 'Antic Didone', serif;
}

/*.row {
  --bs-gutter-x: 0rem !important;
}*/


/* Navbar */

.navbar-toggler-icon {
    background-image: var(--navbar-toggler-icon-color);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}


.container-fluid {
    height: 45px !important;
}

.navbar-toggler {
  padding: var(--bs-navbar-toggler-padding-y) var(--bs-navbar-toggler-padding-x);
  font-size: var(--bs-navbar-toggler-font-size);
  line-height: 1;
  color: rgba(0, 0, 0, 0.99);
  background-color: transparent;
  border: transparent !important;
  border-radius: var(--bs-navbar-toggler-border-radius);
  transition: var(--bs-navbar-toggler-transition);
}

.navbar-toggler:focus {
  box-shadow: none !important;
}

.offcanvas.offcanvas-end {
  width: 250px !important;
}
.navbar {
    position: fixed;
    width: 100%;
    z-index: 10;
    background-color: var(--navbar-color);
    transition: background-color 0.3s ease;    
}

.navbar-brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.navbar-toggler {
    margin-left: auto;
}

.navbar-collapse {
    justify-content: flex-end;
}

.navbar-nav .nav-link {
    text-align: right;
}

.navbar-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    text-align: center;
}

.container {
    position: relative;
}

.nav-logo {
    max-width: 200px;
    margin-top: 4px;
}

.offcanvas {
  background-color: var(--offcanvas-bg-color);
}
.navbar-nav .nav-link, .navbar-nav .nav-link.show {
  color: var(--offcanvas-color);
}
/* Style général pour la page */

.homepage {
    margin: 0;
    padding: 0;
    //font-family: 'Antic Didone', serif;
    font-family: 'Gotham';
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100svh;
    background-color: #faf4ec;
    overflow: hidden;
}					  

/* Conteneur principal de la vidéo */
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1; /* Derrière le contenu principal */
}

.background-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* La vidéo couvre tout l'écran */
}

/* Conteneur du logo */
.logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centre parfaitement */
    z-index: 10; /* Par-dessus la vidéo */
    text-align: center;
    transition: transform 1s ease-in-out, top 1s ease-in-out;
}

/* Animation du logo lorsqu'il bouge */
.logo-container.moved {
    top: 10%; /* Le logo se déplace vers le haut */
    transform: translate(-50%, 0) scale(0.7); /* Réduit la taille légèrement */
}

/* Style du logo */
.features-image {
    width: auto;
    max-width: 100%; /* Adapte à la taille de l'écran */
    height: auto;
    transition: opacity 0.5s ease-in-out;
}

.features-image.fade {
    opacity: 0; /* Cache progressivement */
    transition: opacity 0.5s ease-in-out;
}

.features-image.show {
    opacity: 1; /* Affiche progressivement */
    transition: opacity 0.5s ease-in-out;
}

.features-button {
    width: auto;
    padding: 10px 30px;
    font-family: 'Jost';
    font-size: 20px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    background: #f3ebe4;
    color: #453011;
    margin-top: 50%;
    transition: opacity 0.5s ease-in-out;
}

.features-button.hide {
    opacity: 0;
    pointer-events: none;
}

/* Overlay (superposition) */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Couleur noire semi-transparente */
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
    z-index: 5; /* Juste derrière le logo */
}

#overlay.active {
    transform: translateY(0); /* Fait apparaître l'overlay */
}

.overlay-text {
    position: absolute;
    top: 65%;
    left: 47.5%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    font-size: 72px !important;
    font-weight: bold;
    z-index: 2;
    width: 100svw;
    font-family: 'Antic Didone', serif;
}

        #overlay.active {
            bottom: 0;
        }
        .home-header-left,
        .home-header-right {
            position: absolute;
            color: white;
            font-size: 1.5rem;
            z-index: 2;
            top: 10px;
        }						 

                                                             /* home page end*/

/* Header */
.header-left,
.header-right,
.header-bottom-left,
.sigle-co {
    position: absolute;
    color: white;
    font-size: 1.5rem;
    z-index: 2;
}

.header-left,
.home-header-left {
    left: 1%;
    top: 12px;    
}

.header-right,
.home-header-right {
    right: 1%;
    top: 10px;    
}

.header-bottom-left {
    bottom: 10px;
    left:20px;
}

.sigle-co {
    bottom: 0px;
    right: 0px;
    width: 70px;
    height: 70px;
    background-image: url('../images/logo-co-w.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Background */
.fullscreen-bg {
    position: relative;
    height: 100svh;
    background-image: url('../images/Accueil.svg');
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.fullscreen-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(139, 69, 19, 0.33);
    z-index: 2;
    pointer-events: none;
}

.fullscreen-bg.loaded {
    opacity: 1;
}

.fullscreen-bg .header-left,
.fullscreen-bg .header-right{
    top: 60px;
}

.fullscreen-bg {
    position: relative;
    width: 100%;
    background-color: #f4ece4; /* Exemple de couleur de fond */
    overflow: hidden;
}

.centered-text {
  position: absolute;
  top: 56%;
  left: 19%;
  transform: translateY(0);
  text-align: left;
  font-size: 4rem;
  color: #fff;
  font-family: 'Antic Didone', serif;
  font-weight: bold;
  max-width: 80%;
}


.hr-container {
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

hr.style-two {
    border: 0;
    height: 2px;
    background-image: var(--hr-style-two-gradient);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    transition: background-image 0.3s ease;
}

.hr-container hr {
    width: 100%;
}


.text-nav-1, .text-nav-2 {
    color: black;
    font-size: 2rem;
}

.main-title {
    font-size: 50px;
    line-height: 1.2;
}

.logo-text {
    width: auto;
    position: absolute;
    z-index: 20;
}

/* Logo */
.logo-nav {
    position: relative;
    z-index: 1;
    margin-left: -1px;
    margin-right: -7px;
    width: 55px;
    height: auto;
    margin-top: -15px;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1050;
    display: none;
}

.overlay.active {
    display: block;
}

/* Zoomable */
.zoomable {
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.zoomable.zoomed {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    z-index: 1051;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    background: white;
}

/* Reduced line height */
.reduced-line-height {
    line-height: 1.2;
}

.reduced-line-height p {
    margin-bottom: 0.5rem;
}

.reduced-line-height ul {
    margin: 0;
}

.reduced-line-height li {
    margin-bottom: 0.3rem;
}


/* Text positioning */
#text-top-left, #text-top-right, #text-bottom-right {
    position: absolute;
    z-index: 10;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
}

#text-top-left {
    top: 10px;
    left: 10px;
}

#text-top-right {
    top: 10px;
    right: 10px;
}

#text-bottom-right {
    bottom: 10px;
    right: 10px;
}

/* Utility */
.ms-n1 {
    margin-left: -0.25rem !important;
}

.me-n1 {
    margin-right: -0.25rem !important;
}

/* Vidéo interactive */
#intro-video {
    cursor: pointer;
}

/* Footer */

.footer {
    background-color: var(--footer-bg-color);
    color: var(--footer-color);
    transition: background-color 0.5s ease, color 0.5s ease;
}

.footer a {
    color: var(--footer-color);
    transition: color 0.5s ease;
}

.footer a:hover {
    text-decoration: underline;
}

.theme-toggle-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: absolute;
  font-family: Arial, sans-serif;
  right: 10px;
  bottom: 10px;
}

.theme-toggle-container-footer {
  position: inherit !important;
}

.accessibility-label {
    font-size: 1rem;
    color: var(--text-color);
    cursor: pointer;
}

.accessibility-label-footer {
    font-size: 1rem;
    color: var(--footer-color);
    cursor: pointer;
}

.theme-checkbox {
    --toggle-size: 8px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 6.25em;
    height: 3.125em;
    background: -webkit-gradient(linear, left top, right top, color-stop(50%, #efefef), color-stop(50%, #2a2a2a)) no-repeat;
    background: -o-linear-gradient(left, #efefef 50%, #2a2a2a 50%) no-repeat;
    background: linear-gradient(to right, #efefef 50%, #2a2a2a 50%) no-repeat;
    background-size: 205%;
    background-position: 0;
    border-radius: 99em;
    position: relative; /* Passe de `absolute` à `relative` */
    cursor: pointer;
    font-size: var(--toggle-size);
    transition: 0.4s;
}

.theme-checkbox::before {
    content: "";
    width: 2.25em;
    height: 2.25em;
    position: absolute;
    top: 0.438em;
    left: 0.438em;
    background: -webkit-gradient(linear, left top, right top, color-stop(50%, #efefef), color-stop(50%, #2a2a2a)) no-repeat;
    background: -o-linear-gradient(left, #efefef 50%, #2a2a2a 50%) no-repeat;
    background: linear-gradient(to right, #efefef 50%, #2a2a2a 50%) no-repeat;
    background-size: 205%;
    background-position: 100%;
    border-radius: 50%;
    transition: 0.4s;
}

.theme-checkbox:checked::before {
    left: calc(100% - 2.25em - 0.438em);
    background-position: 0;
}

.theme-checkbox:checked {
    background-position: 100%;
}


body.dark-theme #theme-toggle {
    background-color: #212529;
    color: #fff;
}
/* Contenu masqué */
body.hidden-content #intro {
    display: none;
}

body.hidden-content .transition {
    top: 0;
}

#main-content {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

body.hidden-content #main-content {
    opacity: 1;
}

/* Polices */
.antic-didone-regular {
    font-family: "Antic Didone", serif;
    font-weight: 400;
    font-style: normal;
}

.gotham {
    font-family: 'Gotham';
    src: url('https://olivia.ninesys.fr/fonts/Gotham_Regular.otf');
	format('opentype');
    font-weight: 300;
    font-style: regular;
}

span {
    font-size: 12px;
}

/* Responsive Design */

/* XS : Très petits écrans (<576px) */
@media (max-width: 576px) {
    span {
        font-size: 16px;
    }
    .logo-nav {
        margin-left: -1px;
        margin-right: -5px;
        width: 40px;
    }
    
    .header-left,
    .header-right,
    .header-bottom-left {
        font-size: 1rem;
        z-index: 2;
    }
    .sigle-co {
        z-index: 2;
        bottom: -1%;
    }
    .header-bottom-left{
        bottom: 1%;
        Left: 3%;        
    }
    .home-header-left,
    .home-header-right {
        font-size: 1rem;
        z-index: 2;
    }
    #text-bottom-right {
        bottom: 60px;
    }
    
    .navbar-center {
        position: absolute;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .navbar-brand small {
        font-size: 0.8rem;
        color: #999;
        text-align: center;
        margin-top: -5px;
    }
    .nav-logo {
        max-width: 170px;
    }

    .fullscreen-bg {
        background-position: center !important;
    }
    
    .centered-text {
        top: 50%;
        left: 10%;
        font-size: 29px;
        text-align: center;
        z-index: 10;
    }
    .features-image {
          width: 50svh !important;
    }

    .features-button {
        width: auto;
        padding: 5px 15px;
        font-size: 1rem;
        margin-top: 70%;
        transition: opacity 0.5s ease-in-out;
    }
    .partner-logo img {
        max-width: 164px;
        height: 87px;
    }   
    .row {
      --bs-gutter-x: -0.5rem !important;
    }    
}

/* MD : Écrans moyens (≥768px) */
@media (min-width: 768px) {}

/* LG : Écrans larges (≥992px) */
@media (max-width: 992px) {
    span {
        font-size: 16px;
    }

    .main-title {
        font-size: 20px;
    }
    .overlay-text {
        top: 59%;
        left: 50%;
        font-size: 30px !important;
    }
}


/* XL : Très grands écrans (≥1200px) */
@media (max-width: 1200px) {
    span {
        font-size: 22px;
    }
    .overlay-text {
        top: 59%;
        left: 47%;
        font-size: 40px !important;
    }
}

/* XXL : Écrans extra-larges (≥1400px) */
@media (min-width: 1400px) {
    span {
        font-size: 24px;
    }
}
