/* --- IMPORTATION DES POLICES HAUTE COUTURE --- */
@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,wght@0,400;0,900;1,400&family=Montserrat:wght@200;400;700&display=swap');

:root {
    --beige: #dfd3bd;
    --noir: #1a1a1a;
    --blanc: #ffffff;
    --gris-clair: #f9f9f9;
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET & BASE --- */
* { 
    margin: 0; padding: 0; box-sizing: border-box; 
    /* Sécurité anti-copie */
    -webkit-user-select: none; -ms-user-select: none; user-select: none; 
    -webkit-user-drag: none;
}

/* On autorise la sélection pour les liens et contacts */
a { user-select: text; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--blanc);
    color: var(--noir);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.8;
    overflow-x: hidden;
}

/* --- NAVIGATION --- */
header {
    padding: 25px 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

nav {
    display: flex; justify-content: space-between; align-items: center;
    width: 90%; max-width: 1400px; margin: auto;
}

.logo img { height: 75px; transition: var(--transition); }

nav ul { display: flex; list-style: none; gap: 40px; }

nav ul li a {
    text-decoration: none; color: var(--noir);
    font-weight: 700; font-size: 10px;
    letter-spacing: 3px; text-transform: uppercase;
    transition: var(--transition);
}

nav ul li a:hover { color: var(--beige); }

/* --- HERO SECTION --- */
#hero {
    height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: var(--beige);
    text-align: center;
}

#hero h1 {
    font-family: 'Bodoni Moda', serif;
    font-size: clamp(3rem, 12vw, 10rem);
    font-weight: 900; line-height: 0.85;
    text-transform: uppercase; margin-bottom: 20px;
}

#hero p {
    font-size: 14px; letter-spacing: 8px;
    text-transform: uppercase; font-weight: 400;
}

/* --- SECTIONS GÉNÉRALES --- */
.container { 
    width: 80%; max-width: 1100px; 
    margin: 0 auto; padding: 120px 0; 
}

h2 {
    font-family: 'Bodoni Moda', serif; font-size: 3.5rem;
    text-align: center; margin-bottom: 70px; text-transform: uppercase;
}

/* --- PROJET --- */
#projet .grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 100px; text-align: justify;
}

#projet h3 {
    font-family: 'Bodoni Moda', serif; font-size: 1.8rem;
    margin-bottom: 25px; letter-spacing: 2px;
    border-bottom: 2px solid var(--beige); display: inline-block;
}

/* --- MOT DU PRÉSIDENT --- */
#president { background-color: var(--gris-clair); }

.president-flex {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 80px; align-items: center;
}

.president-img { position: relative; padding: 20px; }
.president-img img {
    width: 100%; height: auto; max-height: 650px;
    object-fit: cover; box-shadow: 30px 30px 0px var(--beige);
}

.president-text p {
    font-family: 'Bodoni Moda', serif; font-style: italic;
    font-size: 1.4rem; line-height: 2; color: #444;
}

.signature {
    display: block; margin-top: 30px;
    font-weight: 700; text-transform: uppercase;
    letter-spacing: 3px; font-size: 0.9rem;
}

/* --- ACTIVITÉS --- */
.activities-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}

.card {
    padding: 50px 30px; border: 1px solid #eee;
    text-align: center; transition: var(--transition);
}

.card:hover {
    background: var(--beige); border-color: var(--beige);
    transform: translateY(-10px);
}

.card h3 {
    font-family: 'Bodoni Moda', serif; margin-bottom: 20px; font-size: 1.5rem;
}

/* --- GALERIE PHOTO (Styles Mises à jour) --- */
.gallery-section { margin-bottom: 60px; }

.gallery-section h3 {
    font-family: 'Bodoni Moda', serif; font-size: 1.5rem;
    margin-bottom: 30px; text-align: center;
    color: var(--noir); letter-spacing: 1px;
}

.gallery-separator {
    border: 0; height: 1px; background: var(--beige);
    width: 50%; margin: 60px auto;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 350px;
    gap: 15px;
}

