/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f5f0e8;
    font-family: 'Cormorant Garamond', serif;
    margin-left: 2%;
    margin-right: 2%;
    overflow-x: hidden;
}

/*==================
    Header
==================*/
.header {
    width: 100%;
    top: 0;
    margin-top: 20px;
    margin-bottom: 20px;
}

.header .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0px;
    width: 100%;
}

.menu-tab.active {
    border-bottom: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-weight: 600;
}

.logo {
    border-radius: 6px;
    padding: 8px 14px;
}

.logo h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: #1a1a1a;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.logo:hover {
    background-color: rgba(26, 26, 26, 0.08);
    color: #1a1a1a;
}

.menu-tabs {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.menu-tab {
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.menu-secondary {
    color: #444;
    background-color: transparent;
    border: none;
}

.menu-secondary:hover,
.menu-secondary.active {
    background-color: rgba(26, 26, 26, 0.08);
    color: #1a1a1a;
}

.user-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
    padding-left: 12px;
    border-left: 1px solid #ddd;
}

.menu-primary {
    color: #fff;
    background-color: #1a1a1a;
    border: 2px solid #1a1a1a;
    border-radius: 25px;
    padding: 7px 18px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    cursor: pointer;
}

.menu-primary:hover {
    background-color: transparent;
    border: 2px solid #1a1a1a;
    color: #1a1a1a;
}

/*============================================================
    PAGE D'ACCUEIL
============================================================*/

/*==================
    Sections communes
==================*/
.sections-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding-bottom: 80px;
}

.section {
    width: 100%;
}

/* Titres globaux */
.title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

h2.title {
    font-size: 2rem;
}

h4.title {
    font-size: 1.1rem;
}

.subtitle {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    color: #555;
    line-height: 1.6;
    margin-bottom: 24px;
}

h3.subtitle {
    font-size: 1rem;
}

h5.subtitle {
    font-size: 0.85rem;
}

/* Boutons généraux */
.btn {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
    border: 2px solid #1a1a1a;
}

.btn-primary {
    background-color: #1a1a1a;
    color: #fff;
}

.btn-primary:hover {
    background-color: transparent;
    color: #1a1a1a;
}

/*==================
    Section 1 - Hero - Excellence équestre
==================*/
#section-excellence-equestre {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

#section-excellence-equestre img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}

/* Overlay sombre pour lisibilité du texte */
#section-excellence-equestre::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.15) 0%,
            rgba(0, 0, 0, 0.55) 100%);
}

/* Texte centré par-dessus l'image */
#section-excellence-equestre .title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    /* Au-dessus de l'overlay */
    color: #fff;
    font-size: 5rem;
    font-weight: 700;
    text-align: center;
    width: 50%;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    white-space: normal;
}

/*==================
    Section 2 - Sélection du moment
==================*/
#section-selection-du-moment {
    padding: 0;
}

#section-selection-du-moment>h2.title {
    font-size: 2rem;
    margin-bottom: 28px;
}

/* ── Grille : 3 colonnes fixes, 1 par ligne ── */
.products-cards,
.selection-grid {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

/* ── Carte produit ── */
.product-card {
    position: relative;
    background-color: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.11);
}

/* ── Image en haut── */
.product-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
    border-radius: 14px 14px 0 0;
}

/* ── Corps de la carte ── */
.product-card-body {
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    gap: 6px;
}

.product-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.product-card-price {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #555;
    margin: 0;
}

/* ── Actions : quantité + bouton sur même ligne ── */
.product-card-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
}

/* ── Contrôle de quantité  − 1 + ── */
.quantity-control {
    display: flex;
    flex-direction: row;
    align-items: center;
    border: 1.5px solid #1a1a1a;
    border-radius: 25px;
    overflow: hidden;
    height: 38px;
}

.qty-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    width: 36px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    font-family: 'DM Sans', sans-serif;
    line-height: 1;
}

.qty-btn:hover {
    background-color: #1a1a1a;
    color: #fff;
}

.qty-value {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    min-width: 28px;
    text-align: center;
    user-select: none;
    /* Séparateurs visuels */
    border-left: 1.5px solid #1a1a1a;
    border-right: 1.5px solid #1a1a1a;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Bouton Ajouter au panier ── */
.btn-cart {
    height: 38px;
    padding: 0 20px;
    font-size: 0.82rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Bouton favori — coin haut droite */
.btn-favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;

    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);

    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-favorite svg {
    transition: fill 0.2s ease, stroke 0.2s ease;
    fill: none;
    stroke: #aaa;
}

/* Hover */
.btn-favorite:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: #fff;
}

