/* ============================================================
   LQS AQUITAINE — lean.css
   Variables + reset + nav + hero + programmes + sidebar
   ============================================================ */

/* ── Variables ────────────────────────────────────────────── */
:root {
  --red:          #C50202;
  --red-dark:     #A80000;
  --red-glow:     rgba(197,2,2,0.4);
  --off-white:    #f5f2ee;
  --glass-bg:     rgba(255,255,255,0.07);
  --glass-border: rgba(255,255,255,0.15);
  --glass-blur:   blur(20px) saturate(180%);
  --nav-h:        72px;
  --transition:   0.35s cubic-bezier(.4,0,.2,1);
}

/* ── Reset minimal ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1a1a1a;
  background: #0a0a0a;
  overflow-x: hidden;
  padding-top: var(--nav-h);
}
body.is-preload *, body.is-preload *::before, body.is-preload *::after {
  animation: none !important;
  transition: none !important;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── Chatbox (liquid glass) ───────────────────────────────── */
.chatbox {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 500;
  width: 62px; height: 62px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; text-decoration: none; overflow: hidden;
  background: linear-gradient(135deg, rgba(197,2,2,0.9) 0%, rgba(120,0,0,0.95) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,120,120,0.35);
  box-shadow:
    0 8px 32px rgba(197,2,2,0.5),
    0 2px 8px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.3);
  transition: transform var(--transition), box-shadow var(--transition);
}
.chatbox::before {
  content: '';
  position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(197,2,2,0.5);
  animation: fabRing1 2.4s ease-out infinite;
  pointer-events: none;
}
.chatbox::after {
  content: '';
  position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease; pointer-events: none;
}
.chatbox:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 14px 44px rgba(197,2,2,0.65), inset 0 1px 0 rgba(255,255,255,0.35);
}
.chatbox:hover::after { left: 150%; }
.chatbox:active { transform: scale(0.95); }
.chatbox_img {
  width: 28px; height: 28px;
  object-fit: contain; display: block; flex-shrink: 0;
  filter: brightness(0) invert(1);
  position: relative; z-index: 1;
}
@keyframes fabRing1 {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(1.7); opacity: 0; }
}
#chat { display: none; }

/* ── Page wrapper ─────────────────────────────────────────── */
#page-wrapper { position: relative; transition: transform 0.38s cubic-bezier(.4,0,.2,1); }

/* ============================================================
   HERO
   ============================================================ */
.lean-hero {
  position: relative;
  background: #080808;
  overflow: hidden;
  min-height: 62vh;
  display: flex;
  align-items: center;
}

/* Grille de points */
.lean-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none; z-index: 0;
}

/* Halos */
.lean-hero__glow-left {
  position: absolute; width: 600px; height: 600px;
  top: -150px; left: -120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(197,2,2,0.13) 0%, transparent 70%);
  filter: blur(80px); pointer-events: none; z-index: 0;
  animation: glowPulse 6s ease-in-out infinite;
}
.lean-hero__glow-right {
  position: absolute; width: 400px; height: 400px;
  bottom: -100px; right: -80px; border-radius: 50%;
  background: radial-gradient(circle, rgba(197,2,2,0.07) 0%, transparent 70%);
  filter: blur(70px); pointer-events: none; z-index: 0;
  animation: glowPulse 9s ease-in-out infinite reverse;
}
@keyframes glowPulse {
  0%,100% { opacity:.7; transform:scale(1); }
  50%     { opacity:1;  transform:scale(1.12); }
}

/* Grid interne */
.lean-hero__inner {
  position: relative; z-index: 1;
  max-width: 1300px; margin: 0 auto; width: 100%;
  padding: 6rem 4rem 5rem;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 5rem;
  align-items: center;
}

/* Texte */
.lean-hero__content { display: flex; flex-direction: column; gap: 1.3rem; }

.lean-hero__overline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .4em; text-transform: uppercase;
  color: var(--red);
  display: flex; align-items: center; gap: .6em;
}
.lean-hero__overline::before {
  content: ''; width: 24px; height: 2px;
  background: var(--red); border-radius: 1px; flex-shrink: 0;
}

.lean-hero__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(3rem,7vw,5.5rem);
  font-weight: 800; line-height: .95;
  text-transform: uppercase; letter-spacing: .03em;
  color: rgba(255,255,255,.92);
}
.lean-hero__title span { color: var(--red); }

.lean-hero__divider {
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--red), transparent);
  border-radius: 2px;
}

