/* ==========================
   IMPORTS ET STYLES DE BASE
========================== */
@import url('https://fonts.googleapis.com/css2?family=Funnel+Display:wght@300..800&display=swap');

/* Reset de base */
html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: "Funnel Display", serif;
    scroll-behavior: smooth;
}

/* Typographie */
.funnel-display {
    font-family: "Funnel Display", serif;
    font-weight: 400;
    font-style: normal;
}

:root {
    /* Définition de la couleur primaire */
    --bs-primary: #bd5d38;
    --bs-primary-rgb: 189, 93, 56;
  
    /* Si vous voulez aussi personnaliser l'opacité par défaut */
    --bs-text-opacity: 1;
  }
  
  /* En option : surcharge directe de la classe si nécessaire */
  .text-primary {
    color: var(--bs-primary) !important;
  }
/* ==========================
   BACKGROUND ET OVERLAY
========================== */
body {
    background-image: url('../photo/fond-unsplash.jpg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: -1;
}

/* ==========================
   STRUCTURE LAYOUT
========================== */
.page-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
    width: 100%; /* Ajout explicite de la largeur */
}

.main-content {
    flex: 1;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    background-color: transparent;
}

footer {
    width: 100%;
    text-align: center;
    background-color: #f8f9fa;
    padding: 12px 0;
    margin-top: auto;
}

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

/* ==========================
   HEADER ET NAVIGATION
========================== */
.navbar-custom {
    height: 80px;
    padding: 0.5rem 1rem;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    background-color: #f8f9fa;
}

.navbar-toggler {
    padding: 0.25rem 0.75rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border: 1px solid #628a92;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(98, 138, 146, 0.25);
}

/* Style spécifique pour mobile */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute; /* Changé de fixed à absolute */
        top: 80px; /* Hauteur de la navbar */
        right: -100%; /* Commence hors écran */
        width: 250px; /* Largeur fixe du menu */
        height: auto; /* Adapte la hauteur au contenu */
        min-height: auto; /* Supprime la hauteur minimum */
        background-color: #f8f9fa;
        padding: 1rem;
        transition: right 0.3s ease-in-out;
        box-shadow: -2px 0 5px 5px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 0 8px; /* Arrondit le coin en bas à gauche */
    }

    .navbar-collapse.show {
        right: 0; /* Apparaît depuis la droite */
    }

    .navbar-nav {
        width: 100%;
        padding-top: 1rem;
    }

    .navbar-nav .nav-item {
        margin-bottom: 0.5rem;
        text-align: right; /* Aligne le texte à droite */
    }

    .nav-link {
        padding: 0.5rem 1rem;
        color: #333;
        transition: color 0.3s ease;
    }

    .nav-link:hover {
        color: #628a92;
    }
}

/* Styles pour les grands écrans */
@media (min-width: 992px) {
    .navbar-nav {
        display: flex;
        align-items: center;
        margin-right: 2rem;
    }

    .nav-item {
        margin-left: 1.5rem;
    }
}


.fixed-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
}

.menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    background-color: #f4f4f4;
    border-bottom: 1px solid #ddd;
}

.menu li {
    margin: 0 15px;
}

.menu a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.menu a:hover {
    color: #628a92;
}

/* ==========================
   SIDEBAR
========================== */
/* ==========================
   SIDEBAR ET MENU-ASIDE
========================== */
.sidebar {
    width: 250px;
    background-color: #f8f9fa;
    padding: 80px 0;
    box-shadow: 5px 0 5px -5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.menu-aside {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    width: 100%; /* S'assure que le menu prend toute la largeur de la sidebar */
}

.menu-aside li {
    padding: 10px 15px;
    margin: 5px 0;
    text-align: center;
    cursor: pointer;
    width: 100%;
    border-radius: 5px;
    /* transition: background-color 0.3s; */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* background-color: #fff; Couleur de fond par défaut */
}

.menu-aside li:hover {
    background-color: #ddd; /* Couleur de fond au survol */
}

.menu-aside li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    display: block; /* Assure que tout le lien est cliquable */
}

