html{
    scroll-behavior: smooth;
}

.container {
    width: 100%; /* Prend toute la largeur disponible */
    max-width: 1200px; /* Mais s'arrête à 1200px pour ne pas être trop large sur PC */
    margin: 0 auto;
    padding: 0 15px; /* Ajoute une petite marge interne pour que le texte ne colle pas aux bords sur mobile */
    box-sizing: border-box; /* Assure que le padding ne casse pas la largeur */
}

main > section {
    padding: 2rem 0;
}

/* /----------------------------------Header------------------------------------------------------------*/ 

#header {
    position: fixed;
    top: 0;
    width: 100%;
    /* Fond noir semi-transparent avec effet de flou (Glassmorphism) */
    background-color: rgba(15, 15, 15, 0.85); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Ligne subtile en bas */
    z-index: 1000;
    transition: all 0.3s ease;
}

#header > .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px; /* Hauteur fixe pour un bel alignement */
}

#header .container ul {
    display: flex;
    gap: 2rem; /* Un peu plus d'espace entre les liens */
    margin: 0;
    padding: 0;
    list-style: none;
}

#header nav ul a {
    color: #e2e8f0;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

#header nav ul a:hover, 
#header nav ul a.active {
    color: #60a5fa; /* Bleu clair tech au survol */
}

#header .logo {
    height: 40px;
    transition: transform 0.3s ease;
} 

#header .logo:hover {
    transform: scale(1.05);
}

/* /-------------------------------------Menu----------------------------------------------------*/ 

 #menus #menuToggle
 {
   display: block;
   position: fixed;
   top: 20px;
   left: 20px;
   
   z-index: 1;
   
   -webkit-user-select: none;
   user-select: none;
 }
 
 #menus #menuToggle a
 {
   text-decoration: none;
   color: #acabab;
   transition: color 0.3s ease;
 }
 
 #menus #menuToggle a:hover
 {
   color: rgb(255, 255, 255);
 }
 
 
 #menus #menuToggle input
 {
   display: block;
   width: 40px;
   height: 32px;
   position: absolute;
   top: -7px;
   left: -5px;
   
   cursor: pointer;
   
   opacity: 0; 
   z-index: 2; 
   
   -webkit-touch-callout: none;
 }
 

  #menus #menuToggle span
 {
   display: block;
   width: 33px;
   height: 4px;
   margin-bottom: 5px;
   position: relative;
   
   background: #cdcdcd;
   border-radius: 3px;
   
   z-index: 1;
   
   transform-origin: 4px 0px;
   
   transition:0.5s cubic-bezier(0.77,0.2,0.05,1.0),
               opacity 0.55s ease;
 }
 
 #menus #menuToggle span:first-child
 {
   transform-origin: 0% 0%;
 }
 
 #menus #menuToggle span:nth-last-child(2)
 {
   transform-origin: 0% 100%;
 }

  #menus #menuToggle input:checked ~ span
 {
   opacity: 1;
   transform: rotate(45deg) translate(-2px, -1px);
   background: #b4b2b2;
 }
 
 
  #menus #menuToggle input:checked ~ span:nth-last-child(3)
 {
   opacity: 0;
   transform: rotate(0deg) scale(0.2, 0.2);
 }
 


  #menus #menu
 {
   position: absolute;
   max-width: 306px;
   width: 100vw;
   max-height: 100vh;
   margin: -100px 0 0 -50px;
   padding: 50px;
   padding-top: 125px;
   box-sizing: border-box;
   overflow-y: auto;
   background: #1b1b1b;
   list-style-type: none;
   -webkit-font-smoothing: antialiased;
   
   transform-origin: 0% 0%;
   transform: translate(-100%, 0);
   
   transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
 }
 

 

/* /----------------------------------Autre------------------------------------------------------------*/ 
#home {
    height: 100vh;
    background-image: url('../image/Reseau.jpg');
    background-size: cover;
    color: white;
    background-color: rgba(0,0,0,0.7);
    background-blend-mode: overlay;
    font-size: 2em;
    justify-content: center;
    align-items: center;
    display: flex;
}



#img{
    height: 400px;
      display: block;
     margin-left: auto;
     margin-right: auto;
}

#propos .container{
    display: flex;
    gap: 1rem;
}
h3 {
    text-decoration: underline;
}

