/* =========================================================
   TOKENS — issus de la planche "Couleurs" / "Typographies"
   Geomini n'étant pas une police web publique, on la simule
   avec Poppins (même famille géométrique). Remplacer
   --font-display par 'Geomini' si le fichier de police est
   fourni par le client.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Geomini:wght@200..800&display=swap');

:root{
  --c-black:#111008;
  --c-white:#ffffff;
  --c-green-accent:#7cb342;
  --c-blue:#1474b0;
  --c-orange:#ffb629;
  --c-olive:#46411f;

  --c-bg-phase:#e3ebc7;
  --c-bg-lexique:#D9D9D9;
  --c-bg-mentions: #ffffff;

  --font-display:'Geomini','Roboto',sans-serif;
  --font-body:'Roboto',sans-serif;

  --t1:50px; --t2:40px; --t3:30px; --caption:18px; --body:16px; --btn:20px;

  --header-h:96px;
  --pill-h:56px;
  --menu-w:200px;
}

@media (max-width:1200px){
  :root{
    --t1:30px; --t2:24px; --t3:18px; --caption:12px; --body:16px; --btn:16px;
    --header-h: 96px;
    --pill-h:46px;
  }
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  font-family:var(--font-body);
  color:var(--c-black);
  background:var(--c-white);
  overflow-x:hidden;
}
h1,h2,h3{font-family:var(--font-display);font-weight:500;margin:0;}
button{font-family:inherit;cursor:pointer;background:none;border:none;color:inherit;}
a{color:var(--c-blue);}

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 53px;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-black);
  padding: 18px 0px 18px 24px;
  z-index: 40;
}
.menu-header {
  display: flex;
  gap: 12px;
  flex: 0 0 auto;
  align-items: center;
}
.menu-btn {
  display: flex;
  padding: 0;
  align-items: center;
}
.menu-btn .icon-circle {
  width: 60px;
  height: 60px; 
  border-radius: 50%;
  border: 1px solid var(--c-black);
  background: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: all 0.3s ease-in-out;
}
.menu-btn .icon-circle .burger {
  width: 20px;
  display: flex;
  gap: 10px;
  height: 100%;
  flex-direction: column;
  justify-content: center;
}
.menu-btn .icon-circle .burger .burger-stroke {
  border-top: 1px solid var(--c-black);
  transition: all 0.3s ease-in-out;
}
.menu-btn:hover .icon-circle {
  background-color: var(--c-blue);
  border-color: var(--c-blue);
  transition: all 0.3s ease-in-out;
}
.menu-btn:hover .icon-circle .burger-stroke {
  border-color: var(--c-white);
  transition: all 0.3s ease-in-out;
}
.menu-label{
  font-family: var(--font-body);
  font-size: 18px;
  text-transform: uppercase;
}

.stepper,
.nav-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0;
  height: 100%;
  min-width: fit-content;
}
.step-start,
.step-end,
.stepper .step-line {
  flex: 1 1 auto;
  height: 1px;
  background: var(--c-black);
  min-width: 10px;
  width: 100%;
  max-width: 10px;
}
.step-start {
  min-width: 27px;
  max-width: 27px;
  background: var(--c-black);
}
.step-end {
  width: 100%;
  max-width: initial;
  background: var(--c-black);
}
.stepper .step-node {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--c-black);
  background: var(--c-white);
  flex: 0 0 auto;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
.stepper .step-node:hover {
  border-color: var(--c-black);
  background: var(--c-orange);
  transition: all 0.3s ease-in-out;
}
.stepper .step-active {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.stepper .step-active .num {
  width: 60px;
  height: 60px;
  padding: 14px 16px 18px 16px;
  border-radius: 50%;
  background: var(--c-orange);
  border: 1px solid var(--c-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 40px;
  line-height: 45px;
  color: var(--c-black);
  flex: 0 0 auto;
}
.stepper .step-active .name {
  font-family: var(--font-display);
  font-size: 50px;
  padding: 0 18px 4px 42px;
  font-weight: 500;
  text-transform: uppercase;
  display: flex;
  align-content: center;
  position: relative;
  gap: 18px;
}
.stepper .step-active .name::before {
  content: "";
  display: block;
  background: var(--c-black);
  position: absolute;
  height: 1px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  left: 0;
}
.stepper .step-active + .step-line {
  width: 24px;
  min-width: 24px;
  max-width: 24px;
}
/*@media (max-width:760px){
  .stepper .step-active .num{width:32px;height:32px;font-size:17px;}
  .stepper .step-active .name{font-size:17px;}
  .stepper .step-node{width:8px;height:8px;}
}*/

  .step-node-active{ display:none; }

