/* VARIABLES */
:root{
  --gold:#ceab5d;
  --olive:#909b25;
  --dark:#45521f;
  --bg:#f5f5f5;
  --header-height: 80px;
}

/* RESET */
body{
  margin:0;
  font-family:Roboto,sans-serif;
  background:var(--bg);
}

/* HEADER FULL WIDTH */
header{
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height: var(--header-height);

  background: rgba(69,82,31,0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-bottom: 1px solid rgba(255,255,255,0.08);

  z-index:1000;
  font-family: "Roboto Slab", serif;
  font-weight: 800;
  display: flex;
  align-items: center;

  transition: all 0.3s ease;
}
main{
  padding-top: var(--header-height);
}

/* HEADER SHRINK */
header.scrolled{
  background:rgba(69,82,31,0.92);
  box-shadow:0 12px 35px rgba(0,0,0,0.25);
}

/* NAV CENTRÉ */
.nav{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 25px;

  display:flex;
  justify-content:space-between;
  align-items:center;

  width: 100%;
}

/* MENU DESKTOP */
.menu{
  display:flex;
  gap:20px;
}

.right{
  display:flex;
  align-items:center;
  gap:20px;
}

.menu > a{
  color:white;
  text-decoration:none;
  margin:4px 0;
  padding:8px 12px;
  border-radius:8px;
  transition:0.2s;
}

.menu > a:hover{
  background:rgba(255,255,255,0.18);
  transform:translateY(-2px);
}

/* BURGER */
.burger{
  display:none;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
}

.burger span{
  width:25px;
  height:3px;
  background:white;
  border-radius:2px;
  transition:0.3s;
}

/* BURGER ANIMATION */
.burger.active span:nth-child(1){
  transform:rotate(45deg) translate(5px,5px);
}
.burger.active span:nth-child(2){
  opacity:0;
}
.burger.active span:nth-child(3){
  transform:rotate(-45deg) translate(6px,-6px);
}

.parent-choice-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}

.parent-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  padding: 14px 16px;
  border-radius: 16px;

  text-decoration: none;
  color: inherit;

  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.35);

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

.parent-choice:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.parent-choice span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.parent-choice strong {
  font-size: 1rem;
  font-weight: 800;
  color: #1f2d22;
}

.parent-choice small {
  font-size: 0.88rem;
  line-height: 1.3;
  color: rgba(31, 45, 34, 0.78);
}

.parent-choice b {
  min-width: 56px;
  padding: 8px 10px;
  border-radius: 12px;

  text-align: center;
  font-size: 0.85rem;
  font-weight: 900;

  background: var(--gold);
  color: #111;
}

.formation-card{
  position:relative;
  display:flex;
  border-radius:18px;
  overflow:hidden;
  min-height:260px;
  height:auto;
  text-decoration:none;
  color:white;
  cursor:pointer;
  transition: all 0.3s ease;
  transform:translateZ(0);
  box-shadow:0 8px 30px rgba(0,0,0,0.12);
}

.formation-card h3{
  font-size:22px;
  margin-top:0;
  font-weight:900;
  margin:8px 0 5px;
  color:white;
  letter-spacing:0.3px;
}

.formation-card p{
  font-size:14px;
  opacity:0.9;
  margin:0;
}

.formation-card h3,
.formation-card p{
  text-shadow:0 2px 10px rgba(0,0,0,0.6);
}

.formation-card:hover{
  transform:translateY(-6px) scale(1.01);
  box-shadow:0 18px 45px rgba(0,0,0,0.28);
}

.formation-card:hover .tag{
  background:var(--gold);
  color:black;
  transform:translateY(-2px);
}

.formation-card:hover h3{
  transform:translateY(-4px);
  color:var(--gold);
}

.formation-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:0.4s;
  filter: saturate(1.1) contrast(1.05);
}


.formation-card:hover img{
  transform:scale(1.03);
}

