@import url("fonts.css");

/* --------------------------------------
   Base / Reset
-------------------------------------- */
:root{
  --bg: #223A85;
  --text: rgba(255,255,255,0.75);
  --white: #fff;
  --green: #D1FF11;
  --dark: #092273;

  --font-sans: "Hanken Grotesk", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-mono: "Anonymous Pro", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  --radius-15: 15px;
  --radius-20: 20px;
}

*,
*::before,
*::after{
  box-sizing: border-box;
}

html{
  -webkit-text-size-adjust: 100%;
}

body{
  margin: 0;
  background: var(--bg);
  font-family: var(--font-sans);
  color: var(--text);
  font-size: 18px;
  line-height: 1.5;
  overflow-x: hidden;
  padding-left: 105px;
}

a{
  color: var(--green);
}

a:focus-visible{
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

main{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 auto;
}

main > section{
  width: 100%;
}

section > *{
  position: relative;
}

.container{
  max-width: 1240px;
}

/* --------------------------------------
   Header (mast)
-------------------------------------- */
.mast-header{
  position: fixed;
  z-index: 9;
  top: 0;
  left: 0;
  height: 100vh;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding: 30px;

  background: linear-gradient(0deg, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0.22) 100%),
              rgba(9,34,115,0.11);

  -webkit-backdrop-filter: blur(50px);
  backdrop-filter: blur(50px);
}

.mast-header .logo{
  display: flex;
  gap: 15px;
  align-items: center;
}

.mast-header nav{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 45px;
}

.mast-header nav a{
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-decoration: none;

  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.5;
}

.mast-header nav a:hover{
  opacity: 1;
}

.mast-header nav a img{
  max-width: 25px;
}

.mast-header nav a span,
.mast-header .logo img:last-child{
  display: none;
}

.mast-header:hover nav a span,
.mast-header:hover .logo img:last-child{
  display: block;
}

.mast-footer{
  background: rgba(0,0,0,0.20);
  -webkit-backdrop-filter: blur(50px);
  backdrop-filter: blur(50px);
  font-size: 0.7em;
}

