/**
 * style.css — Formulaire de commande de numérisation
 * ---------------------------------------------------
 * Thème orange #ED9C00, police Lato.
 * Conçu pour iframe Bootstrap 5.
 *
 * Table des matières :
 *   1.  Variables & Reset
 *   2.  Barre supérieure fixe
 *   3.  Badge prix (quart de cercle)
 *   4.  Badge durée
 *   5.  Bouton Détails
 *   6.  Panneau Détails (slide-in)
 *   7.  Barre de progression
 *   8.  Conteneur principal
 *   9.  Carte média (étape 1)
 *   10. Section configuration (étape 2)
 *   11. Spinners quantité
 *   12. Options (toggles + quantités)
 *   13. Étape "ajouter un autre support"
 *   14. Formulaire contact
 *   15. Confirmation
 *   16. Tableau récapitulatif
 *   17. Boutons
 *   18. Animations & transitions
 *   19. Responsive
 */

/* ====================================================================
   1. VARIABLES & RESET
   ==================================================================== */

:root {
    --orange:        #ED9C00;
    --orange-dark:   #c8840a;
    --orange-light:  #fff3cd;
    --orange-bg:     #fffaf0;
    --teal:          #1a8a8a;
    --teal-dark:     #156f6f;
    --teal-light:    #e0f4f4;
    --indigo:        #4f46e5;
    --indigo-dark:   #3730a3;
    --indigo-light:  #ede9fe;
    --text-dark:     #1a1a1a;
    --text-mid:      #555;
    --text-light:    #888;
    --border:        #e0e0e0;
    --white:         #ffffff;
    --topbar-h:      64px;
    --radius:        12px;
    --shadow:        0 2px 12px rgba(0,0,0,.10);
    --shadow-lg:     0 8px 32px rgba(0,0,0,.18);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--orange-bg);
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    min-height: 100vh;
}

/* ====================================================================
   2. BARRE SUPÉRIEURE FIXE
   ==================================================================== */

.top-bar {
    position: fixed;
    top: 0; 
    left: 0; 
    right: 0;
    height: var(--topbar-h);
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,.10);
    z-index: 1000;
}

.top-bar__inner {
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: stretch;
}

.top-bar__left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.top-bar__center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}


.top-bar__title {
    /*font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-light);*/
}

.top-bar__title a {
    color: var(--orange);
    text-decoration:underline;
    text-transform:none;
}


.top-bar__right {
    display: flex;
    align-items: center;
    padding-right: 16px;
    flex-shrink: 0;
}

/* ====================================================================
   3. BADGE PRIX (quart de cercle orange, coin haut-gauche)
   ==================================================================== */

.price-badge {
    width: var(--topbar-h);
    height: var(--topbar-h);
    background: var(--orange);
    border-radius: 50%;
    display: flex;
    padding: 10px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.price-badge__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}

.price-badge__label {
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255,255,255,.80);
    letter-spacing: .06em;
}

.price-badge__value {
    font-size: 1rem;
    font-weight: 900;
    color: var(--white);
    white-space: nowrap;
}

/* ====================================================================
   4. BADGE DURÉE
   ==================================================================== */

.duree-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 12px;
    background: var(--orange-light);
    border: 1.5px solid var(--orange);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: .80rem;
    font-weight: 700;
    color: var(--orange-dark);
    white-space: nowrap;
}

.duree-badge .bi {
    font-size: .85rem;
}

/* ====================================================================
   4b. BADGE POIDS FICHIERS
   Même gabarit que .duree-badge, couleur teal pour le distinguer.
   Affiché en Mo si < 1 Go, en Go sinon (calcul JS via formatPoids).
   ==================================================================== */

.poids-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 8px;
    background: var(--teal-light);
    border: 1.5px solid var(--teal);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: .80rem;
    font-weight: 700;
    color: var(--teal-dark);
    white-space: nowrap;
}

.poids-badge .bi {
    font-size: .85rem;
}

/* ====================================================================
   4c. BADGE MÉTRAGE BOBINES
   Même gabarit que .poids-badge, couleur indigo pour le distinguer.
   Masqué par défaut (.metres-badge--hidden) ; affiché dès qu'il y a
   au moins une bobine de film dans la commande.
   ==================================================================== */