.formation-card .overlay{
  position:absolute;
  inset:0;
  padding:20px 20px 24px;

  display:flex;
  flex-direction:column;
  justify-content:flex-end;

 background:linear-gradient(
  to top,
  rgba(0,0,0,0.85) 0%,
  rgba(0,0,0,0.55) 50%,
  rgba(0,0,0,0.25) 75%,
  transparent 100%
);

  color:white;
}

.formation-card:hover .overlay{
  background:linear-gradient(
    to top,
    rgba(0,0,0,0.9),
    rgba(0,0,0,0.6),
    rgba(0,0,0,0.3),
    transparent
  );
}

.cap-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}

.cap-btn{
  display:inline-block;
  padding:6px 10px;
  border-radius:6px;
  text-decoration:none;
  font-size:12px;
  font-weight:600;

  background:#78151e;
  color:white;
  border:1px solid rgba(255,255,255,0.2);

  transition:0.2s;
}

.cap-btn:hover{
  background:var(--gold);
  color:black;
  transform:translateY(-2px);
}

.btn-primary {
  background: var(--gold);
  color: black;
}

.btn-docs{
  margin-left:20px;
  flex-shrink:0;
  display:flex;
  align-items:center;
  gap:8px;

  background:#ffffff;
  color: var(--gold);

  padding:8px 16px;
  border-radius:10px;

  font-size:13px;
  font-weight:600;

  height:36px;

  white-space:nowrap;

  transition: all 0.25s ease;
}

.btn-docs:hover{
  background: var(--gold);
  color:white;
}

.tag{
  position:absolute;
  top:15px;
  left:15px;
  transition:all 0.25s ease;
  background:#78151e;
  backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,0.15);
  padding:6px 10px;
  border-radius:8px;

  font-size:13px;
  font-weight:600;
  color:white;
}

/* HERO */
.hero{
  position:relative;
  min-height: calc(100vh - var(--header-height));
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:white;
  overflow:hidden;
}

.hero-bg{
  position:absolute;
  inset:0;
  z-index:0;
}

.hero-bg img{
  position:absolute;
  top:0;          /* 🔥 MANQUANT */
  left:0;         /* 🔥 MANQUANT */
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  opacity:0;
  transition:opacity 0.8s ease;
}

/* image visible */
.hero-bg img.active{
  opacity:1;
}

/* overlay sombre premium */
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    rgba(0,0,0,0.6),
    rgba(0,0,0,0.5)
  );
  z-index:1;
}
/* contenu au-dessus */

.hero h1{
  font-size: clamp(28px, 5vw, 50px);
  margin:0;
  margin-top:0;
  line-height:1.2;
  text-shadow:0 5px 20px rgba(0,0,0,0.5);
}

.hero h1 span{
  font-family:Knewave;
  color:var(--gold);
}

.hero p{
  margin-top:30px;
  font-size:18px;
  opacity:0.9;
}

.hero-btn{
  display:inline-block;
  margin-top:25px;

  background:linear-gradient(135deg,var(--gold),#e0c170);
  color:#000;

  padding:16px 30px;
  border-radius:10px;

  font-weight:600;
  text-decoration:none;

  transition:0.3s;
}

.hero-btn:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 35px rgba(0,0,0,0.35);
}

.hero-content{
  position:relative;
  z-index:2;
  max-width:700px;
  padding:0 20px;
  margin:0 auto;
  animation:fadeUp 1s ease forwards;
}

@keyframes fadeUp{
  from{
    opacity:0;
    transform:translateY(20px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}


/* Desktop : on cache le bouton */
.tel-btn{
  display:none;
}

/* Desktop : on affiche le numéro */
.phone-number{
  display:inline-block;
  font-weight:600;
  color:var(--dark);
}

.phone-highlight{
  display:inline-block;
  margin-top:6px;
  font-size:17px;
  color:#1f2a1f;
}

/* Mobile */
@media (max-width:768px){
  .tel-btn{
    display:inline-block;
  }

  .phone-number{
    display:none;
  }
}



/* SECTION */
.section{
  max-width:800px;
  margin:40px auto;
  padding:0 20px;
}

#formations{
  max-width:1200px;
  margin:60px auto;
  padding:60px 28px;
}

.section p{
  text-align:justify;
  line-height:1.8;
  margin-bottom:20px;
  hyphens:auto;
}

.section h2{
  font-family:"Roboto Slab";
  margin-bottom:20px;
}

/* CARDS */
.cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:16px;
}

