body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    text-align: center;
    background-color: #787f79;
}

header {
    padding: 0px;
    min-width: 1131px;
}

.main-logo {
    width: 844px;
    height: auto;
    opacity: 0.9;
    margin-top: -99px;
    margin-left: -20px;
}

.sub-image {
    width: 1146px;   /* ajuste selon ton besoin */
    height: auto;
    margin-top: 0px;
    margin-bottom: 30px;
}

/* HEADER IMAGES */

nav {
  position: relative;
  z-index: 10; /* ← passe devant les images */
}

.header-images-wrapper {
  position: relative;
  width: 1131px;
  max-width: none;
  margin: 0 auto;
  margin-top: -21px;
  height: 281px; /* ← 562px / 2 pour les écrans non-Retina */
  pointer-events: none;
  z-index: 0;
}

.header-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 1131px;
  max-width: none;
  height: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.header-hover-zone {
  position: absolute;
  margin-top: 37px;
  height: 53%;
  pointer-events: auto;
  cursor: pointer;
  border-radius: 14px;
  /* Décommente temporairement la ligne suivante pour visualiser les zones pendant le calibrage */
 /*  background: rgba(255,0,0,0.3); */

}
.header-hover-zone[data-zone="apprendre"] { left: 35px;   width: 310px; }
.header-hover-zone[data-zone="explorer"]  { left: 411px; width: 310px; }
.header-hover-zone[data-zone="jouer"]     { left: 784px; width: 310px; }

#img-default {
  opacity: 1; /* ← toujours visible */
}

.header-img.active {
  opacity: 1;
}


/* MENU */
.menu-partitions  { transform: translateX(46px); }
.menu-guides      { transform: translateX(43px); }
.menu-accordium   { transform: translateX(33px); }
.menu-harmosphere { transform: translateX(9px); }
.menu-triade      { transform: translateX(-5px); }
.menu-quiz      { transform: translateX(-18px); }

.menu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 70px;
  padding: 0;
  margin-top: -77px;
  margin-bottom: 35px;
  flex-wrap: nowrap;      /* jamais de retour à la ligne */
  width: max-content;     /* le menu garde sa taille naturelle */
  margin-left: 50%;
  transform: translateX(-50%);
}

.menu-item {
    white-space: nowrap;    /* le texte ne se coupe jamais */
  flex-shrink: 0; 

    position: relative;
    cursor: pointer;

    font-size: 19px;
    font-weight: 500;
    letter-spacing: 0.5px;

    padding: 6px 4px;

    transition: color 0.25s ease;
    color: #343835;
}

.menu-item:hover,
.menu-item.synthetic-hover {
    color: #dcff8f;
    text-shadow: 0 0 12px rgb(188, 255, 126, 0.2), 0 0 24px rgb(142, 255, 101, 0.1)
}

.menu-item.menu-active {
    color: #dcff8f;
    text-shadow: 0 0 12px rgb(188, 255, 126, 0.4), 0 0 24px rgb(142, 255, 101, 0.2)
}

.menu-item.menu-active::after {
   display: none;
}


/* HAUTEUR PERMANENTE DE LA PAGE (evite les bugs)*/
#content-display {
    padding-top: 30px;
    min-height: 500px; /* ajuste selon ton plus grand bloc */
}

.content-block {
    display: none;
    padding: 10px;
    padding-bottom: 36px;
    max-width: 1160px;
    margin: 0 auto 100px;

    border: none;
    border-radius: 26px;
    box-sizing: border-box;
    position: relative;

    box-shadow: 0 0 20px rgba(0,0,0,0);
}

.content-block.clicked {
    box-shadow:
        inset 0 0 0 1.5px rgba(255,255,255,0.6),
        0 0 20px rgba(0,0,0,0.1);

    transition: box-shadow 0.25s ease;
}


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

/* Les boutons sont invisibles par défaut */
.content-block .btn {
    display: none;
}

/* UNIQUEMENT si la section est cliquée */
.content-block.clicked .btn {
    display: inline-block;
}

img {
    max-width: 100%;
    height: auto;
}