/* /----------------------------------Tablette------------------------------------------------------------*/ 
@media screen and (max-width: 800px) {
    .container{
        width: 100%;
    }

    #Veille .tt {
        grid-template-columns: repeat(2, 1fr);
    }
}

#propos .container {
    flex-direction: column;
}


/* --------------------------------------Smartphone ----------------------------------------------------*/
@media screen and (max-width: 500px) {
    #Veille .tt {
        grid-template-columns: repeat(1, 1fr);
    }
}
/* /----------------------------------Bouton------------------------------------------------------------*/ 

@property --color-primary {
    syntax: "<color>";
    inherits: false;
}
    .btn {
        display: inline-block;
        padding: 0.5rem 1rem;
        cursor: pointer;
        text-decoration: none;
        border-radius: 5px;
        border-style: solid;
        border-width: 1px;
        transition: 0.5s;
    }
    
    .btn-primary {
        background-color: black;
        color: white;
        border-color: black;
    }
    
    .btn-primary:hover {
        background-color: gray;
        color: black;
        border-color: black;
    }
    
    .btn-outline-primary {
        background-color: black;
        color: white;
        border-color: black;
    }
    
    .btn-outline-primary:hover {
        background-color: gray;
        color:black ;
        border-color: black;
    }

    #backToTopBtn {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 99;
        font-size: 18px;
        border: none;
        outline: none;
        background-color: #333;
        color: white;
        padding: 10px;
        border-radius: 50%;
        text-decoration: none;
}

    /* ------------------------------------------classe utilitaire----------------------------- ----------*/

    body{
        background-color: grey;
        color: black;
        margin: 0 !important;
        width: 100%;
        overflow-x: hidden;
    }

    
#cequejeveux {
   border: none !important; 
   text-align: center;
   text-decoration: none !important; /* On enlève le soulignement HTML simple */
   margin-top: 60px; 
   margin-bottom: 10px; 
   font-size: 3rem; /* On l'agrandit bien */
   text-transform: uppercase; /* Tout en majuscules pour le côté pro */
   letter-spacing: 4px; /* On espace un peu les lettres */
   font-weight: 800;
}
    
    /* /-------------------------------------Projet------------------------------------------------------------*/ 
    .gallery {
        display: flex;
        justify-content: space-between;
    }
    
    .image-container {
        position: relative;
        width: 50%; 
        margin: 5px;
        overflow: hidden;
        
    }
    
    .image-container img {
        width: 100%;
        height: auto;
        display: block;
        z-index: 1
    }
    
    .overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8); 
        color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;
        transition: opacity 0.5s ;
    }
    
    .image-container:hover .overlay {
        opacity: 1;
    }
        /* /-------------------------------------Carte------------------------------------------------------------*/ 
   
        
        .card-container {
            display: flex;
            justify-content: center; 
            gap: 15px;
            margin: 1 auto; 
            padding-bottom: 100px;
        }
        
        .cards {
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            width: 257px;
            text-align: center;
            transition: transform 0.3s;
        }
        
        .cards:hover {
            transform: translateY(-10px);
        }
        
        .cards img {
            width: 100%;
            height: auto;
        }
        
        .cards h2 {
            margin: 10px 0;
            font-size: 1.5em;
        }
        
        .cards p {
            padding: 0 20px;
            font-size: 1em;
            color: #555;
        }
        
        .cards a {
            display: inline-block;
            margin: 15px 0;
            padding: 10px 20px;
            background-color: #000000;
            color: white;
            text-decoration: none;
            border-radius: 10px;
            transition: background-color 0.3s;
        }
        
        .cards a:hover {
            color: black;
            background-color: #ffffff;
        }
        
        

/* /-------------------------------------Contact------------------------------------------------------------*/ 

/* =========================================
   STYLE PAGE CONTACT MODERNE
   ========================================= */

#contact-section {
    padding: 60px 0;
    background-color: #f4f4f4;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Partie gauche : Infos */
.contact-info {
    flex: 1;
    min-width: 300px;
    background-color: #1b1b1b;
    color: white;
    padding: 40px;
}

.contact-info h3 {
    color: white;
    border-bottom: 2px solid #444;
    padding-bottom: 10px;
    text-decoration: none;
}

