@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500;700&display=swap');

/* ==============================
   PAGE CONTACT
============================== */
.contact-page {
    min-height: calc(100vh - 80px);
    background-color: #0a0a0a;
    display: flex;
    flex-direction: column;
}

.contact-hero {
    padding: 80px 60px 50px;
    border-bottom: 1px solid #1a1a1a;
}

.contact-hero .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #ff00ff;
    margin-bottom: 18px;
    font-weight: 600;
    display: block;
}

.contact-hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 5rem;
    font-weight: 400;
    letter-spacing: 2px;
    line-height: 1;
    color: #fff;
    max-width: 700px;
}

.contact-hero h1 span { color: #ff00ff; }

/* ==============================
   LAYOUT PRINCIPAL
============================== */
.contact-main {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    flex: 1;
}

/* ==============================
   COLONNE GAUCHE (infos)
============================== */
.contact-sidebar {
    padding: 60px;
    border-right: 1px solid #1a1a1a;
    background: #0d0d0d;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.sidebar-block h3 {
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #444;
    margin-bottom: 20px;
    font-weight: 600;
}

.info-item {
    margin-bottom: 24px;
}

.info-item .label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: #ffcc00;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.info-item a,
.info-item p {
    color: #ddd;
    text-decoration: none;
    font-size: 0.92rem;
    line-height: 1.5;
    transition: color 0.3s;
    display: block;
}

.info-item a:hover { color: #ff00ff; }

.sidebar-services {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    color: #666;
    letter-spacing: 0.5px;
}

.service-tag::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ff00ff;
    flex-shrink: 0;
}

/* ==============================
   COLONNE DROITE (formulaire)
============================== */
.contact-form-wrap {
    padding: 60px;
    background: #0a0a0a;
}

.contact-form-wrap h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 40px;
}

/* Grille du formulaire */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.form-grid .input-group:first-child { border-right: 1px solid #1a1a1a; }

.input-group {
    padding: 25px 0;
    border-bottom: 1px solid #1a1a1a;
    position: relative;
}

.input-group.full { grid-column: 1 / -1; }

.input-group label {
    display: block;
    color: #444;
    text-transform: uppercase;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.input-group:focus-within label {
    color: #ffcc00;
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 8px 0;
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    outline: none;
    resize: none;
    appearance: none;
}

.input-group select {
    cursor: pointer;
}

.input-group select option {
    background: #111;
    color: #fff;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: #2a2a2a;
}

/* Correction du fond blanc/jaune de l'autofill navigateur */
.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:focus,
.input-group select:-webkit-autofill,
.input-group select:-webkit-autofill:hover,
.input-group select:-webkit-autofill:focus,
.input-group textarea:-webkit-autofill {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0px 1000px #0a0a0a inset;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: #fff;
}

/* Ligne de focus animée */
.input-group::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #ffcc00;
    transition: width 0.4s ease;
}

.input-group:focus-within::after {
    width: 100%;
}

/* ==============================
   BOUTON D'ENVOI
============================== */
.form-actions {
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-send {
    padding: 16px 50px;
    background: #ffcc00;
    color: #000;
    border: none;
    text-transform: uppercase;
    font-family: 'DM Sans', sans-serif;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.btn-send:hover {
    background: #ff00ff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 0, 255, 0.25);
}

.btn-send:active {
    transform: translateY(0);
}

.form-note {
    font-size: 0.72rem;
    color: #333;
    letter-spacing: 0.5px;
}

/* ==============================
   MESSAGES DE FEEDBACK
============================== */
.form-message {
    display: none;
    margin-top: 25px;
    padding: 18px 22px;
    border-radius: 2px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.form-message.success {
    align-items: center;
    gap: 12px;
    background: rgba(0, 200, 100, 0.07);
    border: 1px solid rgba(0, 200, 100, 0.25);
    color: #4ade80;
}

.form-message.error {
    align-items: center;
    gap: 12px;
    background: rgba(255, 0, 0, 0.07);
    border: 1px solid rgba(255, 0, 0, 0.2);
    color: #f87171;
}

.form-message .msg-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Loading state */
.btn-send.loading {
    pointer-events: none;
    opacity: 0.85;
    gap: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.send-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0,0,0,0.2);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Animation d'apparition du message succès */
.form-message.success {
    align-items: center;
    gap: 12px;
    background: rgba(0, 200, 100, 0.07);
    border: 1px solid rgba(0, 200, 100, 0.25);
    color: #4ade80;
    animation: slideIn 0.4s ease;
}

.form-message.error {
    align-items: center;
    gap: 12px;
    background: rgba(255, 0, 0, 0.07);
    border: 1px solid rgba(255, 0, 0, 0.2);
    color: #f87171;
    animation: slideIn 0.4s ease;
}

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

/* Icône succès animée */
.msg-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s both;
}

@keyframes popIn {
    from { transform: scale(0); }
    to   { transform: scale(1); }
}

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 992px) {
    .contact-hero { padding: 50px 25px 35px; }
    .contact-hero h1 { font-size: 3.5rem; }

    .contact-main { grid-template-columns: 1fr; }
    .contact-sidebar { padding: 40px 25px; border-right: none; border-bottom: 1px solid #1a1a1a; }
    .contact-form-wrap { padding: 40px 25px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .input-group:first-child { border-right: none; }
}