/* ==========================
   PADDING POUR SECTIONS LARGES
========================== */
@media (min-width: 992px) {
    section.resume-section {
        padding-left: 3rem;
        padding-right: 3rem;
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

.size-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-top: 100px;
    margin-bottom: 30px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.linkedin-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    margin-top: auto;
}

.size-logo-linkedin {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
    will-change: transform;
}

.size-logo-linkedin:hover {
    transform: scale(1.1);
}

/* ==========================
   SECTIONS GÉNÉRALES
========================== */
section {
    padding: 50px 20px;
    border-bottom: 1px solid #ddd;
}

.resume-section {
    padding: 5rem 3rem;
    max-width: 75rem;
    min-height: 100vh;
    margin: 0 auto;
}

.resume-section-a-propos {
    display: flex;
    align-items: center;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 5rem;
    padding-bottom: 5rem;
    max-width: 75rem;
    min-height: 100vh;
    margin: 0 auto;
}

.resume-section .resume-section-content {
    width: 100%;
    padding-top: 70px;
}

a {
    /* text-decoration: none; */
    /* color: inherit; */
    word-wrap: break-word; /* Permet aux liens longs de se couper */
    max-width: 100%; /* S'assure que le lien ne dépasse pas son conteneur */
    display: inline-block; Permet une meilleure gestion de la largeur
}

/* ==========================
   DÉTAILS LOGO SKEMA FORMATION
========================== */
.skema-title {
    display: flex;
    align-items: center;
    gap: 1rem;  /* Espace entre le logo et le texte */
}

/* Style pour le logo SKEMA */
.skema-logo {
    height: 45px;  /* Ajustez cette valeur selon vos besoins */
    width: auto;
    object-fit: contain;
}

/* Responsive design pour les petits écrans */
@media (max-width: 768px) {
    .skema-logo {
        height: 45px;  /* Logo légèrement plus petit sur mobile */
    }
}

/* Style pour le conteneur du titre et logo de certification */
.certification-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Style optimisé pour les logos de certification */
.certification-logo {
    height: 30px;
    width: 30px;
    object-fit: contain;
    background: transparent;
    /* Amélioration du rendu */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    filter: none;
    /* Animation douce au survol */
    transition: transform 0.2s ease-in-out;
}

/* Animation au survol */
.certification-logo:hover {
    transform: scale(1.1);
}

/* Ajustement responsive */
@media (max-width: 768px) {
    .certification-logo {
        height: 24px;
        width: 24px;
    }
    
    .certification-title {
        gap: 0.5rem;
    }
}

/* Style spécifique pour les éléments de liste contenant des certifications */
li.certification-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
}

/*  */

/* Style pour le conteneur du titre et logo de certification */
.certification-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* ==========================
   DÉTAILS DES LOGOS CLIENTS MISSION
========================== */
/* Style optimisé pour les logos de certification */
.mission-client-logo {
    height: 60px;
    width: 80px;
    margin-bottom: 30px;
    /* margin-top: 20px; */
    object-fit: contain;
    background: transparent;
    /* Amélioration du rendu */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    filter: none;
    /* Animation douce au survol */
    transition: transform 0.2s ease-in-out;
}

/* Animation au survol */
.mission-client-logo:hover {
    transform: scale(1.1);
}

/* Ajustement responsive */
@media (max-width: 768px) {
    .mission-client-logo {
        height: 24px;
        width: 24px;
    }
    
}

