/* =========================================
   SONAMUT - Styles principaux
   ========================================= */

:root {
    --navy: #17365c;
    --navy-dark: #102744;
    --green: #25826f;
    --green-dark: #1b6657;
    --text: #243247;
    --muted: #6b7788;
    --background: #f5f7fa;
    --white: #ffffff;
    --border: #e2e7ed;
    --shadow: 0 8px 24px rgba(23, 54, 92, 0.08);
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
.btn {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

/* =========================================
   Header
   ========================================= */

.site-header {
    position: relative;
    z-index: 10;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.header-content {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
}

.logo img {
    width: 155px;
    max-height: 68px;
    object-fit: contain;
}

.search-form {
    display: flex;
    flex: 1;
    max-width: 460px;
    min-width: 160px;
    border: 1px solid var(--border);
    border-radius: 9px;
    overflow: hidden;
    background: var(--white);
}

.search-form input {
    min-width: 0;
    width: 100%;
    padding: 12px 14px;
    border: 0;
    outline: none;
}

.search-form button {
    flex-shrink: 0;
    padding: 0 18px;
    color: var(--white);
    background: var(--navy);
    border: 0;
    cursor: pointer;
}

.search-form button:hover {
    background: var(--navy-dark);
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    font-size: 14px;
    font-weight: 700;
}

.header-actions a:hover {
    color: var(--green);
}

.cart-link {
    color: var(--green);
}

/* =========================================
   Buttons
   ========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 11px 21px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: var(--white);
    background: var(--green);
}

.btn-primary:hover {
    color: var(--white);
    background: var(--green-dark);
}

.btn-outline {
    color: var(--navy);
    background: transparent;
    border-color: var(--navy);
}

.btn-outline:hover {
    color: var(--white);
    background: var(--navy);
}

.btn-full {
    width: 100%;
}

/* =========================================
   Hero
   ========================================= */

.hero {
    position: relative;
    overflow: hidden;
    padding: 95px 0;
    color: var(--white);
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(37, 130, 111, 0.65),
            transparent 35%
        ),
        linear-gradient(120deg, var(--navy-dark), var(--navy));
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content > div {
    max-width: 720px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #9fe0ce;
}

.hero h1 {
    max-width: 760px;
    margin: 0 0 22px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.12;
    letter-spacing: -1.5px;
}

.hero p {
    max-width: 620px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero .btn-outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.7);
}

.hero .btn-outline:hover {
    color: var(--navy);
    background: var(--white);
}

/* =========================================
   Section headings
   ========================================= */

.section {
    padding: 76px 0;
}

.section-heading {
    max-width: 680px;
    margin: 0 auto 38px;
    text-align: center;
}

.section-heading h2,
.catalog-heading h2 {
    margin: 0 0 12px;
    color: var(--navy);
    font-size: clamp(27px, 3vw, 36px);
    line-height: 1.2;
}

.section-heading p,
.catalog-heading p {
    margin: 0;
    color: var(--muted);
}

/* =========================================
   Categories
   ========================================= */

.categories {
    background: var(--background);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 190px;
    padding: 25px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 3px 12px rgba(23, 54, 92, 0.025);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--green);
    box-shadow: var(--shadow);
}

.category-icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 15px;
    place-items: center;
    background: #eaf5f1;
    border-radius: 12px;
    font-size: 27px;
}

.category-card h3 {
    margin: 0 0 12px;
    color: var(--navy);
    font-size: 17px;
}

.category-more {
    margin-top: auto;
    color: var(--green);
    font-size: 14px;
    font-weight: 700;
}

/* =========================================
   Products
   ========================================= */

.products {
    background: var(--white);
}

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