@media (max-width: 1200px) {
  .site-header{
    position: sticky;         /* ancrage pour .step-active */
    flex-wrap: wrap;
    row-gap: 12px;
    height: var(--header-h);
    padding: 14px 16px;
  }
  body[data-screen="home"] .site-header,
  body[data-screen^="phase-"] .site-header {
    padding: 14px 16px 0px 16px; /* nav-wrapper visible */
  }
  body:has(.modal-wrapper-metha.is-open) .nav-wrapper .step-node {
    opacity: 0;
  }
  .menu-label{ display:none; }
  .menu-btn .icon-circle{ /*width:44px; height:44px;*/ }

  .nav-wrapper { /* ligne de points passe pleine largeur, sous le burger */
    flex: 1 1 100%;
    margin-right: -16px;
    margin-left: -16px;
    margin-bottom: -8px;
    height: fit-content;
  }
  .nav-wrapper .step-start {
    max-width: 100%;
  }
  .nav-wrapper .step-end {
    max-width: 16px;
  }
  .stepper{ flex-wrap: wrap; }

  .stepper .step-node,
  .stepper .step-node-active{ width:14px; height:14px; }
  .step-node-active{
    display:block;               /* visible en mobile : reste bien dans la ligne */
    background: var(--c-orange) !important;
  }

  /* le gros cercle + libellé se détachent de la ligne pour se placer
    en haut à côté du burger — le point ci-dessus les remplace dans la ligne */
  .stepper .step-active{
    position: absolute;
    top: 23px;
    right: 16px;
  }
  .stepper .step-active + .step-line {
    width: 10px;
    min-width: 10px;
    max-width: 10px;
  }
  .stepper .step-active .num{ width:44px; height:44px; font-size:20px; padding:0; }
  .stepper .step-active .name{ font-size:18px; padding:0 4px 0 14px; }
  .stepper .step-active .name::before{ display:none; }
}

/* header variants: hide stepper on lexique/mentions/contact */
body[data-screen="lexique"] .stepper,
body[data-screen="mentions"] .stepper,
body[data-screen="faq"] .stepper,
body[data-screen="contact"] .stepper{display:none;}

/* nav-wrapper visible uniquement sur l'accueil et les étapes du parcours */
.nav-wrapper{
  opacity:0;
  transition:opacity .3s ease-in-out;
}
body[data-screen="home"] .nav-wrapper,
body[data-screen^="phase-"] .nav-wrapper{
  opacity:1;
}

/* ============ MAIN / SCREENS ============ */
main{padding-top: var(--header-h);margin-left:0; transition:margin-left .4s cubic-bezier(.22,.61,.36,1);}
body.menu-open main{margin-left:var(--menu-w);}

.screen{
  min-height:calc(100vh - var(--header-h));
  display:none;
  position:relative;
}
.screen.is-active{display:block;}

/* État transitoire uniquement pendant une navigation animée : l'écran
   passe en position:fixed pour pouvoir glisser par-dessus/au-dessous
   de l'autre, puis retourne au flux normal (scroll naturel) une fois
   l'animation terminée — voir goTo()/animateTransition() dans script.js */
.screen.is-animating{
  position:fixed;
  top:var(--header-h); left:0; right:0; bottom:0;
  overflow-y:auto;
  z-index:46;
  transition:transform .45s cubic-bezier(.22,.61,.36,1), left .4s cubic-bezier(.22,.61,.36,1);
  will-change:transform;
}
body.menu-open .screen.is-animating{left:var(--menu-w);}