.lean-hero__intro {
  font-family: 'Barlow', sans-serif;
  font-size: .97rem; line-height: 1.85;
  color: rgba(255,255,255,.55);
}
.lean-hero__intro p { margin-bottom: .75em; }
.lean-hero__intro p:last-child { margin-bottom: 0; }
.lean-hero__intro strong { color: rgba(255,255,255,.8); font-weight: 600; }

.lean-hero__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .2rem; }
.lean-hero__tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
  padding: .4em .9em;
  border: 1px solid rgba(255,255,255,.1); border-radius: 50px;
  background: rgba(255,255,255,.04);
  transition: border-color .3s, color .3s, background .3s;
}
.lean-hero__tag:hover {
  border-color: rgba(197,2,2,.4); color: #fff;
  background: rgba(197,2,2,.1);
}

/* Image hero */
.lean-hero__img-frame {
  position: relative; border-radius: 20px; overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 24px 80px rgba(0,0,0,.55);
}
.lean-hero__img-frame::before {
  content: ''; position: absolute;
  top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  z-index: 2;
}
.lean-hero__img-frame::after {
  content: ''; position: absolute;
  top: 0; left: 0; width: 3px; height: 0;
  background: var(--red); z-index: 3;
  transition: height .5s cubic-bezier(.4,0,.2,1);
}
.lean-hero__img-frame:hover::after { height: 100%; }
.lean-hero__img-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.lean-hero__img-frame:hover img { transform: scale(1.04); }

.lean-hero__img-badge {
  position: absolute; bottom: 1rem; left: 1rem; z-index: 4;
  background: rgba(8,8,8,.75);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.12); border-radius: 10px;
  padding: .45em .95em;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.88);
}

/* ============================================================
   SECTION PROGRAMMES — fond clair
   ============================================================ */
.lean-main { background: var(--off-white); }

.lean-body {
  max-width: 1300px; margin: 0 auto;
  padding: 5rem 4rem 6rem;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 4rem;
  align-items: start;
}

/* En-tête */
.lean-section-head {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 2rem;
}
.lean-section-head__label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .35em; text-transform: uppercase;
  color: var(--red);
}
.lean-section-head__line { flex: 1; height: 1px; background: rgba(0,0,0,.08); }
.lean-section-head__count {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  color: rgba(0,0,0,.3); background: rgba(0,0,0,.05);
  border-radius: 20px; padding: .2em .75em;
}

/* Carte liste */
.lean-programmes__list {
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.05);
  position: relative;
}
.lean-programmes__list::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--red), rgba(197,2,2,.2), transparent);
}

/* Item */
.lean-prog-item {
  position: relative; display: flex; align-items: center;
  overflow: hidden; border-bottom: 1px solid rgba(0,0,0,.05);
  opacity: 0; transform: translateX(-20px);
  transition:
    opacity   .5s cubic-bezier(.4,0,.2,1),
    transform .5s cubic-bezier(.4,0,.2,1),
    background .2s ease;
}
.lean-prog-item.in-view { opacity: 1; transform: translateX(0); }
.lean-prog-item:last-child { border-bottom: none; }
.lean-prog-item:hover { background: #fdf8f8; }

.lean-prog-item::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--red);
  transform: scaleY(0); transform-origin: center;
  transition: transform .22s cubic-bezier(.4,0,.2,1); z-index: 1;
}
.lean-prog-item:hover::before { transform: scaleY(1); }

.lean-prog-item__link {
  display: flex; align-items: center; gap: 1rem; width: 100%;
  padding: 1.1em 1.4em 1.1em 1.6em;
  background: none; border: none; text-align: left; cursor: pointer;
  font-family: 'Barlow', sans-serif;
  font-size: .97rem; font-weight: 500; color: #2a2a2a; line-height: 1.4;
  transition: color .22s ease, padding-left .22s ease;
}
.lean-prog-item:hover .lean-prog-item__link { color: var(--red-dark); padding-left: 2em; }

.lean-prog-item__text { flex: 1; }
.lean-prog-item__num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .65rem; font-weight: 700; color: rgba(0,0,0,.15);
  letter-spacing: .04em; flex-shrink: 0; min-width: 22px; text-align: right;
  transition: color .22s ease;
}
.lean-prog-item:hover .lean-prog-item__num { color: rgba(197,2,2,.4); }
.lean-prog-item__arrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.3rem; font-weight: 300; color: var(--red);
  opacity: 0; transform: translateX(-6px);
  transition: opacity .2s ease, transform .22s ease;
  flex-shrink: 0; line-height: 1;
}
.lean-prog-item:hover .lean-prog-item__arrow { opacity: 1; transform: translateX(0); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.lean-sidebar {
  position: sticky; top: calc(var(--nav-h) + 2rem);
  display: flex; flex-direction: column; gap: 1.4rem;
}

/* Card CTA fond sombre */
.lean-sidebar__cta {
  background: #0a0a0a; border-radius: 20px;
  padding: 2rem; position: relative; overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.15);
}
.lean-sidebar__cta::before {
  content: ''; position: absolute;
  bottom: -40px; right: -40px; width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(197,2,2,.18) 0%, transparent 70%);
  pointer-events: none;
}
.lean-sidebar__cta::after {
  content: ''; position: absolute;
  top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
}

