/* École Privée L'Étoile de L'Avenir — feuille de style commune */

:root {
  --navy: #14235b;
  --ink: #1b2554;
  --muted: #55608a;
  --gold: #f4b41a;
  --gold-deep: #c98a00;
  --blue: #1f6fd1;
  --green: #2f9443;
  --red: #dd4335;
  --orange: #d9660c;
  --violet: #7a3db0;
  --ice: #f2f6fd;
  --line: #dbe3f3;
  --white: #ffffff;
  --tint-red: #fdeeed;
  --tint-green: #ecf7ee;
  --tint-blue: #eaf2fc;
  --radius: 18px;
  --wrap: 1120px;
  --spectrum: linear-gradient(90deg, var(--red), var(--orange), var(--gold), var(--green), var(--blue), var(--violet));
  --font-display: "Fraunces", "Georgia", "Times New Roman", serif;
  --font-body: "Nunito", "Segoe UI", Tahoma, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.12;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); letter-spacing: -0.025em; line-height: 1.02; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46ch; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
.spectrum { height: 5px; background: var(--spectrum); }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--navy); }
.brand img { width: 44px; height: auto; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1.05; letter-spacing: -0.01em; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .78rem; color: var(--muted); letter-spacing: 0; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a.link { text-decoration: none; color: var(--ink); font-weight: 700; font-size: .98rem; padding: .55rem .8rem; border-radius: 999px; }
.nav a.link:hover { background: var(--ice); color: var(--navy); }
.nav a.link[aria-current="page"] { background: var(--navy); color: #fff; }
.nav-toggle { display: none; background: none; border: 2px solid var(--navy); color: var(--navy); border-radius: 12px; padding: .45rem .75rem; font: 700 .95rem var(--font-body); cursor: pointer; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; text-decoration: none; font: 800 1rem var(--font-body); padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: #0c173f; color: #fff; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #ffc73d; color: var(--navy); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-whatsapp { background: #16803f; color: #fff; }
.btn-whatsapp:hover { background: #0f6631; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ---------- Accueil : héros ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(900px 500px at 85% 20%, var(--ice), transparent 70%), #fff; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding-block: 4.5rem 4rem; position: relative; }
.hero h1 { margin-bottom: .35em; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 0; margin: 2.2rem 0 0; padding: 0; list-style: none; }
.hero-facts li { padding: .2rem .9rem .2rem 0; margin-right: .9rem; border-right: 2px solid var(--line); font-weight: 700; color: var(--navy); font-size: .92rem; white-space: nowrap; }
.hero-facts li:last-child { border-right: 0; }
.hero-logo { position: relative; justify-self: center; }
.hero-logo .card { background: #fff; border-radius: 32px; padding: 1.25rem 1.25rem .75rem; box-shadow: 0 30px 60px -25px rgba(20,35,91,.35), 0 0 0 1px var(--line); width: min(100%, 430px); }
.star { position: absolute; width: var(--s, 26px); height: var(--s, 26px); color: var(--c, var(--gold)); opacity: 0; animation: twinkle .8s ease-out forwards; animation-delay: var(--d, 0s); }
@keyframes twinkle { from { opacity: 0; transform: scale(.2) rotate(-40deg); } to { opacity: 1; transform: scale(1) rotate(0); } }

/* ---------- Manifeste ---------- */
.manifesto { background: var(--navy); color: #fff; padding-block: clamp(3.5rem, 8vw, 6rem); text-align: center; position: relative; }
.manifesto blockquote { margin: 0 auto; max-width: 30ch; font-family: var(--font-display); font-size: clamp(1.7rem, 3.8vw, 2.7rem); line-height: 1.22; font-weight: 500; letter-spacing: -0.01em; }
.manifesto blockquote strong { color: var(--gold); font-weight: 700; }
.manifesto svg { display: block; color: var(--gold); width: 34px; height: 34px; margin: 0 auto 1.5rem; }

/* ---------- Sections ---------- */
section.block { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
section.alt { background: var(--ice); }
.section-head { max-width: 62ch; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* Cycles */
.cycles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.cycle { border-radius: var(--radius); padding: 1.75rem 1.6rem 1.6rem; border-top: 10px solid var(--c); background: var(--t); display: flex; flex-direction: column; }
.cycle h3 { color: var(--c); font-size: 1.6rem; margin-bottom: .3em; }
.cycle p { color: var(--ink); }
.cycle .more { margin-top: auto; font-weight: 800; color: var(--navy); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: .25rem 0 1.25rem; }
.chips li { background: #fff; border: 2px solid var(--c); color: var(--navy); font-weight: 800; font-size: .88rem; padding: .15rem .7rem; border-radius: 999px; }
.c-red { --c: var(--red); --t: var(--tint-red); }
.c-green { --c: var(--green); --t: var(--tint-green); }
.c-blue { --c: var(--blue); --t: var(--tint-blue); }

/* Photo de classe */
.photo-split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.photo { margin: 0; border-radius: 28px; overflow: hidden; box-shadow: 0 24px 50px -30px rgba(20,35,91,.5); position: relative; }
.photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--spectrum); }
.photo img { width: 100%; height: auto; }

/* Atouts */
.points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.25rem 3rem; }
.point { display: grid; grid-template-columns: 34px 1fr; gap: 1rem; }
.point svg { width: 34px; height: 34px; color: var(--c); margin-top: .2rem; }
.point h3 { margin-bottom: .25em; }
.point p { margin: 0; color: var(--muted); }

/* Bandeau d'appel */
.cta-band { background: var(--gold); color: var(--navy); padding-block: 3.25rem; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { margin: 0; max-width: 20ch; }
.cta-band .btn-row { margin: 0; }
.cta-band .btn-outline { border-color: var(--navy); }

/* Contact / carte */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.coords { list-style: none; padding: 0; margin: 0; }
.coords li { display: grid; grid-template-columns: 30px 1fr; gap: .75rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.coords li:last-child { border-bottom: 0; }
.coords svg { width: 26px; height: 26px; color: var(--blue); margin-top: 2px; }
.coords strong { display: block; color: var(--navy); }
.coords a { color: var(--ink); font-weight: 700; }
.map { border: 0; width: 100%; height: 100%; min-height: 340px; border-radius: var(--radius); background: var(--ice); box-shadow: 0 0 0 1px var(--line); }

/* ---------- Pages intérieures ---------- */
.page-hero { background: var(--ice); padding-block: 3.5rem 3rem; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: .3em; }
.page-hero .lead { margin: 0; }
.page-hero .star { opacity: 1; animation: none; }
.prose { max-width: 68ch; }
.prose p { color: var(--ink); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1rem; }
.value { border-radius: var(--radius); padding: 1.6rem; background: var(--t); border-left: 8px solid var(--c); }
.value h3 { color: var(--c); }
.value p { margin: 0; }

.identity { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: center; }
.identity .card { background: #fff; border-radius: 28px; padding: 1.25rem; box-shadow: 0 0 0 1px var(--line), 0 24px 50px -30px rgba(20,35,91,.4); max-width: 340px; justify-self: center; }
.names { list-style: none; padding: 0; margin: 1rem 0 0; }
.names li { padding: .6rem 0; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--navy); }
.names li span { color: var(--muted); font-weight: 600; font-size: .9rem; margin-left: .5rem; }
[lang="ar"] { font-family: "Noto Naskh Arabic", "Segoe UI", Tahoma, Arial, sans-serif; }

/* Cycles détaillés */
.cycle-detail { padding-block: clamp(3rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line); }
.cycle-detail:last-of-type { border-bottom: 0; }
.cycle-detail .two-col { align-items: start; }
.cycle-detail h2 { color: var(--c); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding: .45rem 0 .45rem 2rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .85rem; width: 14px; height: 14px; background: var(--c); clip-path: polygon(50% 0, 62% 35%, 98% 35%, 69% 57%, 80% 91%, 50% 70%, 20% 91%, 31% 57%, 2% 35%, 38% 35%); }
.panel { background: var(--t); border-radius: var(--radius); padding: 1.6rem 1.75rem; border-top: 8px solid var(--c); }
.panel h3 { color: var(--c); }

/* Journée type (une vraie séquence : horaires) */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 4px solid var(--line); margin-left: .5rem; }
.timeline li { position: relative; padding: 0 0 2rem 2rem; }
.timeline li::before { content: ""; position: absolute; left: -12px; top: .35rem; width: 20px; height: 20px; border-radius: 50%; background: var(--c, var(--blue)); border: 4px solid #fff; box-shadow: 0 0 0 2px var(--c, var(--blue)); }
.timeline time { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--navy); margin-bottom: .1rem; }
.timeline h3 { font-size: 1.1rem; margin: 0 0 .2em; font-family: var(--font-body); font-weight: 800; }
.timeline p { margin: 0; color: var(--muted); }
.notice { background: var(--tint-blue); border-left: 8px solid var(--blue); padding: 1.25rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0; margin-top: 1.5rem; }
.notice p { margin: 0; }

/* Étapes d'inscription (séquence réelle) */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 1rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 1.1rem; padding: 1.25rem 1.4rem; background: #fff; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--c); color: #fff; font: 700 1.5rem var(--font-display); }
.steps h3 { margin: 0 0 .15em; font-size: 1.15rem; font-family: var(--font-body); font-weight: 800; }
.steps p { margin: 0; color: var(--muted); }
.steps li:nth-child(1) { --c: var(--red); }
.steps li:nth-child(2) { --c: var(--orange); }
.steps li:nth-child(3) { --c: var(--green); }
.steps li:nth-child(4) { --c: var(--blue); }

/* Formulaire */
.form { background: #fff; border-radius: var(--radius); padding: 1.75rem; box-shadow: 0 0 0 1px var(--line), 0 24px 50px -32px rgba(20,35,91,.35); }
.form h2 { font-size: 1.6rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 800; color: var(--navy); margin-bottom: .3rem; font-size: .95rem; }
.field input, .field select, .field textarea { width: 100%; font: 600 1rem var(--font-body); color: var(--ink); padding: .75rem .9rem; border: 2px solid var(--line); border-radius: 12px; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 4px rgba(31,111,209,.15); }
.field textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: .9rem; color: var(--muted); margin-top: 1rem; }
.form-error { color: var(--red); font-weight: 700; min-height: 1.4em; margin: 0 0 .5rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 800; color: var(--navy); font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 700 1.6rem/1 var(--font-display); color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .75rem 0 0; color: var(--muted); max-width: 66ch; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy); color: #d8def5; padding-block: 3.5rem 1.5rem; }
.site-footer a { color: #fff; text-decoration-color: rgba(255,255,255,.35); }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2.5rem; }
.footer-brand [lang="ar"] { text-align: left; font-size: 1.2rem; }
.footer-brand img { width: 150px; background: #fff; padding: 8px; border-radius: 16px; margin-bottom: 1rem; }
.site-footer h3 { color: #fff; font-family: var(--font-body); font-size: 1rem; font-weight: 800; margin-bottom: .75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: .2rem 0; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.18); font-size: .9rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap, .split, .two-col, .identity, .photo-split { grid-template-columns: 1fr; gap: 2rem; }
  .hero .wrap { padding-block: 3rem; }
  .hero-logo { order: -1; }
  .hero-logo .card { width: min(72%, 300px); }
  .cycles, .values { grid-template-columns: 1fr; }
  .points { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
  .nav-toggle { display: inline-block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: .75rem 1.25rem 1.25rem; gap: .25rem; display: none; }
  .nav.open { display: flex; }
  .nav a.link { padding: .8rem 1rem; }
  .nav .btn { margin-top: .5rem; }
  .site-header .wrap { position: relative; }
}
@media (max-width: 520px) {
  body { font-size: 1rem; }
  .hero-facts li { border-right: 0; margin-right: 0; padding-right: 1rem; white-space: normal; }
  .brand-name { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .star { animation: none; opacity: 1; }
  .btn { transition: none; }
}

/* ---------- Ajouts mission 2 ---------- */
.wa-float { position: fixed; right: max(1rem, env(safe-area-inset-right, 0px)); bottom: max(1rem, env(safe-area-inset-bottom, 0px)); z-index: 60; display: inline-flex; align-items: center; gap: .55rem; background: #16803f; color: #fff; text-decoration: none; font: 800 .98rem var(--font-body); padding: .8rem 1.15rem .8rem .95rem; border-radius: 999px; box-shadow: 0 10px 28px -8px rgba(0,0,0,.45); min-height: 48px; }
.wa-float:hover { background: #0f6631; color: #fff; }
.wa-float svg { width: 26px; height: 26px; flex: none; }
@media (max-width: 520px) { .wa-float span { display: none; } .wa-float { padding: .85rem; } }

.hero-kicker { font-family: var(--font-body); font-weight: 700; color: var(--muted); font-size: 1.05rem; margin: 0 0 1rem; }

.manifesto .kicker { font-family: var(--font-display); font-size: 1.15rem; color: var(--gold); margin: 0 0 1.1rem; font-weight: 700; }

.steps-inline { list-style: none; counter-reset: st; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.steps-inline li { counter-increment: st; position: relative; padding: 1.1rem 1.1rem 1.2rem; border-radius: var(--radius); background: #fff; box-shadow: 0 0 0 1px var(--line); }
.steps-inline li::before { content: counter(st); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c); color: #fff; font: 700 1.25rem var(--font-display); margin-bottom: .6rem; }
.steps-inline h3 { font-family: var(--font-body); font-weight: 800; font-size: 1.05rem; margin: 0 0 .2em; }
.steps-inline p { margin: 0; color: var(--muted); font-size: .95rem; }
.steps-inline li:nth-child(1) { --c: var(--red); }
.steps-inline li:nth-child(2) { --c: var(--orange); }
.steps-inline li:nth-child(3) { --c: var(--green); }
.steps-inline li:nth-child(4) { --c: var(--blue); }
@media (max-width: 900px) { .steps-inline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps-inline { grid-template-columns: 1fr; } }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line); background: #fff; }
.gallery figure.wide { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.gallery figcaption { padding: .7rem 1rem; font-weight: 700; color: var(--navy); font-size: .95rem; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr; } .gallery figure.wide { grid-column: auto; } }

.quote-block { margin: 0; padding: 1.5rem 1.75rem; background: var(--tint-blue); border-left: 8px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.4; color: var(--navy); }
.quote-block cite { display: block; margin-top: .75rem; font: 700 .95rem var(--font-body); color: var(--muted); font-style: normal; }

.days { display: inline-block; background: var(--navy); color: #fff; font-weight: 800; padding: .3rem .9rem; border-radius: 999px; font-size: .95rem; margin-bottom: 1rem; }

.legal h2 { font-size: 1.5rem; margin-top: 2rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .4rem; }
.not-found { text-align: center; padding-block: 5rem; }
.not-found img { width: 180px; margin: 0 auto 1.5rem; }
