/* ---- Mise en page générale ---- */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  text-align: center;
}

nav { background:#f5f5f5; padding:15px; }
nav a { margin:0 15px; text-decoration:none; color:blue; font-weight:bold; }

/* ---- Conteneur image (l'image fixe la hauteur) ---- */
.container{
  position: relative;
  display: block;
  width: min(95vw, 1100px);   /* responsive avec borne max */
  margin: 30px auto 0;        /* centré */
}

/* L'image prend toute la largeur et conserve son ratio */
.container > img{
  display: block;
  width: 100%;
  height: auto;
}

/* ---- Carrés avec fond noir ---- */
.square{
  position: absolute;
  transform: translate(-50%, -50%); /* ancre au centre du point top/left */
  width: 11%;                 /* largeur relative à l'image */
  min-width: 70px;            /* lisible sur petits écrans */
  max-width: 150px;

  padding: .45em .6em;
  background: rgba(0,0,0,.8);
  color:#fff;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center;

  border-radius: .9vw;        /* arrondi fluide */
  font-size: clamp(11px, 1.1vw, 14px);
  line-height: 1.2;
}

.square h4{
  margin:0 0 .15em 0;
  font-size: .95em;
  text-decoration: underline;
}

.square span{
  font-size: 1.05em;
  font-weight: 700;
}

/* ---- Carrés avec fond blanc---- */
.squarew{
  position: absolute;
  transform: translate(-50%, -50%); /* ancre au centre du point top/left */
  width: 11%;                 /* largeur relative à l'image */
  min-width: 70px;            /* lisible sur petits écrans */
  max-width: 150px;

  padding: .45em .6em;
  background: rgba(255,255,255,255);
  color:#000;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center;

  border-radius: .9vw;        /* arrondi fluide */
  font-size: clamp(11px, 1.1vw, 14px);
  line-height: 1.2;
}

.squarew h4{
  margin:0 0 .15em 0;
  font-size: .95em;
  text-decoration: underline;
}

.squarew span{
  font-size: 1.05em;
  font-weight: 700;
}
/* ---- Carrés avec fond gris---- */
.squareg{
  position: absolute;
  transform: translate(-50%, -50%); /* ancre au centre du point top/left */
  width: 6%;                 /* largeur relative à l'image */
  min-width: 50px;            /* lisible sur petits écrans */
  max-width: 150px;

  padding: .45em .6em;
  background: rgba(230,230,230,1);
  color:#000;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center;

  border-radius: .9vw;        /* arrondi fluide */
  font-size: clamp(11px, 1.1vw, 14px);
  line-height: 1.2;
}

.squareg h4{
  margin:0 0 .15em 0;
  font-size: .95em;
  text-decoration: underline;
}

.squareg span{
  font-size: 1.05em;
  font-weight: 700;
}
/* ---- Flèches ---- */
.arrow{
  position: absolute;
  height: .35%;               /* épaisseur fluide */
  background: black;
  transform-origin: left center;
}

/* Tête de flèche qui scale */
.arrow::after{
  content:"";
  position:absolute; right:0; top:50%; transform:translateY(-50%);
  border-left: 1.0vw solid black;
  border-top: 0.5vw solid transparent;
  border-bottom: 0.5vw solid transparent;
}

/* Variante flèche vers la gauche (si tu ne fais pas rotate) */
.arrow-left::after{
  left:0; right:auto;
  border-left:none;
  border-right:1.0vw solid black;
}

/* ---- (Optionnel) bloc vidéo si tu l'utilises aussi ---- */
.centered-container{ display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:100vh; text-align:center; }
/* Conteneur vidéo responsif */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;         /* largeur max */
    aspect-ratio: 16 / 9;     /* ratio écran classique */
    margin-top: 10px;         /* petit espace sous le titre */
}

/* Vidéo pleine largeur/hauteur dans son conteneur */
.video-wrapper video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* wrapper responsive pour l'iframe */
.embed-wrapper{
  position: relative;

  /* occupe la hauteur utile de l’écran, moins ~120px pour ton header/titre */
  min-height: 60dvh;
  height: calc(100dvh - 60px);
  margin: 10px auto 24px;
  display: flex;
  align-items: stretch;
}

.embed-wrapper iframe{
  display: block;     /* évite espaces fantômes */
  width: 100%;
  height: 100%;
  border: 0;
}

/* petit loader centré par-dessus */
.embed-loader{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  background: #fafafa;
}

/* sur très petits écrans on force une hauteur mini */
@media (max-width: 420px){
  .embed-wrapper{ min-height: 70dvh; }
}

.chart-wrap {
  width: min(95vw, 900px);
  height: 600px;
  margin: 20px auto;
}

 header {
            display: flex;
            align-items: center;
            justify-content: space-between; /* espace entre logo et menu */
            padding: 10px 20px;
            background-color: #f8f8f8; /* facultatif */
        }

        header img {
            height: 60px;
        }
        nav {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
        }

        nav a {
            margin-left: 20px;
            text-decoration: none;
            color: #333;
            font-weight: bold;
        }

        nav a:hover {
            color: #0077cc;
        }
        footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px; /* espace entre les logos */
    padding: 20px;
    background-color: #f8f8f8;
    border-top: 1px solid #ddd;
}

footer img {
    height: 50px;
    transition: transform 0.2s ease;
}

footer img:hover {
    transform: scale(1.1);
}

form {
            display: flex;
            gap: 10px;
            align-items: center;
            justify-content: center;
        }
        input[type="text"] {
            padding: 5px;
            border: 1px solid #ccc;
            border-radius: 5px;
        }
        button {
            padding: 5px 10px;
            border: none;
            background-color: #007bff;
            color: white;
            border-radius: 5px;
            cursor: pointer;
        }

.hidden { display: none; }
.input-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 4px 8px;
  width: fit-content;
}

.input-wrapper input {
  border: none;
  outline: none;
  width: 80px; /* adapte à ton besoin */
}

.unit {
  color: #666;
  margin-left: 4px;
  font-size: 0.9em;
}
input:disabled {
  visibility: hidden;
}

.list-tight {
  list-style: none;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.list-tight li {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 0.25rem 0;
  line-height: 1.2;
  text-align: center; /* Centre le texte */
  justify-content: center; /* Centre le contenu horizontalement */
}

.list-tight li::before {
  content: "•";
  display: inline-block;
  line-height: 1;
  transform: translateY(-0.05em);
  font-weight: 700;
  flex: 0 0 auto;
}
  #costChartContainer {
    max-width: 1000px;
    height: 500px;
    margin: 1rem auto;
    display: block;
  }

 .yearly-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.custom-toggle {
    width: 80px;
    height: 35px;
    background-color: #ccc;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s;
}

.custom-toggle.active {
    background-color: #4CAF50;
}

.custom-toggle::after {
    content: '';
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: white;
    position: absolute;
    top: 2.5px;
    left: 2.5px;
    transition: transform 0.3s;
}

.custom-toggle.active::after {
    transform: translateX(45px);
}

.toggle-label {
    font-weight: bold;
    font-size: 14px;
}

  .centered-title {
    text-align: center;
    margin: 0 auto;
    font-weight: bold;
  }