.card{
  position:relative;
  overflow:hidden;
}

.card-actions.vertical{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
  margin-top:20px;
}

.card-actions.vertical .cta-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:220px;
}

.parcours{
  background:#f4f0ea;
  padding:80px 20px;
}

.parcours-inner{
  max-width:1200px;
  margin:0 auto;
}

.parcours-surtitle{
  display:block;
  font-size:14px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.5px;
  color:var(--dark);
  margin-bottom:10px;
}

.parcours-title{
  font-family:"Roboto Slab", serif;
  font-size: clamp(32px, 4vw, 56px);
  line-height:1.1;
  color:#1f2a1f;
  margin:0 0 35px 0;
}

.parcours h2{
  font-family:"Roboto Slab";
  margin-bottom:40px;
}

.parcours h3{
  font-size:20px;
  font-weight:700;
  color:#243024;
  display:flex;
  align-items:center;
  gap:10px;
}

.parcours .card{
  text-align:left;
  padding:28px;
  border-radius:14px;
  color:inherit;
  background:transparent; /* important */
  border:none;            /* important */

  box-shadow:0 10px 25px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.parcours .card:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 40px rgba(0,0,0,0.1);
}

.parcours .card::before,
.parcours .card::after{
  display:none;
}

/* couleurs différentes */
.parcours .card.eleves{
  background:linear-gradient(180deg,#cfd7b2,#a6ad5b);
  color:#243024;
}

.parcours .card.parents{
  background:linear-gradient(180deg,#dfd7cd,#e6cc8f);
  color:#2a2a2a;
}

.parcours .card.entreprises{
  background:linear-gradient(180deg,#c8cdd0,#aab3bb);
  color:#1f2a1f;
}

.parcours .card.parents .cta-link{
  background:var(--gold);
  color:black !important;
}


/* texte */
.parcours p{
  font-size:15px;
  margin-bottom:20px;
}

/* boutons */
.parcours .cta-link{
  display:inline-block;
  padding:10px 18px;
  border-radius:8px;
  background:var(--dark);
  color:#fff !important;
  text-decoration:none;
  margin-right:10px;
  margin-bottom:5px;
}

.cta-link.primary{
  background: var(--gold);
  color: black !important;
  font-weight:600;
}

/* ===== FORMATIONS PREMIUM ===== */

.formations-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:32px;
  perspective:1000px;
}

/* cas spécial */

.formations-layout{
  display:grid;
  grid-template-columns: 340px 1fr;
  gap:40px;
  align-items:center;
}

.formations-intro{
  max-width:400px;
}

.formations-intro h2{
  font-family:"Roboto Slab", serif;
  font-size:clamp(32px, 3vw, 42px);
  line-height:1.12;
  margin-bottom:18px;
  color:#1f2a1f;
}

.formations-intro p{
  font-size:17px;
  line-height:1.7;
  margin-bottom:22px;
  color:#4a4f44;
}

.surtitle{
  display:block;
  font-size:14px;
  font-weight:700;
  text-transform:uppercase;
  color:var(--olive);
  margin-bottom:10px;
}

.section.alt{
  background:linear-gradient(180deg,#f6f4ef,#ece9df);
  padding:60px 20px;
  border-radius:28px;
}

/* CARD */

/* glow premium */

/* CHIPS */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 10px;
}

.chip{
  background:rgba(0,0,0,0.4);
  color:white;
  border:1px solid rgba(206,171,93,0.4);
  backdrop-filter:none;
}

/* bouton lien */
.cta-link{
  color:var(--gold);
  font-weight:600;
  text-decoration:none;
}

.cta-link:hover{
  text-decoration:underline;
}

/* =====================================================
   CTA PREMIUM
===================================================== */

.cta{
  position: relative;
  padding: 90px 20px;
  text-align: center;
  color: white;
  overflow: hidden;

  background:
    radial-gradient(circle at top left, rgba(206,171,93,0.18), transparent 32%),
    radial-gradient(circle at bottom right, rgba(255,255,255,0.08), transparent 28%),
    linear-gradient(135deg, #3f4c1c 0%, #4d5d22 55%, #5e7029 100%);
}

.cta::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.04), rgba(0,0,0,0.08));
  pointer-events:none;
}