.metres-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 8px;
    background: var(--indigo-light);
    border: 1.5px solid var(--indigo);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: .80rem;
    font-weight: 700;
    color: var(--indigo-dark);
    white-space: nowrap;
    transition: opacity .3s, transform .3s;
}

.metres-badge .bi {
    font-size: .85rem;
}

.metres-badge--hidden {
    display: none;
}

/* ====================================================================
   5. BOUTON DÉTAILS
   ==================================================================== */

.btn-details {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--teal);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 7px 16px;
    font-family: 'Lato', sans-serif;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}

.btn-details:hover {
    background: var(--teal-dark);
}

.btn-details .bi {
    font-size: 1rem;
}

/* ====================================================================
   6. PANNEAU DÉTAILS (slide-in depuis la droite)
   ==================================================================== */

.details-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 1090;
}

.details-overlay.active {
    display: block;
}

.details-panel {
    position: fixed;
    top: 0;
    right: -440px;        /* masqué par défaut */
    width: 420px;
    max-width: 100vw;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    transition: right .3s cubic-bezier(.4,0,.2,1);
    overflow: hidden;
}

.details-panel.open {
    right: 0;
}

/* ====================================================================
   7. POPUP CONDITIONS GÉNÉRALES (modale Bootstrap)
   ==================================================================== */
/* z-index relevé au-dessus de .details-panel (1100) / .details-overlay
   (1090) par précaution, en plus de son déplacement en enfant direct de
   <body> (cf. le script inline juste après sa balise dans
   render_step_contact()) qui règle la cause réelle du bug (contexte
   d'empilement CSS piégé par un conteneur parent). */
#vdgCgvModal {
    z-index: 1200;
}
.modal-backdrop {
    z-index: 1190;
}

.details-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--orange);
    color: var(--white);
    flex-shrink: 0;
}

.details-panel__header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.details-panel__close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.details-panel__body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

/* ====================================================================
   7. BARRE DE PROGRESSION
   ==================================================================== */

.progress-bar-wrap {
    margin-bottom: 24px;
}

.progress-bar-custom {
    height: 5px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.progress-bar-fill {
    height: 100%;
    background: var(--orange);
    border-radius: 3px;
    transition: width .4s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
}

.progress-steps span {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--border);
    transition: color .3s;
}

.progress-steps span.active {
    color: var(--orange);
}

/* ====================================================================
   8. CONTENEUR PRINCIPAL
   ==================================================================== */

.form-container {
    padding-top: calc(var(--topbar-h) + 24px);
    padding-bottom: 40px;
    max-width: 760px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.step-title {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.step-subtitle {
    font-size: .90rem;
    color: var(--text-mid);
    margin-bottom: 24px;
}

.step-title__tooltip-icon {
    font-size: .85rem;
    color: var(--orange);
    cursor: pointer;
    margin-left: 6px;
    vertical-align: middle;
}

.step-title__tooltip-icon:hover,
.step-title__tooltip-icon:focus {
    color: var(--orange-dark);
    outline: none;
}

/* Tooltip d'intro : contenu plus long (HTML multi-lignes) → on élargit la bulle */
.tooltip-intro .tooltip-inner {
    max-width: 320px;
    text-align: left;
}

/* ====================================================================
   9. CARTES MÉDIA (étape 1)
   ==================================================================== */

.media-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.media-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, transform .15s;
    position: relative;
    user-select: none;
}

.media-card:hover {
    border-color: var(--orange);
    box-shadow: 0 4px 16px rgba(237,156,0,.18);
    transform: translateY(-2px);
}

/* Support déjà configuré : bordure orange pleine + badge ✓ */
.media-card--done {
    border-color: var(--orange);
    background: var(--orange-light);
}

.media-card--done::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 12px;
    background: var(--orange);
    color: var(--white);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .80rem;
    font-weight: 900;
    line-height: 22px;
}

/* Badge "En cours" sur la carte du support actuel */
.media-card--current {
    border-color: var(--teal);
    background: var(--teal-light);
}

.media-card--current::after {
    content: '→';
    position: absolute;
    top: 10px;
    right: 12px;
    background: var(--teal);
    color: var(--white);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .80rem;
    font-weight: 900;
    line-height: 22px;
}

