@import url("theme-variables.css");

body {
   margin: 0;
   overflow-x: hidden;
   background: var(--cbf-fond-legal);
   background-attachment: fixed;
}

/* Nav Bar*/

.fond_header { width: 100%; }

.position_header {
   height: 150px;
   display: flex;
   align-items: center;
   padding: 0 40px;
   z-index: 1;
}

.box_tete {
   position: fixed;
   bottom: 200;
   left: 0;
   right: 0;
   height: 150px;
   background-color: transparent;
   display: flex;
   align-items: center;
   padding: 0 40px;
   z-index: 10;
   transition: background 0.4s ease, box-shadow 0.4s ease;
   /* Liseré doré en bas — signature visuelle */
   border-bottom: 1px solid transparent;
}

.box_tete.header-scrolled {
   backdrop-filter: blur(12px);
   -webkit-backdrop-filter: blur(12px);
   background: rgba(11,11,15,0.85);
   border-bottom-color: var(--cbf-violet-sombre);
   box-shadow: 0 2px 32px rgba(0,0,0,0.55);
}

.position_logo { position: absolute; z-index: 1; }
.image_logo    { height: 80px; }

.center_header {
   display: flex;
   justify-content: center;
   margin: auto;
   align-items: center;
   gap: 40px;
}

.texte_head {
   text-decoration: none;
   font-size: 22px;
   font-family: "Baloo 2", sans-serif;
   font-weight: 700;
   color: var(--cbf-texte-nav);
   position: relative;
   display: inline-block;
   padding-bottom: 6px;
   letter-spacing: 0.03em;
   transition: color 0.3s ease;
}
.texte_head:hover { color: var(--cbf-violet-vif); }

.texte_head::after {
   content: "";
   position: absolute;
   left: 0; bottom: 0;
   width: 100%; height: 2px;
   background: linear-gradient(90deg, var(--cbf-turcoise), var(--cbf-violet-vif));
   transform: scaleX(0);
   transform-origin: left;
   transition: transform 0.45s ease;
   border-radius: 1px;
}
.texte_head:hover::after,
.texte_head:focus-visible::after,
.texte_head.page_actuel::after { transform: scaleX(1); }
.texte_head.page_actuel { color: var(--cbf-turcoise); }

.menu-hamburger {
   display: none;
   position: absolute;
   right: 35px;
   width: 80px;
}

/*Contenu*/

/* ── Page légale ─────────────────────────────────────── */

.page_legal {
   max-width: 820px;
   margin: 0 auto;
   padding: 60px 24px 100px;
}

/* ── Hero ────────────────────────────────────────────── */

.legal_hero {
   text-align: center;
   padding: 60px 0 56px;
   border-bottom: 1px solid rgba(47,211,195,0.15);
   margin-bottom: 60px;
}

.eyebrow {
   font-size: 11px;
   font-weight: 700;
   font-family: "Baloo 2", sans-serif;
   letter-spacing: 0.18em;
   color: var(--cbf-turcoise);
   text-transform: uppercase;
   opacity: 0.7;
   margin: 0 0 14px;
}

.legal_titre {
   font-size: 48px;
   font-weight: 800;
   font-family: "Baloo 2", sans-serif;
   background: linear-gradient(135deg, var(--cbf-violet-vif) 0%, var(--cbf-turcoise) 100%);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   background-clip: text;
   letter-spacing: 0.02em;
   line-height: 1.1;
   margin: 0 0 16px;
}

.legal_date {
   font-size: 13px;
   font-family: "Baloo 2", sans-serif;
   color: rgba(155,154,176,0.55);
   font-weight: 400;
   margin: 0;
   letter-spacing: 0.04em;
}

/* ── Sections ────────────────────────────────────────── */

.legal_contenu {
   display: flex;
   flex-direction: column;
   gap: 0;
}

.legal_section {
   padding: 36px 0;
   border-bottom: 1px solid rgba(47,211,195,0.10);
   position: relative;
}

.legal_section:last-child {
   border-bottom: none;
}

/* Liseré gauche en dégradé violet/sarcelle au hover */
.legal_section::before {
   content: "";
   position: absolute;
   left: -24px;
   top: 36px;
   bottom: 36px;
   width: 2px;
   background: linear-gradient(180deg, var(--cbf-violet-vif), var(--cbf-turcoise));
   opacity: 0;
   transition: opacity 0.3s ease;
   border-radius: 1px;
}
.legal_section:hover::before { opacity: 1; }

.section_titre {
   font-size: 20px;
   font-weight: 700;
   font-family: "Baloo 2", sans-serif;
   color: var(--cbf-turcoise);
   letter-spacing: 0.02em;
   margin: 0 0 20px;
}

.section_corps {
   font-family: "Baloo 2", sans-serif;
   font-size: 16px;
   font-weight: 400;
   line-height: 1.8;
   color: rgba(155,154,176,0.90);
}

.section_corps p {
   margin: 0 0 14px;
}

.section_corps p:last-child {
   margin-bottom: 0;
}

.section_corps ul {
   margin: 10px 0 14px 0;
   padding-left: 22px;
   list-style: none;
}

.section_corps ul li {
   position: relative;
   padding-left: 16px;
   margin-bottom: 8px;
   color: rgba(155,154,176,0.85);
}

.section_corps ul li::before {
   content: "—";
   position: absolute;
   left: 0;
   color: rgba(47,211,195,0.55);
   font-weight: 700;
}

.section_corps strong {
   font-weight: 700;
   color: var(--cbf-creme);
}

/* Lien dans le texte légal */
.legal_link {
   color: var(--cbf-violet-vif);
   text-decoration: none;
   font-weight: 600;
   border-bottom: 1px solid rgba(139,124,246,0.25);
   transition: color 0.25s ease, border-color 0.25s ease;
}
.legal_link:hover {
   color: var(--cbf-blanc);
   border-bottom-color: rgba(255,255,255,0.4);
}


/* FOOTER */

.footer {
   display: flex;
   flex-direction: row;
   justify-content: space-around;
   align-items: center;
   height: 150px;
   background: var(--cbf-footer-bg);
   backdrop-filter: blur(12px);
   -webkit-backdrop-filter: blur(12px);
   border-top: 1px solid var(--cbf-violet-sombre);
   box-shadow: 0 -4px 30px rgba(0,0,0,0.45);
}

.texte_footer {
   font-weight: 700;
   font-size: 22px;
   font-family: "Baloo 2", sans-serif;
   text-decoration: none;
   color: var(--cbf-turcoise);
   letter-spacing: 0.02em;
   transition: color 0.3s ease;
}
.texte_footer:hover { color: var(--cbf-violet-vif); }

/* RESPONSIVE*/

@media (max-width: 1060px) and (min-width: 970px) {
   .texte_footer { font-size: 20px; }
}

@media screen and (max-width: 800px) {
   .center_header {
      position: absolute;
      top: 0; left: 0;
      width: 100%; height: 100vh;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      background-color: var(--cbf-menu-mobile-bg);
      backdrop-filter: blur(15px);
      margin-left: -100%;
      transition: all 0.5s ease;
      z-index: 1;
      gap: 25px;
   }
   .mobile-menu    { margin-left: 0; }
   .texte_head     { font-size: 1.4em; }
   .menu-hamburger { display: block; z-index: 3; }
   .image_logo     { margin-left: 30%; height: 80px; }
   .droite         { margin-right: 30%; }
   .box_tete       { justify-content: space-between; padding: 0; }
}

@media screen and (max-width: 970px) {
   .footer       { flex-direction: column; height: 200px; }
   .texte_footer { font-size: 20px; }
}
