/* ====================================================== */
/* contact.css - Styles pour la page Contact              */
/* Version "V2" (Menu mobile pleine largeur, slide left) */
/* ====================================================== */

/* ---------------- Variables ---------------- */
:root {
    --primary: #0D47A1;
    --secondary: #FFC107;
    --accent: #2196F3;
    --light: #FFFFFF;
    --dark: #212121;
    --gray: #F5F5F5;
    --text: #333333;
    --text-light: #757575;
    --error: #F44336;
    --success: #4CAF50;
}

/* ---------------- Reset & Global ---------------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Défilement doux pour les ancres */
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--light);
    font-size: 16px; /* Base pour rem */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.highlight {
    color: var(--secondary);
    font-weight: 700;
}

/* Visually hidden class for accessibility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}


/* ---------------- Header ---------------- */
.main-header {
    background-color: var(--light);
    padding: 20px 0; /* Padding haut/bas, utilise .container pour lateral */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); /* Ombre plus subtile */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 40px; /* Hauteur minimale pour alignement */
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
}
.logo-part1 { color: var(--primary); }
.logo-part2 { color: var(--dark); }
.logo-part3 { color: var(--secondary); }

.nav-links { /* Styles Desktop */
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0; /* Reset margin sur ul */
}

.nav-links a { /* Liens Desktop */
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    font-size: 1rem;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-cta {
    background-color: var(--primary);
    color: var(--light) !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.nav-cta:hover {
    background-color: var(--accent) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
}

.nav-cta::after {
    display: none !important;
}
.nav-cta::after { display: none !important; }

.hamburger { /* Caché sur Desktop */
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001; /* Au-dessus du reste */
}
.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    margin: 4px 0;
    transition: all 0.3s ease;
    border-radius: 3px; /* Arrondir les lignes */
}
/* Optionnel: Animation croix pour hamburger actif */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------------- Hero Section ---------------- */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--light);
    padding: 60px 0; /* Padding ajusté */
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero .container {
    position: relative;
    z-index: 1;
}
.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 5vw, 2.8rem); /* Taille responsive */
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1); /* Ombre légère */
}
.hero h1 i {
    margin-right: 10px;
    font-size: 0.9em;
    opacity: 0.8;
}
.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.25rem); /* Taille responsive */
    max-width: 700px;
    margin: 0 auto 35px;
    opacity: 0.95;
}
.hero-subtitle strong {
    color: var(--secondary);
    font-weight: 600;
}
.cta-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
}
.cta-btn i {
    margin-right: 8px;
    font-size: 1.1rem;
}
.cta-btn.primary {
    background-color: var(--secondary);
    color: var(--dark);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.25);
    border-color: var(--secondary);
}
.cta-btn.primary:hover {
    background-color: #FFD54F;
    border-color: #FFD54F;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.35);
}
.cta-btn.secondary {
    background-color: transparent;
    color: var(--light);
    border: 2px solid var(--light);
}
.cta-btn.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* ---------------- Formulaire de Contact ---------------- */
.contact-section {
    padding: 60px 0;
    background-color: var(--gray);
}
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--light);
    padding: clamp(20px, 5vw, 40px); /* Padding responsive */
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08); /* Ombre plus subtile */
    border-top: 5px solid var(--primary);
    animation: slideInUp 0.7s ease-out forwards; /* Animation */
    opacity: 0; /* Pour animation */
}
@keyframes slideInUp { /* Définition animation */
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-section {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px dashed #ccc;
}
.form-section:last-of-type {
     border-bottom: none;
     margin-bottom: 15px;
     padding-bottom: 0;
}
.form-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.3rem, 4vw, 1.5rem);
    color: var(--primary);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary);
    display: inline-block;
}
.form-section-title i {
    margin-right: 10px;
    color: var(--secondary);
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px 25px; /* Espace grille */
}
.input-group {
    margin-bottom: 0;
    position: relative;
}
.input-group.full-width {
    grid-column: 1 / -1;
}
.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text);
}
.input-group label:has(+ [required])::after { /* Style pour * sur requis */
    content: ' *';
    color: var(--error);
    font-weight: normal;
    font-size: 0.9em; /* Plus petit */
    position: relative; /* Ajustement si nécessaire */
    top: -2px;
}
.input-group input[type="text"],
.input-group input[type="email"],
.input-group input[type="tel"],
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}
.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.15);
}
/* Style pour placeholder */
.input-group ::placeholder {
    color: #aaa;
    opacity: 1; /* Firefox */
}

.input-group textarea {
    min-height: 120px;
    resize: vertical;
}
.input-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}
.checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 10px;
}
.checkbox-group input[type="checkbox"] {
    appearance: none;
    width: 18px; height: 18px;
    border: 2px solid var(--primary);
    border-radius: 4px; cursor: pointer;
    position: relative; top: -1px; /* Alignement */
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-right: 10px;
}
.checkbox-group input[type="checkbox"]:checked {
    background-color: var(--primary); border-color: var(--primary);
}
.checkbox-group input[type="checkbox"]:checked::after {
    content: '✓'; color: white; font-weight: bold;
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%); font-size: 14px;
}
.checkbox-group input[type="checkbox"]:focus { /* Focus sur checkbox */
     box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.15);
}
.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 0.9rem;
    line-height: 1.4;
}
.checkbox-group label a {
    color: var(--primary);
    text-decoration: underline;
    transition: color 0.3s ease;
}
.checkbox-group label a:hover {
    color: var(--accent);
}
.form-submit {
    text-align: center;
    margin-top: 25px;
}
.submit-btn { /* Style bouton submit */
    padding: 14px 35px !important; /* Ajuster padding */
    font-size: 1.05rem !important;
    width: auto;
    min-width: 220px;
}
.submit-btn i {
    margin-right: 10px;
}