.lean-sidebar__cta-overline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .35em; text-transform: uppercase;
  color: var(--red); display: block; margin-bottom: .5rem;
}
.lean-sidebar__cta-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.25rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em;
  color: rgba(255,255,255,.9); line-height: 1.15; margin-bottom: .7rem;
}
.lean-sidebar__cta-text {
  font-size: .84rem; line-height: 1.7;
  color: rgba(255,255,255,.45); margin-bottom: 1.3rem;
}
.lean-sidebar__cta-btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .8em 1.7em; background: var(--red); color: #fff;
  border-radius: 50px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: .82rem;
  letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  transition: background .3s, transform .3s, box-shadow .3s;
  box-shadow: 0 4px 20px rgba(197,2,2,.35);
}
.lean-sidebar__cta-btn:hover {
  background: var(--red-dark);
  transform: translateY(-2px); box-shadow: 0 8px 32px rgba(197,2,2,.5);
}
.lean-sidebar__cta-btn svg { transition: transform .28s ease; }
.lean-sidebar__cta-btn:hover svg { transform: translateX(3px); }

/* Card infos blanche */
.lean-sidebar__info {
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.05); position: relative;
}
.lean-sidebar__info::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--red), rgba(197,2,2,.2), transparent);
}
.lean-sidebar__info-row {
  display: flex; align-items: center; gap: .9rem;
  padding: .95rem 1.3rem; font-size: .86rem; color: #555;
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.lean-sidebar__info-row:last-child { border-bottom: none; }
.lean-sidebar__info-icon {
  width: 30px; height: 30px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(197,2,2,.08); border-radius: 7px;
  color: var(--red); font-size: .75rem;
}
.lean-sidebar__info-row strong { color: #1a1a1a; font-weight: 600; }

/* ============================================================
   FOOTER (reprise depuis accueil.css)
   ============================================================ */
#footer {
  background: #050505;
  color: rgba(255,255,255,.65);
  font-family: 'Barlow', sans-serif;
  position: relative;
}
.footer-topbar { height: 2px; background: rgba(255,255,255,.05); overflow: hidden; position: relative; }
.footer-topbar__fill {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, var(--red) 30%, rgba(197,2,2,.4) 60%, transparent 100%);
}
.footer-inner {
  max-width: 1300px; margin: 0 auto;
  padding: 5rem 4rem 4rem;
  display: grid;
  grid-template-columns: 2.8fr 1fr 1.4fr 1.6fr;
  gap: 3.5rem; align-items: start;
}
.footer-col__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .7rem; font-weight: 700; letter-spacing: .3em;
  text-transform: uppercase; color: rgba(255,255,255,.35);
  margin-bottom: 1.4rem; padding-bottom: .8rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-col--brand { display: flex; flex-direction: column; gap: 1.2rem; }
