:root {
    --white-smoke: #F2F4F3;
    --dark_white-smoke: #d3d3d3;
    --light_white-smoke: #ffffff;

    --pistachio: #89CF63;   
    --light_pistachio: #a0ff6c;

    --night: #0A0908;
    --light-night: #191b1b;
    --dark-night: #0f0f0f;
    
    --maron-doré: rgb(173, 151, 24);

    --dark-light-beige: #e7cfc1;
    --beige: #EAE0D5;
    --beige-doré: #C6AC8E;
    --beige-doré-plus-foncé: #c6ac8ec4;
    --brun: #5E503F;
    --dark-brun: #362f25;

    --gunmetal: #22333B;
    --light_gunmetal: #13abe7;
    --extreme_light_gunmetal: #6bb6d1;

    --purple-blue: #1d1f32;
}

/* === THEMES === */
body.light-mode {
    --bg-color: var(--white-smoke);
    --Menu-bg-color: var(--dark-light);
    --Light-menu-bg-color: var(--dark-night);
    --text-color: var(--light-night);
    --header-bg: var(--white-smoke);
    --header-text: var(--white-smoke);
    --link-color: var(--light-night);
    --link-hover: var(--light_gunmetal);
    --btn-bg: var(--GUI-background-dark);
}

body.night-mode {
    --bg-color: var(--light-night);
    --Menu-bg-color: var(--dark-night);
    --Light-menu-bg-color: var(--dark-night);
    --text-color: var(--white-smoke);
    --header-bg: var(--light-night);
    --header-text: var(--light-night);
    --link-color: var(--white-smoke);
    --link-hover: var(--extreme_light_gunmetal);
    --btn-bg: var(--GUI-background-light);
}

/* === GENERAL === */


footer {
    color: var(--text-color);
}

/* === INTRO === */
.corps-intro-texte {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5% 2rem;
    min-height: calc(100vh - 80px);
    padding-right: 15rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mot-intro {
    margin-left: 2%;
    line-height: 1.2;
    z-index: 2;
}

.mot-intro .ligne1,
.mot-intro .ligne2 {
    color: var(--text-color);
    font-size: 80px;
    font-family: 'Times New Roman', Times, serif;
    font-weight: 10;
    display: flex;
    margin-right: 50px;
}

.mot-intro .ligne1{
    margin-bottom: 20px;
}
.mot-intro .ligne2 {
    margin-top: -20px;
}

.texte-intro {
    max-width: 450px;
    margin-left: 2%;
    margin-top: 2rem;
    font-size: 25px;
    font-weight: bold;
    font-family:  'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    line-height: 1.5;
    color: var(--text-color);
    z-index: 2;
}

.terre-wrapper {
    position: absolute;
    right: -20%;
    top: 39%;
    transform: translateY(-50%);
    width: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.terre-img-background {
    margin-left: 0rem;
    width: 100%;
    max-width: 750px;
    height: auto;
    object-fit: contain;
    rotate: -5deg;
}

#terre-rotative {
    margin-left: -20%;
    transition: transform 0.1s linear;
    transform-origin: center;
    margin-right: -9vw;
}

/* === MARQUEE === */
.marquee-défile {
    width: 100%;
    overflow: hidden;
    background-color: var(--bg-color);
    padding: 20px 0;
    margin-top: -14.5%;
    position: relative;
    z-index: 1;
}

.marquee {
    display: flex;
    width: 200%;
}

.marquee-content {
    display: flex;
    gap: 100px;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--white-smoke);
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    line-height: 1.8;
    animation: scroll-marquee 25s linear infinite;
    min-width: max-content;
    justify-content: space-around;
}

.gap-marquee-content{ margin-right: 85px; }

.marquee-content span {
    margin-right: 150px;
    flex-shrink: 0;
    opacity: 0.85;
    transition: opacity 0.3s ease;
    letter-spacing: 0.5px;
}

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-103.2%); }
}

.marquee-défile::before,
.marquee-défile::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 20;
    pointer-events: none;
}