.cta-inner{
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px);
  border-radius: 30px;

  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);

  box-shadow:
    0 24px 60px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.08);

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

.cta-kicker{
  display: inline-block;
  margin-bottom: 16px;
  padding: 7px 14px;
  border-radius: 999px;

  background: rgba(206,171,93,0.18);
  border: 1px solid rgba(206,171,93,0.35);

  color: #f5e8b1;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cta h2{
  margin: 0 0 14px;
  font-family: "Roboto Slab", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  font-weight: 800;
  color: white;
}

.cta p{
  max-width: 620px;
  margin: 0 auto 28px;
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.88);
}

.cta .hero-actions{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.cta a,
.cta .btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  padding: 14px 24px;
  border-radius: 14px;

  text-decoration: none !important;
  font-weight: 700;

  transition: all 0.25s ease;
}

.cta .btn-primary{
  background: linear-gradient(135deg, var(--gold), #e0c170);
  color: #111 !important;
  box-shadow: 0 12px 25px rgba(0,0,0,0.16);
}

.cta .btn-primary:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 35px rgba(0,0,0,0.24);
}

.cta .btn-secondary{
  background: rgba(255,255,255,0.12);
  color: white !important;
  border: 1px solid rgba(255,255,255,0.18);
}

.cta .btn-secondary:hover{
  transform: translateY(-3px);
  background: rgba(255,255,255,0.18);
}

@media (max-width: 768px){
  .cta{
    padding: 65px 16px;
  }

  .cta-inner{
    padding: 28px 20px;
    border-radius: 24px;
  }

  .cta h2{
    font-size: clamp(1.8rem, 7vw, 2.3rem);
  }

  .cta p{
    font-size: 0.98rem;
    margin-bottom: 22px;
  }

  .cta a,
  .cta .btn{
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
}


.header-cta{
  margin-left:15px;
  padding:8px 16px;
  border-radius:8px;

  background:linear-gradient(135deg,var(--gold),#e0c170);
  color:black;
  font-weight:600;
  text-decoration:none;

  transition:0.3s;
}

.header-cta:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 25px rgba(0,0,0,0.25);
}

/* FOOTER */
footer{
  background:#222;
  color:white;
  text-align:center;
  padding:20px;
}

.footer-line{
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}

.site-credit{
  position:absolute;
  right:20px;
  font-size:12px;
  opacity:0.6;
}

.copyright{
  text-align:center;
}

/* SOCIALS */
.socials{
  display:flex;
  gap:12px;
  align-items:center;
}

.mobile-docs,
.mobile-socials{
  display:none;
}

.social{
  width:38px;
  height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;

  background:linear-gradient(135deg,var(--gold),var(--olive)); /* ← toujours actif */
  border:1px solid rgba(255,255,255,0.08);

  transition:0.3s;
}

.social svg{
  width:18px;
  height:18px;
  stroke:white; /* ← couleur du hover */
  transition:0.3s;
}

.social:hover{
  transform:translateY(-2px) scale(1.05);
  box-shadow:0 8px 20px rgba(0,0,0,0.25);
}

.social:hover svg{
  stroke:white; /* ← ne change plus */
}
/* LOGO */
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  color:white;
  font-family:"Roboto Slab";
  font-weight:800;
  letter-spacing:0.5px;
}

.brand-text-link {
  text-decoration: none;
}

.brand,
.brand-text-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-badge{
  width:38px;
  height:38px;
  border-radius:12px;

  background:linear-gradient(135deg,var(--gold),var(--olive));
  box-shadow:0 5px 18px rgba(206,171,93,0.4);

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

  font-size:18px;
  font-weight:900;
}

