/* ==============================================
   PAGE CONTACT MODERNE - Chapter 91
   Créé le 12/01/2026
   Style moderne inspiré de la page Staff
=============================================== */

/* Masquer le header visuel (overlay-layer) UNIQUEMENT sur la page Contact */
.page-template-template-contact .header .overlay-layer {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.page-template-template-contact .intro-section {
    display: none !important;
}

/* Réduire l'espace du header au minimum */
.page-template-template-contact .header {
    min-height: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ===============================================
   SECTION PRINCIPALE
================================================ */
.contact-section-modern {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    overflow: hidden;
    min-height: 100vh;
}

/* Overlay avec effet de texture */
.contact-overlay-modern {
    position: relative;
    z-index: 2;
}

.contact-overlay-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 107, 0, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* ===============================================
   PARTICULES EN ARRIÈRE-PLAN
================================================ */
.contact-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.contact-particles .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 107, 0, 0.3);
    border-radius: 50%;
    animation: floatParticle 20s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.5);
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

/* ===============================================
   EN-TÊTE DE LA SECTION
================================================ */
.contact-header-modern {
    text-align: center;
    margin-bottom: 60px;
    margin-top: 100px;
    position: relative;
    z-index: 3;
}

.contact-title-modern {
    font-size: 56px;
    font-weight: 800;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 30px;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}



/* Ligne décorative sous le titre */
.contact-line-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.contact-line-modern span {
    height: 3px;
    background: #f16c20;
    border-radius: 3px;
    animation: lineGrow 2s ease-in-out infinite;
}

.contact-line-modern span:nth-child(1) {
    width: 60px;
    animation-delay: 0s;
}

.contact-line-modern span:nth-child(2) {
    width: 100px;
    background: #ff6b00;
}

.contact-line-modern span:nth-child(3) {
    width: 60px;
    animation-delay: 0.6s;
}

@keyframes lineGrow {
    0%, 100% {
        transform: scaleX(1);
        opacity: 1;
    }
    50% {
        transform: scaleX(0.7);
        opacity: 0.6;
    }
}

/* Introduction */
.contact-intro-modern {
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

.contact-intro-modern strong {
    color: #f16c20;
    font-weight: 600;
}

/* ===============================================
   CONTENU PRINCIPAL - FORMULAIRE CENTRÉ
================================================ */
.contact-form-centered {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.contact-form-card-modern {
    background: rgba(26, 26, 26, 0.6);
    border-radius: 20px;
    padding: 50px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 0, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.contact-form-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite reverse;
    pointer-events: none;
}

.contact-form-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.contact-form-wrapper {
    position: relative;
    z-index: 2;
}

/* Messages de succès et d'erreur */
.contact-form-message {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    animation: slideDown 0.5s ease;
}

.contact-form-message svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-form-message p {
    margin: 0;
    line-height: 1.6;
}

.contact-form-success {
    background: rgba(46, 204, 113, 0.1);
    border: 2px solid #2ecc71;
    color: #2ecc71;
}

.contact-form-success svg {
    stroke: #2ecc71;
}

.contact-form-error {
    background: rgba(231, 76, 60, 0.1);
    border: 2px solid #e74c3c;
    color: #e74c3c;
}

.contact-form-error svg {
    stroke: #e74c3c;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Champs en 2 colonnes */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 0;
}

.form-group-half {
    margin-bottom: 25px;
}

/* Styles pour le formulaire par défaut */
.contact-form-default .form-group {
    margin-bottom: 25px;
    position: relative;
}

.contact-form-default label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.contact-form-default input,
.contact-form-default textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.contact-form-default input:focus,
.contact-form-default textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: #ff6b00;
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.2);
}

.contact-form-default input::placeholder,
.contact-form-default textarea::placeholder {
    color: #666666;
    font-style: italic;
}

.input-focused label {
    color: #ff6b00;
    transform: translateY(-3px);
}

/* Bouton d'envoi */
.contact-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #ff6b00 0%, #ff8533 100%);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 107, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.contact-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.contact-submit-btn:hover::before {
    left: 100%;
}

.contact-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 0, 0.5);
}

.contact-submit-btn:active {
    transform: translateY(-1px);
}