.media-card__icon {
    margin-bottom: 12px;
    line-height: 1;
}

.media-card__label {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

/* Bouton submit caché sous chaque carte */
.media-card__btn {
    display: none;
}

/* ====================================================================
   10. SECTION CONFIGURATION (étape 2)
   ==================================================================== */

.config-section {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.config-section__header {
    background: var(--orange);
    color: var(--white);
    padding: 12px 20px;
    font-size: .95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.config-section__header .bi {
    font-size: 1.1rem;
}

/* Tableau des durées/formats */
.config-table {
    width: 100%;
    border-collapse: collapse;
}

.config-table th {
    background: #f8f8f8;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-light);
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.config-table th:last-child,
.config-table td:last-child {
    text-align: right;
    padding-right: 20px;
}

.config-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: .92rem;
    vertical-align: middle;
}

.config-table tr:last-child td {
    border-bottom: none;
}

.config-table__label {
    font-weight: 700;
    color: var(--text-dark);
}

.config-table__price {
    color: var(--orange-dark);
    font-weight: 700;
    font-size: .88rem;
    white-space: nowrap;
}

/* ====================================================================
   11. SPINNERS QUANTITÉ (- N +)
   ==================================================================== */

.qty-spinner {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
}

.qty-btn {
    background: #f5f5f5;
    border: none;
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-mid);
    transition: background .15s;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qty-btn:hover {
    background: var(--orange-light);
    color: var(--orange-dark);
}

.qty-input {
    width: 44px;
    height: 32px;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    text-align: center;
    font-family: 'Lato', sans-serif;
    font-size: .92rem;
    font-weight: 700;
    color: var(--text-dark);
    background: var(--white);
    outline: none;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ====================================================================
   12. OPTIONS (toggles + quantités)
   ==================================================================== */

.options-section {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.options-section__header {
    background: var(--teal);
    color: var(--white);
    padding: 12px 20px;
    font-size: .95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.option-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    gap: 12px;
}

.option-row:last-child {
    border-bottom: none;
}

.option-row__label {
    flex: 1;
    font-size: .90rem;
    color: var(--text-dark);
}

.option-row__price {
    font-size: .85rem;
    font-weight: 700;
    color: var(--orange-dark);
    white-space: nowrap;
    min-width: 90px;
    text-align: right;
}

.option-row__control {
    flex-shrink: 0;
}

/* Toggle switch custom (option oui/non) */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 24px;
    cursor: pointer;
    transition: background .2s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: var(--white);
    border-radius: 50%;
    transition: transform .2s;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--orange);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(18px);
}

/* Spinner pour les options de type "quantité" */
.opt-quantity-spinner {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
}

/* ====================================================================
   13. ÉTAPE "AJOUTER UN AUTRE SUPPORT"
   ==================================================================== */

.add-more-section {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 20px;
}

.add-more-section h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

/* Résumé des supports déjà configurés */
.configured-summary {
    margin-bottom: 24px;
}

.configured-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--orange-light);
    border: 1.5px solid var(--orange);
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: .90rem;
}

.configured-item__label {
    font-weight: 700;
    color: var(--text-dark);
}

.configured-item__price {
    font-weight: 700;
    color: var(--orange-dark);
}

/* Grille de supports disponibles (supports restants) */
.available-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.available-card {
    background: #f9f9f9;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, transform .15s;
    font-size: .88rem;
    font-weight: 700;
    color: var(--text-dark);
    gap: 8px;
}

.available-card:hover {
    border-color: var(--orange);
    transform: translateY(-2px);
}

/* ====================================================================
   14. FORMULAIRE CONTACT
   ==================================================================== */

.contact-form-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 20px;
}

.contact-form-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.contact-form-card .subtitle {
    font-size: .85rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.form-label-custom {
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-mid);
    margin-bottom: 5px;
    display: block;
}

.form-control-custom {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    font-family: 'Lato', sans-serif;
    font-size: .92rem;
    color: var(--text-dark);
    background: var(--white);
    transition: border-color .2s;
    outline: none;
}

.form-control-custom:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(237,156,0,.15);
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.form-row-1 {
    margin-bottom: 14px;
}

/* Mini-récap commande dans le contact */
.order-mini-summary {
    background: var(--orange-light);
    border: 1.5px solid var(--orange);
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 20px;
    font-size: .88rem;
}

