/* ==========================
   RESET
========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==========================
   BODY
========================== */
body {
    background-color: #000;
    color: #fff;
    font-family: 'Playfair Display', serif; /* Toute la page en Playfair Display */
    line-height: 1.6;
}

/* ==========================
   TOPBAR
========================== */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    background-color: #111;
}
.top-left p {
    font-family: 'Avenir', sans-serif; /* Topbar reste en Avenir */
    font-weight: 300;
    font-size: 14px;
    color: #fff;
}
.top-right .logo-header { height: 30px; }

/* ==========================
   SEPARATOR
========================== */
.separator { height: 1px; background: #fff; margin: 0 30px; }

/* ==========================
   HEADER MAIN
========================== */
.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    flex-wrap: wrap;
}
.logo-text {
    display: flex;
    align-items: center;
    gap: 20px;
}
.logo-large { height: 80px; }
.text-left h1 { font-size: 32px; font-weight: 700; margin-bottom: 5px; }
.text-left h2 { font-size: 20px; font-weight: 400; }

/* ==========================
   NAV + SOCIAL
========================== */
.nav-social {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}
.nav-links { list-style: none; display: flex; gap: 25px; flex-wrap: wrap; }
.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 400;
    font-family: 'Playfair Display', serif;
}
.nav-links a:hover { opacity: 0.7; }
.social-icons a img { height: 25px; margin-left: 15px; }

/* ==========================
   QUI SOMMES-NOUS
========================== */
.qui-sommes-nous {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 60px 30px;
    gap: 40px;
    flex-wrap: wrap;
}
.qs-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}
.qs-left h1 { font-size: 52px; font-weight: 700; margin-bottom: 20px; }
.qs-left h2 { font-size: 32px; font-weight: 400; margin-bottom: 20px; }
.qs-left h3 { font-size: 28px; font-weight: 400; margin-bottom: 20px; }
.qs-left p { font-size: 18px; margin-bottom: 20px; max-width: 600px; }
.btn {
    display: inline-block;
    padding: 12px 25px;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-weight: 400;
    border-radius: 4px;
    margin-top: 20px;
    transition: 0.3s;
    font-family: 'Playfair Display', serif;
}
.btn:hover { opacity: 0.8; }
.qs-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.qs-right img {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

/* ==========================
   NOS SERVICES
========================== */
.nos-services {
    padding: 100px 30px;
    text-align: center;
    color: #fff;
    background-image: url('img/services3.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}
.nos-services::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 0;
}
.nos-services h2, .nos-services h3, .nos-services p {
    position: relative;
    z-index: 1;
}
.nos-services h2 { font-size: 48px; margin-bottom: 20px; font-weight: 700; }
.nos-services h3 { font-size: 36px; margin-bottom: 25px; font-weight: 700; }
.nos-services p { font-size: 20px; max-width: 900px; margin: 0 auto 20px auto; line-height: 1.8; }

/* ==========================
   SERVICES GRID
========================== */
.services-grid {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    padding: 60px 20px;
}
.service-box {
    background: #fff;
    color: #000;
    padding: 40px;
    flex: 1 1 250px;
    text-align: center;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: 0.3s;
    font-family: 'Playfair Display', serif;
}
.service-box:hover { transform: translateY(-5px); }
.num {
    background: #000;
    color: #fff;
    padding: 8px 12px;
    border-radius: 50%;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
}
.service-box h3 { font-weight: 700; margin-bottom: 15px; }
.service-box p { font-weight: 400; margin-bottom: 15px; line-height: 1.8; }
.btn2 {
    display: inline-block;
    margin-top: 10px;
    border: 1px solid #000;
    background: transparent;
    color: #000;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 400;
    border-radius: 4px;
    transition: 0.3s;
    font-family: 'Playfair Display', serif;
}
.btn2:hover { background: #000; color: #fff; }

/* ==========================
   FORMATIONS
========================== */
.formations {
    padding: 60px 20px;
    text-align: center;
}
.formations h4 { font-size: 48px; margin-bottom: 30px; font-weight: 700; }
.formation-card { margin-bottom: 20px; }
.formation-card img {
    width: 100%;
    max-width: 350px;
    border-radius: 5px;
    height: auto;
}

/* ==========================
   CONTACT
========================== */
.contact {
    text-align: center;
    padding: 60px 20px;
    background-color: #fff;
    color: #000;
    border-radius: 10px;
    max-width: 1200px;
    margin: 50px auto;
}
.contact h2 { font-size: 36px; margin-bottom: 15px; font-weight: 700; font-family: 'Playfair Display', serif; }
.contact p { font-size: 16px; margin-bottom: 30px; }
#map { width: 100%; height: 500px; border-radius: 10px; margin-bottom: 30px; }
.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Avenir', sans-serif;
    resize: vertical;
}
.contact-form button {
    padding: 12px 25px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    transition: 0.3s;
}
.contact-form button:hover { background-color: #444; }

/* ==========================
   FOOTER
========================== */
footer {
    text-align: center;
    padding: 20px;
    background: #111;
    font-weight: 400;
    font-family: 'Playfair Display', serif;
}

/* ==========================
   RESPONSIVE DESIGN
========================== */
/* Tablette */
@media (max-width: 1024px) {
    .header-main { flex-direction: column; align-items: flex-start; }
    .nav-social { justify-content: space-between; width: 100%; }
}

/* Mobile */
@media (max-width: 768px) {
    .qui-sommes-nous { flex-direction: column; gap: 30px; padding: 40px 20px; }
    .qs-left, .qs-right { width: 100%; text-align: center; align-items: center; }
    .qs-left h1 { font-size: 42px; }
    .qs-left h2 { font-size: 28px; }
    .qs-left h3 { font-size: 22px; }
    .qs-left p { font-size: 16px; max-width: 100%; }
    #map { height: 350px; }
    .services-grid { flex-direction: column; gap: 20px; }
}

/* Petit mobile */
@media (max-width: 480px) {
    .qs-left h1 { font-size: 32px; }
    .qs-left h2 { font-size: 22px; }
    .qs-left h3 { font-size: 18px; }
    .contact-form button { padding: 10px 20px; font-size: 14px; }
    #map { height: 300px; }
    .formation-card img { max-width: 100%; }
}
