:root {
    --primary-color: #1a1a1a;
    --secondary-color: #f8f9fa;
    --accent-color: #009ee3;
    --text-color: #4a4a4a;
    --font-main: 'Arial', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bg-light {
    background-color: var(--secondary-color);
}

header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-img {
    max-height: 50px;
    width: auto;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.hero {
    height: 100vh;
    background: url("img/loupe.jpeg") center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    background: var(--accent-color);
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn:hover {
    background: #007bb5;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* --- DÉBUT DES NOUVELLES CARTES AVEC EFFET POP-UP --- */
.card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
    position: relative; /* Indispensable pour l'effet pop-up */
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block; /* Évite un petit espace blanc sous l'image */
}

.card h3 {
    margin: 0;
    padding: 20px 10px;
    color: var(--primary-color);
    background-color: #fff;
}

.card p {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px; /* La même hauteur que l'image pour la recouvrir */
    background-color: rgba(26, 26, 26, 0.95); /* Fond gris foncé légèrement transparent */
    color: #fff; /* Texte en blanc pour ressortir */
    margin: 0;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    
    /* Animation initiale : invisible et rétréci */
    opacity: 0;
    transform: scale(0.5); 
    /* La formule magique "cubic-bezier" donne l'effet de petit rebond pop-up */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

/* Quand la souris survole la carte, le pop-up s'active */
.card:hover p {
    opacity: 1;
    transform: scale(1);
}
/* --- FIN DES NOUVELLES CARTES --- */

.content-flex {
    display: flex;
    align-items: center;
    gap: 50px;
}

.text-content {
    flex: 1;
    font-size: 1.1rem;
}

.image-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-info a {
    color: var(--accent-color);
    text-decoration: none;
}

footer {
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 20px;
}

@media (max-width: 768px) {
    .content-flex {
        flex-direction: column;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .nav-links {
        display: none;
    }
}