@font-face {
    font-family: 'Comfortaa';
    src: url('assets/font/Comfortaa-Regular.ttf') format('truetype');
    font-weight: normal;
}

@font-face {
    font-family: 'Comfortaa';
    src: url('assets/font/Comfortaa-Bold.ttf') format('truetype');
    font-weight: bold;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Comfortaa', sans-serif;
}

body {
    background-color: #000;
    color: white;
    min-height: 100vh; 
    padding-top: 80px;

  background-image: 
    radial-gradient(1px 1px at 10% 10%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 20% 35%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 35% 85%, #fff, transparent),
    radial-gradient(2px 2px at 50% 20%, #fff, transparent),
    radial-gradient(1px 1px at 65% 55%, rgba(166, 238, 243, 0.788), transparent), 
    radial-gradient(1px 1px at 80% 15%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 95% 70%, rgba(255, 178, 255, 0.725), transparent),
    radial-gradient(1px 1px at 40% 40%, #fff, transparent),
    radial-gradient(2px 2px at 75% 80%, #dbdb7d, transparent),
    radial-gradient(1px 1px at 15% 90%, rgba(255,255,255,0.5), transparent);

  background-size: 400px 400px;

  animation: mouvementEtoiles 120s linear infinite;
  background-attachment: fixed;
}

@keyframes mouvementEtoiles {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 800px 1200px;
  }
}


/* ________________________________________________________________________________*/

/*Header*/
header {
    padding: 0px 50px;
    border-bottom: 2px solid #7bdeff;
    background-color: #000;
}


nav ul {
    display: flex;
    list-style: none;
}



nav ul li a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s;
}


/* Style des liens */
.nav-link-custom {
    color: #ffffff;
    -webkit-text-stroke: 0.5px white;
    font-size: 1.1rem;
    margin-left: 20px;
    transition: all 0.3s ease;
}

/* Au survol */
.nav-link-custom:hover {
    color: #7bdeff;
}

/* Quand le lien est sélectionné (cliqué) */
.nav-link-custom.active-blue {
    color: #7bdeff;
}

/* Menu déroulant */
.dropdown-custom {
    background-color: #000;
    border: 1px solid #7bdeff;
    padding: 10px;
}

.dropdown-item {
    color: #fff;
    transition: 0.3s;
}

.dropdown-item:hover {
    background-color: #7bdeff;
    color: #000;
}


/* Section Centrale (Hero) */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 80px); /* Prend toute la place restante */
    text-align: center;
}

.hero-content h1 {
    font-size: 60px;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(94, 197, 230, 0.6); /* Effet lueur */
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 40px;
    color: #ccc;
}

/* Boutons de la page d'accueil*/
.buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.btn {
    padding: 12px 25px;
    border: 2px solid #7bdeff;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
}

.btn:hover {
    background-color: #7bdeff;
    color: #000;
    box-shadow: 0 0 20px rgba(94, 197, 230, 0.5);
}




/* ________________________________________________________________________________*/
/* A propos */

.about-me.container {
    max-width: 1000px;
    margin: 0 auto;
}

.custom-narrow {
    max-width: 1000px ;
    margin: 0 auto ;
}

.profile-pic {
    border: 2px solid white;
    border-radius: 10px;
    width: 250px;
    height: auto;
    object-fit: cover;
}

/* Titres avec lueur */
.glow-text {
    color: white;
    text-shadow: 0 0 15px rgba(94, 197, 230, 0.8);
    font-size: 48px;
    font-weight: bold;
    padding-top: 30px;
}

.section-title {
    font-weight: bold;
    margin-bottom: 50px;
}

.stacked-text {
    position: relative;
    font-size: 38px; 
    font-weight: bold;
    color: white;
    z-index: 1;
    text-transform: uppercase;
    display: block; /* Change inline-block en block pour qu'il prenne toute la ligne */
    margin-bottom: 40px; /* Ajoute de l'espace pour que le <p> ne remonte pas trop */
}

.stacked-text::after {
    content: attr(data-text);
    position: absolute;
    left: -5px;
    top: -3px;   
    z-index: -1;
    color: transparent;
    -webkit-text-stroke: 1.5px #7bdeff;
    opacity: 0.7;
}

.description-text {
    font-size: 16px;
    margin-bottom: 30px;
    color: #ffffff;
}

/* Section Formations et skills */
.formations-section {
    background-color: #0a0b1a;
    color: white;
}

/* formation */
.formation {
    position: relative;
    padding-left: 50px;
}

/* La ligne blanche verticale */
.formation::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background-color: white;
}

.formation-item {
    position: relative;
    margin-bottom: 40px;
}

/* Le point blanc */
.formation-dot {
    position: absolute;
    left: -37px;
    top: 5px;
    width: 15px;
    height: 15px;
    background-color: white;
    border-radius: 50%;
}

.formation-content h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.subtitle {
    color: #aaa;
    margin-bottom: 0;
}

.location {
    font-style: italic;
    color: #fff;
}