.section-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 11px;
  border: 1.9px solid rgba(202,204,202);
  background: #5c635e;
  color: rgba(255,255,255,0.8);
  font-size: 33px;
  font-weight: 733;
  font-family: "Inter", system-ui, sans-serif;
  box-shadow: 0 0px 20px rgba(0,0,0,0.1);

  top: -29px;
  left: 50%;
  transform: translateX(-50%);

  position: absolute; /* ← libre dans le flux */
  z-index: 600;
}


.btn {
  display: inline-block;
  padding: 12px 28px;
  margin-top: 20px;

  border-radius: 11px;
  border: 1.9px solid rgba(255, 255, 255, 0.7);

  background: #828a84;
  color: rgba(255,255,255,0.7);

  font-size: 18px;
  font-weight: 500;

  text-decoration: none;
  cursor: pointer;

  box-shadow: 0 2px 8px rgba(0,0,0,0.12);

  transition: 
    background 0.2s ease,
    transform 0.15s ease,
    color 0.2s ease,
    border 0.2s ease;
}

.btn:hover {
  background: #98a19a;
  transform: scale(1.1);
}

.btn:active {
  transform: scale(1);
}



/* PARTITIONS */

#partitions {
    position: relative;
}

#partitions p{
    line-height:1.5;
    color: rgba(0, 0, 0, 0.55);
}

.overlay-img {
    position: absolute;
    top: -8px;        /* position verticale */
    left: 50%;        /* centre horizontal */
    transform: translateX(-50%);
    width: 700px;
    pointer-events: none;
}

#partitions {
    position: relative;
    padding-top: 189px;
}

.partitions-intro-1 {
    font-size: 18px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.5) !important;
    line-height: 1.3 !important;
}

.partitions-intro-2 {
    font-size: 17px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.5) !important;
}

.resources-container {
    max-width: 900px;
    margin: 40px auto 0;
    margin-top: 20px;
    color:  rgba(0, 0, 0, 0.7);
    font-size: 18px;
  }

  .styles-title {
    color:  rgba(0, 0, 0, 0.7);
    font-size: 26px;
    margin-top: 40px;
  }

.resource-grid{
    display:flex;
  flex-wrap:wrap;
  justify-content: center;
      gap:16px;
    margin-top:18px;
    margin-bottom:34px;

    align-items:start;   /* empêche les cartes de s'étirer */
}

.resource-card{
    padding:12px 16px 0px 16px;
    width:300px;
    position: relative;
    border-radius:12px;
    text-align:center;
    display:block;
    text-decoration: none;
    color:inherit;

    border:1.4px solid rgba(255,255,255,0.55);

    background:rgba(255,255,255,0.10);
    backdrop-filter:blur(4px);

    transition:
        transform 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.resource-title{
    font-weight:600;
}

.resource-card:hover{
    background:rgba(255,255,255,0.18);
    transform:translateY(-3px);
    box-shadow:0 6px 14px rgba(0,0,0,0.18);
}

/* petite flèche externe */
.resource-card::after{
    content:"↗";
    position:absolute;

    top:10px;
    right:14px;

    font-size:14px;
    opacity:0;

    transform:translateY(-4px);
    transition:opacity 0.18s ease, transform 0.18s ease;
}

/* apparition au hover */
.resource-card:hover::after{
    opacity:0.65;
    transform:translateY(0);
}

.resource-card a{
    text-decoration:none;
    font-weight:600;
}

.resource-card p{
    margin-top:6px;
    font-size:14px;
}

/* GUIDES */
.guide-img {
  position: absolute;
  right: -80px;
  top: -126px;
  width: 377px;
  pointer-events: none;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(4, 160px);
  justify-content: center;
  gap: 15px 40px;
  margin-top: 80px;
}

.guide-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    width: 160px;              /* même largeur que le A4 */
    display: flex;
    flex-direction: column;
    align-items: center;       /* centre horizontalement */
}

.guide-item p {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 500;
    color: rgb(255, 255, 255,0.7);
}

.guide-item:hover {
    transform: translateY(-4px);
}
.guide-theme-1:hover {
    transform: translateY(-12px);
}

