/* =========================================
   VARIABLES LOCALES
   ========================================= */
:root {
    --card-bg:          #0c0c1a;
    --input-bg:         #0d0d0d;
    --accent-purple:    #9b82f3;
    --accent-purple-2:  #7c5cff;
    --etoile-required:  #ff4b4b;
    --text-muted:       #a0a0b5;
}

/* =========================================
   CORRECTIONS GLOBALES ANTI-SCROLL MOBILE
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    overflow-wrap: break-word;
}



/* =========================================
   PAGE
   ========================================= */
.contact-page-wrapper {
    position:   relative;
    overflow-x: hidden;
    width:      100%;
}

/* =========================================
   GRID CONTACT — MOBILE FIRST
   ========================================= */
.contact-grid {
    display:        flex;
    flex-direction: column;
    gap:            32px;
}

@media (min-width: 992px) {
    .contact-grid {
        flex-direction: row;
        align-items:    flex-start;
        gap:            80px;
    }
}

/* =========================================
   CARTE FORMULAIRE
   ========================================= */
.contact-form-card {
    position:           relative;
    z-index:            1;
    background-color:   var(--card-bg);
    border-radius:      20px;
    border:             1px solid rgba(255, 255, 255, 0.05);
    padding:            28px 20px;
    box-shadow:         0 10px 40px rgba(0, 0, 0, 0.3);
    transition:         border-color 0.3s ease;
    width:              100%;
    min-width:          0;
}

.contact-form-card::before {
    content:        '';
    position:       absolute;
    inset:          -1px;
    border-radius:  21px;
    background:     linear-gradient(
                        135deg,
                        rgba(155, 130, 243, 0.15),
                        transparent 50%,
                        rgba(124, 92, 255, 0.08)
                    );
    z-index:        -1;
    pointer-events: none;
}

.contact-form-card::after {
    content:        '';
    position:       absolute;
    inset:          -10px;
    background:     radial-gradient(
                        circle at center,
                        rgba(138, 43, 226, 0.07) 0%,
                        transparent 65%
                    );
    z-index:        -2;
    pointer-events: none;
}

@media (min-width: 992px) {
    .contact-form-card {
        flex:    1;
        padding: 48px;
    }

    .contact-form-card::after {
        inset: -30px;
    }
}

/* =========================================
   GROUPE DE CHAMP
   ========================================= */
.form-group {
    display:        flex;
    flex-direction: column;
    gap:            10px;           /* ↑ Augmenté : 8px → 10px */
    margin-bottom:  20px;
}

/* CORRECTION : pas de double marge quand dans .form-row */
.form-row .form-group {
    margin-bottom: 0;
}

.form-group label {
    font-size:      0.88rem;        /* ↑ Augmenté : 0.82rem → 0.88rem (~14px) */
    font-weight:    600;
    color:          var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;          /* ↓ Réduit : 0.7px → 0.5px (plus lisible) */
    line-height:    1.3;            /* ← AJOUTÉ : évite le compactage */
}

.required {
    color:       var(--etoile-required);
    margin-left: 2px;
}

/* =========================================
   LIGNE DE CHAMPS (prénom + nom)
   ========================================= */
.form-row {
    display:        flex;
    flex-direction: column;
    gap:            16px;           /* ← AJOUTÉ : 0 → 16px (espacement mobile) */
    margin-bottom:  20px;           /* ← AJOUTÉ : cohérent avec .form-group */
}

@media (min-width: 480px) {
    .form-row {
        flex-direction: row;
        gap:            20px;
    }

    .form-row .form-group {
        flex: 1;
    }
}

/* =========================================
   INPUTS & TEXTAREA
   ========================================= */
.contact-form-card input[type="text"],
.contact-form-card input[type="email"],
.contact-form-card textarea {
    width:              100%;
    padding:            14px 16px;  /* ↑ Augmenté : 13px → 14px vertical */
    background-color:   var(--input-bg);
    color:              #ffffff;
    border:             1px solid rgba(255, 255, 255, 0.10);  /* ↑ Augmenté : 0.08 → 0.10 */
    border-radius:      10px;
    font-size:          1rem;
    font-family:        inherit;
    line-height:        1.5;
    transition:         border-color 0.3s ease,
                        box-shadow 0.3s ease,
                        background-color 0.3s ease;
    box-sizing:         border-box;
    -webkit-appearance: none;
    appearance:         none;
    max-width:          100%;
}

@media (min-width: 768px) {
    .contact-form-card input[type="text"],
    .contact-form-card input[type="email"],
    .contact-form-card textarea {
        font-size: 0.95rem;
    }
}

.contact-form-card input::placeholder,
.contact-form-card textarea::placeholder {
    color: rgba(160, 160, 181, 0.55);  /* ↑ Augmenté : 0.35 → 0.55 (lisible) */
    font-size: 0.9rem;                   /* ← AJOUTÉ : taille légèrement réduite */
}