/* Boutons personnalisés */
.btn-outline-cyan {
    border: 2px solid #5ec5e6;
    color: white;
    padding: 10px 30px;
    border-radius: 8px;
}

.btn-cv {
    border: 2px solid #5ec5e6;
    color: white;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 10px;
    background: transparent;
}

.cv {
    padding-bottom: 200px;
}

/* Container de la section globale */
.formations-skills-section {
    background-color: #ffffff;
    color: rgb(0, 0, 0);
}

.skill-label {
    color: #5ec5e6;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* Configuration du Marquee */
.marquee-skills {
    width: 100%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px 0;
    transform: rotate(-2deg);
    white-space: nowrap;
    position: relative;
    transform: rotate(-2deg);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
}

/* Sens inverse pour la 2ème ligne */
.reverse .marquee-track {
    animation: scroll-reverse 30s linear infinite;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 25px;
    font-weight: 500;
}

.skill-item img {
    height: 30px;
    width: auto;
}

/* Animations */
@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes scroll-reverse {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

/* Pour que la formation ne soit pas collée sur mobile */
@media (max-width: 991px) {
    .marquee-skills { margin-bottom: 30px; }
}


/* ________________________________________________________________________________*/
/* Footer*/


.footer-custom {
    background-color: #000;
    color: white;
    /* On réduit drastiquement l'espace en haut et en bas */
    padding-top: 20px !important;
    padding-bottom: 10px !important;
}

/* Section Copyright avec les deux lignes latérales */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.footer-line {
    height: 1px;
    background-color: #5ec5e6;
    flex-grow: 1; /* Les lignes prennent tout l'espace disponible */
    max-width: 200px; /* Longueur des lignes */
}

.copyright {
    font-size: 0.8rem;
    white-space: nowrap;
    color: #ffffff;
}




/* _____________________________________________________________________________________ */

/* Académique */
.titreprojet {
    color: white;
    font-size: 49px;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 0 15px rgba(94, 197, 230, 0.8);
    padding-top: 50px;
}

/* Style pour les titres au-dessus des filtres */
.form-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

/* --- LE CONTENEUR --- */
.projects-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px; /* Espace entre les fiches */
    justify-content: center; /* Centre les cartes sur la page */
    padding: 40px 10px;
    padding-bottom: 100px;
}

.project-card-custom {
    background-color: #222222; 
    border: 1px solid #7bdeff;
    box-shadow: 0 0 15px rgba(123, 222, 255, 0.2);
    border-radius: 15px;
    width: 360px; 
    height: 450px; 
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}




/* --- L'IMAGE --- */
.project-card-img {
    height: 160px;
    border-bottom: 1px solid #7bdeff;
    overflow: hidden;   /* Coupe tout ce qui dépasse des 180px */
    flex-shrink: 0;
  }
  
  .project-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; 
    transition: transform 0.4s ease-in-out;
}

/* --- OPTIONNEL : Effet de zoom au survol pour un look pro --- */
.project-card-custom:hover .project-card-img img {
    transform: scale(1.1);
}

/* Effet au survol de la carte */
.project-card-custom:hover {
    transform: translateY(-10px); 
    border-color: #ffffff;
    box-shadow: 0 10px 25px rgba(123, 222, 255, 0.4); 
}


/* --- LE TEXTE --- */
.project-card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding-bottom: 50px; 
}


.project-card-body h3 {
    font-size: 18px;
    color: white;
    margin-bottom: 12px;
}

/* Les Badges (HTML, CSS...) */
.project-badge {
    display: inline-block;
    border: 1px solid #7bdeff;
    border-radius: 10px;
    padding: 2px 10px;
    font-size: 13px;
    color: white;
    margin-right: 5px;
    margin-bottom: 5px;
}

.project-details {
    font-size: 12px;
    color: #ffffff;
    margin-top: 10px;
}

/* Supprime l'espace entre les lignes de texte */
.project-details p {
    margin-bottom: 3px;  
}

/* --- LE BOUTON (En bas à droite) --- */
.project-card-footer {
    position: absolute;  
    bottom: 15px;      
    right: 15px;      
    padding: 0;    
    text-align: right;
}

.btn-voir {
    border: 1px solid #7bdeff;
    color: white;
    text-decoration: none;
    padding: 6px 18px;
    border-radius: 10px;
    font-size: 16px;
    transition: 0.3s;
}

.btn-voir:hover {
    background-color: #7bdeff;
    color: black;
}


/* Filtre */
/* Conteneur pour centrer le bouton sous les filtres */
.reset-container {
    text-align: center;
    margin-bottom: 30px;
}

/* Le bouton avec contour */
.btn-reset-filters {
    padding: 8px 20px;
    font-size: 16px;
    color: #7bdeff;  
    text-decoration: none;
    background-color: transparent;
    border: 1px solid #7bdeff;
    border-radius: 10px;
    transition: all 0.3s ease;
}



/* _____________________________________________________________________________________ */

/* Professionnel */