.btn-favorite:hover svg {
    stroke: #e63946;
}

/* État liké — classe ajoutée via JS */
.btn-favorite.active {
    background: #fff0f0;
}

.btn-favorite.active svg {
    fill: #e63946;
    stroke: #e63946;
}

/* Animation au clic */
.btn-favorite.pop {
    animation: heart-pop 0.3s ease;
}

@keyframes heart-pop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.35);
    }

    100% {
        transform: scale(1);
    }
}

/*==================
    Responsive Mobile - Section 2
==================*/
@media (max-width: 640px) {
    .products-cards {
        flex-direction: column;
    }

    .product-card img {
        height: 180px;
    }

    .product-card img {
        width: 100%;
        min-height: 200px;
        border-radius: 14px 14px 0 0;
    }

    .product-card-actions {
        flex-wrap: wrap;
    }

    .btn-cart {
        flex: 1;
        justify-content: center;
    }
}

/*==================
    Section 3 - Rendez-vous
==================*/
#section-rendez-vous {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0 100px;
    align-items: start;
}

/* ── Colonne gauche ── */
.rdv-left-header {
    grid-column: 1;
    grid-row: 1;
    padding-bottom: 24px;
}

.rdv-left-header h2.title {
    font-size: 3rem;
    width: 100%;
    margin-bottom: 10px;
}

.rdv-left-header h3.subtitle {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
}

.rdv-left-image {
    grid-column: 1;
    grid-row: 2;
}

.rdv-left-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

/* ── Colonne droite ── */
.rdv-right-panel {
    grid-column: 2;
    grid-row: 1 / span 2;
    background-color: #fff;
    border-radius: 5px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Auth buttons en haut à droite */
.rdv-header {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 10px;
}

.rdv-btn {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 25px;
    border: 1.5px solid #1a1a1a;
    background-color: transparent;
    color: #1a1a1a;
    cursor: pointer;
    letter-spacing: 0.4px;
    transition: all 0.2s ease;
}

.rdv-btn:hover {
    background-color: #1a1a1a;
    color: #fff;
}

/* Titre "Sélectionnez un rdv" */
.rdv-right-panel h2.title {
    text-align: center;
    font-size: 1.3rem;
    color: #1a1a1a;
    margin-bottom: 0;
}

/* Liste des types de RDV */
.rdv-types {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    background: rgb(245, 245, 245);
    border-radius: 10px;
}

.rdv-type {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background-color: #fff;
    border-radius: 5px;
    border: 1px solid #fff;
    gap: 16px;
}

.rdv-type-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rdv-type-text h4.title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0;
}

.rdv-type-text h5.subtitle {
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 0;
}

/* Bouton PROGRAMMER : quasi carré, noir plein */
.btn-programmer {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    padding: 12px 16px;
    min-width: 110px;
    background-color: #1a1a1a;
    color: #fff;
    border: 2px solid #1a1a1a;
    border-radius: 5px;
    /* carré arrondi, pas pill */
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-programmer:hover {
    background-color: #333;
}

/* Footer "Powered by" */
.rdv-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #e8e0d0;
}

.rdv-footer h6 {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    color: #aaa;
    letter-spacing: 0.3px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    #section-rendez-vous {
        grid-template-columns: 1fr;
    }

    .rdv-left-image {
        grid-row: 2;
    }

    .rdv-right-panel {
        grid-column: 1;
        grid-row: 3;
    }

    .rdv-left-image img {
        height: 240px;
    }
}

/*==================
    Section 4 - Réseaux sociaux
==================*/
#section-reseaux-sociaux {
    text-align: center;
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.social-links img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

/*==================
    Section 5 - Contact
==================*/
#section-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0 100px;
    align-items: start;
}

.contact-left-header {
    grid-column: 1;
    grid-row: 1;
    padding-bottom: 24px;
}

.contact-left-header h2.title {
    font-size: 3rem;
    width: 100%;
    margin-bottom: 10px;
}

.contact-left-header h3.subtitle {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
}

.contact-right-panel {
    grid-column: 2;
    grid-row: 1 / span 2;
    border-radius: 5px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-row {
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.contact-field label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #333;
}

.contact-field input,
.contact-field textarea {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    padding: 10px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    background: #f5f0e8;
    outline: none;
    color: #1a1a1a;
    transition: border-color 0.2s ease;
    width: 100%;
    border-radius: 20px;
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-color: #1a1a1a;
}

.contact-field textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-footer {
    display: flex;
    justify-content: left;
    margin-top: auto;
}


@media (max-width: 900px) {
    #section-contact {
        grid-template-columns: 1fr;
    }

    .contact-left-image {
        grid-row: 2;
    }

    .contact-right-panel {
        grid-column: 1;
        grid-row: 3;
    }

    .contact-left-image img {
        height: 240px;
    }

    .contact-row {
        flex-direction: column;
    }
}


