/* Présentation */
.boutique-intro {
    padding-bottom: var(--espace-l);
}

.etapes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--espace-m) var(--espace-l);
    margin: 0;
    padding: 0;
    list-style: none;
}

.etapes li {
    font-family: var(--police-titres);
    display: flex;
    align-items: center;
    gap: var(--espace-s);
    font-weight: bold;
    color: var(--bleu-nuit);
}

.etapes span {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: var(--orange);
    color: var(--bleu-nuit);
    font-family: var(--police-titres);
}


/* Fiches produits */
.fiches {
    display: grid;
    gap: var(--espace-xl);
}

.fiche {
    display: grid;
    gap: var(--espace-l);
    align-items: start;
}

@media (min-width: 800px) {
    .fiche {
        grid-template-columns: 1fr 1fr;
        gap: var(--espace-xl);
    }

    .fiche:nth-child(even) .fiche__galerie {
        order: 2;
    }
}

.fiche + .fiche {
    padding-top: var(--espace-xl);
    border-top: 1px solid rgba(19, 15, 61, 0.12);
}

.fiche__image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--rayon);
    box-shadow: var(--ombre);
    background-color: var(--creme);
}

.fiche__miniatures {
    display: flex;
    gap: var(--espace-s);
    margin-top: var(--espace-s);
}

.fiche__miniature {
    padding: 0;
    border: 3px solid transparent;
    border-radius: 10px;
    background: none;
    cursor: pointer;
    overflow: hidden;
    transition: border-color var(--transition);
}

.fiche__miniature img {
    width: 72px;
    height: 72px;
    object-fit: cover;
}

.fiche__miniature:hover {
    border-color: var(--bleu-clair);
}

.fiche__miniature[aria-current="true"] {
    border-color: var(--bleu-nuit);
}

.fiche__nom {
    margin-bottom: var(--espace-xs);
}

.fiche__prix {
    font-family: var(--police-titres);
    font-size: 1.8rem;
    color: var(--orange-texte);
    margin-bottom: var(--espace-m);
}

.fiche__credit {
    font-size: 0.95rem;
}

.fiche__option {
    margin-bottom: var(--espace-l);
}

.fiche__label {
    margin-bottom: var(--espace-s);
    font-weight: bold;
    color: var(--bleu-nuit);
}

.fiche__label strong {
    font-weight: normal;
}

.fiche__couleurs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--espace-s);
}

.pastille {
    font-family: var(--police-titres);
    display: inline-flex;
    align-items: center;
    gap: var(--espace-s);
    min-height: 44px;
    padding: var(--espace-xs) var(--espace-m) var(--espace-xs) var(--espace-xs);
    border: 2px solid rgba(19, 15, 61, 0.2);
    border-radius: 999px;
    background-color: var(--blanc);
    color: var(--bleu-nuit);
    font: inherit;
    cursor: pointer;
    transition: border-color var(--transition);
}

.pastille:hover {
    border-color: var(--bleu-clair);
}

.pastille[aria-pressed="true"] {
    border-color: var(--bleu-nuit);
    box-shadow: inset 0 0 0 1px var(--bleu-nuit);
}

/* Bordure fine pour que la pastille blanche reste visible */
.pastille__rond {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(19, 15, 61, 0.35);
}

.fiche__tailles {
    display: flex;
    flex-wrap: wrap;
    gap: var(--espace-s);
    margin: 0 0 var(--espace-s);
    padding: 0;
    list-style: none;
}

.fiche__tailles li {
    font-family: var(--police-titres);
    min-width: 3rem;
    padding: var(--espace-xs) var(--espace-m);
    border: 2px solid var(--bleu-nuit);
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    color: var(--bleu-nuit);
}

.fiche__note {
    margin: 0 0 var(--espace-s);
    font-size: 0.9rem;
    color: var(--texte-doux);
}

.fiche__commander {
    min-width: 12rem;
}

@media (max-width: 599px) {
    .fiche__commander {
        width: 100%;
    }
}


/* Commande */
.commande__infos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: var(--espace-m);
    max-width: 900px;
    margin: 0 auto var(--espace-s);
    padding: 0;
    list-style: none;
}

.commande__infos li {
    padding: var(--espace-m);
    border-left: 4px solid var(--orange);
    border-radius: 0 var(--rayon) var(--rayon) 0;
    background-color: var(--blanc);
    font-size: 0.95rem;
}

.commande__infos strong {
    display: block;
    font-family: var(--police-titres);
    font-weight: normal;
    color: var(--bleu-nuit);
}

.commande__cgv {
    margin-bottom: var(--espace-l);
    text-align: center;
}

.commande__rappel {
    max-width: 680px;
    margin: 0 auto var(--espace-m);
    padding: var(--espace-m);
    border-left: 4px solid var(--orange);
    border-radius: 0 var(--rayon) var(--rayon) 0;
    background-color: var(--blanc);
}

.commande__cadre {
    max-width: 900px;
    margin-inline: auto;
    border-radius: var(--rayon);
    overflow: hidden;
    background-color: var(--blanc);
    box-shadow: var(--ombre);
}

/* Hauteur de départ, remplacée par la vraie hauteur envoyée par HelloAsso (js/boutique.js) */
.commande__iframe {
    display: block;
    width: 100%;
    height: 1000px;
    border: none;
}

.commande__iframe[hidden] {
    display: none;
}

.commande__accord {
    padding: var(--espace-l) var(--espace-m);
    text-align: center;
}

.commande__accord p {
    max-width: 36rem;
    margin: 0 auto var(--espace-m);
    color: var(--texte-doux);
}

.commande__secours {
    margin-top: var(--espace-l);
    text-align: center;
    font-size: 1.05rem;
}

.commande__secours a {
    font-weight: bold;
}


/* Guide des tailles */
.guide {
    width: min(100% - 2 * var(--marge-cotes), 600px);
    max-height: 85vh;
    padding: 0;
    border: none;
    border-radius: var(--rayon);
    box-shadow: var(--ombre-forte);
    color: var(--texte);
}

.guide::backdrop {
    background: rgba(19, 15, 61, 0.6);
}

.guide__contenu {
    padding: var(--espace-l);
}

.guide__tableau {
    overflow-x: auto;
    margin-bottom: var(--espace-m);
}

.guide table {
    width: 100%;
    border-collapse: collapse;
}

.guide th,
.guide td {
    padding: var(--espace-s) var(--espace-m);
    border-bottom: 1px solid rgba(19, 15, 61, 0.12);
    text-align: center;
}

.guide thead th {
    background-color: var(--bleu-nuit);
    color: var(--creme);
}

.guide__aide {
    font-size: 0.95rem;
    color: var(--texte-doux);
}