#footer-container footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 20px;
}

/* MOBILE */
@media(max-width:768px){
  .socials,
  .btn-docs{
    display:none;
  }

 .footer-line{
    flex-direction:column;
    gap:4px;
  }

  .site-credit{
    position:static;
    font-size:11px;
    text-align:center;
  }

.mobile-docs{
    display:block;
    margin-top:10px;
    background:#fff;
    color:var(--gold) !important;
    padding:10px 16px;
    border-radius:10px;
    font-weight:600;
    text-align:center;
    text-decoration:none;
  }

  .mobile-socials{
    display:flex;
    justify-content:center;
    gap:12px;
    margin-top:10px;
  }

  .burger{
    display:flex;
  }

 #formations{
  padding:40px 16px;
}

 .formations-layout{
    grid-template-columns:1fr;
  }

  .formations-intro{
    text-align:center;
    margin-bottom:25px;
    max-width:none;
  }

 .formations-grid{
    grid-template-columns:1fr;
    gap:20px;
  }

  .menu{
    position:absolute;
    top:var(--header-height);
    left:0;
    width:100%;
    background:linear-gradient(135deg,#45521f,#6f7d32);
    flex-direction:column;
    align-items:center;
    gap:12px;
    padding:20px 0;
    transform:translateY(-120%);
    opacity:0;
    transition:0.3s;
  }

  .menu.active{
    transform:translateY(0);
    opacity:1;
  }

.menu > a{
  position:relative;
  color:white;
  text-decoration:none;
  padding:8px 6px;
  font-weight:500;
  transition:0.3s;
}

/* underline premium */
.menu > a:not(.brand):not(.brand-text-link)::after{
  content:"";
  position:absolute;
  bottom:-4px;
  left:0;
  width:0%;
  height:2px;
  background:linear-gradient(90deg,var(--gold),var(--olive));
  transition:0.3s;
}

.menu > a:hover::after{
  width:100%;
}

.menu > a:hover{
  color:var(--gold);
  transform:none; /* ← on enlève le saut moche */
  background:none;
}

  .hero h1{
    font-size: clamp(26px, 8vw, 40px);
  }

 .hero{
    padding:0 15px;
  }

  .hero p{
    font-size:16px;
    margin-top:20px;
  }

 }

/* ===== BLOC PARCOURS : ALIGNEMENT FINAL ===== */

.parcours .cards{
  align-items:stretch;
  gap:18px;
}

/* Structure commune des 3 cartes */
.parcours .card{
  display:grid;
  grid-template-rows: 46px 90px auto;
  padding:30px 28px;
}

/* Titre aligné */
.parcours .card h3{
  margin:0;
  min-height:46px;
  display:flex;
  align-items:center;
}

/* Texte aligné */
.parcours .card > p{
  margin:0;
  min-height:90px;
  line-height:1.45;
}

/* Boutons apprenant / entreprise */
.parcours .card-actions.vertical{
  margin-top:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  width:100%;
}

.parcours .card.eleves .cta-link,
.parcours .card.entreprises .cta-link{
  width:260px;
  text-align:center;
}

/* Parent : blocs alignés au même niveau que les actions */
.parent-choice-list{
  margin-top:0;
  display:flex;
  flex-direction:column;
  gap:9px;
}

.parent-choice{
  padding:10px 14px;
  border-radius:14px;
}

.parent-choice strong{
  font-size:0.95rem;
}

.parent-choice small{
  font-size:0.82rem;
  line-height:1.25;
}

.parent-choice b{
  min-width:50px;
  padding:7px 10px;
}

/* Entreprise : téléphone + mail en ligne */
.enterprise-contact-row{
  display:flex;
  gap:10px;
  justify-content:center;
  align-items:stretch;
  margin:0 0 16px;
  width:100%;
}