@media (max-width: 768px) {
    .page-layout {
        flex-direction: column;
        max-width: 100%;
        width: 100vw; /* Utilisation de la largeur viewport */
        padding: 0; /* Supprimer tout padding */
        margin: 0; /* Supprimer toute marge */
        overflow-x: hidden; /* Empêcher le scroll horizontal */
    }

    .main-content {
        width: 100%;
        padding: 80px 15px 0 15px; /* Ajuster le padding */
        margin: 0; /* Supprimer les marges */
    }

    .resume-section,
    .resume-section-a-propos {
        width: 100%;
        padding: 3rem 15px;
        min-height: auto; /* Retire la hauteur minimale fixe sur mobile */
        margin: 0;
        max-width: 100%; /* S'assure que la largeur maximale est 100% */
    }

    .resume-section-content {
        width: 100%;
        padding: 15px;
        box-sizing: border-box;
    }

    /* Ajustement du contenu pour éviter les débordements */
    .resume-section-content,
    .resume-section-a-propos {
        overflow-x: hidden; /* Empêche le défilement horizontal */
    }

    /* Ajustement des éléments internes */
    .resume-section-content > *,
    .resume-section-a-propos > * {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Ajustement des marges et padding des éléments enfants */
    .resume-section-content h1,
    .resume-section-content h2,
    .resume-section-content h3,
    .resume-section-content p,
    .resume-section-a-propos h1,
    .resume-section-a-propos h2,
    .resume-section-a-propos h3,
    .resume-section-a-propos p {
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
    }

    /* Ajustement de la taille des titres pour mobile */
    h1, .h1 {
        font-size: 2.5rem !important;
    }

    h2, .h2 {
        font-size: 2rem !important;
        margin-bottom: 2rem;
    }

    a {
        max-width: 100%;
        box-sizing: border-box;
        padding-right: 5px; /* Petit padding pour éviter que le texte touche le bord */
        overflow-wrap: break-word; /* Gestion des mots longs */
        word-break: break-word; /* Force la coupure des mots très longs si nécessaire */
        hyphens: auto; /* Ajoute des traits d'union si nécessaire */
    }

    /* Ajustement spécifique pour les liens dans la navigation */
    .nav-link,
    .navbar-nav a {
        width: 100%;
        padding: 10px 15px;
        margin: 0;
    }

    /* Ajustement pour les liens dans le menu latéral */
    .menu-aside a {
        width: 100%;
        padding: 10px 15px;
        text-align: center;
    }

    /* Ajustement pour les liens dans les sections de contenu */
    .resume-section a,
    .resume-section-content a,
    .resume-section-a-propos a {
        padding: 5px 0;
        margin: 2px 0;
    }
}

/* Gestion des images et médias responsifs */
@media (max-width: 768px) {
    .resume-section img,
    .resume-section-a-propos img,
    .resume-section-content img {
        max-width: 100%;
        height: 100px;
    }

    /* Ajustement des tableaux et éléments larges */
    table, iframe, video {
        max-width: 100%;
        width: 100%;
    }
}

/* Ajustements pour très petits écrans */
@media (max-width: 375px) {
    .resume-section,
    .resume-section-a-propos {
        padding: 2rem 10px;
    }

    .resume-section-content {
        padding: 10px;
    }

    h1, .h1 {
        font-size: 2rem !important;
    }

    h2, .h2 {
        font-size: 1.75rem !important;
    }


    .main-content {
        padding-left: 10px;
        padding-right: 10px;
    }

    a {
        padding-right: 3px;
    }

    .nav-link,
    .navbar-nav a,
    .menu-aside a {
        padding: 8px 10px;
    }
}
/* Assurer que le corps de la page n'a pas de marges non désirées */
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* Empêcher le scroll horizontal */
}



/* ==========================
   DÉTAILS DES LOGOS REGULATEURS
========================== */
.resume-section-a-propos .resume-section-content {
    /* Augmente l'espacement entre les éléments */
    display: flex;
    flex-direction: column;
    /* gap: 1rem; Ajoute un espacement uniforme entre tous les éléments enfants */
}

/* .resume-section-a-propos h1 {
    margin-bottom: 2rem; /* Plus d'espace après le titre principal 
 } */

.resume-section-a-propos h2 { 
    margin-top: 2rem;
    margin-bottom: 2rem; /* Plus d'espace autour du sous-titre */
}

/* .resume-section-a-propos p { 
    margin-bottom: 2rem; /* Plus d'espace après le paragraphe 
    line-height: 1.8; /* Augmente légèrement l'interligne pour une meilleure lisibilité 
} */

/* .resume-section-a-propos .subheading {
    margin-top: 2rem;
    margin-bottom: 2rem; /* Plus d'espace autour des informations de contact 
}  */

.regulatory-logos {
    display: flex;
    align-items: center;
    gap: 2rem;
    /* margin-top: 2rem;
    margin-bottom: 2rem; */
    flex-wrap: wrap; /* Pour que les logos passent à la ligne sur les petits écrans */
}

.reg-logo {
    height: 30px; /* Ajustez cette valeur selon vos besoins */
    width: auto;
    object-fit: contain; /* Pour préserver les proportions */
    filter: grayscale(100%); /* Rend les logos en noir et blanc */
    opacity: 0.7; /* Légère transparence */
    transition: all 0.3s ease;
}

