/* Styles spécifiques aux pages et composants - BETIGA */

/* Les variables globales sont définies dans style.css */

/* Styles de base et mise en page */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(5, 191, 219, 0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.99);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 80rem;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1001;
}

/* Logo - Gestion de l'image et des effets */
.logo-img {
    height: 80px !important;
    width: auto !important;
    object-fit: contain !important;
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
    filter: none !important;
    transform: translateZ(0) !important;
}

/* Contrôles du slider héro */
.hero-controls {
    position: absolute;
    right: 24px;
    bottom: 24px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hero-controls button {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    font-size: 18px;
}

.hero-controls button:hover {
    transform: translateY(-3px);
}

.logo-icon {
    width: 55px;
    height: 55px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
    font-size: 26px;
    box-shadow: var(--shadow-md);
}

.logo-text h1 {
    font-size: 28px;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo-text p {
    font-size: 11px;
    color: var(--gray);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--dark);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--secondary);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.contact-btn {
    background: var(--gradient-accent);
    color: white !important;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.contact-btn::after {
    display: none;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Menu Mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Section Héro : Slider et Présentation */
.hero {
    margin-top: 90px;
    min-height: 100vh;
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
}

/* Galerie d'images du Slider principal */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out, transform 2s ease-in-out;
    transform: scale(1.05);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.55);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 77, 104, 0.65) 0%, rgba(8, 131, 149, 0.65) 50%, rgba(5, 191, 219, 0.55) 100%);
    z-index: 2;
}

.hero-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 40px;
    width: 100%;
    min-height: auto;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-text h2 {
    font-size: 45px;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero-text .highlight {
    color: var(--accent);
    position: relative;
    font-style: italic;
}

.hero-text .tagline {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    font-weight: 500;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Slide Brand Dynamique */
.slide-brand {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-display {
    position: absolute;
    z-index: 10;
    text-align: center;
    width: 100%;
    padding: 20px;
    opacity: 1 !important;
    pointer-events: auto;
    display: block !important;
}

/* Masquer l'image quand c'est le slide brand pour que seul le texte s'affiche */
.hero.brand-active .slide-brand img {
    opacity: 0;
    visibility: hidden;
}

/* Masquer le brand display seulement quand ce n'est pas le slide brand */
.hero:not(.brand-active) .brand-display {
    opacity: 0;
    pointer-events: none;
}

/* Masquer le brand display seulement quand ce n'est pas le slide brand */
.hero:not(.brand-active) .brand-display {
    opacity: 0;
    pointer-events: none;
}

.brand-name {
    font-size: 8rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 12px;
    font-weight: 900;
    text-shadow: 0 10px 40px rgba(0,0,0,0.8);
    margin: 0;
    animation: brandTitleEnter 1.5s cubic-bezier(0.23, 1, 0.32, 1) both;
}

/* Utiliser une classe pour gérer l'état du slide Brand et éviter les sélecteurs CSS non supportés */
.hero.brand-active .hero-content {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.hero:not(.brand-active) .hero-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: all 0.6s ease 0.3s;
}

/* Optionnel : Assombrir l'overlay pour le slide Brand */
.hero.brand-active .hero-overlay {
    background: rgba(0, 0, 0, 0.7);
}

@keyframes brandTitleEnter {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
        letter-spacing: 50px;
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        letter-spacing: 15px;
        filter: blur(0);
    }
}

@media (max-width: 992px) {
    .brand-name {
        font-size: 6rem;
        letter-spacing: 8px;
    }
}

@media (max-width: 768px) {
    .hero-text h2 {
        font-size: 32px;
    }
    .brand-name {
        font-size: 3.5rem;
        letter-spacing: 4px;
    }
}
.hero-text p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 40px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 0.8s ease 0.6s both;
    flex-wrap: wrap;
}

.btn {
    padding: 18px 40px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: white;
    color: var(--primary);
}

.btn-primary:hover {
    background: var(--light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
}

/* Stats Cards avec Compteur Animé */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    animation: fadeInRight 1s ease 0.4s both;
}

.stat-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    padding: 35px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    font-size: 22px;
    color: var(--accent);
    margin-bottom: 15px;
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 56px;
    font-weight: 900;
    color: white;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
}

