/*
Theme Name: MrSEO-Enfold
Version: 1.0
Description: A child theme of Enfold
Author: MrSEO
Template: enfold
*/

@import url("../enfold/style.css");


/* ============================================
   CTA EasyStand - Styles personnalisés
   ============================================ */

/* ============================================
   CTA PRIMAIRE - Cyan rempli
   Pour : "Demander un devis", "Discutons de votre projet", etc.
   ============================================ */

/* Tous les états - cyan de base */
html body .easystand-cta-primary .avia-button,
html body .easystand-cta-primary .avia-button:focus,
html body .easystand-cta-primary .avia-button:active {
    background-color: #1DC1DE !important;
    background-image: none !important;
    color: #FFFFFF !important;
    border: 2px solid #1DC1DE !important;
    border-radius: 50px !important;
    padding: 18px 36px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    letter-spacing: 0.5px !important;
    text-transform: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(29, 193, 222, 0.25);
}

/* Hover - cyan foncé (surcharge le vert Deleage) */
html body .easystand-cta-primary .avia-button:hover {
    background-color: #17A5BE !important;
    border-color: #17A5BE !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 193, 222, 0.4) !important;
}

/* Neutraliser le span de fond Enfold (responsable du rollover vert) */
html body .easystand-cta-primary .avia_button_background,
html body .easystand-cta-primary .avia-button:hover .avia_button_background {
    background-color: transparent !important;
    background-image: none !important;
}

/* ============================================
   CTA SECONDAIRE - Bordure blanche fond transparent
   Pour : "Voir les configurations", "Demander l'accès au configurateur"
   ============================================ */

/* Tous les états - bordure blanche transparent */
html body .easystand-cta-secondary .avia-button,
html body .easystand-cta-secondary .avia-button:focus,
html body .easystand-cta-secondary .avia-button:active {
    background-color: transparent !important;
    background-image: none !important;
    color: #FFFFFF !important;
    border: 2px solid #FFFFFF !important;
    border-radius: 50px !important;
    padding: 18px 36px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    letter-spacing: 0.5px !important;
    text-transform: none !important;
    transition: all 0.3s ease !important;
}

/* Hover - fond blanc texte sombre (surcharge le vert Deleage) */
html body .easystand-cta-secondary .avia-button:hover {
    background-color: #FFFFFF !important;
    color: #1A1A1A !important;
    border-color: #FFFFFF !important;
    transform: translateY(-2px);
}

/* Neutraliser le span de fond Enfold */
html body .easystand-cta-secondary .avia_button_background,
html body .easystand-cta-secondary .avia-button:hover .avia_button_background {
    background-color: transparent !important;
    background-image: none !important;
}

/* ============================================
   Nettoyage - Masquer les icônes parasites
   ============================================ */

.easystand-cta-primary .avia_button_icon,
.easystand-cta-secondary .avia_button_icon,
.easystand-cta-primary .avia_iconbox_icon,
.easystand-cta-secondary .avia_iconbox_icon {
    display: none !important;
}

/* ============================================
   Couleur du texte dans le span titre
   ============================================ */

html body .easystand-cta-primary .avia_iconbox_title {
    color: #FFFFFF !important;
}

html body .easystand-cta-secondary .avia_iconbox_title {
    color: inherit !important;
}

/* ============================================
   Responsive mobile
   ============================================ */

@media (max-width: 768px) {
    html body .easystand-cta-primary .avia-button,
    html body .easystand-cta-secondary .avia-button {
        padding: 14px 24px !important;
        font-size: 15px !important;
        width: 100%;
        max-width: 320px;
    }
}

/* ============================================
   FAQ EasyStand - Accordéon modernisé (v2)
   Scopé uniquement à .easystand-faq
   ============================================ */

/* Conteneur global - pleine largeur */
html body .easystand-faq {
    max-width: 900px !important;
    margin: 0 auto !important;
    width: 100% !important;
}

/* Chaque section question - carte pleine largeur */
html body .easystand-faq .av_toggle_section {
    width: 100% !important;
    margin-bottom: 12px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background-color: #1A1A1A !important;
    border: 1px solid #2A2A2A !important;
    transition: all 0.3s ease !important;
}

/* Hover sur la section */
html body .easystand-faq .av_toggle_section:hover {
    border-color: #1DC1DE !important;
}

/* Le conteneur single_toggle doit être en display block pleine largeur */
html body .easystand-faq .single_toggle {
    width: 100% !important;
    display: block !important;
}

/* La question cliquable - layout flex pour aligner icône à droite */
html body .easystand-faq .toggler {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background-color: transparent !important;
    color: #FFFFFF !important;
    border: none !important;
    padding: 20px 24px !important;
    font-size: 17px !important;
    font-weight: 500 !important;
    letter-spacing: 0.2px !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: color 0.3s ease !important;
    gap: 20px !important;
}

/* Hover sur la question */
html body .easystand-faq .toggler:hover {
    color: #1DC1DE !important;
    background-color: transparent !important;
}