/*==================
    Footer
==================*/
.footer {
    margin-top: 60px;
    padding: 30px 0;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    color: #999;
}

/*============================================================
    PAGE MENTIONS LEGALES
============================================================*/

/*============================================================
    PAGE BOUTIQUE
============================================================*/

.boutique-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 28px;
}

/* Grille 2 colonnes */
.selection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Carte */
.boutique-card {
    background-color: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.boutique-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.11);
}

/* Image wrapper — position relative pour le bouton favori */
.boutique-card-img-wrapper {
    position: relative;
    width: 100%;
}

.boutique-card-img-wrapper img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
}

/* Bouton favori — cœur en haut à droite de l'image */
.btn-favori {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #888;
    transition: color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.btn-favori:hover {
    color: #c0392b;
    transform: scale(1.1);
    background-color: #fff;
}

.btn-favori.active {
    color: #c0392b;
}

.btn-favori.active svg path {
    fill: #c0392b;
    stroke: #c0392b;
}

/* Corps sous l'image */
.boutique-card-body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 1;
}

.boutique-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.boutique-card-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.boutique-card-price {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: #777;
}

/* Bouton panier */
.boutique-btn-cart {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 9px 20px;
    font-size: 0.82rem;
}

/* Mobile — 1 colonne */
@media (max-width: 640px) {
    .selection-grid {
        grid-template-columns: 1fr;
    }

    .boutique-card-body {
        flex-direction: column;
        align-items: flex-start;
    }

    .boutique-btn-cart {
        width: 100%;
        text-align: center;
    }
}


/*============================================================
    PAGE CONTACT
============================================================*/

#section-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-left-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-right-image img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

@media (max-width: 900px) {
    #section-contact {
        grid-template-columns: 1fr;
    }

    .contact-right-image {
        order: -1;
    }

    .contact-right-image img {
        min-height: 280px;
    }
}

/*============================================================
    PAGE PANIER
============================================================*/
.cart-section {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.cart-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.cart-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 768px) {
    .cart-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Article */
.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e8e0d5;
}

.cart-item-image img,
.cart-item-placeholder {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    background: #f0ebe3;
}

.cart-item-name {
    font-weight: 500;
    margin-bottom: .25rem;
}

.cart-item-price {
    color: #8a7560;
    font-size: .9rem;
}

.cart-item-subtotal {
    font-weight: 600;
    min-width: 80px;
    text-align: right;
}

/* Quantité */
.cart-item-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.qty-btn {
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background .2s;
}

.qty-btn:hover {
    background: #f0ebe3;
}

.qty-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.qty-value {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
}

/* Récap */
.cart-summary {
    background: #faf7f4;
    border: 1px solid #e8e0d5;
    border-radius: 10px;
    padding: 1.5rem;
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: .75rem;
    font-size: .95rem;
    color: #555;
}

.summary-total {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a1a1a;
    border-top: 1px solid #e8e0d5;
    padding-top: .75rem;
    margin-top: .75rem;
}

.btn-checkout {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    padding: .85rem 1rem;
    background: #2c2c2c;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    align-items: center;
    text-decoration: none;
    transition: background .2s;
}

.btn-checkout:hover {
    background: #4a3728;
}

.cart-continue {
    display: block;
    text-align: center;
    margin-top: .75rem;
    font-size: .85rem;
    color: #8a7560;
    text-decoration: none;
}

.cart-continue:hover {
    text-decoration: underline;
}

/* Panier vide */
.cart-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: #888;
}

.hidden {
    display: none !important;
}

/*============================================================
    PAGE CHECKOUT
============================================================*/
.checkout-section,
.confirmation-section {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.checkout-heading {
    margin-bottom: 1.5rem;
}

.checkout-shell {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.checkout-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
}

.checkout-step {
    border: 1px solid #e8e0d5;
    background: #fff;
    border-radius: 8px;
    padding: .8rem;
    color: #8a7560;
    font: inherit;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
}

.checkout-step span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f0ebe3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 700;
}

.checkout-step.active {
    border-color: #4a3728;
    color: #2c2c2c;
    background: #faf7f4;
}

