/* style.css */

/* =================== */
/* POLICES ET TAILLE    */
/* =================== */
body {
    font-family: 'Inter', sans-serif;
    color: #1f2937; /* text-gray-800 */
    margin: 0;
}

/* Titres principaux */
h1 {
    font-weight: 800; /* font-extrabold */
    line-height: 1.2;
}

h2 {
    font-weight: 700; /* font-bold */
}

h3 {
    font-weight: 600; /* font-semibold */
}

/* =================== */
/* COULEURS            */
/* =================== */
:root {
    --color-primary: #0F2A44;    /* Bleu marine */
    --color-secondary: #F59E0B;  /* Orange / Jaune énergie */
    --gray-50: #F9FAFB;
    --gray-600: #4B5563;
    --gray-200: #E5E7EB;
}

/* Sections */
.bg-primary { background-color: var(--color-primary); }
.bg-secondary { background-color: var(--color-secondary); }
.bg-gray-50 { background-color: var(--gray-50); }

.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-gray-200 { color: var(--gray-200); }
.text-gray-600 { color: var(--gray-600); }

/* =================== */
/* NAVIGATION          */
/* =================== */
nav a {
    font-weight: 500; /* font-medium */
    text-decoration: none;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--color-secondary);
}

nav a.active {
    color: var(--color-secondary);
    font-weight: 600; /* font-semibold */
}

/* =================== */
/* BOUTONS             */
/* =================== */
.btn-don {
    background-color: var(--color-secondary);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background-color 0.3s;
    text-decoration: none;
}

.btn-don:hover {
    background-color: #f28c0b;
}

.btn-hero {
    background-color: var(--color-secondary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background-color 0.3s;
    text-decoration: none;
}

.btn-hero:hover {
    background-color: #f28c0b;
}

/* Bouton secondaire hero */
.btn-hero-secondary {
    border: 2px solid white;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-hero-secondary:hover {
    background-color: white;
    color: var(--color-primary);
}

/* =================== */
/* CARTES SERVICES      */
/* =================== */
.card {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-align: center;
    transition: box-shadow 0.3s;
}

.card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.card .icon-secondary {
    font-size: 3rem; /* text-5xl */
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

/* =================== */
/* IMPACT SECTION       */
/* =================== */
.impact {
    text-align: center;
}

.impact .number {
    font-size: 2.25rem; /* text-4xl */
    font-weight: 800; /* font-extrabold */
}

.impact .label {
    margin-top: 0.5rem;
    font-size: 1.125rem; /* text-lg */
}

/* =================== */
/* FOOTER              */
/* =================== */
footer {
    background-color: var(--color-primary);
    color: #d1d5db; /* text-gray-300 */
}

footer h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

footer a {
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--color-secondary);
}

/* =================== */
/* GALERIE PHOTOS       */
/* =================== */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.photo-card {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    background: #e5e7eb;
}

.photo-card img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.3s;
}

.photo-card:hover img { transform: scale(1.05); }

.photo-card .overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15,42,68,0.75) 0%, transparent 50%);
    opacity: 0; transition: opacity 0.3s;
    display: flex; align-items: flex-end; padding: 1rem;
}

.photo-card:hover .overlay { opacity: 1; }

.photo-card .overlay h3 {
    color: white; font-weight: 700;
    font-size: 1rem; margin: 0;
}

/* =================== */
/* LIGHTBOX             */
/* =================== */
#lightbox {
    display: none; position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,0.92);
    align-items: center; justify-content: center;
}

#lightbox.open { display: flex; }

#lightbox-inner {
    position: relative; max-width: 860px; width: 95vw;
    display: flex; flex-direction: column; align-items: center;
}

#lightbox img {
    width: 100%; max-height: 65vh;
    object-fit: contain; border-radius: 12px;
}

#lightbox-info {
    color: white; text-align: center;
    padding: 1.25rem 1rem 0; max-width: 600px;
}

#lightbox-info h3 { font-size: 1.25rem; font-weight: 700; margin: 0 0 0.4rem; }
#lightbox-info p  { font-size: 0.95rem; color: #d1d5db; margin: 0; }

#lightbox-counter {
    color: #9ca3af; font-size: 0.85rem; margin-top: 0.75rem;
}

.lb-btn {
    position: absolute; top: 35%; transform: translateY(-50%);
    background: rgba(255,255,255,0.12); border: none; color: white;
    width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}

.lb-btn:hover { background: #F59E0B; }
.lb-btn.prev  { left: -60px; }
.lb-btn.next  { right: -60px; }

@media (max-width: 700px) {
    .lb-btn.prev { left: 0; top: auto; bottom: -56px; transform: none; }
    .lb-btn.next { right: 0; top: auto; bottom: -56px; transform: none; }
}

#lightbox-close {
    position: fixed; top: 1rem; right: 1rem;
    background: rgba(255,255,255,0.12); border: none; color: white;
    width: 40px; height: 40px; border-radius: 50%; font-size: 1.2rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s; z-index: 10;
}

#lightbox-close:hover { background: #F59E0B; }
