/* Font face for Cormorant Garamond */
@font-face {
    font-family: "Cormorant Garamond";
    src: url("../assets/CormorantGaramond-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* CSS Variables for colors */
:root {
    --color-white: #ffffff;
    --color-grey-light: #f5f5f5;
    --color-grey-dark: #333333;
    --color-black: #000000;
    --color-bordeaux: #800020;
}

/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Cormorant Garamond", serif;
    margin: 0;
    padding: 0;
    background-color: var(--color-white);
    color: var(--color-black);
    line-height: 1.6;
}

/* Force Cormorant Garamond everywhere */
body,
* {
    font-family: "Cormorant Garamond", serif !important;
}

/* --- Style du Header --- */
.site-header {
    position: fixed; /* Le menu reste en haut lors du scroll */
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(
        255,
        255,
        255,
        0.95
    ); /* Fond blanc légèrement transparent */
    padding: 20px 0; /* Espace autour du menu */
    z-index: 1000; /* S'assure que le menu est au-dessus de tout */
    transition: box-shadow 0.3s ease;
}

/* Ajoute une ombre légère lors du scroll (via JS si besoin) */
.site-header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar {
    display: flex;
    justify-content: space-between; /* Pousse le logo à gauche et le menu à droite */
    align-items: center; /* Centre verticalement */
    padding: 0 50px;
}

/* --- Logo --- */
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
    position: relative;
}

.logo-icon {
    height: 40px; /* Taille du logo */
    width: 40px;
    background-image: url("../assets/logo.png");
    background-size: cover;
    background-position: center;
}

.logo-text {
    font-size: 28px;
    font-weight: 700; /* Gras */
    color: var(--color-black); /* Noir */
    text-transform: uppercase; /* Optionnel, selon votre préférence */
    letter-spacing: 1px;
}

/* --- Liens du Menu --- */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px; /* Espace entre les liens */
    align-items: center;
}

.nav-link {
    text-decoration: none;
    font-size: 20px; /* Taille lisible pour Cormorant Garamond */
    color: var(--color-grey-dark); /* Gris très foncé / Noir */
    font-weight: 500;
    transition: color 0.3s ease;
    min-height: 44px;
    padding: 12px 8px;
    display: inline-block;
    touch-action: manipulation;
}

.nav-link:hover {
    color: var(
        --color-bordeaux
    ); /* Changement de couleur au survol (Bordeaux) */
}

/* --- Style spécifique pour "Contact" (comme sur l'exemple) --- */
.contact-btn {
    color: var(--color-black); /* Texte noir */
    font-weight: 700; /* Plus gras */
}

/* --- Sélecteur de langue --- */
.lang-selector select {
    font-size: 16px;
    color: #ccc;
    background: transparent;
    border: none;
    font-family: "Cormorant Garamond", serif;
}

/* --- Mobile-first responsive --- */
.hamburger {
    display: block;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-grey-dark);
}

.nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--color-white);
    width: 100%;
    text-align: center;
    padding: 20px 0;
    gap: 20px;
    transition: 0.3s;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.nav-menu.active {
    left: 0;
}

@media (min-width: 769px) {
    .hamburger {
        display: none;
    }

    .nav-menu {
        position: static;
        flex-direction: row;
        background-color: transparent;
        width: auto;
        text-align: left;
        padding: 0;
        gap: 40px;
        box-shadow: none;
    }
}

#root {
    min-height: 100vh;
    padding-top: 80px; /* To account for fixed header */
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--color-white);
    z-index: 1000;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav li {
    margin: 0 1rem;
}

nav a {
    text-decoration: none;
    color: var(--color-black);
    font-weight: 400;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--color-bordeaux);
}

/* Sections */
.section {
    padding: 2rem 1rem;
    min-height: auto;
    padding-bottom: 3rem;
}

@media (min-width: 769px) {
    .section {
        padding: 3rem 2rem;
        padding-bottom: 3rem;
    }
}

.section-grey {
    background-color: var(--color-grey-light);
}

.section-white {
    background-color: var(--color-white);
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-black);
}

