/* ============================================
   PAGE PROMOTIONS - Offres & Promotions
   Auto-École Moderne AEM77
   ============================================ */

/* --------------------------------------------
   CONTENEUR PRINCIPAL
   -------------------------------------------- */

.promo_conteneur {
    max-width: 1500px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* --------------------------------------------
   INTRODUCTION
   -------------------------------------------- */

.promo_introduction {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, #f8fbff 0%, #fff5f0 100%);
    border-radius: 16px;
    border: 1px solid #e8e8e8;
}

.promo_introduction::before,
.promo_introduction::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    margin: 0 auto;
    border-radius: 2px;
}

.promo_introduction::before {
    background: linear-gradient(90deg, var(--couleur-principale, #2c5aa0), var(--couleur-secondaire, #e74c3c));
}

.promo_introduction::after {
    background: linear-gradient(90deg, var(--couleur-secondaire, #e74c3c), var(--couleur-principale, #2c5aa0));
}

.promo_introduction::before {
    margin-bottom: 30px;
}

.promo_introduction::after {
    margin-top: 30px;
}

.promo_introduction p {
    margin: 0 0 15px 0;
    color: #555;
    font-size: 16px;
    line-height: 1.7;
}

.promo_introduction p:last-child {
    margin-bottom: 0;
}

.promo_intro_accroche {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
}

.promo_intro_cta {
    font-weight: 500;
    color: var(--couleur-principale, #2c5aa0);
    font-style: italic;
}

/* --------------------------------------------
   GRILLE DES OFFRES
   -------------------------------------------- */

.promo_liste {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 25px;
}

/* --------------------------------------------
   CARTE OFFRE - 500px
   -------------------------------------------- */

.promo_carte {
    flex: 1 1 calc((100% - 40px) / 3);
    min-width: 300px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid var(--couleur-secondaire);
}

.promo_carte_placeholder {
    visibility: hidden;
    height: 0;
    min-height: 0;
    padding: 0;
    margin: 0;
    border: none;
    box-shadow: none;
}

.promo_carte_inner {
    padding: 25px 25px;
}

/* Image */
.promo_carte_image {
    text-align: center;
}

.promo_carte_image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
}

/* Titres */
.promo_carte_titres {
    text-align: center;
    margin-bottom: 20px;
}

.promo_carte_titres h2 {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.promo_carte_titres h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--couleur-section, #5a6a7a);
    margin: 0;
}

/* --------------------------------------------
   SECTIONS DE LA CARTE
   -------------------------------------------- */

.promo_section {
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 8px;
}

.promo_section_titre {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Section Avantages - Fond blanc, couleurs neutres */
.promo_section_avantages {
    background: #ffffff;
    border: 1px solid #e0e0e0;
}

.promo_section_avantages .promo_section_titre {
    color: #555;
}

.promo_liste_avantages {
    list-style: none;
    margin: 0;
    padding: 0;
}

.promo_liste_avantages li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 4px 0;
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}

.promo_liste_avantages li:not(:last-child) {
    border-bottom: none;
}

.promo_check {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: #4caf50;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

/* Section Date - Fond gris */
.promo_section_date {
    background: #f5f5f5;
}

.promo_section_date .promo_section_titre {
    color: #555;
}

.promo_section_date p {
    margin: 0;
    font-size: 14px;
    color: #555;
}

/* Section Conditions - Fond orange */
.promo_section_conditions {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
}

.promo_section_conditions .promo_section_titre {
    color: #e65100;
}

.promo_liste_conditions {
    list-style: none;
    margin: 0;
    padding: 0;
}

.promo_liste_conditions li {
    position: relative;
    padding: 0 0 6px 14px;
    font-size: 13px;
    color: #5d4037;
    line-height: 1.5;
}

.promo_liste_conditions li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ff9800;
    font-weight: bold;
}

/* Toggle conditions supplémentaires (CSS checkbox hack) */
.promo_conditions_wrapper {
    display: flex;
    flex-direction: column;
}

.promo_toggle_input {
    display: none;
}

.promo_conditions_extra {
    display: none;
    order: 2;
}

.promo_toggle_label {
    order: 3;
    display: block;
    margin-top: 10px;
    padding: 8px;
    background: transparent;
    border: 1px dashed #ff9800;
    border-radius: 6px;
    color: #e65100;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
}

.promo_toggle_label:hover {
    background: rgba(255, 152, 0, 0.1);
}

.promo_toggle_less {
    display: none;
}

/* État ouvert */
.promo_toggle_input:checked ~ .promo_conditions_extra {
    display: block;
}

.promo_toggle_input:checked ~ .promo_toggle_label .promo_toggle_more {
    display: none;
}

.promo_toggle_input:checked ~ .promo_toggle_label .promo_toggle_less {
    display: inline;
}

/* Section Code promo - Fond gris-bleu neutre */
.promo_section_code {
    background: #e8f4f8;
    text-align: center;
}

.promo_section_code .promo_section_titre {
    color: #37474f;
    justify-content: center;
}

.promo_code_valeur {
    display: inline-block;
    padding: 12px 30px;
    background: #fff;
    border: 2px dashed #546e7a;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #37474f;
}

/* --------------------------------------------
   INFORMATIONS IMPORTANTES
   -------------------------------------------- */

.promo_infos_importantes {
    margin-top: 30px;
    padding: 30px;
    background: #f5f5f5;
    border-radius: 12px;
    border-left: 4px solid #78909c;
}

.promo_infos_importantes h2 {
    font-size: 18px;
    font-weight: 600;
    color: #455a64;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.promo_infos_importantes h2::before {
    content: "ℹ️";
}

.promo_infos_importantes ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.promo_infos_importantes li {
    font-size: 14px;
    color: #546e7a;
    line-height: 1.7;
    text-align: justify;
    padding-left: 15px;
    position: relative;
}

.promo_infos_importantes li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #78909c;
}

.promo_infos_importantes li:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------
   RESPONSIVE - MOBILE (480px)
   -------------------------------------------- */

@media (max-width: 480px) {
    .promo_liste {
        margin-top: 10px;
    }

    .promo_carte_inner {
        padding: 25px 20px;
    }

    .promo_code_valeur {
        font-size: 18px;
        padding: 10px 20px;
    }
    
    .promo_infos_importantes {
        margin-top: 10px;
    }

}
