/* ============================================================
   MOUHAMED KING SERVICES - Feuille de style principale
   ============================================================ */

:root {
    --bleu: #1a3d8f;
    --bleu-fonce: #10275c;
    --rouge: #d8232a;
    --gris-clair: #f4f6fb;
    --gris: #6b7280;
    --texte: #1f2430;
    --blanc: #ffffff;
    --radius: 10px;
    --ombre: 0 4px 18px rgba(16, 39, 92, 0.08);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--texte);
    background: var(--blanc);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- HEADER ---------- */
.site-header {
    background: var(--blanc);
    box-shadow: var(--ombre);
    position: relative;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    gap: 20px;
}
.logo-link { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--bleu-fonce); }
.logo-img { height: 80px; width: auto; border-radius: 50px; }
.logo-text { font-size: 1.05rem; letter-spacing: .5px; }
.main-nav { display: flex; gap: 22px; flex: 1; justify-content: center; flex-wrap: wrap; }
.main-nav a { font-weight: 600; color: var(--texte); padding: 6px 2px; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--rouge); border-color: var(--rouge); }
.btn-tel {
    background: var(--rouge);
    color: var(--blanc) !important;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 700;
    white-space: nowrap;
}
.burger { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; }

/* ---------- HERO ---------- */
.hero {
    background: linear-gradient(135deg, var(--bleu-fonce), var(--bleu));
    color: var(--blanc);
    padding: 70px 0;
    text-align: center;
}
.hero h1 { font-size: 2.2rem; margin: 0 0 16px; }
.hero p { max-width: 750px; margin: 0 auto 28px; font-size: 1.05rem; opacity: .95; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--rouge); color: var(--blanc); }
.btn-outline { background: transparent; color: var(--blanc); border: 2px solid var(--blanc); }
.btn-secondary { background: var(--bleu); color: var(--blanc); }

/* ---------- SECTIONS GENERIQUES ---------- */
section { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 1.8rem; color: var(--bleu-fonce); margin-bottom: 8px; }
.section-title p { color: var(--gris); }
.bg-alt { background: var(--gris-clair); }

/* ---------- GRID CARDS ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-single { grid-template-columns: minmax(280px, 420px); justify-content: center; }

/* Icône WhatsApp */
.icon-whatsapp { width: 20px; height: 20px; vertical-align: middle; margin-right: 6px; fill: currentColor; }
.whatsapp-float .icon-whatsapp { width: 28px; height: 28px; margin-right: 0; }

.card {
    background: var(--blanc);
    border-radius: var(--radius);
    box-shadow: var(--ombre);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease;
}
.card:hover { transform: translateY(-4px); }
.card-img { height: 190px; width: 100%; object-fit: cover; background: #e7ebf5; }
.card-body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin: 0 0 8px; color: var(--bleu-fonce); font-size: 1.1rem; }
.card-body p { color: var(--gris); font-size: .95rem; flex: 1; }
.card-body .btn { align-self: flex-start; margin-top: 12px; }
.card-price { font-weight: 800; color: var(--rouge); font-size: 1.15rem; margin: 10px 0; }
.card-date { font-size: .82rem; color: var(--gris); margin-bottom: 6px; }

/* ---------- DETAIL PAGES ---------- */
.detail-header { background: var(--gris-clair); padding: 40px 0; }
.detail-header h1 { color: var(--bleu-fonce); margin-bottom: 6px; }
.detail-content { padding: 40px 0; }
.detail-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 30px;
}
.detail-images img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius);
    cursor: pointer;
}
.detail-video { margin: 30px 0; }
.detail-video video { width: 100%; border-radius: var(--radius); }
.detail-text { font-size: 1.02rem; color: #333; }

/* ---------- GALERIE REALISATIONS (albums) ---------- */
.album-cover { position: relative; }
.album-cover .album-count {
    position: absolute; bottom: 10px; right: 10px;
    background: rgba(16,39,92,.85); color: #fff;
    padding: 4px 10px; border-radius: 20px; font-size: .8rem;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}
.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    background: #000;
}
.gallery-item img, .gallery-item video { width: 100%; height: 100%; object-fit: cover; }
.gallery-item.is-video::after {
    content: "▶";
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: #fff; font-size: 1.8rem;
    text-shadow: 0 0 8px rgba(0,0,0,.7);
}

/* Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.lightbox-overlay.open { display: flex; }
.lightbox-content { max-width: 90%; max-height: 80vh; }
.lightbox-content img, .lightbox-content video { max-width: 100%; max-height: 80vh; border-radius: 6px; }
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: rgba(255,255,255,.15);
    color: #fff;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 50%;
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- FORM CONTACT ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 12px 14px;
    border: 1px solid #d5d9e3; border-radius: 8px;
    font-family: inherit; font-size: .98rem;
}
.form-group textarea { resize: vertical; min-height: 130px; }
.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-weight: 600; }
.alert-success { background: #e5f8ee; color: #147a4c; }
.alert-error { background: #fdeaea; color: var(--rouge); }

/* ---------- WHATSAPP FLOTTANT ---------- */
.whatsapp-float {
    position: fixed; bottom: 24px; right: 24px;
    background: #25d366; color: #fff;
    width: 58px; height: 58px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; box-shadow: 0 6px 18px rgba(0,0,0,.25);
    z-index: 90;
}

/* ---------- FOOTER ---------- */
.site-footer { background: var(--bleu-fonce); color: #dbe2f5; padding-top: 50px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding-bottom: 30px; }
.footer-col h3, .footer-col h4 { color: #fff; margin-bottom: 14px; }
.footer-col a { display: block; color: #b9c4e6; margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 14px; margin-top: 10px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    text-align: center; padding: 16px 0; font-size: .85rem; color: #9aa8cf;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr; }
    .contact-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .burger { display: block; }
    .main-nav {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; flex-direction: column; padding: 16px 20px;
        box-shadow: var(--ombre);
    }
    .main-nav.open { display: flex; }
    .btn-tel { display: none; }
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .detail-images { grid-template-columns: repeat(2, 1fr); }
}
