/* ==========================================================================
   CSS Variables & Reset 
   ========================================================================== */
:root {
    --primary-color: #1c2448;
    /* Blue from logo */
    --accent-color: #d1bfae;
    /* Elegant beige/gold */
    --text-main: #333333;
    --text-light: #ffffff;
    --text-muted: #4a4a4a;
    --bg-light: #f7f5f0;
    /* Off-white premium bg */
    --bg-dark: #1c2448;
    /* Blue from logo */
    --border-color: #e5e5e5;

    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;

    --transition-standard: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --container-max-width: 1400px;
    /* Wider for that premium airy feel */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --spacing-xxl: 8rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-standard);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Typography Utilities */
.section-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    text-align: center;
    margin-bottom: var(--spacing-sm);
    font-weight: 400;
}

.section-description {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
    font-family: var(--font-body);
    font-weight: 300;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition-standard);
    padding: var(--spacing-sm) 0;
}

.site-header.scrolled {
    background-color: var(--bg-dark);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.lang-selector {
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    z-index: 1001;
}

.lang-selector a {
    opacity: 0.6;
    transition: opacity 0.3s;
}

.lang-selector a.active,
.lang-selector a:hover {
    opacity: 1;
}

.logo-link {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
}

.logo-img {
    height: 35px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: var(--transition-standard);
}

.site-header.scrolled .logo-img {
    height: 30px;
}

.menu-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1001;
}

.menu-label {
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

.mobile-menu-toggle {
    display: block;
    /* Always show, replacing standard nav */
    background: transparent;
    border: none;
    cursor: pointer;
    width: 25px;
    height: 16px;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    /* Thinner lines for luxury feel */
    background-color: var(--text-light);
    position: absolute;
    left: 0;
    transition: var(--transition-standard);
}

.mobile-menu-toggle span:nth-child(1) {
    top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 7px;
}

.mobile-menu-toggle span:nth-child(3) {
    top: 14px;
}

/* Active Menu Toggle State */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 7px;
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 7px;
}

/* Fullscreen Nav Overlay */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1000;
}

.main-nav.active {
    opacity: 1;
    visibility: visible;
}

.nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    transform: translateY(30px);
    transition: transform 0.5s ease;
}

.main-nav.active .nav-list {
    transform: translateY(0);
}

.nav-link {
    color: var(--text-light);
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.4s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-dark);
    overflow: hidden;
    text-align: center;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(to bottom, rgba(11, 28, 45, 0.4), rgba(11, 28, 45, 0.9)),
        url('assets/capitole.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 0;
    -webkit-animation: backgroundZoom 12s infinite alternate ease-in-out;
    animation: backgroundZoom 12s infinite alternate ease-in-out;
    -webkit-transform: scale(1);
    transform: scale(1);
    transform-origin: center center;
}

@-webkit-keyframes backgroundZoom {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }

    100% {
        -webkit-transform: scale(1.1);
        transform: scale(1.1);
    }
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-text-wrapper {
    max-width: 900px;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1;
    font-weight: 400;
    letter-spacing: -1px;
}

.hero-title i {
    font-style: italic;
    color: var(--text-light);
    /* Keep white for the elegant look */
    font-weight: 300;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 3rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid var(--text-light);
    border-radius: 0;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition-standard);
}

.btn-primary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

.emergency-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.emergency-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.emergency-number {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 1px;
}

.emergency-number:hover {
    color: #ffffff;
}


/* ==========================================================================
   Expertises Section
   ========================================================================== */
.expertises-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--bg-light);
}

.expertises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2px;
    /* Super thin borders between blocks */
    background-color: var(--border-color);
    /* Creates the grid lines */
    border: 1px solid var(--border-color);
}

.expertise-card {
    background: var(--bg-light);
    padding: var(--spacing-xl) var(--spacing-lg);
    transition: var(--transition-standard);
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    min-height: 400px;
    justify-content: center;
}

.expertise-card:hover {
    background-color: #ffffff;
}

.expertise-icon {
    display: none;
    /* Removing emojis for a premium editorial look */
}

.expertise-title {
    font-size: 2.2rem;
    margin-bottom: var(--spacing-md);
    font-weight: 400;
    color: var(--primary-color);
}

.expertise-text {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ==========================================================================
   Team Section
   ========================================================================== */
.team-section {
    padding: var(--spacing-xl) 0;
    background-color: #ffffff;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.team-image-wrapper {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.team-image {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4/5;
    background-color: transparent;
}

/* Premium image accent */
.team-image-wrapper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 1px solid var(--accent-color);
    z-index: -1;
}

.team-info {
    padding-left: var(--spacing-md);
}

.team-name {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 5px;
}

.team-role {
    font-family: var(--font-body);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
}

.team-bio p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

.team-bio h4 {
    font-size: 1.5rem;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.education-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.education-list li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* ==========================================================================
   Values Section
   ========================================================================== */
.values-section {
    padding: var(--spacing-xl) 0;
    background-color: #081420;
    color: var(--text-light);
}

.values-section .section-title,
.values-section .section-description {
    color: var(--text-light);
}

.values-section .section-description {
    opacity: 0.8;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

.value-item {
    text-align: center;
    padding: var(--spacing-md);
    transition: var(--transition-standard);
    border-radius: 8px;
}

.value-item:hover {
    transform: translateY(-10px) scale(1.02);
    background-color: rgba(255, 255, 255, 0.03);
}

.value-title {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
}

.value-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: var(--spacing-xl) 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
}

.brand-col p {
    color: rgba(255, 255, 255, 0.8);
    margin-top: var(--spacing-sm);
    max-width: 300px;
}

.footer-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    margin-bottom: var(--spacing-md);
    filter: brightness(0) invert(1);
}

.footer-heading {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.contact-list li {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    margin-bottom: 2px;
}

.contact-list a,
.contact-list address {
    color: rgba(255, 255, 255, 0.8);
    font-style: normal;
    transition: var(--transition-standard);
}

.contact-list a:hover {
    color: var(--text-light);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-standard);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.social-links {
    margin-top: var(--spacing-sm);
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 1.1rem;
    transition: var(--transition-standard);
}

.social-links a:hover {
    background-color: #3b82f6;
    /* Bleu ciel Antigravity */
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md) 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .team-info {
        padding-left: 0;
    }

    .team-image-wrapper {
        margin-right: 20px;
        /* Space for the pseudo element */
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-xl: 4rem;
        --spacing-md: 1.5rem;
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition-standard);
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active .nav-list {
        right: 0;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 10px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg);
        top: 9px;
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg);
        top: 9px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--spacing-md);
    }

    .hero-subtitle {
        display: none;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}