:root {
    --primary-color: #173C4A;
    --secondary-color: #299C69;
    --background-color: #f4f7f6;
    --header-height: 80px;
    --nav-color: #fff;
    --link-hover-color: #c4e1ff;
    --hamburger-color: #333;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
       --teal-900:#04342C; --teal-700:#0F6E56; --teal-500:#1D9E75;
    --blue-700:#185FA5; --blue-500:#378ADD;
    --amber-700:#854F0B; --amber-500:#EF9F27;
    --ink:#1E2A28; --ink-soft:#5B6A67; --paper:#F5F8F7; --card:#FFFFFF; --line:#D6E3E0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    line-height: 1.6;
    
}

/* Header Styling */
.header {
    width: 100%;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow);
}

.logo {  
    max-height: 70px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Navigation Menu */
.nav-list {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-decoration: none;
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hamburger Menu for Mobile */
.nav-toggle {
    display: none; /* Hide on desktop */
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
}

.hamburger {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--hamburger-color);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--hamburger-color);
    transition: transform 0.3s ease, top 0.3s ease;
}

.hamburger::before {
    top: -8px;
    left: 0;
}

.hamburger::after {
    top: 8px;
    left: 0;
}

.nav-toggle.open .hamburger {
    background-color: transparent;
}

.nav-toggle.open .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.open .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}
.separator{
    display:block;
    width:100%;
    height:80px;
}

.content{
    margin-top: 100px;
}

/*Frise chronologique*/
 .wrap{max-width:1280px; margin:0 auto;}
  .eyebrow{
    font-family:'Fraunces',sans-serif; font-weight:500; font-size:13px;
    letter-spacing:.14em; text-transform:uppercase; color:var(--teal-700);
    margin:0 0 10px;
  }
  h1{
    font-family:'Fraunces',sans-serif; font-weight:700; font-size:38px;
    line-height:1.15; margin:0 0 8px; color:var(--teal-900);
  }
  .sub{font-size:16px; color:var(--ink-soft); margin:0 0 56px; max-width:640px;}

  /* ---- shared node/card styling ---- */
  .node{
    border-radius:50%; background:var(--card); border:2px solid var(--ring);
    display:flex; align-items:center; justify-content:center;
    box-shadow:0 1px 2px rgba(4,52,44,.08); flex-shrink:0;
  }
  .phase-index{
    font-family:'Poppins',sans-serif; font-weight:500; font-size:11px;
    letter-spacing:.1em; text-transform:uppercase; margin:0 0 5px;
  }
  .phase-title{
    font-family:'Poppins',sans-serif; font-weight:700;
    color:var(--teal-900); margin:0 0 3px;
  }
  .phase-duration{font-weight:600; margin:0 0 14px;}
  .card{
    background:var(--card); border:1px solid var(--line); border-radius:12px;
    padding:14px 16px;
  }
  .card-label{
    font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase;
    color:var(--ink-soft); margin:0 0 5px;
  }
  .card-value{font-size:14px; line-height:1.5; color:var(--ink); margin:0;}

  .p1 .node{border-color:var(--teal-500);} .p1 .phase-index,.p1 .phase-duration{color:var(--teal-700);}
  .p2 .node{border-color:var(--blue-500);} .p2 .phase-index,.p2 .phase-duration{color:var(--blue-700);}
  .p3 .node{border-color:var(--amber-500);} .p3 .phase-index,.p3 .phase-duration{color:var(--amber-700);}

  .footer-chrono{
    margin-top:56px; padding-top:24px; border-top:1px solid var(--line);
    display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:12px;
  }
  .footer-note{font-size:13px; color:var(--ink-soft); margin:0;}
  .footer-stat{font-family:'Poppins',sans-serif; font-weight:700; font-size:15px; color:var(--teal-900); margin:0;}

  /* ---- HORIZONTAL layout (default, desktop) ---- */
  .track{position:relative; padding:40px 0 0;}
  .ribbon{display:block; position:absolute; left:0; right:0; top:96px; z-index:0;}
  .rail{display:none;}

  .phases{position:relative; z-index:1; display:grid; grid-template-columns:repeat(3,1fr); gap:32px;}
  .phase{display:flex; flex-direction:column; align-items:center; text-align:center;}
  .node{width:96px; height:96px; margin-bottom:22px;}
  .node svg{width:44px; height:44px;}
  .phase-title{font-size:22px;}
  .phase-duration{font-size:14px;}
  .card{width:100%; max-width:280px;}
  .body{display:contents;}