/* Section Présentation / À Propos */
.about {
    padding: 120px 40px;
    background: var(--white);
    position: relative;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 80px;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

/* 
====================================
IMAGE À PROPOS - CHANGEZ VOTRE IMAGE ICI
====================================
*/
.about-image img {
    width: 100%;
    height: 650px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-image:hover img {
    transform: scale(1.08);
}

.about-badge {
    position: absolute;
    bottom: -40px;
    right: -40px;
    background: var(--gradient-accent);
    color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-xl);
    z-index: 10;
}

.about-badge .number {
    font-family: 'Poppins', sans-serif;
    font-size: 56px;
    font-weight: 900;
    display: block;
    line-height: 1;
}

.about-badge .text {
    font-size: 16px;
    font-weight: 700;
    margin-top: 10px;
}

.section-header {
    margin-bottom: 35px;
}

.section-subtitle {
    font-size: 14px;
    font-weight: 800;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-subtitle::before {
    content: '';
    width: 45px;
    height: 3px;
    background: var(--accent);
}

.section-title {
    font-size: 50px;
    color: var(--dark);
    margin-bottom: 22px;
    font-weight: 900;
}

.section-description {
    font-size: 18px;
    color: var(--gray);
    line-height: 1.85;
    margin-bottom: 40px;
}

.about-text p {
    color: var(--gray);
    line-height: 1.95;
    margin-bottom: 20px;
    font-size: 16px;
}

.about-text strong {
    color: var(--secondary);
    font-weight: 700;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
    background: var(--light);
    border-radius: 14px;
    transition: var(--transition);
}

.feature-item:hover {
    background: #e8f4f8;
    transform: translateX(12px);
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
}

.feature-text p {
    font-size: 14px;
    color: var(--gray);
    margin: 0;
}

/* Mot du DG */
.dg-message-container {
    background: var(--light);
    border-radius: 20px;
    padding: 50px;
    margin: 20px 0 80px 0;
    position: relative;
    box-shadow: var(--shadow-md);
    border-left: 6px solid var(--accent);
}

.dg-message-content {
    position: relative;
    z-index: 1;
}

.quote-icon {
    font-size: 40px;
    color: var(--primary);
    opacity: 0.15;
    position: absolute;
    top: -20px;
    left: -20px;
    z-index: -1;
}

.dg-quote {
    font-size: 18px;
    font-style: italic;
    color: var(--dark);
    line-height: 1.8;
    margin-bottom: 30px;
    font-weight: 500;
}

.dg-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 20px;
}

.dg-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.dg-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dg-info h4 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 4px;
}

.dg-info span {
    font-size: 14px;
    color: var(--gray);
    display: block;
    line-height: 1.4;
}

/* Mission, Vision, Valeurs */
.mvv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 70px;
}

.mvv-card {
    background: var(--light);
    padding: 48px 38px;
    border-radius: 18px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.mvv-card:hover {
    background: white;
    border-color: var(--accent);
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.mvv-icon {
    width: 85px;
    height: 85px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    font-size: 38px;
    color: white;
}

.mvv-card h3 {
    font-size: 26px;
    color: var(--dark);
    margin-bottom: 18px;
}

.mvv-card p {
    color: var(--gray);
    line-height: 1.75;
}

/* Services */
.services {
    padding: 120px 40px;
    background: var(--light);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 320px;
    background: linear-gradient(180deg, white 0%, var(--light) 100%);
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 25px;
    margin-top: 65px;
}

/* Make some cards span multiple columns/rows to create a Bento Grid */
.service-card:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.service-card:nth-child(2) {
    grid-column: span 2;
}

.service-card:nth-child(3) {
    grid-column: span 1;
}

.service-card:nth-child(4) {
    grid-column: span 1;
}

.service-card:nth-child(5) {
    grid-column: span 2;
}

.service-card:nth-child(6) {
    grid-column: span 1;
}

.service-card:nth-child(7) {
    grid-column: span 1;
}

.service-card:nth-child(8) {
    grid-column: span 4;
}

/* Ligne complète pour la formation */

.service-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 250px;
    z-index: 1;
    padding: 30px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 165, 164, 0.05), rgba(5, 191, 219, 0.02));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent), var(--geo-cyan));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(5, 191, 219, 0.15);
}

