* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: white;
    color: #333;
}

/* HEADER */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 50px;
    border-bottom: 4px solid #003a7d;
}

.logo {
    height: 90px;
}

/* NAV */
.nav a {
    margin-left: 30px;
    text-decoration: none;
    font-weight: bold;
    color: #003a7d;
}

.nav a:hover {
    color: #e6b64c;
}

/* HERO */
.hero {
    background: #003a7d;
    color: white;
    text-align: center;
    padding: 140px 40px;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
}

.hero p {
    max-width: 900px;
    margin: auto;
    font-size: 1.25rem;
    line-height: 1.6;
}

/* SECTIONS CENTRÉES */
.section {
    max-width: 1100px;
    margin: auto;
    padding: 90px 40px;
    text-align: center;
}

.section h2 {
    color: #003a7d;
    margin-bottom: 30px;
}

.section p {
    max-width: 800px;
    margin: auto;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* SECTION ALT */
.section-alt {
    background: #f5f6f8;
}

/* DOMAINES */
.features {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature {
    background: white;
    padding: 35px;
    border-radius: 4px;
}

.feature h3 {
    margin-bottom: 15px;
    color: #003a7d;
}

/* FOOTER */
.footer {
    background: #003a7d;
    color: white;
    text-align: center;
    padding: 30px;
}
/* ===============================
   PARTENAIRES – TAILLE UNIFORME
=============================== */

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 40px;
    justify-items: center;
}

/* Carré identique pour TOUS les logos */
.partners-grid a {
    width: 160px;
    height: 160px;
    background: #ffffff;
    border: 1px solid #e0e0e0;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.partners-grid a:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

/* ✅ CONTRÔLE STRICT DES LOGOS */
.partners-grid img {
    max-width: 120px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}
/* ===============================
   PAGE CONTACT
=============================== */

.section-contact {
    text-align: center;
}

.contact-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 1.15rem;
    line-height: 1.6;
}

.contact-box {
    max-width: 500px;
    margin: auto;
    padding: 40px;
    border: 2px solid #003a7d;
    background: #ffffff;
}

.contact-highlight {
    font-size: 1.3rem;
    font-weight: bold;
    color: #003a7d;
    margin-bottom: 30px;
}

.contact-box a {
    color: #003a7d;
    font-weight: bold;
    text-decoration: none;
}

.contact-box a:hover {
    text-decoration: underline;
}
/* ===============================
   RÉFÉRENCES / PROJETS
=============================== */

.projects-grid {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.project-card {
    background: white;
    text-align: center;
}

.project-card img {
    width: 100%;
    height: 160px;          /* ✅ hauteur réduite */
    object-fit: contain;    /* ✅ plus de découpe */
    background: #f5f6f8;    /* optionnel : cadre clair */
}
``
}

.project-card h3 {
    margin: 20px 15px 10px;
    color: #003a7d;
}

.project-card p {
    margin: 0 15px 25px;
    font-size: 1rem;
}
/* ===============================
   RÉFÉRENCES / GRILLE PROJETS
=============================== */

.projects-grid {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.project-card {
    background: #ffffff;
    text-align: center;
}

.project-card img {
    width: 100%;
    height: 160px;          /* Taille raisonnable */
    object-fit: contain;    /* Image complète, pas coupée */
    background: #f5f6f8;
    cursor: zoom-in;
}

.project-card h3 {
    margin: 20px 15px 10px;
    color: #003a7d;
}

.project-card p {
    margin: 0 15px 25px;
}

/* ===============================
   LIGHTBOX (AGRANDISSEMENT)
=============================== */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.lightbox:target {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    box-shadow: 0 0 30px rgba(0,0,0,0.6);
}

/* Fermeture au clic */
.lightbox a {
    color: white;
    text-decoration: none;
}
/* Séparation claire des grandes catégories de références */
.references-block {
    margin-top: 80px;
}
