* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #041985;
    --secondary-color: #082452;
    --accent-color: #021430;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
    color: white;
}

.logo-container img {
    width: 150px;
    animation: pulse 1.5s ease-in-out infinite;
}

.progress-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    margin: 2rem auto 1rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: white;
    width: 0;
    animation: fillProgress 1.0s ease-out forwards;
}

.loading-text {
    font-size: 1.2rem;
    opacity: 0.9;
    animation: fadeInOut 0.7s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes fillProgress {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

/* Navigation */
nav {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 0 0; /* Pas de padding à gauche */
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px; /* Hauteur fixe du header */
}

/*.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}*/
.logo {
    display: flex;
    align-items: center;
    height: 100%; /* Prend toute la hauteur du nav-container */
    padding: 0rem 2; /* Petite marge en haut/bas */
}

.logo img {
    height: 100%; /* Prend toute la hauteur disponible */
    width: auto;
    max-height: 78px; /* Limite maximale pour éviter que ce soit trop grand */
    transition: transform 0.3s ease;
    display: block;
    object-fit: contain; /* Garde les proportions de l'image */
}

.logo img:hover {
    transform: scale(1.05);
}

/* Pour mobile */
@media (max-width: 768px) {
    .nav-container {
        height: 70px;
    }
    
    .logo img {
        max-height: 60px;
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.burger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    color: var(--white);
    padding: 8rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="https://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}
.construction-banner-subtle {
    background-color: #e8eef5;
    color: #1e40af;
    border-bottom: 2px solid #98bbf5;
}

/* Sections */
section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.emoji-large {
    font-size: 4rem;
    margin-bottom: 2rem;
}

/* Passions Grid */
.passions {
    background-color: var(--bg-light);
}

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

.passion-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
    /* Image en fond */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none; /* Enlève le soulignement */
    cursor: pointer; /* Change le curseur en main */
}

/* Overlay sombre permanent pour rendre le texte lisible */
.passion-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    z-index: 1;
    transition: background 0.3s ease;
}

.passion-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.passion-card:hover::before {
    background: rgba(0, 0, 0, 0.7);
}

/* Le contenu doit passer au-dessus de l'overlay */
.passion-card > * {
    position: relative;
    z-index: 2;
    color: white;
}

.passion-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.passion-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: white;
}

.passion-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 4rem;
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.project-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.project-date {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Ressources Section */
.ressources {
    background-color: var(--bg-light);
}

.ressources-container {
    display: grid;
    gap: 3rem;
}

.ressource-category {
    background-color: var(--white);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.ressource-category h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.ressource-category h3 span {
    font-size: 2rem;
}

.ressource-list {
    display: grid;
    gap: 1.5rem;
}

.ressource-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.ressource-item:hover {
    background-color: #f3f4f6;
    transform: translateX(5px);
}

.ressource-icon {
    font-size: 2rem;
    min-width: 50px;
    text-align: center;
}

.ressource-info {
    flex: 1;
}

.ressource-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.ressource-info p {
    color: var(--text-light);
    line-height: 1.6;
}

.ressource-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

.ressource-link:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, #111827 100%);
    color: var(--white);
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 0;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-content p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.8rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    transform: scale(1.2);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: right 0.3s ease;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-links.active {
        right: 0;
    }

    .burger {
        display: flex;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .passions-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 3rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 5rem 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }
}