.service-card:hover::before,
.service-card:hover::after {
    opacity: 1;
}

.service-icon {
    width: 65px;
    height: 65px;
    background: var(--light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 20px 0;
    font-size: 28px;
    color: var(--accent);
    transition: all 0.4s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 8px 20px rgba(5, 191, 219, 0.3);
}

.service-card h3 {
    font-size: 22px;
    color: var(--dark);
    margin: 0 0 15px 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.service-card p {
    color: var(--gray);
    line-height: 1.7;
    margin: 0;
    font-size: 15.5px;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 11px 0;
    color: var(--gray);
    font-size: 15px;
    position: relative;
    padding-left: 32px;
}

.service-features li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--success);
}

/* Partenaires */
.partners {
    padding: 60px 0;
    background: var(--white);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.partners-title {
    text-align: center;
    font-size: 20px;
    color: var(--gray);
    margin-bottom: 40px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

/* Dégradés sur les bords pour fondre l'animation */
.marquee-wrapper::before,
.marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

.marquee {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.marquee:hover {
    animation-play-state: paused;
}

.partner-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 30px;
    padding: 15px 30px;
    background: white;
    border: 1px solid var(--gray-light);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    vertical-align: middle;
    height: 100px;
}

.partner-logo img {
    max-height: 70px;
    width: auto;
    object-fit: contain;
}

.partner-logo:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    color: var(--accent);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Projets */
.projects {
    padding: 120px 40px;
    background: white;
}

.projects-container {
    max-width: 1400px;
    margin: 0 auto;
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 55px 0;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 13px 32px;
    background: white;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    font-weight: 700;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 38px;
}

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(5, 191, 219, 0.2);
}

/* Images des Projets */
.project-image {
    position: relative;
    height: 350px;
    /* Plus haut pour donner de l'espace à l'image */
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(5, 22, 26, 0.45) 0%, rgba(5, 22, 26, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0.85;
    transition: all 0.5s ease;
}

.project-card:hover .project-overlay {
    background: linear-gradient(180deg, rgba(5, 22, 26, 0.75) 0%, rgba(5, 22, 26, 0.99) 100%);
    opacity: 1;
}

.project-category {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    align-self: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: auto;
    /* Pousse la catégorie en haut */
}

/* On cache l'info par défaut en dehors du conteneur en bas et on la fait glisser au survol */
.project-info {
    position: absolute;
    bottom: -120px;
    /* Un peu plus bas pour titres longs */
    left: 0;
    width: 100%;
    padding: 0 30px 40px 30px;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover .project-info {
    bottom: 0;
    opacity: 1;
}

.project-info h3 {
    font-size: 18px;
    /* Augmenté pour lisibilité */
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    /* 4 lignes max pour éviter de trop descendre */
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
    /* Shadow renforcé pour contraste extrême */
}

.project-info p {
    display: none;
    /* On cache le long paragraphe pour le portfolio */
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.project-meta i {
    color: var(--accent);
    margin-right: 8px;
}

.project-actions {
    display: flex;
}

.readmore-link.btn {
    padding: 10px 24px;
    background: white;
    border: 2px solid white;
    color: var(--dark) !important;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.readmore-link.btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Actualités */
.blog {
    padding: 120px 40px;
    background: var(--light);
}

.blog-container {
    max-width: 1400px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 38px;
    margin-top: 65px;
}

.blog-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
}

/* Images Actualités */
.blog-image {
    height: 260px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.15);
}

.blog-content {
    padding: 32px;
}

.blog-meta {
    display: flex;
    gap: 22px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--gray);
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-meta i {
    color: var(--accent);
}

.blog-content h3 {
    font-size: 21px;
    color: var(--dark);
    margin-bottom: 14px;
    line-height: 1.4;
}

.blog-content p {
    color: var(--gray);
    line-height: 1.75;
    margin-bottom: 22px;
}

.read-more {
    color: var(--secondary);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--accent);
    gap: 14px;
}

/* Équipe */
.team {
    padding: 120px 40px;
    background: white;
}

.team-container {
    max-width: 1400px;
    margin: 0 auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 38px;
    margin-top: 65px;
}

.team-member {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
}


/* Trombinoscope Équipe */
.team-image {
    height: 340px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 75px;
    color: white;
    font-weight: 900;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    padding: 28px;
    text-align: center;
}

.team-info h3 {
    font-size: 19px;
    color: var(--dark);
    margin-bottom: 10px;
}

.team-info p {
    color: var(--secondary);
    font-weight: 700;
    font-size: 14px;
    line-height: 1.5;
}

/* Contact */
.contact {
    padding: 120px 40px;
    background: white !important;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 65px;
    margin-top: 65px;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    background: white;
    border-color: var(--geo-cyan);
}

.contact-card-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--light), #ffffff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--accent);
    flex-shrink: 0;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05), 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.contact-card:hover .contact-card-icon {
    background: var(--gradient-primary);
    color: white;
    transform: rotateY(180deg);
}