.guide-item:has(.permanent-offer) .guide-price {
  display: none;
}

#guides h2 {
    font-size: 28px;
    color: rgb(255, 255, 255,0.7);
    margin-top: 27px;
    margin-bottom: -17px;
}

.guide-cover {
    position: relative;
    overflow: hidden;

    width: 160px;
    height: 226px;
    border: 2px solid rgb(38, 41, 36);
    border-radius: 6px;
    padding-top: 23px;
    box-sizing: border-box;
    
    display: flex;
    flex-direction: column;
    align-items: center;

    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.cover-title {
  position: absolute;
  top: 23px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  opacity: 0.7;
  text-align: center;
  z-index: 2;
}
.small-title {
    font-size: 14px;
}

.cover-inner-box {
  position: relative;
  width: 136px;
  height: 103px;
  background: white;
  opacity: 0.6;
  border-radius: 10px;
  margin-top: -12px;
  z-index: 1;
}

.soulignement {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}


.guide-item.locked .cover-inner-box {
  opacity: 0.1;
}



.guide-theme-1 .guide-cover {
  background: #b2c992;
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(255,255,255,0.18) 0%, transparent 35%),
    radial-gradient(ellipse at 80% 30%, rgba(0,0,0,0.10) 0%, transparent 40%),
    radial-gradient(ellipse at 40% 80%, rgba(255,255,255,0.12) 0%, transparent 35%),
    radial-gradient(ellipse at 90% 90%, rgba(0,0,0,0.08) 0%, transparent 40%),
    radial-gradient(rgba(255,255,255,0.09) 0.8px, transparent 0.8px),
    radial-gradient(rgba(0,0,0,0.055) 0.8px, transparent 0.8px);
  background-size:
    auto,
    auto,
    auto,
    auto,
    3px 3px,
    5px 5px;
}
.guide-theme-2 .guide-cover {
  background: #9dbfe5;
}
.guide-theme-3 .guide-cover {
  background: #8c87b2;
}
.guide-theme-4 .guide-cover {
  background: #ae97c2;
}
.guide-theme-5 .guide-cover {
    background: transparent;
    border: 2px solid rgb(255, 255, 255, 0.2);
    box-shadow: none;
}
.guide-theme-5 > p {
    opacity: 0.4;
}



/* Couche sombre */
.guide-item.locked .guide-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(33, 33, 33, 0.77); /* gris foncé semi transparent */
    z-index: 1;
}

.guide-item:not(.locked) .permanent-offer {
    display: none;
}

/* Prix en bas à droite */
.guide-price {
    position: absolute;
    bottom: 9px;
    right: 9px;
    font-size: 17px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.7);
    color: #ffdf86;
    padding: 4px 8px;
    border-radius: 12px;
    z-index: 2;
}

.guide-item:not(.locked) .guide-price {
    display: none;
}

/* Petit cadenas discret */
.guide-item.locked .guide-cover::after {
  content: "";
  position: absolute;
  bottom: 8px;
  right: 9px;
  width: 34px;
  height: 34px;
  background-color: black;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffdf86' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='11' width='18' height='11' rx='2'/><path d='M7 11V7a5 5 0 0 1 10 0v4'/></svg>");
  background-repeat: no-repeat;
  background-position: center 42%;
  background-size: 18px 18px;
  border-radius: 50%;
  opacity: 1;
  z-index: 5;
}


.unlock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.5);
    color: #e6ffea;
    font-weight: 600;
    font-size: 17px;
    letter-spacing: 0.5px;

    opacity: 0;
    transition: opacity 0.25s ease;

    z-index: 4;
}

/* Apparait seulement au hover si locked */
.guide-item.locked:hover .unlock-overlay {
    opacity: 1;
}

.guide-theme-2 .unlock-overlay,
.guide-theme-3 .unlock-overlay,
.guide-theme-4 .unlock-overlay {
  color: #e7b2ab;
  background: rgb(24, 25, 22); }

