/* --- Variables et Reset --- */
* {
    box-sizing: border-box;
}

:root {
    --brand-color: var(--company-color, #2c3e50);
    --brand-light: #f0f4f8;
    --brand-success: #27ae60;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --bg-body: #f9f9f9;
    --danger: #d63031;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --radius: 10px;
}

.panier-wrapper {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 15px;
    color: var(--text-dark);
}

/* --- Header du Panier --- */
.panier-header {
    margin-bottom: 30px;
    border-bottom: 2px solid var(--brand-light);
    padding-bottom: 15px;
}

.panier-header h1 {
    font-size: 28px;
    margin: 0;
    color: var(--brand-color);
}

.panier-header h2 {
    font-size: 16px;
    margin: 5px 0 0;
    color: var(--text-light);
    font-weight: normal;
}

/* --- Cartes Communes --- */
.panier-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    border: 1px solid #edf2f7;
    overflow: hidden;
}

.card-header {
    background: #fcfcfc;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.ticket-label {
    font-size: 11px;
    font-weight: bold;
    color: var(--text-light);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- Badge de Prix (Header) --- */
.ticket-price-badge {
    margin-left: auto;
    margin-right: 15px;
    background: #f0f7f0;
    color: var(--brand-success);
    padding: 3px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95em;
    border: 1px solid var(--brand-success);
}

/* --- Style Spécifique Billet --- */
.billet-item {
    border-left: 5px solid var(--brand-color);
}

.card-content {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.col-main {
    flex: 2;
    min-width: 250px;
}

.col-side {
    flex: 1.2; /* Légèrement élargi pour les options */
    min-width: 240px;
    border-left: 1px solid #f0f0f0;
    padding-left: 20px;
}

.passenger-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    display: block;
    color: var(--brand-color);
}

.info-line {
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.info-line strong {
    color: var(--text-dark);
    margin-right: 8px;
    font-weight: 600;
    width: 60px;
}

/* --- Options Incluses (Nouveau Style Visuel) --- */
.options-wrapper {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.02);
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid var(--brand-color);
    transition: all 0.2s ease;
}

.option-item-row:hover {
    background: rgba(0, 0, 0, 0.04);
}

.option-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.option-icon {
    color: var(--brand-success);
    font-weight: bold;
    font-size: 14px;
}

.option-name {
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 500;
}

.option-price-tag {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-light);
    background: var(--white);
    padding: 2px 8px;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.no-option {
    color: #aaa;
    font-size: 12px;
    font-style: italic;
    padding: 15px;
    text-align: center;
    border: 1px dashed #ddd;
    border-radius: 6px;
}

/* --- Tags & Badges --- */
.tag {
    background: var(--brand-light);
    color: var(--brand-color);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.tag-gift {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* --- Style Spécifique Option Seule --- */
.option-seule-item {
    border-left: 5px solid #95a5a6;
}

.beneficiaire-box {
    margin-top: 15px;
    background: #fdfdfd;
    padding: 15px;
    border-radius: 8px;
    border: 1px dashed #cbd5e0;
}

.beneficiaire-box label {
    font-size: 11px;
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
    text-transform: uppercase;
}

.minimal-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: all 0.2s;
}

.minimal-input:focus {
    border-color: var(--brand-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

/* --- Suppression --- */
.btn-remove {
    color: var(--danger);
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    transition: transform 0.2s;
    line-height: 1;
}

.btn-remove:hover {
    transform: scale(1.2);
}

/* --- Footer & Total --- */
.panier-footer {
    background: var(--brand-color);
    color: black;
    padding: 30px;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.total-label {
    font-size: 14px;
    text-transform: uppercase;
    opacity: 0.9;
    letter-spacing: 1px;
}

.total-val {
    font-size: 32px;
    font-weight: 800;
    display: block;
    color: black;;
}

.btn-cta-main {
    background: var(--white);
    color: var(--brand-color);
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-cta-main:hover {
    background: var(--brand-light);
    transform: translateY(-2px);
}

/* --- Media Queries --- */
@media (max-width: 768px) {
    .col-side {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #f0f0f0;
        padding-top: 20px;
    }

    .panier-footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .btn-cta-main {
        width: 100%;
    }
}

/* --- Boutons d'Ajout (add-actions) --- */
.add-actions {
    display: flex;
    gap: 15px;
    margin: 25px 0;
    justify-content: flex-start;
}

.btn-add {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--brand-color);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border: 2px solid var(--brand-color);
    border-radius: 8px;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-add:hover {
    background: var(--brand-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Variante spécifique pour différencier les deux boutons si tu le souhaites */
/* Exemple : Le bouton Option un peu plus discret */
.btn-add[href*="option"] {
    border-color: #95a5a6;
    color: #7f8c8d;
}

.btn-add[href*="option"]:hover {
    background: #95a5a6;
    color: var(--white);
    border-color: #95a5a6;
}

/* Adaptabilité mobile */
@media (max-width: 767px) {
    .add-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-add {
        justify-content: center;
        width: 100%;
    }
}