/* ============================================
   VARIABLES & RÉINITIALISATION
   ============================================ */
:root {
    --primary: #00CCFF;
    --primary-light: #69E2FF;
    --primary-dark: #00A3CC;
    --secondary: #333333;
    --light: #FFFFFF;
    --dark: #222222;
    --gray: #F5F5F5;
    --gray-dark: #777777;
    --shadow: rgba(0, 204, 255, 0.2);
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Polices */
    --font-heading: 'Poppins', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', 'Segoe UI', Roboto, sans-serif;
    --font-accent: 'Playfair Display', Georgia, serif;
    --font-button: 'Montserrat', var(--font-heading);
    --font-mono: 'Fira Code', 'Roboto Mono', 'Courier New', monospace;
    --font-display: 'Manrope', var(--font-heading);
    --font-ui: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-caption: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-elegant: 'Cormorant Garamond', 'Times New Roman', serif;
    --font-geometric: 'Space Grotesk', 'SF Pro Display', sans-serif;
    --font-friendly: 'Nunito', 'Segoe UI', sans-serif;
    --font-corporate: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Carrousel glissement */
.carousel-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 20px;
    overflow: hidden;
    border-radius: 15px;
    border: 3px solid #90CDF4;
    background: #000;
}

.carousel-track {
    display: flex;
    width: 200%;
    transition: transform 0.5s ease-in-out;
}

.carousel-image {
    width: 50%;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

@media (max-width: 900px) {
    .carousel-container {
        max-width: 100%;
    }
    .carousel-image {
        height: auto;
        max-height: 250px;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--light);
    overflow-x: hidden;
    background: #0a192f60;
}

/* ============================================
   TYPOGRAPHIE GÉNÉRALE
   ============================================ */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 {
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--light), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(0, 204, 255, 0.3);
}

h2 {
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--primary-light);
}

h3 {
    font-family: var(--font-geometric);
    font-size: 1.8rem;
    font-weight: 500;
    color: #90CDF4;
}

p {
    font-family: var(--font-caption);
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.8;
}

strong {
    color:#1A365D;
}

.slogan, .welcome-text {
    font-family: var(--font-elegant);
    font-style: italic;
    font-weight: 400;
}

.company-description {
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.5;
    text-align: center;
    color: #90CDF4;
    text-shadow: 0 0 15px rgba(74, 144, 226, 0.5);
    max-width: 800px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(3px);
    word-break: keep-all;
}

.word {
    display: inline-block;
    white-space: nowrap;
    transition: transform 0.2s ease, color 0.2s ease, text-shadow 0.2s ease;
    cursor: default;
}

.word:hover {
    transform: translateY(-5px) scale(1.1);
    color: #fff;
    text-shadow: 0 0 20px var(--primary);
}

/* ============================================
   NAVIGATION (inchangée)
   ============================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 10px 0;
}

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-family: var(--font-friendly);
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-frame {
    width: 150px;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #90CDF4;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.logo-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    transition: transform 0.3s ease;
}

.logo-frame:hover {
    border-color: #4a90e2;
    transform: rotate(5deg) scale(1.1);
}

.logo-frame:hover .logo-img {
    transform: scale(1.1);
}

/* Menu principal */
.nv {
    position: relative;
    display: flex;
    list-style: none;
    background-color: rgba(15, 15, 15, 0.608);
    backdrop-filter: blur(5px);
    border-radius: 50px;
    padding: 8px 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid #b5c7e7;
    transition: var(--transition);    
}

.nv li {
    margin: 0 8px;
}

.nav-link {
    color: var(--light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 18px;
    border-radius: 25px;
    display: inline-block;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(105, 225, 255, 0.404), transparent);
    transition: left 0.7s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    background-color: #4473c497;
    color: #b5c7e7;
    transform: translateY(-2px);
}

.nav-link.active {
    background: linear-gradient(135deg, #4a90e2, var(--primary-light));
    color: var(--dark);
    box-shadow: 0 4px 15px var(--shadow);
}

.nav-indicator {
    position: absolute;
    bottom: -10px;
    left: 0;
    height: 4px;
    width: 0;
}

header.scrolled {
    background-color: rgba(34, 34, 34, 0.182);
    backdrop-filter: blur(3px);
    padding: 5px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

header.scrolled .nv {
    background-color: rgba(0, 0, 0, 0.645);
    padding: 10px 15px;
}

.mobile-menu-btn {
    display: none;
    background: linear-gradient(135deg, #4a90e2, var(--primary-light));
    color: var(--dark);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--shadow);
    transition: var(--transition);
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px var(--shadow);
}

/* ============================================
   SECTIONS – Structure commune
   ============================================ */
.sections-container {
    position: relative;
    width: 100%;
}

.section-bg {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    overflow: hidden;
}

.section-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    transition: transform 20s ease;
}

.section-bg.active::before {
    transform: scale(1.1);
}

.section-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 102, 204, 0.3));
    z-index: -1;
}

