@import url(reset.css);
@import url(global_components.css);

html {
    scroll-behavior: smooth;
}

* {
    text-decoration: none;
    box-sizing: border-box;
}

body {
    font-family: "Belanosima", sans-serif;
    background-color: #f8f4ea;
}

/* SECTION */
.section {
    min-height: calc(100vh - 75px);
    padding: 3rem 8vw;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ÉTAPES */
.etapes {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.etape {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #aaa;
}

.etape.active {
    color: #333;
}

.num {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFB802;
    background: #F8F4EA;
    border: 3px solid transparent;
}

.etape.active .num {
    border: 3px solid #FFB802;
}

.trait {
    width: 60px;
    height: 2px;
    background: #ddd;
    margin-top: 25px;
}

/* TABLEAU */
.panier {
    width: 100%;
}

.panier-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 0.5fr;
    padding: 0.8rem 1rem;
    font-weight: 400;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #ddd;
    color: #3D2D00;
}

.panier-ligne {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 0.5fr;
    align-items: center;
    padding: 1.5rem 1rem;
    border-bottom: 1px solid #eee;
}

.article-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.article-info img {
    width: 90px;
    object-fit: contain;
}

#article-img{
    width: 13rem;
}

.article-nom {
    font-size: 1.25rem;
    font-weight: 400;
    color: #000;
}

.article-sous {
    font-size: 1.25rem;
    font-weight: 400;
    color: #000;
}

.qte {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.qte-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 1rem;
}

.total {
    font-weight: 600;
}

.suppr {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0.6;
}

.suppr:hover {
    opacity: 1;
}

/* BOUTON */
.panier-footer {
    display: flex;
    justify-content: flex-end;
}

.btn-paiement {
    display: inline-block;
    color: #FFF;
    background: linear-gradient(90deg, rgba(255, 184, 2, 1) 0%, rgba(203, 85, 228, 1) 100%);
    font-size: 24px;
    font-weight: 600;
    padding: 0.5rem 2.5rem;
    border-radius: 40px;
    border: 5px #FFF solid;
    cursor: pointer;
    transform: all ease .3s;
    
    margin-top: 2rem;
}

.btn-paiement:hover {
    opacity: 0.9;
}

/* FORMULAIRE */
.formulaire {
    max-width: 550px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-bloc {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.form-bloc h3 {
    font-weight: 700;
    font-size: 1rem;
    color: #333;
}

.form-bloc input[type="text"],
.form-bloc input[type="email"],
.form-bloc input[type="tel"] {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    font-family: "Belanosima", sans-serif;
    font-size: 0.9rem;
    outline: none;
    background: #fff;
}

.form-bloc input:focus {
    border-color: #FFB802;
}

.form-row {
    display: flex;
    gap: 0.8rem;
}

.form-row input {
    flex: 1;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #555;
    cursor: pointer;
}

.expedition-info {
    background: #f0f0f0;
    border-radius: 6px;
    padding: 1rem;
    font-size: 0.85rem;
    color: #555;
    max-width: 280px;
}


/* PAIEMENT */
.paiement-wrapper {
    display: flex;
    gap: 4rem;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.paiement-gauche {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.paiement-droite {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.sous-titre {
    font-size: 0.85rem;
    color: #777;
    margin-top: -0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 1rem;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    background: #fff;
}

.radio-option input {
    accent-color: #FFB802;
}

/* RECAP */
.recap-article {
    display: flex;
    align-items: flex-start; /* ← était center */
    gap: 1rem;
}

.recap-img-wrapper {
    position: relative;
}

.recap-img-wrapper img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.recap-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #888;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.recap-nom {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 600;
}

.recap-prix {
    font-weight: 700;
}

.recap-totaux {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border-top: 1px solid #ddd;
    padding-top: 1rem;
}

.recap-ligne {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.gris {
    color: #999;
    font-size: 0.85rem;
}

.recap-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #ddd;
    padding-top: 1rem;
}

.total-label {
    font-size: 1.3rem;
    font-weight: 700;
}

.total-prix {
    font-size: 1.3rem;
    font-weight: 700;
}

.total-eur {
    font-size: 0.8rem;
    color: #999;
    font-weight: 400;
}

.taxes {
    font-size: 0.8rem;
    color: #999;
    margin-top: -0.5rem;
}

/* PANIER VIDE */
.panier-vide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 4rem 2rem;
}

.panier-vide img {
    width: 80px;
    opacity: 0.7;
}

.panier-vide-texte {
    font-size: 0.9rem;
    color: #888;
}

.panier-vide-titre {
    font-size: 1.3rem;
    font-weight: 800;
    color: #333;
}

/* Cacher les étapes si panier vide */
.etapes-cachees {
    display: none;
}

.btn-idees {
    display: inline-block;
    padding: 0.7rem 2rem;
    border-radius: 40px;
    border: 3px solid transparent;
    background: linear-gradient(white, white) padding-box,
        linear-gradient(90deg, #F5A623, #CB55E4) border-box;
    color: #1a1a1a;
    font-family: "Belanosima", sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: 0.2s;
}

.btn-idees:hover {
    background: linear-gradient(90deg, #F5A623, #CB55E4);
    color: #fff;
}

.recap-img-box {
    width: 70px;  /* ← même taille que l'ancien img */
    height: 70px; /* ← même taille que l'ancien img */
    border-radius: 8px; /* ← même border-radius */
    background-color: #6872FF;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0; /* ← empêche de rétrécir */
}

.recap-img-box img {
    width: 80%;
    height: auto;
    object-fit: contain;
    border-radius: 0;
}