.order-mini-summary__title {
    font-weight: 700;
    color: var(--orange-dark);
    margin-bottom: 8px;
    font-size: .90rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.order-mini-summary__line {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    color: var(--text-mid);
}

.order-mini-summary__total {
    display: flex;
    justify-content: space-between;
    padding-top: 8px;
    margin-top: 8px;
    border-top: 1px solid var(--orange);
    font-weight: 900;
    color: var(--text-dark);
    font-size: .95rem;
}

/* ====================================================================
   15. PAGE DE CONFIRMATION
   ==================================================================== */

.confirm-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 36px 24px;
    text-align: center;
    margin-bottom: 20px;
}

.confirm-icon {
    width: 72px;
    height: 72px;
    background: var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--white);
    animation: confirm-pop .5s cubic-bezier(.4,0,.2,1) both;
}

.confirm-card h2 {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.confirm-card p {
    font-size: .92rem;
    color: var(--text-mid);
    margin-bottom: 0;
}

/* ====================================================================
   16. TABLEAU RÉCAPITULATIF (panneau Détails)
   ==================================================================== */

.est-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
}

.est-table thead th {
    background: var(--orange);
    color: var(--white);
    padding: 9px 10px;
    text-align: left;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.est-table thead th:last-child {
    text-align: right;
}

/* En-tête de groupe support */
.est-table .media-header td {
    background: var(--teal);
    color: var(--white);
    font-weight: 700;
    font-size: .82rem;
    padding: 7px 10px;
}

.est-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.est-table tr:last-child td {
    border-bottom: none;
}

.est-table .price-cell {
    text-align: right;
    font-weight: 700;
    color: var(--orange-dark);
    white-space: nowrap;
}

.est-table .subtotal-row td {
    background: var(--orange-light);
    font-weight: 700;
    border-top: 1.5px solid var(--orange);
}

.est-table .total-row td {
    background: var(--orange);
    color: var(--white);
    font-weight: 900;
    font-size: .95rem;
    border-top: 2px solid var(--orange-dark);
}

.est-empty {
    text-align: center;
    color: var(--text-light);
    font-size: .88rem;
    padding: 24px;
}

/* Ligne "Minimum de facturation" dans le tableau détails */
.est-table .est-table__minimum td {
    background: #fff8e1;
    color: var(--orange-dark);
    font-size: .82rem;
    font-style: italic;
    border-top: 1px dashed var(--orange);
    border-bottom: 1px dashed var(--orange);
}

.est-table .est-table__minimum td:last-child {
    font-style: normal;
    font-weight: 700;
}

/* Ligne récapitulative du palier tarifaire (ex: bobines) */
.est-table .est-table__tier-info td {
    background: var(--teal-light);
    color: var(--teal-dark);
    font-size: .80rem;
    border-top: 1px dashed var(--teal);
    border-bottom: 1px dashed var(--teal);
    padding-top: 5px;
    padding-bottom: 5px;
}

/* Bouton de suppression d'une ligne dans le tableau détails */
.est-delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: .70rem;
    line-height: 1;
    color: var(--text-light);
    cursor: pointer;
    margin-left: 6px;
    padding: 0;
    vertical-align: middle;
    transition: background .15s, color .15s, border-color .15s;
    flex-shrink: 0;
}

.est-delete-btn:hover {
    background: #fee;
    border-color: #c0392b;
    color: #c0392b;
}

/* ====================================================================
   17. BOUTONS
   ==================================================================== */

/* Bouton principal orange */
.btn-primary-orange {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--orange);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 11px 24px;
    font-family: 'Lato', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .1s;
    text-decoration: none;
    width: 100%;
    text-align: center;
}

.btn-primary-orange:hover {
    background: var(--orange-dark);
    color: var(--white);
}

.btn-primary-orange:active {
    transform: scale(.98);
}

/* Bouton secondaire teal */
.btn-secondary-teal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--teal);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 11px 24px;
    font-family: 'Lato', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    text-decoration: none;
    width: 100%;
    text-align: center;
}

.btn-secondary-teal:hover {
    background: var(--teal-dark);
    color: var(--white);
}

