:root {
  --primary: #6362DE;
  --primary_hexa: 99,98,222;
  --primary-light: #D4D4F4;
  --dark: #151531;
  --dark_hexa: 21,21,49;
  --light: #ffffff;
  --light_hexa: 255,255,255;
  --gray: #BBBBD5;

}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  background: #ffffff;
  color: var(--dark);
}

.container {
  max-width: 1400px;
  margin: auto;
  padding: 0 1rem;
  position: relative;
}

h1.article-title {
    color: var(--light);
    margin: 0;
    font-size: 24px;
    line-height: 28px;
    padding: 0 25px;
    font-weight: 700;
}

.article-image .img {
    margin: 12px 0 6px 0;
    min-width: calc(100% - 25px);
    width: calc(100% - 25px);
    position: relative;
    height: 250px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 0 35px 35px 0;
    z-index: 1;
}

.article-image figcaption {
    padding-left:25px;
    font-size:10px;
    color:var(--gray);
    font-weight: 500;
}

.article-meta {
    padding: 10px 25px 2px 25px;
    font-size: 12px;
    color: var(--dark);
    font-weight: 400;
    line-height: 18px;
    font-style: italic;
}

.article-actions {
  display: none;
}

.article-content {
    padding: 10px 25px;
    font-size: 13px;
    color: var(--dark);
    font-weight: 400;
    line-height: 18px;
}

.article-intro {
  font-size: 18px;
  line-height: 22px;
  font-weight: 500;
}

.article-fulltext {
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  padding-top: 18px;
  padding-left: 25px;
  padding-bottom: 40px;
}

.article-fulltext:before {
    content: '';
    position: absolute;
    display: block;
    width: 40px;
    height: 10px;
    border-radius: 0 10px 10px 0;
    background-color: var(--primary);
    margin-left: -50px;
    margin-top: 5px;
}

.reading-progress-container {
  position: fixed;
  bottom: 0;
  height: 10px;
  background: var(--gray);
  width: 100%;
  z-index: 1;
}

.reading-progress-bar {
    width: 0%;
    height: 10px;
    border-radius: 0 10px 10px 0;
    background-color: var(--primary);
}

.article-footer {
  display: none;
}

/* HEADER */ 

.header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--light);
}

.header-inner {
    display: block;
    text-align: center;
    height: 90px;
}

.logo {
    display: inline-block;
    background-image: url(./../img/exploorer-logo-w.png);
    background-position: center;
    background-size: 220px;
    background-repeat: no-repeat;
    width: 250px;
    height: 90px;
}

.burger {
  position: absolute;
  top: 30px;
  left: 25px;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  display: none;
}

.burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 5px;
  background: white;
  border-radius: 999px;
  pointer-events: none;
  transition:
    transform 0.3s ease,
    opacity 0.2s ease;
}

.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 8.5px; }
.burger span:nth-child(3) { bottom: 0; }

.header.open .burger span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.header.open .burger span:nth-child(2) {
  opacity: 0;
}

.header.open .burger span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}


/* NAV */

.nav {
    color: var(--light);
    background: rgba(255, 255, 255, 0.08);
}

.nav ul {
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 0;
}

.nav li {
    list-style: none;
    padding: 12px 15px;
}

.nav a {
    color: var(--light);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
}

.nav li:hover {
  background-color: rgba(255,255,255,0.1);
  cursor: pointer;
}

.nav li:hover a {
  
}

.subheader-bg {
    background: var(--primary);
    width: 100%;
    height: 500px;
    position: absolute;
    top: 0;
}



/* SLIDER */

.slider {
  position: relative;
  margin-top: 2rem;
  overflow: hidden;
  border-radius: 1rem;
  color: var(--light);
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
    min-width: calc(100% + 25px);
    width: calc(100% + 25px);
    position: relative;
    height: 300px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 35px 0 0 35px;
    margin-right: -25px;
    z-index: 1;
}

.slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.slide .slide-content {
    position: absolute;
    width: calc(100% - 50px);
    bottom: 22px;
    left: 25px;
    max-width: 600px;
    color: #fff;
    z-index: 2;
    padding-right: 25px;
}

.slide .slide-content h2 {
    font-size: 24px;
    line-height: 26px;
    font-weight: 700;
}

.slide .slide-content .publication {
    font-size: 13px;
    font-weight: 400;
    margin-top: 5px;
    display: block;
    opacity: 0.7;
}