.contact-details {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.contact-details li {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-details a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-details a:hover {
    color: white;
}

.social-icon-btn {
    width: 40px;
    margin-top: 10px;
    filter: grayscale(1) invert(1); /* Rend l'icône LinkedIn blanche */
    transition: 0.3s;
}

.social-icon-btn:hover {
    filter: none; /* Reprend sa couleur au survol */
    transform: scale(1.1);
}

/* Partie droite : Formulaire */
.contact-form-container {
    flex: 1.5;
    min-width: 300px;
    padding: 40px;
}

.modern-form .form-group {
    margin-bottom: 20px;
}

.modern-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.modern-form input, 
.modern-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box; /* Important pour que le padding ne dépasse pas */
    transition: border-color 0.3s, box-shadow 0.3s;
}

.modern-form input:focus, 
.modern-form textarea:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.btn-submit {
    background-color: #000;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    width: 100%;
    transition: background 0.3s, transform 0.2s;
}

.btn-submit:hover {
    background-color: #333;
    transform: translateY(-2px);
}

/* Responsive Mobile */
@media screen and (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column;
    }
    .contact-info, .contact-form-container {
        padding: 30px;
    }
}


/* /-------------------------------------footer------------------------------------------------------------*/ 

.footer-container {
    background-color: #333;
    color: white;
    padding: 20px 0;
}

.footer-content {
    display: flex;
    justify-content: center;
    width: 80%;
    margin: 0 auto;
    gap: 2px;
}

.footer-column {
    flex: 1;
    margin: 0 10px;
}

/* Forcer les titres du footer en blanc */
.footer-column h3 {
    margin-bottom: 10px;
    color: #ffffff !important; 
}

.footer-column ul {
    list-style-type: none;
    padding: 0;
}

/* Forcer le texte classique (téléphone, adresse) en blanc */
.footer-column ul li {
    margin-bottom: 10px;
    color: #ffffff;
}

.footer-column a {
    color: white;
    text-decoration: none;
}

.footer-column a:hover {
    text-decoration: underline;
}

.footer-column .article-date {
    font-size: 0.9em;
    color: #ffffff; /* Modifié pour être complètement blanc */
}

.social-icons {
    display: flex;
}

.social-icons li {
    margin-right: 10px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    width: 80%;
    margin: 0 auto;
}

.footer-logo img {
    width: 100px;
}

/* Forcer le texte des droits d'auteur en blanc */
.footer-copyright {
    font-size: 0.9em;
    color: #ffffff; /* Modifié pour être complètement blanc */
}

.footer-links ul {
    list-style-type: none;
    padding: 0;
    display: flex;
}

.footer-links ul li {
    margin-left: 15px;
}

.footer-links ul li a {
    color: white;
    text-decoration: none;
}

/* Gérer le survol pour les liens du bas */
.footer-links ul li a:hover {
    text-decoration: underline;
}

.logos {
    height: 30px;
}


/* =========================================
   NOUVEAU STYLE - TYPOGRAPHIE & GENERAL
   ========================================= */

/* On applique une police propre sur tout le site */
body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f9f9f9; /* Un gris très clair, plus doux que le blanc pur */
    color: #333; /* Gris foncé au lieu de noir pur (plus lisible) */
    line-height: 1.6; /* Aère le texte */
}

/* Titres jolis et modernes */
h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    color: #111;
    margin-bottom: 0.5rem;
}

/* =========================================
   STYLE SPECIFIQUE PAGE PRESENTATION
   ========================================= */

/* Mise en page : Flexbox pour mettre image et texte côte à côte */
.split-layout {
    display: flex;
    flex-wrap: wrap; /* Permet de passer à la ligne sur mobile */
    align-items: flex-start; /* Aligne le haut de l'image avec le haut du texte */
    gap: 40px; /* Espace entre l'image et le texte */
    padding-top: 20px;
}

.full-width {
    width: 100%;
    text-align: center;
    margin-bottom: 40px;
}

/* Style du grand titre H2 */
.section-title {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    /* On retire ton ancien style de cadre noir */
    border: none !important; 
    text-decoration: none !important;
}

/* Petite barre décorative sous le titre */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #000; /* Change cette couleur si tu veux (ex: bleu) */
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- Colonne Image --- */
.image-box {
    flex: 1; /* Prend 1 part de l'espace */
    min-width: 300px; /* Largeur mini */
    display: flex;
    justify-content: center;
}

.profile-pic {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 15px; /* Arrondit les angles */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); /* Ombre portée élégante */
    object-fit: cover;
}