/* Lien retour */
.btn-link-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--text-mid);
    font-family: 'Lato', sans-serif;
    font-size: .88rem;
    cursor: pointer;
    padding: 8px 0;
    text-decoration: underline;
    transition: color .2s;
}

.btn-link-back:hover {
    color: var(--orange-dark);
}

.btn-link-reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #c0392b;
    font-family: 'Lato', sans-serif;
    font-size: .88rem;
    cursor: pointer;
    padding: 8px 0;
    text-decoration: underline;
    transition: color .2s;
}

.btn-link-reset:hover {
    color: #922b21;
}

/* Bouton reset (petit, gris) */
.btn-reset {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    padding: 6px 14px;
    font-family: 'Lato', sans-serif;
    font-size: .80rem;
    color: var(--text-light);
    cursor: pointer;
    transition: border-color .2s, color .2s;
}

.btn-reset:hover {
    border-color: #aaa;
    color: var(--text-mid);
}


a.return_website {
    color: var(--orange);
    text-decoration:underline;
    text-transform:none;
    padding: 8px 0;
    transition: color .2s;
    font-family: 'Lato', sans-serif;
    font-size: .88rem;
    font-weight:600;
}
    
.bi-house {
    color: var(--orange);
    font-weight:600;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.action-buttons-row {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.action-buttons-row .btn-primary-orange {
    flex: 2;
    width: auto;
}

.action-buttons-row .btn-link-back {
    flex: 1;
    justify-content: center;
}

/* ====================================================================
   18. ANIMATIONS & TRANSITIONS
   ==================================================================== */

@keyframes confirm-pop {
    0%   { transform: scale(0); opacity: 0; }
    70%  { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes slide-up {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.step-animate {
    animation: slide-up .25s ease both;
}

/* Alert zone */
.alert-custom {
    border-radius: 8px;
    padding: 12px 16px;
    font-size: .90rem;
    font-weight: 700;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-custom--error {
    background: #fff0f0;
    color: #c0392b;
    border-left: 4px solid #c0392b;
}

.alert-custom--success {
    background: #f0fff4;
    color: #27ae60;
    border-left: 4px solid #27ae60;
}
/**/
@keyframes price-flash {
    /*0%, 100% { background: var(--orange);      border-radius: 0 0 var(--topbar-h) 0; }
    50%       { background: var(--orange-dark); border-radius: 50%; }*/
    
    0%, 10% { background: var(--orange);      border-radius: 50%; }
    50%     { background: var(--orange-dark); border-radius: 41%; }
}
.price-badge--flash { animation: price-flash .4s ease; }

/* ====================================================================
   19. RESPONSIVE
   ==================================================================== */

   /* ====================================================================
   GRILLE SUPPORTS — render_step_media_choice & render_step_add_more
   ==================================================================== */

    .media-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 16px;
        margin-bottom: 24px;
    }

    @media (max-width: 600px) {
        .media-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
        }
        .media-cards-grid {
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }

        .media-card {
            padding: 16px 10px;
        }

        .media-card__label {
            font-size: .82rem;
        }

        .form-row-2 {
            grid-template-columns: 1fr;
        }

        .details-panel {
            width: 100vw;
            right: -100vw;
        }

        .available-cards-grid {
            grid-template-columns: 1fr 1fr;
        }

        .top-bar__title {
            display: none;
        }

        /* Sur mobile, on masque les badges poids et métrage pour ne pas surcharger la barre */
        .poids-badge,
        .metres-badge {
            display: none;
        }

        .config-table th:nth-child(2),
        .config-table td:nth-child(2) {
            display: none;
        }
    }

    @media (max-width: 400px) {
        .media-grid {
            grid-template-columns: 1fr;
        }        
        .media-cards-grid {
            grid-template-columns: 1fr;
        }

        .price-badge__value {
            font-size: .88rem;
        }
    }



/* ====================================================================
   19. DIVERS
   ==================================================================== */


.config-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    gap: 16px;
}

.config-row__label {
    flex: 1;
    font-size: .90rem;
    color: var(--text-dark);
}

.opt-tooltip-icon {
    font-size: .80rem;
    color: var(--text-mid);
    cursor: pointer;
    margin-left: 4px;
}

.opt-tooltip-icon:hover,
.opt-tooltip-icon:focus {
    color: var(--orange-dark);
    outline: none;
}

.config-row__price {
    font-size: .85rem;
    font-weight: 700;
    color: var(--orange-dark);
    white-space: nowrap;
    flex-shrink: 0;
}
.config-row__price {
    margin-left: 8px;
}

.form-check-input {
    border-color: var(--orange);
}
.form-check-input:checked {
    background-color: var(--orange);
    border-color: var(--orange);
}
/* ====================================================================
   20. ÉTAPE RESTITUTION
   ==================================================================== */

.restitution-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color .2s;
}

.restitution-card--selected {
    border-color: var(--orange);
}

.restitution-card__header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    cursor: pointer;
    user-select: none;
    transition: background .15s;
}

.restitution-card__header:hover {
    background: var(--orange-bg);
}

.restitution-card__icon {
    flex-shrink: 0;
    width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.restitution-card__title {
    flex: 1;
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-dark);
}

.restitution-card__toggle-icon {
    font-size: 1.2rem;
    color: var(--text-light);
    flex-shrink: 0;
}

.restitution-card__toggle-icon .bi-check-circle-fill {
    color: var(--orange);
}

.text-orange {
    color: var(--orange) !important;
}

.restitution-card__detail {
    border-top: 1px solid var(--border);
    background: var(--orange-bg);
    padding: 10px 18px;
}

.restitution-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border-bottom: 1px solid #f0f0f0;
}