.slide .layer-one {
    position: absolute;
    border-radius: 35px 0 0 35px;
    z-index: 0;
    width: 100%;
    height: 300px;
    background-color: rgba(var(--primary_hexa), 0.2);
}
.slide .layer-two {
    position: absolute;
    border-radius: 35px 0 0 35px;
    z-index: 1;
    width: 100%;
    height: 300px;
    background: radial-gradient(circle at 0px 600px, rgba(var(--dark_hexa), 0.7) 0%, rgba(var(--dark_hexa), 0) 100%), rgba(0, 0, 0, 0);
}

.slider-flash {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(var(--light_hexa), 0.95) 0%,
    rgba(var(--light_hexa), 0.8) 40%,
    rgba(var(--light_hexa), 0.6) 70%
  );
  transition: opacity 0.5s ease;
}

.badge {
    display: inline-block;
    padding: 0;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    opacity: 0.7;
    font-style: italic;
}

.badge.blue {  }
.badge.purple {  }

/* SLIDER CONTROLS */

.slider-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(2,6,23,0.7);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  z-index: 10;
}

.slider-arrow.left { left: 1rem; }
.slider-arrow.right { right: 1rem; }

/* SLIDER DOTS ANIMATION */

/* SLIDER DOTS */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 1rem;
  margin-bottom: 1rem;
  position: relative;
}

.slider-dots button {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: var(--primary-light);
  cursor: pointer;
  position: relative;
  z-index: 1; /* derrière le point actif */
  transition: background 0.3s;
}

.slider-dots button.active {
  background: var(--primary);
  z-index: 2; /* toujours au-dessus */
}

/* Trait animé */
.dot-travel {
  position: absolute;
  top: 50%;
  height: 20px;
  background: var(--primary);
  border-radius: 20px;
  transform: translateY(-50%);
  z-index: 3; /* <-- au-dessus de tous les boutons */
  transition: left 0.3s ease, width 0.3s ease;
}



.ad {
    background-position: center;
    width: 100%;
    min-height: 100px;
    background-repeat: repeat;
    background-size: 60px;
    background-image: url(./../img/ad_bg.png);
    margin: 30px 0 30px 0;
    padding: 10px 0;
}

.ad:before {
    content: 'publicité';
    font-style: italic;
    position: relative;
    top: -32px;
    left: 25px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-light);
}


/* NEWS LIST */

.news-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 0;
}

.news-item {
  display: flex;
  gap: 1rem;
  text-decoration: none;
}

.news-item .illu {
    width: 120px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 0 12px 12px 0;
    position: relative;
    flex-shrink: 0;
}

.news-item .illu .layer-one {
    position: absolute;
    border-radius: 0 12px 12px 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(var(--primary_hexa), 0.15);
}

.news-item .content {
    padding-right: 25px;
}

.news-item h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.news-item .content .badge {
    padding: 0;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--primary);
}

.news-item .content .publication {
    font-size: 12px;
    font-weight: 400;
    margin-top: 4px;
    display: block;
    color: var(--gray);
    /* opacity: 0.7; */
}



/* NEWS */

article .badge {
    color: var(--light);
    padding-left: 25px;
}



@media (max-width: 768px) {
  .news-list {
    grid-template-columns: 1fr;
  }
}


/* RESPONSIVE */

@media (max-width: 1024px) {

  .burger { display: block; }

  .header-inner {
    height: 80px;
  }

  .logo {
    background-size: 170px;
    width: 200px;
    height: 80px; 
  }

  .slider {
      margin-top: 0;
      border-radius: 35px 0 0 35px;
      margin-left: 25px;
  }

  .slide img {
    height: 400px;
  }

  .nav {
    display: block; /* on laisse visible pour l'animation */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition:
      max-height 0.4s ease,
      opacity 0.25s ease,
      transform 0.25s ease;
  }

  .nav.open {
    max-height: 500px; /* suffisamment grand pour le menu */
    opacity: 1;
    transform: translateY(0);
    margin-bottom: 25px;
  }

  .nav ul {
    flex-direction: column;
    padding: 12px 0;
    gap: 0;
  }

  .nav li {
    animation: menuItemFade 0.3s ease forwards;
    padding: 12px 25px;
  }

  .nav a {
    font-size: 24px;
  }

  .nav.open li {
    animation-delay: calc(var(--i) * 0.05s);
  }

  .subheader-bg {
    height: 300px;
  }

  .container {
      padding: 0;
  }
}

/* optionnel : micro animation items */
@keyframes menuItemFade {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


