/* =====================================================
   VARIABLES
===================================================== */
:root {
    --primary: #0F5F4F;
    --accent: #C75A1D;
    --light-bg: #f8f9fa;
}

/* =====================================================
   BASE
===================================================== */
html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

section {
    width: 100%;
}

h2 {
    margin: 0 0 20px;
}

/* =====================================================
   VIDEO SECTION
===================================================== */
.video-section {
    position: relative;
    height: 820px;
    overflow: hidden;
    z-index: 1;
}

#bg-video,
.mobile-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.desktop-video {
    display: block;
}

.mobile-video {
    display: none;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
}

/* =====================================================
   HEADER
===================================================== */
header {
    position: absolute;
    top: 30px;
    left: 40px;
    z-index: 20;
}

header img {
    height: 45px;
}

.subtitle {
    margin: 6px 0 0;
    font-size: 15px;
    color: #0000ff;
}

/* =====================================================
   NAVIGATION
===================================================== */
nav {
    position: absolute;
    top: 35px;
    right: 60px;
    z-index: 20;
}

.menu-links {
    display: flex;
    gap: 25px;
}

.menu-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

/* =====================================================
   ENERGY QUOTE
===================================================== */
.energy-quote {
    position: absolute;
    top: 62%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 900px;

    text-align: center;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 22px;
    font-weight: 600;
    font-style: italic;
    color: white;

    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
    z-index: 15;
}


/* =====================================================
   MAIN CONTENT
===================================================== */
/* =========================================
   MAIN CONTENT SECTION
========================================= */
.main-content {
    position: relative;
    width: 100%;

    transform: translateY(-130px);

    padding: 120px 10% 300px;

    overflow: hidden;
    border-top: 3px solid #0F5F4F;

    z-index: 5;
}

/* ===== VIDEO BACKGROUND ===== */
.main-bg-video {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center 75%;

    z-index: 1;   /* ✅ PLUS de valeur négative */
}

/* Overlay léger pour lisibilité texte */
.main-content::before {
    content: "";
    position: absolute;
    inset: 0;

    background: rgba(255,255,255,0.85);

    z-index: 2;   /* au-dessus vidéo */
}

/* ===== CONTENU TEXTE ===== */

.main-inner {
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin: auto;
}

.main-inner h2 {
    margin-top: 0;
    color: #0F5F4F;
}

.main-inner p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* =====================================================
   CORE ACTIVITIES
===================================================== */
.activities-section {
    margin-top: -35px;
    padding: 60px 0;
    background: var(--light-bg);
}

.activities-title {
   position: relative;
    z-index: 5;
    text-align: center;
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 20px;
}

/* =====================================================
   SLIDER
===================================================== */
.slider {
    position: relative;
    width: calc(100% - 20px);
    /*max-width: 1400px;*/
    margin: 10px auto;

    aspect-ratio: 18 / 10;
    max-height: 650px;   /* 👈 limite la hauteur */

    overflow: hidden;

    border: 4px solid #C75A1D;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}






.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
   pointer-events: none;
}
.slide:not(.active) {
    display: none;
}

.slide.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}




.slide-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
    color: white;
}

.slide img {
    width: 100%;
    height:100%;
    object-fit:contain;   /* garde les proportions */
    /*object-fit: cover;*/
    object-position: center;
   transition: transform 6s ease;
   padding: 20px 0;
    text-align: center;
    background: white;    /* fond propre si bandes */
}

.slide-content {
    position:absolute;
   background: transparent;
    top: 10px;                 /* ✅ EN HAUT de l'image */
    left: 10%;
    transform: translateX(-50%);
    
    width: 50%;
    max-width: 200px;
    
    background: rgba(255,255,255,0.65);  /* ✅ Transparent clair */
    padding: 10px 20px;
    border-radius: 10px;

    text-align: center;
    z-index: 10;
}

.slide-content h3 {
    margin: 0 0 8px;
    color: var(--primary);
}
.slide-content p {
    margin: 0;
    color:#333;
   max-width: 700px;
    line-height: 1.6;
}
slide.active img {
    transform: scale(1.05);
}

/* =====================================================
   ARROWS & DOTS
===================================================== */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 32px;
    color: #333;
    background: rgba(255,255,255,0.6);  /* cercle neutre */
    padding: 10px 16px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s ease;
}

.arrow:hover {
    background: rgba(255,255,255,0.85);
}

.arrow.left {
    left: 15px;
}

.arrow.right {
    right: 15px;
}


.dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.dot {
    width: 12px;
    height: 12px;
    background: #bbb;
    border-radius: 50%;
    display: inline-block;
    margin: 0 6px;
    cursor: pointer;
}

.dot.active {
    background: var(--primary);
}

/* =====================================================
   FOOTER
===================================================== */
footer {
    text-align: center;
    padding: 35px 0;
    background: #f2f2f2;
    color: #333;
    font-size: 14px;
    letter-spacing: 1px;
}

/* =====================================================
   LAPTOP
===================================================== */
@media (min-width:1025px) and (max-width:1500px) {
    .video-section { height: 680px; }
    .energy-quote { top: 60%; font-size: 20px; }
    .slider { height: 520px; }
}

/* =====================================================
   TABLET
===================================================== */
@media (min-width:769px) and (max-width:1024px) {
    .video-section { height: 680px; }
    .energy-quote { top: 58%; font-size: 18px; }
    .slider { height: 360px; }
}

/* =====================================================
   MOBILE
===================================================== */
@media (max-width:768px) {
    .desktop-video { display: none; }
    .mobile-video { display: block; }
    .video-section { height: 650px; }

    .menu-toggle { display: block; font-size: 30px; cursor: pointer; color: var(--primary); }
    .menu-links { position: absolute; top: 50px; right: 0; flex-direction: column; display: none; background: rgba(0,0,0,0.9); padding: 15px 25px; }
    .menu-links.active { display: flex; }
    .menu-links a { color: white; padding: 8px 0; }

    .energy-quote { width: 94%; font-size: 16px; top: 45%; }

    .main-content { margin-top: -250px; padding: 40px 6%; border-left: none; border-top: 4px solid var(--primary); }

    .slider { height:300px; border-width: 4px; width: 94vw; }
    .slide-content { width: 90%; }
}
.main-content{
    margin-top: -120px;
    padding: 60px 6%;
    border-left: none;
    border-top: 4px solid var(--primary);
}

.main-overlay{
    background: rgba(255,255,255,0.92);
}
   .main-bg-video{
       object-position: center 85%;
      }
@media (max-width: 768px) {

   .main-content {
      height: 300px;
   }

   .main-overlay {
      padding: 30px 15px;
      text-align: center;
   }

   .main-overlay h2 {
      font-size: 22px;
   }

   .main-overlay p {
      font-size: 14px;
   }
}
.video-section {
    margin-bottom: 0;
}

.energy-quote {
    margin-bottom: 0;
}

.activities-section {
    margin-top: 0;
    padding-top: 50px;
}