.restitution-row:last-child {
    border-bottom: none;
}

.restitution-row__label {
    flex: 1;
    font-size: .90rem;
    color: var(--text-dark);
}

.restitution-row__price {
    font-size: .85rem;
    font-weight: 700;
    color: var(--orange-dark);
    white-space: nowrap;
    min-width: 100px;
    text-align: right;
}

/* ====================================================================
   20bis. ÉTAPE MODE DE DÉPÔT
   ==================================================================== */

.depot-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.depot-grid__sep {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--text-mid);
    text-align: center;
}

.depot-option {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, transform .15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    user-select: none;
}

.depot-option:hover {
    border-color: var(--orange);
    box-shadow: 0 4px 16px rgba(237,156,0,.18);
    transform: translateY(-2px);
}

.depot-option--selected {
    border-color: var(--orange);
    background: var(--orange-bg);
}

.depot-option__icon {
    font-size: 2.4rem;
    color: var(--orange);
    margin-bottom: 14px;
    line-height: 1;
}

.depot-option__text {
    font-size: .90rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.depot-option__price {
    display: inline-block;
    font-size: .88rem;
    font-weight: 700;
    color: var(--orange-dark);
    background: var(--orange-bg);
    border-radius: 999px;
    padding: 3px 12px;
    margin-bottom: 10px;
}

.depot-option__link {
    font-size: .88rem;
    font-weight: 700;
    color: var(--orange-dark);
}

.depot-option__link .bi {
    margin-right: 4px;
}

.depot-partner-panel {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
    margin-bottom: 12px;
}

.depot-partner-panel__title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.depot-map {
    width: 100%;
    height: 320px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 14px;
    background: var(--orange-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3C/svg%3E") center no-repeat;
    position: relative;
}

.depot-map__loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    color: var(--text-mid);
    background: var(--orange-bg);
    border-radius: var(--radius);
}

.depot-partner-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 420px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.depot-partner-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    user-select: none;
}

.depot-partner-item:hover {
    background: var(--orange-bg);
}

.depot-partner-item--selected {
    border-color: var(--orange);
    background: var(--orange-bg);
}

.depot-partner-item__radio {
    font-size: 1.1rem;
    color: var(--text-light);
    flex-shrink: 0;
    margin-top: 2px;
}

.depot-partner-item__radio .bi-check-circle-fill {
    color: var(--orange);
}

.depot-partner-item__logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--white);
    border: 1px solid var(--border);
}

.depot-partner-item__logo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.3rem;
    background: var(--orange-bg);
}

.depot-partner-item__info {
    flex: 1;
    min-width: 0;
}

.depot-partner-item__nom {
    font-size: .92rem;
    font-weight: 700;
    color: var(--text-dark);
}

.depot-partner-item__activite {
    font-size: .80rem;
    color: var(--orange-dark);
    font-weight: 600;
    margin-top: 1px;
}