.checkout-step.active span {
    background: #2c2c2c;
    color: #fff;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}

.checkout-panel {
    background: #fff;
    border: 1px solid #e8e0d5;
    border-radius: 10px;
    padding: 1.5rem;
}

.checkout-view {
    display: none;
}

.checkout-view.active {
    display: block;
}

.checkout-view h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.55rem;
    margin: 0 0 1.25rem;
}

.checkout-items {
    display: flex;
    flex-direction: column;
    gap: .9rem;
}

.checkout-item {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding-bottom: .9rem;
    border-bottom: 1px solid #e8e0d5;
}

.checkout-item img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    background: #f0ebe3;
}

.checkout-form-block {
    margin-bottom: 1.25rem;
}

.checkout-form-block label,
.checkout-label {
    display: block;
    font-weight: 600;
    margin: 0 0 .5rem;
}

.coupon-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .75rem;
}

.coupon-row input,
.checkout-card-form input {
    width: 100%;
    padding: .85rem 1rem;
    border: 1px solid #e8e0d5;
    border-radius: 6px;
    font: inherit;
    box-sizing: border-box;
}

.choice-line {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .75rem;
    padding: .8rem 0;
    border-bottom: 1px solid #e8e0d5;
}

.checkout-message {
    min-height: 1.2rem;
    margin: .6rem 0 0;
    font-size: .9rem;
    color: #8a7560;
}

.checkout-message.success {
    color: #2d6a4f;
}

.checkout-message.error {
    color: #c0392b;
}

.checkout-card-form {
    background: #faf7f4;
    border: 1px solid #e8e0d5;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

/* Bloc info sécurité Stripe */
.stripe-info-block {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    background: #f5f8f5;
    border: 1px solid #c3d9c3;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    color: #2d5a2d;
    font-size: .92rem;
    line-height: 1.5;
}

.stripe-info-block svg {
    flex-shrink: 0;
    margin-top: .1rem;
    stroke: #2d5a2d;
}

.stripe-info-block p {
    margin: 0;
}

.checkout-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    margin-top: .75rem;
}

.checkout-actions {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    align-items: center;
    margin-top: 1.5rem;
}

.checkout-actions.centered {
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .85rem 1rem;
    border: 1px solid #e8e0d5;
    border-radius: 6px;
    color: #4a3728;
    background: #fff;
    text-decoration: none;
    font: inherit;
    cursor: pointer;
}

.btn-secondary-link.as-button {
    border: 1px solid #e8e0d5;
}

.checkout-summary {
    top: 100px;
    visibility: hidden;
}

.delivery-message.info {
    color: #e67e22;
}

.delivery-message.success {
    color: #27ae60;
    font-weight: 600;
}

.confirmation-card {
    max-width: 680px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e8e0d5;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.confirmation-icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    color: #2d6a4f;
    background: #def7ec;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirmation-muted {
    color: #8a7560;
}

.order-number {
    border: 1px solid #e8e0d5;
    background: #faf7f4;
    border-radius: 8px;
    padding: .8rem 1rem;
    font: inherit;
    font-weight: 700;
    margin: 1rem 0;
    cursor: pointer;
}

.confirmation-summary {
    max-width: 460px;
    margin: 1rem auto 0;
    text-align: left;
}

@media (max-width: 900px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
    }
}

@media (max-width: 650px) {
    .checkout-steps {
        grid-template-columns: 1fr;
    }

    .checkout-item {
        grid-template-columns: 64px 1fr;
    }

    .checkout-item strong {
        grid-column: 2;
    }

    .coupon-row,
    .checkout-card-grid {
        grid-template-columns: 1fr;
    }

    .checkout-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/*============================================================
    PAGE MES COMMANDES
============================================================*/
.orders-section {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.orders-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #1a1a1a;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ── Carte commande ── */
.order-card {
    background: #fff;
    border: 1px solid #e8e0d5;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: box-shadow 0.22s ease, transform 0.22s ease;
    outline: none;
}

.order-card:hover,
.order-card:focus {
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.09);
    transform: translateY(-2px);
}

/* Header carte */
.order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
}

.order-card-header-left {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.order-card-numero {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1a1a1a;
}

.order-card-date {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    color: #8a7560;
}

/* Body carte */
.order-card-body {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.25rem;
}

/* Aperçu images */
.order-card-thumbs {
    display: flex;
    align-items: center;
    gap: 6px;
}

.order-card-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e8e0d5;
    background: #f5f0e8;
    flex-shrink: 0;
}

.order-card-thumb-more {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: #f5f0e8;
    border: 1px solid #e8e0d5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #8a7560;
    flex-shrink: 0;
}

