:root {
    --bleu: #063a83;
    --bleu-fonce: #042d68;
    --or: #f2ae00;
    --fond: #f6f8fc;
    --texte: #112454;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--texte);
    background: var(--fond);
    font-family: Arial, sans-serif;
}

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

.site-header {
    background: var(--bleu);
    color: white;
}

.navigation {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
}

.logo-image {
    width: 96px;
    height: 96px;
    object-fit: contain;
}

.logo strong,
.logo small {
    display: block;
}

.logo small {
    margin-top: 2px;
    font-size: 11px;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.hero {
    background: linear-gradient(120deg, var(--bleu-fonce), var(--bleu));
    color: white;
}

.hero-content {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.hero-text {
    max-width: 620px;
}

.eyebrow {
    color: #ffd467;
    font-weight: bold;
}

.hero h1 {
    margin: 8px 0 16px;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.08;
}

.hero p {
    font-size: 18px;
    line-height: 1.6;
}

.button {
    display: inline-block;
    margin-top: 14px;
    padding: 14px 24px;
    border-radius: 6px;
    background: var(--or);
    color: #172548;
    font-weight: bold;
    text-decoration: none;
}

.hero-illustration {
    font-size: 160px;
}

.advantages {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 32px 0;
}

.advantages article {
    padding: 22px 16px;
    border: 1px solid #e2e7f0;
    border-radius: 10px;
    background: white;
    text-align: center;
}

.advantages span {
    color: var(--or);
    font-size: 26px;
}

.advantages h2 {
    margin-bottom: 8px;
    font-size: 16px;
}

.advantages p {
    margin: 0;
    font-size: 13px;
}

.site-footer {
    padding: 18px 0;
    background: var(--bleu);
    color: white;
    text-align: center;
    font-size: 13px;
}

.site-footer p {
    margin: 0;
}

@media (max-width: 700px) {
    .navigation,
    .hero-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .navigation {
        padding: 16px 0;
    }

    .hero-content {
        padding: 48px 0;
    }

    .hero-illustration {
        display: none;
    }

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

.catalogue-page {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 30px;
    padding: 36px 0;
}

.categories {
    padding: 20px;
    border: 1px solid #e2e7f0;
    border-radius: 10px;
    background: white;
    height: fit-content;
}

.categories h1 {
    margin-top: 0;
    font-size: 18px;
}

.categories a {
    display: block;
    padding: 10px;
    border-radius: 6px;
    color: var(--texte);
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
}

.categories a:hover,
.categories a.active {
    background: #e8f0ff;
    color: var(--bleu);
}

.catalogue-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.catalogue-heading h1 {
    margin: 4px 0 0;
}

.catalogue-heading > p {
    margin: 0;
    color: #667085;
    font-size: 14px;
}

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

.product-card {
    overflow: hidden;
    border: 1px solid #e2e7f0;
    border-radius: 10px;
    background: white;
}

.product-image {
    display: grid;
    height: 190px;
    place-items: center;
    background: linear-gradient(135deg, #eef4ff, #f9fbff);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-image span {
    font-size: 70px;
}

.product-card h2,
.product-card p,
.product-link {
    margin-right: 16px;
    margin-left: 16px;
}

.product-card h2 {
    min-height: 40px;
    margin-top: 6px;
    margin-bottom: 8px;
    font-size: 17px;
}

.product-category {
    margin-top: 16px;
    margin-bottom: 0;
    color: #667085;
    font-size: 12px;
}

.product-price {
    color: var(--or);
    font-size: 18px;
    font-weight: bold;
}

.product-link {
    display: block;
    margin-top: 14px;
    margin-bottom: 16px;
    color: var(--bleu);
    font-weight: bold;
    text-decoration: none;
}

@media (max-width: 800px) {
    .catalogue-page {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 500px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

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


.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 48px 0;
}

.detail-image {
    display: grid;
    min-height: 430px;
    place-items: center;
    border: 1px solid #e2e7f0;
    border-radius: 12px;
    background: white;
}

.detail-image img {
    width: 100%;
    height: 430px;
    object-fit: contain;
}

.detail-image span {
    font-size: 160px;
}

.detail-information h1 {
    margin: 4px 0 12px;
    font-size: 36px;
}

.detail-price {
    margin: 0 0 24px;
    color: var(--or);
    font-size: 28px;
    font-weight: bold;
}

.detail-description {
    line-height: 1.7;
}

.stock-status {
    color: #177245;
    font-weight: bold;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0;
}

.quantity-selector button {
    width: 34px;
    height: 34px;
    border: 1px solid #cdd6e4;
    border-radius: 6px;
    background: white;
    color: var(--bleu);
    font-size: 20px;
    cursor: pointer;
}

.back-link {
    display: block;
    margin-top: 20px;
    color: var(--bleu);
    font-weight: bold;
    text-decoration: none;
}

@media (max-width: 700px) {
    .product-detail {
        grid-template-columns: 1fr;
    }

    .detail-image {
        min-height: 300px;
    }

    .detail-image img {
        height: 300px;
    }
}
.cart-page {
    padding: 42px 0 60px;
}

.cart-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.cart-heading h1 {
    margin: 4px 0 0;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 28px;
    align-items: start;
}

.cart-items,
.cart-summary {
    border: 1px solid #e2e7f0;
    border-radius: 12px;
    background: white;
}

.cart-item {
    display: grid;
    grid-template-columns: 88px 1fr 145px 120px;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border-bottom: 1px solid #e2e7f0;
}

.cart-item:last-child {
    border-bottom: 0;
}

.cart-item-image {
    display: grid;
    width: 88px;
    height: 88px;
    place-items: center;
    border-radius: 8px;
    background: #eef4ff;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-item-image span {
    font-size: 38px;
}

.cart-item-info h2 {
    margin: 4px 0 8px;
    font-size: 17px;
}

.cart-item-info p {
    margin: 0;
    font-size: 14px;
}

.cart-quantity-form {
    display: grid;
    gap: 6px;
}

.cart-quantity-form label {
    font-size: 12px;
    font-weight: bold;
}

.cart-quantity-form input {
    width: 75px;
    padding: 8px;
    border: 1px solid #cdd6e4;
    border-radius: 6px;
}

.cart-quantity-form button,
.remove-button {
    border: 0;
    background: none;
    color: var(--bleu);
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

.cart-item-total {
    text-align: right;
}

.cart-item-total strong {
    display: block;
    margin-bottom: 10px;
    color: var(--or);
}

.remove-button {
    color: #b42318;
}

.cart-summary {
    padding: 24px;
}

.cart-summary h2 {
    margin-top: 0;
}

.summary-line,
.summary-total {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #e2e7f0;
}

.summary-total {
    border: 0;
    color: var(--bleu);
    font-size: 18px;
}

.summary-total strong {
    color: var(--or);
}

.checkout-button {
    width: 100%;
    margin-top: 18px;
    border: 0;
    text-align: center;
}

.empty-cart {
    padding: 70px 20px;
    border: 1px solid #e2e7f0;
    border-radius: 12px;
    background: white;
    text-align: center;
}

.empty-cart span {
    font-size: 70px;
}

.empty-cart h2 {
    margin-bottom: 8px;
}

@media (max-width: 850px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 70px 1fr;
    }

    .cart-item-image {
        width: 70px;
        height: 70px;
    }

    .cart-quantity-form,
    .cart-item-total {
        grid-column: 2;
        text-align: left;
    }
}

@media (max-width: 500px) {
    .cart-heading {
        align-items: start;
        flex-direction: column;
    }
}

.delivery-page {
    max-width: 850px;
    padding: 42px 0 60px;
}

.delivery-heading {
    max-width: 680px;
    margin-bottom: 28px;
}

.delivery-heading h1 {
    margin: 4px 0 10px;
    font-size: 36px;
}

.delivery-heading > p:last-child {
    color: #667085;
    line-height: 1.6;
}

.delivery-form {
    padding: 30px;
    border: 1px solid #e2e7f0;
    border-radius: 12px;
    background: white;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.form-field {
    display: grid;
    gap: 7px;
}

.form-field.full-width {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 14px;
    font-weight: bold;
}

.form-field input {
    width: 100%;
    padding: 12px;
    border: 1px solid #cdd6e4;
    border-radius: 7px;
    color: var(--texte);
    font: inherit;
}

.form-field input:focus {
    outline: 2px solid #b9d1ff;
    border-color: var(--bleu);
}

.form-error {
    color: #b42318;
}

.location-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px 24px;
    align-items: center;
    margin-top: 26px;
    padding: 20px;
    border: 1px solid #d9e5fb;
    border-radius: 10px;
    background: #f4f8ff;
}

.location-box h2 {
    margin: 0 0 6px;
    font-size: 17px;
}

.location-box p {
    margin: 0;
    color: #52617c;
    font-size: 14px;
}

.location-button {
    padding: 12px 16px;
    border: 1px solid var(--bleu);
    border-radius: 7px;
    background: white;
    color: var(--bleu);
    font: inherit;
    font-weight: bold;
    cursor: pointer;
}

.location-status {
    grid-column: 1 / -1;
    color: #177245 !important;
    font-weight: bold;
}

.privacy-note {
    margin: 18px 0 0;
    color: #667085;
    font-size: 13px;
}

.delivery-success {
    margin-top: 0;
    padding: 12px;
    border-radius: 7px;
    background: #ecfdf3;
    color: #177245;
    font-weight: bold;
}

.delivery-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 28px;
}

.delivery-actions .button {
    border: 0;
    cursor: pointer;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .location-box {
        grid-template-columns: 1fr;
    }

    .delivery-actions {
        align-items: start;
        flex-direction: column-reverse;
    }
}

.payment-page {
    padding: 42px 0 60px;
}

.payment-heading {
    margin-bottom: 28px;
}

.payment-heading h1 {
    margin: 4px 0 10px;
    font-size: 36px;
}

.payment-heading > p:last-child {
    color: #667085;
}

.payment-layout {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 28px;
    align-items: start;
}

.payment-form {
    padding: 30px;
    border: 1px solid #e2e7f0;
    border-radius: 12px;
    background: white;
}

.payment-options {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    border: 0;
}

.payment-options legend {
    margin-bottom: 16px;
    font-weight: bold;
}

.payment-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid #d9e1ee;
    border-radius: 9px;
    cursor: pointer;
}

.payment-option:has(input:checked) {
    border-color: var(--bleu);
    background: #f4f8ff;
}

.payment-option input {
    margin-top: 4px;
    accent-color: var(--bleu);
}

.payment-option strong,
.payment-option small {
    display: block;
}

.payment-option small {
    margin-top: 5px;
    color: #667085;
    line-height: 1.4;
}

.payment-note {
    margin-top: 24px;
}

.payment-note textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cdd6e4;
    border-radius: 7px;
    font: inherit;
    resize: vertical;
}

@media (max-width: 800px) {
    .payment-layout {
        grid-template-columns: 1fr;
    }
}

.confirmation-page {
    padding: 42px 0 60px;
}

.confirmation-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    align-items: start;
}

.confirmation-details {
    display: grid;
    gap: 20px;
}

.confirmation-card {
    padding: 26px;
    border: 1px solid #e2e7f0;
    border-radius: 12px;
    background: white;
}

.confirmation-card h2 {
    margin-top: 0;
}

.confirmation-card p {
    line-height: 1.6;
}

.location-confirmed {
    color: #177245;
    font-weight: bold;
}

.order-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #eef1f5;
    font-size: 14px;
}

.order-line strong {
    white-space: nowrap;
}

.success-page {
    display: grid;
    min-height: 580px;
    place-items: center;
    padding: 42px 0;
}

.success-card {
    max-width: 620px;
    padding: 48px;
    border: 1px solid #e2e7f0;
    border-radius: 16px;
    background: white;
    text-align: center;
}

.success-icon {
    display: grid;
    width: 70px;
    height: 70px;
    place-items: center;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: var(--bleu);
    color: white;
    font-size: 38px;
    font-weight: bold;
}

.success-card h1 {
    margin: 6px 0 14px;
}

.success-card > p {
    color: #52617c;
    line-height: 1.6;
}

.order-number {
    display: grid;
    gap: 6px;
    margin: 28px 0 18px;
    padding: 18px;
    border-radius: 8px;
    background: #f4f8ff;
}

.order-number span {
    color: #667085;
    font-size: 13px;
}

.order-number strong {
    color: var(--bleu);
    font-size: 20px;
}

@media (max-width: 850px) {
    .confirmation-layout {
        grid-template-columns: 1fr;
    }
}