/* Empêcher le scroll */
html, body {
    height: 100%;
    overflow: hidden;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

p {
    text-align: justify;
}

/* Container principal avec l'image de fond */
.home-container {
    height: 100vh;
    width: 100%;
    background-image: url('/assets/img/home.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Overlay pour améliorer la lisibilité */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-link {
    color: white !important;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin: 0 15px;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 0.8;
}

/* Dropdown on hover */
.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0; /* Pour éviter un petit décalage qui pourrait fermer le menu */
}

.dropdown-menu {
    background-color: rgba(0, 0, 0, 0.9);
    border: none;
}

.dropdown-item {
    color: white;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Contenu central */
.center-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 100%;
    z-index: 5;
}

/* Style du logo SVG */
.logo-container {
    width: 80%;
    max-width: 500px;
    margin: 0 auto 2rem auto;
}

.logo-svg {
    width: 100%;
    height: auto;
}

/* Style du numéro de téléphone */
.phone {
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-top: 1rem;
    font-weight: 300;
    color: white;
    text-decoration: none;
    pointer-events: none;
}

.phone a {
    color: inherit;
    text-decoration: none;
    pointer-events: none;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

@media (max-width: 768px) {
    .logo-container {
        width: 90%;
        max-width: 300px;
    }
    .phone {
        font-size: 1.2rem;
    }
    .navbar-collapse {
        background-color: rgba(0, 0, 0, 0.9);
        padding: 1rem;
    }
}

/* Styles pour la page Histoire */

/* Container pour le scroll snap */
.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Pour le smooth scroll sur iOS */
    position: relative;
}

/* Navigation pour la page histoire */
.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.9);
}

/* Sections */
.section {
    height: 100vh;
    width: 100%;
    position: relative;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    box-sizing: border-box;
    background-color: black;
}

.section-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(1px);
}

.section-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
}

/* Override spécifique pour la section fondateur */
.founder-section .section-content {
    top: 0;
    transform: none;
    height: 100%;
    max-width: none;
    padding: 0;
}

/* Style spécifique pour la section d'intro */
.intro-title {
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 10px;
    text-transform: uppercase;
    margin-bottom: 4rem;
}

/* Animation de scroll */
.scroll-indicator {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    animation: scrollAnimation 2s infinite;
    opacity: 0;
}

.scroll-arrow:nth-child(1) {
    animation-delay: 0s;
}

.scroll-arrow:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes scrollAnimation {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-20px, -20px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(0, 0);
    }
}