.contact-card-content h4 {
    font-size: 17px;
    color: var(--dark);
    margin-bottom: 10px;
}

.contact-card-content p {
    color: var(--gray);
    margin: 0;
    font-size: 15px;
}

.contact-card-content a {
    color: var(--secondary);
    font-weight: 700;
}

/* Google Maps */
/* 
====================================
GOOGLE MAPS - PERSONNALISEZ VOTRE LOCALISATION
====================================
Voir les instructions dans le HTML pour personnaliser
*/
.map-container {
    margin-top: 35px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    font-size: 14px;
    transition: var(--transition);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid transparent;
    background: #f8fafc;
    border-radius: 14px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    background: white;
    border-color: var(--geo-cyan);
    box-shadow: 0 0 0 5px rgba(44, 116, 179, 0.1);
}

.form-group input:focus+label,
.form-group textarea:focus+label,
.form-group select:focus+label {
    color: var(--geo-cyan);
}

.form-group textarea {
    resize: vertical;
    min-height: 160px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.submit-btn {
    width: 100%;
    min-height: 60px;
    padding: 18px;
    background: linear-gradient(135deg, var(--geo-accent), var(--geo-cyan));
    color: white !important;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(32, 82, 149, 0.2);
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
    visibility: visible !important;
    opacity: 1 !important;
}

.submit-btn:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 10px 25px rgba(32, 82, 149, 0.3);
    background: linear-gradient(135deg, var(--geo-cyan), var(--geo-accent));
}

.submit-btn:active {
    transform: translateY(2px) scale(0.98);
}

/* Form Messages */
.form-message {
    padding: 16px 22px;
    border-radius: 12px;
    margin-bottom: 22px;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-message.show {
    display: block;
}

/* Consent Checkbox Layout */
.form-group.consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
}

.form-group.consent label {
    font-weight: 500;
    font-size: 14px;
    color: var(--gray);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    text-align: left;
    margin: 0;
}

.form-group.consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    cursor: pointer;
}

/* Modal confirmation */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9999;
    padding: 20px;
}

.modal.open {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 10px;
    padding: 22px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modal-content h3 {
    margin-top: 0;
}

.modal-close {
    position: absolute;
    right: 10px;
    top: 8px;
    border: 0;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
}

.modal .btn {
    min-width: 100px;
}

/* WhatsApp icon link */
.whatsapp-link {
    color: #25D366;
    margin-left: 8px;
    text-decoration: none;
    font-size: 18px;
}

.whatsapp-link i {
    vertical-align: middle;
}

/* Error modal styling (reuses .modal) */
.modal.error {
    background: rgba(0, 0, 0, 0.55);
}

.modal .modal-content h3 {
    color: #c53030;
}

/* Small toast for copy feedback */
.toast {
    position: fixed;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    bottom: 28px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: opacity .22s ease, transform .22s ease;
    z-index: 10000;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* WhatsApp flottant */
.floating-whatsapp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    /* Position ajustée */
    right: 95px;
    /* Décalé pour ne pas chevaucher le bouton retour en haut */
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 998;
    /* Un peu en dessous du bouton retour en haut si chevauchement */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pulse-whatsapp 2.5s infinite;
}

.floating-whatsapp:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: scale(1.1);
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Pied de page */
.footer {
    background: var(--dark);
    color: white;
    padding: 85px 40px 32px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 65px;
    margin-bottom: 55px;
}

.footer-about h3 {
    font-size: 28px;
    margin-bottom: 22px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.85;
    margin-bottom: 28px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 19px;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent);
    transform: translateY(-6px);
}