/* Méta */
.order-card-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.order-card-detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.order-card-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.order-card-value {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: #1a1a1a;
}

/* Droite : total + flèche */
.order-card-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.order-card-total {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
}

.order-card-arrow {
    color: #bbb;
    transition: color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.order-card:hover .order-card-arrow,
.order-card:focus .order-card-arrow {
    color: #1a1a1a;
    transform: translateX(3px);
}

/* ── Badges statut ── */
.order-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.order-badge--waiting {
    background: #fef3c7;
    color: #92400e;
}

.order-badge--confirmed {
    background: #d1fae5;
    color: #065f46;
}

.order-badge--preparing {
    background: #dbeafe;
    color: #1e40af;
}

.order-badge--shipped {
    background: #ede9fe;
    color: #5b21b6;
}

.order-badge--delivered {
    background: #d1fae5;
    color: #065f46;
}

.order-badge--cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.order-badge--refunded {
    background: #f3f4f6;
    color: #374151;
}

.order-badge--return {
    background: #ffedd5;
    color: #9a3412;
}

.order-product-img,
.order-product-name {
    cursor: pointer;
}

.order-product-img:hover img {
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.order-product-name:hover {
    text-decoration: underline;
}

/*============================================================
    PAGE DÉTAIL COMMANDE
============================================================*/

/* En-tête */
.order-detail-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.order-detail-header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}


.order-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    color: #8a7560;
    text-decoration: none;
    transition: color 0.2s;
}

.order-back-link:hover {
    color: #1a1a1a;
}

/* Grille détail */
.order-detail-shell {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 768px) {
    .order-detail-shell {
        grid-template-columns: 1fr;
    }
}

.order-detail-block-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

/* Récap (réutilise cart-summary) */
.order-detail-summary {
    background: #faf7f4;
    border: 1px solid #e8e0d5;
    border-radius: 10px;
    padding: 1.5rem;
    position: sticky;
    top: 100px;
}

/* ── Ligne produit ── */
.order-product-row {
    display: grid;
    grid-template-columns: 80px 1fr 60px 90px;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e8e0d5;
}

.order-product-img img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e8e0d5;
    background: #f5f0e8;
    display: block;
}

.order-product-name {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.93rem;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.order-product-price {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    color: #8a7560;
}

.order-product-qty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.order-product-total {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 0.93rem;
    color: #1a1a1a;
    text-align: right;
}

/* ── Responsive mobile ── */
@media (max-width: 600px) {
    .order-card-body {
        grid-template-columns: 1fr;
    }

    .order-card-right {
        justify-content: space-between;
    }

    .order-product-row {
        grid-template-columns: 64px 1fr;
        grid-template-rows: auto auto;
    }

    .order-product-img img {
        width: 64px;
        height: 64px;
    }

    .order-product-qty,
    .order-product-total {
        grid-column: 2;
    }

    .order-card-meta {
        gap: 1rem;
    }
}

/*============================================================
    PAGE FAQ
============================================================*/
.faq-section {
    max-width: 780px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.faq-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: .5rem;
}

.faq-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: .95rem;
    color: #8a7560;
    margin-bottom: 2rem;
}

/* ── Filtres catégories ── */
.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 2rem;
}

.faq-cat-btn {
    font-family: 'DM Sans', sans-serif;
    font-size: .82rem;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1.5px solid #e0d8ce;
    background: transparent;
    color: #554c45;
    cursor: pointer;
    transition: all .2s ease;
}

.faq-cat-btn:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.faq-cat-btn.active {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}

/* ── Groupe ── */
.faq-group {
    margin-bottom: 2.5rem;
}

.faq-group-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid #e8e0d5;
}

/* ── Item accordion ── */
.faq-items {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.faq-item {
    background: #fff;
    border: 1px solid #e8e0d5;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow .2s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .07);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'DM Sans', sans-serif;
    font-size: .95rem;
    font-weight: 500;
    color: #1a1a1a;
    transition: background .2s;
}

.faq-question:hover {
    background: #faf7f4;
}

.faq-chevron {
    flex-shrink: 0;
    color: #8a7560;
    transition: transform .25s ease;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}

/* ── Réponse ── */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
}

.faq-item.open .faq-answer {
    max-height: 600px;
}

.faq-answer p,
.faq-answer-list {
    font-family: 'DM Sans', sans-serif;
    font-size: .92rem;
    color: #554c45;
    line-height: 1.7;
    padding: 0 1.25rem;
    margin: 0 0 .5rem;
}

.faq-answer p:last-child,
.faq-answer-list:last-child {
    margin-bottom: 1.1rem;
}

