/* ==========================================
    GRILLE CONTACT
========================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2em;
    margin-bottom: 3em;
}

.contact h2 {
    text-align: left;
    font-family: var(--font_family_1);
    font-size: calc(var(--taille_font) * 2.8);
    color: var(--color1);
    margin-bottom: 0.2em;
}

/* ==========================================
    CARTE PLAN
========================================== */
.plan {
    background: var(--color0);
    border-radius: var(--border-radius);
    border: 1px solid rgba(var(--color4_rgb), 0.06);
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
}

.plan:hover {
    box-shadow: 0 8px 40px rgba(var(--color4_rgb), 0.08);
    border-color: rgba(var(--color1_rgb), 0.1);
}

.plan iframe {
    display: block;
    width: 100%;
    height: 100%;
}

/* ==========================================
    CARTE COORDONNÉES
========================================== */
.contact .coordonnees {
    background: var(--color0);
    padding: 2em;
    border-radius: var(--border-radius);
    border: 1px solid rgba(var(--color4_rgb), 0.06);
    position: relative;
    transition: all 0.4s ease;
}

.contact .coordonnees:hover {
    box-shadow: 0 8px 40px rgba(var(--color4_rgb), 0.08);
    border-color: rgba(var(--color1_rgb), 0.1);
}

/* Barre latérale animée */
.contact .coordonnees::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(to bottom, var(--color1), var(--color2));
    transition: height 0.5s ease;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.contact .coordonnees:hover::before {
    height: 100%;
}

/* Adresse */
.contact .coordonnees address {
    font-style: normal;
    margin-bottom: 1em;
    line-height: 1.8;
}

.contact .coordonnees address p {
    margin: 0 0 1em;
    padding: 0 0 0 2em;
    color: var(--color4);
    font-size: calc(var(--taille_font) * 0.95);
    text-align: left;
    position: relative;
}

.contact .coordonnees .adresse::before {
    position: absolute;
    left: 0;
    top: 0;
    content: '\f3c5';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--color2);
    font-size: 1.2em;
}

/* Téléphone */
.contact .coordonnees .tel {
    position: relative;
    text-align: left;
    padding-left: 2em;
    margin-top: 1em;
    transition: all 0.3s ease;
    color: var(--color4);
}

.contact .coordonnees .tel::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5em;
    height: 1.5em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D6A635' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: all 0.3s ease;
}

.contact .coordonnees .tel:hover::before {
    transform: translateY(-50%) scale(1.1);
}

/* Texte */
.contact .coordonnees .texte {
    font-family: var(--font_family_3);
    color: var(--color4);
}

/* ==========================================
    HORAIRES
========================================== */
.horaires {
    margin-top: 0;
}

.pied .horaires {
    margin-top: -1.7em;
}

.horaire-mention {
    display: none;
    margin-bottom: 0.8em;
    padding: 0.6em;
    background: rgba(var(--color1_rgb), 0.05);
    border-radius: var(--border-radius);
    text-align: center;
}