.screen.is-animating.dir-enter-bottom{transform:translateY(100%);}
.screen.is-animating.dir-leave-bottom{transform:translateY(100%);}
.screen.is-animating.dir-enter-right{transform:translateX(100%);}

@media (max-width: 1200px) {
  main{padding-top: 0}
}

/* ============ ACCUEIL ============ */
.screen-home {
  background: var(--c-bg-phase);
  padding: 48px 60px;
}

.home-inner {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 80px;
  flex-wrap: wrap;
  padding-right: 125px;
}

.home-title-and-timeline {
  display: flex;
  flex-direction: column;
  gap: 48px;
  justify-content: space-between;
  width: 100%;
  max-width: 980px;
  height: 100%;
  flex: 1;
}

.home-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: Medium;
  font-size: clamp(28px, 8vh, 85px);
  text-transform: uppercase;
}

.home-list {
  width: 100%;
  max-width: fit-content;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  min-width: 340px;
}

.home-list li {
  display: flex;
  align-items: center;
  gap: 0px;
  cursor: pointer;
}

.home-list .num {
  width: 65px;
  height: 65px;
  padding: 14px 16px 18px 16px;
  border-radius: 50%;
  background: var(--c-white);
  border: 1px solid var(--c-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 40px;
  line-height: 45px;
  color: var(--c-black);
  flex: 0 0 auto;
  transition: all 0.3s ease-in-out;
  position: relative;
  margin-right: 50px;
}
.home-list .num::after {
  content: "";
  display: block;
  background: var(--c-black);
  position: absolute;
  height: 1px;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  right: -50px;
}

.home-list .name {
  padding: 0 18px 3px 18px;
  font-weight: 500;
  font-family: var(--font-display);
  font-size: 36px;
  text-transform: uppercase;
}

.home-list li:hover .num {
  background: var(--c-orange);
  transition: all 0.3s ease-in-out;
}

.home-timeline {
  overflow-x: auto;
  cursor: zoom-in;
}

.timeline-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  cursor: zoom-out;
}

.timeline-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  cursor: zoom-out; /* au lieu de default */
}

.timeline-overlay.is-open {
  display: flex;
}

#timelineSvg {
  width: 100%;
  height: auto;
  font-family: var(--font-body);
}

@media (max-width:1200px) {
  .screen-home {
    padding: 24px 20px 0;
  }
  .home-inner {
    gap: 40px;
  }
  .home-title {
    font-size: 30px;
  }
  .home-list .num {
    width: 36px;
    height: 36px;
    font-size: 17px;
  }
  .home-list .name {
    font-size: 20px;
  }
  .home-timeline {
    padding: 16px 8px 24px;
    display: none;
  }
}

/* ============ PHASE SCREENS ============ */
.screen-phase {
  background: var(--c-bg-phase);
}

.phase-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 48px 50px;
  min-height: calc(100vh - var(--header-h) - var(--pill-h));
}

.phase-col-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: space-between;
  width: 50%;
}
.phase-col-left .title-part {
  display: flex;
  flex-direction: row;
  gap: 48px;
}
.phase-duration {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: fit-content;
  min-width: 120px;
  font-family: var(--font-body);
  font-size: var(--caption);
  font-weight: 500;
}

.phase-duration svg {
  width: 100%;
}

.phase-title {
  font-size: var(--t2);
  text-transform: none;
  margin-top: -6px;
  line-height: 1.1em;
}

.phase-illustration {
  margin-top: 12px;
  max-width: 640px;
}
.phase-illustration img {
  max-width: calc(100vw - 215px);
}
.phase-col-right {
  display: flex;
  position: relative;
}
.phase-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: calc(48px + 85px);
}
.phase-body p {
  font-size: var(--body);
  line-height: 1.1em;
  font-weight: 300;
  font-size: 18px;
  margin: 0;
  width: 100%;
  max-width: 620px;
}

.phase-body strong,
.gterm,
.faq-term {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  font-weight: 500;
  cursor: pointer;
  color: var(--c-black);
}
.gterm.clicked {
  color: var(--c-blue);
  transition: all 0.3s ease-in-out;
}

