/* ───────── Groupe Scolaire Oulfa · site design system ─────────
   Bright, photo-led, institutional. Navy and yellow come from the logo.
   Shared by every page: tokens, utility bar, header, footer, buttons, sections, cards, forms, page banner. */

:root {
    color-scheme: light;
    --ink: #0b1c33;
    --navy: #1b3a63;
    --royal: #234a7d;
    --navy-2: #26466b;
    --blue: #3d6a9e;
    --sky: #e9f0f9;
    --mist: #f4f7fb;
    --line: #dfe6ef;
    --text: #1b2a41;
    --muted: #55657d;
    --yellow: #fff200;
    --yellow-deep: #f2d600;
    --white: #fff;

    --radius-s: 10px;
    --radius: 18px;
    --radius-l: 28px;
    --shadow: 0 18px 40px -22px rgba(14, 32, 56, .35);
    --shadow-soft: 0 10px 28px -18px rgba(14, 32, 56, .3);

    --display: "Bricolage Grotesque", "IBM Plex Sans Arabic", system-ui, sans-serif;
    --body: "Plus Jakarta Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;

    --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--body); font-size: 1rem; line-height: 1.65; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.12; letter-spacing: -.015em; margin: 0; }
p { margin: 0; }
a { color: var(--navy-2); }
a, button, summary, label { touch-action: manipulation; }
.gs-ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.gs-wrap { width: min(1220px, 100% - 3rem); margin-inline: auto; }
/* visually hidden, still read by screen readers */
.gs-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.gs-dark :focus-visible { outline-color: #fff; }

/* ── buttons ── */
.gs-btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 50px; padding: .75rem 1.55rem; border: 2px solid transparent; border-radius: 999px; font: 700 .98rem/1.2 var(--body); text-decoration: none; cursor: pointer; transition: background-color .18s, color .18s, border-color .18s, transform .18s; }
.gs-btn:active { transform: translateY(1px); }
.gs-btn-lg { min-height: 58px; padding: 1rem 2.1rem; font-size: 1.05rem; }
.gs-btn-y { background: var(--yellow); color: var(--ink); }
.gs-btn-y:hover { background: #fff; }
.gs-btn-navy { background: var(--navy-2); color: #fff; }
.gs-btn-navy:hover { background: var(--ink); }
.gs-btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.gs-btn-ghost:hover { background: #fff; color: var(--ink); }
.gs-btn-line { border-color: var(--navy-2); color: var(--navy-2); }
.gs-btn-line:hover { background: var(--navy-2); color: #fff; }
.gs-more { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; text-decoration: none; color: var(--navy-2); }
.gs-more .gs-ic { transition: transform .18s; }
.gs-more:hover { color: var(--ink); }
.gs-more:hover .gs-ic { transform: translateX(4px); }

/* ── sections ── */
.gs-sec { padding: clamp(4rem, 8vw, 7rem) 0; }
.gs-soft { background: var(--mist); }
.gs-dark { background: var(--ink); color: rgba(255, 255, 255, .9); }
.gs-dark h2, .gs-dark h3 { color: #fff; }
.gs-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.gs-head h2, .gs-title { font-size: clamp(2.2rem, 4.6vw, 3.5rem); font-weight: 800; max-width: 22ch; text-wrap: balance; }
.gs-head p { max-width: 34rem; color: var(--muted); margin-top: .8rem; }
.gs-empty { padding: 1.6rem; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }

/* ── utility bar + header ── */
.gs-util { background: var(--ink); color: rgba(255, 255, 255, .88); font-size: .85rem; }
.gs-util-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.gs-util ul { display: flex; flex-wrap: wrap; gap: .2rem 1.6rem; margin: 0; padding: 0; list-style: none; }
.gs-util a { display: inline-flex; align-items: center; gap: .45rem; color: inherit; text-decoration: none; padding: .35rem 0; }
.gs-util a:hover { color: var(--yellow); }
.gs-util .gs-ic { width: 1.05em; height: 1.05em; color: var(--yellow); }
.gs-util .gs-soc { padding: .35rem .3rem; }
.gs-util .gs-soc .gs-ic { width: 1.2em; height: 1.2em; color: #fff; }
.gs-util .gs-soc:hover .gs-ic { color: var(--yellow); }

.gs-header { position: sticky; top: 0; z-index: 900; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.gs-header.is-scrolled { box-shadow: 0 10px 28px -16px rgba(14, 32, 56, .35); }
.gs-bar { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.gs-brand { display: flex; align-items: center; gap: .8rem; padding: .4rem 0; color: var(--ink); text-decoration: none; }
.gs-brand img { width: 64px; height: 64px; object-fit: contain; }
.gs-brand b { display: block; font: 800 1.3rem/1.1 var(--display); letter-spacing: -.015em; }
.gs-brand small { display: block; margin-top: .15rem; font-size: .76rem; color: var(--muted); font-weight: 500; }
.gs-collapse { align-items: center; gap: .4rem; }
.gs-nav { display: flex; align-items: center; gap: .2rem; margin: 0; padding: 0; list-style: none; }
.gs-nav a { display: block; padding: .6rem .95rem; border-radius: 999px; color: var(--text); font-size: .95rem; font-weight: 600; text-decoration: none; transition: background-color .16s, color .16s; }
.gs-nav a:hover { background: var(--mist); color: var(--ink); }
.gs-nav a[aria-current="page"] { background: var(--sky); color: var(--ink); }
.gs-cta { margin-left: .8rem; min-height: 46px; padding: .6rem 1.4rem; font-size: .95rem; }
.gs-toggle { display: none; position: relative; width: 48px; height: 48px; background: var(--mist); border: 0; border-radius: 14px; cursor: pointer; }
.gs-toggle span, .gs-toggle span::before, .gs-toggle span::after { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--ink); content: ""; }
.gs-toggle span { top: 23px; }
.gs-toggle span::before { top: -7px; left: 0; right: 0; }
.gs-toggle span::after { top: 7px; left: 0; right: 0; }
@media (min-width: 992px) { .gs-header .gs-collapse { display: flex !important; } }
@media (max-width: 991.98px) {
    .gs-toggle { display: block; }
    .gs-collapse { flex-basis: 100%; padding-bottom: 1.2rem; }
    .gs-nav { flex-direction: column; align-items: stretch; gap: 0; }
    .gs-nav a { padding: .95rem .4rem; border-radius: 0; border-top: 1px solid var(--line); font-size: 1.05rem; }
    .gs-cta { margin: 1rem 0 0; width: 100%; }
}
@media (max-width: 767.98px) { .gs-util .gs-hide-s { display: none; } }
@media (max-width: 575.98px) { .gs-wrap { width: calc(100% - 2rem); } .gs-brand b { font-size: 1.05rem; } .gs-brand small { display: none; } }

/* ── page banner for inner pages ── */
.gs-banner { position: relative; isolation: isolate; color: #fff; padding: clamp(3.5rem, 8vw, 6.5rem) 0; background: url("../images/ellipses.svg") 85% 40% / 1100px auto no-repeat, radial-gradient(80% 140% at 100% 0, var(--royal), transparent 60%), var(--ink); overflow: hidden; }
.gs-banner > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.gs-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 28, 51, .94), rgba(11, 28, 51, .68)); }
.gs-banner:not(:has(> img))::after { display: none; }
.gs-banner h1 { color: #fff; font-size: clamp(2.5rem, 5.8vw, 4.4rem); font-weight: 800; max-width: 18ch; text-wrap: balance; }
.gs-banner p { margin-top: 1rem; max-width: 40rem; font-size: 1.1rem; color: rgba(255, 255, 255, .88); }
.gs-crumbs { display: flex; gap: .5rem; margin: 0 0 1.2rem; padding: 0; list-style: none; font-size: .88rem; color: rgba(255, 255, 255, .8); }
.gs-crumbs a { color: inherit; }
.gs-crumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .6; }

/* ── generic cards and grids ── */
.gs-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.gs-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-soft); }
.gs-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--sky); color: var(--navy-2); }
.gs-ico .gs-ic { width: 26px; height: 26px; }

/* ── forms ── */
.gs-form { display: grid; gap: 1.1rem; }
.gs-form label { display: grid; gap: .4rem; font-size: .9rem; font-weight: 600; color: var(--ink); }
.gs-form input, .gs-form textarea, .gs-form select { width: 100%; padding: .85rem 1rem; font: 500 1rem/1.4 var(--body); color: var(--ink); background: var(--mist); border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .16s, background-color .16s; }
.gs-form input:focus, .gs-form textarea:focus { outline: 0; border-color: var(--navy-2); background: #fff; box-shadow: 0 0 0 4px rgba(38, 70, 107, .16); }
.gs-form textarea { resize: vertical; min-height: 120px; }
.gs-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 575.98px) { .gs-form-row { grid-template-columns: 1fr; } }

/* ── footer ── */
.gs-footer { background: var(--ink); color: rgba(255, 255, 255, .8); }
.gs-foot { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 4rem); padding: clamp(3.5rem, 7vw, 5.5rem) 0 2.6rem; }
.gs-foot-brand img { width: 68px; height: 68px; padding: 6px; background: #fff; border-radius: 50%; object-fit: contain; }
.gs-foot-name { margin: 1.1rem 0 .5rem; font: 700 1.55rem/1.15 var(--display); color: #fff; }
.gs-foot p { max-width: 26rem; }
.gs-foot h3 { margin-bottom: 1rem; font: 700 1rem/1.3 var(--body); color: var(--yellow); letter-spacing: 0; }
.gs-foot ul { margin: 0; padding: 0; list-style: none; }
.gs-foot a { color: inherit; text-decoration: none; display: inline-block; padding: .28rem 0; }
.gs-foot a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.gs-foot-soc { display: flex; gap: .6rem; margin-top: 1.4rem; }
.gs-foot-soc a { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.gs-foot-soc a:hover { background: var(--yellow); color: var(--ink); text-decoration: none; }
.gs-foot dl { margin: 0; display: grid; gap: .9rem; }
.gs-foot dt { font-size: .82rem; color: rgba(255, 255, 255, .62); }
.gs-foot dd { margin: 0; }
.gs-foot-legal { padding: 1.4rem 0 2rem; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .88rem; color: rgba(255, 255, 255, .62); }
@media (max-width: 991.98px) { .gs-foot { grid-template-columns: 1fr 1fr; } .gs-foot-brand { grid-column: 1 / -1; } }
@media (max-width: 575.98px) { .gs-foot { grid-template-columns: 1fr; } }

/* ── floating WhatsApp ── */
.gs-wa { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 899; display: inline-flex; align-items: center; gap: .55rem; min-height: 52px; padding: .7rem 1.2rem; background: #25d366; color: #06301a; border-radius: 999px; font: 700 .95rem/1 var(--body); text-decoration: none; box-shadow: 0 14px 30px -10px rgba(6, 48, 26, .55); transition: transform .18s; }
.gs-wa:hover { transform: translateY(-3px); }
@media (max-width: 575.98px) { .gs-wa { right: 12px; bottom: 12px; padding: .7rem; } .gs-wa span { display: none; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0ms !important; }
}