.guide-theme-5 .cover-inner-box,
.guide-theme-5 .cover-title,
.guide-theme-5 .guide-price,
.guide-theme-5 .unlock-overlay,
.guide-theme-5 .extra-overlay,
.guide-theme-5 .guide-cover::before,
.guide-theme-5 .guide-cover::after {
    display: none;
}
.guide-theme-5:hover {
    transform: none;
    cursor: default;
}

.permanent-offer {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    padding: 20px;

    background: rgb(24, 25, 22);
    color: #e6ffea;

    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;

    z-index: 4;
}


.permanent-offer:hover {
    font-size: 18px;
}

.extra-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 3;
  border-radius: 4px;
  pointer-events: none;
}

.guide-theme-1.locked .guide-cover::after {
  display: none;
}
.guide-theme-2 .guide-price,
.guide-theme-3 .guide-price,
.guide-theme-4 .guide-price {
  display: none;
}

/* ACCORDIUM */
.accordium-content {
  display: flex;
  gap: 8px; /* espace entre image et texte */
}

#accordium img {
  width: 700px;
  height: auto;
  margin-top: 30px;
}

.accordium-text {
margin-top: 120px;
margin-left: 12px;
}

.teaser-main {
  font-size: 25px;
  font-weight: bold;
  color: rgba(0, 0, 0, 0.55);
}

.teaser-sub {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.55);
}

.accordium-teaser {
  font-size: 23px;
  color: rgba(0, 0, 0, 0.7);
}


    /* FOND */
.modal {
      position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.33);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;

    opacity: 0;
    transition: opacity 0.33s ease;

    backdrop-filter: blur(0px);
}

/* Cache par défaut */
.hidden {
     opacity: 0;
    pointer-events: none;
    display: none;
}

#custom-modal:not(.hidden){
    opacity: 1;
    backdrop-filter: blur(3.3px);
}


#custom-modal:not(.hidden) .modal-content{
    transform: scale(1);
    opacity: 1;
}

#modal-body{
    transform:translateY(10px);
    transition:transform 0.2s ease;
}

#custom-modal:not(.hidden) #modal-body{
    transform:translateY(0);
}

#notify-modal:not(.hidden) {
  opacity: 1;
  backdrop-filter: blur(3.3px);
}

#notify-modal:not(.hidden) .modal-content {
  transform: scale(1);
  opacity: 1;
}

#notify-modal-body {
  transform: translateY(10px);
  transition: transform 0.2s ease;
}

#notify-modal:not(.hidden) #notify-modal-body {
  transform: translateY(0);
}


/* BOÎTE */
.modal-content{
    background: #1e1e1e;
    color: white;
    padding: 40px;
    border-radius: 18px;
    width: 420px;
    max-width: 90%;
    position: relative;
    text-align: center;

    transform: scale(0.93);
    opacity: 0;
    transition: transform 0.93s ease, opacity 0.93s ease;
}

/* Croix */
.close-modal {
    position: absolute;
    top: 15px;
    right: 18px;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.6;
}

.close-modal:hover {
    opacity: 1;
}

/* Petite animation */
@keyframes fadeIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* DECONNXIONS BOUTONS */
.modal-actions{
    display:flex;
    justify-content:center;
    gap:12px;
    margin-top:20px;
}


/* HARMOSPHERE – disposition permanente */
#harmosphere {
  position: relative;
}
#harmosphere img {
    max-width: 33%;
    height: auto;
    margin-left: 7px;
    margin-bottom: -5px;
    margin-top: 15px;
    mix-blend-mode: lighten;
}

#harmosphere.active {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    text-align: left;

    background: linear-gradient(to right, #787f79, #373b37);
}

#harmosphere.clicked {
    background: linear-gradient(to right, #787f79, #373b37);
}

#harmosphere.clicked .harmosphere-text {
    color: #e6ffea;
}

.harmosphere-text {
margin-top: -23px;
margin-left: 60px;
text-align: center;
}

.harmosphere-main {
  font-size: 25px;
  font-weight: bold;
  color: rgba(0, 0, 0, 0.55);
}

.harmosphere-sub {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.55);
}

