/* ----- RESET ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

/* ----- GLOBAL ----- */
body {
    background: linear-gradient(135deg, #0d1117, #1b2330);
    color: #e6e6e6;
    min-height: 100vh;
}

.container {
    width: 85%;
    margin: auto;
    padding-top: 40px;
}

/* ----- HEADER ----- */
header {
    background: #0f1620;
    padding: 20px 0;
    border-bottom: 1px solid #1f2a38;
}

header h1 {
    text-align: center;
    color: #4ea1ff;
    font-size: 2rem;
}
/* ----- HERO BANNER ----- */
.hero-banner {
    width: 100%;
    height: 280px;
    background-image: url('assets/banner.pdf'); /* Image informatique */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;

    border-bottom: 1px solid #1f2a38;
    margin-bottom: 40px;

    position: relative;
}

/* Effet sombre transparent pour lisibilité */
.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.hero-content {
    position: relative;
    text-align: left;        /* Texte aligné à gauche */
    color: #e6e6e6;
    width: 80%;              /* Pour éviter que le texte soit trop collé au bord */
    max-width: 900px;        /* Largeur confortable */
}
.hero-banner {
    justify-content: flex-start;   /* Place le contenu à gauche */
    padding-left: 60px;            /* Espace depuis le bord */
}

.hero-content h2 {
    font-size: 2rem;
    color: #4ea1ff;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ----- NAVBAR ----- */
nav {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

nav ul li {
    position: relative;
    padding-bottom: 10px;
}

nav a {
    color: #e6e6e6;
    text-decoration: none;
    font-size: 1.1rem;
    transition: 0.3s;
}

nav a:hover {
    color: #4ea1ff;
}

/* ----- DROPDOWN ----- */
nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;        /* Le menu apparaît juste sous le parent */
    left: 0;          /* Aligné à gauche du parent */
    background: #0f1620;
    padding: 10px 0;
    border: 1px solid #1f2a38;
    border-radius: 5px;
    min-width: 180px;
    z-index: 9999;    /* Le menu passe AU-DESSUS de tout */
}

/* Le menu reste ouvert tant que la souris est sur le LI */
nav ul li:hover > ul {
    display: block;
}

/* Sous-éléments du menu */
nav ul li ul li {
    padding: 10px 20px;
    white-space: nowrap; /* Empêche le texte de casser */
}

/* ----- CONTENT ----- */
section {
    margin-top: 40px;
    background: #111a25;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #1f2a38;
}

h2 {
    color: #4ea1ff;
    margin-bottom: 20px;
}

/* ----- FOOTER ----- */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    color: #6f7a89;
}

/* ----- BOUTONS DE TELECHARGEMENT ----- */
.documents-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 20px;
}

/* Bouton de téléchargement */
.download-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #4ea1ff;
    color: #0d1117;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);

    width: fit-content;
    padding-left: 25px;
    padding-right: 25px;
    justify-content: center; /* Centre le contenu dans le bouton */
}

.download-btn:hover {
    background-color: #77baff;
}

/* Icône */
.download-btn img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
/* SECTION */
.social-section {
    width: 80%;
    margin: 60px auto;
    text-align: center;
    color: white;
}

.social-section h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #4ea1ff;
}

.social-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 40px;
}

/* GRID */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
}

/* CARDS */
.social-card {
    background: linear-gradient(135deg, #0d1b2a, #1b263b);
    border: 2px solid #4ea1ff;
    border-radius: 15px;
    padding: 20px;
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.3s;
}

.social-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.social-card span {
    font-size: 1.2rem;
    font-weight: 600;
}

/* HOVER */
.social-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 20px #4ea1ff;
}

/* COULEURS SPÉCIFIQUES */
.facebook:hover { border-color: #1877f2; }
.instagram:hover { border-color: #e1306c; }
.twitter:hover { border-color: #1da1f2; }
.linkedin:hover { border-color: #0a66c2; }
.github:hover { border-color: #ffffff; }
.tiktok:hover { border-color: #ff0050; }

.social-card:hover img {
    transform: scale(1.25); /* ← l’image grossit sans bouger le cadre */
}