/* --- STYLE DES FILTRES (Page Pro) --- */
.filter-group-pro {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-btn {
    background: #222222;
    color: #ffffff;
    border: 1px solid #5ec5e6;
    padding: 8px 22px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover {
    background: rgba(94, 197, 230, 0.1);
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: #5ec5e6;
    color: #000;
    box-shadow: 0 0 15px rgba(94, 197, 230, 0.4);
}

/* --- HARMONISATION DES CARTES (Spécifique Page Pro) --- */
#projects-container.projects-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch; /* Force toutes les cartes d'une ligne à avoir la même hauteur */
    gap: 30px;
}

#projects-container .project-card-custom {
    display: flex;
    flex-direction: column;
    height: auto; /* On laisse le stretch du parent gérer la hauteur */
    min-height: 380px; 
}

#projects-container .project-card-body {
    flex-grow: 1; /* Pousse le footer vers le bas */
    padding-bottom: 70px; /* Espace pour le bouton en position absolute */
}

#projects-container .badges-box {
    display: flex;
    flex-wrap: wrap; /* Les tags vont à la ligne si trop nombreux */
    gap: 2px;
    margin-top: 10px;
}







/* _____________________________________________________________________________________ */

/* Page projet académique */






/* Espacement global de la page */
.custom-narrow {
    max-width: 1100px;
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Le Cadre Description & Rôles */
.description-box {
    background-color: #0a0b1c;
    border: 2px solid #2a2d4a;
    border-radius: 15px;
    padding: 40px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-top: 60px;
}

.description-box h3 {
    color: #5ec5e6;
    font-weight: bold;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

/* Style des listes (Rôles) */
.description-box ul li {
    color: #ffffff;
    margin-bottom: 12px;
    list-style-type: "• ";
    padding-left: 10px;
}

/* Accordéons Apprentissages Critiques */
.accordion-item {
    background-color: #0a0b1c !important;
    border: 2px solid #2a2d4a !important;
    border-radius: 10px !important;
    margin-bottom: 15px;
    overflow: hidden;
}

.accordion-button {
    background-color: #0a0b1c !important;
    color: white !important;
    font-weight: bold;
    padding: 20px;
}

/* Flèche de l'accordéon (on la force en blanc/cyan) */
.accordion-button::after {
    filter: invert(1) sepia(100%) saturate(10000%) hue-rotate(180deg);
}

.accordion-button:not(.collapsed) {
    color: #5ec5e6 !important;
    box-shadow: none;
}

.accordion-body {
    color: #ffffff;
    line-height: 1.7;
    padding: 25px;
}

/* Badges et Tags */
.badge-theme {
    background: rgba(94, 197, 230, 0.1);
    border: 1px solid #5ec5e6;
    color: #5ec5e6;
    padding: 8px 20px;
    border-radius: 20px;
}

/* --- Tailles et Images --- */
.custom-carousel img, .border-custom-img {
    transition: transform 0.3s ease;
}

/* Agrandit les icônes des outils */
.img-tool {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

/* --- Couleurs Spécifiques Maquette --- */

/* Le badge bleu (Développement Web) */
.custom-badge-theme {
    background-color: #0a0a23; /* Bleu royal intense */
    color: white;
    border: 1px #fff solid;
    border-radius: 10px;
    padding: 6px 18px;
    margin-bottom: 10px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-block;
}

/* Les petits tags avec bordure (HTML, CSS...) */
.custom-badge-tag {
    background-color: #2A2A2A;
    color: white;
    border: 1px solid #ffffff;
    padding: 6px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Texte des détails */
.project-details-text p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.project-details-text strong {
    color: white;
    font-weight: 600;
}

/* --- Flèches du carrousel --- */
.carousel-control-prev, .carousel-control-next {
    width: 5%;
}

/* On cible le carrousel ET l'image seule pour qu'ils aient la même taille */
.carousel-inner, 
.project-image-single {
    width: 100%;
    height: 430px; /* La hauteur fixe que l'on a choisie */
    background-color: #000;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* On s'assure que l'image est entièrement visible sans être coupée */
.carousel-item img, 
.project-image-single img {
    width: 100% !important;
    height: 100% !important;
    /* Contain = l'image entière tient dans le cadre */
    object-fit: contain !important; 
    object-position: center !important;
    background-color: #000; /* Fond noir pour les côtés */
}














/* Le conteneur partagé par le formulaire et les réseaux sociaux */
.contact-info-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1); 
    height: 100%;
    backdrop-filter: blur(10px);
}


/* Petit effet brillant sur le bouton */
.shadow-glow:hover {
    box-shadow: 0 0 15px rgba(13, 202, 240, 0.1);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Taille des icônes personnalisées */
.custom-social-icon {
    width: 40px;  /* Ajuste la taille selon tes envies */
    height: 40px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Effet de survol : l'icône remonte et brille un peu */
.icon-link:hover .custom-social-icon {
    transform: translateY(-5px);
    filter: brightness(1.2) drop-shadow(0 0 8px rgba(13, 202, 240, 0.5));
}

.contact-info-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}