.phase-sommaire-inline {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.phase-sommaire-inline span {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: .06em;
}

@media (max-width:1200px) {
  .phase-inner {
    flex-direction: column;
    justify-content: flex-start;
    gap: 16px;
    padding: calc(20px + var(--pill-h)) 20px 20px 20px;
  }

  .phase-col-right {
    padding-top: 12px;
  }
  .phase-col-right .phase-body {
    padding-right: 50px;
  }
  .phase-col-left {
    justify-content: flex-start;
    width: 100%;
  }
  .phase-sommaire-inline {
    display: none;
  }

  .title-part {
    gap: 20px !important;
  }
  .phase-illustration img {
    max-width: 100%;
    width: 100%;
    margin-top: 0;
  }
  .phase-duration {
    max-width: 80px;
    min-width: initial;
  }
}

/* ============ PILL NAV (bottom) ============ */
.pill-nav{
  position:fixed; left:0; right:0; bottom:0; height:var(--pill-h);
  background:var(--c-white); border-top:1px solid var(--c-black);
  display:none; align-items:center; justify-content:center; gap:16px;
  z-index:30; padding:0 16px; flex-wrap:wrap;
}
body[data-screen^="phase-"] .pill-nav{display:flex;}
.pill{
  border:1.4px solid var(--c-black); border-radius:999px; padding:9px 22px;
  font-family:var(--font-display); font-size:16px;
  transition:background .15s, color .15s;
}
.pill:hover, .pill.is-active{background:var(--c-blue); color:var(--c-white); border-color:var(--c-blue);}

@media (max-width: 1200px) {
  .pill-nav {
    top: var(--header-h);
    bottom: auto;
    border-top: none;
    border-bottom: 1px solid var(--c-black);
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding: 10px 16px;
    height: auto;
  }
  .pill {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 3px 5px;
    font-size: 14px;
  }
}

/* ============ FLOATING BUTTONS ============
   Les 4 boutons (fabStart, fabSommaire, fabUp, fabDown) partagent la
   même anatomie que #fabStart : un label en majuscules au-dessus d'un
   cercle .icon-circle contenant l'icône, empilés verticalement. */
.fab{
  position:fixed; z-index:35; display:none; flex-direction:column; align-items:center; gap:8px;
  font-family:var(--font-body); font-size:13px; letter-spacing:.06em;
}
.fab:focus {
  outline: none !important
}
.fab-sommaire{top:calc(var(--header-h) + 20px); right:34px;}
body[data-screen^="phase-"] .fab-sommaire{display:flex;}

.fab-stack{position:fixed; bottom:calc(var(--pill-h) + 24px); right:44px; z-index:35; flex-direction:column; gap:20px; display:none;}
body[data-screen^="phase-"] .fab-stack{display:flex;}
.fab-stack .fab{position:static; display:flex;}

.fab-start{bottom:48px; right:60px;}
body[data-screen="home"] .fab-start{display:flex;}

.fab .icon-circle{
  width:52px;height:52px;border-radius:50%;border:1px solid var(--c-black);
  display:flex;align-items:center;justify-content:center; background:var(--c-white);
}
.fab:hover .icon-circle{background:var(--c-orange);}

.msyn-return-btn {
  position: fixed !important;
  z-index: 53 !important;
  right: 24px !important;
  top: 18px !important;
}
.msyn-return-btn[hidden] { display: none; }

@media (max-width:1200px){
  .fab-sommaire, .fab-stack, .fab-start{right:16px;}
  .fab-sommaire{top:calc(var(--header-h) + 8px); display: none !important;}
  .fab-stack{bottom:12px; gap:14px;}
  .fab .icon-circle{width:40px;height:40px;}
  .fab-label{display:none;}
  .fab-start {
    bottom: 12px;
  }
  .msyn-return-btn { top: 14px !important; }
}

/* ============ MODAL (Alertes/Ressources/Acteurs/Exemples) ============ */
.modal-wrapper-metha{
  position:fixed; inset:0; top:var(--header-h); background:var(--c-bg-phase);
  overflow-y:auto; padding: 48px 50px;
  transform:translateY(100%);
  transition:transform .4s cubic-bezier(.22,.61,.36,1);
  pointer-events:none;
  z-index: 2147483646 !important
}

.modal-wrapper-metha.is-open{transform:translateY(0); pointer-events:auto;}

.modal-body .exemples-ctas {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}
.modal-body .exemples-ctas .exemple-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--c-black);
  border-radius: 0px;
  padding: 8px 14px;
  font-size: var(--btn);
  text-decoration: none;
  background-color: #1474b000;
  color: var(--c-black);
  transition: all 0.3s ease-in-out;
}
.modal-body .exemples-ctas .exemple-cta:hover {
  border: 1px solid var(--c-blue);
  background-color: var(--c-blue);
  color: var(--c-white);
  transition: all 0.3s ease-in-out;
}
.modal-body .exemples-ctas .exemple-cta:hover{color:var(--c-white);}
.modal-body .exemples-ctas .exemple-cta:hover svg rect,
.modal-body .exemples-ctas .exemple-cta:hover svg path,
.modal-body .exemples-ctas .exemple-cta:hover svg line {
  stroke: var(--c-white);
}
.faq-resource-icon{display:flex; flex:none;}