.photo-gallery img {
    width: 100%; height: 100%; object-fit: cover;
    filter: grayscale(20%); transition: var(--transition);
}

.photo-gallery img:hover {
    filter: grayscale(0%); transform: scale(0.97);
}

.hidden-photo { display: none; }

.btn-container { text-align: center; margin-top: 30px; }

.btn-load-more {
    background-color: transparent; border: 1px solid var(--noir);
    color: var(--noir); padding: 15px 30px;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase; letter-spacing: 2px;
    cursor: pointer; transition: var(--transition); font-size: 0.8rem;
}

.btn-load-more:hover {
    background-color: var(--beige); border-color: var(--beige); color: var(--white);
}

/* --- PARTENAIRES --- */
#partenaires { background-color: var(--beige); }

.partners-grid {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 60px; padding: 20px;
}

.partner-item { text-align: center; width: 180px; }
.partner-item img {
    width: 120px; height: 120px; object-fit: contain;
    mix-blend-mode: multiply; margin-bottom: 15px; transition: var(--transition);
}
.partner-item p {
    font-size: 11px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
}

/* --- RÉSEAUX --- */
#reseaux { text-align: center; background-color: var(--blanc); }
.reseaux-flex {
    display: flex; justify-content: center; gap: 100px; margin-top: 50px;
}
.reseau-item {
    display: flex; flex-direction: column; align-items: center; transition: var(--transition);
}
.icon-circle {
    width: 80px; height: 80px; background-color: var(--beige);
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; margin-bottom: 20px; transition: var(--transition);
}
.icon-circle img {
    width: 35px; height: 35px; filter: brightness(0);
}
.reseau-item h3 { font-size: 1rem; letter-spacing: 3px; margin-bottom: 10px; }
.reseau-item a {
    text-decoration: none; color: var(--noir); font-weight: 200;
    font-size: 0.9rem; border-bottom: 1px solid transparent; transition: var(--transition);
}

.reseau-item:hover .icon-circle {
    background-color: var(--noir); transform: rotate(15deg);
}
.reseau-item:hover .icon-circle img { filter: invert(1); }
.reseau-item:hover a { border-bottom: 1px solid var(--beige); color: var(--beige); }

/* --- FOOTER --- */
footer {
    background: var(--noir); color: var(--blanc);
    padding: 100px 0; text-align: center;
}
footer p { color: var(--beige); font-size: 12px; letter-spacing: 2px; }

/* --- LIGHTBOX --- */
.lightbox {
    display: none; position: fixed; z-index: 2000;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center; align-items: center;
}
.lightbox-content {
    max-width: 90%; max-height: 80%;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    border: 5px solid var(--beige); animation: zoomIn 0.3s ease;
}
.close-lightbox {
    position: absolute; top: 30px; right: 50px;
    color: var(--beige); font-size: 50px;
    font-weight: bold; cursor: pointer; transition: 0.3s;
}
.close-lightbox:hover { color: var(--blanc); transform: scale(1.2); }
@keyframes zoomIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* --- MOBILE & RESPONSIVE --- */
@media (max-width: 992px) {
    .container { width: 90%; }
    #hero h1 { font-size: 5rem; }
}

@media (max-width: 768px) {
    #hero h1 { font-size: 3.5rem; padding: 10px 20px; }
    .container { width: 92%; padding: 60px 0; }
    #projet .grid, .president-flex, .activities-grid, .reseaux-flex {
        grid-template-columns: 1fr; gap: 40px; text-align: left;
    }
    .president-img img { height: 400px; box-shadow: 15px 15px 0px var(--beige); }
    .photo-gallery {
        grid-template-columns: repeat(2, 1fr); grid-auto-rows: 250px; gap: 8px;
    }
    nav { flex-direction: column; gap: 20px; }
    nav ul { gap: 15px; flex-wrap: wrap; justify-content: center; }
    .partners-grid { gap: 30px; }
    .partner-item { width: 120px; }
}
