/* ===== Palette alignée sur le design des cartes de don (#C98A2C / #A9741F) ===== */

/* ===== Popup "ajouté au panier" ===== */
.cart-added-modal-content {
    border: none;
    border-radius: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.cart-added-icon {
    font-size: 56px;
    color: #C98A2C;
}

.cart-added-title {
    font-weight: 800;
    color: #1a1a1a;
}

.cart-added-message {
    color: #444;
}

.cart-added-submessage {
    font-size: 0.9rem;
}

.cart-added-modal-content .btn-success {
    background: linear-gradient(135deg, #C98A2C, #A9741F);
    border: none;
    border-radius: 0;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(201, 138, 44, 0.3);
}

.cart-added-modal-content .btn-success:hover {
    background: linear-gradient(135deg, #A9741F, #8F6119);
}

.cart-added-modal-content .btn-outline-secondary {
    border-radius: 0;
    font-weight: 600;
}

/* ===== Icône panier + badge dans le header ===== */
.cart-icon-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    font-size: 1.2rem;
}

.cart-icon-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: linear-gradient(135deg, #C98A2C, #A9741F);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(201, 138, 44, 0.5);
}

/* ===== Contrôles d'ajout au panier sur les cartes de don ===== */
.donation-cart-controls {
    margin-top: 14px;
    padding-top: 18px;
    border-top: 1px dashed #e5e7eb;
}

.donation-price-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.donation-price-pill {
    border: 2px solid #e5e7eb;
    background: #fff;
    border-radius: 0;
    padding: 7px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #374151;
    line-height: 1.3;
}

.donation-price-pill small {
    display: block;
    font-weight: 500;
    font-size: 0.68rem;
    opacity: 0.8;
}

.donation-price-pill:hover {
    border-color: #C98A2C;
    color: #C98A2C;
    transform: translateY(-1px);
}

.donation-price-pill.active {
    background: linear-gradient(135deg, #C98A2C, #A9741F);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(201, 138, 44, 0.35);
}

.donation-custom-amount {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.donation-custom-amount input[type="number"] {
    flex: 1;
    border: 2px solid #e5e7eb;
    border-radius: 0;
    padding: 9px 12px;
    font-weight: 700;
    color: #1a1a1a;
    transition: border-color 0.2s ease;
}

.donation-custom-amount input[type="number"]:focus {
    outline: none;
    border-color: #C98A2C;
}

.donation-custom-amount span {
    font-weight: 700;
    color: #C98A2C;
}

.donation-quick-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.donation-quick-amounts .donation-price-pill {
    padding: 5px 12px;
    font-size: 0.78rem;
}

.donation-kurban-select {
    width: 100%;
    border: 2px solid #e5e7eb;
    border-radius: 0;
    padding: 9px 12px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #374151;
    background: #fff;
}

.donation-kurban-select:focus {
    outline: none;
    border-color: #C98A2C;
}

.donation-price-select-wrap {
    margin-bottom: 12px;
}

.donation-price-select {
    width: 100%;
    border: 2px solid #e5e7eb;
    border-radius: 0;
    padding: 10px 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #374151;
    background: #fff;
}

.donation-price-select:focus {
    outline: none;
    border-color: #C98A2C;
}

.donation-selected-price-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #FBF3E4, #F5E6C8);
    border: 1px solid #a7f3d0;
    border-radius: 0;
}

.donation-selected-price-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #A9741F;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.donation-selected-price-value {
    font-weight: 800;
    font-size: 1.5rem;
    color: #A9741F;
    white-space: nowrap;
}

.btn-add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: linear-gradient(135deg, #C98A2C, #A9741F);
    color: #fff;
    border: none;
    border-radius: 0;
    padding: 12px 18px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    box-shadow: 0 8px 20px rgba(201, 138, 44, 0.25);
}

.btn-add-to-cart:hover {
    background: linear-gradient(135deg, #A9741F, #8F6119);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(201, 138, 44, 0.35);
}

.btn-add-to-cart:disabled {
    background: #F5E6C8;
    color: #E8CE9E;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.btn-add-to-cart.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.btn-donate-details {
    display: block;
    text-align: center;
    background: transparent !important;
    color: #C98A2C !important;
    border: 2px solid #C98A2C !important;
    border-radius: 0;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 16px;
    transition: all 0.2s ease;
}

.btn-donate-details:hover {
    background: #C98A2C !important;
    color: #fff !important;
}

/* ===== Mini-panier déroulant (header) ===== */
.mini-cart-wrapper {
    position: relative;
}

.mini-cart-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 340px;
    max-width: 90vw;
    background: #fff;
    border-radius: 0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    z-index: 1050;
    overflow: hidden;
    border: 1px solid rgba(201, 138, 44, 0.1);
}

.mini-cart-dropdown.show {
    display: block;
    animation: miniCartFadeIn 0.2s ease;
}

@keyframes miniCartFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.mini-cart-loading,
.mini-cart-empty {
    padding: 34px 20px;
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
}

.mini-cart-items {
    max-height: 320px;
    overflow-y: auto;
}

.mini-cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
}

.mini-cart-item img {
    width: 48px;
    height: 48px;
    border-radius: 0;
    object-fit: cover;
    flex-shrink: 0;
}

.mini-cart-item-info {
    flex: 1;
    min-width: 0;
}

.mini-cart-item-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-cart-item-amount {
    font-size: 0.8rem;
    color: #C98A2C;
    font-weight: 700;
}

.mini-cart-item-remove {
    background: none;
    border: none;
    color: #d1d5db;
    font-size: 0.9rem;
    padding: 4px;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.mini-cart-item-remove:hover {
    color: #ef4444;
}

.mini-cart-footer {
    padding: 16px;
    border-top: 1px solid #f3f4f6;
    background: #f9fafb;
}

.mini-cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.mini-cart-footer .btn {
    width: 100%;
    background: linear-gradient(135deg, #C98A2C, #A9741F);
    border: none;
    border-radius: 0;
    font-weight: 700;
    padding: 10px;
    box-shadow: 0 8px 20px rgba(201, 138, 44, 0.25);
}

.mini-cart-footer .btn:hover {
    background: linear-gradient(135deg, #A9741F, #8F6119);
}

/* ===== Fil d'étapes (Bağış Özeti / Ödeme Bilgileri / Bağış Tamamlandı) ===== */
.checkout-steps-wrapper {
    text-align: center;
    margin-bottom: 40px;
}

/* La phrase fait 96 à 98 caractères selon la langue : à 560 px elle se
   coupait systématiquement en deux lignes très inégales. 52rem la laisse
   tenir sur une ligne au-delà de ~880 px de large.
   « text-wrap: balance » répartit les lignes à parts égales quand elle doit
   quand même se couper, sur tablette et mobile. */
.checkout-intro-text {
    color: #6b7280;
    font-size: 1rem;
    max-width: 52rem;
    margin: 0 auto 30px;
    text-wrap: balance;
}

.checkout-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    max-width: 560px;
    margin: 0 auto;
}

.checkout-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 130px;
}

.checkout-step-circle {
    width: 44px;
    height: 44px;
    border-radius: 0;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.checkout-step-label {
    margin-top: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #9ca3af;
    text-align: center;
    line-height: 1.3;
}

.checkout-step.is-active .checkout-step-circle {
    background: linear-gradient(135deg, #C98A2C, #A9741F);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 18px rgba(201, 138, 44, 0.35);
    transform: scale(1.08);
}

.checkout-step.is-active .checkout-step-label {
    color: #A9741F;
    font-weight: 800;
}

.checkout-step.is-completed .checkout-step-circle {
    background: #C98A2C;
    border-color: transparent;
    color: #fff;
}

.checkout-step.is-completed .checkout-step-label {
    color: #C98A2C;
}

.checkout-step-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    margin-top: 22px;
    transition: background 0.3s ease;
    max-width: 60px;
}

.checkout-step-line.is-filled {
    background: #C98A2C;
}

@media (max-width: 576px) {
    .checkout-step {
        width: 90px;
    }
    .checkout-step-label {
        font-size: 0.72rem;
    }
}

/* ==========================================================
   TUNNEL DE DON : panier, recapitulatif, confirmation
   Utilitaires Tailwind des gabarits repris sous des noms parlants.

   ATTENTION : les classes et attributs suivants sont lus par
   js/pages/front/cart/index.js et ne doivent JAMAIS etre renommes :
     .cart-item  [data-item-id]  .item-field  [data-field]
     .remove-item-btn  #same_info_toggle  #cart-total-amount
     #cart-app  [data-apply-same-info-url]
   ========================================================== */
.ct-section {
    background: #fff;
    padding: 1rem 0;
}

@media (min-width: 1024px) {
    .ct-section { padding: 0rem 0; }
}

.ct-in {
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.ct-in--large { max-width: 80rem; }

/* ---------- Panier vide ---------- */
.ct-vide {
    padding: 5rem 0;
    background: #fff;
    text-align: center;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    outline: 1px solid rgba(22, 35, 58, 0.1);
    outline-offset: -1px;
}

.ct-vide-icone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    background: rgba(22, 35, 58, 0.05);
    color: rgba(22, 35, 58, 0.3);
    font-size: 1.5rem;
}

.ct-vide p {
    margin: 0 0 1.5rem;
    color: rgba(22, 35, 58, 0.6);
    font-size: 0.875rem;
}

/* ---------- « Memes infos pour tous » ---------- */
.ct-meme-info {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(27, 58, 92, 0.2);
    background: rgba(27, 58, 92, 0.05);
    color: #1B3A5C;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.ct-meme-info input { width: 1rem; height: 1rem; }

/* ---------- Un article du panier ---------- */
/* ==========================================================
   PANIER — MISE EN PAGE À DEUX COLONNES
   Les dons à gauche, le récapitulatif à droite qui suit le défilement.
   ========================================================== */
.ct-grille {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .ct-grille {
        grid-template-columns: 2fr 1fr;
        gap: 2rem;
    }
}

.ct-colonne-dons { min-width: 0; }

/* ---------- Liste des dons ---------- */
.ct-articles {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ct-articles > * + * { margin-top: 1rem; }

.ct-article {
    padding: 1.25rem;
    background: #fff;
    border: 1px solid rgba(22, 35, 58, 0.18);
    border-radius: 0.5rem;
}

/* Photo, informations et retrait sur une seule ligne. La photo garde ses
   proportions (contain) : un visuel de don n'est pas cadré comme une photo
   de produit, le rogner couperait souvent le sujet. */
.ct-article-tete {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.ct-article-visuel {
    flex-shrink: 0;
    width: 6rem;
    height: 6rem;
}

.ct-article-visuel img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ct-article-sans-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 0.375rem;
    background: #F7F3EC;
    color: #C98A2C;
    font-size: 1.5rem;
}

.ct-article-infos {
    flex: 1 1 auto;
    min-width: 0;
}

@media (max-width: 559px) {
    .ct-article-tete { flex-wrap: wrap; }
    .ct-article-infos { flex-basis: 100%; }
}

.ct-article h3.ct-article-titre {
    margin: 0;
    color: #16233A;
    font-size: 0.875rem;
    font-weight: 600;
}

.ct-article-option {
    margin: 0.125rem 0 0;
    color: rgba(22, 35, 58, 0.5);
    font-size: 0.75rem;
}

.ct-article-prix {
    margin: 0.25rem 0 0;
    color: #1B3A5C;
    font-size: 1rem;
    font-weight: 700;
}

/* Icône seule : le libellé « Retirer » alourdissait la carte et se répétait
   à chaque don. Le texte reste accessible par aria-label et title. */
.ct-retirer {
    flex-shrink: 0;
    margin-left: auto;
    padding: 0.4rem;
    border: 0;
    border-radius: 0.375rem;
    background: transparent;
    color: #8A9AAB;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.ct-retirer:hover,
.ct-retirer:focus-visible { background: #fef2f2; color: #dc2626; }

/* ---------- Coordonnees du donateur ---------- */
.ct-donateur {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(22, 35, 58, 0.1);
}

.ct-donateur-titre {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0 0 0.5rem;
    color: rgba(22, 35, 58, 0.4);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Une seule colonne par defaut. Le courriel et le telephone restent donc
   l'un SOUS l'autre, alignes sur la meme colonne. Seule la variante « duo »
   met deux champs cote a cote, pour le prenom et le nom. */
.ct-champs {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 0.85rem;
}

/* Requete de CONTENEUR et non de fenetre : ce formulaire vit dans la colonne
   « 2fr » de .ct-grille, large d'environ 800px sur grand ecran mais de toute
   la page en dessous de 1024px. Sa largeur ne suit donc pas celle de la
   fenetre, et une @media se tromperait. Un navigateur sans @container ignore
   le bloc et garde une seule colonne : la degradation est sans danger. */
@container coordonnees (min-width: 30rem) {
    .ct-champs--duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* IMPORTANT — aucune marge verticale sur .ct-groupe : l'ecart est tenu par
   « gap ». Une regle « .ct-groupe + .ct-groupe { margin-top } » s'appliquerait
   aussi aux elements d'une grille, et decalerait le deuxieme champ d'une
   rangee vers le bas par rapport au premier. */
.ct-groupe { min-width: 0; }

/* Le libelle, enfin visible. L'ancienne page n'en avait aucun pour les quatre
   coordonnees : seulement un placeholder, qui disparait a la premiere frappe.
   #16233A sur blanc vaut 15,72:1, contre 2,42:1 pour l'ancien libelle de
   commentaire en rgba(22,35,58,0.4) sur 12px. */
.ct-label {
    display: block;
    margin: 0 0 0.3rem;
    color: #16233A;
    font-size: 0.88rem;
    font-weight: 700;
}

.ct-req { margin-left: 0.15rem; color: #8E1B24; }   /* 9,00:1 */

/* Le champ lui-meme. 44px de haut au minimum, et un texte de 1rem : sous
   16px, Safari sur iPhone zoome a la mise au point du champ, ce qui deplace
   la page sous le doigt. L'ancienne valeur donnait 35px de haut pour 14px. */
.ct-champ {
    width: 100%;
    min-height: 2.75rem;            /* 44px */
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(22, 35, 58, 0.3);
    border-radius: 0.45rem;
    background: #fff;
    color: #16233A;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.4;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ct-champ::placeholder { color: #6C7689; }   /* 4,57:1 */
.ct-champ:hover { border-color: rgba(22, 35, 58, 0.45); }

.ct-champ:focus {
    outline: none;
    border-color: #1B3A5C;
    box-shadow: 0 0 0 3px rgba(27, 58, 92, 0.18);
}

/* Un champ refuse par le navigateur, une fois la saisie tentee. */
.ct-champ:user-invalid {
    border-color: #8E1B24;
    box-shadow: 0 0 0 3px rgba(142, 27, 36, 0.14);
}

textarea.ct-champ { min-height: 5.5rem; resize: vertical; }

/* La legende de l'asterisque, posee une fois en tete de formulaire. */
.ct-legende-req {
    margin: 0 0 1.25rem;
    color: #55617A;                 /* 6,22:1 */
    font-size: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
    .ct-retirer, .ct-champ { transition: none; }
}

/* ---------- Rappel « soutenir l'association » ---------- */
.ct-rappel {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border: 1px solid rgba(201, 138, 44, 0.3);
    background: rgba(201, 138, 44, 0.05);
}

.ct-rappel h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.25rem;
    color: #16233A;
    font-size: 0.875rem;
    font-weight: 600;
}

.ct-rappel h3 i { color: #C98A2C; }

.ct-rappel-texte {
    margin: 0 0 1rem;
    color: rgba(22, 35, 58, 0.6);
    font-size: 0.875rem;
}

/* ---------- Total et boutons du bas ---------- */
.ct-total {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: #fff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    outline: 1px solid rgba(22, 35, 58, 0.1);
    outline-offset: -1px;
}

/* #cart-total-amount est mis a jour par le script : ne pas renommer. */

/* ==========================================================
   RECAPITULATIF AVANT PAIEMENT
   « payment_method » (les boutons radio) et #checkout-form sont lus par le
   controleur et le script : leurs noms ne changent pas.
   ========================================================== */
.ct-cols {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2.5rem;
}

@media (min-width: 1024px) {
    .ct-cols { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .ct-recap { grid-column: span 7 / span 7; }
    .ct-paiement { grid-column: span 5 / span 5; }
}

/* ---------- Liste recapitulative ---------- */
.ct-recap-liste > * + * { margin-top: 0.75rem; }

.ct-ligne {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem;
    background: #fff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    outline: 1px solid rgba(22, 35, 58, 0.1);
    outline-offset: -1px;
}

.ct-ligne-corps { min-width: 0; }

.ct-ligne-titre {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: #16233A;
    font-size: 0.875rem;
    font-weight: 600;
}

.ct-etiquette {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    background: rgba(201, 138, 44, 0.1);
    color: #8F5E19;
    font-size: 0.75rem;
    font-weight: 600;
}

.ct-etiquette--gris {
    background: rgba(22, 35, 58, 0.05);
    color: rgba(22, 35, 58, 0.6);
}

.ct-ligne-donateur {
    margin: 0.25rem 0 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(22, 35, 58, 0.5);
    font-size: 0.75rem;
}

.ct-ligne-montant {
    flex-shrink: 0;
    color: #1B3A5C;
    font-size: 1rem;
    font-weight: 700;
}

/* ---------- Bloc de paiement ---------- */
.ct-encart {
    padding: 1.5rem;
    background: #fff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    outline: 1px solid rgba(22, 35, 58, 0.1);
    outline-offset: -1px;
}

/* Il suit le defilement sur grand ecran seulement */
@media (min-width: 1024px) {
    .ct-encart { position: sticky; top: 6rem; }
}

.ct-sous-totaux {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(22, 35, 58, 0.1);
    font-size: 0.875rem;
}

.ct-sous-totaux > * + * { margin-top: 0.5rem; }

.ct-sous-total {
    display: flex;
    justify-content: space-between;
    color: rgba(22, 35, 58, 0.7);
}

.ct-sous-total strong { color: #16233A; font-weight: 600; }

.ct-grand-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.ct-grand-total-libelle {
    color: #16233A;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.ct-grand-total-valeur {
    color: #1B3A5C;
    font-size: 1.5rem;
    font-weight: 700;
}

.ct-form > * + * { margin-top: 1.25rem; }

/* ---------- Encadre d'information ---------- */
.ct-info {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid rgba(27, 58, 92, 0.2);
    background: rgba(27, 58, 92, 0.05);
    color: rgba(22, 35, 58, 0.7);
    font-size: 0.75rem;
    line-height: 1.5;
}

.ct-info i { margin-top: 0.125rem; color: #1B3A5C; }

/* ==========================================================
   CHOIX DU MOYEN DE PAIEMENT
   Tailwind s'appuyait sur « peer » / « peer-checked: ». En CSS, l'etat
   coche se lit avec le selecteur de frere : input:checked ~ ...
   name="payment_method" est valide par le controleur : ne pas renommer.
   ========================================================== */
.ct-moyens > * + * { margin-top: 0.5rem; }

.ct-moyen {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(22, 35, 58, 0.1);
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.ct-moyen:hover { border-color: rgba(27, 58, 92, 0.4); }

/* Le bouton radio reste visible et cliquable : c'est lui qui porte l'etat,
   et le masquer priverait les lecteurs d'ecran du groupe de choix. */
.ct-moyen input[type="radio"] {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    accent-color: #1B3A5C;
}

.ct-pay-ico {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    background: rgba(22, 35, 58, 0.05);
    color: rgba(22, 35, 58, 0.5);
    transition: background 0.2s ease, color 0.2s ease;
}

.ct-pay-nom {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #16233A;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Pastille de validation : tres pale tant que le moyen n'est pas retenu.
   Le #16233A a 20 % donnait un rond quasi noir quand la classe Tailwind
   ne compilait pas ; la teinte est ici explicite. */
.ct-pay-check {
    color: rgba(22, 35, 58, 0.2);
    transition: color 0.2s ease;
}

/* Etat retenu */
.ct-moyen input[type="radio"]:checked ~ .ct-pay-ico {
    background: #1B3A5C;
    color: #F7F3EC;
}

.ct-moyen input[type="radio"]:checked ~ .ct-pay-check { color: #1B3A5C; }

.ct-moyen:focus-within { outline: 2px solid #1B3A5C; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    .ct-moyen, .ct-pay-ico, .ct-pay-check { transition: none; }
}

/* ==========================================================
   CONFIRMATION ET INSTRUCTIONS DE VIREMENT
   ========================================================== */
.ct-in--etroit { max-width: 48rem; }

.ct-succes-tete { margin-bottom: 2rem; text-align: center; }

.ct-succes-icone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    background: rgba(201, 138, 44, 0.15);
    color: #8F5E19;
    font-size: 1.75rem;
}

.ct-succes-tete h2 {
    margin: 0;
    color: #16233A;
    font-size: 1.25rem;
    font-weight: 700;
}

.ct-succes-tete p {
    margin: 0.5rem 0 0;
    color: rgba(22, 35, 58, 0.6);
    font-size: 0.875rem;
}

.ct-facture {
    margin: 0.25rem 0 0;
    color: rgba(22, 35, 58, 0.5);
    font-size: 0.75rem;
}

/* Lien vers le suivi du don */
.ct-suivi {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
    color: #1B3A5C;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
}

.ct-suivi:hover { color: #8F5E19; }

/* ---------- Coordonnees bancaires ---------- */
.ct-banque h3 {
    margin: 0 0 1rem;
    color: #16233A;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.ct-banque-liste > * + * { border-top: 1px solid rgba(22, 35, 58, 0.1); }

.ct-banque-ligne {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0;
}

.ct-banque-ligne > div { min-width: 0; }

.ct-banque-nom {
    margin: 0;
    color: #16233A;
    font-size: 0.875rem;
    font-weight: 600;
}

.ct-banque-ref {
    margin: 0.125rem 0 0;
    color: rgba(22, 35, 58, 0.5);
    font-size: 0.75rem;
}

.ct-banque-montant {
    flex-shrink: 0;
    color: #1B3A5C;
    font-size: 0.875rem;
    font-weight: 700;
}

.ct-banque-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(22, 35, 58, 0.1);
}

.ct-apres { margin-top: 2rem; text-align: center; }

.ct-total-mot {
    color: #16233A;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.ct-total-somme {
    color: #1B3A5C;
    font-size: 1.25rem;
    font-weight: 700;
}

/* ---------- Coordonnees bancaires (encadre ambre) ---------- */
.ct-rib {
    padding: 1.5rem;
    border: 1px solid rgba(201, 138, 44, 0.3);
    background: #fff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.ct-rib h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    color: #16233A;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.ct-rib h3 i { color: #C98A2C; }

.ct-rib dl { margin: 0; font-size: 0.875rem; }
.ct-rib dl > * + * { margin-top: 0.5rem; }

.ct-rib-ligne {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

.ct-rib dt { color: rgba(22, 35, 58, 0.5); }

.ct-rib dd {
    margin: 0;
    color: #16233A;
    font-weight: 600;
    text-align: right;
    /* L'IBAN doit pouvoir se couper : sur mobile il deborde sinon. */
    word-break: break-word;
}

.ct-rib-note {
    margin: 1rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(22, 35, 58, 0.1);
    color: rgba(22, 35, 58, 0.6);
    font-size: 0.875rem;
}

.ct-encadre {
    margin-top: 1rem;
    padding: 0.75rem;
    border: 1px solid rgba(27, 58, 92, 0.2);
    background: rgba(27, 58, 92, 0.05);
    color: rgba(22, 35, 58, 0.7);
    font-size: 0.75rem;
}

/* Rappel du prelevement mensuel restant a mettre en place */
.ct-encadre--ambre {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    border-color: rgba(201, 138, 44, 0.3);
    background: rgba(201, 138, 44, 0.05);
}

.ct-encadre--ambre i { margin-top: 0.125rem; color: #C98A2C; }

/* ==========================================================
   RÉCAPITULATIF DU PANIER
   ========================================================== */
.ct-recap { min-width: 0; }

/* Suit le défilement seulement quand la colonne existe vraiment, c'est-à-dire
   à partir de 1024px : collée en haut d'un petit écran, elle masquerait les
   dons qu'elle résume. */
@media (min-width: 1024px) {
    .ct-recap {
        position: sticky;
        top: 1.5rem;
    }
}

/* La carte est le conteneur de reference de son bouton : c'est SA largeur, et
   non celle de la fenetre, qui decide si le bouton s'etire. On ne pose pas le
   conteneur sur .ct-recap, qui sert aussi a /cart/checkout et aux
   instructions de virement, ni la ou il porte « position: sticky ». */
.ct-recap-carte {
    container-type: inline-size;
    container-name: recapitulatif;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid rgba(22, 35, 58, 0.18);
    border-radius: 0.5rem;
}

.ct-recap-lignes {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #55617A;
    font-size: 0.875rem;
}

.ct-recap-lignes > li {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.5rem 0;
}

.ct-recap-lignes > li > span {
    margin-left: auto;
    color: #16233A;
    font-weight: 600;
}

.ct-recap-total {
    margin-top: 0.5rem;
    padding-top: 0.85rem !important;
    border-top: 1px solid rgba(22, 35, 58, 0.12);
    color: #16233A;
    font-weight: 600;
}

.ct-recap-total > span {
    color: #1B3A5C;
    font-size: 1.15rem;
    font-weight: 700;
}

.ct-recap-actions {
    margin-top: 1.5rem;
    text-align: center;
}

/* Dans une carte ETROITE — la colonne de droite sur grand ecran, environ
   358px de contenu — la pleine largeur est le bon reflexe : c'est l'action
   principale, elle ne doit pas se chercher. C'est donc le comportement par
   defaut, inchange. */
.ct-recap-carte .ct-recap-payer {
    display: flex;
    width: 100%;
    min-height: 2.75rem;            /* 44px, comme les champs */
    justify-content: center;
}

/* Mais SOUS 1024px la grille retombe a une colonne : la carte prend toute la
   page et le bouton s'etirait alors sur 1190px. Des que la carte depasse
   30rem, il reprend donc la taille de son contenu, avec un plancher de 16rem.
   C'est bien la largeur de la CARTE qui decide, et non celle de la fenetre —
   une @media se tromperait dans les deux sens. */
@container recapitulatif (min-width: 30rem) {
    .ct-recap-carte .ct-recap-payer {
        display: inline-flex;
        width: auto;
        min-width: 16rem;
    }

    /* Le bouton cesse d'etre centre tout seul sur une ligne vide. */
    .ct-recap-carte .ct-recap-actions {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 1.25rem;
        text-align: left;
    }

    .ct-recap-carte .ct-recap-lien { margin-top: 0; }
}

.ct-recap-lien {
    display: inline-block;
    margin-top: 0.85rem;
    color: #1B3A5C;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.ct-recap-lien:hover { text-decoration: underline; }


/* ==========================================================
   ÉTAPE « COORDONNÉES »
   Un bloc par don. Quand « mêmes informations pour tous » est coché, les
   blocs suivants sont retirés du flux par l'attribut « hidden ».
   ========================================================== */
/* La colonne des dons devient le conteneur de reference des champs : c'est sa
   largeur, et non celle de la fenetre, qui decide si le prenom et le nom
   tiennent cote a cote. */
.ct-colonne-dons { container-type: inline-size; container-name: coordonnees; }

.ct-bloc-donateur {
    margin: 0 0 1rem;
    padding: 1.25rem;
    border: 1px solid rgba(22, 35, 58, 0.18);
    border-radius: 0.65rem;
    background: #fff;
}

/* ---------- Sections nommees ----------
   Trois temps : informations personnelles, contact, message. Chacune est un
   <fieldset> imbrique, et non un titre : les blocs donateur n'ont pas de titre
   dans cette page, un <h4> y serait donc orphelin. Le lecteur d'ecran annonce
   « Informations personnelles, groupe », ce qui est exactement le sens voulu. */
.ct-sect {
    margin: 0;
    padding: 1.1rem 0 0;
    border: 0;
    border-top: 1px solid rgba(22, 35, 58, 0.12);
}

/* La premiere section suit directement le titre du bloc : pas de filet. */
.ct-sect:first-of-type { padding-top: 0; border-top: 0; }
.ct-sect + .ct-sect { margin-top: 1.1rem; }

.ct-sect-titre {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    margin: 0 0 0.85rem;
    padding: 0;
    /* #8F5E19 et non le #C98A2C du site : a 2,93:1 ce dernier ne peut pas
       porter de texte. Celui-ci vaut 5,55:1. */
    color: #8F5E19;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ct-sect-titre i { color: #8F5E19; font-size: 0.85rem; }

/* « hidden » ne suffit pas sur un fieldset : les navigateurs lui appliquent
   « display: block » par défaut, ce qui annule l'attribut. */
.ct-bloc-donateur[hidden] { display: none; }

.ct-bloc-titre {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    margin: 0 0 0.75rem;
    padding: 0;
    color: #16233A;
    font-size: 1rem;
    font-weight: 700;
}

.ct-bloc-numero {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 9999px;
    background: #1B3A5C;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
}

.ct-bloc-montant {
    margin-left: auto;
    color: #1B3A5C;
    font-size: 0.95rem;
    font-weight: 700;
}

.ct-bloc-option {
    margin: -0.4rem 0 0.9rem;
    color: #55617A;
    font-size: 0.82rem;
}

/* La case de report arrive sous le premier bloc, une fois la saisie faite :
   c'est à ce moment que la question se pose. */
.ct-bloc-donateur .ct-meme-info {
    margin: 1rem 0 0;
}

/* ---------- Erreurs de validation ---------- */
.ct-erreurs {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid #fca5a5;
    border-radius: 0.5rem;
    background: #fef2f2;
    color: #b91c1c;
}

.ct-erreurs p {
    margin: 0;
    font-weight: 600;
}

.ct-erreurs p i { margin-right: 0.5rem; }

.ct-erreurs ul {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
    font-size: 0.875rem;
}

/* ---------- Détail d'un don dans le panier ---------- */
.ct-article-detail {
    margin: 0.4rem 0 0;
    padding: 0;
    list-style: none;
    color: #55617A;
    font-size: 0.8rem;
}

.ct-article-detail > li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.1rem 0;
}

.ct-article-detail i {
    width: 0.9rem;
    color: #C98A2C;
    text-align: center;
}

/* ==========================================================
   AJUSTEMENTS DE LA COLONNE LARGE
   La colonne des dons fait environ 830 px : plusieurs règles pensées pour une
   carte étroite y prenaient des proportions démesurées.
   ========================================================== */

/* Montant et corbeille réunis à droite de la ligne. */
.ct-article-fin {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.ct-article-fin .ct-article-prix {
    margin: 0;
    white-space: nowrap;
}

/* Le bouton « ajouter au panier » du bloc de soutien est partagé avec les
   cartes de don, où il occupe toute la largeur d'une vignette. Ici la colonne
   est bien plus large : sans cette limite, il s'étirait en une bande de plus
   de 800 px. */
.ct-rappel .btn-add-to-cart {
    width: auto;
    min-width: 14rem;
    max-width: 22rem;
    padding: 10px 22px;
}


@media (max-width: 559px) {
    .ct-article-fin {
        width: 100%;
        margin-left: 0;
        justify-content: space-between;
    }

    .ct-rappel .btn-add-to-cart {
        width: 100%;
        min-width: 0;
        max-width: none;
    }
}

/* ==========================================================
   BLOC « SOUTENIR L'ASSOCIATION »
   Il occupait toute la largeur sous les deux colonnes, comme une bannière
   détachée. Il devient une carte de la colonne de gauche, dans la même
   famille visuelle que les dons du panier.
   ========================================================== */
.ct-colonne-dons .ct-rappel {
    max-width: none;
    margin: 1rem 0 0;
    padding: 1.25rem;
    border: 1px solid rgba(201, 138, 44, 0.35);
    border-radius: 0.5rem;
    background: rgba(201, 138, 44, 0.06);
}

.ct-colonne-dons .ct-rappel h3 {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
}

.ct-colonne-dons .ct-rappel-texte {
    margin: 0 0 1rem;
    font-size: 0.85rem;
}

/* Les montants et le bouton sur une seule ligne : empilés, ils étiraient la
   carte sur toute la hauteur de la colonne. */
.ct-colonne-dons .ct-rappel .donation-cart-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.ct-colonne-dons .ct-rappel .donation-price-options,
.ct-colonne-dons .ct-rappel .donation-quick-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
}

.ct-colonne-dons .ct-rappel .donation-custom-amount {
    margin: 0;
    max-width: 13rem;
}

.ct-colonne-dons .ct-rappel .btn-add-to-cart {
    width: auto;
    min-width: 0;
    max-width: none;
    margin-left: auto;
    padding: 10px 20px;
}

@media (max-width: 559px) {
    .ct-colonne-dons .ct-rappel .donation-cart-controls { display: block; }

    .ct-colonne-dons .ct-rappel .donation-price-options,
    .ct-colonne-dons .ct-rappel .donation-quick-amounts,
    .ct-colonne-dons .ct-rappel .donation-custom-amount {
        margin-bottom: 0.75rem;
        max-width: none;
    }

    .ct-colonne-dons .ct-rappel .btn-add-to-cart {
        width: 100%;
        margin-left: 0;
    }
}

/* ==========================================================
   PANIER — STRUCTURE EN TABLEAU
   Reprise du modèle fourni : en-tête avec compteur, cartes sous 640 px,
   tableau au-delà, puis une grille de bas de page en trois colonnes —
   le don généreux sur deux, le récapitulatif sur une.
   ========================================================== */

/* ---------- En-tête ---------- */
.ct-entete {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ct-section h2.ct-entete-titre {
    margin: 0;
    color: #16233A;
    font-size: 1.5rem;
    font-weight: 700;
}

.ct-compteur {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
    background: #1B3A5C;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}

@media (max-width: 479px) {
    .ct-compteur-mot { display: none; }
}

.ct-avis {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding: 0.85rem 1.1rem;
    border: 1px solid #86efac;
    border-radius: 0.5rem;
    background: #f0fdf4;
    color: #15803d;
    font-size: 0.9rem;
}

/* ---------- Petit écran : une carte par don ---------- */
.ct-cartes { display: block; }
.ct-tableau-enveloppe { display: none; }

@media (min-width: 640px) {
    .ct-cartes { display: none; }
    .ct-tableau-enveloppe { display: block; overflow-x: auto; }
}

.ct-carte {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid rgba(22, 35, 58, 0.18);
    border-radius: 0.5rem;
    background: #fff;
}

.ct-carte-tete {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.ct-carte-produit {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    min-width: 0;
}

.ct-carte-lignes {
    margin: 1rem 0 0;
    padding: 0.85rem 0 0;
    border-top: 1px solid rgba(22, 35, 58, 0.1);
    font-size: 0.85rem;
}

.ct-carte-lignes > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.2rem 0;
}

.ct-carte-lignes dt { color: #55617A; font-weight: 400; }
.ct-carte-lignes dd { margin: 0; color: #16233A; font-weight: 600; }

.ct-carte-total dd { color: #1B3A5C; font-size: 1rem; font-weight: 700; }

/* ---------- Grand écran : tableau ---------- */
.ct-tableau {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid rgba(22, 35, 58, 0.18);
    border-radius: 0.5rem;
    background: #fff;
    overflow: hidden;
}

.ct-tableau thead {
    background: #F7F3EC;
    color: #55617A;
}

.ct-tableau th {
    padding: 0.85rem 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ct-tableau td {
    padding: 1rem;
    border-top: 1px solid rgba(22, 35, 58, 0.1);
    vertical-align: middle;
}

.ct-tableau tbody tr:hover { background: #FBFAF7; }

.ct-col-droite { text-align: right; }
.ct-col-centre { text-align: center; }

/* Le visuel garde ses proportions : un don n'est pas cadré comme un produit,
   le rogner couperait souvent le sujet. */
.ct-article-visuel {
    flex-shrink: 0;
    width: 4rem;
    height: 4rem;
}

.ct-article-visuel img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ct-article-sans-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 0.375rem;
    background: #F7F3EC;
    color: #C98A2C;
    font-size: 1.2rem;
}

/* ---------- Bas de page : 2 colonnes + 1 ---------- */
.ct-bas {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
    align-items: start;
}

@media (min-width: 768px) {
    .ct-bas { grid-template-columns: 2fr 1fr; }
}

.ct-bas-principal { min-width: 0; }

@media (min-width: 768px) {
    .ct-bas-recap {
        position: sticky;
        top: 1.5rem;
    }
}

.ct-recap-titre {
    margin: 0 0 1rem;
    color: #16233A;
    font-size: 1.1rem;
    font-weight: 700;
}

.ct-recap-sur {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: 1rem 0 0;
    color: #55617A;
    font-size: 0.82rem;
}

.ct-recap-moyens {
    display: flex;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 0.85rem;
    font-size: 1.6rem;
    color: #8A9AAB;
}

/* ---------- Poursuivre / vider ---------- */
.ct-pied {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .ct-pied { flex-direction: row; }
}

.ct-pied-lien {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #1B3A5C;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.ct-pied-lien:hover { text-decoration: underline; }

.ct-pied-vider {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #b91c1c;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.ct-pied-vider:hover { text-decoration: underline; }

/* ==========================================================
   ALIGNEMENT DE LA LIGNE DU TABLEAU

   Tout est centré sur la hauteur de la rangée, que la vignette de 4rem
   impose. Le titre et le montant partagent alors la même ligne optique, quel
   que soit le nombre de lignes de la colonne « Détails ».

   Le titre avait par ailleurs besoin d'une règle propre : celle qui existait
   est limitée à « .ct-article », absent de ce tableau. Le <h3> retombait donc
   sur custom-fonts.css — grande taille et margin-bottom: 1rem — ce qui le
   décalait vers le bas.
   ========================================================== */
.ct-carte-produit .ct-article-titre,
.ct-carte .ct-article-titre {
    margin: 0;
    color: #16233A;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
}

.ct-carte-produit .ct-article-option,
.ct-carte .ct-article-option {
    margin: 0.15rem 0 0;
    color: #55617A;
    font-size: 0.78rem;
    line-height: 1.35;
}

.ct-tableau td {
    vertical-align: middle;
}

/* Le texte se centre à côté de la vignette plutôt que de se caler sur son
   bord supérieur. */
.ct-tableau .ct-carte-produit {
    align-items: center;
}

.ct-tableau .ct-article-prix {
    display: table-caption;
    margin: 0;
    color: #1B3A5C;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
}

.ct-tableau .ct-article-detail {
    margin: 0;
    line-height: 1.35;
}