.section-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    color: var(--light);
    padding: 3rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* ============================================
   ANIMATIONS DE BASE (scroll)
   ============================================ */
.text-slide-left,
.text-slide-right,
.img-slide-down {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.text-slide-left {
    transform: translateX(50px);
}
.text-slide-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.text-slide-right {
    transform: translateX(-50px);
}
.text-slide-right.animate {
    opacity: 1;
    transform: translateX(0);
}

.img-slide-down {
    transform: translateY(-30px);
}
.img-slide-down.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Animations avancées */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes flipIn {
    0%   { opacity: 0; transform: perspective(400px) rotateY(90deg); }
    100% { opacity: 1; transform: perspective(400px) rotateY(0); }
}
@keyframes sectionAppear {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes loaderAnimation {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}
@keyframes mapPin {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25%      { transform: scale(1.3) rotate(-15deg); }
    50%      { transform: scale(1.2) rotate(15deg); }
    75%      { transform: scale(1.1) rotate(-5deg); }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}
.zoom-in {
    opacity: 0;
    animation: zoomIn 0.7s ease forwards;
}
.flip-in {
    opacity: 0;
    animation: flipIn 0.8s ease forwards;
}
.section-bg.active .section-content {
    animation: sectionAppear 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

/* ============================================
   SECTION ACCUEIL
   ============================================ */
.welcome-text {
    font-size: 4rem;
    text-align: center;
    margin: 2rem 0;
    color: #90CDF4;
    font-weight: 300;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.content-block {
    background: rgba(255, 255, 255, 0.15);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid #4a90e2;
    transition: var(--transition);
}
.content-block:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.values-list {
    list-style: none;
    padding-left: 0;
}
.values-list li strong i {
    margin-right: 8px;
    font-size: 2rem;
    vertical-align: middle;
    color: #4a90e2;
}
.values-list li strong:hover i.bi-arrow-right-circle-fill {
    transform: translateX(3px);
    transition: transform 0.2s ease;
}

.slogan {
    text-align: center;
    font-size: 1.8rem;
    margin: 3rem 0;
    color: #00008B;
    font-family: var(--font-corporate);
}

/* ============================================
   BOUTONS MODERNES
   ============================================ */
.buttons-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 40px;
    text-decoration: none;
    font-family: var(--font-button);
    font-weight: 600;
    letter-spacing: 1.5px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 250px;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-transform: uppercase;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
}

.btn:hover::after {
    transform: translateX(100%);
}

.btn-light {
    background: linear-gradient(135deg, #4a90e2, var(--primary-light));
    color: var(--dark);
    box-shadow: 0 5px 20px var(--shadow);
}

.btn-light:hover {
    background: linear-gradient(135deg, #4a90e2, #357ae8);
    color: var(--light);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(74, 144, 226, 0.4);
}

.btn-outline-light {
    background: transparent;
    color: var(--light);
    border: 2px solid var(--light);
}

.btn-outline-light:hover {
    background: linear-gradient(135deg, #4a90e2, var(--primary-light));
    color: var(--dark);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.2);
}

/* ============================================
   SECTION DONNÉES AÉRIENNES
   ============================================ */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.equipment-item {
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}

.equipment-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.equipment-content img {
    width: 100%;
    max-width: 400px;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid #90CDF4;
    transition: all 0.5s ease;
    filter: brightness(0.9) saturate(0.9);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.equipment-content img:hover {
    filter: brightness(1.1) saturate(1.2);
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 20px 40px rgba(74, 144, 226, 0.4);
}

.equipment-content ul {
    list-style: none;
    flex: 1;
    min-width: 300px;
}
.equipment-content li {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.2rem;
    position: relative;
    padding-left: 2rem;
}
.equipment-content li:before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #4a90e2;
    font-weight: bold;
}
.equipment-content li:last-child {
    border-bottom: none;
}

/* Services cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 2rem;
}
.service-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 102, 204, 0.2));
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #90CDF4;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px #b5c7e77d;
}
.card-icon {
    font-size: 2.5rem;
    color: #0582f6e7;
    margin-bottom: 15px;
}

/* ============================================
   SECTION PHOTOGRAMMÉTRIE
   ============================================ */
.photogrammetry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;    
    gap: 30px;                         
    margin-top: 30px;
}

.photogrammetry-col {
    height: 100%;                  
}

.photogrammetry-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    height: 100%;                    
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(5px);
    border: 1px solid #90CDF4;
    transition: var(--transition);
}

.photogrammetry-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px #90CDF4;
}

.photogrammetry-card .content-with-image {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.photogrammetry-card .content-with-image img {
    width: 100%;
    max-width: 350px;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid #90CDF4;
    transition: all 0.5s ease;
}

.photogrammetry-card .dual-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.photogrammetry-card .dual-images img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #90CDF4;
}

.photogrammetry-card ul {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
    flex-grow: 1;
}

.photogrammetry-card li {
    padding: 1.5rem ;
    padding-left: 1.8rem;
    position: relative;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.photogrammetry-card li:before {
    content: '';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.photogrammetry-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #90CDF4;
    font-size: 1.6rem;
}

@media (max-width: 900px) {
    .photogrammetry-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .photogrammetry-card .content-with-image img {
        max-width: 100%;
    }
}

/* ============================================
   SECTION TOPOGRAPHIE
   ============================================ */
.topography-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.topography-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}
.topo-image {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid #90CDF4;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
}
.topo-image:hover {
    transform: translateY(-10px);
}
.topography-list {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid var(--primary);
    max-width: 800px;
    width: 100%;
    list-style: none;
}
.topography-list li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
}
.topography-list li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #4a90e2;
    font-size: 1.5rem;
}