body {
    position: relative;
    z-index: 1;
    background: radial-gradient(    
        circle at 50% 63%,
        var(--beige-doré) -10%,
        var(--dark-brun) 80%
    );
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    z-index: 0;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    width: 100vw;
    height: 100vh;
    background-image: 
        radial-gradient(rgba(255,255,255,0.18) 1.2px, transparent 1.2px),
        radial-gradient(rgba(255,255,255,0.10) 1.2px, transparent 1.2px);
    background-size: 32px 32px, 64px 64px;
    background-position: 0 0, 16px 16px;
    opacity: 0.45;
}

.marquee-défile::before { left: 0; background: linear-gradient(to right, var(--bg-color), transparent); }
.marquee-défile::after { right: 0; background: linear-gradient(to left, var(--bg-color), transparent); }

/* === POURQUOI INVESTIR === */
.pourquoi-investir {
    background-color: var(--white-smoke);
    padding: 4rem 2rem;
    text-align: center;
}
.pourquoi-investir h2 {
    color: var(--bg-color);
    font-size: 2rem;
    margin-bottom: 2rem;
}
.invest-reasons {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.reason {
    background-color: var(--beige-doré);
    border-radius: 12px;
    padding: 1.5rem;
    width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    text-align: center;
}
.reason:hover { transform: translateY(-5px); }
.reason img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: brightness(0.85);
}
.reason p {
    font-family:  'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 1.2rem;
    color: #2c2c2c;
    margin-top: 0.5rem;
}

/* === FEATURES === */
.features-section {
    background-color: #090909;
    color: white;
    padding: 100px 0;
    text-align: center;
}
.features-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: nowrap;
    max-width: 1400px;
    margin: 0 auto;
    gap: 0;
}
.feature-item {
   flex: 1 1 0;
    max-width: 50%;
    padding: 0 10px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.feature-item img {
    width: 130px;
    height: 150px;
    margin-bottom: 30px;
}
.feature-item h3 {
    font-size: 2rem;
    margin-bottom: 18px;
    font-weight: 500;
}
.feature-item p {
    font-size: 1.1rem;
    color: #bababa;
    line-height: 1.3;
    max-width: 340px;
    margin: 0 auto;
}

/* === PARCOURS & CITATION === */
.parcours { text-align: center; margin-top: 4rem; padding: 2rem; }
.parcours h2 { font-size: 2rem; margin-bottom: 3rem; }
.timeline {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.step {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    background-color: rgba(44, 44, 44, 0.8);
    padding: 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.25s, box-shadow 0.25s;
    display: block;
}
.step:visited, .step:active, .step:focus {
    color: inherit;
    text-decoration: none;
}
.step:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    text-decoration: none;
}
.step span {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--beige-doré);
    display: block;
    margin-bottom: 1rem;
}
.step p { color: var(--beige); line-height: 1.6; }

.citation {
    margin: 5rem auto;
    text-align: center;
    font-style: italic;
    font-size: 1.4rem;
    padding: 3rem 2rem;
    max-width: 800px;
    background-color: rgba(44, 44, 44, 0.8);
    border-radius: 10px;
}

/* === CTA & SCROLL === */
.btn-cta {
    display: inline-block;
    margin-top: 4%;
    padding: 15px 40px;
    font-size: 1.3rem;
    background-color: var(--beige-doré);
    color: var(--night);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    margin-left: 1.5%;
}
.btn-cta:hover { background-color: var(--beige-doré-plus-foncé); color: black; }

.scroll-indicator {
    display: block;
    margin-top: -5.9%;
    margin-left: 19%;
    font-size: 55px;
    color: var(--dark_white-smoke);
    animation: bounce 1.5s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateX(20px); }
    50% { transform: translateX(5px); }
}