.enterprise-contact-pill{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:2px;

  min-width:135px;
  padding:9px 12px;

  border-radius:14px;
  background:rgba(255,255,255,0.28);
  border:1px solid rgba(255,255,255,0.45);

  text-decoration:none;
  color:inherit;
  transition:all 0.22s ease;
}

.enterprise-contact-pill span{
  font-size:12px;
  font-weight:700;
  color:rgba(31,45,34,0.75);
}

.enterprise-contact-pill strong{
  font-size:15px;
  letter-spacing:0.2px;
  color:#1f2a1f;
  white-space:nowrap;
}

.enterprise-contact-pill:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 22px rgba(0,0,0,0.12);
}

/* ===== MOBILE : RESPIRATION + HARMONISATION BLOC PARCOURS ===== */

@media(max-width:768px){

  .parcours{
    padding:45px 18px;
  }

  .parcours .cards{
    gap:26px;
  }

  .parcours .card{
    display:flex;
    flex-direction:column;
    padding:28px 24px;
    border-radius:22px;
  }

  .parcours .card h3{
    min-height:auto;
    margin-bottom:18px;
  }

  .parcours .card > p{
    min-height:auto;
    margin-bottom:26px;
    line-height:1.45;
  }

  /* Parent */
  .parent-choice-list{
    margin-top:22px;
    gap:16px;
  }

  /* APPRENANT + ENTREPRISE :
     on crée un conteneur un peu moins large,
     pour retrouver le même effet de retrait que Parent */
  .parcours .card.eleves .card-actions.vertical,
  .parcours .card.entreprises .card-actions.vertical,
  .enterprise-contact-row{
    width:calc(100% - 28px);
    margin-left:auto;
    margin-right:auto;
  }

  .parcours .card.eleves .card-actions.vertical,
  .parcours .card.entreprises .card-actions.vertical{
    margin-top:0;
    gap:14px;
    align-items:stretch;
  }

  .enterprise-contact-row{
    flex-direction:column;
    align-items:stretch;
    margin-top:22px;
    margin-bottom:22px;
    gap:14px;
  }

  .enterprise-contact-pill,
  .parcours .card.eleves .cta-link,
  .parcours .card.entreprises .cta-link{
    width:100%;
    max-width:none;
    box-sizing:border-box;
  }

  .enterprise-contact-pill{
    padding:14px 16px;
    text-align:center;
    align-items:center;
  }

  .parcours .card.eleves .cta-link,
  .parcours .card.entreprises .cta-link{
    padding:14px 18px;
    text-align:center;
  }
}

/* =====================================================
   LIGHTBOX MOBILE PLEIN ÉCRAN
   ===================================================== */

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.94);
  padding: 18px;
}

.image-lightbox.active {
  display: flex;
}

.image-lightbox img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 100000;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: white;
  color: #111;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100000;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: white;
  color: #111;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-prev {
  left: 14px;
}

.lightbox-next {
  right: 14px;
}

@media (max-width: 768px) {
  .gallery-slider {
    border-radius: 22px;
    margin-top: 22px;
  }

  .slider-track img {
    height: 270px;
  }

  .gallery-slider .prev,
  .gallery-slider .next {
    width: 40px;
    height: 40px;
    font-size: 1.7rem;
  }

  .gallery-slider .prev {
    left: 10px;
  }

  .gallery-slider .next {
    right: 10px;
  }

  .image-lightbox img {
    max-height: 82vh;
    border-radius: 14px;
  }
}