.contact-form-card input:hover,
.contact-form-card textarea:hover {
    border-color: rgba(255, 255, 255, 0.20);  /* ↑ Augmenté : 0.15 → 0.20 */
}

.contact-form-card input:focus,
.contact-form-card textarea:focus {
    outline:          none;
    border-color:     var(--accent-purple);
    background-color: rgba(155, 130, 243, 0.06);  /* ↑ Augmenté : 0.04 → 0.06 */
    box-shadow:       0 0 0 4px rgba(155, 130, 243, 0.18);  /* ↑ Accentué : 3px/0.12 → 4px/0.18 */
}

.contact-form-card textarea {
    resize:     vertical;
    min-height: 140px;
}

/* =========================================
   BOUTON ENVOYER
   ========================================= */
.form-action {
    margin-top: 28px;   /* ↑ Augmenté : 8px → 28px (aération après dernier champ) */
}

.btn-primary-gradient {
    display:         inline-flex;
    align-items:     center;
    justify-content: center;
    gap:             8px;
    width:           100%;
    padding:         15px 28px;
    background:      linear-gradient(135deg, var(--accent-purple-2), var(--accent-purple));
    color:           #ffffff;
    font-size:       0.95rem;
    font-weight:     700;
    font-family:     inherit;
    border:          none;
    border-radius:   50px;
    cursor:          pointer;
    transition:      transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow:      0 4px 20px rgba(124, 92, 255, 0.3);
    position:        relative;
    overflow:        hidden;
    min-height:      48px;
}

.btn-primary-gradient::before {
    content:    '';
    position:   absolute;
    inset:      0;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-purple-2));
    opacity:    0;
    transition: opacity 0.3s ease;
}

.btn-primary-gradient:hover::before { opacity: 1; }

.btn-primary-gradient:hover {
    transform:  translateY(-3px);
    box-shadow: 0 10px 30px rgba(124, 92, 255, 0.45);
}

.btn-primary-gradient:active {
    transform: translateY(-1px);
}

.btn-primary-gradient span {
    position: relative;
    z-index:  1;
}

.btn-primary-gradient svg {
    position:    relative;
    z-index:     1;
    width:       18px;
    height:      18px;
    transition:  transform 0.3s ease;
    flex-shrink: 0;
}

.btn-primary-gradient:hover svg {
    transform: translateX(3px);
}

@media (min-width: 480px) {
    .btn-primary-gradient {
        width:   auto;
        padding: 15px 40px;
    }
}

/* =========================================
   PANEL INFORMATIONS — MOBILE FIRST
   ========================================= */
.contact-info-panel {
    text-align: center;
    width:      100%;
    min-width:  0;
}

.info-panel-title {
    font-size:   clamp(1.4rem, 5vw, 2rem);
    font-weight: 800;
    color:       #ffffff;
    margin:      0 0 14px;
    line-height: 1.2;
}

.info-panel-subtitle {
    color:       var(--text-muted);
    font-size:   0.95rem;
    line-height: 1.7;
    margin:      0 auto 36px;
    max-width:   380px;
}

/* CORRECTION : alignement cohérent sur desktop */
@media (min-width: 992px) {
    .info-panel-subtitle {
        margin-left:  0;
        margin-right: 0;
    }
}

.info-list {
    list-style: none;
    padding:    0;
    margin:     0;
    display:    flex;
    flex-direction: column;
    gap:        20px;
}

.info-list li {
    display:        flex;
    flex-direction: column;
    align-items:    center;
    gap:            12px;
}

@media (min-width: 992px) {
    .info-list li {
        flex-direction: row;
        align-items:    flex-start;
        text-align:     left;
    }
}

.info-icon-wrapper {
    display:         flex;
    align-items:     center;
    justify-content: center;
    width:           46px;
    height:          46px;
    border-radius:   50%;
    border:          1px solid rgba(155, 130, 243, 0.2);
    background:      rgba(155, 130, 243, 0.06);
    flex-shrink:     0;
    transition:      border-color 0.3s ease, background 0.3s ease;
}

.info-list li:hover .info-icon-wrapper {
    border-color: rgba(155, 130, 243, 0.5);
    background:   rgba(155, 130, 243, 0.12);
}

.info-icon {
    width:  20px;
    height: 20px;
    color:  var(--accent-purple);
}

.info-text h3 {
    font-size:      0.78rem;
    font-weight:    700;
    color:          var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin:         0 0 4px;
}

.info-text p {
    font-size:      0.95rem;
    color:          #ffffff;
    margin:         0;
    word-break:     break-word;
    overflow-wrap:  break-word;
}

/* CORRECTION : liens visuellement distincts */
.info-text a {
    color:           var(--accent-purple);
    text-decoration: none;
    transition:      color 0.3s ease, text-decoration 0.3s ease;
    font-weight:     500;
}