/* --- Colonne Texte --- */
.text-box {
    flex: 1.5; /* Le texte prend plus de place que l'image */
    min-width: 300px;
}

.info-block {
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Légère ombre sur les blocs de texte */
}

.info-block h3 {
    font-size: 1.3rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
    text-decoration: none; /* Enlève le soulignement moche */
}

.icon {
    margin-right: 10px; /* Espace entre l'emoji et le titre */
}

/* --- Joli Bouton --- */
.btn-download {
    display: inline-block;
    background-color: #000;
    color: white;
    padding: 12px 30px;
    border-radius: 30px; 
    text-decoration: none;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
    transition: transform 0.3s, background-color 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-download:hover {
    background-color: #333;
    transform: translateY(-3px); 
}

/* =========================================
   RESPONSIVE (MOBILE)
   ========================================= */
@media screen and (max-width: 768px) {
    .split-layout {
        flex-direction: column; /* Tout s'empile verticalement */
        gap: 20px;
    }
    
    .text-box, .image-box {
        width: 100%; /* Prend toute la largeur */
    }

    .section-title {
        font-size: 2rem;
    }
}


/* =========================================
   STYLE PAGE ACCUEIL
   ========================================= */

#home {
    /* Un filtre très sombre sur l'image pour que le texte ressorte parfaitement */
    background: linear-gradient(rgba(10, 10, 15, 0.8), rgba(10, 10, 15, 0.9)), url('../image/Reseau.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    padding-top: 70px; /* Compense la hauteur du header fixe */
    margin-top: -100px;
}

.hero-content {
    max-width: 900px;
    padding: 40px;
    /* Un fond à peine visible, juste pour structurer */
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px; /* Coins légèrement arrondis, plus "carré" et pro */
}

/* Le Nom Prénom */
.hero-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: #ffffff; /* Blanc pur classique et infaillible */
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

/* Le statut (BTS SIO) */
.subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #00d2ff; /* Un beau cyan lumineux (esprit réseau/cyber) */
    margin-bottom: 25px;
    letter-spacing: 2px;
}

/* La phrase d'accroche */
.tagline {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 45px;
    color: #b0bec5; /* Gris clair */
    font-weight: 300;
}

/* --- Boutons d'action --- */
.cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 15px 35px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 4px; /* Un look plus bouton d'interface tech */
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Bouton principal (Cyan) */
.btn-filled {
    background-color: #00d2ff;
    color: #000000;
    border: 2px solid #00d2ff;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

.btn-filled:hover {
    background-color: transparent;
    color: #00d2ff;
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.6);
}

/* Bouton secondaire (Contour Blanc) */
.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-outline:hover {
    background-color: #ffffff;
    color: #000000;
}

/* Adaptation Mobile */
@media screen and (max-width: 600px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .subtitle {
        font-size: 1.2rem;
    }
    .cta-group {
        flex-direction: column;
    }
    .btn-hero {
        width: 100%;
        box-sizing: border-box;
    }
}


/* Espace pour éviter que le contenu ne passe sous le header fixe */
main {
    padding-top: 80px; /* Ajuste selon la hauteur de ton header */
}

/* Centrer le titre PROJET */
.bg-light .container h2#Veille {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-transform: uppercase;
}

/* Style pour le nouveau bouton en bas de page */
.btn-container-bottom {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.btn-e5 {
    background-color: #333;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
    text-decoration: none;
}

.btn-e5:hover {
    background-color: #555;
}



/* Style spécifique pour la section veille */
.info-block p {
    font-size: 1.1rem;
    color: #444;
    /* CORRECTION ICI : Retrait du max-width et du centrage (margin auto) */
    margin-bottom: 20px;
}

.card-container {
    flex-wrap: wrap; /* Assure que les cartes passent à la ligne sur petit écran */
    margin-top: 30px;
}

#Veille strong {
    color: #000;
    font-weight: 700;
}


/* Style spécifique pour le bouton Jury */
.btn-container-bottom {
    display: flex;
    justify-content: center;
    padding: 50px 0; /* Plus d'espace pour bien le séparer des projets */
}

.btn-jury {
    background-color: #1b1b1b; /* Noir profond */
    color: white;
    padding: 18px 40px;
    border: 2px solid #333;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-jury:hover {
    background-color: #ffffff;
    color: #1b1b1b;
    border-color: #1b1b1b;
    transform: scale(1.05); /* Effet d'agrandissement au survol */
}