.harmosphere-teaser {
  font-size: 23px;
  color: rgba(0, 0, 0, 0.7);
}

#harmosphere .btn {
  bottom: 120px; /* ← ajustez */
  right: 700px;  /* ← ajustez */
  position: absolute;
}

/* ??? */
.form-error{
    color:#d33;
    font-size:14px;
    margin:8px 0 12px 0;
    min-height:18px;
}

/* TRIADE */
#triade {
  position: relative;
}
#triade {
  min-height: 366px; /* ← ajustez selon vos besoins */
}

.triade-content {
  display: flex;
}

.triade-text {
margin-top: 99px;
margin-left: 460px;
}

.triade-main {
  font-size: 25px;
  font-weight: bold;
  color: rgba(0, 0, 0, 0.7);
}

.triade-sub {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.6);
}

.triade-teaser {
  font-size: 23px;
}

#triade .btn {
  bottom: 120px; /* ← ajustez */
  right: 700px;  /* ← ajustez */
}

.triade-img {
  position: absolute;
  left: 50px;
  top: -28px;
  width: 450px;
  pointer-events: none;
}
.fixed-reveal-img.fixed-reveal-img {
  display: none;
  position: absolute;
  top: -23px;
  left: -56px;
  z-index: 500;
  pointer-events: none;
  width: 300px;
  mix-blend-mode: normal;
  margin: 0;
  rotate: -7deg;
}
.fixed-reveal-img-2.fixed-reveal-img-2 {
  display: none;
  position: absolute;
  top: -36px;
  left: 836px;
  z-index: 500;
  pointer-events: none;
  width: 300px;
  mix-blend-mode: normal;
  margin: 0;
  rotate: 6deg;
}
.content-block.clicked .fixed-reveal-img {
  mix-blend-mode: normal !important;
  display: block;
}
.content-block.clicked .fixed-reveal-img-2 {
  mix-blend-mode: normal !important;
  display: block;
}

/* QUIZ HEBDO */
#quiz {
  min-height: 366px; /* ← ajustez selon vos besoins */
}

.quiz-content {
  display: flex;
}

.quiz-img {
  position: absolute;
  left: 785px;
  top: 15px;
  width: 399px;
  pointer-events: none;
}

.quiz-text {
margin-top: 103px;
margin-left: -200px;
}

.quiz-main {
  font-size: 25px;
  font-weight: bold;
  color: rgba(0, 0, 0, 0.55);
}

.quiz-sub {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.55);
}

.quiz-teaser {
  font-size: 23px;
  color: rgba(0, 0, 0, 0.55);
}

/* 

.guide-teaser {
  margin-top: 18px;
  margin-bottom: -7px;
  font-size: 21px;
  font-weight: 610;
  color: rgba(0, 0, 0, 0.55);
}
*/

#quiz .btn {
  bottom: 120px; /* ← ajustez */
  right: 700px;  /* ← ajustez */
}


.shop-btn {
  position: fixed;
  bottom: 39px;
  right: 39px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 20px;

  border-radius: 50px;
/*  border: 1.9px solid rgba(202,204,202); */

  background: rgb(232, 236, 230);
  color: rgba(0, 0, 0, 0.59);

  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-size: 19px;
  font-weight: 500;

  cursor: pointer;

  box-shadow: 0 4px 12px rgba(0,0,0,.16);

  transition:
    background .2s ease,
    transform .15s ease,
    border-color .2s ease,
    color .2s ease;

  z-index: 1000;
}

.shop-btn:hover {
  background: #ffffff;
  color: #3d443f;

  border-color: rgba(255,255,255,.9);
  box-shadow: 0 8px 18px rgba(0,0,0,.22);

  transform: scale(1.1);
}

.shop-btn:active {
  transform: scale(1);
}

.gift-icon {
    width: 50px;
    height: 50px;

    position: absolute;
    left: -39px;
    top: -12px;

    margin-right: 8px;

    transition: transform .2s ease;
}

.shop-btn:hover .gift-icon {
    transform: rotate(-12deg) scale(1.15);
}

.shop-text {
  position: relative;
}