/* HERO */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: flex-end;
    padding: 4rem 3rem 5rem;
    overflow: hidden;
    background: #173C4A; /* couleur principale */
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(23,60,74,0.9) 0%,
        rgba(23,60,74,0.4) 50%,
        rgba(23,60,74,0.1) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

h2{
   font-size: clamp(1.5rem, 5vw, 4rem);
    line-height: 0.92;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
    font-family: 'Fraunces', sans-serif;
    font-weight: 700;
} 


.hero-title {
    color: #fff;
    font-size: clamp(3.5rem, 10vw, 8rem);
    line-height: 0.92;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
    font-family: 'Fraunces', sans-serif;
    font-weight: 700;
}

.hero-description {
    color: rgba(255,255,255,0.75);
    font-size: 1.25rem;
    line-height: 1.7;
    max-width: 550px;
}

.text {
    max-width: 1400px;
    margin: 0 auto;
}

.presentation {
    display: flex;
    
    align-items: center;
    justify-content: space-between;
    gap: 20;
    padding: 100px 40px;
}

.presentation > div {
    flex: 1;
}

#map {
    z-index: 0;
    width: 100%;
    height: 500px;
    min-height: 300px;
}

.presentation p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.presentation-image {
    flex: 1;
    width: 100%;
    height: auto;
    max-width: 700px;
    object-fit: contain;
    border-radius: 20px;
}

.presentation-content {
    flex: 1;
}
.action{
    display: flex;
    align-items: center;flex-direction: column;
    justify-content: space-between;
    padding: 100px 40px;
}

.partenaires-nav{
    
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px 40px;
}

.partenaire-container{
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

#contenu-partenaire{
    max-width: 80%;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    transition: transform .4s ease, opacity .4s ease;
}
.site-partenaire{
    background-color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    transition: color 0.3s ease;
}
.site-partenaire:hover{
    background-color: var(--secondary-color);
}
.slide-out{
    transform: translateX(100%);
    opacity: 0;
}
#contenu-dynamique {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.partenaire-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 12px;
    object-fit: contain;
}

.slide-in{
    transform: translateX(-100%);
    opacity: 0;
}
.carousel {
    position: relative;
    max-width: 900px;
    width: 100%;
    margin: 50px auto 0;
    overflow: hidden;
    border-radius: 20px;
}

.carousel-track {
    display: flex;
    transition: transform .4s ease;
}

.carousel-track img {
    min-width: 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: rgba(29, 27, 27, 0.8);
    cursor: pointer;
    font-size: 22px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgb(31, 73, 33);
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}

button{
    border: none;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 20px;
    padding: 10px 20px;
    cursor: pointer;
}

.download-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
   
}

.btn-download{
    display:inline-block;
    padding:12px 24px;
    background:#2e7d32;
    color:#fff;
    text-decoration:none;
    border-radius:8px;
    transition:.2s;
}

.btn-download:hover{
    background:#256628;
}
.footer{
    background-color: var(--primary-color);
    color: #fff;
    padding: 40px 20px 20px;
}