.modal-head{display:flex; align-items:flex-start; gap:48px; margin-bottom:40px; position:relative;}
.modal-eyebrow{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: fit-content;
  min-width: 120px;
  font-family: var(--font-body);
  font-size: var(--caption);
  font-weight: 500;
}
.modal-title {
  font-size: var(--t2);
  text-transform: none;
  margin-top: -6px;
  line-height: 1.1em;
  flex:1;
}
.modal-close {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid var(--c-black);
  background-color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  position: absolute;
  right: 0;
  top: 0;
}
.modal-close:hover {
  background: var(--c-blue);
  border-color: var(--c-blue);
}
.modal-close svg path {
  stroke: var(--c-black)
}
.modal-close:hover svg path {
  stroke: var(--c-white);
}

.modal-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:48px;
}
.modal-grid .card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  background-color: #ffffff00;
  border: 0px solid rgba(0, 0, 0, 0);
  border-radius: 0px;
}
.modal-grid .card h3{font-size:var(--t3); font-family:var(--font-display); font-weight:500;}
.modal-grid .card p{font-size:var(--body); margin: 0; font-weight: 300; line-height:100%;}
.modal-grid .card .flag{display:flex; gap:20px; align-items: center; font-size:var(--body); line-height:100%; font-weight: 300;}
.modal-grid .card .flag svg {
  width:40px;height:40px;
  display:flex;align-items:center;justify-content:center; flex:0 0 auto;
}
.modal-grid .card img {
  width: 100%;
  height: 100%;
  max-width: 150px;
  max-height: 150px;
  margin: 0 auto;
}
.modal-grid .card h3 {
  text-align: center;
}
.modal-grid .card .links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.modal-grid .card .res-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--c-black);
  border-radius: 0px;
  padding: 8px 14px;
  font-size: var(--btn);
  text-decoration: none;
  background-color: #1474b000;
  color: var(--c-black);
  transition: all 0.3s ease-in-out;
}
.modal-grid .card .res-link:hover {
  border: 1px solid var(--c-blue);
  background-color: var(--c-blue);
  color: var(--c-white);
  transition: all 0.3s ease-in-out;
}
.modal-grid .card .res-link:hover svg path,
.modal-grid .card .res-link:hover svg line {
  stroke: var(--c-white);
  transition: all 0.3s ease-in-out;
}

.modal-alert{max-width:1100px;}
.modal-alert .lead{font-size:28px; font-family:var(--font-display); font-weight:500; line-height:1.35; margin-bottom:26px;}
.modal-alert .contre{font-size:16px; line-height:1.6; color:var(--c-black);}