/* ============================================
   SECTION MULTIMÉDIA
   ============================================ */
.multimedia-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.multimedia-item {
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}
.content-with-image {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}
.content-with-image img {
    width: 100%;
    max-width: 400px;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid #90CDF4;
    transition: all 0.5s ease;
    filter: brightness(0.9) saturate(0.9);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
.content-with-image img:hover {
    filter: brightness(1.1) saturate(1.2);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(74, 144, 226, 0.4);
}
.content-with-image ul {
    list-style: none;
    flex: 1;
    min-width: 300px;
}
.content-with-image li {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.2rem;
    position: relative;
    padding-left: 2rem;
}
.content-with-image li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #4a90e2;
    font-size: 1.5rem;
}
.content-with-image li:last-child {
    border-bottom: none;
}

/* ============================================
   SECTION RÉFÉRENCE
   ============================================ */
.references-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0 40px;
}
.tab-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #90CDF4;
    color: var(--light);
    padding: 12px 32px;
    border-radius: 50px;
    font-family: var(--font-button);
    font-weight: 600;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(5px);
    letter-spacing: 1px;
}
.tab-btn.active,
.tab-btn:hover {
    background: linear-gradient(135deg, #4a90e2, var(--primary-light));
    color: var(--dark);
    box-shadow: 0 0 20px var(--shadow);
    transform: translateY(-3px);
}

.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fadeInUp 0.6s ease;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    justify-content: center;
    align-items: center;
}
.logo-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #90CDF4;
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.logo-card img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.4s ease;
}
.logo-card span {
    font-family: var(--font-caption);
    font-size: 0.9rem;
    font-weight: 500;
    color: #ddd;
    text-align: center;
    line-height: 1.4;
    transition: color 0.3s ease;
}
.logo-card:hover {
    background: rgba(74, 144, 226, 0.15);
    border-color: var(--primary);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(74, 144, 226, 0.3);
}
.logo-card:hover img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
}
.logo-card:hover span {
    color: var(--primary-light);
}

/* ============================================
   SECTION SOCIÉTÉ
   ============================================ */
.company-profile {
    text-align: center;
}
.company-description {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.company-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.info-item {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 30px 20px;
    border-radius: 15px;
    transition: var(--transition);
    border: 1px solid #90CDF4;
}
.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 204, 255, 0.2);
}
.info-icon {
    font-size: 3rem;
    color: #4a90e2;
    margin-bottom: 15px;
}

.map-icon-link {
    color: #4a90e2;
    font-size: 3rem;
    transition: transform 0.2s;
}
.map-icon-link:hover {
    transform: scale(1.2);
}
.map-icon-link i {
    font-size: 3rem;
    transition: all 0.3s ease;
}
.map-icon-link:hover i {
    animation: mapPin 0.6s ease-in-out;
    color: #EA4335;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
}
.social-link {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4a90e2, var(--primary-light));
    color: var(--dark);
    font-size: 1.5rem;
    transition: var(--transition);
    box-shadow: 0 5px 15px var(--shadow);
}
.social-link:hover {
    transform: translateY(-5px) rotate(10deg);
    box-shadow: 0 10px 25px var(--shadow);
}

/* ============================================
   SECTION CONTACT
   ============================================ */
.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    margin-top: 30px;
}

