:root {
  --vert-sauge: #c0dbba;
  --vert-sauge-clair: #d7f7d0;
  --vert-lierre: #1b5725;
  --ivoire: #fff2bf;
  --or-antique: #ffd700;
  --bleu-roi: #1b4560;
  --bleu-roi-clair: #0062a1;
  --bordeaux: #660000;
  --bordeaux-clair: #a00000;
}

html {
  scroll-behavior: smooth;
  text-align: justify;
}

body {
  margin: 0;
  font-size: 1.1em;
  font-family: 'Eagle Lake';
}

a {
  color: var(--bleu-roi);
}

/* Titres de sous-section */
h2 {
  text-align: center;
  margin-top: 1.5em;
  font-size: 2em;
}
 
/* Attire-attention défis */
h2.defis {
  text-align: center;
  font-size: 1.8em;
  color: var(--bleu-roi);
  font-weight: normal; 
}

ul {
  list-style-type: none;
}

/* Image & titre de couverture */
header.titre {
  position: relative;
  background-image: url('/img/fondcombe.jpg');
  background-size: cover;
  background-position: center;
  height: 100vh;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.header-bandeau {
  height: 400px;
}

html {
  background: black;
}

/* Ajustement visibilité image de couverture */
header.titre::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}
header.titre h1, header p {
  position: relative;
  z-index: 2;
}

header.titre h1 {
  font-family: 'UnifrakturMaguntia';
  font-size: 4.5em;
  margin: 0;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
  font-weight: normal;
}
header.titre p {
  font-size: 1.5em;
  margin-top: 30px;
  margin-bottom: 30px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
  font-family: 'Eagle Lake', cursive;
}

select {
    color: black;
}
/* Flèche pour descendre */
.scroll-down {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 2em;
  color: white;
  cursor: pointer;
  animation: bounce 2s infinite;
  text-decoration: none;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
  40% {transform: translateX(-50%) translateY(-10px);}
  60% {transform: translateX(-50%) translateY(-5px);}
}

.fleche {
  animation: glowFleche 2.5s infinite ease-in-out;
}

@keyframes glowFleche {
  0% {
    filter: drop-shadow(0 0 5px var(--ivoire)) drop-shadow(0 0 10px var(--or-antique));
  }
  20% {
    filter: drop-shadow(0 0 12px var(--or-antique)) drop-shadow(0 0 25px var(--ivoire));
  }
  40% {
    filter: drop-shadow(0 0 6px var(--or-antique)) drop-shadow(0 0 15px white);
  }
  60% {
    filter: drop-shadow(0 0 13px var(--or-antique)) drop-shadow(0 0 35px var(--or-antique));
  }
  80% {
    filter: drop-shadow(0 0 8px var(--or-antique)) drop-shadow(0 0 20px var(--ivoire));
  }
  100% {
    filter: drop-shadow(0 0 15px var(--or-antique)) drop-shadow(0 0 10px var(--or-antique));
  }
}


/* STYLE SECTION BLEU */
.section-bleu {
  background-color: var(--bleu-roi); 
  color: var(--ivoire);
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  border-radius: 0;
  box-shadow: none;
  font-family: 'Eagle Lake';
  padding: 20px 10%;
}
.section-bleu a {
  color: var(--vert-sauge); 
  text-decoration: underline;
}
.section-bleu a:hover {
  color: var(--ivoire);
}

/* STYLE SECTION VERT */
.section-vert-sauge {
  background-color: var(--vert-sauge);
  color: #000000;
  padding: 0.1em 2em;
  margin: 0;
  box-sizing: border-box;
  padding: 20px 10%;
}
.section-vert-sauge h3 {
  color: var(--bleu-roi); 
  margin-bottom: 0em;
  font-size: 1.5em;
  font-family: 'UnifrakturMaguntia';
}
.section-vert a {
  color: var(--bleu-roi);
}

/* STYLE SECTION BORDEAUX */
.section-bordeaux {
  background-color: var(--bordeaux); 
  color: var(--ivoire);
  padding: 3em 3em;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  border-radius: 0;
  box-shadow: none;
  font-family: 'Eagle Lake';
  padding: 20px 10%;
}
.section-bordeaux a {
  color: white; 
  text-decoration: underline;
  font-size: 1.1em;
  padding: 10px;
}
.section-bordeaux a:hover {
  color: var(--vert-sauge);
}
.section-bordeaux ul {
  display: flex;
  flex-direction: column;
  gap: 10px; 
}

/* Bas de page */
footer {
  text-align: center;
  padding: 2em 10%;
  background-color: var(--vert-sauge);
  background: url(img/margin2.jpg);
    background-repeat: repeat-y;
    background-size: 100% auto;
  color: var(--ivoire);

  background-position: center;
  background-attachment: fixed;
}



/* Grille d'images au début du site */
.debut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2em;
  margin-top: 2em;
}
.debut-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #d5e4d9; /* vert sauge clair */
  font-weight: bold;
  font-family: 'Eagle Lake', cursive;
  transition: transform 0.3s ease;
}
.debut-card img {
  width: 100%;
  max-width: 220px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  object-fit: cover;
}
.debut-card span {
  margin-top: 0.8em;
  font-size: 1.2em;
  text-align: center;
  font-family: 'Almendra SC';
}
.debut-card:hover {
  color: #ffffcc; /* ivoire */
}