h1 {
    font-size: clamp(1.5rem, 4vw, 3rem);
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    text-decoration: underline;
    text-underline-offset: 8px;
    text-decoration-thickness: 2px;
}

h3 {
    font-size: clamp(1.4rem, 3vw, 2rem);
}

p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 1rem;
    color: var(--color-black);
}

/* Intro Section */
#intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    min-height: 100vh;
}

.intro-logo-container {
    position: relative;
    margin-bottom: 2rem;
}

#logo-video {
    max-width: 100%;
    height: auto;
}

.shield {
    width: min(200px, 50vw);
    height: min(200px, 50vw);
    background-image: url("../assets/logo.png");
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 2;
}

/* Entities Section - Diamonds */
.entities-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 3rem;
}

@media (min-width: 640px) {
    .entities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (min-width: 1024px) {
    .entities-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6rem;
    }
}

/* Entities Section - Mobile List */
.entities-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 3rem auto 0;
}

.entity-item {
    padding: 16px 12px;
    border: 1px solid var(--color-grey-light);
    border-radius: 8px;
    background-color: var(--color-white);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    text-align: center;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

/* Responsive show/hide for entities */
@media (max-width: 1023px) {
    .entities-grid {
        display: none;
    }
    .entities-list {
        display: block;
    }
}

@media (min-width: 1024px) {
    .entities-list {
        display: none;
    }
    .entities-grid {
        display: grid;
    }
}

.entity-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.middle-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    grid-column: 1 / -1;
}

.diamond {
    width: 188px;
    height: 188px;
    background-color: rgb(200, 200, 200); /* Gris clair */
    transform: rotate(45deg);
    margin: 0 auto;
    border: 5px solid var(--color-bordeaux);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white); /* Texte blanc */
    font-weight: 700; /* Gras */
}

.diamond:nth-child(odd) {
    background-color: var(--color-black);
    color: var(--color-white) !important;
}

.diamond:nth-child(even) {
    background-color: rgb(200, 200, 200);
    color: var(--color-black);
}

.diamond span {
    transform: rotate(-45deg);
    font-size: 1.5rem;
}

/* Services Section */
.services-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .services-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (min-width: 1024px) {
    .services-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

.service-item {
    border: none;
    box-shadow: none;
    border-top: 1px solid #8d1b29;
    background-color: var(--color-white);
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 0;
    padding-right: 20px;
    text-align: left;
    min-height: auto;
}

.service-item h3 {
    color: #000000;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.7rem;
    margin-bottom: 15px;
    cursor: pointer;
    position: relative;
    min-height: 44px;
    padding: 12px 0;
    touch-action: manipulation;
}

.service-item .plus {
    color: #8d1b29;
    font-weight: bold;
    position: absolute;
    right: 0;
    top: 0;
    margin-left: 0;
}

.service-item p {
    color: #666666;
    font-size: 1.3rem;
    line-height: 1.6;
    font-family: "Cormorant Garamond", serif;
    display: none;
}

.service-item.expanded p {
    display: block;
}

/* Contact Section */
.contact-info {
    display: flex;
    gap: 10rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 3rem;
}

.contact-map {
    flex: 1;
}

.contact-text {
    flex: 1;
}

.contact-text p {
    text-align: left;
    font-size: 1.6rem;
}

@media (max-width: 768px) {
    .contact-info {
        flex-direction: column;
    }
}

/* Additional responsive adjustments */
nav ul {
    flex-direction: column;
    gap: 0.5rem;
}

/* Footer */
.footer {
    padding: 2rem 1rem;
    background-color: var(--color-white);
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: var(--color-grey-dark);
}

.footer a {
    color: var(--color-bordeaux);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Legal and Privacy Pages */
.legal-section, .privacy-section {
    padding: 5rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.legal-section p, .privacy-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.legal-section a, .privacy-section a {
    color: var(--color-bordeaux);
    text-decoration: none;
}

.legal-section a:hover, .privacy-section a:hover {
    text-decoration: underline;
}

/* Utilitaire pour accessibilité et SEO (invisible à l'œil, visible par Google) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