.contact-form {
    background-color: rgba(0, 0, 0, 0.868);
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid #4a90e2;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}
.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #90CDF4;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid #90CDF4;
    border-radius: 10px;
    color: var(--light);
    font-size: 1rem;
    transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 204, 255, 0.3);
}
.form-focus-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    transition: width 0.5s ease;
}
.form-group input:focus ~ .form-focus-line,
.form-group textarea:focus ~ .form-focus-line {
    width: 100%;
}

.btn-submit {
    background: linear-gradient(135deg, #4a90e2, var(--primary-light));
    color: var(--dark);
    border: none;
    border-radius: 50px;
    padding: 18px 40px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    transition: var(--transition);
    box-shadow: 0 5px 20px var(--shadow);
    position: relative;
    overflow: hidden;
}
.btn-submit:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow);
}
.btn-loader {
    display: none;
    gap: 5px;
}
.loader-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--dark);
    animation: loaderAnimation 1.5s infinite ease-in-out;
}
.loader-dot:nth-child(2) { animation-delay: 0.2s; }
.loader-dot:nth-child(3) { animation-delay: 0.4s; }

.form-success,
.form-error {
    display: none;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    animation: fadeIn 0.5s ease;
}
.form-success {
    background-color: rgba(0, 255, 0, 0.1);
    border-left: 4px solid #00ff00df;
}
.form-error {
    background-color: rgba(255, 0, 0, 0.1);
    border-left: 4px solid #ff0000ba;
}
.form-success i { color: #00ff00c7; font-size: 1.5rem; }
.form-error i   { color: #ff0000c8; font-size: 1.5rem; }

/* ============================================
   BOUTON RETOUR EN HAUT MODERNE
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    box-shadow: 0 10px 20px rgba(0, 204, 255, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 15px 30px rgba(0, 204, 255, 0.5);
}

.back-to-top i {
    transition: transform 0.3s ease;
}

.back-to-top:hover i {
    transform: rotate(360deg);
}

/* ============================================
   ANIMATIONS MODERNES POUR PARAGRAPHES ET ICÔNES
   ============================================ */
/* Animation des paragraphes .slide-right.grid-item */
.slide-right.grid-item {
    animation: slideInRightFade 1s ease forwards;
    opacity: 0;
}

@keyframes slideInRightFade {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation des icônes dans les cartes */
.card-icon i,
.service-card .card-icon,
.info-icon i,
.social-link i {
    animation: iconPulse 3s infinite ease-in-out;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Animation au survol des icônes */
.card-icon:hover i,
.service-card:hover .card-icon,
.info-item:hover .info-icon i,
.social-link:hover i {
    animation: iconRotate 0.6s ease;
}

@keyframes iconRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   STYLE DES PARAGRAPHES SLIDE-RIGHT (DÉJÀ MODIFIÉ)
   ============================================ */
p.slide-right {
    font-size: 1.4rem;      
    line-height: 1.6;
    max-width: 900px;        
    margin: 20px auto;      
    padding: 20px 25px;
    background: rgba(18, 22, 77, 0.319);
    border-radius: 12px;
    color: #fff;             
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    backdrop-filter: blur(1px); 
    border-left: 5px solid #4a90e2;
}

/* Gestion de la grille */
.section-content {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 30px;
}

.grid-item {
    grid-column: 1 / -1; 
    width: 100%;
}

/* Adaptation mobile */
@media (max-width: 768px) {
    p.slide-right {
        font-size: 1.1rem;
        padding: 15px;
        margin: 15px auto;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .nv {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(34, 34, 34, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        border-radius: 0;
        padding: 0;
        z-index: 1000;
    }
    .nv.active {
        display: flex;
        padding: 20px 0;
    }
    .nv li {
        margin: 8px 0;
    }
    .nav-link {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    .mobile-menu-btn {
        display: flex;
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }
    .logo-frame {
        width: 100px;
    }
    h1 { font-size: 2.8rem; }
    .section-content { padding: 30px 20px; }
    .equipment-content,
    .content-with-image {
        flex-direction: column;
        align-items: flex-start;
    }
    .equipment-content img,
    .content-with-image img {
        width: 100%;
        max-width: 400px;
    }
    .dual-images {
        grid-template-columns: 1fr;
    }
    .topography-images {
        flex-direction: column;
        align-items: center;
    }
    .topo-image {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 900px) {
    .equipment-grid,
    .multimedia-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
    .welcome-text { font-size: 1.5rem; }
    .content-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .company-info-grid { grid-template-columns: 1fr; }
    .contact-container { grid-template-columns: 1fr; }
    .buttons-container { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 300px; }
    .logos-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 20px;
    }
    .logo-card img { width: 80px; height: 80px; }
    .tab-btn { padding: 10px 24px; font-size: 1rem; }
}

@media (max-width: 600px) {
    .equipment-grid,
    .multimedia-grid {
        grid-template-columns: 1fr;
    }
}