/* ============================================================
   NGS SARL U — Feuille de style principale
   Charte graphique : Bleu foncé #0d2c54 / Orange #f97316
   Typographies : Poppins (titres) / Inter (texte)
   ============================================================ */

/* ---------- Variables ---------- */
:root {
    --color-primary: #0d2c54;
    --color-primary-dark: #081e3b;
    --color-accent: #f97316;
    --color-accent-hover: #ea580c;
    --color-bg: #f8fafc;
    --color-text: #334155;
    --color-light: #ffffff;
    --color-border: #e2e8f0;
    --font-title: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 2px 8px rgba(13, 44, 84, 0.08);
    --shadow-md: 0 8px 24px rgba(13, 44, 84, 0.12);
    --radius: 12px;
}

/* ---------- Reset & base ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
}

h1, h2, h3, h4 {
    font-family: var(--font-title);
    color: var(--color-primary);
    line-height: 1.3;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 48px;
    color: #64748b;
}

/* ---------- Boutons ---------- */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-title);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-light);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    border-color: var(--color-light);
    color: var(--color-light);
}

.btn-outline:hover {
    background-color: var(--color-light);
    color: var(--color-primary);
}

/* ---------- En-tête ---------- */
.header {
    background-color: var(--color-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    background-color: var(--color-accent);
    color: var(--color-light);
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.4rem;
    padding: 6px 12px;
    border-radius: 8px;
}

.logo-text {
    color: var(--color-light);
    font-family: var(--font-title);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-list a {
    color: var(--color-light);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-list a:hover {
    color: var(--color-accent);
}

.nav-list a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background-color: var(--color-light);
    border-radius: 2px;
    transition: 0.3s ease;
}

/* ---------- Héro ---------- */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-light);
    padding: 80px 0;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-content h1 {
    color: var(--color-light);
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero-content .accent {
    color: var(--color-accent);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 32px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    max-height: 420px;
    width: 100%;
    object-fit: cover;
}

/* ---------- À propos ---------- */
.about {
    padding: 80px 0;
    background-color: var(--color-light);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.about-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 16px;
}

.about-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    font-weight: 500;
}

.about-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
}

/* ---------- Produits ---------- */
.products {
    padding: 80px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.product-card {
    background-color: var(--color-light);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h3 {
    padding: 20px 20px 8px;
    font-size: 1.15rem;
}

.product-card p {
    padding: 0 20px 20px;
    font-size: 0.95rem;
    color: #64748b;
}

/* ---------- Pourquoi nous choisir ---------- */
.why {
    padding: 80px 0;
    background-color: var(--color-primary);
}

.why .section-title {
    color: var(--color-light);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 48px;
}

.why-item {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.why-icon {
    color: var(--color-accent);
    font-size: 1.4rem;
    font-weight: 700;
    flex-shrink: 0;
}

.why-item h3 {
    color: var(--color-light);
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.why-item p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

/* ---------- Services ---------- */
.services {
    padding: 80px 0;
    background-color: var(--color-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background-color: var(--color-bg);
    border-radius: var(--radius);
    padding: 28px 22px;
    text-align: center;
    border-top: 4px solid var(--color-accent);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.service-card h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.9rem;
    color: #64748b;
}

/* ---------- Contact ---------- */
.contact {
    padding: 80px 0;
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info h2 {
    text-align: left;
    font-size: 2rem;
    margin-bottom: 12px;
}

.contact-info > p {
    margin-bottom: 24px;
}

.contact-list li {
    margin-bottom: 12px;
}

.contact-list strong {
    color: var(--color-primary);
}

.contact-form {
    background-color: var(--color-light);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--color-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-group textarea {
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
    border: none;
    font-size: 1rem;
}

/* ---------- Pied de page ---------- */
.footer {
    background-color: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 48px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand p {
    margin-top: 14px;
    font-size: 0.95rem;
    max-width: 380px;
}

.footer h4 {
    color: var(--color-light);
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-links ul li,
.footer-contact p {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* ---------- Bouton WhatsApp flottant ---------- */
.whatsapp-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25D366;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

.whatsapp-btn img {
    width: 34px;
    height: 34px;
}

/* ---------- Responsive : tablette ---------- */
@media (max-width: 992px) {
    .hero-inner,
    .about-inner,
    .contact-inner {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }
}

/* ---------- Responsive : mobile ---------- */
@media (max-width: 640px) {
    .menu-toggle {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background-color: var(--color-primary);
        box-shadow: var(--shadow-md);
        display: none;
    }

    .nav.open {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 12px 24px 20px;
    }

    .nav-list li {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hero {
        padding: 48px 0;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .product-grid,
    .why-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .logo-text {
        display: none;
    }
}