.info-text a:hover {
    color:           #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Desktop : panel fixe sur le côté */
@media (min-width: 992px) {
    .contact-info-panel {
        width:       360px;
        flex-shrink: 0;
        text-align:  left;
    }

    .info-text {
        text-align: left;
    }
}

/* =========================================
   CARTE MAP — MOBILE FIRST
   ========================================= */
.map-section {
    padding-bottom: 60px;
}

@media (min-width: 768px) {
    .map-section { padding-bottom: 80px; }
}

.map-card {
    background:    var(--card-bg);
    border:        1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow:      hidden;
    width:         100%;
}

.map-header {
    display:       flex;
    align-items:   center;
    gap:           16px;
    padding:       20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {
    .map-header { padding: 24px; }
}

.map-pin {
    width:           44px;
    height:          44px;
    border-radius:   50%;
    background:      rgba(155, 130, 243, 0.15);
    border:          1px solid rgba(111, 76, 255, 0.2);
    display:         flex;
    align-items:     center;
    justify-content: center;
    color:           #ffffff;
    flex-shrink:     0;
}

.map-pin svg { width: 22px; height: 22px; }

.map-info h3 {
    font-family: 'Syne', sans-serif;
    font-size:   1.1rem;
    font-weight: 700;
    color:       #ffffff;
    margin:      0 0 4px;
}

.map-info p {
    font-size: 0.88rem;
    color:     var(--text-muted);
    margin:    0;
}

.map-container {
    position: relative;
    height:   300px;
}

@media (min-width: 768px) {
    .map-container { height: 400px; }
}

.map-container iframe {
    width:      100%;
    height:     100%;
    border:     0;
    transition: filter 0.1s ease;
}

.map-overlay {
    position:       absolute;
    inset:          0;
    background:     linear-gradient(to bottom, var(--card-bg) 0%, transparent 20%, transparent 80%, var(--card-bg) 100%);
    pointer-events: none;
    opacity:        0.6;
}

/* =========================================
   AJOUTS : Info Card, Status, Social
   ========================================= */
.info-card {
    display:       flex;
    align-items:   flex-start;
    gap:           14px;
    padding:       20px;
    background:    rgba(155, 130, 243, 0.06);
    border:        1px solid rgba(155, 130, 243, 0.15);
    border-radius: 16px;
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .info-card { gap: 16px; }
}

.info-card__icon {
    width:           44px;
    height:          44px;
    border-radius:   12px;
    background:      rgba(155, 130, 243, 0.12);
    border:          1px solid rgba(155, 130, 243, 0.25);
    display:         flex;
    align-items:     center;
    justify-content: center;
    color:           #9b82f3;
    flex-shrink:     0;
}

.info-card__icon svg { width: 22px; height: 22px; }

.info-card__content h3 {
    font-size:   1rem;
    font-weight: 700;
    color:       #ffffff;
    margin:      0 0 4px;
}

.info-card__content p {
    font-size:   0.85rem;
    color:       #a0a0b5;
    margin:      0;
    line-height: 1.5;
}

/* Status Online */
.status-online {
    display:     flex;
    align-items: center;
    gap:         8px;
    color:       #22c55e;          /* ← SUPPRESSION du !important */
    font-weight: 600;
}

.status-dot {
    width:         8px;
    height:        8px;
    border-radius: 50%;
    background:    #22c55e;
    box-shadow:    0 0 8px #22c55e;
    animation:     pulse-green 2s ease-in-out infinite;
    flex-shrink:   0;
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px #22c55e; }
    50%       { opacity: 0.6; box-shadow: 0 0 4px #22c55e; }
}

/* Réseaux sociaux */
.social-links {
    margin-top:  24px;
    padding-top: 24px;
    border-top:  1px solid rgba(255, 255, 255, 0.08);
}

.social-label {
    display:        block;
    font-size:      0.8rem;
    color:          #6c6c80;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom:  12px;
}

.social-icons {
    display:         flex;
    gap:             12px;
    flex-wrap:       wrap;
    justify-content: center;
}

/* CORRECTION : typo 992pxpx → 992px */
@media (min-width: 992px) {
    .social-icons {
        justify-content: flex-start;
    }
}

.social-icon {
    display:         flex;
    align-items:     center;
    justify-content: center;
    width:           44px;
    height:          44px;
    border-radius:   10px;
    border:          1px solid rgba(255, 255, 255, 0.1);
    background:      rgba(255, 255, 255, 0.03);
    color:           #a0a0b5;
    transition:      all 0.3s ease;
}

.social-icon:hover {
    background:   rgba(155, 130, 243, 0.15);
    border-color: rgba(155, 130, 243, 0.4);
    color:        #9b82f3;
    transform:    translateY(-2px);
}

.social-icon svg { width: 18px; height: 18px; }

/* =========================================
   ALERTES FORMULAIRE (Succès / Erreur)
   ========================================= */
.alert-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 0.95rem;
    font-weight: 500;
    animation: slideInFast 0.3s ease-out;
}

/* ← AJOUTÉ : keyframe manquante */
@keyframes slideInFast {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-box svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}