/* ===============================================
   SECTION CARTE (OPTIONNELLE)
================================================ */
.contact-map-modern {
    margin-top: 80px;
    position: relative;
    z-index: 3;
}

.contact-map-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-map-header h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

.contact-map-decoration {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff6b00, transparent);
    margin: 0 auto;
}

.contact-map-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 107, 0, 0.2);
    height: 450px;
}

.contact-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===============================================
   INFORMATIONS DE CONTACT EN BAS
================================================ */
.contact-info-bottom {
    margin-top: 80px;
    position: relative;
    z-index: 3;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.contact-info-item-bottom {
    background: rgba(26, 26, 26, 0.6);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-info-item-bottom:hover {
    transform: translateY(-5px);
    border-color: #ff6b00;
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.2);
}

.contact-icon-bottom {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b00 0%, #ff8533 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.contact-info-item-bottom:hover .contact-icon-bottom {
    transform: scale(1.1) rotate(5deg);
}

.contact-info-item-bottom h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ff6b00;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.contact-info-item-bottom p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #cccccc;
    margin: 0;
}

.contact-info-item-bottom a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-info-item-bottom a:hover {
    color: #ff6b00;
}

.social-links-bottom {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 15px;
}

.social-links-bottom a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: #ffffff;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links-bottom a:hover {
    background: rgba(255, 107, 0, 0.2);
    border-color: #ff6b00;
    transform: translateY(-3px);
}

/* ===============================================
   ANIMATIONS AOS
================================================ */
[data-aos="fade-right"] {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos="fade-left"] {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translate(0, 0);
}

/* ===============================================
   ANIMATIONS GLOBALES
================================================ */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ===============================================
   RESPONSIVE - TABLETTE
================================================ */
@media (max-width: 991px) {
    .contact-form-centered {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .contact-info-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .contact-title-modern {
        font-size: 42px;
    }
    
    .contact-section-modern {
        padding: 80px 0;
    }
}

/* ===============================================
   RESPONSIVE - MOBILE
================================================ */
@media (max-width: 767px) {
    .contact-section-modern {
        padding: 60px 0;
    }
    
    .contact-title-modern {
        font-size: 32px;
    }
    
    .contact-header-modern {
        margin-bottom: 50px;
    }
    
    .contact-intro-modern {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .contact-form-card-modern {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-form-title {
        font-size: 1.5rem;
    }
    
    .contact-submit-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 30px;
        font-size: 1rem;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-map-wrapper {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .contact-title-modern {
        font-size: 1.8rem;
    }
    
    .contact-line-modern span:nth-child(1),
    .contact-line-modern span:nth-child(3) {
        width: 30px;
    }
    
    .contact-line-modern span:nth-child(2) {
        width: 60px;
    }
    
    .contact-info-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .contact-info-icon {
        margin: 0 auto;
    }
}

/* ===============================================
   STYLES POUR LES FORMULAIRES CONTACT FORM 7
================================================ */
.contact-form-wrapper .wpcf7-form {
    position: relative;
    z-index: 2;
}

.contact-form-wrapper .wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 25px;
}

.contact-form-wrapper .wpcf7-form label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.contact-form-wrapper .wpcf7-text,
.contact-form-wrapper .wpcf7-email,
.contact-form-wrapper .wpcf7-textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.contact-form-wrapper .wpcf7-text:focus,
.contact-form-wrapper .wpcf7-email:focus,
.contact-form-wrapper .wpcf7-textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: #ff6b00;
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.2);
}

.contact-form-wrapper .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #ff6b00 0%, #ff8533 100%);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 107, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-form-wrapper .wpcf7-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 0, 0.5);
}

.contact-form-wrapper .wpcf7-response-output {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    text-align: center;
}

.contact-form-wrapper .wpcf7-mail-sent-ok {
    background: rgba(46, 204, 113, 0.1);
    border: 2px solid #2ecc71;
    color: #2ecc71;
}

.contact-form-wrapper .wpcf7-validation-errors,
.contact-form-wrapper .wpcf7-mail-sent-ng {
    background: rgba(231, 76, 60, 0.1);
    border: 2px solid #e74c3c;
    color: #e74c3c;
}

.contact-form-wrapper .wpcf7-not-valid-tip {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}
