* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #222;
    line-height: 1.6;
}

header {
    background: #6d9460;
    padding: 2vh;
}

header h1 {
    color: #fff;
    margin: 0;
    text-align: center;
    font-size: 1.6rem;
}

nav {
    background: #8ec27d;
    padding: 2.5vh;
    text-align: center;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 2vw;
    font-size: 1rem;
    padding: 1.5vh 1.5vw;
}

nav a:hover {
    background-color: pink;
    border-radius: 1vh;
}

main {
    max-width: 90vw;
    margin: 5vh auto;
    background: white;
    padding: 4vh 3vw;
    border-radius: 2vh;
    box-shadow: 0px 1vh 3vh rgba(0,0,0,0.1);
    margin-bottom: 5vh;
}

main h2 {
    margin-bottom: 2vh;
    font-size: 1.8rem;
    text-align: center;
}

footer {
    background: #eee;
    padding: 3vh 2vw;
    text-align: center;
    font-size: 0.9rem;
    width: 100%;
    box-shadow: 0 -0.5vh 1vh rgba(0,0,0,0.1);
    position: relative;
    bottom: 0;
    left: 0;
}

.accueilfooter {
    position: absolute;
}
/* css pour les graph strict */ 
.range {
    display: flex;
    justify-content: center;
    gap: 2vw;
    margin-top: 4vh;
    margin-bottom: 10vh;
}

.camembert {
    width: 30vw;
    height: 30vw;
    border: 1px solid #ddd;
    padding: 2vh;
    border-radius: 1vh;
    box-shadow: 0 1vh 3vh rgba(0,0,0,0.15);
}

.btn-source {
    margin-top: 1vh;
    padding: 1vh 2vw;
    font-size: 0.9rem;
    border-radius: 0.6vh;
    border: 1px solid #333;
    background: #fff;
    cursor: pointer;
}

.btn-source:hover {
    background: #f2f2f2;
}

.simple-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.simple-modal[aria-hidden="false"] {
    display: flex;
}

.simple-modal-content {
    position: relative;
    background: #ffffff;
    padding: 3vh 3vw;
    border-radius: 1vh;
    max-width: 55vw;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 2vh 3vh rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
}

.close-btn {
    position: absolute;
    top: 1vh;
    right: 1vw;
    border: none;
    background: transparent;
    font-size: 1.4rem;
    cursor: pointer;
}

.source-graphique {
    margin-top: 2vh;
}

.source-graphique img {
    max-width: 100%;
    max-height: 40vh;
    display: block;
    margin-bottom: 1vh;
}

#map-wrapper {
    max-width: 70vw;
    margin: 3vh auto;
    padding: 2vh 1vw;
    overflow: hidden;
    position: relative;
    color: #ffffff;
}

svg#worldmap {
    width: 100%;
    height: auto;
}

#tooltip {
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    padding: 1vh 1vw;
    border-radius: 1vh;
    font-size: 12px;
    transform: translate3d(0,0,0);
    border: 1px solid rgba(255,255,255,.1);
    white-space: nowrap;
    z-index: 50;
}

#cards {
    position: absolute;
    inset: 0;
}



.point {
    margin-left: 3vw;
    padding-bottom: 1.5vh;
}

.texte {
    margin-top: 2vh;
}

.image_IA {
    width: 100%;
    max-width: 30vw;
    height: auto;
    display: block;
    margin: 3vh auto;
    border-radius: 5vh;
}

.prompt-ia,
.retour-experience-ia, 
.description-graphique {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 3vh 2vw;
    border-radius: 1vh;
    margin: 5vh 0;
}

.prompt-ia h2,
.retour-experience-ia h2 {
    font-size: 1.4rem;
    margin-bottom: 2vh;
}

.prompt-ia h3 {
    font-size: 1.2rem;
    margin: 2vh 0 1.5vh;
}

.prompt-ia ul,
.retour-experience-ia ul {
    margin: 2vh 0 2vh 2vw;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 50vw;
  margin: 0 auto;
  border-radius: 1vh;
  box-shadow: 0 1vh 3vh rgba(0, 0, 0, 0.2);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* css pour la parti hybride */ 

:root {
    --accent: #cadcf2;
    --tip-bg: #7b94b2;
    --tip-txt: #fff;
}

* {
    box-sizing: border-box;
}

#map-wrapper {
    max-width: 1300px;
    margin: 24px auto;
    padding: 12px;
    overflow: hidden;
    position: relative;
}

svg#worldmap {
    width: 100%;
    height: auto;
    display: block;
    user-select: none;
}


.country {
    cursor: pointer;
    transition: opacity .15s ease, filter .15s ease;
}

.country:hover {
    opacity: .9;
    filter: drop-shadow(0 0 0.25rem rgba(255,255,255,.15));
}

.country.is-active {
    stroke: var(--accent) !important;
    stroke-width: 2 !important;
    stroke-linejoin: round;
}


#tooltip {
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    background: var(--tip-bg);
    color: var(--tip-txt);
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 12px;
    transform: translate3d(0,0,0);
    transition: opacity .12s ease;
    border: 1px solid rgba(255,255,255,.1);
    white-space: nowrap;
    z-index: 50;
}


#cards {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.data-card {
    position: absolute;
    min-width: 260px;
    max-width: 320px;
    background: #7b94b2;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    padding: 10px 12px;
    pointer-events: auto;
    box-shadow: 0 6px 24px rgba(0,0,0,.35);
    backdrop-filter: blur(2px);
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease;
    opacity: 0;
}

.data-card.show {
    opacity: 1;
    transform: translateY(0);
}

.data-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.data-rows {
    display: grid;
    gap: 8px;
}

.row label {
    display: block;
    font-size: 12px;
    opacity: .85;
    margin-bottom: 4px;
}

.bar {
    position: relative;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
}

.fill {
    height: 100%;
    width: 0;
    transition: width .7s cubic-bezier(.22,.9,.34,1);
}

.fill.global {
    background: linear-gradient(90deg,#60a5fa,#93c5fd);
}

.fill.dc {
    background: linear-gradient(90deg,#34d399,#6ee7b7);
}

.fill.ia {
    background: linear-gradient(90deg,#f59e0b,#fbbf24);
}

.row .val {
    font-size: 12px;
    opacity: .8;
    margin-top: 2px;
}

.cls-1 {
    fill: none;
}

.cls-2 {
    fill: #fedf1b;
}

.cls-3 {
    fill: #1e345d;
}

.cls-3,
.cls-4,
.cls-5,
.cls-6,
.cls-7 {
    stroke: #010101;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cls-3,
.cls-4,
.cls-6,
.cls-7 {
    stroke-width: .15px;
}

.cls-4,
.cls-5 {
    fill: #cadcf2;
}

.cls-5 {
    stroke-width: .18px;
}

.cls-6 {
    fill: #203c8a;
}

.cls-8 {
    clip-path: url(#clippath-1);
}

.cls-9 {
    fill: #fff;
}

.cls-10 {
    fill: #e2de00;
}

.cls-11 {
    fill: #bf181a;
}

.cls-7 {
    fill: #e1311d;
}

.cls-12 {
    clip-path: url(#clippath);
}
