/* =========================================================
   ACCUEIL V2 — COLLÈGE PRIVÉ STANI ZALIOHOUAN
   Feuille dédiée à la page d'accueil.
   ========================================================= */

.home-announcement{
  background:#f5e9e1;
  border-bottom:1px solid #e5d1c4;
  color:var(--brown-900);
}
.home-announcement-inner{
  min-height:46px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  font-size:.88rem;
}
.home-announcement-inner>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.home-announcement-dot{width:9px;height:9px;border-radius:50%;background:var(--terracotta);box-shadow:0 0 0 5px rgba(216,93,61,.12)}
.home-announcement a{font-weight:900;color:var(--terracotta-dark);white-space:nowrap}

/* HERO */
.home-hero{
  position:relative;
  overflow:hidden;
  background:linear-gradient(118deg,#2f1b12 0%,#45291d 54%,#5f3928 100%);
  color:#fff;
}
.home-hero::before{
  content:"";
  position:absolute;
  width:520px;
  height:520px;
  border-radius:50%;
  right:-200px;
  top:-220px;
  border:92px solid rgba(255,255,255,.025);
}
.home-hero-bg{
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 18% 18%,rgba(216,93,61,.18),transparent 32%),
    radial-gradient(circle at 78% 85%,rgba(255,255,255,.055),transparent 28%);
  pointer-events:none;
}
.home-hero-grid{
  position:relative;
  z-index:2;
  min-height:690px;
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(420px,.95fr);
  gap:70px;
  align-items:center;
  padding-top:72px;
  padding-bottom:78px;
}
.home-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:9px;
  margin-bottom:18px;
  color:#ffb6a1;
  font-size:.76rem;
  font-weight:900;
  letter-spacing:.13em;
  text-transform:uppercase;
}
.home-eyebrow::before{content:"";width:30px;height:2px;background:#ff8c6d}
.home-hero h1{
  max-width:760px;
  margin:0;
  color:#fff;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(3.2rem,5.5vw,5.4rem);
  line-height:.98;
  letter-spacing:-.045em;
}
.home-hero h1 span{display:block;color:#ef7958}
.home-hero-copy>p{
  max-width:690px;
  margin:26px 0 0;
  color:rgba(255,255,255,.82);
  font-size:1.03rem;
  line-height:1.8;
}
.home-hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:30px}
.home-btn-lg{min-height:52px;padding:14px 22px}
.home-btn-ghost{
  border:1px solid rgba(255,255,255,.5);
  color:#fff;
  background:rgba(255,255,255,.035);
}
.home-btn-ghost:hover{background:#fff;color:var(--brown-900)}
.home-hero-meta{
  display:flex;
  gap:0;
  margin-top:42px;
  border-top:1px solid rgba(255,255,255,.14);
  border-bottom:1px solid rgba(255,255,255,.14);
}
.home-hero-meta>div{padding:18px 28px 18px 0;margin-right:28px;position:relative}
.home-hero-meta>div:not(:last-child)::after{content:"";position:absolute;right:0;top:17px;bottom:17px;width:1px;background:rgba(255,255,255,.14)}
.home-hero-meta strong{display:block;color:#fff;font-family:Georgia,"Times New Roman",serif;font-size:1.42rem}
.home-hero-meta span{display:block;margin-top:3px;color:rgba(255,255,255,.6);font-size:.76rem}

.home-hero-visual{position:relative;min-height:530px}
.home-photo-frame{
  position:absolute;
  inset:0 28px 0 0;
  overflow:hidden;
  border-radius:34px 34px 90px 34px;
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 30px 75px rgba(0,0,0,.28);
}
.home-photo-frame>img{width:100%;height:100%;object-fit:cover}
.home-photo-overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(47,27,18,.65),transparent 48%)}
.home-photo-badge{
  position:absolute;
  left:24px;
  right:24px;
  bottom:22px;
  display:flex;
  align-items:center;
  gap:13px;
  padding:13px 16px;
  border-radius:18px;
  background:rgba(255,255,255,.92);
  color:var(--brown-900);
  backdrop-filter:blur(10px);
}
.home-photo-badge img{width:50px;height:50px;object-fit:contain;background:#fff;border-radius:50%}
.home-photo-badge strong,.home-photo-badge span{display:block}
.home-photo-badge strong{font-size:.92rem}.home-photo-badge span{margin-top:2px;color:var(--muted);font-size:.75rem}
.home-floating-card{
  position:absolute;
  z-index:3;
  display:flex;
  align-items:center;
  gap:11px;
  min-width:210px;
  padding:13px 15px;
  border-radius:16px;
  background:#fff;
  color:var(--brown-900);
  box-shadow:0 18px 45px rgba(23,11,6,.22);
}
.home-floating-card strong,.home-floating-card small{display:block}
.home-floating-card strong{font-size:.83rem}.home-floating-card small{margin-top:2px;color:var(--muted);font-size:.7rem}
.home-floating-icon{width:36px;height:36px;display:grid;place-items:center;flex:0 0 auto;border-radius:11px;background:#f7e7e0;color:var(--terracotta);font-weight:900}
.home-floating-card-top{right:0;top:56px}
.home-floating-card-bottom{left:-34px;bottom:64px}

/* ACCÈS RAPIDES */
.home-quick-wrap{position:relative;z-index:5;margin-top:-34px}
.home-quickbar{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:22px;
  background:#fff;
  box-shadow:0 22px 55px rgba(47,27,18,.12);
}
.home-quickbar>a{display:grid;grid-template-columns:auto 1fr auto;gap:13px;align-items:center;padding:22px;color:var(--brown-900);transition:.2s ease}
.home-quickbar>a:not(:last-child){border-right:1px solid var(--line)}
.home-quickbar>a:hover{background:#fbf6f2}
.home-quick-icon{width:43px;height:43px;display:grid;place-items:center;border-radius:13px;background:var(--brown-900);color:#fff;font-size:.74rem;font-weight:900}
.home-quickbar strong,.home-quickbar small{display:block}
.home-quickbar strong{font-size:.94rem}.home-quickbar small{margin-top:3px;color:var(--muted);font-size:.75rem;line-height:1.35}
.home-quick-arrow{color:var(--terracotta);font-weight:900;font-size:1.2rem}

/* À PROPOS */
.home-about{padding-top:110px}
.home-about-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:80px;align-items:center}
.home-about-media{position:relative;min-height:560px}
.home-about-main{width:88%;height:560px;object-fit:cover;border-radius:26px 88px 26px 26px;box-shadow:0 28px 60px rgba(55,31,18,.14)}
.home-about-logo{position:absolute;right:0;bottom:34px;width:245px;padding:22px;border-radius:22px;background:var(--brown-900);color:#fff;box-shadow:0 18px 50px rgba(38,21,12,.22)}
.home-about-logo img{width:72px;height:72px;object-fit:contain;border-radius:50%;background:#fff;margin-bottom:14px}
.home-about-logo span{display:block;line-height:1.4}.home-about-logo strong{color:#ff9a7d}
.home-about-copy h2{max-width:720px;margin:10px 0 20px;color:var(--brown-900);font-size:clamp(2.25rem,4vw,3.45rem);line-height:1.08}
.home-about-copy>p:not(.lead){color:var(--muted);line-height:1.75}
.home-values{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin:30px 0}
.home-values>div{display:grid;grid-template-columns:auto 1fr;column-gap:11px;align-items:start;padding:15px 0;border-top:1px solid var(--line)}
.home-values span{grid-row:1/3;width:35px;height:35px;display:grid;place-items:center;border-radius:10px;background:#f5e7df;color:var(--terracotta-dark);font-size:.72rem;font-weight:900}
.home-values strong{color:var(--brown-900)}.home-values small{color:var(--muted);line-height:1.35}
.home-text-link{display:inline-flex;align-items:center;gap:7px;color:var(--terracotta-dark);font-weight:900}
.home-text-link:hover{color:var(--brown-900)}

/* ENSEIGNEMENTS */
.home-levels-section{background:#f8f3ef}
.home-section-heading{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.55fr);gap:60px;align-items:end;margin-bottom:40px}
.home-section-heading h2{max-width:780px;margin:8px 0 0;color:var(--brown-900);font-size:clamp(2.3rem,4vw,3.4rem);line-height:1.08}
.home-section-heading>p{margin:0;color:var(--muted);line-height:1.75}
.home-level-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.home-level-card{position:relative;min-height:330px;padding:26px;border:1px solid #e6d7ce;border-radius:22px;background:#fff;color:var(--brown-900);overflow:hidden;transition:.23s ease;box-shadow:0 10px 28px rgba(52,30,18,.045)}
.home-level-card::after{content:"";position:absolute;width:150px;height:150px;border-radius:50%;right:-70px;bottom:-80px;border:34px solid rgba(216,93,61,.07)}
.home-level-card:hover{transform:translateY(-6px);border-color:#d5b9a9;box-shadow:0 18px 40px rgba(52,30,18,.10)}
.home-level-num{display:inline-flex;padding:8px 11px;border-radius:10px;background:var(--brown-900);color:#fff;font-weight:900}
.home-level-index{position:absolute;right:22px;top:20px;color:#ead9cf;font-family:Georgia,"Times New Roman",serif;font-size:2.5rem;font-weight:700}
.home-level-card h3{position:relative;z-index:2;margin:58px 0 12px;color:var(--brown-900);font-size:1.38rem;line-height:1.2}
.home-level-card p{position:relative;z-index:2;color:var(--muted);font-size:.9rem;line-height:1.68}
.home-level-link{position:absolute;left:26px;bottom:25px;color:var(--terracotta-dark);font-size:.82rem;font-weight:900}
.home-level-card-featured{background:linear-gradient(145deg,#3b2418,#5c3725);border-color:transparent;color:#fff}
.home-level-card-featured .home-level-num{background:var(--terracotta)}
.home-level-card-featured .home-level-index{color:rgba(255,255,255,.11)}
.home-level-card-featured h3{color:#fff}.home-level-card-featured p{color:rgba(255,255,255,.72)}.home-level-card-featured .home-level-link{color:#ffb39e}

/* POURQUOI STANI */
.home-why{background:#fff}
.home-why-grid{display:grid;grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr);gap:80px;align-items:start}
.home-why-copy{position:sticky;top:120px}
.home-why-copy h2{margin:8px 0 18px;color:var(--brown-900);font-size:clamp(2.3rem,4vw,3.45rem);line-height:1.08}
.home-why-copy p{margin:0 0 26px;color:var(--muted);line-height:1.75}
.home-why-list{display:grid;gap:0;border-top:1px solid var(--line)}
.home-why-list article{display:grid;grid-template-columns:62px 1fr;gap:20px;padding:27px 0;border-bottom:1px solid var(--line)}
.home-why-list article>span{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:#f6e8e1;color:var(--terracotta-dark);font-size:.75rem;font-weight:900}
.home-why-list h3{margin:0 0 8px;color:var(--brown-900);font-size:1.18rem}.home-why-list p{margin:0;color:var(--muted);line-height:1.65}

/* ADMISSIONS */
.home-admissions{position:relative;overflow:hidden;background:linear-gradient(135deg,#311b12,#583322);color:#fff}
.home-admissions::after{content:"";position:absolute;width:400px;height:400px;border-radius:50%;right:-170px;bottom:-240px;border:72px solid rgba(255,255,255,.035)}
.home-admissions>.container{position:relative;z-index:2}
.home-section-heading-light h2{color:#fff}.home-section-heading-light>p{color:rgba(255,255,255,.7)}.home-section-heading-light .kicker{color:#ff9c81}
.home-admission-steps{display:grid;grid-template-columns:1fr auto 1fr auto 1fr auto 1fr;align-items:center;gap:16px;margin-top:42px}
.home-admission-steps>div:not(.home-step-line){min-height:170px;padding:24px;border:1px solid rgba(255,255,255,.13);border-radius:18px;background:rgba(255,255,255,.045)}
.home-admission-steps span{width:42px;height:42px;display:grid;place-items:center;margin-bottom:24px;border-radius:12px;background:var(--terracotta);font-weight:900}
.home-admission-steps strong,.home-admission-steps small{display:block}.home-admission-steps strong{color:#fff;font-size:.98rem}.home-admission-steps small{margin-top:7px;color:rgba(255,255,255,.6);line-height:1.45}
.home-step-line{width:28px;height:2px;background:rgba(255,255,255,.22)}
.home-admission-action{display:flex;align-items:center;justify-content:space-between;gap:30px;margin-top:35px;padding-top:30px;border-top:1px solid rgba(255,255,255,.13)}
.home-admission-action strong,.home-admission-action span{display:block}.home-admission-action strong{font-size:1.08rem}.home-admission-action span{margin-top:4px;color:rgba(255,255,255,.65);font-size:.85rem}

/* ACTUALITÉS */
.home-news-section{background:#fff}
.home-news-grid{display:grid;grid-template-columns:1.25fr .875fr .875fr;gap:20px}
.home-news-card{overflow:hidden;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:0 10px 30px rgba(55,31,18,.055)}
.home-news-image{display:block;overflow:hidden;height:220px}.home-news-card-featured .home-news-image{height:300px}
.home-news-image img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}.home-news-card:hover .home-news-image img{transform:scale(1.035)}
.home-news-body{padding:22px}.home-news-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;color:var(--muted);font-size:.73rem}
.home-news-meta span{display:inline-flex;padding:5px 8px;border-radius:999px;background:#f7e8e1;color:var(--terracotta-dark);font-weight:900}
.home-news-body h3{margin:0 0 10px;color:var(--brown-900);font-size:1.25rem;line-height:1.3}.home-news-card-featured .home-news-body h3{font-size:1.55rem}
.home-news-body h3 a{color:inherit}.home-news-body p{color:var(--muted);line-height:1.65;font-size:.9rem}

/* RESSOURCES */
.home-resources{background:#f8f3ef}
.home-resources-grid{display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);gap:70px;align-items:start}
.home-resources-intro h2{margin:8px 0 16px;color:var(--brown-900);font-size:clamp(2.2rem,4vw,3.3rem);line-height:1.08}.home-resources-intro p{color:var(--muted);line-height:1.72;margin-bottom:24px}
.home-document-list{display:grid;gap:12px}
.home-document-row{display:grid;grid-template-columns:auto 1fr auto;gap:15px;align-items:center;padding:17px 18px;border:1px solid var(--line);border-radius:16px;background:#fff;color:var(--brown-900);transition:.2s ease}
.home-document-row:hover{transform:translateX(4px);border-color:#d7bdaf;box-shadow:0 10px 25px rgba(55,31,18,.06)}
.home-document-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:13px;background:#f4e5dd;color:var(--terracotta-dark);font-size:.68rem;font-weight:900}
.home-document-copy small,.home-document-copy strong,.home-document-copy em{display:block}.home-document-copy small{color:var(--terracotta-dark);font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.05em}.home-document-copy strong{margin:3px 0;color:var(--brown-900);font-size:.95rem}.home-document-copy em{color:var(--muted);font-size:.72rem;font-style:normal}.home-document-arrow{color:var(--terracotta);font-size:1.15rem}
.home-document-empty{padding:30px;border:1px dashed #ccb7a9;border-radius:18px;background:#fff}.home-document-empty strong,.home-document-empty span{display:block}.home-document-empty strong{color:var(--brown-900)}.home-document-empty span{margin-top:5px;color:var(--muted);font-size:.85rem}

/* GALERIE */
.home-gallery-section{background:#fff}
.home-gallery-grid{display:grid;grid-template-columns:1.2fr .8fr .8fr 1.2fr;grid-auto-rows:320px;gap:14px}
.home-gallery-item{position:relative;overflow:hidden;border-radius:20px;background:var(--cream)}
.home-gallery-item img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}.home-gallery-item:hover img{transform:scale(1.04)}
.home-gallery-item::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(35,20,12,.74),transparent 60%)}
.home-gallery-item>span{position:absolute;z-index:2;left:18px;right:18px;bottom:16px;color:#fff}.home-gallery-item strong,.home-gallery-item small{display:block}.home-gallery-item strong{font-size:.98rem}.home-gallery-item small{margin-top:3px;color:rgba(255,255,255,.72);font-size:.74rem}

/* CONTACT */
.home-contact-section{background:#f8f3ef}
.home-contact-card{display:grid;grid-template-columns:1fr .88fr;overflow:hidden;border:1px solid var(--line);border-radius:28px;background:#fff;box-shadow:0 20px 55px rgba(51,29,17,.08)}
.home-contact-copy{padding:50px}.home-contact-copy h2{margin:8px 0 13px;color:var(--brown-900);font-size:clamp(2.2rem,4vw,3.35rem);line-height:1.08}.home-contact-copy>p{color:var(--muted)}
.home-contact-info{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:30px 0}
.home-contact-info>a,.home-contact-info>div{padding:14px 15px;border:1px solid var(--line);border-radius:14px;color:var(--brown-900)}
.home-contact-info small,.home-contact-info strong{display:block}.home-contact-info small{color:var(--muted);font-size:.72rem}.home-contact-info strong{margin-top:3px;font-size:.88rem}
.home-contact-actions{display:flex;gap:12px;flex-wrap:wrap}
.home-btn-outline-brown{border:1px solid #ceb9ab;background:#fff;color:var(--brown-900)}.home-btn-outline-brown:hover{background:var(--brown-900);color:#fff}
.home-contact-visual{position:relative;min-height:520px}.home-contact-visual img{width:100%;height:100%;object-fit:cover}.home-contact-visual::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(47,27,18,.7),transparent 58%)}
.home-contact-visual-overlay{position:absolute;z-index:2;left:28px;bottom:26px;color:#fff}.home-contact-visual-overlay span,.home-contact-visual-overlay strong{display:block}.home-contact-visual-overlay span{color:#ffb8a5;font-size:.8rem;font-weight:900;text-transform:uppercase;letter-spacing:.09em}.home-contact-visual-overlay strong{margin-top:5px;font-size:1.35rem}

/* CTA FINAL */
.home-final-cta{padding:62px 0;background:var(--brown-950);color:#fff}
.home-final-cta-inner{display:flex;justify-content:space-between;align-items:center;gap:50px}
.home-final-cta-inner>div>span{color:#ff9a7d;font-size:.72rem;font-weight:900;letter-spacing:.12em}.home-final-cta h2{max-width:760px;margin:8px 0;color:#fff;font-size:clamp(2rem,4vw,3rem)}.home-final-cta p{margin:0;color:rgba(255,255,255,.68)}

/* RESPONSIVE */
@media(max-width:1120px){
  .home-hero-grid{grid-template-columns:1fr 430px;gap:45px}
  .home-level-grid{grid-template-columns:repeat(2,1fr)}
  .home-news-grid{grid-template-columns:1fr 1fr}.home-news-card-featured{grid-column:1/-1}.home-news-card-featured .home-news-image{height:340px}
  .home-gallery-grid{grid-template-columns:1fr 1fr;grid-auto-rows:300px}
}
@media(max-width:900px){
  .home-announcement-inner{padding:9px 0;align-items:flex-start}
  .home-announcement-inner>div{display:block}.home-announcement-dot{display:inline-block;margin-right:7px}
  .home-hero-grid{grid-template-columns:1fr;min-height:auto;padding-top:62px;padding-bottom:80px}.home-hero-visual{min-height:520px;max-width:620px;width:100%;margin:0 auto}.home-photo-frame{inset:0 20px 0 20px}.home-floating-card-top{right:0}.home-floating-card-bottom{left:0}
  .home-quickbar{grid-template-columns:1fr}.home-quickbar>a:not(:last-child){border-right:0;border-bottom:1px solid var(--line)}
  .home-about-grid,.home-why-grid,.home-resources-grid,.home-contact-card{grid-template-columns:1fr}.home-about-grid,.home-why-grid,.home-resources-grid{gap:50px}.home-about-media{max-width:650px}.home-why-copy{position:static}.home-contact-visual{min-height:420px}
  .home-section-heading{grid-template-columns:1fr;gap:15px}.home-section-heading>p{max-width:700px}
  .home-admission-steps{grid-template-columns:1fr 1fr;gap:14px}.home-step-line{display:none}.home-admission-action{align-items:flex-start;flex-direction:column}
  .home-final-cta-inner{align-items:flex-start;flex-direction:column}
}
@media(max-width:650px){
  .home-announcement-inner{display:block}.home-announcement-inner>a{display:inline-block;margin-top:7px}
  .home-hero-grid{padding-top:52px;padding-bottom:68px}.home-hero h1{font-size:3.25rem}.home-hero-meta{display:grid;grid-template-columns:1fr}.home-hero-meta>div{padding:13px 0;margin:0}.home-hero-meta>div:not(:last-child)::after{left:0;right:0;top:auto;bottom:0;width:auto;height:1px}
  .home-hero-visual{min-height:445px}.home-photo-frame{inset:0;border-radius:24px 24px 60px 24px}.home-floating-card{display:none}
  .home-quick-wrap{margin-top:-22px}.home-quickbar>a{padding:18px}
  .home-about{padding-top:85px}.home-about-media{min-height:430px}.home-about-main{width:100%;height:430px;border-radius:22px 58px 22px 22px}.home-about-logo{right:12px;bottom:12px;width:205px;padding:16px}.home-about-logo img{width:58px;height:58px}
  .home-values{grid-template-columns:1fr}
  .home-level-grid,.home-news-grid,.home-gallery-grid,.home-contact-info{grid-template-columns:1fr}.home-level-card{min-height:300px}.home-news-card-featured{grid-column:auto}.home-news-card-featured .home-news-image{height:230px}.home-news-image{height:230px}.home-gallery-grid{grid-auto-rows:260px}
  .home-admission-steps{grid-template-columns:1fr}.home-admission-steps>div:not(.home-step-line){min-height:auto}.home-admission-action .btn{width:100%;text-align:center}
  .home-contact-copy{padding:30px 22px}.home-contact-actions{flex-direction:column}.home-contact-actions .btn{width:100%;text-align:center}.home-contact-visual{min-height:330px}
  .home-final-cta .btn{width:100%;text-align:center}
}
