/*
Theme Name: Azzahra
Theme URI: https://gshightech.com
Author: Groupe Scolaire High-Tech Azzahra
Description: Thème coloré et dynamique pour le Groupe Scolaire High-Tech Azzahra (Rabat Souissi) — de la maternelle au lycée.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: azzahra
*/

/* ---------- Variables ---------- */
:root {
  --violet: #1846c4;
  --violet-dark: #0f2f8f;
  --rose: #2e9b16;
  --orange: #a87a00;
  --jaune: #ffd60a;
  --turquoise: #0e8fd6;
  --bleu: #3a63d8;
  --ink: #0b1d4f;
  --muted: #4f5a73;
  --bg: #fffbf5;
  --card: #ffffff;
  --line: #e2e9f8;
  --radius: 22px;
  --shadow: 0 18px 40px -18px rgba(24, 70, 196, .35);
  --grad: linear-gradient(120deg, var(--violet) 0%, #1f6fb8 50%, #23800f 100%);
  --font-title: "Baloo 2", "Trebuchet MS", sans-serif;
  --font-body: "Nunito", "Segoe UI", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-decoration: none; }
a:hover { color: var(--rose); }
h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 1000; }
.skip-link:focus { left: 8px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
:focus-visible { outline: 3px solid var(--jaune); outline-offset: 3px; border-radius: 6px; }

.text-grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-title); font-weight: 700; font-size: 1.05rem;
  padding: .8em 1.5em; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--grad); color: #fff;
  box-shadow: 0 10px 24px -10px rgba(24, 70, 196, .7);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(24, 70, 196, .8); }
