:root {
    --bleu-nuit: #0a1a2a;
    --bleu-metallique: #1a2a3a;
    --bleu-clair: #3a5a8a;
    --blanc: #ffffff;
    --texte-fonce: #333333;
    --texte-clair: #f8f9fa;
    --vert-luxe: #8ba888;
    --vert-accent: #6d8e6b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--blanc);
    color: var(--texte-fonce);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif;
    padding-top: clamp(100px, 15vw, 170px);
    padding-bottom: clamp(60px, 8vw, 80px);
    opacity: 0;
    transition: opacity 1s ease-out;
}

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); }

/* ========== SECTION 1 - PRÉSENTATION ========== */
.presentation-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--blanc);
    padding: clamp(80px, 12vw, 120px) 0;
    text-align: center;
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--blanc);
    font-weight: 600;
    letter-spacing: 1px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    padding: 0 20px;
    opacity: 1;
    transition: opacity 5s ease-out;
}
.main-title.hidden { opacity: 0; pointer-events: none; }

.presentation-text {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    max-width: min(800px, 90%);
    font-weight: 300;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 1s ease-out 0.5s;
}
.presentation-text.visible { opacity: 1; }
.presentation-text p { margin-bottom: clamp(1rem, 3vw, 2rem); }
.presentation-text strong { color: var(--blanc); font-weight: 500; }
.presentation-text em { font-style: normal; color: var(--vert-luxe); }

.signature {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--vert-luxe);
    margin-top: clamp(1.5rem, 4vw, 3rem);
    font-style: italic;
    letter-spacing: 1px;
}

/* ========== SECTION 2 - QUALITÉ ========== */
.quality-section {
    min-height: 100vh;
    padding: clamp(4rem, 8vw, 8rem) 5%;
    background: linear-gradient(to bottom, #f5f5f5, var(--blanc));
}

.quality-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: clamp(1rem, 3vw, 2rem);
}

.quality-card {
    background: var(--blanc);
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.quality-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.quality-icon {
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: var(--bleu-clair);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.quality-title {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: clamp(0.8rem, 2vw, 1rem);
    color: var(--bleu-nuit);
    font-weight: 600;
}

.quality-description {
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.6;
    color: var(--texte-fonce);
}

.quality-intro {
    max-width: min(800px, 90%);
    margin: 0 auto clamp(3rem, 5vw, 5rem);
    text-align: center;
}
.quality-intro h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    background: linear-gradient(135deg, var(--bleu-nuit), var(--bleu-clair));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.quality-intro p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.8;
    color: var(--texte-fonce);
}

/* ========== SECTION 3 - ÉQUIPE ========== */
.team-section {
    min-height: 100vh;
    padding: clamp(4rem, 8vw, 8rem) 5%;
    background: linear-gradient(to bottom, var(--blanc), #f5f5f5);
}

.team-description {
    max-width: min(800px, 90%);
    margin: 0 auto clamp(3rem, 5vw, 5rem);
    text-align: center;
}
.team-description h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    background: linear-gradient(135deg, var(--bleu-nuit), var(--bleu-clair));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.team-description p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.8;
    color: var(--texte-fonce);
}

.team-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(1rem, 3vw, 2rem);
    max-width: 1200px;
    margin: 0 auto;
}

.team-member {
    position: relative;
    height: clamp(250px, 35vw, 350px);
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    cursor: pointer;
}

.team-member img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.member-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: clamp(1rem, 3vw, 2rem);
    background: linear-gradient(to top, rgba(10, 26, 42, 0.9), transparent);
    color: white;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}
.member-info h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); margin-bottom: 0.5rem; }
.member-info p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    opacity: 0;
    transition: opacity 0.3s ease 0.2s;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}
.team-member:hover img { transform: scale(1.1); }
.team-member:hover .member-info { transform: translateY(0); }
.team-member:hover .member-info p { opacity: 1; }

/* ========== 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: var(--bleu-nuit);
    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: var(--bleu-clair); }
.footer-social i { font-size: clamp(0.9rem, 3vw, 1.1rem); }

.footer-copyright {
    color: var(--bleu-nuit);
    font-size: clamp(0.7rem, 2.5vw, 0.9rem);
    opacity: 0.8;
}

/* ========== ANIMATIONS ========== */
section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
section.visible { opacity: 1; transform: translateY(0); }

/* ========== 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; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-social { justify-content: center; }
}

@media (max-width: 768px) {
    .quality-container { grid-template-columns: 1fr; }
    .team-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .team-gallery { grid-template-columns: 1fr; }
    .nav-links a { font-size: 1rem; }
    .footer-social a { font-size: 0.85rem; gap: 5px; }
    .footer-copyright { font-size: 0.8rem; }
}