.reg-logo:hover {
    filter: grayscale(0%); /* Retrouve les couleurs au survol */
    opacity: 1; /* Pleine opacité au survol */
    transform: scale(1.05); /* Léger zoom au survol */
}

/* Responsive design pour les petits écrans */
@media (max-width: 768px) {
    .regulatory-logos {
        gap: 1rem;
        justify-content: center;
    }
    
    .reg-logo {
        height: 40px; /* Logos légèrement plus petits sur mobile */
    }
}


/* ==========================
   DÉTAILS DES MISSIONS
========================== */
.mission-details {
    display: none !important;
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.25rem;
    /* margin-top: 1rem; */
    border-left: 3px solid #bd5d38;
}

.mission-details.show {
    display: block !important;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.details-list {
    list-style-type: none;
    padding-left: 0;
}

.details-list li {
    margin-bottom: 0.5rem;
}

.details-list ul {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

/* ==========================
   BOUTONS ET INTERACTIONS
========================== */
.btn-outline-primary {
    color: #bd5d38 !important;
    border-color: #bd5d38 !important;
    padding: 0.375rem 0.75rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background-color: transparent !important; /* Force le fond transparent */
}


.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    color: #bd5d38 !important;
    background-color: transparent !important; /* Votre couleur personnalisée */
    border-color: #bd5d38 !important;
    box-shadow: none !important; /* Retire le glow bleu au focus */
}

/* ==========================
   COMPÉTENCES ET LANGUES
========================== */
.skill-item {
    display: flex;
    /* align-items: center; */
    /* margin-bottom: 1rem; */
    /* font-size: 1.2rem; */
    flex-direction: column;
}

.skill-name {
    min-width: 120px;
    margin-right: 1rem;
}

.rating {
    color: #bd5d38;
}

.star {
    font-size: 1.2rem;
    color: #f3f3f3;
}

.star.filled {
    color: #bd5d38;
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #fefefe40;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.language-item:hover {
    background-color: #e9ecef;
}

.dev-icons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Crée des colonnes responsives */
    gap: 1rem; /* Espacement entre les éléments */
    padding: 0; /* Retire le padding par défaut des listes */
    margin-bottom: 2rem;
}