.footer-section h4 {
    font-size: 20px;
    margin-bottom: 28px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 16px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 6px;
}

.footer-links a i {
    font-size: 12px;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.65);
}

/* ==================== BACK TO TOP ==================== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 52px;
    height: 52px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 21px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(35px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1200px) {

    .hero-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .about-image {
        width: 100%;
        height: auto;
    }

    .about-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .services-grid,
    .projects-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .mvv-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background: white;
        flex-direction: column;
        padding: 42px;
        gap: 28px;
        transition: left 0.4s ease;
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: 60px 20px;
    }

    .hero-content {
        padding: 40px 20px;
    }

    .hero-text h2 {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .hero-text p {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .tagline {
        font-size: 16px !important;
    }

    .hero-buttons {
        gap: 10px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .about-image {
        width: 100%;
        height: auto;
        max-height: 400px;
    }

    .about-image img {
        width: 100%;
        height: auto;
        max-height: 400px;
        object-fit: cover;
    }

    .about-badge {
        bottom: -20px;
        right: -20px;
        padding: 20px;
    }

    .about-badge .number {
        font-size: 38px;
    }

    .dg-message-container {
        padding: 30px;
        margin: 10px 0 50px 0;
    }

    .dg-quote {
        font-size: 16px;
    }

    .dg-profile {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card:nth-child(n) {
        grid-column: span 1;
        grid-row: auto;
    }

    .projects-grid,

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 36px;
    }

    .contact-form {
        padding: 35px;
    }
}

/* ==================== PROJECT MODAL ==================== */
.project-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
}

.project-modal.open {
    display: block;
}

.project-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.project-modal-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: white;
    width: min(980px, 95%);
    max-height: 85vh;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
}

.project-modal .modal-body {
    padding: 22px;
    max-height: calc(85vh - 110px);
    overflow: auto;
}

.project-modal .modal-body h3 {
    margin-bottom: 12px;
    font-size: 22px;
}

.project-modal .modal-body p {
    color: var(--gray);
    line-height: 1.8;
}