.faq-answer-list {
    padding-left: 2.5rem;
}

.faq-answer-list li {
    margin-bottom: .25rem;
}

@media (max-width: 600px) {
    .faq-title {
        font-size: 1.6rem;
    }

    .faq-question {
        font-size: .88rem;
    }
}

/*==================
    Overlay Auth
==================*/
.overlay-auth-container {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.overlay-auth-container.active {
    display: flex;
}

.overlay-auth-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
}

/* ===== MODAL ===== */
.overlay-auth-content {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
}

.overlay-auth-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.overlay-auth-close:hover {
    color: #333;
}

/* ===== PANELS ===== */
.auth-panel {
    display: none;
}

.auth-panel.active {
    display: block;
}

/* ===== HEADER ===== */
.auth-header {
    margin-bottom: 2rem;
}


.auth-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.3rem;
}

.auth-header p {
    color: #888;
    font-size: 0.92rem;
    margin: 0;
}

/* ===== FORM ===== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.label-link {
    font-weight: 400;
    font-size: 0.8rem;
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.label-link:hover {
    color: #1a1a1a;
}

.form-group input {
    padding: 0.75rem 1rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #1a1a1a;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fafafa;
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #1a1a1a;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.06);
}

/* ===== PASSWORD WRAP ===== */
.input-password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-password-wrap input {
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 0.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
    padding: 0;
    display: flex;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: #444;
}

/* ===== PASSWORD STRENGTH ===== */
.password-strength {
    display: flex;
    gap: 4px;
    margin-top: 0.4rem;
}

.password-strength span {
    flex: 1;
    height: 3px;
    background: #e0e0e0;
    border-radius: 2px;
    transition: background 0.3s;
}

.password-strength.weak span:nth-child(1) {
    background: #e53e3e;
}

.password-strength.fair span:nth-child(1),
.password-strength.fair span:nth-child(2) {
    background: #ed8936;
}

.password-strength.good span:nth-child(1),
.password-strength.good span:nth-child(2),
.password-strength.good span:nth-child(3) {
    background: #ecc94b;
}

.password-strength.strong span {
    background: #48bb78;
}

/* ===== BARRE ===== */
.password-strength {
    display: flex;
    gap: 4px;
    margin-top: 0.5rem;
}

.password-strength span {
    flex: 1;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    transition: background 0.35s ease;
}

/* 1 barre allumée */
.password-strength.weak span:nth-child(1) {
    background: #e53e3e;
}

/* 2 barres */
.password-strength.fair span:nth-child(1),
.password-strength.fair span:nth-child(2) {
    background: #ed8936;
}

/* 3 barres */
.password-strength.good span:nth-child(1),
.password-strength.good span:nth-child(2),
.password-strength.good span:nth-child(3) {
    background: #ecc94b;
}

/* 4 barres */
.password-strength.strong span:nth-child(1),
.password-strength.strong span:nth-child(2),
.password-strength.strong span:nth-child(3),
.password-strength.strong span:nth-child(4) {
    background: #68d391;
}

/* 5 barres = parfait */
.password-strength.perfect span {
    background: #48bb78;
}

/* ===== RÈGLES ===== */
.pwd-rules {
    list-style: none;
    padding: 0;
    margin: 0.6rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.pwd-rule {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: #aaa;
    transition: color 0.2s;
}

/* États */
.pwd-rule.valid {
    color: #48bb78;
}

.pwd-rule.invalid {
    color: #e53e3e;
}

/* Icônes — on cache tout par défaut */
.rule-icon {
    display: none;
    flex-shrink: 0;
}

/* idle = cercle vide → visible quand ni valid ni invalid */
.pwd-rule:not(.valid):not(.invalid) .rule-idle {
    display: block;
}

/* ok = checkmark → visible si valid */
.pwd-rule.valid .rule-ok {
    display: block;
}

/* ko = croix → visible si invalid */
.pwd-rule.invalid .rule-ko {
    display: block;
}

.rule-hint {
    color: #ccc;
    font-size: 0.78rem;
}

/* ===== STRENGTH ROW ===== */
.pwd-strength-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0.5rem;
}

.pwd-strength-row .password-strength {
    flex: 1;
    margin-top: 0;
    /* reset */
}

/* ===== BOUTON INFO ===== */
.pwd-info-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.pwd-info-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #bbb;
    padding: 2px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
    line-height: 1;
}

.pwd-info-btn:hover,
.pwd-info-btn.open {
    color: #555;
}

/* ===== POPOVER ===== */
.pwd-popover {
    display: none;
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 0.9rem 1rem;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.13);
    min-width: 220px;
    z-index: 100;
    animation: popoverIn 0.18s ease;
}