/* Question ouverte (active) */
html body .easystand-faq .toggler.activeTitle {
    background-color: #202020 !important;
    color: #1DC1DE !important;
    border-bottom: 1px solid #2A2A2A !important;
}

/* Conteneur icône +/- à droite - flex-shrink 0 pour éviter qu'il rétrécisse */
html body .easystand-faq .toggle_icon {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
    background: transparent !important;
    border: none !important;
    display: inline-block !important;
    margin-left: auto !important;
}

/* Barre horizontale de l'icône */
html body .easystand-faq .toggle_icon .hor_icon {
    background-color: #1DC1DE !important;
    width: 16px !important;
    height: 2px !important;
    position: absolute !important;
    top: 9px !important;
    left: 2px !important;
    border-radius: 1px !important;
    transition: background-color 0.3s ease !important;
}

/* Barre verticale de l'icône */
html body .easystand-faq .toggle_icon .vert_icon {
    background-color: #1DC1DE !important;
    width: 2px !important;
    height: 16px !important;
    position: absolute !important;
    top: 2px !important;
    left: 9px !important;
    border-radius: 1px !important;
    transition: transform 0.3s ease !important;
}

/* Quand ouvert, la barre verticale disparaît (+ devient -) */
html body .easystand-faq .activeTitle .toggle_icon .vert_icon {
    transform: scaleY(0) !important;
}

/* Contenu de la réponse */
html body .easystand-faq .toggle_wrap {
    width: 100% !important;
}

