/* --- HERO SECTION --- */
.hero-section {
    background-color: var(--primary-color);
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    /* Image de fond abstraite/architecture avec overlay */
    background: linear-gradient(135deg, rgba(10, 36, 68, 0.95) 0%, rgba(10, 36, 68, 0.8) 100%),
    url('../img/hero.avif');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* Formes décoratives en arrière-plan (Glow) */
.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.15) 0%, rgba(10, 36, 68, 0) 70%);
    border-radius: 50%;
    top: -10%;
    right: -10%;
    z-index: 0;
    animation: pulse 8s infinite ease-in-out;
}

/* Typographie */
.display-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    opacity: 0; /* Pour l'animation JS */
    transform: translateY(30px);
    color: white;
}

.lead-text {
    font-weight: 300;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    border-left: 3px solid var(--secondary-color);
    padding-left: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    color: white;
}

.highlight-gold {
    color: var(--secondary-color);
    font-style: italic;
}

/* Boutons Modernes */
.btn-gold {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 600;
    padding: 12px 35px;
    border-radius: 2px; /* Coins légèrement carrés pour le sérieux */
    border: 1px solid var(--secondary-color);
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    opacity: 0;
    transform: translateY(30px);
}

.btn-gold:hover {
    background-color: transparent;
    color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(201, 169, 97, 0.3);
    border: 1px solid var(--secondary-color);
}

.btn-outline-light-custom {
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    font-weight: 400;
    padding: 12px 35px;
    border-radius: 2px;
    margin-left: 15px;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    opacity: 0;
    transform: translateY(30px);
}

.btn-outline-light-custom:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

/* Carte Glassmorphism */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2.5rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 25px 45px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateX(50px);
}

.stat-hero-number {
    font-family: 'Playfair Display', serif;
    color: var(--secondary-color);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.stat-hero-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.7);
}

/* Scroll Down indicator */
.scroll-down {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
    display: flex;
    gap: 15px;
    align-items: end;
}
@media (min-width: 992px) {
    .scroll-down {
        bottom: 30px;
    }
}

/* Animations Keyframes */
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.1); opacity: 0.25; }
    100% { transform: scale(1); opacity: 0.15; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-10px);}
    60% {transform: translateX(-50%) translateY(-5px);}
}

/* Classes d'animation d'entrée */
.fade-in-up {
    animation: fadeInUp 0.8s forwards ease-out;
}

.fade-in-right {
    animation: fadeInRight 1s forwards ease-out;
}

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

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive tweaks */
@media (max-width: 576px) {
    .hero-section { min-height: 160vh; }
}
@media (min-width: 576px) and (max-width: 991px) {
    .hero-section { min-height: 130vh; }
}
@media (max-width: 991px) {
    .display-heading { font-size: 2.5rem; }
    .hero-section { text-align: center; }
    .lead-text { border-left: none; padding-left: 0; margin-top: 20px;}
    .btn-outline-light-custom { margin-left: 0; margin-top: 15px; }
    .glass-card { margin-top: 4rem; transform: translateY(50px); }
    @keyframes fadeInRight { to { opacity: 1; transform: translateY(0); } } /* Change direction mobile */
}

/* Boutons Modernes */
.btn-modern-primary {
    background: linear-gradient(135deg, #c9a961 0%, #b89850 100%);
    color: #0a2444 !important;
    padding: 16px 35px;
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(201,169,97,0.3);
}

.btn-modern-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(201,169,97,0.4);
    color: #0a2444 !important;
}

.btn-modern-outline {
    background: transparent;
    color: var(--secondary-color) !important;
    padding: 16px 35px;
    font-size: 1.05rem;
    font-weight: 700;
    border: 2px solid var(--secondary-color);
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-modern-outline:hover {
    background: var(--secondary-color);
    color: white !important;
    transform: translateY(-3px);
}

.btn-modern-white {
    background: white;
    color: #0a2444 !important;
    padding: 16px 35px;
    font-size: 1.05rem;
    font-weight: 700;
    border: 2px solid white;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-modern-white:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    color: #0a2444 !important;
}

/* Statistiques Flottantes */
.floating-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.stat-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.15);
    border-color: rgba(201,169,97,0.6);
    box-shadow: 0 15px 40px rgba(201,169,97,0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #c9a961;
    margin-bottom: 10px;
    font-family: 'Playfair Display', Georgia, serif;
}