.depot-partner-item__row {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .82rem;
    color: var(--text-mid);
    margin-top: 4px;
}

.depot-partner-item__row .bi {
    color: var(--orange);
    flex-shrink: 0;
}

.depot-partner-item__row a {
    color: var(--text-mid);
    text-decoration: none;
    word-break: break-word;
}

.depot-partner-item__row a:hover {
    color: var(--orange-dark);
    text-decoration: underline;
}

.depot-partner-panel__hint {
    font-size: .85rem;
    color: var(--text-mid);
    margin: 0 0 10px;
}

.depot-map .leaflet-popup-content {
    font-size: .85rem;
}

.depot-map .depot-map-popup__logo {
    display: block;
    width: 100%;
    max-width: 140px;
    max-height: 70px;
    object-fit: contain;
    margin-bottom: 6px;
}

.depot-map .depot-map-popup__btn {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 10px;
    background: var(--orange);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: .80rem;
    font-weight: 700;
    cursor: pointer;
}

.depot-map .depot-map-popup__btn:hover {
    background: var(--orange-dark);
}

@media (max-width: 640px) {
    .depot-grid {
        grid-template-columns: 1fr;
    }
    .depot-grid__sep {
        margin: -4px 0;
    }
}

.dashed-card__subtitle {
    font-weight: 800;
}


.dashed-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 14px;
    overflow: hidden;
    transition: border-color .2s;
    padding: 14px 18px;
}

.dashed-card--selected {
    border-color: var(--orange);
}

/* ================================================================
   BLOC INFORMATIF RESTITUTION (étape restitution)
   ================================================================ */
.restitution-info-block {
    background: #fff8f0;
    border: 1px solid var(--orange);
    border-radius: var(--radius);
    padding: 10px 14px;
    margin: 5px 4px 0 4px;
}
.restitution-info-block p {
    margin: 0;
    font-size: .88rem;
    line-height: 1.5;
}
.restitution-info-block .restitution-dvd-info-block__price-detail {
    margin-top: 4px;
    color: #555;
}
.restitution-info-block .bi-info-circle {
    margin-right: 5px;
}
/* ================================================================
   BLOC INFORMATIF DVD (étape restitution)
   ================================================================ */
.dvd-info-block {
    background: #fff8f0;
    border: 1px solid var(--orange);
    border-radius: var(--radius);
    padding: 10px 14px;
}
.dvd-info-block p {
    margin: 0;
    font-size: .88rem;
    line-height: 1.5;
}
.dvd-info-block .dvd-info-block__price-detail {
    margin-top: 4px;
    color: #555;
}
.dvd-info-block .bi-info-circle {
    margin-right: 5px;
}

/* ================================================================
   CHOIX DVD MUTUELLEMENT EXCLUSIFS (radio) — étape restitution
   ================================================================ */
.dvd-choice-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 18px;
}

.dvd-choice-option {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 18px;
    transition: border-color .2s, opacity .2s;
    margin-bottom: 16px;
}

.dvd-choice-option .dvd-choice-option {
    border-top: solid 1px #333;
}



.dvd-choice-option--selected {
    border-color: var(--orange);
}

.dvd-choice-option:not(.dvd-choice-option--selected) .dvd-info-block,
.dvd-choice-option:not(.dvd-choice-option--selected) .restitution-row {
    opacity: .45;
    pointer-events: none;
}

.dvd-choice-option__radio {
    margin-bottom: 8px;
    padding-left: 1.75em;
}

.dvd-choice-option__radio .form-check-label {
    font-weight: 700;
    font-size: .90rem;
    color: var(--text-dark);
    cursor: pointer;
}

.dvd-choice-option__radio .form-check-input {
    cursor: pointer;
}

.dvd-choice-option .restitution-row {
    padding: 8px 0 0 0;
    border-bottom: none;
}
/*
.dvd-choice-option__radio .form-check-input[type=radio] {
    border-color: var(--orange) !important;
    border-width: 1px !important;
    border-style: solid !important;
}
.form-check-input[type=radio], #rest_dvd_choice_dvd_duree, #rest_dvd_choice_dvd_support {
    border-color: var(--orange) !important;
    border-width: 1px !important;
    border-style: solid !important;
    border: solid 1px var(--orange) !important;
}

*/