@media (max-width:1200px){
  .modal-wrapper-metha {
    padding: 20px;
  }
  .modal{padding:20px 18px 40px;}
  .modal-grid{grid-template-columns:1fr; gap:28px;}
  .modal-grid .card p {
    text-align: center;
  }
  .modal-wrapper-metha .modal-head {
    gap: 20px;
  }
  .modal-wrapper-metha .modal-head .modal-eyebrow {
    min-width: initial;
    max-width: 80px;
  }
  .modal-wrapper-metha .modal-head .modal-eyebrow svg {
    max-width: 80px;
  }
  .modal-wrapper-metha .modal-head .modal-title {
    padding-right: 40px;
  }
  .modal-alert .lead{font-size:20px;}
  .modal-wrapper-metha .modal-close {
    width: 40px;
    padding: 10px;
    height: 40px;
  }
}

/* ============ LEXIQUE ============ */
.screen-lexique {
  background: var(--c-bg-lexique);
  padding: 48px 56px 80px;
}

.lexique-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.lexique-title {
  font-size: 64px;
  text-transform: uppercase;
}

.search-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--c-black);
  padding: 14px 24px;
  min-width: 260px;
}

.search-wrap input {
  flex: 1;
  border: none;
  background: none;
  font-size: 20px;
  font-family: var(--font-body);
  font-style: italic;
  outline: none;
  color: var(--c-black);
}

.screen-lexique .mentions-right h2:first-child {
  margin: 0;
}

.lexique-results {
  margin: 30px 0 30px 0;
}

.lexique-results .res-item {
  border-bottom: 1px solid var(--c-black);
  padding: 14px 24px;
}

.lexique-results .res-item h3 {
  font-size: 22px;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

.lexique-results .res-item p {
  font-size: 15px;
  line-height: 1.55;
  margin-top: 10px;
  white-space: pre-line;
}

.lexique-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
}

.lex-letter {
  margin-bottom: 36px;
}

.lex-letter h2 {
  font-size: 40px;
  font-weight: 500;
  font-family: Geomini;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--c-black);
}

.lex-entry {
  border-bottom: 1px solid var(--c-black);
  padding: 24px 0 24px 24px;
  cursor: pointer;
}

.lex-entry .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: Geomini;
}

.lex-entry .row span {
  font-size: 20px;
}

.lex-entry .row svg {
  transition: transform .2s;
}

.lex-entry.is-open .row svg {
  transform: rotate(180deg);
}

.lex-entry .def {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}

.lex-entry.is-open .def {
  max-height: 400px;
}

.lex-entry .def p {
  font-size: 15px;
  line-height: 1.55;
  margin: 12px 0 0;
  white-space: pre-line;
}

@media (max-width:760px) {
  .screen-lexique {
    padding: 20px 18px 60px;
  }

  .lexique-title {
    font-size: 34px;
  }

  .lexique-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ MENTIONS LEGALES ============ */
.screen-mentions{padding:48px 56px 80px; background:var(--c-bg-mentions);}
.mentions-grid{display:grid; grid-template-columns:1fr 1.6fr; gap:40px;}
.mentions-left h1{font-size:56px; text-transform:uppercase; line-height:1.05;}
.mentions-logos{display:flex; gap:20px; margin-top:40px;}
.mentions-right h2{font-size:26px; margin:28px 0 12px;}
.mentions-right h2:first-child{margin-top:0;}
.mentions-right p{font-size:15px; line-height:1.6; margin:0 0 14px;}

@media (max-width:1200px){
  .screen-mentions{padding:20px 18px 60px;}
  .mentions-grid{grid-template-columns:1fr;}
  .mentions-left h1{font-size:30px;}
}

/* ============ FAQ ============ */
.screen-faq{padding:48px 56px 80px; background:var(--c-bg-phase);}

.faq-list{display:flex; flex-direction:column;}

.faq-item{
  border-top:1px solid var(--c-black);
}
.faq-item:last-child{border-bottom:1px solid var(--c-black);}

.faq-item-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  width:100%;
  padding:24px;
  text-align:left;
  font-family:var(--font-display);
  line-height: 100%;
  font-size:22px;
  font-weight:500;
  color:var(--c-black);
  background:transparent;
  transition:background-color .2s ease, color .2s ease;
}

.faq-item-icon{
  flex:none;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:transform .2s ease;
}
.faq-item-icon svg path{transition:fill .2s ease;}