html body .easystand-faq .toggle_wrap .toggle_content {
    background-color: #151515 !important;
    color: #E0E0E0 !important;
    padding: 20px 24px !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
    border: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Paragraphes dans la réponse */
html body .easystand-faq .toggle_wrap .toggle_content p {
    color: #E0E0E0 !important;
    margin: 0 0 12px 0 !important;
}

html body .easystand-faq .toggle_wrap .toggle_content p:last-child {
    margin-bottom: 0 !important;
}

/* Forcer les paragraphes titres à prendre toute la largeur disponible */
html body .easystand-faq p.toggler {
    width: 100% !important;
}

/* Responsive mobile */
@media (max-width: 768px) {
    html body .easystand-faq .toggler {
        padding: 16px 18px !important;
        font-size: 15px !important;
        gap: 12px !important;
    }
    
    html body .easystand-faq .toggle_wrap .toggle_content {
        padding: 16px 18px !important;
        font-size: 15px !important;
    }
}

/* ============================================
   Bloc 2 colonnes Catégorie EasyStand
   Version simplifiée et robuste
   ============================================ */

html body .easystand-location-block {
    padding: 4rem 2rem !important;
    background-color: #FFFFFF !important;
}

/* Container flex principal */
html body .easystand-location-block .flex_column_table {
    display: flex !important;
    gap: 3rem !important;
    align-items: flex-start !important;
}

/* Colonne GAUCHE - Formulaire */
html body .easystand-location-block .flex_column.av_one_half.first {
    background: #FFFFFF !important;
    padding: 2rem !important;
    border-radius: 8px !important;
    border-top: 4px solid #1DC1DE !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06) !important;
    margin-right: 3rem !important;
}

html body .easystand-location-block .flex_column.av_one_half.first h2 {
    color: #1A1A1A !important;
    margin-top: 0 !important;
    margin-bottom: 0.5rem !important;
    font-size: 1.4rem !important;
    text-align: center !important;
}

html body .easystand-location-block .flex_column.av_one_half.first h3 {
    color: #1A1A1A !important;
    font-size: 1.1rem !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
}

html body .easystand-location-block .flex_column.av_one_half.first p {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    margin-bottom: 0.75rem !important;
}

/* Colonne DROITE - Contenu détails */
html body .easystand-location-block .flex_column.av_one_half:not(.first) {
    width: 48% !important;
    margin: 0 !important;
}

html body .easystand-location-block .flex_column.av_one_half:not(.first) h2 {
    color: #1A1A1A !important;
    font-size: 1.5rem !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
    border-bottom: 2px solid #1DC1DE !important;
    padding-bottom: 0.5rem !important;
}

html body .easystand-location-block .flex_column.av_one_half:not(.first) h2:first-child {
    margin-top: 0 !important;
}

html body .easystand-location-block .flex_column.av_one_half:not(.first) p {
    line-height: 1.7 !important;
    color: #333 !important;
    margin-bottom: 1.25rem !important;
}

html body .easystand-location-block .flex_column.av_one_half:not(.first) a {
    color: #1DC1DE !important;
    text-decoration: underline !important;
    font-weight: 500 !important;
}

/* ============================================
   FORMULAIRE CF7 - dans la colonne gauche
   ============================================ */

/* Force les flex_column internes du form en 2 colonnes 48% */
html body .easystand-location-block .wpcf7 .flex_column.av_one_half {
    display: inline-block !important;
    vertical-align: top !important;
    width: 48% !important;
    margin: 0 1% 0 1% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

html body .easystand-location-block .wpcf7 .flex_column.av_one_half.first {
    margin-left: 0 !important;
    position: static !important;
    background: transparent !important;
    border-top: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

html body .easystand-location-block .wpcf7 .flex_column.av_one_half:last-child,
html body .easystand-location-block .wpcf7 .flex_column.av_one_half:nth-child(2n) {
    margin-right: 0 !important;
}

html body .easystand-location-block .wpcf7 .flex_column p {
    margin: 0 0 0.5rem 0 !important;
}

/* Inputs et selects */
html body .easystand-location-block .wpcf7 input[type="text"],
html body .easystand-location-block .wpcf7 input[type="email"],
html body .easystand-location-block .wpcf7 input[type="tel"],
html body .easystand-location-block .wpcf7 input[type="date"],
html body .easystand-location-block .wpcf7 select,
html body .easystand-location-block .wpcf7 textarea {
    width: 100% !important;
    padding: 10px 14px !important;
    border: 1px solid #DDD !important;
    border-radius: 6px !important;
    font-size: 0.95rem !important;
    background: #FFF !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    margin: 0 !important;
}

html body .easystand-location-block .wpcf7 input:focus,
html body .easystand-location-block .wpcf7 select:focus,
html body .easystand-location-block .wpcf7 textarea:focus {
    border-color: #1DC1DE !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(29, 193, 222, 0.15) !important;
}

html body .easystand-location-block .wpcf7 textarea {
    min-height: 100px !important;
    resize: vertical !important;
}

/* Checkboxes RGPD et newsletter */
html body .easystand-location-block .wpcf7-acceptance,
html body .easystand-location-block .wpcf7-checkbox {
    display: block !important;
    margin-bottom: 1rem !important;
}

html body .easystand-location-block .wpcf7-list-item {
    margin-left: 0 !important;
}

html body .easystand-location-block .wpcf7-acceptance label,
html body .easystand-location-block .wpcf7-checkbox label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    font-size: 0.85rem !important;
    color: #666 !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
}

html body .easystand-location-block .wpcf7-acceptance input[type="checkbox"],
html body .easystand-location-block .wpcf7-checkbox input[type="checkbox"] {
    width: auto !important;
    margin-top: 3px !important;
    flex-shrink: 0 !important;
}

/* Bouton submit centré */
html body .easystand-location-block .wpcf7 input[type="submit"] {
    background-color: #1DC1DE !important;
    color: #FFFFFF !important;
    border: none !important;
    padding: 14px 32px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    display: block !important;
    margin: 1rem auto 0 auto !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(29, 193, 222, 0.25) !important;
    width: auto !important;
}

html body .easystand-location-block .wpcf7 input[type="submit"]:hover {
    background-color: #17A5BE !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(29, 193, 222, 0.4) !important;
}

/* Responsive mobile */
@media (max-width: 768px) {
    html body .easystand-location-block {
        padding: 2rem 1rem !important;
    }
    
    html body .easystand-location-block .flex_column_table {
        flex-direction: column !important;
        gap: 2rem !important;
    }
    
    html body .easystand-location-block .flex_column.av_one_half.first,
    html body .easystand-location-block .flex_column.av_one_half:not(.first) {
        width: 100% !important;
        position: static !important;
    }
    
    html body .easystand-location-block .wpcf7 .flex_column.av_one_half {
        width: 100% !important;
        margin: 0 0 0.5rem 0 !important;
    }
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ============================================
   Comparatif stands - tableau accessible scopé
   N'affecte QUE .comparatif-stands
   ============================================ */

.comparatif-stands {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 2rem 0;
}

.comparatif-stands table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
    table-layout: fixed;
}

.comparatif-stands caption {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* En-têtes de colonnes (T3 / HLINE / EasyStand) */
.comparatif-stands thead th {
    background-color: #1A1A1A;
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem;
    text-align: center;
    border: none;
}

/* En-têtes de lignes (libellés colonne gauche) */
.comparatif-stands tbody th[scope="row"] {
    text-align: right;
    font-weight: 500;
    color: #1A1A1A;
    padding: 1rem 1.5rem 1rem 0;
    width: 22%;
    vertical-align: middle;
    border-bottom: 1px solid #E5E5E5;
}

/* Cellules de données */
.comparatif-stands tbody td {
    text-align: center;
    padding: 1rem;
    color: #333;
    vertical-align: middle;
    border-bottom: 1px solid #E5E5E5;
    line-height: 1.4;
}

/* Alternance de fond pour lisibilité */
.comparatif-stands tbody tr:nth-child(even) td {
    background-color: #F7F7F7;
}

/* Colonne EasyStand mise en avant (cyan léger) 
.comparatif-stands tbody td:last-child {
    background-color: rgba(29, 193, 222, 0.06);
    font-weight: 500;
}

.comparatif-stands thead th:last-child {
    background-color: #1DC1DE;
}*/

/* Responsive : le wrapper scrolle, le tableau garde sa structure */
@media (max-width: 768px) {
    .comparatif-stands thead th,
    .comparatif-stands tbody th[scope="row"],
    .comparatif-stands tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
}