/*Points des précédents paliers atteints*/
.points {
  font-family: 'Almendra SC', serif;
  font-weight: bold;
  color: var(--bordeaux);
  font-size: 1.1em;
}

/* Palier en cours avec jauge de progression*/
.prochain-palier {
  background-color: var(--ivoire);
  color: var(--vert-lierre);
  padding: 1.5em 2em;
  border-radius: 8px;
  max-width: 600px;
  margin: 2em auto 0 auto;
  box-shadow: 0 0 10px var(--bleu-roi);
}
.prochain-palier h3 {
  font-family: 'Almendra SC';
  font-size: 2em;
  margin-top: 0;
  margin-bottom: 0.5em;
  font-weight: normal;
  color: var(--vert-lierre);
  text-align: center;
}
.prochain-palier p {
  font-size:1em;
  color: var(--vert-lierre);
}
.prochain-palier span {
  font-size: 1.5em;  
  color: var(--vert-lierre);
}
#progress-container {
  text-align: center;
}

.content-wrapper {
    margin: 0;
    background: url(img/margin2.jpg);
    background-repeat: repeat-y;
     background-size: 100% auto;
  background-position: center;
  background-attachment: fixed;
  padding-left: 5%;
  padding-right: 5%;
}

.table-centree {
    display: flex;
    justify-content: center;
}
.table-centree img {
    width: 100%;
}
.section-bleu h1 {
  text-align: center;
}
#co2-counter {
  text-align: center;
  font-size: 2em;
}
#tonnes {
  text-align: center;
  font-size: 1.5em;
}

header#navbar {
  background-color: var(--bordeaux); 
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 45px;
  z-index: 500;
}
#navbar {
  transform: translateY(-100%); 
}
#navbar.visible {
  transform: translateY(0); 
}

.nav-title {
  padding: 10px;
  font-size: 1.2em;  
}
.nav-title a {
  color: white;
  text-decoration: none;
}
.nav-links {
  list-style: none; 
  margin: 0;
  padding: 0;
  display: flex; 
  gap: 1rem; 
  color: white;
}
.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover {
  text-decoration: underline;
}

#countdown {
      font-size: 1.5em;
      background-color: var(--ivoire);
      background-size: 100% ;
      text-align: center;
      color: var(--bleu-roi);
      display: block;
      width: 100%;
      max-width: 600px;
      margin: 10px auto ;
      padding: 25px;
      border-radius: 20px;
      box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
      box-sizing: border-box;
      overflow: hidden;
      margin-bottom: 50px; 
    }


.deux-colonnes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  align-items: start;
}
.map-container iframe {
  width: 100%;
  height: 400px; /* tu peux ajuster */
  border: 0;
}


.section-bleu .h2-infos {
  color: var(--vert-sauge);
  margin-top: 0;
  font-size: 2.5em;
  font-family: 'Almendra SC';
  text-align: left;
}
.section-vert-sauge .h2-infos {
  color: var(--bleu-roi);
  margin-top: 0;
  font-size: 2.5em;
  font-family: 'Almendra SC';
  text-align: left;
}


.h4-transport {
  font-size: 1.8em;
  font-family: 'UnifrakturMaguntia';
  margin-top: 70px;
}




.list-leave li::before {
  content: "☙";
  margin-right: 1em;
}
.list-colors li::before {
  content: "☙";
  margin-right: 1em;
}
.list-colors li {
  font-family: "Beth Ellen";
}



@media (min-width: 1400px) {
  .section-bleu, .section-vert-sauge, .section-bordeaux {
    padding-left: 15%;
    padding-right: 15%;
  }
}

table.liste {
    width: 95%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 10pt;
}

.short-title { display: none; }
.short  { display: none; }
@media (max-width: 700px) {
  .full-title { display: none; }
  .full { display: none; }
  .short-title { display: inline; }
  .short { display: flex; flex-wrap:wrap; }
  header.titre h1 { font-size: 3em; }
  body {
      font-size: 0.8em;
  }
  table {
      font-size: 1em;
  }
  nav {
    padding: 10px;
    font-size: 0.8em;  
  }
  header.titre p {
    font-size: 1.2em;  
  }
}

/* Styles du popup */
body.dimmed {
    background-color: rgba(240, 240, 240, 0.7);
    transition: background-color 0.3s ease;
}

/* Style du popup */
#popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--ivoire);
    border: 1px solid #ccc;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/*#popup button {
    text-align: right;
    margin-top: 1em;
      padding: 0.7em 1.5em;
      font-size: 1em;
      background-color: var(--bordeaux);
      color: white;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-family: 'Eagle Lake', cursive;

      padding: 20px 20px;
  border-radius: 10px;
  color: white;    
  font-size: 1.1em;
  background-color: var(--bordeaux-clair);
  font-family: 'Eagle Lake';
}

#popup button:hover {
      background-color: var(--bordeaux-clair);
}
*/

/* Fond semi-transparent derrière le popup (overlay) */
#overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 999;
}

/* Switch */

.checkbox-group {
    display: flex;
/*    gap: 15px; */
    align-items: center;
    margin: 15px 0 15px 0; 
}

.checkbox-group label {
    display: flex;
    align-items: center;
    margin : 0 0 0 0;
}

input[type="radio"] {
  accent-color: var(--bleu-roi); /* Bleu personnalisé */
}
