/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: white;
    color: #333;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 1s ease-out;
    position: relative;
    min-height: 100vh;
    padding-top: clamp(100px, 15vw, 170px);
    padding-bottom: clamp(60px, 8vw, 80px);
}

body.loaded {
    opacity: 1;
}

/* ========== NAVIGATION ========== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 1 !important;
}

.nav-container {
    position: relative;
    height: clamp(80px, 12vw, 120px);
    display: flex;
    align-items: center;
    padding: 0 clamp(20px, 8vw, 160px) 0 clamp(20px, 12vw, 240px);
}

.logo-container {
    display: flex;
    align-items: center;
    z-index: 1002;
    position: relative;
    margin-left: clamp(0px, 6vw, 120px);
    transform: translateY(clamp(-5px, -1vw, -10px));
}

.logo {
    width: clamp(60px, 8vw, 90px);
    height: clamp(60px, 8vw, 90px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1002;
}

.logo:hover { transform: scale(1.15); }

.company-name {
    font-size: clamp(1rem, 4vw, 24px);
    font-weight: 700;
    margin-left: 15px;
    position: relative;
    color: #333;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
}

.logo-container:hover .company-name { color: #0a1f44; }

.nav-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: clamp(40px, 6vw, 50px);
    background-color: #0a1f44;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    padding-left: clamp(0px, 6vw, 120px);
}

.nav-links { display: flex; list-style: none; }
.nav-links li { margin: 0 clamp(10px, 1.5vw, 25px); position: relative; }

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: clamp(0.8rem, 2vw, 16px);
    font-weight: 500;
    letter-spacing: 1.2px;
    position: relative;
    padding: 5px 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-links a:hover { color: #a8c0ff; }

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #a8c0ff, #6d8ee6);
    bottom: 0;
    left: 0;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-links a:hover::after { width: 100%; }

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1003;
    position: absolute;
    right: 20px;
    bottom: 10px;
}

/* Contenu principal */
main {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

body.loaded main {
    opacity: 1;
    transform: translateY(0);
}

/* Pages */
.page {
    min-height: calc(100vh - 250px);
    padding: clamp(40px, 6vw, 100px) clamp(20px, 8vw, 120px);
    display: none;
}

.page.active {
    display: block;
}

/* Page 1 - Hero Fullscreen */
#page1 {
    padding: 0;
    position: relative;
    height: calc(100vh - 170px);
    min-height: 500px;
    margin-top: -170px;
}

.hero-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 100%;
    transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-container:hover .hero-image {
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 31, 68, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 5rem);
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transform: translateY(30px);
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transform: translateY(30px);
    opacity: 0;
    animation: fadeInUp 1s ease 0.8s forwards;
}

/* Page 2 - Contact avec carte optimisée */
#page2 {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 250px);
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(30px, 5vw, 60px);
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Styles spécifiques pour la carte */
.map-container {
    position: relative;
    width: 100%;
    height: clamp(300px, 50vh, 500px);
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.contact-info {
    background: white;
    padding: clamp(20px, 4vw, 40px);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-info h2 {
    color: #0a1f44;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.contact-info h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0a1f44, #a8c0ff);
}

.contact-details {
    list-style: none;
}

.contact-details li {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.contact-details i {
    width: 40px;
    height: 40px;
    background: #0a1f44;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-details span {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: #333;
    word-break: break-word;
}

/* Formulaire de contact */
.contact-form {
    margin-top: 40px;
}

.contact-form h3 {
    color: #0a1f44;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #0a1f44;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #0a1f44;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    background: linear-gradient(135deg, #0a1f44, #3a5a8a);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(10, 31, 68, 0.3);
}

/* Footer */
.ha-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: clamp(10px, 3vw, 20px) clamp(20px, 4vw, 40px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.08);
    z-index: 100;
    border-top: 1px solid rgba(10, 31, 68, 0.1);
}

.footer-content {
    display: flex;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-social {
    display: flex;
    gap: clamp(15px, 3vw, 25px);
    flex-wrap: wrap;
}

.footer-social a {
    color: #0a1f44;
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(0.8rem, 2.5vw, 0.95rem);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-social a:hover {
    color: #3a5a8a;
}

.footer-social i {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
}

.footer-copyright {
    color: #0a1f44;
    font-size: clamp(0.7rem, 2.5vw, 0.9rem);
    opacity: 0.8;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from { 
        opacity: 0;
        transform: scale(0.95);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

.animate-in {
    animation: zoomIn 0.8s ease forwards;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 1rem;
    }
    
    .logo-container {
        margin: 0 auto;
        padding: 1rem 0;
        transform: none;
    }
    
    .nav-bar {
        position: relative;
        height: auto;
        padding: 1rem;
        justify-content: center;
        margin-top: 0;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
        display: none;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 0.5rem 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    #page1 {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 140px;
    }
    
    #page1 {
        height: 50vh;
        margin-top: -140px;
    }
    
    .hero-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .page {
        padding: 40px 20px;
    }
    
    .map-container {
        height: 300px;
    }
    
    .contact-info {
        padding: 25px;
    }
    
    .ha-footer {
        padding: 15px 20px;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 120px;
        padding-bottom: 70px;
    }
    
    #page1 {
        height: 45vh;
        margin-top: -120px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .page {
        padding: 30px 15px;
    }
    
    .contact-info {
        padding: 20px;
    }
    
    .map-container {
        height: 250px;
    }
    
    .contact-details li {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .contact-details i {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .footer-social {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-social a {
        font-size: 0.85rem;
    }
    
    .footer-copyright {
        font-size: 0.8rem;
    }
}

/* Amélioration pour très petits écrans */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .contact-info h2 {
        font-size: 1.5rem;
    }
}