/* ==========================================
   SERVME - PAGES PUBLIC DESKTOP CONTACT
   Contact page desktop - DESKTOP uniquement
   Extrait de contact.css (hors @media mobile)
   ========================================== */

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box;
    font-family: var(--font-family) !important;
}

body {
    /* font-family hérite de design-system.css via var(--font-family) */
    line-height: 1.6;
    color: #222;
    background: #ffffff;
    min-height: 100vh;
    padding: 0;
}

/* Hero styles moved to sections/desktop/hero-pages.css */
/* Header styles moved to layout/desktop/header.css */

/* Container principal - Harmonisé avec legal pages */
.container {
    max-width: 800px;
    margin: -80px auto 4rem; /* Ajout margin-bottom pour espace avec footer */
    background: white;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    z-index: 10;
}

/* Styles harmonisés pour section (comme legal pages) */
section {
    margin-bottom: 3rem;
}

/* Styles harmonisés pour liens */
a {
    color: #FF385C;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    color: #FF385C;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.back-link:hover {
    gap: 12px;
}

h1 {
    color: #222;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 2rem;
    color: #222222;
}

h2:first-of-type {
    margin-top: 0;
}

p {
    line-height: 1.6;
    color: #666666;
    margin-bottom: 1rem;
}

.subtitle {
    color: #666;
    font-size: 18px;
    margin-bottom: 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.contact-card {
    padding: 24px;
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s;
}

.contact-card:hover {
    border-color: #FF385C;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 56, 92, 0.2);
}

.contact-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #FF385C 0%, #BC1A6E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
}

.contact-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #222;
}

.contact-card p {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
}

.contact-card a {
    color: #FF385C;
    text-decoration: none;
    font-weight: 600;
    word-break: break-all;
}

.contact-card a:hover {
    text-decoration: underline;
}

.divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
    margin: 48px 0;
}

.form-section h2 {
    font-size: 28px;
    margin-bottom: 8px;
    color: #222;
}

.form-section p {
    color: #666;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

label .required {
    color: #FF385C;
}

input,
textarea,
select {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-family);
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #FF385C;
    box-shadow: 0 0 0 3px rgba(255, 56, 92, 0.1);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #FF385C 0%, #BC1A6E 100%);
    color: white;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 56, 92, 0.4);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Forcer l'affichage des icônes Font Awesome */
.fas, .fa {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    display: inline-block !important;
}

/* S'assurer que les icônes sont visibles */
.contact-method i,
.btn-submit i {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    color: inherit !important;
}

.success-message {
    display: none;
    padding: 20px;
    background: #d4edda;
    color: #155724;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 2px solid #c3e6cb;
}

.success-message.show {
    display: block;
}

.error-message {
    display: none;
    padding: 20px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 2px solid #f5c6cb;
}

.error-message.show {
    display: block;
}

/* S'assurer que le footer a de l'espace */
.servme-footer {
    margin-top: 2rem !important; /* Réduire l'espace en haut du footer */
}

/* ================================================
   RESPONSIVE MOBILE
   ================================================ */

@media (max-width: 768px) {
  .container {
    padding: 24px 20px; /* Padding adapté mobile */
    margin: -60px auto 2rem; /* Margin réduit */
  }
  
  .contact-grid {
    grid-template-columns: 1fr; /* 1 colonne en mobile */
  }
  
  .contact-card {
    padding: 20px; /* Padding réduit */
  }
}

/* Header styles moved to layout/desktop/header.css */