.stat-label {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sections Modernes */
.section-modern {
    padding: 100px 0;
    position: relative;
}

.section-about {
    background: white;
}

.section-expertises {
    background: linear-gradient(180deg, #f8f9fa 0%, white 100%);
}

.section-team {
    background: white;
}

.section-testimonials {
    background: linear-gradient(180deg, #f8f9fa 0%, white 100%);
}

/* En-têtes de Section */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}
@media (min-width: 992px) {
    .section-header {
        margin-bottom: 70px;
    }
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, #c9a961 0%, #b89850 100%);
    color: white;
    padding: 8px 25px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #0a2444;
    margin-bottom: 20px;
    font-weight: 800;
    font-family: 'Playfair Display', Georgia, serif;
}

.section-description {
    font-size: 1.15rem;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Contenu À Propos */
.about-content h3 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: #0a2444;
    font-family: 'Playfair Display', Georgia, serif;
}

.about-content p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #555;
    margin-bottom: 20px;
}

/* Grille de Valeurs */
.values-grid {
    display: grid;
    gap: 25px;
}

.value-card {
    background: linear-gradient(135deg, #f8f9fa 0%, white 100%);
    padding: 35px;
    border-radius: 20px;
    border: 2px solid #f0f0f0;
    transition: all 0.4s ease;
}

.value-card:hover {
    border-color: #c9a961;
    transform: translateX(10px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    i {
        color: var(--secondary-color);
    }
}

.value-card h4 {
    font-size: 1.4rem;
    color: #0a2444;
    margin-bottom: 15px;
    font-family: 'Playfair Display', Georgia, serif;
}

.value-card p {
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* Grille d'Expertises */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.expertise-card {
    background: white;
    border-radius: 25px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
}

.expertise-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #0a2444 0%, #c9a961 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.expertise-card:hover .expertise-gradient {
    transform: scaleX(1);
}

.expertise-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
}

.expertise-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
    transition: all 0.3s ease;
    i {
        color: var(--secondary-color);
    }
}

.expertise-card:hover .expertise-icon {
    transform: scale(1.1);
}

.expertise-card h3 {
    font-size: 1.4rem;
    color: #0a2444;
    margin-bottom: 15px;
    font-weight: 700;
    font-family: 'Playfair Display', Georgia, serif;
}

.expertise-card p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.expertise-link {
    color: #c9a961;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.expertise-link:hover {
    color: #b89850;
    gap: 12px;
}

/* Section Équipe Moderne */
.team-card-modern {
    position: relative;
    height: 550px;
    overflow: hidden;
    border-radius: 0;
}

.team-image {
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
}

.team-card-modern:hover .team-image {
    transform: scale(1.08);
}

.team-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10,36,68,0.95) 0%, rgba(10,36,68,0.85) 60%, transparent 100%);
    padding: 40px 35px;
    transform: translateY(65%);
    transition: transform 0.5s ease;
}

.team-card-modern:hover .team-overlay {
    transform: translateY(0);
}

.team-content h3 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 8px;
    font-weight: 700;
    font-family: 'Playfair Display', Georgia, serif;
}

.team-content .team-role {
    color: #c9a961;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-description {
    color: rgba(255,255,255,0.9);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s ease 0.2s;
}

.team-card-modern:hover .team-description {
    opacity: 1;
    transform: translateY(0);
}

.team-contact-modern {
    display: flex;
    gap: 12px;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s ease 0.3s;
}

.team-card-modern:hover .team-contact-modern {
    opacity: 1;
    transform: translateY(0);
}