.footer-logo-link { display: inline-block; }
.footer-logo { height: 48px; width: auto; opacity: .85; filter: brightness(1.1); transition: opacity var(--transition); }
.footer-logo-link:hover .footer-logo { opacity: 1; }
.footer-brand-desc { font-size: .88rem; line-height: 1.6; color: rgba(255,255,255,.45); }
.footer-accessibilite {
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem 1rem;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: 10px;
}
.footer-accessibilite__img { width: 36px; height: auto; opacity: .6; flex-shrink: 0; }
.footer-accessibilite__text { font-size: .75rem; color: rgba(255,255,255,.4); line-height: 1.4; }
.footer-social { display: flex; gap: .6rem; margin-top: .2rem; }
.footer-social__link {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.55);
  font-size: .9rem; text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.footer-social__link:hover { background: rgba(197,2,2,.2); border-color: rgba(197,2,2,.4); color: #fff; }
.footer-nav { display: flex; flex-direction: column; list-style: none; padding: 0; margin: 0; }
.footer-nav li a {
  display: flex; align-items: center; gap: .5em;
  padding: .42em 0; font-size: .87rem; color: rgba(255,255,255,.5);
  text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.04);
  transition: color var(--transition), padding-left var(--transition);
}
.footer-nav li a::before {
  content: ''; width: 0; height: 1px; background: var(--red);
  transition: width .3s ease; flex-shrink: 0;
}
.footer-nav li a:hover { color: rgba(255,255,255,.9); padding-left: .4em; }
.footer-nav li a:hover::before { width: 14px; }
.footer-nav li:last-child a { border-bottom: none; }
.footer-contact-list { display: flex; flex-direction: column; gap: .75rem; }
.footer-contact-item { display: flex; align-items: flex-start; gap: .75rem; font-size: .87rem; line-height: 1.5; }
.footer-contact-item__icon {
  width: 28px; height: 28px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(197,2,2,.12); border-radius: 7px;
  color: var(--red); font-size: .75rem; margin-top: 1px;
}
.footer-contact-item span:not(.footer-contact-item__icon),
.footer-contact-item a { color: rgba(255,255,255,.55); text-decoration: none; transition: color var(--transition); word-break: break-word; }
.footer-contact-item a:hover { color: #fff; }
.footer-certs { display: flex; flex-direction: column; gap: .8rem; }
.footer-cert-card {
  display: flex; align-items: center; gap: 1rem;
  padding: .9rem 1.1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.08); border-radius: 12px;
  text-decoration: none; position: relative; overflow: hidden;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.footer-cert-card::before {
  content: ''; position: absolute;
  top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
}
.footer-cert-card:not(.footer-cert-card--static):hover {
  background: rgba(197,2,2,.1); border-color: rgba(197,2,2,.25); transform: translateX(4px);
}
.footer-cert-card__img-wrap {
  width: 48px; height: 48px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.92); border-radius: 8px; padding: 6px;
}
.footer-cert-card__img-wrap img { width: 100%; height: 100%; object-fit: contain; }
.footer-cert-card__body { display: flex; flex-direction: column; gap: .15rem; flex: 1; }
.footer-cert-card__name {
  font-family: 'Barlow Condensed', sans-serif; font-size: .9rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.85);
}
.footer-cert-card__detail { font-size: .7rem; line-height: 1.35; color: rgba(255,255,255,.35); }
.footer-cert-card__ext { font-size: .65rem; color: rgba(255,255,255,.25); flex-shrink: 0; transition: color var(--transition); }
.footer-cert-card:hover .footer-cert-card__ext { color: var(--red); }
.footer-copyright { border-top: 1px solid rgba(255,255,255,.05); padding: 1.4rem 4rem; }
.footer-copyright__inner {
  max-width: 1300px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem;
}
.footer-copyright__text { font-size: .76rem; color: rgba(255,255,255,.28); letter-spacing: .03em; }
.footer-copyright__links { display: flex; gap: 1.5rem; list-style: none; }
.footer-copyright__links li { font-size: .76rem; color: rgba(255,255,255,.28); }
.footer-copyright__links a { color: rgba(255,255,255,.4); text-decoration: none; transition: color var(--transition); }
.footer-copyright__links a:hover { color: rgba(255,255,255,.8); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media screen and (max-width: 1100px) {
  .lean-hero__inner { padding: 4.5rem 2.5rem 4rem; gap: 3rem; }
  .lean-body { padding: 3.5rem 2.5rem 4.5rem; gap: 2.5rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; padding: 4rem 3rem 3rem; }
  .footer-col--brand { grid-column: 1 / -1; }
}
@media screen and (max-width: 860px) {
  .lean-hero__inner { grid-template-columns: 1fr; }
  .lean-hero__img-wrap { display: none; }
  .lean-body { grid-template-columns: 1fr; }
  .lean-sidebar { position: static; }
}
@media screen and (max-width: 768px) {
  :root { --nav-h: 58px; }
  .lean-hero__inner { padding: 3.5rem 1.5rem 2.5rem; }
  .lean-hero__title { font-size: 3rem; }
  .lean-body { padding: 2.5rem 1.5rem 3rem; }
  .footer-inner { grid-template-columns: 1fr; padding: 3rem 1.5rem 2rem; }
  .footer-copyright { padding: 1.2rem 1.5rem; }
  .footer-copyright__inner { flex-direction: column; align-items: flex-start; }
}
@media screen and (max-width: 480px) {
  .lean-hero__inner { padding: 3rem 1.2rem 2.5rem; }
  .lean-hero__title { font-size: 2.8rem; }
  .lean-body { padding: 2rem 1.2rem 2.5rem; }
}