/* IDENTITE MFR - Embleme carre commun au header et au footer */
#header-container .brand { display:flex;align-items:center;gap:12px;text-decoration:none;min-width:0; }
#header-container .brand .brand-badge {
  width:56px; height:56px; min-width:56px; flex:0 0 56px;
  box-sizing:border-box; padding:0; overflow:hidden;
  background:#fff; border:1px solid #cfb879; border-radius:12px;
  box-shadow:0 3px 12px rgba(0,0,0,.15);
}
#header-container .brand .brand-logo {
  display:block; width:100%; height:100%; max-width:100%; max-height:100%;
  object-fit:contain;
}
#header-container .brand .brand-text { color:#fff; line-height:1.2; }
#footer-container .footer-brand {
  display:inline-flex; align-items:center; justify-content:center;
  margin:0 auto 16px; max-width:100%; text-decoration:none;
}
#footer-container .footer-brand img {
  display:block; width:112px; height:112px; max-width:100%;
  object-fit:contain; border-radius:16px; box-sizing:border-box;
}
@media (max-width:768px) {
  #header-container .brand .brand-badge { width:48px !important; height:48px !important; min-width:48px !important; flex-basis:48px !important; }
  #header-container .brand .brand-text { max-width:175px; font-size:12px; line-height:1.2; }
  #footer-container .footer-brand img { width:88px !important; height:88px !important; }
}

/* Le menu bascule en mode compact avant que les éléments se chevauchent. */
@media (min-width:769px) and (max-width:1150px) {
  #header-container .burger { display:flex; }
  #header-container .right > .socials,
  #header-container .right > .btn-docs { display:none; }
  #header-container .menu {
    position:absolute; top:var(--header-height); left:0; width:100%;
    box-sizing:border-box; padding:20px 0;
    background:linear-gradient(135deg,#45521f,#6f7d32);
    flex-direction:column; align-items:center; gap:12px;
    transform:translateY(-120%); opacity:0; pointer-events:none;
    transition:transform .3s ease,opacity .3s ease;
  }
  #header-container .menu.active { transform:translateY(0); opacity:1; pointer-events:auto; }
  #header-container .menu .mobile-docs {
    display:block; margin-top:10px; background:#fff; color:var(--gold) !important;
    padding:10px 16px; border-radius:10px; font-weight:600; text-align:center; text-decoration:none;
  }
  #header-container .menu .mobile-socials { display:flex; justify-content:center; gap:12px; margin-top:10px; }
}


/* Couleurs des formations issues du puzzle */

/* 4e / 3e */
#formations .formations-grid > .formation-card:nth-child(1) .tag {
  background: #93A020;
  color: #172015;
}

/* BTS */
#formations .formations-grid > .formation-card:nth-child(2) .tag {
  background: #CEA959;
  color: #172015;
}

/* CAP */
#formations .formations-grid > .formation-card:nth-child(3) .tag {
  background: #DA8C86;
  color: #172015;
}

/* Bac Pro */
#formations .formations-grid > .formation-card:nth-child(4) .tag {
  background: #75A6BB;
  color: #172015;
}

/* Boutons CAP assortis */
#formations .formations-grid > .formation-card:nth-child(3) .cap-btn {
  background: #DA8C86;
  color: #172015;
}



/* Qualiopi : carte discrète réellement centrée dans sa zone dédiée */
#formations .formations-colonne-droite { min-width: 0; }
#formations .qualiopi-zone {
  min-height: 230px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 92px 0 12px;
  box-sizing: border-box;
}
#formations .qualiopi-bandeau {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 26px;
  row-gap: 8px;
  width: fit-content;
  max-width: min(100%, 740px);
  min-height: 66px;
  padding: 11px 23px;
  border: 1px solid rgba(118,136,57,.35);
  border-radius: 14px;
  background: rgba(255,255,255,.38);
  color: #273828;
  font-size: 12px;
}
#formations .qualiopi-bandeau-texte {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}
#formations .qualiopi-bandeau-texte strong {
  font-size: 13px;
  font-weight: 700;
}
#formations .qualiopi-bandeau-texte span {
  font-size: 11px;
  color: #475247;
}
#formations .qualiopi-bandeau a {
  color: #305b2b;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#formations .qualiopi-bandeau a:hover { color: #182e16; }
@media (max-width: 991px) {
  #formations .qualiopi-zone { min-height: auto; padding: 20px 0 0; }
}
@media (max-width: 767px) {
  #formations .qualiopi-bandeau { width: 100%; padding: 13px 15px; }
  #formations .qualiopi-bandeau-texte { text-align: center; }
  #formations .qualiopi-bandeau a { white-space: normal; text-align: center; }
}