.team-contact-modern a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.team-contact-modern a:hover {
    background: #c9a961;
    border-color: #c9a961;
    transform: translateY(-3px);
}

/* Grille de Témoignages */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card-modern {
    background: white;
    padding: 40px;
    border-radius: 25px;
    position: relative;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    border-top: 4px solid transparent;
}

.testimonial-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 45px rgba(0,0,0,0.15);
    border-top-color: #c9a961;
}

.testimonial-rating {
    color: #c9a961;
    font-size: 1.3rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.testimonial-text {
    color: #555;
    font-size: 1rem;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 25px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar-modern {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0a2444 0%, #c9a961 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.testimonial-author h4 {
    font-size: 1.05rem;
    color: #0a2444;
    margin-bottom: 5px;
    font-family: 'Playfair Display', Georgia, serif;
}

.testimonial-author p {
    font-size: 0.9rem;
    color: #888;
    margin: 0;
}

/* CTA Moderne */
.cta-modern {
    position: relative;
    padding: 100px 0;
    background: #0a2444;
    overflow: hidden;
}

.cta-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 50%, rgba(201,169,97,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-modern h2 {
    color: white;
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 20px;
    font-weight: 800;
    font-family: 'Playfair Display', Georgia, serif;
}

.cta-modern p {
    color: rgba(255,255,255,0.95);
    font-size: 1.25rem;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-modern {
        padding: 60px 20px;
    }

    .section-modern {
        padding: 70px 0;
    }

    .floating-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-card-modern {
        height: 480px;
    }
}

@media (max-width: 768px) {
    .hero-modern {
        min-height: auto;
        padding: 50px 20px;
    }

    .section-modern {
        padding: 60px 0;
    }

    .floating-stats {
        margin-top: 40px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .expertise-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .team-card-modern {
        height: 420px;
    }

    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
    }

    .btn-modern-primary,
    .btn-modern-outline,
    .btn-modern-white {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .floating-stats {
        grid-template-columns: 1fr;
    }
}

/* Le conteneur de la carte membre */
.team-card {
    padding: 20px;
    transition: 0.3s ease;
    height: 100%;
}

/* Wrapper de l'image pour l'effet décalé */
.team-img-wrapper {
    position: relative;
    margin-bottom: 35px;
    z-index: 1;
}

/* L'image elle-même */
.team-img {
    width: 100%;
    height: 450px; /* Hauteur fixe pour l'uniformité */
    object-fit: cover; /* Recadre l'image sans la déformer */
    border-radius: 4px;
    position: relative;
    z-index: 2; /* Au-dessus du cadre doré */
    box-shadow: 0 10px 30px rgba(10, 36, 68, 0.15);
    transition: 0.3s ease;
    filter: grayscale(20%); /* Un peu de désaturation pour le sérieux */
}

/* Le cadre doré décalé en arrière-plan */
.team-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--secondary-color);
    border-radius: 4px;
    z-index: 1; /* Derrière l'image */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Animation au survol */
.team-card:hover .team-img-wrapper::after {
    bottom: 0px;
    right: 0px;
    border-color: rgba(201, 169, 97, 0.3); /* Le cadre rentre sous l'image */
}

.team-card:hover .team-img {
    transform: translateY(-5px);
    filter: grayscale(0%); /* L'image reprend ses couleurs */
    box-shadow: 0 15px 40px rgba(10, 36, 68, 0.25);
}

/* Typographie Membre */
.team-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.team-role {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 20px;
    display: block;
}

.team-bio {
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* Réseaux sociaux */
.team-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f4f4f4;
    color: var(--primary-color);
    text-decoration: none;
    transition: 0.3s;
    margin-right: 10px;
    border: 1px solid transparent;
}

.team-social a:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Ajustement pour le mobile pour éviter que le cadre doré ne sorte de l'écran */
@media (max-width: 768px) {
    .team-img-wrapper::after {
        bottom: -15px;
        right: -15px;
    }
    .team-img {
        height: 400px;
    }
}