.btn-ghost { background: #fff; color: var(--violet); box-shadow: inset 0 0 0 2px var(--violet); }
.btn-ghost:hover { color: var(--violet-dark); background: #eef3ff; box-shadow: inset 0 0 0 2px var(--violet-dark); }
.btn-white { background: #fff; color: var(--violet); box-shadow: 0 10px 24px -12px rgba(0,0,0,.4); }
.btn-white:hover { color: var(--rose); }
.btn-small { padding: .55em 1.15em; font-size: .95rem; }
.btn svg { width: 1.1em; height: 1.1em; }

/* ---------- Barre du haut ---------- */
.topbar { background: var(--ink); color: #d3dcf5; font-size: .86rem; }
.topbar .container { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: space-between; padding: 7px 0; }
.topbar a { color: #fff; }
.topbar a:hover { color: var(--jaune); }
.topbar-left { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 15px; height: 15px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 251, 245, .9);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 30px -18px rgba(11, 29, 79, .45); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 48px; height: 48px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text small { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.brand-text strong { font-family: var(--font-title); font-size: 1.35rem; font-weight: 800; }
.brand-logo { height: 62px; width: auto; flex: none; display: block; }
.site-footer .brand-logo { height: 74px; background: #fff; border-radius: 16px; padding: 6px 8px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  font-weight: 700; color: var(--ink); font-size: .98rem;
}
.main-nav a:hover, .main-nav .current-menu-item > a { background: #e8efff; color: var(--violet); }
.main-nav .sub-menu { display: none; }
.menu-toggle {
  display: none; align-items: center; gap: 8px;
  background: #e8efff; color: var(--violet); border: 0; border-radius: 999px;
  padding: 10px 16px; font: 700 .95rem var(--font-body); cursor: pointer;
}
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: .2s;
}
.menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle .bars::before { top: -6px; }
.menu-toggle .bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.eyebrow {
  display: inline-block; font-family: var(--font-title); font-weight: 700;
  font-size: .9rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px; margin-bottom: 14px;
  background: #e8efff; color: var(--violet);
}
.eyebrow.rose { background: #e3f5dc; color: #1f7a0c; }
.eyebrow.orange { background: #fff6c2; color: #7a5a00; }
.eyebrow.turquoise { background: #dff1fb; color: #0a6aa0; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 90px) 0 clamp(70px, 9vw, 120px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; position: relative; z-index: 2; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.hero-tags li {
  font-weight: 700; font-size: .9rem; padding: 6px 14px; border-radius: 999px; background: #fff;
  box-shadow: 0 6px 18px -10px rgba(11,29,79,.4);
}
.hero-tags li:nth-child(1) { color: var(--violet); }
.hero-tags li:nth-child(2) { color: var(--rose); }
.hero-tags li:nth-child(3) { color: var(--orange); }
.hero-tags li:nth-child(4) { color: var(--turquoise); }

.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; z-index: 0; }
.blob-1 { width: 420px; height: 420px; background: var(--rose); top: -120px; right: -80px; }
.blob-2 { width: 360px; height: 360px; background: var(--jaune); bottom: -140px; left: -100px; }
.blob-3 { width: 300px; height: 300px; background: var(--turquoise); top: 40%; left: 45%; opacity: .25; }

.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 480px; margin-inline: auto; width: 100%; }
.hero-visual .ring {
  position: absolute; inset: 6%; border-radius: 42% 58% 55% 45% / 50% 45% 55% 50%;
  background: var(--grad); animation: morph 12s ease-in-out infinite;
  box-shadow: var(--shadow);
}
.hero-visual .ring.has-img { background-size: cover; background-position: center; }
.hero-visual .ring-inner {
  position: absolute; inset: 0; display: grid; place-items: center; color: #fff; text-align: center; padding: 18%;
}
.hero-visual .ring-inner svg { width: 70%; height: auto; }
.float-card {
  position: absolute; background: #fff; border-radius: 18px; padding: 12px 16px;
  box-shadow: 0 16px 30px -14px rgba(11,29,79,.45);
  display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .95rem;
  animation: floaty 6s ease-in-out infinite;
}
.float-card .dot { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.float-card .dot svg { width: 20px; height: 20px; }
.float-card small { display: block; font-weight: 600; color: var(--muted); font-size: .78rem; }
.fc-1 { top: 4%; left: -4%; }
.fc-1 .dot { background: var(--turquoise); }
.fc-2 { bottom: 10%; right: -6%; animation-delay: -2s; }
.fc-2 .dot { background: var(--orange); }
.fc-3 { bottom: -2%; left: 6%; animation-delay: -4s; }
.fc-3 .dot { background: var(--violet); }

@keyframes morph {
  0%, 100% { border-radius: 42% 58% 55% 45% / 50% 45% 55% 50%; }
  50% { border-radius: 58% 42% 45% 55% / 45% 58% 42% 55%; }
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Chiffres ---------- */
.stats { margin-top: -50px; position: relative; z-index: 3; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.stat { padding: 26px 22px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-title); font-size: 2.4rem; font-weight: 800; line-height: 1; margin-bottom: 6px; }
.stat:nth-child(1) strong { color: var(--violet); }
.stat:nth-child(2) strong { color: var(--rose); }
.stat:nth-child(3) strong { color: var(--orange); }
.stat:nth-child(4) strong { color: var(--turquoise); }
.stat span { color: var(--muted); font-weight: 600; font-size: .95rem; }

/* ---------- Parcours (cycles) ---------- */
.cycles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cycle {
  position: relative; background: #fff; border-radius: var(--radius); padding: 30px 24px 26px;
  box-shadow: 0 12px 30px -20px rgba(11,29,79,.5); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.cycle:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cycle::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--c, var(--violet)); }
.cycle .icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--c, var(--violet)); color: #fff; margin-bottom: 18px; }
.cycle .icon svg { width: 28px; height: 28px; }
.cycle .age { font-size: .85rem; font-weight: 700; color: var(--c, var(--violet)); text-transform: uppercase; letter-spacing: .06em; }
.cycle p { color: var(--muted); font-size: .98rem; }
.cycle ul { margin: 0; padding: 0; list-style: none; font-size: .93rem; }
.cycle li { padding: 4px 0 4px 22px; position: relative; }
.cycle li::before { content: ""; position: absolute; left: 0; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--violet)); opacity: .8; }
.c-violet { --c: var(--violet); }
.c-rose { --c: var(--rose); }
.c-orange { --c: var(--orange); }
.c-turquoise { --c: var(--turquoise); }

/* ---------- Pédagogie ---------- */
.pedago { background: var(--ink); color: #e4eaf7; overflow: hidden; }
.pedago h2, .pedago h3 { color: #fff; }
.pedago .blob { opacity: .35; }
.pedago-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 2; }
.pedago-quote {
  font-family: var(--font-title); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.25; font-weight: 700; color: #fff;
  border-left: 6px solid var(--jaune); padding-left: 22px; margin: 0 0 24px;
}
.pedago-quote span { display: block; }
.pedago-quote span:nth-child(2) { color: var(--jaune); }
.pedago-quote span:nth-child(3) { color: #9be37f; }
.pedago-quote span:nth-child(4) { color: #8fd0ff; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.value {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px; padding: 22px;
}
.value .icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 12px; color: var(--ink); }
.value .icon svg { width: 24px; height: 24px; }
.value:nth-child(1) .icon { background: var(--jaune); }
.value:nth-child(2) .icon { background: #9be37f; }
.value:nth-child(3) .icon { background: #8fd0ff; }
.value:nth-child(4) .icon { background: #a9bfff; }
.value h3 { font-size: 1.15rem; margin-bottom: 4px; }
.value p { margin: 0; font-size: .93rem; color: #c3cde6; }

/* ---------- Vie scolaire ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  display: flex; gap: 18px; align-items: flex-start;
  background: #fff; border-radius: var(--radius); padding: 24px;
  box-shadow: 0 12px 30px -22px rgba(11,29,79,.5);
  transition: transform .25s ease;
}
.service:hover { transform: translateY(-4px); }
.service .icon { flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #fff; }
.service .icon svg { width: 26px; height: 26px; }
.service h3 { font-size: 1.15rem; margin-bottom: 4px; }
.service p { margin: 0; color: var(--muted); font-size: .95rem; }
.service:nth-child(6n+1) .icon { background: var(--violet); }
.service:nth-child(6n+2) .icon { background: var(--rose); }
.service:nth-child(6n+3) .icon { background: var(--orange); }
.service:nth-child(6n+4) .icon { background: var(--turquoise); }
.service:nth-child(6n+5) .icon { background: var(--bleu); }
.service:nth-child(6n+6) .icon { background: #c99a00; }

/* ---------- Réussites ---------- */
.success { background: linear-gradient(180deg, #fff 0%, #fffbe0 100%); }
.success-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-template-rows: auto auto; gap: 22px; }
.trophy {
  border-radius: var(--radius); padding: 28px; color: #fff; position: relative; overflow: hidden;
  min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end;
}
.trophy::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.14); top: -50px; right: -50px; }
.trophy h3 { color: #fff; margin-bottom: 6px; }
.trophy p { margin: 0; opacity: .92; font-size: .95rem; }
.trophy .big { font-family: var(--font-title); font-weight: 800; font-size: clamp(3rem, 6vw, 4.6rem); line-height: 1; }
.trophy.t-main { grid-row: span 2; background: var(--grad); }
.trophy.t-2 { background: linear-gradient(135deg, #0e8fd6, #1846c4); }
.trophy.t-3 { background: linear-gradient(135deg, #f5c400, #ffe14d); color: #3b2f00; }
.trophy.t-3 h3 { color: #3b2f00; }
.trophy.t-4 { background: linear-gradient(135deg, #0f2f8f, #1846c4); }
.trophy.t-5 { background: linear-gradient(135deg, #23800f, #4fae1e); }
.trophy .badge { position: absolute; top: 22px; left: 26px; width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,.22); display: grid; place-items: center; }
.trophy .badge svg { width: 24px; height: 24px; }

/* ---------- Actualités ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 12px 30px -22px rgba(11,29,79,.55);
  display: flex; flex-direction: column; transition: transform .25s ease;
}
.news-card:hover { transform: translateY(-5px); }
.news-thumb { aspect-ratio: 16 / 10; background: var(--grad); display: grid; place-items: center; color: #fff; overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-thumb svg { width: 54px; height: 54px; opacity: .9; }
.news-card:nth-child(3n+2) .news-thumb { background: linear-gradient(135deg, #0e8fd6, #1846c4); }
.news-card:nth-child(3n+3) .news-thumb { background: linear-gradient(135deg, #f5c400, #ffe14d); }
.news-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.news-date { font-size: .82rem; font-weight: 700; color: var(--rose); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.news-body h3 { font-size: 1.2rem; }
.news-body h3 a { color: var(--ink); }
.news-body h3 a:hover { color: var(--violet); }
.news-body p { color: var(--muted); font-size: .95rem; flex: 1; }
.news-more { font-weight: 700; }
.center { text-align: center; margin-top: 40px; }

/* ---------- Espace EduPage ---------- */
.portal {
  background: var(--grad); border-radius: 32px; padding: clamp(32px, 5vw, 56px);
  color: #fff; display: grid; grid-template-columns: 1.2fr 1fr; gap: 34px; align-items: center;
  position: relative; overflow: hidden;
}
.portal::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: rgba(255,255,255,.1); right: -100px; bottom: -160px; }
.portal h2 { color: #fff; }
.portal p { opacity: .95; }
.portal-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; }
.portal-list li {
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); border-radius: 16px;
  padding: 14px 16px; font-weight: 700; display: flex; align-items: center; gap: 10px;
}
.portal-list svg { width: 20px; height: 20px; flex: none; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; align-items: stretch; }
.contact-card { background: #fff; border-radius: var(--radius); padding: 34px; box-shadow: 0 12px 30px -22px rgba(11,29,79,.55); }
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.contact-item:last-of-type { border-bottom: 0; }
.contact-item .icon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.contact-item .icon svg { width: 22px; height: 22px; }
.contact-item:nth-of-type(1) .icon { background: var(--violet); }
.contact-item:nth-of-type(2) .icon { background: var(--rose); }
.contact-item:nth-of-type(3) .icon { background: var(--orange); }
.contact-item strong { display: block; font-family: var(--font-title); font-size: 1.1rem; }
.contact-item span, .contact-item a { color: var(--muted); }
.contact-item a:hover { color: var(--violet); }
.contact-card .btn { margin-top: 18px; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 380px; box-shadow: 0 12px 30px -22px rgba(11,29,79,.55); background: #eee; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: #c3cde6; padding: 70px 0 0; margin-top: 0; position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--grad); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: 1.1rem; margin-bottom: 14px; }
.site-footer a { color: #e4eaf7; }
.site-footer a:hover { color: var(--jaune); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 4px 0; }
.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text small { color: #9fb0d6; }
.footer-brand p { margin-top: 16px; font-size: .95rem; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.1); }
.socials a:hover { background: var(--rose); color: #fff; }
.socials svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 50px; padding: 20px 0; font-size: .88rem; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }

/* ---------- Pages internes ---------- */
.page-hero { background: var(--grad); color: #fff; padding: clamp(50px, 7vw, 90px) 0; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.12); right: -80px; top: -120px; }
.page-hero h1 { color: #fff; margin: 0; position: relative; z-index: 1; }
.page-hero .meta { opacity: .9; margin-top: 10px; font-weight: 700; position: relative; z-index: 1; }
.entry { padding: 60px 0 90px; }
.entry-content { max-width: 780px; margin-inline: auto; background: #fff; border-radius: var(--radius); padding: clamp(24px, 5vw, 50px); box-shadow: 0 12px 30px -22px rgba(11,29,79,.55); }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2 { font-size: 1.8rem; margin-top: 1.4em; }
.entry-content h3 { margin-top: 1.2em; }
.entry-content img { border-radius: 16px; }
.entry-content blockquote { border-left: 5px solid var(--rose); margin: 1.5em 0; padding: .5em 1.2em; background: #f2f9ee; border-radius: 0 14px 14px 0; }
.entry-content .wp-block-image, .entry-content figure { margin: 1.5em 0; }
.entry-content .alignwide, .entry-content .alignfull { margin-inline: 0; }
.entry-content p[dir="rtl"] { font-size: 1.08em; }
.entry-content iframe { max-width: 100%; border-radius: 16px; }
.azz-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 1.8em 0 0; }
.azz-gallery a { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 1 / 1; background: #e8efff; }
.azz-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; transition: transform .3s ease; }
.azz-gallery a:hover img { transform: scale(1.05); }
.azz-gallery-1 { grid-template-columns: 1fr; }
.azz-gallery-1 a { aspect-ratio: auto; }
.azz-gallery-1 img { height: auto; object-fit: contain; }
.azz-gallery br, .azz-gallery p:empty { display: none; }
.featured-img { max-width: 780px; margin: -40px auto 0; position: relative; z-index: 2; }
.featured-img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.archive-list { padding: 60px 0 90px; }
.pagination { margin-top: 40px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 15px; border-radius: 12px; background: #fff; font-weight: 700; box-shadow: 0 6px 18px -12px rgba(11,29,79,.5); }
.pagination .current { background: var(--violet); color: #fff; }
.post-nav { max-width: 780px; margin: 30px auto 0; display: flex; justify-content: space-between; gap: 16px; font-weight: 700; }
.not-found { text-align: center; padding: 100px 0; }
.not-found .big { font-family: var(--font-title); font-size: clamp(6rem, 18vw, 11rem); font-weight: 800; line-height: 1; }

/* ---------- Animations d'apparition ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cycles-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .success-grid { grid-template-columns: 1fr 1fr; }
  .trophy.t-main { grid-row: auto; grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); background: #fff;
    padding: 96px 22px 30px; box-shadow: -20px 0 50px -20px rgba(11,29,79,.4);
    transform: translateX(105%); transition: transform .3s ease; z-index: 90; overflow-y: auto;
  }
  .main-nav.is-open { transform: none; }
  .main-nav ul { flex-direction: column; gap: 6px; }
  .main-nav a { font-size: 1.1rem; padding: 12px 16px; }
  .menu-toggle { position: relative; z-index: 95; }
  .hero-grid, .pedago-grid, .portal, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 380px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .news-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar .container { justify-content: center; text-align: center; }
  .topbar-right { display: none; }
  .brand-text strong { font-size: 1.15rem; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-logo { height: 50px; }
  .cycles-grid, .services-grid, .news-grid, .values, .portal-list { grid-template-columns: 1fr; }
  .success-grid { grid-template-columns: 1fr; }
  .trophy.t-main { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .fc-1 { left: 0; }
  .fc-2 { right: 0; }
  .float-card { font-size: .85rem; padding: 10px 12px; }
  .float-card .dot { width: 32px; height: 32px; }
  .stat strong { font-size: 2rem; }
}