/* Pour les écrans larges, limiter à 4 colonnes */
@media (min-width: 1200px) {
    .dev-icons {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Pour les écrans moyens, adapter le nombre de colonnes */
@media (max-width: 1199px) and (min-width: 768px) {
    .dev-icons {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Pour les petits écrans, afficher en 2 colonnes */
@media (max-width: 767px) {
    .dev-icons {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Pour les très petits écrans, afficher en 1 colonne */
@media (max-width: 480px) {
    .dev-icons {
        grid-template-columns: 1fr;
    }
}

/* Ajustement des éléments techniques de la liste compétence */
.dev-icons .skill-item {
    margin: 0; /* Retire la marge par défaut */
    /* padding: 1rem; */
    /* background-color: #f8f9fa; */
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.dev-icons .skill-item:hover {
    background-color: #e9ecef;
}

/* ==========================
   TEXTE ET TYPOGRAPHIE
========================== */

.text-primaire {
    /* --bs-text-opacity: 1; */
    color: #628a92;
    font-size: 4.5rem;

}

.text-disponibilite {
    /* --bs-text-opacity: 1; */
    color: #bd5d38;
    font-size: 2.5rem !important;
    text-transform: initial !important; 

}

.text-left {
    text-align: left;
}

h1,
.h1 {
    font-size: 4.5rem !important;
    text-transform: uppercase;
}

h2,
.h2 {
    font-size: 4rem;
    margin-bottom: 3rem;
}

h3,
.h3 {
    font-size: 1.5rem;
    text-transform: uppercase;
}

/* .text-primary {
    --bs-text-opacity: 1;
    color: #bd5d38 !important;
} */

.text-justify {
    text-align: justify;
}

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
    text-transform: uppercase;
}

.subheading {
    /* font-size: 1.5rem; */
    font-weight: 500;
    text-transform: uppercase;
    color: #343a40;
}

.animation_container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    transition: opacity 0.5s ease-out;
}

.fade-out {
    opacity: 0;
}

.container-cv {
    max-width: 720px;
    padding-top: 100px;
    padding-left: 40px;
}

/* ==========================
   Formatage de l'ecriture pour les "details des missions"
========================== */

/* Modification du style des détails des missions */
.mission-details {
    display: none;
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 0.25rem;
    border-left: 3px solid #bd5d38;
    width: 100%; /* Pour prendre toute la largeur */
    margin: 1rem 0; /* Espacement vertical */
}

/* Style pour les titres des missions */
.details-list > li {
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #bd5d38; /* Couleur principale de votre thème */
    font-size: 1.1rem;
}

/* Style pour les sous-listes */
.details-list ul {
    list-style-type: none; /* Enlève les puces par défaut */
    padding-left: 0;
    margin-top: 1rem;
}

/* Style pour les éléments de la sous-liste */
.details-list ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    font-weight: normal;
    line-height: 1.6;
    color: #333;
}

/* Création d'une puce personnalisée */
.details-list ul li::before {
    content: "►"; /* Utilisation d'un symbole comme puce */
    position: absolute;
    left: 0;
    color: #bd5d38;
    font-size: 0.8rem;
}

/* Amélioration de la lisibilité */
.details-list ul li {
    text-align: justify;
    padding-right: 1rem;
}


/* ==========================
   ACCUEIL TYPEWRITER
========================== */


.typewriter {
    display: inline-block;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    overflow: hidden;
    white-space: nowrap;
    border-right: 4px solid #628a92;
    padding-right: 4px;
    animation: blink-caret .75s step-end infinite;
    max-width: 100%;
}

/* Media queries pour différents types d'écrans */
@media (max-width: 1200px) {
    .typewriter {
        font-size: clamp(2rem, 3.5vw, 2rem);
    }
}

@media (max-width: 768px) {
    .typewriter {
        font-size: clamp(1.5rem, 3vw, 2rem);
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .typewriter {
        font-size: clamp(1.5rem, 2.5vw, 2rem);
        padding: 0 5px;
    }
}

/* Animation modifiée pour les petits écrans */
@media (max-width: 768px) {
    @keyframes blink-caret {
        from, to { border-right-width: 2px; } /* Curseur plus fin sur mobile */
        50% { border-right-color: transparent; }
    }
}

.access-button {
    margin-top: 50px;
    padding: 15px 40px;
    font-size: 1.2rem;
    background-color: transparent;
    color: white;
    border: 2px solid #628a92;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Funnel Display", serif;
    font-weight: 400;
    font-style: normal;
}

.access-button:hover {
    background-color: grey;
    color: black;
}

/* ==========================
   MEDIA QUERIES
========================== */
@media (max-width: 768px) {
    .page-layout {
        flex-direction: column;
        max-width: 100%;
    }

    .sidebar {
        width: 100vw; /* Utilise toute la largeur du viewport */
        height: auto; /* Hauteur adaptative */
        position: relative;
        padding: 20px 0;
        margin: 0;
        box-shadow: none;
        align-items: center;
        justify-content: center;
        padding-top: 80px;
    }
        /* Ajustement de la photo de profil pour qu'elle soit centrée */
    .size-photo {
        margin-top: 60px; /* Ajusté pour tenir compte de la navbar */
    }

    /* S'assurer que le menu aside prend toute la largeur si visible */
    .menu-aside {
        width: 100vw;
        padding: 0 15px;
        box-sizing: border-box;
    }

    /* Ajuster le contenu de la sidebar pour qu'il prenne toute la largeur */
    .sidebar > * {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }


    .language-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 375px) {
    .sidebar {
        padding: 15px 0;
    }

    .menu-aside {
        padding: 0 10px;
    }
}

/* ==========================
 Bannière site conçu par
   */

/* Style de la bannière */
.credits-banner {
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 1000;
    padding: 15px 10px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    /* max-width: 300px; */
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.credits-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

/* Style de la croix (bouton de fermeture) */
.close-btn {
    position: absolute;
    top: -20px;
    right: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

/* Animation d'apparition (optionnelle)
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} */

.credits-banner {
    animation: fadeIn 0.5s ease-out;
}


.code-icon {
    color: #628a92;
    font-weight: bold;
    font-size: 1.2em;
}

.credits-text {
    margin: 0;
    color: #333;
    font-size: 0.9em;
}

.tech-stack {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8em;
    color: #666;
}

.tech-item {
    color: #bd5d38;
    font-weight: 500;
}

.tech-dot {
    color: #628a92;
}

/* Responsive */
@media (max-width: 768px) {
    .credits-banner {
        padding: 8px 0;
    }
    
    .tech-stack {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ==========================
   FORMULAIRE DE CONTACT
   ==========================
   */

   .contact-form {
    background-color: #ffffff;
    padding: 20px 30px;
    border-radius: 8px;
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); */
    width: 100%;
    /* max-width: 400px; */
}

.contact-form h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #333333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical; /* Permet à l'utilisateur d'ajuster la hauteur */
    min-height: 100px;
}

.submit-btn {
    background-color: #bd5d38;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.submit-btn:hover {
    background-color: #a3442b; /* Couleur légèrement plus foncée au survol */
}

.success-message,
.error-message {
    margin-top: 15px;
    font-size: 0.9rem;
}

.success-message {
    color: green;
}

.error-message {
    color: red;
}

/* animation message envoyé
*/
.notification-box {
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.notification-box.show {
    opacity: 1;
}

.notification-box.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.notification-box.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* ==========================
  Affichage sur mobile et petits ecrans
   */

   /* Base responsive */
@media (max-width: 768px) {
    /* Layout général */
    .page-layout {
        flex-direction: column;
        /* padding: 0 15px; */
    }
    .navbar.navbar-custom {
        padding-left: 10px !important;
    }

    /* Sidebar */
    .sidebar {
        position: relative;
        width: 100%;
        /* padding: 20px 0; */
        text-align: center;
    }

    .size-photo {
        width: 150px;
        height: 150px;
        margin: 0 auto 20px;
    }

    .menu-aside {
        display: none; /* Cache le menu latéral sur mobile */
    }

    /* Contenu principal */
    .main-content {
        margin-left: 0;
        padding: 20px 0;
        width: 100%;
    }

    /* Section À propos */
    .resume-section-a-propos {
        padding-top: 120px; /* Espace pour le header fixe */
    }

    /* Header et titres */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    /* Logos réglementaires */
    .regulatory-logos {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        justify-items: stretch;
        max-width: 250px;
        max-height: 250px;
    }

    .reg-logo {
        max-width: 100px;
    }

    /* Expérience professionnelle */
    .d-flex.flex-column.flex-md-row {
        flex-direction: column !important;
    }

    .flex-shrink-0 {
        margin-top: 10px;
    }

    /* Compétences */
    .list-inline.dev-icons {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .skill-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    /* Formation et langues */
    .language-grid {
        grid-template-columns: 1fr;
    }

    /* Boutons et détails des missions */
    .toggle-btn {
        width: 100%;
        margin: 10px 0;
    }

    .mission-details {
        padding: 10px;
    }

    /* Certifications */
    .certification-title {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }

    .certification-logo {
        max-width: 40px;
        margin-right: 10px;
    }
}



/* Ajustements pour très petits écrans */
@media (max-width: 576px) {
    /* Ajustement du padding général */
    .container {
        padding: 0 10px;
    }

    /* Ajustement des marges des sections */
    .resume-section {
        padding: 70px 0;
    }

    .navbar.navbar-custom {
        padding-left: 10px !important;
    }


    /* Réduction de la taille du logo dans le header */
    .navbar-brand img {
        width: 180px;
        height: auto;
    }

    /* Ajustement des espaces dans le menu */
    .navbar-nav .nav-link {
        /* padding: 0.5rem 0; */
    }

    /* Ajustement des détails des missions */
    .mission-details ul {
        padding-left: 20px;
    }

    /* Ajustement des logos clients */
    .mission-client-logo {
        height: auto;
        width: 120px;
        max-width: 120px;
        height: auto;
    }
}

/* Ajustements pour l'orientation paysage sur mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .resume-section {
        padding: 50px 0;
    }

    .sidebar {
        padding: 10px 0;
    }

    .size-photo {
        width: 100px;
        height: 100px;
    }
}

/* Amélioration de la navigation */
.navbar-custom {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1030;
}

/* Animation smooth pour les transitions */
* {
    transition: all 0.3s ease-in-out;
}

/* Amélioration de la lisibilité */
@media (max-width: 768px) {
    body {
        font-size: 16px;
        line-height: 1.6;
    }

    .text-justify {
        text-align: left;
    }
}