 /* Variables CSS pour une cohérence des couleurs */
 :root {
    --primary-color: #2196f3;
    --secondary-color: #ff4081;
    --gradient-start: #2196f3;
    --gradient-end: #1976d2;
    --text-primary: #333;
    --text-secondary: #666;
    --background-light: #f8f9fa;
    --card-background: #ffffff;
    --animation-timing: 0.3s;
}

/* Style général */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background-light);
    overflow-x: hidden;
}

/* Fond animé avec dégradé dynamique */
#background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, var(--gradient-start), var(--gradient-end), var(--secondary-color), #6a1b9a);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    z-index: -1;
    opacity: 0.1;
}
.welcome-section {
    background: url('images/welcome-bg.jpg') no-repeat center center/cover;
    height: 100vh; /* Pleine hauteur de l'écran */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.welcome-text {
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    padding: 1em 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    animation: slideDown 0.5s ease;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    gap: 2rem;
}

nav ul li a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all var(--animation-timing);
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width var(--animation-timing);
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: var(--secondary-color);
    background: rgba(255, 64, 129, 0.1);
}

/* Sections */
.section {
    padding: 5rem 2rem;
    margin: 2rem auto;
    max-width: 1200px;
    background: var(--card-background);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 1s forwards;
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50%;
    height: 3px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: left;
    animation: slideIn 0.5s forwards 0.5s;
}

/* Centre les boutons */
.centered-btn {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--gradient-end));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--animation-timing);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.2);
    margin: 1rem;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.3);
    background: linear-gradient(135deg, var(--secondary-color), #e91e63);
}

/* Section Projets */
.projets-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.projet-card {
    background: var(--card-background);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all var(--animation-timing);
    position: relative;
}

.projet-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.projet-image {
    position: relative;
    overflow: hidden;
}

.projet-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform var(--animation-timing);
}

.projet-card:hover .projet-image img {
    transform: scale(1.1);
}

.projet-details {
    padding: 1.5rem;
    background: var(--card-background);
}

.projet-details h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.projet-details p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.projet-details .btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--gradient-end));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--animation-timing);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.2);
    margin-top: 1rem;
}

.projet-details .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s;
}

.projet-details .btn:hover::before {
    left: 100%;
}

.projet-details .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.3);
    background: linear-gradient(135deg, var(--secondary-color), #e91e63);
}

/* Section École & Entreprise */
.ecole-item {
    margin-bottom: 3rem;
    text-align: center;
}

.ecole-item a {
    text-decoration: none;
    color: inherit;
}

.ecole-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
    display: block;
}

.ecole-img:hover {
    transform: scale(1.1);
}

.ecole-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.ecole-description h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.ecole-description p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Section Veille */
.veille-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
}

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

.veille-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.veille-photo img:hover {
    transform: scale(1.1);
}

/* Section Contact */
.contact-section {
    background: var(--card-background);
    border-radius: 20px;
    overflow: hidden;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    padding: 2rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all var(--animation-timing);
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all var(--animation-timing);
    background: var(--background-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-info {
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--gradient-end));
    color: white;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="white" stroke-width="0.5" stroke-opacity="0.1"/></svg>') center/50% repeat;
    opacity: 0.1;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.contact-info p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.contact-info a {
    color: white;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.5);
    transition: all var(--animation-timing);
}

.contact-info a:hover {
    border-bottom-color: white;
    padding-bottom: 2px;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    to {
        transform: scaleX(1);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Media Queries */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .section {
        padding: 3rem 1.5rem;
        margin: 1rem;
    }
    
    .projet-card {
        width: 100%;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Effets de survol supplémentaires */
.section:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Animation de chargement progressive */
.section:nth-child(1) { animation-delay: 0.2s; }
.section:nth-child(2) { animation-delay: 0.4s; }
.section:nth-child(3) { animation-delay: 0.6s; }
.section:nth-child(4) { animation-delay: 0.8s; }
.section:nth-child(5) { animation-delay: 1s; }
.veille-section {
    background: #0a0a0a;
    color: #ffffff;
    padding: 50px 10%;
    border-radius: 10px;
}

.veille-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: cyan;
}

.veille-content {
    margin-bottom: 40px;
}

.veille-list {
    list-style: none;
    padding: 0;
}

.veille-list li {
    background: rgba(255, 255, 255, 0.1);
    margin: 10px 0;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1em;
}

.veille-articles, .veille-videos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.article-card, .video-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    text-align: center;
}

.article-card h4, .video-card h4 {
    color: cyan;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.article-card p, .video-card p {
    font-size: 1em;
    margin-bottom: 15px;
}

.btn-veille {
    display: inline-block;
    background: cyan;
    color: black;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.btn-veille:hover {
    background: white;
}


body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
    color: white; /* Texte en blanc */
    background: black; /* Fond noir */
    overflow-x: hidden;
}

#background {
    display: none; /* Supprime l'effet de fond dégradé si présent */
}

header {
    background: rgba(0, 0, 0, 0.9); /* Fond noir semi-transparent */
    color: white;
}

nav ul li a {
    color: white; /* Menu en blanc */
}

nav ul li a:hover {
    color: cyan; /* Effet au survol */
}

.section {
    background: #121212; /* Noir légèrement éclairci pour contraste */
    color: white;
    box-shadow: none; /* Retrait des ombres si besoin */
}

.section h2 {
    color: cyan; /* Titre en bleu clair */
}

.btn {
    background: cyan; /* Bouton bleu clair */
    color: black;
}

.btn:hover {
    background: white;
    color: black;
}

.veille-section {
    background: black;
    color: white;
}

.veille-title {
    color: cyan;
}

.article-card, .video-card {
    background: #222; /* Légère différence avec le fond */
}

.btn-veille {
    background: cyan;
    color: black;
}

.btn-veille:hover {
    background: white;
}