.faq-item.is-open .faq-item-header{
  background:var(--c-blue);
  color:var(--c-white);
}
.faq-item.is-open .faq-item-icon{transform:rotate(180deg);}
.faq-item.is-open .faq-item-icon svg path{fill:var(--c-white);}

.faq-item-body{
  max-height:0;
  overflow:hidden;
  transition:max-height .3s ease;
}
.faq-item.is-open .faq-item-body{max-height:fit-content;}

.faq-item-content {
  padding:24px;
  font-family: 'Roboto';
  font-size: 18px;
  font-weight: 300;
  line-height: 1.1em;
}
.faq-item-content strong {
  font-weight: bold;
}
.faq-item-content p{font-size:15px; line-height:1.6; margin:0 0 14px;}
.faq-item-content p:last-child{margin-bottom:0;}
.faq-item-content ul{margin:0 0 14px; padding-left:20px;}
.faq-item-content li{font-size:15px; line-height:1.6; margin-bottom:10px;}
.faq-item-content li:last-child{margin-bottom:0;}
.faq-item-content h3{font-size:17px; margin:0 0 10px;}
.faq-item-content blockquote{
  margin:0 0 14px;
  padding:14px 18px;
  border-left:3px solid var(--c-blue);
  background:var(--c-bg-lexique);
  font-size:15px;
  line-height:1.6;
  font-style:italic;
}

.faq-images{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  margin-top:6px;
}
.faq-images img{
  max-width:100%;
  width: 100%;
  height:auto;
  display:block;
  border-radius:0px;
}

.faq-resources{
  display:flex;
  flex-wrap:wrap;
  gap: 24px;
  padding: 0 24px 24px 24px;
}
.faq-resource{
  display:flex;
  align-items:center;
  gap: 24px;
  text-decoration:none;
  color:var(--c-black);
  font-family:var(--font-display);
  font-size:20px;
  transition:background-color .2s ease;
}
.faq-resource:hover{color:var(--c-blue);}
.faq-resource:hover svg rect,
.faq-resource:hover svg path,
.faq-resource:hover svg line {
  stroke: var(--c-blue);
}
.faq-resource-icon{display:flex; flex:none;}

@media (max-width:760px){
  .screen-faq{padding:20px 18px 60px;}
  .faq-item-header{font-size:17px; padding:16px 18px;}
  .faq-item-content{padding:18px;}
  .faq-resources {padding:0 18px 18px 18px; gap: 6px 18px;}
  .faq-resource {gap:18px; font-size:16px;}
  .faq-resource-icon {width:20px;}
}

/* ============ CONTACT ============ */
.screen-contact{background:var(--c-bg-phase); padding:48px 56px 80px;}
.screen-contact.is-active{display:flex;}
.contact-inner{max-width:560px;}
.contact-inner h1{font-size:var(--t1); text-transform:uppercase; margin-bottom:16px;}
.contact-form{display:flex; flex-direction:column; gap:18px; margin-top:24px;}
.contact-form label{display:flex; flex-direction:column; gap:6px; font-size:14px; font-weight:500;}
.contact-form input, .contact-form textarea{
  font-family:var(--font-body); font-size:15px; padding:10px 12px; border:1px solid var(--c-black); border-radius:6px; background:var(--c-white);
}
.btn-submit{
  align-self:flex-start; border:1.4px solid var(--c-black); border-radius:999px; padding:10px 26px;
  font-family:var(--font-display); font-size:var(--btn);
}
.btn-submit:hover{background:var(--c-black); color:var(--c-white);}
a.btn-submit{display:inline-block; text-decoration:none; color:inherit;}
@media (max-width:760px){ .screen-contact{padding:24px 20px;} }

/* ============ MENU OVERLAY (tiroir ancré à gauche) ============ */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--menu-w);
  max-width: var(--menu-w);
  background: var(--c-white);
  z-index: 60;
  padding: 0px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--c-black);
  transform: translateX(-100%);
  transition: transform .4s cubic-bezier(.22, .61, .36, 1);
  pointer-events: none;
}