.footer-container{
    display: flex;
    justify-content: space-between;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.footer h3,
.footer h4{
    margin-bottom: 10px;
}

.footer p{
    margin: 5px 0;
    opacity: 0.9;
}

/* Liens */
.footer-links a{
    display: block;
    color: #fff;
    text-decoration: none;
    margin: 5px 0;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.footer-links a:hover{
    opacity: 1;
}

/* Bas de footer */
.footer-bottom{
    margin-top: 30px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 15px;
    font-size: 0.9rem;
}

.contact-page {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
    background: #f7f7f7;
    min-height: 80vh;
}

.contact-container {
    width: 100%;
    max-width: 600px;
}

.contact-container h1 {
    text-align: center;
    margin-bottom: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form button {
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: var(--primary-color);
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}

.contact-form button:hover {
    background: #1a252f;
}

.success {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.articles-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.card{
    border:1px solid #ddd;
    border-radius:12px;
    overflow:hidden;
    background:#fff;
    max-width: 350px;
    width: 100%;
    margin: 0 auto;
}

.card img{
    width:100%;
    height:220px;
    object-fit:cover;
}
.card-content{
    padding:1rem;
}

.card h2{
    margin-bottom:1rem;
}

.card p{
    margin-bottom:1rem;
}
.article-container{
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;}

.article-title{
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.article-content{
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.article-content h2{
    font-size: 1.8rem;
    margin-top: 2rem;
}

.article-content h3{
    font-size: 1.4rem;
    margin-top: 1.5rem;
}

.article-content p{
    line-height: 1.8;
    max-width: 100%;
        overflow-wrap: break-word;
    word-break: break-word;
}

.article-content img{
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
}

#cookie-banner{
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
}

#cookie-banner p{
    margin: 0;
    font-size: 14px;
    flex: 1;
}

.cookie-buttons{
    display: flex;
    gap: 10px;
    margin-left: 15px;
}

.cookie-buttons button{
    padding: 8px 12px;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    font-size: 13px;
}

.cookie-buttons button:first-child{
    background: #2e7d32;
    color: white;
}

.cookie-buttons button:last-child{
    background: #ccc;
}

.stats{
    display: flex;
    justify-content: center;
    padding: 60px 20px;
}

.stat-box{
    text-align: center;
}

.counter{
    font-size: 5rem;
    font-weight: bold;
}
/* Mobile Navigation Menu */
@media (max-width: 800px) {
    .hero {
    
    min-height: calc(50vh - var(--header-height));
  
}
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: #fff;
        padding: 80px 0 0 20px;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
        transition: right 0.4s ease-in-out;
    }

    .nav.open {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .nav-toggle {
        display: block;
    }

    .header.scrolled .nav-toggle {
        /* Optional: Change hamburger color on scroll */
        color: var(--secondary-color);
    }
    .presentation {
        flex-direction: column;
        gap: 40px;
        padding: 60px 20px;
    }
    
    h1{font-size:28px;}
    .sub{margin-bottom:40px;}

    .ribbon{display:none;}
    .rail{
      display:block; position:absolute; left:31px; top:6px; bottom:6px; width:6px; z-index:0;
      border-radius:3px; background:linear-gradient(180deg,#1D9E75 0%,#378ADD 50%,#EF9F27 100%);
    }

    .track{padding-left:64px; padding-top:0;}
    .phases{display:block;}
    .phase{
      position:relative; z-index:1; flex-direction:row; align-items:flex-start;
      text-align:left; margin-bottom:44px;
    }
    .phase:last-child{margin-bottom:0;}

    .node{
      position:absolute; left:-64px; top:0; width:64px; height:64px; margin-bottom:0;
    }
    .node svg{width:28px; height:28px;}

    .body{display:block; padding-left:20px; padding-top:6px; width:100%;}
    .phase-title{font-size:20px;}
    .phase-duration{font-size:14px;}
    .card{max-width:420px; width:auto;}

    .footer-chrono{margin-top:48px; flex-direction:column; align-items:flex-start;}
    #map { 
        width: 100%;
         height: 300px
    }
    .presentation-content,
    .presentation-image {
        width: 100%;
        max-width: 100%;
    }

    .presentation h2 {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .presentation p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .presentation-image {
        height: 350px;
    }

      .carousel {
        margin: 20px auto 0;
        border-radius: 12px;
    }

    .carousel-track img{
        height:300px;
    }

    .carousel-btn{
        width:38px;
        height:38px;
        font-size:18px;
    }

    .footer-container{
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-links a{
        display: inline-block;
        margin: 5px 10px;
    }
    .contact-form {
        padding: 15px;
    }

      .article-container{
        padding: 2rem 1rem;
    }

    .article-content p{
        font-size: 1rem;
    }

    .article-content img{
        max-height: 300px;
    }
}