/* ==========================================================================
   Skylark Academy — stylesheet
   ========================================================================== */

:root {
  --paper:      #f5f8fa;
  --sand:       #e6eef4;
  --sand-deep:  #ccdce7;
  --ink:        #0f2436;
  --ink-soft:   #52687a;
  --brand:      #1b4965;
  --brand-dark: #0f2f44;
  --brand-tint: #dceaf3;
  --accent:     #e09132;
  --accent-ink: #8f5512;   /* amber lisible sur fond clair */
  --accent-tint:#fbead3;
  --white:      #ffffff;

  --radius:     18px;
  --radius-sm:  10px;
  --shadow:     0 1px 2px rgba(28, 36, 48, .06), 0 12px 32px rgba(28, 36, 48, .08);
  --shadow-lg:  0 2px 4px rgba(28, 36, 48, .06), 0 28px 60px rgba(28, 36, 48, .14);

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body:    "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1120px;
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.9rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -.015em; }
h3 { font-size: 1.22rem; }
p  { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: .35em; }

.wrap { width: min(var(--wrap), 100% - 3rem); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--sand { background: var(--sand); }
.section--brand { background: var(--brand); color: var(--white); }
.section--brand h2, .section--brand h3 { color: var(--white); }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: .7rem 1.2rem; z-index: 100; border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* --- Eyebrow / lead ------------------------------------------------------- */
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand); margin-bottom: .9rem;
}
.section--brand .eyebrow,
.hero .eyebrow { color: #93c6e4; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }
.section--brand .lead { color: #cfe2ef; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--body); font-weight: 700; font-size: .95rem;
  text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, color .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: var(--ink); }
.btn--primary:hover { background: #c87d22; }
.btn--ghost { border-color: currentColor; color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.15); }
.btn--outline { border-color: var(--brand); color: var(--brand); }
.btn--outline:hover { background: var(--brand); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 251, 247, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sand-deep);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: .9rem 0; position: relative; }
.logo { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.logo svg { flex: none; }
.logo b { font-family: var(--display); font-size: 1.22rem; display: block; line-height: 1.1; }
.logo span { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.nav-links { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav-links li { margin: 0; }
.nav-links a {
  display: block; padding: .5rem .95rem; border-radius: 999px;
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem;
}
.nav-links a:hover { background: var(--sand); }
.nav-links a[aria-current="page"] { background: var(--brand-tint); color: var(--brand-dark); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--sand-deep); border-radius: var(--radius-sm);
  padding: .45rem .7rem; cursor: pointer; font-size: 1.1rem; color: var(--ink);
}

/* --- Hero ----------------------------------------------------------------- */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; background: var(--brand-dark); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(8,28,44,.95) 0%, rgba(8,28,44,.82) 48%, rgba(8,28,44,.52) 100%);
}
.hero__inner { padding: clamp(4rem, 11vw, 8rem) 0; max-width: 42rem; }
.hero h1 { color: #fff; }
.hero p { color: #d5e4ef; font-size: 1.2rem; max-width: 46ch; }
.hero--small .hero__inner { padding: clamp(3rem, 7vw, 5rem) 0; }
.hero .slogan {
  font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2rem); color: #fff;
  letter-spacing: .02em; margin: -.3em 0 .8em;
}

/* --- Logo block (home page) ----------------------------------------------- */
.logo-block { display: grid; place-items: center; padding: clamp(1.5rem, 4vw, 3rem); }
.logo-block svg { max-width: 290px; filter: drop-shadow(0 18px 40px rgba(28, 36, 48, .22)); }

/* --- Rules ---------------------------------------------------------------- */
.rules { list-style: none; padding: 0; margin: 0; }
.rules li { display: flex; gap: .9rem; align-items: flex-start; padding: .85rem 0;
  border-bottom: 1px dashed var(--sand-deep); margin: 0; }
.rules li:last-child { border-bottom: none; }
.rules .mark { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid;
  place-items: center; font-size: .85rem; font-weight: 700; color: #fff; margin-top: .15rem; }
.rules .yes .mark { background: #2f7d55; }
.rules .no  .mark { background: #b4452c; }
.rules .must .mark { background: var(--brand); }
.rule-col { background: var(--white); border: 1px solid var(--sand-deep);
  border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.rule-col h3 { display: flex; align-items: center; gap: .6rem; }

/* --- Stats ---------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--sand-deep);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  margin-top: -3.2rem; position: relative; z-index: 2; }
.stats div { background: var(--white); padding: 1.6rem 1.2rem; text-align: center; }
.stats b { display: block; font-family: var(--display); font-size: 2rem; color: var(--brand); line-height: 1; }
.stats span { font-size: .85rem; color: var(--ink-soft); }

/* --- Generic grid --------------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* --- Cards ---------------------------------------------------------------- */
.card {
  background: var(--white); border: 1px solid var(--sand-deep); border-radius: var(--radius);
  padding: 1.7rem; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand-dark); font-size: 1.35rem; margin-bottom: 1rem;
}
.card__icon--accent { background: var(--accent-tint); color: var(--accent-ink); }
.card small { color: var(--ink-soft); font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; font-size: .72rem; }

.photo-card { background: var(--white); border: 1px solid var(--sand-deep); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.photo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.photo-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--sand-deep); }
.photo-card__body { padding: 1.3rem 1.4rem 1.5rem; }
.photo-card h3 { margin-bottom: .35rem; }
.photo-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* --- Split (text + image) ------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--flip .split__text { order: 2; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3; object-fit: cover; width: 100%; background: var(--sand-deep); }

/* --- Timetable ------------------------------------------------------------ */
.timetable { width: 100%; border-collapse: collapse; background: var(--white);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: .95rem; }
.timetable th, .timetable td { padding: .85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--sand-deep); }
.timetable thead th { background: var(--brand); color: #fff; font-size: .8rem;
  letter-spacing: .08em; text-transform: uppercase; }
.timetable tbody tr:last-child td { border-bottom: none; }
.timetable tbody tr:nth-child(even) { background: #faf7f1; }
.timetable td:first-child { font-weight: 700; white-space: nowrap; color: var(--brand-dark); }
.table-scroll { overflow-x: auto; }

/* --- Reviews -------------------------------------------------------------- */
.review { background: var(--white); border: 1px solid var(--sand-deep); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.stars { color: #e5a53a; letter-spacing: .12em; font-size: 1rem; margin-bottom: .8rem; }
.review blockquote { margin: 0 0 1.4rem; font-size: 1.03rem; }
.review__person { display: flex; align-items: center; gap: .85rem; margin-top: auto; }
.review__person img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; background: var(--sand-deep); }
.review__person b { display: block; font-size: .95rem; }
.review__person span { font-size: .82rem; color: var(--ink-soft); }

.rating-box { display: flex; flex-wrap: wrap; align-items: center; gap: 2rem;
  background: var(--white); border: 1px solid var(--sand-deep); border-radius: var(--radius);
  padding: 1.8rem 2rem; box-shadow: var(--shadow); }
.rating-box__score { font-family: var(--display); font-size: 3.4rem; line-height: 1; color: var(--brand); }
.bars { flex: 1 1 260px; min-width: 240px; }
.bar { display: flex; align-items: center; gap: .7rem; font-size: .85rem; color: var(--ink-soft); margin-bottom: .4rem; }
.bar__track { flex: 1; height: 8px; border-radius: 999px; background: var(--sand-deep); overflow: hidden; }
.bar__fill { display: block; height: 100%; background: var(--brand); border-radius: 999px; }

/* --- FAQ ------------------------------------------------------------------ */
.faq { max-width: 50rem; margin-inline: auto; }
.faq details {
  background: var(--white); border: 1px solid var(--sand-deep); border-radius: var(--radius-sm);
  margin-bottom: .8rem; overflow: hidden;
}
.faq details[open] { border-color: var(--brand); box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 3rem 1.1rem 1.3rem;
  font-weight: 700; position: relative; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--brand);
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { background: #faf7f1; }
.faq__answer { padding: 0 1.3rem 1.3rem; color: var(--ink-soft); }
.faq__answer p:last-child { margin-bottom: 0; }

/* --- Forms ---------------------------------------------------------------- */
.form { background: var(--white); border: 1px solid var(--sand-deep); border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.3rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .9rem; font: inherit; font-size: .95rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--sand-deep); border-radius: var(--radius-sm);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-tint); }
.field textarea { min-height: 130px; resize: vertical; }
.form__note { font-size: .82rem; color: var(--ink-soft); margin: .9rem 0 0; }
.form-status { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: var(--radius-sm);
  background: var(--brand-tint); color: var(--brand-dark); font-weight: 600; font-size: .92rem; }
.form-status[hidden] { display: none; }

/* --- Contact details ------------------------------------------------------ */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--sand-deep); margin: 0; }
.contact-list li:last-child { border-bottom: none; }
.contact-list .ci { font-size: 1.3rem; }
.contact-list b { display: block; font-size: .95rem; }
.contact-list span, .contact-list a { font-size: .95rem; color: var(--ink-soft); text-decoration: none; }
.contact-list a:hover { color: var(--brand); text-decoration: underline; }

/* --- Gallery -------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; position: relative; box-shadow: var(--shadow); }
.gallery img { aspect-ratio: 1; object-fit: cover; width: 100%; background: var(--sand-deep); transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.8rem .85rem .7rem; color: #fff; font-size: .82rem; font-weight: 600;
  background: linear-gradient(to top, rgba(12,30,28,.88), transparent);
}
.gallery--tall figure:first-child { grid-row: span 2; grid-column: span 2; }
.gallery--tall figure:first-child img { aspect-ratio: auto; height: 100%; }

/* --- Events --------------------------------------------------------------- */
.event { display: flex; gap: 1.2rem; align-items: flex-start; background: var(--white);
  border: 1px solid var(--sand-deep); border-radius: var(--radius); padding: 1.3rem 1.5rem; box-shadow: var(--shadow); }
.event__date { flex: none; width: 64px; text-align: center; background: var(--brand-tint);
  border-radius: var(--radius-sm); padding: .5rem 0; color: var(--brand-dark); }
.event__date b { display: block; font-family: var(--display); font-size: 1.5rem; line-height: 1; }
.event__date span { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.event h3 { margin-bottom: .2rem; font-size: 1.08rem; }
.event p { margin: 0; font-size: .92rem; color: var(--ink-soft); }

/* --- Staff ---------------------------------------------------------------- */
.staff { text-align: center; }
.staff img { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; margin: 0 auto .9rem;
  border: 4px solid var(--white); box-shadow: var(--shadow); background: var(--sand-deep); }
.staff h3 { margin-bottom: .1rem; font-size: 1.08rem; }
.staff small { display: block; color: var(--accent-ink); font-weight: 700; font-size: .8rem;
  letter-spacing: .05em; margin-bottom: .6rem; }
.staff p { font-size: .92rem; color: var(--ink-soft); margin: 0; }

/* --- Chips ---------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; }
.chips li { margin: 0; background: var(--white); border: 1px solid var(--sand-deep);
  border-radius: 999px; padding: .4rem 1rem; font-size: .88rem; font-weight: 600; }

/* --- CTA band ------------------------------------------------------------- */
.cta { text-align: center; }
.cta h2 { max-width: 20ch; margin-inline: auto; }
.cta .btn-row { justify-content: center; }

/* --- Footer --------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #b9c3cd; padding: 3.5rem 0 2rem; font-size: .93rem; }
.site-footer h4 { color: #fff; font-family: var(--body); font-size: .8rem; letter-spacing: .13em;
  text-transform: uppercase; margin-bottom: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer a { color: #b9c3cd; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-logo { display: flex; align-items: center; gap: .6rem; color: #fff; margin-bottom: 1rem; }
.footer-logo b { font-family: var(--display); font-size: 1.15rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #2e3a47;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .85rem; }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--sand-deep);
    padding: .6rem 0 1.2rem; gap: .2rem; box-shadow: var(--shadow);
  }
  .nav-links[hidden] { display: none; }
  .nav-links a { padding: .75rem 1rem; }
  .split, .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .split--flip .split__text { order: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery--tall figure:first-child { grid-row: span 1; grid-column: span 2; }
  .stats { margin-top: 0; border-radius: var(--radius); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