.menu-overlay.is-open {
  transform: translateX(0);
  pointer-events: auto;
}

.menu-overlay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  border-bottom: 1px solid var(--c-black);
  padding: 18px 24px;
}

.menu-overlay-head .modal-close {
  position: unset;
  transition: all 0.3s ease-in-out;
}

.menu-overlay-title {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .05em;
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 520px;
}

.menu-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 300;
  gap: 0;
}

.menu-list li:hover {
  background: var(--c-green-accent);
  background: #e3ebc7;
}

.menu-list li .libelle {
  padding: 12px;
  width: 100%;
  border-bottom: 1px solid var(--c-black);
  border-right: 1px solid var(--c-black);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  transition: transform 0.3s ease-in-out;
}

.menu-list li .libelle-inner {
  width: fit-content;
  text-align: left;
  transition: transform 0.3s ease-in-out;
}
.menu-list li:hover .libelle {
  text-align: right;
  flex-direction: row-reverse;
  transition: transform 0.3s ease-in-out;
}
.menu-list li:hover .libelle-inner {
  text-align: right;
  flex-direction: row;
  transition: transform 0.3s ease-in-out;
}
.menu-list li a.menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-decoration: none;
  color: inherit;
}
.menu-list li .arrow {
  padding: 12px;
  display: flex;
  height: stretch;
  align-items: center;
  border-bottom: 1px solid var(--c-black);
}
.menu-list li:hover .arrow {
  background: var(--c-blue);
}
.menu-list li:hover .arrow svg path {
  fill: var(--c-white);
}

.menu-footer {
  margin-top: auto !important;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  padding: 24px 12px;
  flex-wrap: wrap;
}

.menu-footer p {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.1;
  font-weight: 300;
  margin: 0;
  color: var(--c-black);
}

.menu-footer-logos {
  display: flex;
  gap: 14px;
}

@media (max-width:1200px) {
  .menu-list li {
    font-size: 16px;
  }
  .menu-overlay-head {
    padding: 16px;
  }
}

/* ============ GLOSSARY TOOLTIP ============ */
.glossary-pop {
  position: absolute;
  z-index: 70;
  background: var(--c-white);
  border: 1px solid var(--c-black);
  max-width: 290px;
  display: none;
}
.glossary-pop::before {
  content: "";
  display: block;
  position: absolute;
  left: 12px;
  top: -1px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--c-black);
}

.glossary-pop.is-open {
  display: block;
}

.glossary-pop-term {
  display: none;
  font-family: var(--font-body);
  font-size: var(--body);
  font-weight: 300;
  text-decoration: underline;
  margin-bottom: 8px;
  text-transform: lowercase;
}

.glossary-pop-text {
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: 1.1em;
  font-weight: 300;
  white-space: pre-line;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10x;
}

.glossary-pop-link {
  color: var(--c-black);
  font-size: 20px;
  font-weight: 300;
  text-transform: lowercase;
  border-top: 1px solid var(--c-black);
  display: flex;
  flex-direction: row;
  max-height: 35px;
  cursor: pointer;
}
.glossary-pop-link .libelle {
  padding: 0 12px;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: center;
  border-right: 1px solid var(--c-black);
  transition: transform 0.3s ease-in-out;
}
.glossary-pop-link .libelle-inner {
  width: fit-content;
  text-align: left;
  transition: transform 0.3s ease-in-out;
}
.glossary-pop-link:hover .libelle {
  text-align: right;
  flex-direction: row-reverse;
  transition: transform 0.3s ease-in-out;
}
.glossary-pop-link:hover .libelle-inner {
  text-align: right;
  flex-direction: row;
  transition: transform 0.3s ease-in-out;
}
.glossary-pop-link .arrow {
  padding: 12px;
  display: flex;
  height: stretch;
  align-items: center;
}
.glossary-pop-link:hover .arrow {
  background: var(--c-blue);
}
.glossary-pop-link:hover .arrow svg path {
  fill: var(--c-white);
}

/* ============ ILLUSTRATIONS ============ */
.illus-emergence, .illus-conception{width:100%; height:auto;}