/* ---------------- Section CTA Optionnelle ---------------- */
.cta-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--light);
    text-align: center;
}
.cta-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 20px;
}

/* ---------------- Footer ---------------- */
.main-footer {
    background-color: var(--dark);
    color: #e0e0e0; /* Texte un peu plus clair */
    padding: 4rem 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem; /* Espace grille */
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-col {
    display: flex;
    flex-direction: column;
}
.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--light);
}
.footer-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}
.footer-title {
    color: var(--light);
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    font-weight: 600; /* Moins gras */
}
.footer-links {
    list-style: none;
    padding: 0; /* Reset padding */
}
.footer-links li {
    margin-bottom: 0.8rem;
}
.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}
.footer-links a:hover { color: var(--secondary); }
.footer-address {
    font-style: normal;
}
.footer-address p {
    margin-bottom: 0.8rem;
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}
.footer-address i.fa-fw { /* Icônes FontAwesome Fixed Width */
    margin-right: 10px;
    color: var(--secondary);
    margin-top: 4px;
    width: 1.2em;
    text-align: center;
    flex-shrink: 0; /* Empêche l'icône de rétrécir */
}
.footer-address a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-address a:hover { color: var(--secondary); }
.footer-bottom {
    padding: 1.5rem 0; /* Moins de padding */
    text-align: center;
}
.copyright {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.85rem; /* Plus petit */
}
.legal-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}
.legal-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.85rem;
}
.legal-links a:hover {
    color: var(--secondary);
    text-decoration: underline;
}


/* ---------------- Responsive ---------------- */
@media (max-width: 768px) {
    /* Affichage Hamburger */
    .hamburger {
      display: block;
    }

    /* Styles Menu Mobile (Version V2 : Pleine Largeur, slide 'left') */
    .nav-links {
      position: fixed;
      top: 80px; /* Doit correspondre à la hauteur du header approx */
      left: -100%; /* Caché */
      width: 100%;
      height: calc(100vh - 80px);
      background-color: var(--light);
      flex-direction: column;
      align-items: center; /* Liens centrés */
      padding: 30px 0;
      transition: left 0.35s ease-in-out; /* Transition plus douce */
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15); /* Ombre un peu plus marquée */
      overflow-y: auto;
      z-index: 999; /* Sous le header */
      margin: 0; /* Reset margin ul */
    }
    .nav-links.active {
      left: 0; /* Révélé */
    }
     /* Styles liens mobiles */
     .nav-links li { width: 100%; text-align: center; }
     .nav-links a {
         color: var(--dark);
         padding: 16px 15px; /* Plus de padding vertical */
         display: block;
         width: 100%;
         font-size: 1.1rem; /* Taille texte liens */
         border-bottom: 1px solid var(--gray); /* Séparateur */
     }
     .nav-links li:last-child a { border-bottom: none; } /* Pas de bordure pour le dernier */
     .nav-links a:hover {
         background-color: var(--gray);
         color: var(--primary);
     }
     .nav-links a::after { display: none; } /* Pas de soulignement actif */

    .nav-cta { /* Bouton CTA dans menu mobile */
        background-color: var(--primary) !important;
        color: var(--light) !important;
        text-align: center;
        margin: 25px auto 15px; /* Marges ajustées */
        display: block;
        width: calc(100% - 40px); /* Prend la largeur moins padding */
        max-width: 300px;
        padding: 16px !important; /* Padding vertical */
        border-radius: 50px;
        font-size: 1.1rem; /* Taille texte bouton */
    }
    /* --- Fin Styles Menu Mobile V2 --- */

    /* Autres ajustements responsive */
    .hero { padding: 50px 0; }
    .hero h1 { font-size: clamp(1.8rem, 6vw, 2.2rem); }
    .hero-subtitle { font-size: clamp(1rem, 4vw, 1.1rem); }
    .cta-btn { padding: 12px 24px; font-size: 0.95rem; } /* Boutons CTA un peu plus petits */

    .contact-section { padding: 40px 0; }
    .contact-form { padding: 20px 15px; } /* Moins de padding latéral */
    .form-grid { grid-template-columns: 1fr; gap: 18px; } /* Moins d'espace */
    .form-section-title { font-size: 1.25rem; margin-bottom: 20px; }
    .submit-btn { width: 100%; padding: 15px 20px !important; }

    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 2rem;}
    .footer-address p { justify-content: center; } /* Centrer adresse */
    .footer-address i.fa-fw { margin-left: -1.2em; } /* Compenser pour centrage */

    .legal-links { flex-direction: column; gap: 8px; }
}