/* Petite flèche en bas */
.pwd-popover::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 6px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-right: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    transform: rotate(45deg);
}

.pwd-popover.open {
    display: block;
}

@keyframes popoverIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RÈGLES (inchangées) ===== */
.pwd-rules {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.pwd-rule {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.81rem;
    color: #aaa;
    transition: color 0.2s;
}

.pwd-rule.valid {
    color: #48bb78;
}

.pwd-rule.invalid {
    color: #e53e3e;
}

.rule-icon {
    display: none;
    flex-shrink: 0;
}

.pwd-rule:not(.valid):not(.invalid) .rule-idle {
    display: block;
}

.pwd-rule.valid .rule-ok {
    display: block;
}

.pwd-rule.invalid .rule-ko {
    display: block;
}

.rule-hint {
    color: #ccc;
    font-size: 0.76rem;
}

/* ===== SUBMIT ===== */
.btn-auth-submit {
    width: 100%;
    padding: 0.9rem;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.2s, transform 0.1s;
}

.btn-auth-submit:hover {
    background: #333;
}

.btn-auth-submit:active {
    transform: scale(0.98);
}

/* ===== FOOTER ===== */
.auth-footer-text {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #999;
}

.auth-switch-link {
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.auth-switch-link:hover {
    color: #555;
}

/* ===== FIELD ERROR ===== */
.input-error {
    border-color: #e53e3e !important;
    background: #fff5f5 !important;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1) !important;
}

.field-error-msg {
    font-size: 0.78rem;
    color: #e53e3e;
    margin-top: 0.2rem;
    display: block;
    animation: fadeInDown 0.15s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*==================
    Panel OTP
==================*/
#panel-otp .auth-header p,
#panel-forgot-otp .auth-header p {
    color: #666;
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

#otp-input,
#fg-otp-input {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 12px;
    padding: 1rem !important;
    border-radius: 12px !important;
    background: #fafafa;
    color: #1a1a1a;
    width: 100%;
    box-sizing: border-box;
    border: 1.5px solid #e0e0e0;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#otp-input:focus,
#fg-otp-input:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.06);
}

#otp-input::placeholder,
#fg-otp-input::placeholder {
    color: #ccc;
    letter-spacing: 12px;
}

#resend-otp,
#fg-resend-otp {
    color: #8B6914;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

#resend-otp:hover,
#fg-resend-otp:hover {
    color: #1a1a1a;
    text-decoration: underline;
}

#resend-otp.disabled,
#fg-resend-otp.disabled {
    color: #aaa;
    pointer-events: none;
    cursor: default;
}

/* ── Carousel ───────────────────────── */
.product-card-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #f5f6fa;
}

.product-card-img-wrapper img,
.carousel-slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    /* caché par défaut */
}

.carousel-slide.active {
    display: block;
}

/* Flèches */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 2;
    line-height: 1;
    transition: background 0.2s;
}

.carousel-btn:hover {
    background: #fff;
}

.carousel-prev {
    left: 8px;
}

.carousel-next {
    right: 8px;
}

/* Dots */
.carousel-dots {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
}

.carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background 0.2s;
}

.carousel-dot.active {
    background: #fff;
}

/* Prix barré */
.prix-barre {
    text-decoration: line-through;
    color: var(--text-muted);
    margin-right: 4px;
}


/*============================================================
    PAGE FAVORIS & ÉTATS GLOBAUX
============================================================*/

/* ── Loading state ── */
.page-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 5rem 1rem;
    color: #888;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
}

.page-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e8e0d5;
    border-top-color: #1a1a1a;
    border-radius: 50%;
    animation: page-spin 0.7s linear infinite;
}

@keyframes page-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Empty state ── */
.page-empty {
    text-align: center;
    padding: 5rem 1rem 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.page-empty-icon {
    color: #d4c9bb;
    margin-bottom: 6px;
}

.page-empty h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.page-empty p {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: #888;
    margin: 0;
    max-width: 340px;
}

.page-empty .btn {
    margin-top: 10px;
}

/* ── Remove button (replaces heart on favorites page) ── */
.btn-favorite-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    cursor: pointer;

    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);

    color: #aaa;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-favorite-remove:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    background: #fff;
    color: #e63946;
}

.btn-favorite-remove svg {
    transition: stroke 0.2s ease;
}

/* ── Favorite card transition out ── */
.favorite-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/*============================================================
    PAGE DETAIL PRODUIT
============================================================*/
.product-card {
    cursor: pointer;
}