.product-card {
    min-width: 0;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

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

.product-image {
    display: flex;
    height: 240px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 18px;
    background: #f5f7f9;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.04);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: var(--green);
    background: #eaf5f1;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 2px;
}

.product-info {
    padding: 22px;
}

.product-brand {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.product-info h3 {
    margin: 0 0 9px;
    color: var(--navy);
    font-size: 19px;
    line-height: 1.4;
}

.product-description {
    min-height: 48px;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
}

.product-price {
    margin: 12px 0 18px;
    color: var(--navy);
    font-size: 22px;
    font-weight: 800;
}

.center-action {
    margin-top: 35px;
    text-align: center;
}

/* =========================================
   Trust section
   ========================================= */

.trust-section {
    padding: 35px 0;
    background: #edf5f2;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.trust-grid > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trust-grid strong {
    color: var(--navy);
    font-size: 17px;
}

.trust-grid span {
    color: var(--muted);
    font-size: 14px;
}

/* =========================================
   Page banner
   ========================================= */

.page-banner {
    padding: 48px 0;
    background: linear-gradient(120deg, #edf5f2, #f4f7fa);
    border-bottom: 1px solid var(--border);
}

.page-banner h1 {
    margin: 0 0 10px;
    color: var(--navy);
    font-size: clamp(32px, 4vw, 44px);
    line-height: 1.2;
}

.page-banner p {
    margin: 0;
    color: var(--muted);
}

/* =========================================
   Catalogue filters
   ========================================= */

.catalog-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 15px;
    margin-bottom: 35px;
    padding: 22px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.filter-field {
    display: flex;
    flex: 1;
    min-width: 180px;
    flex-direction: column;
    gap: 7px;
}

.filter-field label {
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
}

.filter-field input,
.filter-field select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    color: var(--text);
    background: var(--white);
    border: 1px solid #d5dce5;
    border-radius: 8px;
}

.catalog-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 25px;
}

.catalog-heading h2 {
    font-size: 26px;
}

.catalog-heading p {
    font-size: 14px;
}

.empty-results {
    padding: 55px 20px;
    text-align: center;
    background: var(--background);
    border-radius: var(--radius);
}

.empty-results h3 {
    color: var(--navy);
}

.empty-results p {
    margin-bottom: 25px;
    color: var(--muted);
}

/* =========================================
   Checkout forms
   ========================================= */

.checkout-card,
.order-summary {
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 4px 18px rgba(23, 54, 92, 0.04);
}

.checkout-card h2,
.order-summary h2 {
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--navy);
    font-size: 24px;
}

.checkout-card > p {
    margin-top: 0;
    margin-bottom: 24px;
    color: var(--muted);
}

.checkout-form .form-field label {
    color: var(--navy);
    font-size: 14px;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
    color: var(--text);
    background: var(--white);
    border: 1px solid #d5dce5;
    border-radius: 8px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus,
.filter-field input:focus,
.filter-field select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(37, 130, 111, 0.12);
}

.checkout-submit {
    font-size: 16px;
}

.checkout-note {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.summary-product img {
    flex-shrink: 0;
}

.summary-product strong {
    color: var(--navy);
}

.summary-product p {
    margin: 4px 0;
    color: var(--muted);
    font-size: 14px;
}

.summary-line {
    color: var(--text);
    font-size: 14px;
}

.summary-total {
    color: var(--navy);
    font-size: 17px;
}

.checkout-alert {
    margin-bottom: 25px;
    padding: 20px;
    border-radius: 10px;
}

.checkout-alert h2 {
    margin-top: 0;
}

.checkout-alert.error {
    background: #fff1f0;
    border: 1px solid #f3c9c5;
    color: #a32118;
}

.checkout-alert.success {
    background: #eaf7ef;
    border: 1px solid #c3e7cf;
    color: #17633a;
}

.checkout-alert ul {
    padding-left: 22px;
}

/* =========================================
   Footer
   ========================================= */

.site-footer {
    color: rgba(255, 255, 255, 0.8);
    background: var(--navy-dark);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 45px;
    padding-top: 48px;
    padding-bottom: 42px;
}

.footer-logo {
    width: 145px;
    max-height: 70px;
    margin-bottom: 16px;
    object-fit: contain;
    background: var(--white);
    border-radius: 5px;
}

.footer-content p {
    max-width: 360px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-content h3 {
    margin-top: 0;
    color: var(--white);
    font-size: 17px;
}

.footer-content > div > a:not(.logo) {
    display: block;
    margin: 8px 0;
    font-size: 14px;
}

.footer-content a:hover {
    color: #9fe0ce;
}

.footer-bottom {
    padding: 17px 20px;
    color: rgba(255, 255, 255, 0.65);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13px;
    text-align: center;
}

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 1000px) {
    .header-content {
        flex-wrap: wrap;
        padding-top: 15px;
        padding-bottom: 15px;
        gap: 15px;
    }

    .search-form {
        order: 3;
        flex-basis: 100%;
        max-width: none;
    }

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

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

@media (max-width: 650px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .header-content {
        gap: 12px;
    }

    .logo img {
        width: 125px;
    }

    .header-actions {
        gap: 12px;
        font-size: 12px;
    }

    .hero {
        padding: 65px 0;
    }

    .hero h1 {
        font-size: 38px;
        letter-spacing: -0.8px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .section {
        padding: 52px 0;
    }

    .section-heading {
        margin-bottom: 27px;
    }

    .category-grid,
    .product-grid {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .category-card {
        min-height: 0;
    }

    .product-image {
        height: 230px;
    }

    .trust-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .page-banner {
        padding: 36px 0;
    }

    .catalog-filters {
        padding: 16px;
    }

    .catalog-filters .btn {
        flex: 1;
    }

    .catalog-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        padding-top: 35px;
        padding-bottom: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

.mobile-menu-toggle {
    display: none;
    padding: 8px 12px;
    color: var(--navy);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 23px;
    cursor: pointer;
}

@media (max-width: 650px) {
    .header-content {
        position: relative;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .header-actions {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 0;
    }

    .header-actions.is-open {
        display: flex;
    }

    .header-actions a {
        padding: 10px;
    }
}

```