/* --------------------------------------
   Home / Datawall
-------------------------------------- */
.home .datawall{
  padding: 60px 30px 90px 146px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 60px;

  background: linear-gradient(276deg,
              rgba(210,205,255,0.40) -8.24%,
              rgba(121,110,255,0.15) 45.68%,
              rgba(121,110,255,0.40) 99.6%);

  position: relative;
  overflow: hidden;

  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.datawall > *{
  position: relative;
}

.datawall .section-title{
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -2.2px;
}

.number-item{
  width: 100%;
  display: flex;
  padding: 30px;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  border-radius: var(--radius-15);

  background: linear-gradient(276deg,
              rgba(121,110,255,0.40) -8.24%,
              rgba(121,110,255,0.15) 45.68%,
              rgba(210,205,255,0.40) 99.6%);

  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(25px);
}

.number-item .text{
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.72px;
}

.number-item .number{
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 66px;
  font-weight: 700;
  line-height: 60px;
}

/* Animations */
@keyframes floatCorner{
  0%   { transform: translate(0,0) scale(1);     filter: blur(22px); opacity: 0.6; }
  25%  { transform: translate(-40px,-30px) scale(1.05); filter: blur(18px); opacity: 0.75; }
  50%  { transform: translate(-80px,-60px) scale(1.1);  filter: blur(14px); opacity: 0.9; }
  75%  { transform: translate(-30px,-40px) scale(1.03); filter: blur(18px); opacity: 0.75; }
  100% { transform: translate(-60px,-20px) scale(1.07); filter: blur(16px); opacity: 0.8; }
}

@keyframes floatOrb{
  0%   { transform: translate(0,0) rotate(0deg) scale(1); }
  25%  { transform: translate(40px,-30px) rotate(20deg) scale(1.05); }
  50%  { transform: translate(-30px,-60px) rotate(-15deg) scale(0.95); }
  75%  { transform: translate(50px,-20px) rotate(10deg) scale(1.08); }
  100% { transform: translate(-20px,-40px) rotate(-10deg) scale(1); }
}

@keyframes floatOrbAlt{
  0%   { transform: translate(0,0) scale(0.9) rotate(0deg);    filter: blur(18px); }
  20%  { transform: translate(-40px,-30px) scale(1.05) rotate(15deg); filter: blur(10px); }
  45%  { transform: translate(30px,-80px) scale(1.15) rotate(-10deg); filter: blur(2px); }
  70%  { transform: translate(-20px,-40px) scale(1.02) rotate(8deg);  filter: blur(12px); }
  100% { transform: translate(50px,-60px) scale(0.95) rotate(-5deg);  filter: blur(16px); }
}

/* --------------------------------------
   Titles / Headers / Typography
-------------------------------------- */
.page-tetiere{
  color: rgba(255,255,255,0.70);
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.page-title{
  font-family: var(--font-mono);
  font-size: 60px;
  font-weight: 700;
  line-height: normal;
  margin: 0.15em 0;
}

.page-subtitle{
  color: rgba(255,255,255,0.80);
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  line-height: 32px;
  margin: 0.3em 0;
}

.section-header{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 35px;
}

.section-header .header-title{
  font-family: var(--font-mono);
  font-size: 60px;
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
}

.section-header .header-subtitle{
  color: rgba(255,255,255,0.80);
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
}

.section-title{
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 700;
  margin: 15px 0;
}

.section-subtitle{
  color: rgba(255,255,255,0.80);
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
}

.text-grad-1{
  background: linear-gradient(90deg, #FFC2D0 3.41%, #D8FF6A 21.04%, #DBFF6A 50.16%, #FFCFD9 76.54%, #D2CDFF 97.68%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-grad-2{
  background: linear-gradient(90deg, #FF6C8C 0%, #A49EFF 110.09%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --------------------------------------
   Utility backgrounds / colors
-------------------------------------- */
.bg-purple{
  background: linear-gradient(0deg, #4B3CFF 0%, #4B3CFF 100%),
              linear-gradient(91deg, #EFFFAF 0.6%, #D8FF6A 13.91%, #DCFA75 48.63%, #FFCFD9 92.17%, #D2CDFF 112.84%);
}

.bg-lightpurple{
  background: #D2CDFF;
  -webkit-backdrop-filter: blur(50px);
  backdrop-filter: blur(50px);
  color: #223A85;
}

.bg-lightpurple a{
  color: #EC3D6E;
}

.bg-grad-1{
  background: linear-gradient(276deg, rgba(210,205,255,0.35) -8.24%, rgba(75,60,255,0.20) 45.68%, rgba(75,60,255,0.40) 99.6%);
  -webkit-backdrop-filter: blur(50px);
  backdrop-filter: blur(50px);
}

.bg-grad-2{
  background: rgba(0,0,0,0.20);
  -webkit-backdrop-filter: blur(50px);
  backdrop-filter: blur(50px);
}

.purple{ color: #576CFB; }
.green{ color: var(--green); }

/* Columns */
.col-2{
  columns: 2;
  column-gap: 60px;
}
.col-2 p:first-child{
  margin-top: 0;
}

/* --------------------------------------
   Accordion
-------------------------------------- */
.accordion-item{
  padding: 20px 90px 19px 15px !important;
  text-align: left;
  border: 1px solid rgba(255,255,255,0.10);
  background: #152C76;
  box-shadow: 0 0 4px 0 rgba(0,0,0,0.25);
  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(25px);
  color: var(--white);
  border-radius: var(--radius-15);
}

.accordion-header{
  display: flex;
  width: 100%;
  gap: 15px;
  align-items: flex-start;
  align-self: stretch;

  background: transparent;
  border: 0;
  text-align: left;

  font-family: var(--font-mono);
  font-size: 1.3em;
  font-weight: 700;
  line-height: 1.3em;
  letter-spacing: -0.54px;

  padding-left: 5px !important;
  padding-right: 30px !important;

  color: var(--white);
  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(25px);

  position: relative;
}

/* Option A (logique) : chevron à droite via ::after */
.accordion-header::after{
  content:"";
  position: absolute;
  right: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  background-image: url(../images/svg/chevron.svg);
  background-repeat: no-repeat;
  background-size: contain;
  transform: rotate(0deg);
  transition: transform .2s ease;
}

.accordion-item.active .accordion-header::after{
  transform: rotate(180deg);
}

/* Si tu veux aussi une “orb” à gauche, décommente ça :
.accordion-header::before{
  content:"";
  width:24px;
  min-width:24px;
  height:24px;
  margin-top:3px;
  background-image:url(../images/svg/big_purple_orb.svg);
  background-repeat:no-repeat;
  background-size:contain;
}
*/

.accordion .accordion-content{
  display: none;
  padding-right: 45px;
}

.accordion-item.active .accordion-content{
  display: block;
}

.accordion-content{
  padding-left: 45px !important;
}

/* --------------------------------------
   Sections spécifiques / Orbs
-------------------------------------- */
#enjeux-perspectives{
  background: linear-gradient(276deg, rgba(210,205,255,0.35) -8.24%, rgba(75,60,255,0.20) 45.68%, rgba(254,89,135,0.50) 99.6%);
  -webkit-backdrop-filter: blur(50px);
  backdrop-filter: blur(50px);
  position: relative;
}

#enjeux-perspectives .container,
#enjeux-perspectives .header{
  position: relative;
  z-index: 1;
}

#enjeux-perspectives::after{
  z-index: 0;
  position: absolute;
  content:"";
  bottom: 0;
  right: -50vw;
  width: 100vw;
  height: 50%;
  background-image: url(../images/svg/big_purple_orb-3.svg);
  filter: blur(150px);
}

/* Greetings */
#greetings{
  position: relative;
}

#greetings::before{
  content:"";
  position: absolute;
  top: -500px;
  right: -50%;
  width: 1098px;
  height: 1103px;
  transform: rotate(90deg);
  background-image: url(../images/svg/big_blue_orb-2.svg);
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(150px);
  z-index: 0;
}

#greetings::after{
  content:"";
  position: absolute;
  bottom: 0;
  right: -50%;
  width: 100vw;
  height: 50%;
  background-image: url(../images/svg/big_purple_orb-3.svg);
  background-repeat: no-repeat;
  filter: blur(50px);
  z-index: 0;
}

#greetings .container{
  position: relative;
  z-index: 1;
}

/* Badge */
.badge{
  background: linear-gradient(0deg, #94B01C 0%, #BDE029 100%),
              linear-gradient(276deg, rgba(210,205,255,0.40) -8.24%, rgba(121,110,255,0.15) 45.68%, rgba(121,110,255,0.40) 99.6%);
  padding: 3px 10px;
  border-radius: 7px;
  font-weight: 700;
  text-transform: uppercase;

  position: absolute;
  right: -80px;
  top: -4px;

  color: var(--white);
  font-size: 16px !important;
  font-family: var(--font-sans);
}

.conseils-conso .badge{
  position: relative;
  right: auto;
  top: auto;
  font-size: 13px;
  margin-right: 3px;
}

/* --------------------------------------
   Hero
-------------------------------------- */
.hero{
  position: relative;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;

  background: linear-gradient(276deg,
              rgba(210,205,255,0.35) -8.24%,
              rgba(93,82,222,0.20) 45.68%,
              rgba(4,0,41,0.40) 99.6%);

  -webkit-backdrop-filter: blur(50px);
  backdrop-filter: blur(50px);
  overflow: hidden;
}

.hero > .hero-content{
  position: relative;
  z-index: 1;
  margin:0 auto;
}

/* Orbs hero */
.hero::before{
  content:"";
  position:absolute;
  left: 0;
  bottom: 0;
  width: 331.65px;
  height: 356.22px;
  background-image: url(../images/svg/big_purple_orb.svg);
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(10px);
  transform: rotate(90deg);
  z-index: 0;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.hero::after{
  content:"";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 600px;
  background-image: url(../images/svg/big_purple_orb-4.svg);
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 0;
}

/* background-position: fixed était invalide → si tu veux l’effet, c’est ça : */
.hero::before,
.hero::after{
  background-attachment: fixed;
}

/* Conseils conso */
.conseils-conso .hero .hero-subtitle{
  font-size: 1.25em;
  color: var(--white);
  font-family: var(--font-mono);
  padding: 30px 0;
}

.conseils-conso h3{
  font-size: 1.25em;
  color: var(--white);
  font-weight: 700;
  font-family: var(--font-mono);
}

/* Section tetiere */
.section-tetiere{
  background: var(--green);
  padding: 10px 15px;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
  color: #223A85;
  position: relative;
  margin-left: -60px;
  border-radius: 15px 15px 0 15px;
  font-size: 16px !important;
  font-family: var(--font-sans);
}

/* --------------------------------------
   Dataviz / KPI
-------------------------------------- */
.dataviz-container{
  display: flex;
  padding: 30px;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  border-radius: var(--radius-15);
  background: rgba(0,0,0,0.20);
  -webkit-backdrop-filter: blur(50px);
  backdrop-filter: blur(50px);
  position: relative;
}

.kpi-icon{ padding: 10px; }
.kpi-icon img{ max-width: 96px; max-height: 96px; }

.kpi-number{
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 66px;
  font-weight: 700;
}

.kpi-text{
  color: rgba(255,255,255,0.50);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
}

.kpi-baseline{
  margin-top: 5px;
  color: rgba(255,255,255,0.50);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  gap: 15px;
}

.kpi-evolution{
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.kpi-evolution::before{
  content:"";
  display: inline-block;
  height: 16px;
  width: 15px;
  margin-right: 5px;
  background-repeat: no-repeat;
  background-size: contain;
}

.kpi-evolution.evolution-up::before{ background-image: url(../images/svg/arrow-up-green.svg); }
.kpi-evolution.evolution-down::before{ background-image: url(../images/svg/arrow-down-red.svg); }

.kpi-evolution.kpi-badge{
  display: flex;
  padding: 5px 10px;
  justify-content: center;
  align-items: center;

  position: absolute;
  right: 15.5px;
  top: 14.5px;

  color: #223A85;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;

  border-radius: 7px;
  background: var(--white);
  box-shadow: -4px 4px 0 0 var(--dark);
}

/* Number variants */
.number-red{
  background: linear-gradient(0deg, #FE5987 0%, #FE5987 100%),
              linear-gradient(276deg, rgba(210,205,255,0.40) -8.24%, rgba(121,110,255,0.15) 45.68%, rgba(121,110,255,0.40) 99.6%);
  -webkit-backdrop-filter: blur(50px);
  backdrop-filter: blur(50px);
}

.number-lightpurple{
  background: linear-gradient(0deg, #D2CDFF 0%, #D2CDFF 100%),
              linear-gradient(276deg, rgba(210,205,255,0.40) -8.24%, rgba(121,110,255,0.15) 45.68%, rgba(121,110,255,0.40) 99.6%);
  -webkit-backdrop-filter: blur(50px);
  backdrop-filter: blur(50px);
}

.number-lightpurple .text{ color: #1E388D; }
.number.darkblue{ color: #1E388D; }
.number.red{ color: #FE5987; }

/* Wrappers */
.dataviz-wrapper{
  display: flex;
  width: 100%;
  padding: 30px;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  border-radius: var(--radius-20);

  background: linear-gradient(276deg, rgba(210,205,255,0.35) -8.24%, rgba(75,60,255,0.20) 45.68%, rgba(75,60,255,0.40) 99.6%);

  -webkit-backdrop-filter: blur(50px);
  backdrop-filter: blur(50px);
}

.dataviz-wrapper h3{
  margin: 0;
  color: var(--white);
}

.legend{ font-size: 16px; }

/* --------------------------------------
   Figures / Content
-------------------------------------- */
figcaption{
  font-size: 1.15em;
  font-weight: 200;
  color: var(--white);
  padding-left: 30px;
  text-align: left;
}

figcaption strong{
  font-size: 1.25em; /* unité corrigée */
}

.contributions article > p{
  font-size: 1.5em;
  font-family: var(--font-mono);
  color: #FE5987;
}

/* --------------------------------------
   Pages spécifiques
-------------------------------------- */
.chiffres-clefs .section-title{
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1.6px;
}

.chiffres-clefs .section-chiffres{
  padding: 0 30px;
}

.chiffres-clefs main{
  gap: 45px;
}

.recommandations .accordion,
.exemples .accordion{
  padding-top: 60px !important;
}

/* --------------------------------------
   Section orbs helpers
-------------------------------------- */
.section-orb-1{
  overflow: hidden;
  position: relative;
}

.section-orb-1 > *{
  position: relative;
}

/* version “container orb” */
.dataviz-container.section-orb-1::before{
  content:"";
  position: absolute;
  left: 0;
  bottom: -200px;
  width: 100vw;
  height: 70%;
  background-image: url(../images/svg/big_purple_orb-2.svg);
  background-repeat: no-repeat;
  z-index: 0;
}

/* --------------------------------------
   Responsive
-------------------------------------- */
@media (max-width: 989px){
  body{
    padding-left: 0;
    font-size: 15px;
  }

  main{
    padding-top: 80px;
  }

  .mast-header{
    position: absolute;
    height: auto;
    width: 100vw;
    max-width: none;
    gap: 0;
    padding: 15px;
  }

  .mast-header nav{
    display: none;
    justify-content: space-around;
    gap: 15px;
  }
    body.menu-collapse  .mast-header{
        height:100vh;
    }
  body.menu-collapse  .mast-header nav{
    display:flex;
    padding:45px 15px;
    gap:45px;
  }
  .mast-header nav a{
    flex-direction: row;
    opacity:1;
  }

  .mast-header nav a span,
  .mast-header .logo img:last-child{
    display: block;
  }

  .home .datawall{
    padding: 60px 15px;
  }

  .datawall .section-title,
  .page-title{
    font-size: 36px;
  }

  .number-item .number{
    font-size: 44px;
    line-height: 36px;
  }

  .number-item .text{
    font-size: 16px;
  }

  .mast-header .logo{
    max-width: 200px;
  }

  .number-item img{
    max-width: 70px;
  }

  .section-tetiere{
    margin-left: 0;
  }

  .col-2{
    columns: 1;
    column-gap: 60px;
  }

  .d-flex.justify-center{
    align-items: center;
  }

  .edito main section:nth-child(4) div.flex-3{
    align-items: center;
    text-align: center;
  }

  .accordion-item,
  .accordion .accordion-content{
    padding: 15px !important;
  }

  .accordion-item .badge{
    display: none;
  }
  .hamburger
    {
        display:inline-block !important;
        position:absolute;
        top:10px;
        right:10px;
        z-index:999
    }
    .hamburger-inner, .hamburger-inner:after, .hamburger-inner:before,
    .hamburger.is-active .hamburger-inner, .hamburger.is-active .hamburger-inner:after, .hamburger.is-active .hamburger-inner:before{
            background-color: #fff;
    }
  /* Tu avais des “orbs” qui étaient neutralisées en mobile :
     je garde l’intention mais sans cibler des éléments non définis. */
  body::before{
    content: none;
  }
}

@media (min-width: 990px){
  body::before{
    content:"";
    position: absolute;
    top: -500px;
    left: -150px;
    width: 1098px;
    height: 1103px;
    transform: rotate(109.119deg);
    background-image: url(../images/svg/big_blue_orb.svg);
    background-repeat: no-repeat;
    filter: blur(150px);
    z-index: 0;
  }

  .mast-header::before{
    content:"";
    position: absolute;
    left: -34.735px;
    top: -100.235px;
    width: 129.58px;
    height: 149.928px;
    transform: rotate(109.119deg);
    background-image: url(../images/svg/header_orb.svg);
    background-repeat: no-repeat;
    filter: blur(50px);
  }

  .datawall::before{
    content:"";
    position: absolute;
    bottom: -500px;
    right: -550px;
    width: 1098px;
    height: 1103px;
    transform: rotate(109.119deg);
    background-image: url(../images/svg/big_purple_orb.svg);
    background-repeat: no-repeat;
    filter: blur(20px);
    animation: floatCorner 18s ease-in-out infinite alternate;
    will-change: transform, filter, opacity;
    z-index: 0;
  }

  .section-orb-1::before{
    content:"";
    position: absolute;
    bottom: 0;
    left: -150px;
    width: 120vw;
    height: 70%;
    background-image: url(../images/svg/big_purple_orb-2.svg);
    background-repeat: no-repeat;
    z-index: 0;
  }

  .red-orb{
    position: absolute;
    width: 148.82px;
    height: 150px;
    top: 100px;
    right: 100px;
    background-image: url(../images/svg/orb-red.svg);
    background-size: contain;
    background-repeat: no-repeat;
    animation: floatOrbAlt 18s ease-in-out infinite alternate;
  }

  .red-orb-2{
    position: fixed;
    width: 248.82px;
    height: 250px;
    bottom: 50px;
    right: 25vw;
    z-index: 10;
    background-image: url(../images/svg/orb-red.svg);
    background-size: contain;
    background-repeat: no-repeat;
    animation: floatOrb 18s ease-in-out infinite alternate;
  }


}
.hamburger
{
    display:none;
}



.number-delai .absolute-img {
    position: absolute;
    right: -125px;
    top: -35px;
    width: 250px;
    height: auto;
}