/* === RESPONSIVE === */
@media (max-width: 1450px) {
  .mot-intro .ligne1,
  .mot-intro .ligne2 { font-size: 100px; }

  .texte-intro { font-size: 20px; max-width: 90%; }

  .terre-wrapper {
    position: relative;
    width: 80%;
    margin: 2rem auto;
    top: auto;
    right: auto;
    transform: none;
  }

  .btn-cta { display: block; margin-bottom: 10rem; margin-left: 50%; text-align: center; }
  .scroll-indicator { display: none; }
}

@media (max-width: 768px) {
  .features-container {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  .feature-item { max-width: 90%; }

  .timeline { flex-direction: column; gap: 20px; }

  .invest-reasons {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .reason { width: 90%; }

  .citation { font-size: 1.1rem; padding: 2rem 1rem; }
}

@media (max-width: 980px) {
  .mot-intro .ligne1,
  .mot-intro .ligne2 { font-size: 76px; }
  .texte-intro { font-size: 16px; }
}
@media (max-width: 750px) {
  .mot-intro .ligne1,
  .mot-intro .ligne2 { font-size: 56px; }
  .texte-intro { font-size: 16px; }
  .btn-cta {
    margin-left: 32%;
  }
}
@media (max-width: 560px) {
  .mot-intro .ligne1,
  .mot-intro .ligne2 { font-size: 46px; }
  .texte-intro { font-size: 16px; }
  .btn-cta {
    margin-left: 28%;
    }
}
@media (max-width: 460px) {
  .mot-intro .ligne1,
  .mot-intro .ligne2 { font-size: 36px; }
  .texte-intro { font-size: 16px; }
  .feature-item img { width: 100px; height: 100px; }
}
@media (max-width: 385px) {
  .mot-intro .ligne1,
  .mot-intro .ligne2 { font-size: 30px; }
  .texte-intro { font-size: 12px; }

  .feature-item img { width: 100px; height: 100px; }
}
@media (max-width: 320px) {
  .mot-intro .ligne1,
  .mot-intro .ligne2 { font-size: 25px; }
  .texte-intro { font-size: 10px; }

  .feature-item img { width: 100px; height: 100px; }
}
@media (max-width: 275px) {
  .mot-intro .ligne1,
  .mot-intro .ligne2 { font-size: 22px; }
  .texte-intro { font-size: 8px; }

  .feature-item img { width: 100px; height: 100px; }
}

/* Fix pour la Terre qui dépasse */
.terre-wrapper {
  right: 0;
  max-width: 100%;
  overflow: hidden;
}

/* Fix pour la bande défilante */
.marquee {
  width: 100%; /* au lieu de 200% qui déborde */
}

/* Adaptation spéciale pour écrans type smartphone (540px de large) */
@media (max-width: 540px) {
  .btn-cta {
    display: block;
    width: 35%;         /* prend 80% de la largeur écran */
    max-width: 320px;   /* limite max pour pas qu'il soit trop grand */
    margin: 2rem auto;  /* centré */
    padding: 18px 0;    /* plus haut, sans trop de largeur */
    font-size: 1.1rem;  /* texte lisible sans être énorme */
    text-align: center;
    margin-bottom: 5rem;
  }
}

@media (max-width: 375px) {
  .btn-cta {
    margin-bottom: 5rem;
  }
}

@media (max-width: 768px) {
  .btn-cta {
    margin-bottom: 5rem;
  }
}
.apprendre-name {
    margin-right: 20px;
}

@media (max-width: 768px) {
  .btn-cta {
    margin-bottom: 5rem;
  }
}

@media (max-height: 940px) {
    .terre-img-background {
        max-width: 700px;
    }
}

@media (max-height: 850px) {
    .terre-img-background {
        max-width: 650px;
    }
}

@media (max-height: 800px) {
    .terre-img-background {
        max-width: 600px;
    }
}

@media (max-height: 750px) {
    .terre-img-background {
        max-width: 550px;
    }
}

@media (max-height: 725px) {
    .terre-img-background {
        max-width: 510px;
    }
}

@media (max-height: 700px) {
    .terre-img-background {
        max-width: 480px;
    }
}

@media (max-height: 675px) {
    .terre-img-background {
        max-width: 450px;
    }
}