.horaires-label-closed {
    font-family: var(--font_family_2);
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.horaire-table {
    width: 100%;
    border-collapse: collapse;
}

.horaire-table tr {
    border-bottom: 1px solid rgba(var(--color4_rgb), 0.06);
    transition: background 0.3s ease;
}

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

.horaire-table tr:hover {
    background: rgba(var(--color2_rgb), 0.03);
}

.horaire-table tr[style*="font-weight:bold"] {
    background: rgba(var(--color1_rgb), 0.05);
}

.horaire-table td {
    padding: 0.2em 0.5em;
    font-family: var(--font_family_3);
    font-size: 0.95em;
    vertical-align: baseline;
}

.horaire-table td:first-child {
    font-weight: 600;
    color: var(--color4);
    font-family: var(--font_family_2);
}
.pied .horaire-table td:first-child {
    font-weight: 400;
    font-family: var(--font_family_3);
}

.tabb2 .horaire-table td:first-child,
.pied .horaire-table td:first-child {
    color: var(--color0);
}

.horaire-table td:last-child {
    text-align: right;
    color: var(--color1);
    font-weight: 500;
}

/* ==========================================
    FORMULAIRE DE CONTACT
========================================== */
.corps-contact {
    background: var(--color0);
    padding: 2.5em;
    border-radius: var(--border-radius);
    border: 1px solid rgba(var(--color4_rgb), 0.06);
    position: relative;
    transition: all 0.4s ease;
}

.corps-contact:hover {
    box-shadow: 0 8px 40px rgba(var(--color4_rgb), 0.08);
    border-color: rgba(var(--color1_rgb), 0.1);
}

.corps-contact h2 {
    font-family: var(--font_family_1);
    font-size: calc(var(--taille_font) * 2.8);
    font-weight: 400;
    color: var(--color1);
    margin-bottom: 1em;
    text-align: center;
}

.description-contact {
    text-align: center;
    color: rgba(var(--color4_rgb), 0.7);
    margin-bottom: 2em;
    font-family: var(--font_family_3);
}

/* ==========================================
    FORMULAIRE DE CONTACT
========================================== */
.corps-contact {
    background: var(--color0);
    width: 75%;
    margin: 0 auto 2em;
    padding: 2.5em;
    border-radius: var(--border-radius);
    border: 1px solid rgba(var(--color4_rgb), 0.06);
    position: relative;
    transition: all 0.4s ease;
}

.corps-contact:hover {
    box-shadow: 0 8px 40px rgba(var(--color4_rgb), 0.08);
    border-color: rgba(var(--color1_rgb), 0.1);
}

.corps-contact h2 {
    font-family: var(--font_family_1);
    font-size: calc(var(--taille_font) * 2.8);
    font-weight: 400;
    color: var(--color1);
    margin-bottom: 1em;
    text-align: center;
}

.description-contact {
    text-align: center;
    color: rgba(var(--color4_rgb), 0.7);
    margin-bottom: 2em;
    font-family: var(--font_family_3);
}

/* ==========================================
    STYLES DU FORMULAIRE - VERSION ÉPURÉE
========================================== */

/* Enlever padding conteneur champs */
.contact .formulaire .form-group label.col-md-4,
.form-horizontal .form-group label.col-md-4 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.contact .formulaire .form-group div.col-md-8,
.form-horizontal .form-group div.col-md-8 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Changement largeurs labels+champs - Cacher les labels */
.contact .formulaire .form-group .col-md-4,
.form-horizontal .form-group .col-md-4 {
    display: none;
}

.contact .formulaire .form-group div.col-md-8,
.form-horizontal .form-group div.col-md-8 {
    width: 100% !important;
}

/* Labels */
.contact .formulaire .form-group,
.form-horizontal .form-group {
    margin-bottom: 14px;
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.contact .formulaire .control-label,
.form-horizontal .control-label {
    display: none;
    text-align: left ;
    font-weight: normal;
}

/* Style des champs - Bordures visibles mais fines */
.contact .formulaire .form-group .form-control,
.form-horizontal .form-group .form-control {
    background: var(--color0);
    border: 1px solid #c8c8c8;
    box-shadow: none;
    border-radius: 0;
    font-size: inherit;
    font-family: var(--font_family_3);
    transition: all 0.3s ease;
}

/* Focus avec contraste fort */
.contact .formulaire .form-group .form-control:focus,
.form-horizontal .form-group .form-control:focus {
    outline: none;
    border-color: var(--color1);
    background: rgba(var(--color2_rgb), 0.03);
    box-shadow: 0 0 0 1px var(--color1);
}

/* Hover avec contraste */
.contact .formulaire .form-group .form-control:hover,
.form-horizontal .form-group .form-control:hover {
    border-color: var(--color2);
    background: rgba(var(--color2_rgb), 0.02);
}

/* Textarea */
.contact .formulaire .form-group textarea.form-control,
.form-horizontal textarea.form-control {
    height: 104px;
    position: static;
    width: 100% !important;
    resize: vertical;
    padding: 12px;
}

/* Input text */
.contact .formulaire .form-group input.form-control,
.form-horizontal input.form-control {
    height: 48px;
    line-height: 1;
    line-height: 48px \9;
    padding: 0 12px;
}

/* Select */
.contact .formulaire .form-group select.form-control,
.form-horizontal select.form-control {
    height: 48px;
    line-height: 48px;
    padding: 5px;
}

/* Placeholder avec style subtil */
.form-control::placeholder {
    color: rgba(var(--color4_rgb), 0.5);
    font-style: italic;
}

/* ==========================================
    CAPTCHA + BOUTON
========================================== */
.contact .formulaire .form-group input[name="captcha"] {
    width: 41% !important;
    height: 48px !important;
    display: inline-block;
    float: none !important;
    margin-right: 2% !important;
    vertical-align: top;
}

.contact .formulaire .form-group input[name="captcha"]+a {
    width: 25%;
    display: inline-block;
    margin-right: 2%;
    vertical-align: top;
}

.contact .formulaire .form-group #captcha {
    width: 100%;
    height: 48px !important;
    border-radius: 0;
    padding: 0;
    border: 1px solid #c8c8c8;
}

/* ==========================================
    TEXTE REQUIRED ET RGPD
========================================== */
.contact .formulaire .form-actions,
.form-horizontal .form-actions {
    font-size: 12px;
    color: var(--color1);
    font-style: italic;
    padding: 0 !important;
}

.label-rgpd {
    font-size: 0.85em;
    color: rgba(var(--color4_rgb), 0.6);
    line-height: 1.6;
}

.label-rgpd a {
    color: var(--color1);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.label-rgpd a:hover {
    color: var(--color2);
}

/* Style pour le texte RGPD */
.form-group .label-rgpd p {
    margin: 0;
    text-align: justify;
}

/* ==========================================
    RESPONSIVE FORMULAIRE
========================================== */
@media (max-width: 768px) {
    .corps-contact {
        padding: 1.5em;
    }

    .contact .formulaire .form-group input[name="captcha"] {
        width: 100% !important;
        margin-bottom: 10px !important;
    }

    .contact .formulaire .form-group input[name="captcha"]+a {
        width: 48%;
        margin-right: 4%;
    }

    .contact .formulaire .form-group input.btn-primary {
        width: 48% !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 480px) {

    .contact .formulaire .form-group input[name="captcha"]+a,
    .contact .formulaire .form-group input.btn-primary {
        width: 100% !important;
        display: block !important;
        margin: 10px 0 !important;
    }
}

/* ==========================================
    RESPONSIVE
========================================== */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .plan iframe {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .corps {
        padding: 1em;
    }

    .corps-contact {
        padding: 1.5em;
    }

    .form-horizontal .col-md-4,
    .form-horizontal .col-md-8,
    .form-horizontal .col-md-12 {
        padding: 0;
    }

    .btn-primary {
        width: 100%;
        padding: 1em;
    }
}

/* ==========================================
    ANIMATIONS
========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-grid>*,
.corps-contact {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.plan {
    animation-delay: 0.1s;
}

.coordonnees {
    animation-delay: 0.2s;
}

.corps-contact {
    animation-delay: 0.3s;
}