/* =========================================================
   L'Ébène — site vitrine (inspiration structure Carely)
   Charte : Quicksand · bleu #86C0D3 · vert #A7BB52 · violet #7B2E78 · orange #EAAA51
            noir #1D1D1B · écru #ECE7DF · bleu marine #1E3A5F · vert foncé #1F3D37
   ========================================================= */
:root{
  --bleu:#86C0D3; --vert:#A7BB52; --violet:#7B2E78; --orange:#EAAA51;
  --noir:#1D1D1B; --ecru:#ECE7DF; --ecru-clair:#F6F3EE; --marine:#1E3A5F; --vert-fonce:#1F3D37;
  --texte:#45453f; --radius:28px; --radius-lg:36px;
  --leaf:46% 10% 46% 10%; /* forme feuille du symbole */
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
section[id]{scroll-margin-top:100px}
body{margin:0;font-family:'Quicksand',system-ui,sans-serif;font-size:17px;line-height:1.65;color:var(--noir);background:#fff;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:inherit}
h1,h2,h3{margin:0;font-weight:700;line-height:1.15}
p{margin:0}
:focus-visible{outline:3px solid var(--violet);outline-offset:3px}
.wrap{max-width:1280px;margin:0 auto;padding:0 40px}
.inset{margin:0 20px;border-radius:var(--radius-lg)}
.center{text-align:center}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* Typo titres : mot accentué plus léger et coloré (équivalent de l'italique serif de Carely) */
.accent{font-weight:400;color:var(--violet)}
.on-dark .accent{color:var(--vert)}
.eyebrow{display:inline-flex;align-items:center;gap:10px;font-size:15px;font-weight:600;color:var(--marine);margin-bottom:14px}
.eyebrow::before{content:"";width:12px;height:12px;border-radius:6px 2px 6px 2px;background:var(--violet)}
.on-dark .eyebrow{color:#fff}.on-dark .eyebrow::before{background:var(--vert)}
.h2{font-size:46px;letter-spacing:-.01em}
.lead{color:var(--texte);font-size:17px}
.on-dark .lead{color:rgba(255,255,255,.82)}

/* Boutons */
.btn{display:inline-flex;align-items:center;gap:10px;min-height:50px;padding:0 24px;border-radius:999px;font-weight:700;font-size:16px;text-decoration:none;border:0;cursor:pointer;transition:transform .2s,background .2s}
.btn:hover{transform:translateY(-2px)}
.btn svg{width:16px;height:16px}
.btn-violet{background:var(--violet);color:#fff}.btn-violet:hover{background:#65245f}
.btn-vert{background:var(--vert);color:var(--noir)}
.btn-blanc{background:#fff;color:var(--vert-fonce)}
.btn-ligne{border:2px solid currentColor;background:transparent}

/* Photos : couleur de repli + photo si présente (voir js/main.js) */
.photo{position:relative;background-color:#cfd9d3;background-size:cover;background-position:center;overflow:hidden}
.photo .ph-label{position:absolute;inset:auto 0 50% 0;transform:translateY(50%);text-align:center;font-size:13px;font-weight:600;color:rgba(29,29,27,.65);padding:0 12px}
.photo.has-photo .ph-label{display:none}

/* ---------- Header ---------- */
.topbar{background:var(--vert-fonce);color:#fff;font-size:14px}
.topbar .wrap{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-top:9px;padding-bottom:9px;flex-wrap:wrap}
.topbar a{color:#fff;text-decoration:none;font-weight:600}
.topbar .pill{background:var(--vert);color:var(--noir);border-radius:999px;padding:3px 14px;margin-left:8px}
.header{position:sticky;top:0;z-index:50;background:#fff}
.header .wrap{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-top:16px;padding-bottom:16px}
.logo img{height:54px;width:auto}
.nav{display:flex;gap:34px;font-weight:600;font-size:16px}
.nav a{text-decoration:none;position:relative}
.nav a[aria-current]{color:var(--violet)}
.nav a:hover{color:var(--violet)}
.burger{display:none;width:48px;height:48px;border:0;border-radius:24px 6px 24px 6px;background:var(--violet);color:#fff;align-items:center;justify-content:center;cursor:pointer}

/* ---------- Hero ---------- */
.hero{position:relative;min-height:760px;display:flex;align-items:flex-end;color:#fff;background-color:var(--vert-fonce)}
.hero .photo{position:absolute;inset:0;border-radius:inherit;background-color:#2b4a43}
.hero .photo .ph-label{color:rgba(255,255,255,.55)}
.hero::after{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(180deg,rgba(31,61,55,.05) 30%,rgba(31,61,55,.88) 100%);pointer-events:none}
.hero-content{position:relative;z-index:2;width:100%;padding:0 64px 64px}
.hero h1{font-size:68px;max-width:920px;margin-bottom:22px;letter-spacing:-.01em}
.hero p{max-width:640px;color:rgba(255,255,255,.88);font-size:18px;margin-bottom:34px}
.hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:28px}
.avatars{display:flex;align-items:center;gap:14px;font-size:15px}
.avatars span.dots{display:flex}
.avatars span.dots i{width:44px;height:44px;border-radius:50%;border:3px solid #fff;margin-left:-12px}
.avatars span.dots i:first-child{margin-left:0}
.avatars strong{color:var(--vert);font-size:18px}

/* Badge rotatif */
.badge{position:absolute;z-index:3;width:150px;height:150px;border-radius:50%;background:var(--violet);display:flex;align-items:center;justify-content:center;text-decoration:none}
.badge svg.ring{position:absolute;inset:0;width:100%;height:100%;animation:spin 14s linear infinite}
.badge img{width:46px;height:46px;background:#fff;border-radius:50%;padding:9px}
.hero .badge{right:56px;bottom:56px}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.badge svg.ring{animation:none}.btn:hover{transform:none}}

/* ---------- Sections ---------- */
.section{padding:110px 0}
.panel{background:var(--ecru-clair);padding:100px 0}
.panel-dark{background:var(--vert-fonce);color:#fff;padding:100px 0}
.section-head{max-width:820px;margin:0 auto 56px}
.section-head .lead{margin-top:16px}

/* À propos */
.about-statement{font-size:40px;max-width:980px;margin:0 auto 30px}
.about-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;margin-top:64px}
.about-card{background:var(--ecru-clair);border-radius:var(--radius);padding:44px 30px 36px;text-align:center}
.about-card h3{font-size:21px;margin:26px 0 8px}
.about-card p{color:var(--texte);font-size:16px}

/* Grappe de 4 feuilles (inspirée du symbole) */
.leaves{--size:76px;display:grid;grid-template-columns:var(--size) var(--size);gap:8px;justify-content:center}
.leaves .leaf{width:var(--size);height:var(--size);background-size:calc(var(--size)*2 + 8px) calc(var(--size)*2 + 8px)}
.leaves .leaf:nth-child(1){border-radius:10% 46% 10% 46%;background-color:var(--bleu);background-position:0 0}
.leaves .leaf:nth-child(2){border-radius:46% 10% 46% 10%;background-color:var(--vert);background-position:100% 0;transform:translateY(-14px)}
.leaves .leaf:nth-child(3){border-radius:46% 10% 46% 10%;background-color:var(--violet);background-position:0 100%}
.leaves .leaf:nth-child(4){border-radius:10% 46% 10% 46%;background-color:var(--orange);background-position:100% 100%;transform:translateY(-14px)}
.leaves.lg{--size:120px}

/* Pôles (services) */
.services{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
.service{background:#fff;border-radius:var(--radius);padding:32px 26px;display:flex;flex-direction:column;gap:12px}
.service .ico{width:62px;height:62px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin-bottom:8px}
.service .ico svg{width:28px;height:28px}
.service h3{font-size:21px}
.service p{color:var(--texte);font-size:16px}
.checks{list-style:none;padding:0;margin:4px 0 0;display:flex;flex-direction:column;gap:8px;font-size:15px;font-weight:600}
.checks li{display:flex;gap:10px;align-items:flex-start}
.checks li::before{content:"";flex:none;width:18px;height:18px;margin-top:3px;border-radius:9px 3px 9px 3px;background:var(--vert)}
.service .more{margin-top:auto;padding-top:14px;font-weight:700;text-decoration:none;color:var(--violet);display:inline-flex;gap:6px;align-items:center}
.note{margin-top:42px;text-align:center;font-size:16px;color:var(--texte)}
.note b{background:var(--violet);color:#fff;border-radius:999px;padding:3px 12px;margin-right:8px;font-size:14px}
.note a{color:var(--violet);font-weight:700}

/* Pourquoi nous */
.why-top{display:grid;grid-template-columns:1.1fr 1fr;gap:64px;align-items:end;margin-bottom:56px}
.why-top .checks{font-size:17px;gap:14px}
.why-media{position:relative;border-radius:var(--radius-lg);overflow:hidden}
.why-media .photo{height:560px;background-color:#c9d6cf}
.play{position:absolute;left:50%;top:40%;transform:translate(-50%,-50%);width:96px;height:96px;border-radius:50%;border:0;background:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 0 0 14px rgba(255,255,255,.3)}
.play svg{width:30px;height:30px;fill:var(--violet)}
.why-bar{position:absolute;left:24px;right:24px;bottom:24px;background:rgba(31,61,55,.94);color:#fff;border-radius:var(--radius);padding:28px 32px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
.why-bar div{display:flex;gap:16px}
.why-bar .ico{flex:none;width:52px;height:52px;border-radius:50%;display:flex;align-items:center;justify-content:center}
.why-bar .ico svg{width:24px;height:24px}
.why-bar h3{font-size:18px;margin-bottom:4px}
.why-bar p{font-size:15px;color:rgba(255,255,255,.8)}

/* Chiffres */
.facts{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:start}
.facts .lead{margin:18px 0 32px}
.facts-photos{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.facts-photos .photo{height:220px;border-radius:var(--radius)}
.facts-right{position:relative}
.facts-right .photo{height:380px;border-radius:var(--radius);background-color:#40625a}
.facts-right .photo .ph-label{color:rgba(255,255,255,.6)}
.facts-right .badge{right:-24px;top:-30px;background:var(--vert)}
.facts-right .badge img{background:#fff}
.facts .checks{margin:28px 0 0;color:#fff}
.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:40px;padding-top:32px;border-top:1px solid rgba(255,255,255,.2)}
.stats strong{display:block;font-size:40px;line-height:1;color:#fff}
.stats span{font-size:15px;color:rgba(255,255,255,.8)}

/* Accompagnements */
.what{display:grid;grid-template-columns:.9fr 1.4fr;gap:72px;align-items:start}
.what .lead{margin:18px 0 32px}
.what-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:36px 40px}
.what-item{display:flex;gap:18px}
.what-item .ico{flex:none;width:56px;height:56px;border-radius:var(--leaf);display:flex;align-items:center;justify-content:center}
.what-item .ico svg{width:26px;height:26px}
.what-item h3{font-size:19px;margin-bottom:4px}
.what-item p{color:var(--texte);font-size:15.5px}

/* Établissements */
.places{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.place{background:#fff;border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column}
.place .photo{height:220px}
.place-body{padding:26px 28px 30px;display:flex;flex-direction:column;gap:8px;flex:1}
.place .tag{align-self:flex-start;font-size:13px;font-weight:700;border-radius:999px;padding:3px 12px}
.place h3{font-size:21px}
.place p{color:var(--texte);font-size:15.5px}
.place .more{margin-top:auto;padding-top:10px;font-weight:700;color:var(--violet);text-decoration:none}

/* Admission */
.steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:30px;position:relative}
.step{text-align:center;position:relative}
.step .leaves{--size:70px;margin-bottom:26px}
.step .num{display:inline-block;font-size:13px;font-weight:700;color:var(--violet);background:#F1E4F0;border-radius:999px;padding:2px 12px;margin-bottom:10px}
.step h3{font-size:20px;margin-bottom:8px}
.step p{color:var(--texte);font-size:15.5px}
.step:not(:last-child)::after{content:"";position:absolute;top:66px;right:-30px;width:34px;height:2px;background:repeating-linear-gradient(90deg,var(--violet) 0 6px,transparent 6px 11px)}

/* Équipe */
.team{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.member .photo{height:340px;border-radius:var(--radius)}
.member:nth-child(1) .photo{background-color:#cfe5ed}.member:nth-child(2) .photo{background-color:#e2e9c6}
.member:nth-child(3) .photo{background-color:#f6e0c0}.member:nth-child(4) .photo{background-color:#e7cfe5}
.member h3{font-size:19px;margin-top:18px;text-align:center}
.member p{font-size:15px;color:var(--texte);text-align:center}

/* FAQ */
.faq{display:grid;grid-template-columns:1fr 1.25fr;gap:64px;align-items:start}
.faq .lead{margin:18px 0 32px}
.contact-card{background:var(--vert-fonce);color:#fff;border-radius:var(--radius);overflow:hidden}
.contact-card h3{font-size:20px;padding:20px 28px;background:rgba(255,255,255,.08)}
.contact-card .rows{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:24px 28px}
.contact-card small{display:block;font-size:14px;color:var(--vert);font-weight:700}
.contact-card a{color:#fff;text-decoration:none;font-weight:600;font-size:16px}
.faq-list{display:flex;flex-direction:column;gap:14px}
.faq-item{border:1px solid #E3DDD3;border-radius:18px;overflow:hidden;background:#fff;transition:background .2s}
.faq-q{width:100%;display:flex;justify-content:space-between;align-items:center;gap:16px;background:none;border:0;padding:20px 24px;font:inherit;font-size:17px;font-weight:700;color:inherit;text-align:left;cursor:pointer;min-height:44px}
.faq-q .sign{flex:none;font-size:24px;line-height:1}
.faq-a p{padding:0 24px 22px;font-size:16px;color:rgba(255,255,255,.85)}
.faq-item.is-open{background:var(--vert-fonce);color:#fff;border-color:var(--vert-fonce)}
.faq-item.is-open .faq-q{border-bottom:1px solid rgba(255,255,255,.15);margin-bottom:16px}

/* Témoignages */
.testis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.testi{background:#fff;border-radius:var(--radius);padding:34px;display:flex;flex-direction:column;gap:22px;margin:0}
.testi .stars{display:flex;gap:4px}
.testi .stars i{width:16px;height:16px;border-radius:8px 2px 8px 2px;background:var(--orange)}
.testi blockquote{margin:0;font-size:17px;flex:1}
.testi figcaption{display:flex;align-items:center;gap:14px;font-weight:700;padding-top:20px;border-top:1px solid #ECE7DF}
.testi figcaption i{width:48px;height:48px;border-radius:50%;flex:none}
.testi figcaption small{display:block;font-weight:500;color:var(--texte)}

/* Actualités */
.posts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
.post{text-decoration:none}
.post .photo{height:260px;border-radius:var(--radius);transition:transform .3s}
.post:hover .photo{transform:scale(.98)}
.post .meta{display:block;margin:18px 0 6px;font-size:14px;font-weight:700;color:var(--violet)}
.post h3{font-size:21px;line-height:1.3}
.post .more{display:inline-block;margin-top:12px;font-weight:700;color:var(--violet)}

/* Footer */
.footer{background:var(--vert-fonce);color:#fff;padding:80px 0 0;margin-bottom:20px}
.footer-cta{display:flex;justify-content:space-between;align-items:center;gap:32px;padding-bottom:56px;border-bottom:1px solid rgba(255,255,255,.15);position:relative}
.footer-cta h2{font-size:44px;max-width:780px}
.footer-cta .badge{position:relative;flex:none;background:var(--vert)}
.footer-cols{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:40px;padding:56px 0}
.footer-logo{display:inline-block;background:#fff;border-radius:18px;padding:12px 18px;margin-bottom:18px}
.footer-logo img{height:48px;width:auto}
.footer p,.footer li{font-size:15.5px;color:rgba(255,255,255,.8)}
.footer h3{font-size:18px;margin-bottom:16px}
.footer ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.footer a{text-decoration:none}.footer a:hover{color:var(--vert)}
.footer ul.links li::before{content:"";display:inline-block;width:8px;height:8px;border-radius:4px 1px 4px 1px;background:var(--vert);margin-right:10px}
.socials{display:flex;gap:10px;margin-top:22px}
.socials a{width:42px;height:42px;border:1px solid rgba(255,255,255,.35);border-radius:50%;display:flex;align-items:center;justify-content:center}
.socials svg{width:18px;height:18px}
.footer-bottom{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:24px 0;border-top:1px solid rgba(255,255,255,.15);font-size:14px;color:rgba(255,255,255,.7)}

/* ---------- Responsive ---------- */
@media (max-width:1100px){
  .services{grid-template-columns:repeat(2,minmax(0,1fr))}
  .team{grid-template-columns:repeat(2,minmax(0,1fr))}
  .steps{grid-template-columns:repeat(2,minmax(0,1fr))}
  .step:nth-child(2)::after{display:none}
  .what,.facts,.faq,.why-top{grid-template-columns:1fr;gap:40px}
  .footer-cols{grid-template-columns:1fr 1fr}
}
@media (max-width:980px){
  .burger{display:inline-flex}
  .nav{display:none;position:absolute;left:0;right:0;top:100%;background:#fff;flex-direction:column;gap:0;padding:8px 20px 20px;box-shadow:0 16px 30px rgba(29,29,27,.12)}
  .nav.is-open{display:flex}
  .nav a{padding:14px 0;border-bottom:1px solid var(--ecru)}
  .header-cta{display:none}
  .about-grid,.places,.testis,.posts{grid-template-columns:1fr}
  .why-bar{position:static;grid-template-columns:1fr;border-radius:0}
}
@media (max-width:720px){
  body{font-size:16px}
  .wrap{padding:0 20px}
  .inset{margin:0 10px;border-radius:26px}
  .topbar .hide-sm{display:none}
  .hero{min-height:640px}
  .hero-content{padding:0 24px 40px}
  .hero h1{font-size:40px}
  .hero .badge{display:none}
  .badge img{width:38px;height:38px;padding:7px}
  .h2,.about-statement{font-size:30px}
  .footer-cta{flex-direction:column;align-items:flex-start}
  .footer-cta h2{font-size:30px}
  .section{padding:72px 0}.panel,.panel-dark{padding:72px 0}
  .section-head{margin-bottom:40px}
  .services,.team,.steps,.what-list,.facts-photos,.stats,.footer-cols,.contact-card .rows{grid-template-columns:1fr}
  .step::after{display:none}
  .why-media .photo{height:340px}
  .stats strong{font-size:42px}
  .facts-right .badge{right:10px;top:-40px;width:110px;height:110px}
}