.product-card button,
.product-card .carousel-dot {
    cursor: pointer;
}

.product-detail-page {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
}

.product-back-link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 18px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    color: #5c5048;
    text-decoration: none;
}

.product-back-link:hover {
    color: #1a1a1a;
    text-decoration: underline;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    gap: 42px;
    align-items: start;
}

.product-detail-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-detail-main-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #efe8dc;
    aspect-ratio: 1 / 1;
}

.product-detail-main-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a1a;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}

.product-gallery-prev {
    left: 14px;
}

.product-gallery-next {
    right: 14px;
}

.product-detail-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
    gap: 10px;
}

.product-thumb {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    aspect-ratio: 1 / 1;
    cursor: pointer;
}

.product-thumb.active {
    border-color: #1a1a1a;
}

.product-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-summary {
    background: #fff;
    border-radius: 8px;
    padding: 34px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.product-detail-kicker {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #86786b;
}

.product-detail-summary h1 {
    font-size: 2.6rem;
    line-height: 1.05;
    color: #1a1a1a;
}

.product-detail-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-family: 'DM Sans', sans-serif;
}

.product-detail-price-current {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
}

.product-detail-price-old {
    color: #8f8276;
    text-decoration: line-through;
}

.product-detail-description {
    font-family: 'DM Sans', sans-serif;
    color: #554c45;
    line-height: 1.7;
}

.product-detail-stock {
    width: fit-content;
    border: 1px solid #d7c9b8;
    border-radius: 999px;
    padding: 7px 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    color: #3f5f43;
    background: #f7fbf5;
}

.product-detail-stock.out {
    color: #8b2f2f;
    background: #fff4f4;
    border-color: #e4b9b9;
}

.product-detail-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 4px;
}

.product-detail-quantity {
    background: #fff;
}

.product-detail-cart {
    min-height: 42px;
}

.product-detail-specs {
    display: grid;
    gap: 0;
    border-top: 1px solid #eee4d7;
    margin-top: 6px;
}

.product-spec-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #eee4d7;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
}

.product-spec-row span {
    color: #88796c;
}

.product-spec-row strong {
    color: #1a1a1a;
    font-weight: 600;
}

.product-detail-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.product-info-block {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.product-info-block h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.product-info-block p {
    font-family: 'DM Sans', sans-serif;
    color: #5a5149;
    line-height: 1.7;
}

.product-detail-state {
    background: #fff;
    border-radius: 8px;
    padding: 42px;
    text-align: center;
    font-family: 'DM Sans', sans-serif;
    color: #5a5149;
}


/*==================
    Toast Notifications
==================*/
#toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.toast {
    cursor: pointer;
    background-color: #1a1a1a;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 16px;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-success {
    border-left: 4px solid #d4af37;
}

.toast-error {
    background-color: #e63946;
}

.toast-info {
    background-color: #2980b9;
}

.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/*============================================================
    FOOTER
============================================================*/
.site-footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 3rem 1.5rem 1rem;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.footer-inner {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand {
    flex: 1;
    min-width: 200px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.footer-tagline {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #aaa;
}

.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social-link {
    color: #aaa;
    transition: color 0.2s;
}

.footer-social-link:hover {
    color: #fff;
}

.footer-nav,
.footer-contact {
    flex: 1;
    min-width: 160px;
}

.footer-nav-title {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #fff;
}

.footer-address {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1200px;
    margin-inline: auto;
}

.footer-copy {
    font-size: 0.85rem;
    color: #666;
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .product-detail-summary {
        padding: 24px;
    }

    .product-detail-summary h1 {
        font-size: 2rem;
    }

    .product-detail-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .product-detail-thumbs {
        grid-template-columns: repeat(4, 1fr);
    }

    .product-detail-actions,
    .product-detail-cart {
        width: 100%;
    }

    .product-detail-cart {
        justify-content: center;
    }

    .product-spec-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/*==================
    Responsive Mobile
==================*/
@media (max-width: 768px) {
    body {
        margin-left: 4%;
        margin-right: 4%;
    }

    #section-excellence-equestre .title {
        font-size: 1.8rem;
        width: 90%;
    }

    #section-excellence-equestre img {
        height: 50vh;
    }

    .menu-tabs {
        gap: 4px;
    }

    .menu-tab {
        padding: 6px 10px;
        font-size: 0.78rem;
    }

    #section-rendez-vous {
        padding: 24px 20px;
    }

    .rdv-type {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .contact-form {
        padding: 24px 20px;
    }

    h2.title {
        font-size: 1.5rem;
    }
}