/* Import Museo fonts */
@font-face {
    font-family: 'Museo';
    src: url('fronts/Museo300-Regular.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Museo';
    src: url('fronts/Museo700-Regular.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Utiliser font-weight: 500 pour les poids intermédiaires, avec Museo700 */
@font-face {
    font-family: 'Museo';
    src: url('fronts/Museo700-Regular.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* CSS Variables for consistent theming */
:root {
    --primary-color: #8B1538; /* Rouge bordeaux profond */
    --secondary-color: #4A4A4A; /* Gris anthracite */
    --text-color: #333333;
    --light-gray: #F8F9FA;
    --white: #FFFFFF;
    --black: #000000;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Museo', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Museo', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.8rem;
    line-height: 1.4;
}

p {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    z-index: 1000;
    padding: 0.7rem 0;
    transition: all 0.3s ease;
    box-shadow: none;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

/* Navbar text colors */
.navbar .nav-link {
    color: var(--white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.navbar.scrolled .nav-link {
    color: var(--text-color);
    text-shadow: none;
}

.navbar .nav-link:hover {
    color: var(--primary-color);
    text-shadow: none;
}

.navbar.scrolled .nav-link:hover {
    color: var(--primary-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo {
    position: relative;
}

.logo-img {
    height: 55px;
    width: auto;
    transition: var(--transition);
}

/* Logo avec ses couleurs d'origine et ombre blanche plus intense pour visibilité sur fond foncé */
.navbar .logo-img {
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.9)) 
           drop-shadow(0 0 6px rgba(255, 255, 255, 0.8)) 
           drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

/* Logo sans ombre lorsque la navbar est scrollée */
.navbar.scrolled .logo-img {
    filter: none;
}

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

.nav-logo h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

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

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

.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--white);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
}

.navbar.scrolled .lang-btn {
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    backdrop-filter: none;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    transform: translateY(-2px);
    border-color: var(--white);
}

.lang-btn.active {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.navbar.scrolled .lang-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.navbar.scrolled .lang-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: var(--transition);
}

.navbar.scrolled .bar {
    background: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 85vh;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.hero .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 85vh;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 85vh;
    pointer-events: none; /* Ne pas capturer les clics, laisser passer aux enfants */
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
    z-index: 1;
    pointer-events: none; /* CRITIQUE : Ne pas bloquer les clics sur les boutons */
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
    pointer-events: auto; /* Réactiver les clics pour les enfants */
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
    position: relative;
    z-index: 10; /* Au-dessus de l'overlay (z-index: 1) */
    padding: 2rem;
    min-height: 70vh;
    pointer-events: none; /* Laisser passer les clics */
}

.hero-text {
    animation: fadeInLeft 1s ease-out;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 50; /* Au-dessus de l'overlay */
    text-align: center;
    width: 100%;
    pointer-events: none; /* Laisser passer les clics aux boutons */
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 3;
}

.indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 0 10px rgba(139, 21, 56, 0.2);
}

.indicator:hover {
    border-color: rgba(255, 255, 255, 1);
    transform: scale(1.2);
    background: rgba(139, 21, 56, 0.3);
}

.indicator.active {
    background: var(--primary-color);
    border-color: var(--white);
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(139, 21, 56, 0.5);
}

.hero-title {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none; /* Ne pas bloquer les clics */
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 2.5rem;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    pointer-events: none; /* Ne pas bloquer les clics */
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 100; /* Garantir que les boutons sont toujours au-dessus de l'overlay */
    pointer-events: auto; /* CRITIQUE : Réactiver les clics pour les boutons */
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    text-shadow: none;
}

.btn-service {
    background: linear-gradient(135deg, var(--primary-color) 0%, #a91d47 100%);
    color: var(--white);
    padding: 0.8rem 1.8rem;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(139, 21, 56, 0.3);
    border: 2px solid transparent;
    border-radius: 50px;
    height: 46px; /* Hauteur fixe pour uniformité */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.btn-service:hover {
    background: linear-gradient(135deg, #a91d47 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 21, 56, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 0.8rem 1.8rem;
    margin-left: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
    border-radius: 50px;
    height: 46px; /* Même hauteur que btn-service */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.service-contact {
    margin-top: 1.5rem !important;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.btn-primary {
    background: rgba(139, 21, 56, 0.9);
    color: var(--white);
    box-shadow: none;
    border: none;
    font-weight: 500;
    border-radius: 50px;
}

.btn-primary:hover {
    background: rgba(139, 21, 56, 1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: transparent !important;
    color: var(--white) !important;
    border: 3px solid var(--white) !important;
    padding: 1rem 3rem !important;
    border-radius: 50px !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.2) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
    border-width: 3px !important;
    box-shadow: none !important;
}

.hero-image {
    position: relative;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
    animation: fadeInRight 1s ease-out;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.before-after-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.before-after-label {
    position: absolute;
    padding: 1rem 2rem;
    background: rgba(139, 21, 56, 0.9);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    z-index: 2;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.before-after-label.before {
    top: 30px;
    left: 30px;
}

.before-after-label.after {
    bottom: 30px;
    right: 30px;
}

/* Add a visual separator or content to the before-after container */
.before-after-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(139, 21, 56, 0.1);
    border: 3px solid rgba(139, 21, 56, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.before-after-container::after {
    content: '⟷';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
}

/* Section Styles */
section {
    padding: 3rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.section-title-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) saturate(100%);
    flex-shrink: 0;
}

.section-description {
    font-size: 1.2rem;
    color: var(--secondary-color);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* About Section */
.about {
    background: var(--light-gray);
    background-image: url('images/archi.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    position: relative;
    padding: 4rem 0 6rem 0;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(240, 240, 240, 0.85);
    z-index: 1;
}

.about .container {
    position: relative;
    z-index: 2;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem 2rem;
    border-radius: 40px;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

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

.about-card:hover h3 {
    color: var(--primary-color);
}

.about-icon {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    display: block;
    transition: all 0.3s ease;
}

.about-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.about-list {
    list-style: none;
}

.about-list li {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.about-card p {
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1.05rem;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

/* Services Section */
.services {
    background: #1A1A1A;
    padding: 6rem 0 5rem 0;
}

.services .section-title {
    color: var(--primary-color);
}

.services .section-description {
    color: rgba(255, 255, 255, 0.9);
}

.services .service-content-left h3,
.services .service-content-right h3 {
    color: var(--white);
}

.services .service-subtitle {
    color: var(--primary-color);
}

.services .service-content-left p,
.services .service-content-right p {
    color: rgba(255, 255, 255, 0.9);
}

.services .service-content-left p:not(.service-subtitle),
.services .service-content-right p:not(.service-subtitle) {
    color: rgba(255, 255, 255, 0.95);
}

.services .service-icon img {
    /* Suppression du filtre pour avoir l'icône en couleur */
    filter: none;
}

.services-stack {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
}



.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: transparent;
    border-radius: 0;
    padding: 3rem 0;
    box-shadow: none;
    transition: var(--transition);
    position: relative;
    overflow: visible;
    border-bottom: 1px solid rgba(139, 21, 56, 0.1);
}

.service-item:hover {
    transform: none;
    box-shadow: none;
}

.service-item:last-child {
    border-bottom: none;
}

/* Remove staggered effect - clean layout */
.service-item[data-height="standard"],
.service-item[data-height="tall"],
.service-item[data-height="medium"] {
    min-height: auto;
    margin-left: 0;
    margin-top: 0;
}

.service-content-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 2rem;
}

.service-content-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 2rem;
    align-items: flex-start;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}

.service-icon img {
    display: block;
}

.service-content-left h3,
.service-content-right h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-align: left;
    width: 100%;
}

.service-subtitle {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.service-content-left p:not(.service-subtitle),
.service-content-right p:not(.service-subtitle) {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.service-images-right,
.service-images-left {
    position: relative;
    display: flex;
    align-items: center;
    /* Suppression de la transition pour rendre les images statiques */
    transition: none;
    overflow: hidden;
}

/* Animation des images supprimée pour qu'elles restent statiques */
.service-item .service-images-right,
.service-item .service-images-left {
    transform: translateY(0);
    opacity: 1;
}

.service-reverse {
    direction: ltr;
}

.image-gallery {
    position: relative;
    width: 100%;
    height: 400px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
}

.gallery-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 25px;
}

/* Effet de survol supprimé */

.main-image {
    grid-row: 1 / 3;
    grid-column: 1;
}

.secondary-image {
    grid-row: 1;
    grid-column: 2;
}

.tertiary-image {
    grid-row: 2;
    grid-column: 2;
}

/* Special layout for construction service (only 2 images) */
.service-item[data-height="tall"] .image-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.service-item[data-height="tall"] .main-image {
    grid-row: 1 / 3;
    grid-column: 1;
}

.service-item[data-height="tall"] .secondary-image {
    grid-row: 1 / 3;
    grid-column: 2;
}

/* Why Choose Us Section */
.why-choose-us {
    background: var(--white);
    background-image: url('images/Sy.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding: 5rem 0;
}

.why-choose-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.92);
    z-index: 1;
}

.why-choose-us .container {
    position: relative;
    z-index: 2;
}

.why-choose-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-choose-text {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 40px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.why-choose-text:hover {
    transform: translateY(-5px);
}

.why-choose-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.why-choose-list li {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    padding-left: 30px;
    position: relative;
    transition: transform 0.3s ease;
}

.why-choose-list li:hover {
    transform: translateX(5px);
}

.team-image-placeholder {
    height: 400px;
    background-image: url('/images/team-altimum.png');
    background-size: cover;
    background-position: center;
    border-radius: 40px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: none; /* Suppression de la transition pour éviter les animations */
}

/* Effet de survol supprimé */
.team-image-placeholder:hover {
    transform: none;
}

/* Commitments Section */
.commitments {
    background: var(--primary-color); /* Rouge bordeaux profond */
    color: var(--white);
    background-position: center;
    background-size: cover;
    position: relative;
    padding: 5rem 0;
}

/* Overlay supprimé car fond déjà noir */
.commitments::before {
    content: none;
}

.commitments .container {
    position: relative;
    z-index: 2;
}

.commitments .section-description {
    color: rgba(255, 255, 255, 0.9);
}

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

.commitments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.commitment-card {
    background: rgba(107, 14, 41, 0.8); /* Teinte plus sombre du bordeaux primaire */
    padding: 2.5rem 2rem;
    border-radius: 40px;
    text-align: center;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: none;
}

.commitment-card:hover {
    transform: translateY(-8px);
    box-shadow: none;
}

.commitment-icon {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    display: block;
    transition: all 0.3s ease;
}

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

.commitment-card h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.commitment-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-size: 1.05rem;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

/* Values Section */
.values {
    background: #1A1A1A;
    padding: 5rem 0;
    color: var(--white);
}

.values .section-title {
    color: var(--primary-color);
}

.values .section-description {
    color: rgba(255, 255, 255, 0.9);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.value-card {
    background: rgba(30, 30, 30, 0.9);
    padding: 2.5rem 2rem;
    border-radius: 40px;
    border: none;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: none;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: none;
}

.value-icon {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    display: block;
    transition: all 0.3s ease;
}

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

.value-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.value-card p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    font-size: 1.05rem;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

/* Partners Section */
.partners {
    background: var(--white);
    background-image: url('images/Sy.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding: 5rem 0;
}

.partners::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.92);
    z-index: 1;
}

.partners .container {
    position: relative;
    z-index: 2;
}

.partners .section-title {
    color: var(--primary-color);
}

.partners .section-description {
    color: var(--secondary-color);
}

.partners-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.partners-list {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 40px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.partners-list:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.partners-list ul {
    list-style: none;
}

.partners-list li {
    color: var(--secondary-color);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding-left: 5px;
    position: relative;
}

.partners-list li:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.synergy-block {
    background: var(--primary-color);
    padding: 2.5rem 2rem;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    color: var(--white);
}

.synergy-block:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.synergy-block h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
}

.synergy-block p {
    color: var(--white);
    line-height: 1.7;
    font-size: 1.05rem;
}

.synergy-list {
    list-style: none;
}

.synergy-list li {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
}

.synergy-list li:hover {
    transform: translateX(5px);
    color: var(--white);
}

/* Contact Section */
.contact {
    background: #1A1A1A;
    padding: 5rem 0;
    color: var(--white);
}

.contact .section-description {
    color: rgba(255, 255, 255, 0.9);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    background: rgba(30, 30, 30, 0.9);
    padding: 2.5rem 2rem;
    border-radius: 40px;
    border: none;
    box-shadow: none;
    transition: box-shadow 0.3s ease;
    position: relative;
}

.contact-info:hover {
    box-shadow: 0 8px 30px rgba(139, 21, 56, 0.2);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item:hover {
    color: var(--primary-color);
}

.contact-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
}

.contact-form {
    background: rgba(30, 30, 30, 0.9);
    padding: 2.5rem 2rem;
    border-radius: 40px;
    box-shadow: none;
    border: none;
    position: static;
}

.contact-form:hover {
    box-shadow: 0 8px 30px rgba(139, 21, 56, 0.2);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(40, 40, 40, 0.9);
    color: rgba(255, 255, 255, 0.9);
    transition: border-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    opacity: 0;
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    opacity: 0;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--secondary-color);
    transition: top 0.2s ease, left 0.2s ease, font-size 0.2s ease, color 0.2s ease;
    pointer-events: none;
    background: transparent;
    padding: 0;
    z-index: 0;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group select:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label,
.form-group select:not([value=""]) + label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.8rem;
    color: var(--primary-color);
    z-index: 1;
}

.cta-final {
    text-align: center;
    margin-top: 3rem;
    padding: 40px;
    background: rgba(30, 30, 30, 0.9);
    border-radius: var(--border-radius);
    box-shadow: none;
    border: none;
}

.cta-final p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    line-height: 1.6;
    margin: 0;
}

/* Présentation Download Section */
.brochure-section {
    background: var(--primary-color);
    padding: 4rem 0;
    position: relative;
    color: var(--white);
}

.brochure-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.brochure-text {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.brochure-icon {
    color: var(--white);
    width: 48px;
    height: 48px;
}

.brochure-text h3 {
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.brochure-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.brochure-download {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.language-versions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 300px;
}

.btn-brochure {
    background: transparent;
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--white);
    box-shadow: none;
    cursor: pointer;
}

.btn-brochure:hover {
    background: transparent;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.8);
    color: rgba(255, 255, 255, 0.8);
}

.btn-brochure svg {
    transition: transform 0.3s ease;
}

.btn-brochure:hover svg {
    transform: translateY(2px);
}

.file-info {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Footer */
.footer {
    background: #121212;
    color: var(--white);
    padding: 2.5rem 0 1.5rem;
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 2rem;
}

.footer-logo h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.4;
    font-style: italic;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.social-links {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-icon:hover {
    color: var(--white);
    transform: scale(1.15);
}

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

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Suppression des animations des items de service pour qu'ils restent statiques */
.service-item.fade-in {
    opacity: 1;
    transition: none;
    position: relative;
}

/* Suppression des animations from-left et from-right */
.service-item.fade-in.from-left,
.service-item.fade-in.from-right {
    transform: translateX(0);
    opacity: 1;
}

.service-item.fade-in.from-left.visible,
.service-item.fade-in.from-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Modern keyframe animations - No 3D */
@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    50% {
        opacity: 0.8;
        transform: translateX(5px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    50% {
        opacity: 0.8;
        transform: translateX(-5px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Removing keyframe animations in favor of transitions */
.service-item.fade-in.from-left.visible,
.service-item.fade-in.from-right.visible {
    animation: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fade-in {
        opacity: 1;
        transform: translateY(0);
    }
    
    .service-item.fade-in,
    .service-item.fade-in.from-left,
    .service-item.fade-in.from-right {
        opacity: 1;
        transform: translateX(0) translateY(0) scale(1);
        animation: none;
    }
    .hamburger {
        display: flex;
    }
    
    .hamburger .bar {
        background: var(--white);
    }
    
    .navbar.scrolled .hamburger .bar {
        background: var(--primary-color);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        padding: 2rem 0;
        z-index: 1000;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu .nav-link {
        color: var(--primary-color) !important;
        font-size: 1.1rem;
        font-weight: 500;
        padding: 1rem 2rem;
        margin: 0.2rem 0;
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(139, 21, 56, 0.1);
        text-shadow: none;
    }
    
    .nav-menu .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-menu .nav-link:hover {
        color: var(--white) !important;
        background: var(--primary-color);
        border-radius: 8px;
        transform: translateX(10px);
        font-weight: 600;
    }
    
    .nav-menu .nav-link::after {
        display: none;
    }
    
    .hero-content {
        padding: 1rem;
        min-height: 60vh;
    }
    
    .hero-text {
        padding: 0;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .service-item {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 0;
    }
    
    .service-content-left,
    .service-content-right {
        padding-right: 0;
        padding-left: 0;
        text-align: center;
        align-items: center;
        flex: 1;
        min-height: 200px;
    }
    
    .service-images-right,
    .service-images-left {
        flex: 1.5;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
    }
    
    .service-images-right .image-gallery,
    .service-images-left .image-gallery {
        padding: 0 1rem;
    }
    
    .service-icon {
        text-align: center;
    }
    
    .service-icon img {
        margin: 0 auto;
    }
    
    .service-reverse {
        flex-direction: column;
    }
    
    .service-reverse .service-images-left {
        order: 2;
    }
    
    .service-reverse .service-content-right {
        order: 1;
    }
    
    .service-item[data-height="standard"],
    .service-item[data-height="tall"],
    .service-item[data-height="medium"] {
        min-height: auto;
    }
    
    .why-choose-content,
    .partners-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
    
    .brochure-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .brochure-section {
        padding: 3rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero .container {
        padding: 0 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .about-card,
    .service-card,
    .commitment-card,
    .value-card {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}