.project-modal .detail-images {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.project-modal .detail-images img {
    width: 100%;
    max-width: 820px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.modal-close {
    position: absolute;
    right: 12px;
    top: 8px;
    background: transparent;
    border: none;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.modal-gallery-controls {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
}

.modal-gallery-controls button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
}

.project-actions {
    margin-top: 12px;
}

.readmore-btn {
    background: var(--secondary);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 700;
}

.readmore-btn:hover {
    opacity: 0.95;
}

/* ==================== PREMIUM PROJECT DETAIL PAGE ==================== */
.project-page {
    padding: 120px 20px 80px;
    background: #fdfdfd;
}

.project-container-v2 {
    max-width: 1200px;
    margin: 0 auto;
}

.project-hero-v2 {
    background: white;
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    margin-bottom: 40px;
    display: flex;
    gap: 50px;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.project-info-main {
    flex: 1;
}

.project-info-main h1 {
    font-size: 34px;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.project-meta-v2 {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 15px;
    color: var(--secondary);
}

.project-meta-v2 span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-meta-v2 i {
    color: var(--accent);
}

.project-overview {
    font-size: 17px;
    color: var(--gray);
    line-height: 1.8;
}

.project-gallery {
    width: 550px;
    flex-shrink: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.gallery-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: #f8fafc;
    justify-content: center;
}

.gallery-thumbs img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gallery-thumbs img:hover,
.gallery-thumbs img.active {
    border-color: var(--accent);
    transform: scale(1.05);
}

.project-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.details-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.details-card h2 {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-list {
    list-style: none;
}

.service-list li {
    padding: 15px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--gray);
    font-size: 16px;
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list i {
    color: var(--success);
    font-size: 18px;
}

/* ==================== RESPONSIVE & FINAL FIXES ==================== */

@media (max-width: 1024px) {
    .project-hero-v2 {
        flex-direction: column;
        padding: 30px;
    }

    .project-gallery-v2 {
        width: 100%;
    }

    .project-details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    /* Hero Section Mobile */
    .hero {
        min-height: 60vh !important;
        height: auto !important;
        padding: 40px 0;
    }

    .hero-content {
        padding: 40px 20px !important;
    }

    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .hero-text h2 {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
    }

    .hero-text .tagline {
        font-size: 1.1rem !important;
    }

    .hero-text p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }

    .hero-visual {
        display: none;
        /* Hide complex visual on small screens to save space and avoid clutter */
    }

    .slide {
        transform: scale(1.02) !important;
    }

    .slide.active {
        transform: scale(1) !important;
    }

    /* Project Detail Page Titles */
    .project-header-v2 h1 {
        font-size: 1.8rem !important;
        margin-top: 20px;
    }

    /* Project Cards Mobile Styles */
    .project-title {
        font-size: 1.4rem !important;
    }

    /* Consent Checkbox Alignment */
    .form-group.consent {
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }

    .form-group.consent input[type="checkbox"] {
        margin-top: 5px;
        flex-shrink: 0;
    }

    .form-group.consent label {
        font-size: 0.9rem;
        margin: 0;
    }

    /* Section À Propos Mobile */
    .about {
        padding: 60px 20px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 50px;
    }

    .about-grid.reverse {
        display: flex;
        flex-direction: column-reverse;
    }

    .about-image img {
        height: 350px;
    }

    .about-badge {
        padding: 20px;
        bottom: -20px;
        right: 0;
    }

    .about-badge .number {
        font-size: 32px;
    }

    /* Images Projets Mobile */
    .project-image {
        height: 250px !important;
        /* Reduce height to avoid extreme zoom-in */
    }

    /* Images Blog Mobile */
    .blog-image {
        height: 200px !important;
        /* Reduce height to avoid extreme zoom-in */
    }

    /* General Image Scaling Fix */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Specific scaling for sections where object-fit is used */
    .project-image img,
    .blog-image img,
    .about-image img,
    .slide img {
        object-fit: cover !important;
        object-position: center !important;
    }
}

/* Ensure Read More Link is always solid white as requested */
.readmore-link.btn {
    background: white !important;
    color: #05161A !important;
    /* var(--dark) */
    opacity: 1 !important;
    border: none !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.readmore-link.btn:hover {
    background: #f0f0f0 !important;
    transform: translateY(-2px);
}

/* Modal System Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.open {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.open .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.modal-iconSuccess {
    font-size: 50px;
    color: var(--success);
    margin-bottom: 20px;
}

.modal-body {
    margin: 15px 0 25px;
    color: #444;
}

/* ==================== FLOATING CTA : CADASTRE ==================== */
.floating-cta {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    flex-direction: row-reverse;
}

.cta-text {
    background: white;
    padding: 15px 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    max-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-20px);
    transition: all 0.3s ease;
    border-right: 4px solid var(--accent);
    line-height: 1.4;
    position: relative;
}

/* Arrow pointer */
.cta-text::after {
    content: "";
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px 0 8px 10px;
    border-style: solid;
    border-color: transparent transparent transparent white;
}

/* State: Always visible (used on specific pages) */
.floating-cta.visible .cta-text {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
}

.floating-cta:hover .cta-text {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.cta-icon {
    width: 65px;
    height: 65px;
    background: var(--gradient-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 10px 25px rgba(5, 191, 219, 0.4);
    cursor: pointer;
    border: 3px solid white;
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(5, 191, 219, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(5, 191, 219, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(5, 191, 219, 0);
    }
}

@media (max-width: 768px) {
    .floating-cta {
        bottom: 15px;
        left: 15px;
        right: auto;
        gap: 10px;
    }

    .cta-text {
        font-size: 11px !important;
        max-width: 180px !important;
        padding: 10px 15px !important;
    }

    /* Mais l'afficher si la classe 'visible' est présente (page service) */
    .floating-cta.visible .cta-text {
        display: block !important;
        transform: translateX(0) !important;
        margin-bottom: 8px;
    }

    .cta-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 20px !important;
    }
}

/* Animation de rebond pour la page service */
.floating-cta.visible .cta-text {
    animation: cta-bounce 3s infinite ease-in-out;
}

@keyframes cta-bounce {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(8px);
    }
}