/* Section titles */
.section-title {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section-text {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Section Fondateur */
.founder-section {
    min-height: 100vh;
}

.founder-text-container {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.founder-title {
    font-size: 2.5rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.founder-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ffffff;
    margin-bottom: 1rem;
}

.founder-description.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 8; /* Nombre de lignes */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.founder-image-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    min-height: 350px; /* Réduction desktop */
    margin: 0 auto;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
}

/* Responsive */
@media (max-width: 992px) {
    .founder-text-container {
        padding: 2rem !important;
    }
    
    .founder-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .founder-description {
        font-size: 1rem;
        text-align: justify;
    }
    
    .founder-image-container {
        min-height: 250px; /* Réduction tablette */
        max-height: 50vh;
        width: 90%;
    }
}

@media (max-width: 576px) {
    .section-content,
    .section-text,
    .values-content,
    .founder-description,
    .modal-body,
    p {
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box;
        font-size: 0.97rem !important;
    }
    .section-title {
        font-size: 1.5rem !important;
    }
    .founder-section {
        padding: 1rem 0;
    }
    
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .founder-text-container {
        margin-top: 0 !important;
        padding-top: 4rem !important;
    }
    
    .founder-description {
        font-size: 0.95rem;
    }

    .founder-description.truncated {
        display: -webkit-box;
        -webkit-line-clamp: 5; /* Nombre de lignes */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .founder-image-container {
        min-height: 200px; /* Réduction mobile */
        max-height: 40vh;
        width: 100%;
        border-radius: 0;
        margin: 0;
        z-index: 10;
    }
    
    .founder-image-container img {
        object-position: center 30%; /* Recentrage vertical */
    }
    
    .btn-outline-light {
        width: 100%;
        max-width: 300px;
    }
    
    .founder-title {
        display: none;
    }
    
    .signature-img {
        max-width: 100px;
    }
    
    .text-end.mt-1 {
        margin-top: 0 !important;
        margin-bottom: 5px;
    }
}

@media (max-width: 768px) {
    .founder-description.truncated {
        -webkit-line-clamp: 6; /* Moins de lignes sur mobile */
    }
}

/* Section compteurs */
.counters-section .section-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.counters-section h2 {
    font-weight: 300;
    margin-bottom: 1rem;
}

.counters-section p {
    font-size: 1.1rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .counters-section h2 {
        font-size: 2.5rem;
    }
    .counters-section p {
        font-size: 1rem;
    }
}

/* Division vidéo verticale */
.video-split {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
}

.video-container {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Adaptation mobile - empilement vertical */
@media (max-width: 768px) {
    .video-split {
        flex-direction: column;
    }
    
    .video-container {
        flex: none;
        height: 50vh !important;
        width: 100%;
    }
}

/* Scroll fluide */
html {
    scroll-behavior: smooth;
}

/* Désactive le scroll manuel pendant l'animation */
.scroll-container:not(:focus):not(:active) {
    scroll-behavior: smooth;
}

/* Animation des compteurs */
.count {
    display: inline-block;
    min-width: 60px;
}

.counters-section .display-4 {
    transition: opacity 0.3s ease;
}

/* Compteurs revisités */
.counter-title {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.counters-section .display-4 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

@media (max-width: 768px) {
    .counter-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .counters-section .display-4 {
        font-size: 2.5rem;
    }
}

/* Carrousel partenaires */
.partner-logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    padding: 20px;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.carousel-item {
    padding: 40px 0;
}

/* Adaptation mobile */
@media (max-width: 768px) {
    .partner-logo {
        max-width: 200px;
        padding: 15px;
    }
    
    .carousel-item {
        padding: 20px 0;
    }
}

@media (max-width: 480px) {
    .partner-logo {
        max-width: 150px;
    }
}

/* Section Valeurs */
.values-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
}

.values-text {
    color: #fff;
}

.values-list {
    margin: 2rem 0;
}

.value-item {
    padding: 1.5rem;
    margin: 1rem 0;
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid #ffffff;
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateX(10px);
}

.value-title {
    margin: 0;
    font-size: 1.4rem;
}

.values-subtitle {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .values-content {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .value-item {
        padding: 1rem;
        margin: 0.5rem 0;
    }
    
    .value-title {
        font-size: 1.2rem;
    }
    
    .values-subtitle {
        font-size: 1.3rem;
        text-align: center;
    }
    
    .values-text .lead {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .values-content {
        padding: 1rem;
    }
    
    .value-item {
        border-left-width: 3px;
    }
}

.counters-section .section-title {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 3rem !important;
}

@media (max-width: 768px) {
    .counters-section .section-title {
        font-size: 2rem;
        margin-bottom: 2rem !important;
    }
}

@media (max-width: 480px) {
    .counters-section .section-title {
        font-size: 1.5rem;
    }
}

/* Desktop version */
@media (min-width: 992px) {
    .founder-image-container {
        height: 100vh;
        width: 100%;
        min-height: auto;
        border-radius: 0;
    }
    
    .founder-image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .founder-text-container {
        width: 100%;
    }
    
    .founder-title {
        font-size: 3rem;
    }
    
    .founder-description {
        font-size: 1.2rem;
        /* max-width: 600px; */
    }
}

/* Version mobile/tablette */
@media (max-width: 991px) {
    .founder-image-container {
        height: 50vh !important; /* Hauteur fixe */
        min-height: 300px; /* Hauteur minimale */
        width: 100%;
        margin: 0;
        position: relative;
    }
    
    .founder-image-container img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
    
    .founder-text-container {
        margin-top: -2rem;
        position: relative;
        z-index: 2;
    }
}

/* Validation de la solution */
@media (min-width: 992px) {
    .h-lg-100 {
        height: 100% !important;
    }
}

@media (max-width: 991px) {
    .h-50 {
        height: 50vh !important;
        min-height: 300px;
    }
    
    .founder-text-container {
        height: auto;
        margin-top: 6rem;
    }
}

/* Style des boutons modales */
.read-more-btn,
.btn-outline-light {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid white !important;
    color: white !important;
    padding: 12px 30px;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.read-more-btn:hover,
.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.read-more-btn::after,
.btn-outline-light::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: 0.5s;
}

.read-more-btn:hover::after,
.btn-outline-light:hover::after {
    left: 100%;
}

/* Mobile */
@media (max-width: 768px) {
    .read-more-btn,
    .btn-outline-light {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

/* Style du modal */
.modal-content {
    background-color: #121212;
    color: white;
}

.modal-header {
    padding: 1.5rem 2rem;
}

.modal-body {
    padding: 2rem;
}

.modal-title {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.modal img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.modal h6 {
    font-weight: 300;
    letter-spacing: 1px;
    color: #888;
}

.modal ul li {
    margin-bottom: 0.5rem;
}

.modal ul li strong {
    color: #888;
}

/* Style pour la signature */
.signature-img {
    max-width: 120px;
    height: auto;
    margin-top: -5px;
}

@media (max-width: 375px) {
    .signature-img {
        max-width: 80px;
    }
}

/* Ajout pour encore plus petit */
@media (max-width: 400px) {
    .signature-img {
        max-width: 70px;
        height: auto;
    }
}
@media (max-width: 350px) {
    .signature-img {
        max-width: 60px;
        height: auto;
    }
}

/* Animation du logo dans la section fondateur */
.animated-logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.animated-logo {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    transform: scale(0.5);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animated-logo-container.active {
    opacity: 1;
}

.animated-logo-container.active .animated-logo {
    transform: scale(1);
}

/* Animation du logo de la navbar */
.navbar-brand {
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar-brand.hidden {
    opacity: 0;
}

/* Responsive pour l'animation du logo */
@media (max-width: 768px) {
    .animated-logo {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .animated-logo {
        height: 30px;
    }
}

/* Section Nos métiers - Grille 4 colonnes */
.metiers-grid-container {
    height: 100vh;
    width: 100%;
    display: flex;
}

.metier-column {
    width: 25%;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.metier-column:hover {
    transform: scale(1.02);
    z-index: 2;
}

.metier-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease;
}

.metier-column:hover .metier-bg {
    transform: scale(1.05);
}

.metier-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.7) 100%);
    transition: all 0.3s ease;
}

.metier-column:hover .metier-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.5) 100%);
}

.metier-content {
    position: relative;
    z-index: 3;
    max-width: 90%;
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.metier-column:hover .metier-content {
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-10px);
}

.metier-title {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.metier-column:hover .metier-title {
    font-size: 1.7rem;
}

.metier-description {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: justify;
    transition: all 0.3s ease;
}

.metier-column:hover .metier-description {
    color: rgba(255, 255, 255, 1);
}

.btn-metier {
    background: rgba(160, 122, 88, 0.9);
    border: 2px solid rgba(160, 122, 88, 1);
    color: white;
    padding: 8px 20px;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-metier::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-metier:hover {
    background: rgba(160, 122, 88, 1);
    border-color: rgba(160, 122, 88, 1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: white;
}

.btn-metier:hover::before {
    left: 100%;
}

/* Animation d'entrée */
.metier-column {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.metier-column:nth-child(1) { animation-delay: 0.1s; }
.metier-column:nth-child(2) { animation-delay: 0.2s; }
.metier-column:nth-child(3) { animation-delay: 0.3s; }
.metier-column:nth-child(4) { animation-delay: 0.4s; }

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

/* Responsive */
@media (max-width: 992px) {
    .metier-title {
        font-size: 1.3rem;
    }
    
    .metier-column:hover .metier-title {
        font-size: 1.5rem;
    }
    
    .metier-description {
        font-size: 0.8rem;
    }
    
    .metier-content {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .metiers-grid-container {
        flex-direction: column;
    }
    
    .metier-column {
        width: 100%;
        height: 25vh;
    }
    
    .metier-column:hover {
        transform: none;
    }
    
    .metier-content {
        padding: 1rem;
        max-width: 95%;
    }
    
    .metier-title {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .metier-column:hover .metier-title {
        font-size: 1.2rem;
    }
    
    .metier-description {
        font-size: 0.75rem;
        margin-bottom: 1rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .btn-metier {
        padding: 6px 15px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .metier-content {
        padding: 15px 20px;
    }
    
    .metier-title {
        font-size: 1.2rem;
    }
    
    .metier-description {
        font-size: 0.85rem;
    }
    
    .btn-metier {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* Section Métiers - Panneaux extensibles */
#metiers {
    padding: 0;
    overflow: hidden;
    background-color: #1a1a1a;
}

.metiers-panels {
    display: flex;
    width: 100%;
    height: 100%;
    gap: 5px;
}

.metier-panel {
    flex: 1;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.6s ease-out;
    border-radius: 16px;
}

.metier-panel-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #333;
    filter: grayscale(1);
    transform: scale(1.05) translateZ(0);
    transition: filter 0.3s ease-out, transform 0.3s ease-out;
    will-change: filter, transform;
    opacity: 0;
}

.metier-panel-bg.loaded {
    opacity: 1;
    transition: opacity 0.5s ease-out, filter 0.3s ease-out, transform 0.3s ease-out;
}

.metier-panel:hover .metier-panel-bg {
    filter: grayscale(0);
    transform: scale(1) translateZ(0);
}

.metier-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    transition: background-color 0.5s ease;
    z-index: 1;
}

.metier-panel:hover::after {
    background-color: rgba(0, 0, 0, 0.2);
}

.metier-panel-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: white;
    z-index: 2;
}

.metier-panel-title,
.metier-panel-btn {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    will-change: opacity, transform;
}

.metier-panel:hover .metier-panel-title,
.metier-panel:hover .metier-panel-btn {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.metier-panel:hover .metier-panel-title {
    transition-delay: 0.2s;
}

.metier-panel:hover .metier-panel-btn {
    transition-delay: 0.3s;
}

.metier-panel-title {
    font-size: 2.2rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 1rem 0;
}

.metier-panel-btn {
    display: inline-block;
}

@media (max-width: 768px) {
    .metiers-panels {
        flex-direction: column;
        gap: 2px;
    }
    .metier-panel {
        flex: 1 !important;
        border-radius: 0;
    }
    .metier-panel-bg {
        filter: grayscale(0.3);
        transform: scale(1) translateZ(0);
    }
    .metier-panel:hover .metier-panel-bg {
        filter: grayscale(0);
    }
    .metier-panel-content {
        bottom: 20px;
        left: 20px;
        right: 20px;
        text-align: left;
        background: rgba(0,0,0,0.4);
        padding: 15px;
        border-radius: 5px;
    }
    .metier-panel-title,
    .metier-panel-btn {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
    .metier-panel-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    .metier-panel::after {
        background-color: rgba(0, 0, 0, 0.3);
    }
}

/* Styles pour la page Réalisations */

body.realisations {
    background-color: black;
}

/* Container pour la mosaïque */
.mosaic-container {
    position: absolute;
    top: 80px; /* Hauteur de la navbar */
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
    background-color: black;
}

/* Style des éléments de la mosaïque */
.mosaic-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mosaic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
    text-align: center;
    padding: 1rem;
}

.mosaic-item:hover img {
    transform: scale(1.05);
}

.mosaic-item:hover .mosaic-overlay {
    opacity: 1;
}

.mosaic-title {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mosaic-subtitle {
    font-size: 1rem;
    opacity: 0.8;
}

/* Style pour mobile (Réalisations) */
@media (max-width: 768px) {
    .mosaic-container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }
}

/* Styles pour la page Contact */

.contact-page .main-container {
    position: relative;
    height: 100vh;
    width: 100%;
}

.contact-page .background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/assets/img/contact.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(4px);
    z-index: 1;
}

.contact-page .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.contact-page .content {
    position: relative;
    z-index: 3; /* Au-dessus de l'overlay */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 90%;
    max-width: 500px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin: 10px;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    width: 100%;
}

.contact-btn:hover {
    background-color: white;
    color: black;
    transform: translateY(-2px);
}

.contact-btn i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.contact-info {
    margin-top: 3rem;
    font-size: 1.1rem;
}

.contact-info a {
    color: white;
    text-decoration: none;
    margin: 10px 0;
    display: block;
    transition: opacity 0.3s ease;
}

.contact-info a:hover {
    opacity: 0.8;
}

.contact-info i {
    margin-right: 10px;
}

@media (max-width: 768px) {
    .contact-page .content {
        width: 95%;
        padding: 0 20px;
    }
}