/* ═══ Thème « École APEL » pour QuietCMS ═══
   Base : structure du thème « juridique » (blog, catégories, articles, 404),
   recolorée aux couleurs du logo APEL Sainte-Anne + couche « école » en fin de fichier. */

/* ── Polices ── auto-hébergées via le gestionnaire de polices QuietCMS
   (fonts/fonts.css est chargé par layout.php). Aucune requête vers Google Fonts :
   conforme CSP 'self' et RGPD (pas de transmission d'IP des visiteurs à Google).
   Repli sur des polices système tant que les polices ne sont pas installées. */

/* ── Variables ── */
:root {
    color-scheme: light; /* site en thème clair : empêche le « mode sombre forcé » des navigateurs mobiles */
    --navy:       #1f5f7a;
    --navy-mid:   #23708f;
    --navy-light: #2c86a6;
    --gold:       #f39200;
    --gold-hover: #c76f00;
    --gold-pale:  #fff1dc;
    --parchment:  #fffaf2;
    --white:      #ffffff;
    --text:       #23323b;
    --text-muted: #5a6a73;
    --border:     #ecdcc6;
    --border-gold:#f5c27a;
    --link:       #1f7f96;
    --link-hover: #c76f00;
    --shadow-sm:  0 1px 4px rgba(31,95,122,.07);
    --shadow:     0 4px 16px rgba(31,95,122,.10);
    --shadow-lg:  0 8px 32px rgba(31,95,122,.14);
    --radius:     12px;
    --max-w:      1180px;
    --content-w:  820px;
    --serif:      'Baloo 2', 'Fredoka', 'Nunito', 'Trebuchet MS', system-ui, sans-serif;
    --sans:       'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--text); background: var(--parchment); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-hover); }

/* ── Top bar ── */
.top-bar {
    background: var(--navy);
    color: rgba(255,255,255,.7);
    font-size: .78rem;
    padding: .45rem 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.top-bar-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.top-bar a { color: rgba(255,255,255,.7); }
.top-bar a:hover { color: var(--gold); }
.top-bar-right { display: flex; gap: 1.5rem; }

/* ── Header ── */
.site-header {
    background: var(--header-bg, var(--navy));
    position: var(--header-position, sticky);
    top: 0;
    z-index: 510; /* > overlay (490) pour que le tiroir reste au-dessus */
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height, 72px);
    gap: 2rem;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
}
.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--gold);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    color: var(--navy);
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.logo-text {
    font-family: var(--serif);
    color: #fff;
    font-size: 1.2rem;
    line-height: 1.2;
    font-weight: 600;
}
.logo-text span { display: block; font-size: .7rem; font-family: var(--sans); font-weight: 300; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-top: 2px; }

/* ── Navigation ── */
.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav > li { list-style: none; position: relative; }
.site-nav > li > a {
    display: block;
    color: rgba(255,255,255,.88);
    font-size: .875rem;
    font-weight: 500;
    padding: .55rem .9rem;
    border-radius: var(--radius);
    transition: background .18s, color .18s;
    letter-spacing: .02em;
}
.site-nav > li > a:hover,
.site-nav > li.active > a {
    background: rgba(255,255,255,.1);
    color: var(--gold);
}
.site-nav > li.active > a { border-bottom: 2px solid var(--gold); }

/* Dropdown */
.sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius);
    min-width: 200px;
    box-shadow: var(--shadow);
    list-style: none;
    z-index: 100;
}
.sub-menu li a {
    display: block;
    padding: .6rem 1.1rem;
    color: var(--text);
    font-size: .875rem;
    border-bottom: 1px solid var(--border);
    transition: background .15s;
}
.sub-menu li:last-child a { border-bottom: none; }
.sub-menu li a:hover { background: var(--gold-pale); color: var(--navy); }
.site-nav > li:hover > .sub-menu { display: block; }

/* Flèche ▾ sur les parents desktop */
.site-nav > li.has-children > a::after {
    content: '▾';
    font-size: .6rem;
    margin-left: .3rem;
    vertical-align: middle;
    opacity: .5;
    display: inline-block;
    transition: transform .2s;
}
.site-nav > li.has-children:hover > a::after { transform: rotate(-180deg); opacity: 1; }

/* Sub-toggle button — caché sur desktop */
.sub-toggle { display: none; }

.sub-menu li { position: relative; }

/* Flèche › sur les items parents dans les sous-menus */
.sub-menu li.has-children > a::after {
    content: '›';
    float: right;
    margin-left: .5rem;
    opacity: .5;
    font-size: 1rem;
    line-height: 1;
}

/* Flyout niveau 3+ : apparaît à droite du parent */
.sub-menu .sub-menu {
    display: none;
    position: absolute;
    top: -3px;
    left: 100%;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius);
    min-width: 200px;
    box-shadow: var(--shadow);
    list-style: none;
    z-index: 100;
}
.sub-menu li:hover > .sub-menu { display: block; }

/* Flyout ouvert par JS (desktop hover fiable + débordement viewport) */
.sub-menu .sub-menu.js-open { display: block; }
.sub-menu li.flyout-left > .sub-menu { left: auto; right: 100%; }

/* Logo QuietCMS SVG (fallback quand aucun logo personnalisé) */
.logo-qcms-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 7px;
    display: block;
}

/* Hamburger */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: .5rem; background: none; border: none; }
/* background-image (dégradé blanc uni) : empêche le « mode sombre forcé » des navigateurs
   mobiles d'assombrir les barres ; visuellement identique à un fond blanc. */
.nav-toggle span { display: block; width: 22px; height: 2px; background-color: #fff; background-image: linear-gradient(#fff, #fff); border-radius: 2px; transition: .3s; forced-color-adjust: none; }

/* ── Gold separator ── */
.gold-bar {
    height: 3px;
    background: linear-gradient(90deg, var(--navy) 0%, var(--gold) 40%, var(--gold-pale) 100%);
}

/* ── Breadcrumb ── */
.breadcrumb-wrap {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: .65rem 0;
    font-size: .8rem;
}
.breadcrumb {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
    color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: var(--border-gold); font-size: .7rem; }
.breadcrumb .current { color: var(--text); font-weight: 500; }

/* ── Hero ── */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #1a3560 100%);
    color: #fff;
    padding: 4.5rem 1.5rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-inner { position: relative; max-width: 800px; margin: 0 auto; }
.page-hero h1 {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.page-hero p {
    font-size: 1.05rem;
    color: rgba(255,255,255,.8);
    max-width: 560px;
    margin: 0 auto 1.5rem;
}
.hero-divider {
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 1.25rem auto 0;
}

/* ── Layout principal ── */
.site-main { max-width: var(--max-w); margin: 0 auto; padding: 2.5rem 1.5rem; }
.site-main.with-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; align-items: start; }

/* ── Cards ── */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.card-padded { padding: 1.75rem; }

/* ── Page content ── */
.content-header { margin-bottom: 2rem; }
.content-header h1, .article-title {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--navy);
    margin-bottom: .6rem;
}
.content-header .lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    border-left: 3px solid var(--gold);
    padding-left: .9rem;
    margin-top: .9rem;
    font-style: italic;
}

.article-body h2 {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin: 2.5rem 0 .9rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--gold-pale);
    position: relative;
}
.article-body h2::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--gold);
}
.article-body h3 {
    font-family: var(--serif);
    font-size: 1.15rem;
    color: var(--navy-mid);
    margin: 1.75rem 0 .6rem;
    font-weight: 600;
}
.article-body h4 { font-weight: 600; margin: 1.25rem 0 .4rem; }
.article-body p { margin-bottom: 1.1rem; line-height: 1.8; }
.article-body ul, .article-body ol { margin: .75rem 0 1.1rem 1.75rem; }
.article-body li { margin-bottom: .4rem; line-height: 1.7; }
.article-body strong { font-weight: 600; color: var(--navy); }
.article-body em { font-style: italic; }
/* Liens en plein texte (contenu éditorial du site) : bleu raffiné, souligné délicat */
.article-body a,
.blog-content a,
.cat-editorial a {
    color: var(--link);
    text-decoration: underline;
    text-decoration-color: rgba(47, 84, 168, .4);
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color .18s ease, text-decoration-color .18s ease, text-decoration-thickness .18s ease;
}
.article-body a:hover,
.blog-content a:hover,
.cat-editorial a:hover {
    color: var(--link-hover);
    text-decoration-color: var(--link-hover);
    text-decoration-thickness: 2px;
}
/* L'ancre enrobe souvent un <strong> : forcer l'héritage de la couleur du lien */
.article-body a strong,
.blog-content a strong,
.cat-editorial a strong { color: inherit; }
.article-body blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem 1rem 1.5rem;
    border-left: 4px solid var(--gold);
    background: var(--gold-pale);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--navy-mid);
}
.article-body figure { margin: 1.75rem 0; }
.article-body figure img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.article-body figcaption { font-size: .8rem; color: var(--text-muted); text-align: center; margin-top: .5rem; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .9rem; }
.article-body th { background: var(--navy); color: #fff; padding: .7rem 1rem; text-align: left; font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.article-body td { padding: .65rem 1rem; border-bottom: 1px solid var(--border); }
.article-body tr:last-child td { border-bottom: none; }
.article-body tr:nth-child(even) td { background: var(--parchment); }

/* ── Article meta ── */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.25rem;
    align-items: center;
    padding: .9rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.75rem;
    font-size: .82rem;
    color: var(--text-muted);
}
.article-meta .meta-item { display: flex; align-items: center; gap: .35rem; }
.article-meta .meta-item svg { width: 14px; height: 14px; opacity: .6; }
.cat-badge {
    display: inline-flex;
    align-items: center;
    background: var(--navy);
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .25rem .65rem;
    border-radius: 999px;
    text-decoration: none;
}
.cat-badge:hover { background: var(--gold); color: var(--navy); }
/* Badge de catégorie non cliquable (bandeau d'article) : même rendu, sans interaction */
.cat-badge--static { cursor: default; }
.cat-badge--static:hover { background: var(--navy); color: #fff; }

/* ── Disclaimer ── */
.legal-disclaimer {
    background: var(--gold-pale);
    border: 1px solid var(--border-gold);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    padding: .9rem 1.1rem;
    font-size: .82rem;
    color: #6b5820;
    margin: 2rem 0;
    display: flex;
    gap: .6rem;
}
.legal-disclaimer strong { color: var(--navy); }

/* ── TOC (Table des matières) ── */
.toc-box {
    background: var(--parchment);
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    margin: 1.75rem 0;
    font-size: .875rem;
}
.toc-box .toc-title {
    font-family: var(--serif);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .75rem;
    font-size: .95rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.toc-list { list-style: none; }
.toc-list li { padding: .25rem 0; }
.toc-list a { color: var(--navy-mid); font-size: .85rem; display: flex; align-items: baseline; gap: .4rem; }
.toc-list a::before { content: '§'; color: var(--gold); font-size: .75rem; flex-shrink: 0; }
.toc-list a:hover { color: var(--gold); }
.toc-list:not(.toc-nested) .toc-h3 { padding-left: 1.1rem; }
.toc-list:not(.toc-nested) .toc-h4 { padding-left: 2.2rem; }
.toc-list .toc-h3 a::before { content: '›'; }
.toc-list .toc-h4 a::before { content: '·'; }
.toc-nested, .toc-nested ul { list-style: none; }
.toc-nested ul { padding-left: .9rem; margin: .15rem 0 .15rem .15rem; border-left: 1px solid var(--border); }

/* ── Blog listing ── */
.section-heading {
    font-family: var(--serif);
    font-size: 1.6rem;
    color: var(--navy);
    margin-bottom: 1.5rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.section-heading::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--gold);
}
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.75rem;
}
.filter-btn {
    display: inline-block;
    padding: .35rem .9rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: .8rem;
    color: var(--text-muted);
    transition: all .18s;
    font-weight: 500;
}
.filter-btn:hover, .filter-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.post-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.post-card-cat { margin-bottom: .6rem; }
.post-card h2 { font-family: var(--serif); font-size: 1.1rem; color: var(--navy); line-height: 1.4; margin-bottom: .6rem; font-weight: 600; }
.post-card h2 a { color: inherit; }
.post-card h2 a:hover { color: var(--gold); }
.post-card .excerpt { font-size: .875rem; color: var(--text-muted); line-height: 1.65; flex: 1; margin-bottom: .9rem; }
.post-card-footer {
    padding: .75rem 1.4rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .78rem;
    color: var(--text-muted);
    background: var(--parchment);
}
.read-more { font-size: .82rem; font-weight: 600; color: var(--gold); display: flex; align-items: center; gap: .25rem; }
.read-more:hover { color: var(--gold-hover); }

/* Liste d'articles (vue listing) */
.post-list-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid transparent;
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    transition: border-left-color .2s, box-shadow .2s;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}
.post-list-item:hover { border-left-color: var(--gold); box-shadow: var(--shadow-sm); }
.post-list-date { flex-shrink: 0; text-align: center; background: var(--navy); color: #fff; border-radius: var(--radius); padding: .5rem .7rem; min-width: 52px; }
.post-list-date .day { display: block; font-size: 1.3rem; font-weight: 700; line-height: 1; font-family: var(--serif); }
.post-list-date .month { display: block; font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.post-list-content { flex: 1; }
.post-list-content h2 { font-family: var(--serif); font-size: 1.1rem; color: var(--navy); margin-bottom: .35rem; font-weight: 600; }
.post-list-content h2 a { color: inherit; }
.post-list-content h2 a:hover { color: var(--gold); }
.post-list-content p { font-size: .875rem; color: var(--text-muted); line-height: 1.65; }

/* ── Sidebar ── */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-widget {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.widget-title {
    background: var(--navy);
    color: #fff;
    font-family: var(--serif);
    font-size: .9rem;
    font-weight: 600;
    padding: .75rem 1.1rem;
    letter-spacing: .03em;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.widget-body { padding: 1rem 1.1rem; }
.widget-list { list-style: none; }
.widget-list li { border-bottom: 1px solid var(--border); }
.widget-list li:last-child { border-bottom: none; }
.widget-list a { display: flex; align-items: center; gap: .5rem; padding: .55rem 0; font-size: .875rem; color: var(--text); }
.widget-list a::before { content: '›'; color: var(--gold); font-weight: 700; }
.widget-list a:hover { color: var(--gold); }
.widget-list .count { margin-left: auto; background: var(--parchment); color: var(--text-muted); font-size: .72rem; padding: .1rem .45rem; border-radius: 999px; border: 1px solid var(--border); }
.toc-widget .toc-list { padding: 0; }
.toc-widget .toc-list > li { border-bottom: 1px solid var(--border); }
.toc-widget .toc-list > li:last-child { border-bottom: none; }
.toc-widget .toc-nested ul li { border-bottom: none; }
.toc-widget .toc-list a { padding: .5rem 0; }

/* SidebarManager output classes (admin-configured widgets) */
.sidebar-widget-title { background: var(--navy); color: #fff; font-family: var(--serif); font-size: .9rem; font-weight: 600; padding: .75rem 1.1rem; letter-spacing: .03em; display: flex; align-items: center; gap: .5rem; }
.sidebar-list { list-style: none; padding: .25rem 0; margin: 0; }
.sidebar-list li { border-bottom: 1px solid var(--border); }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list a { display: flex; align-items: center; gap: .5rem; padding: .55rem 1.1rem; font-size: .875rem; color: var(--text); }
.sidebar-list a::before { content: '›'; color: var(--gold); font-weight: 700; }
.sidebar-list a:hover { color: var(--gold); }
.sidebar-search { display: flex; gap: .4rem; padding: .75rem 1.1rem; }
.sidebar-search input[type="search"] { flex: 1; border: 1px solid var(--border); border-radius: 4px; padding: .45rem .7rem; font-size: .875rem; background: var(--parchment); color: var(--text-dark); outline: none; }
.sidebar-search input[type="search"]:focus { border-color: var(--gold); }
.sidebar-search button { padding: .45rem .75rem; background: var(--navy); color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: .85rem; line-height: 1; transition: background .15s; }
.sidebar-search button:hover { background: var(--gold); }
/* Zone "après le contenu" */
.after-content-widgets { max-width: var(--max-w); margin: 2rem auto 0; padding: 0 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }

/* Domaines du droit (homepage) */
.domains-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 1.5rem 0; }
.home-domains-inner--full { max-width: 100%; padding: 0 2rem; }
/* Style: image */
.home-domains--image .domain-card { padding: 0; overflow: hidden; border-top: none; }
.domain-card-img { width: 100%; height: 170px; background-size: cover; background-position: center; flex-shrink: 0; }
.home-domains--image .domain-card h3 { padding: .7rem 1rem .25rem; }
.home-domains--image .domain-card p  { padding: 0 1rem .85rem; }
.home-domains--image .domain-card .domain-icon { display: none; }
/* Style: minimal */
.home-domains--minimal .domain-card { background: transparent; border: 1.5px solid var(--border); border-top-color: var(--border); padding: .9rem 1.1rem; }
.home-domains--minimal .domain-card .domain-icon { font-size: 1.5rem; margin-bottom: .35rem; }
.home-domains--minimal .domain-card:hover { background: rgba(255,255,255,.7); }
.domain-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
    color: inherit;
}
.domain-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.domain-card .domain-icon { font-size: 2rem; margin-bottom: .6rem; }
.domain-card h3 { font-family: var(--serif); font-size: .95rem; color: var(--navy); font-weight: 600; margin-bottom: .25rem; }
.domain-card p { font-size: .78rem; color: var(--text-muted); }

/* ── Homepage ── */
.home-intro { max-width: var(--max-w); margin: 0 auto; padding: 3rem 1.5rem; }
.home-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.home-intro-text h2 { font-family: var(--serif); font-size: 1.8rem; color: var(--navy); margin-bottom: 1rem; }
.home-intro-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: .9rem; }
.home-intro-features { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.feature-item { display: flex; align-items: flex-start; gap: .6rem; font-size: .875rem; }
.feature-item::before { content: '✓'; color: var(--gold); font-weight: 700; margin-top: .1rem; flex-shrink: 0; }
.home-latest { background: var(--navy); padding: 3rem 1.5rem; color: #fff; }
.home-latest .section-heading { color: #fff; border-color: rgba(255,255,255,.15); }
.home-latest .section-heading::after { background: var(--gold); }
.home-latest-inner { max-width: var(--max-w); margin: 0 auto; }
.home-latest .post-card { border-color: rgba(255,255,255,.1); }
.home-latest .post-card h2 { color: var(--navy); }
.home-domains { background: var(--parchment); padding: 3rem 1.5rem; }
.home-domains-inner { max-width: var(--max-w); margin: 0 auto; }
.home-cta { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); padding: 3.5rem 1.5rem; text-align: center; }
.home-cta h2 { font-family: var(--serif); color: #fff; font-size: 1.8rem; margin-bottom: .75rem; }
.home-cta p { color: rgba(255,255,255,.75); margin-bottom: 1.5rem; }

/* ── Home grid section ── */
.home-section-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.hgs-header { text-align: center; margin-bottom: 2.5rem; }
.hgs-title { font-family: var(--serif); font-size: 1.9rem; margin-bottom: .5rem; }
.hgs-sub   { font-size: 1rem; opacity: .75; margin: 0; }
.hgs-row   { margin-bottom: 1.5rem; }
.hgs-row:last-child { margin-bottom: 0; }
.hgs-col   { min-width: 0; }
/* Text column */
.hgs-col-heading { font-family: var(--serif); font-size: 1.35rem; margin-bottom: .65rem; }
.hgs-col-body  { line-height: 1.75; }
.hgs-col-body h2, .hgs-col-body h3, .hgs-col-body h4 { font-family: var(--serif); margin: 1rem 0 .5rem; }
.hgs-col-body p  { margin-bottom: .75rem; }
.hgs-col-body ul, .hgs-col-body ol { padding-left: 1.4rem; margin-bottom: .75rem; }
.hgs-col-body a  { color: inherit; text-decoration: underline; }
/* Image column */
.hgs-col-figure { margin: 0; }
.hgs-col-figure img { width: 100%; height: auto; display: block; border-radius: 8px; }
.hgs-col-figure figcaption { font-size: .78rem; text-align: center; opacity: .65; margin-top: .4rem; }
/* Video column */
.hgs-col-video iframe,
.hgs-col-video video { width: 100%; aspect-ratio: 16/9; display: block; border-radius: 8px; border: none; }
.hgs-col-caption { font-size: .78rem; text-align: center; opacity: .65; margin-top: .4rem; }
/* Color modes */
.hgs-dark .hgs-title, .hgs-dark .hgs-col-heading, .hgs-dark .hgs-col-body { color: #fff; }
.hgs-dark .hgs-sub { color: rgba(255,255,255,.75); }
.hgs-dark .hgs-col-body a { color: rgba(255,255,255,.9); }
.hgs-light .hgs-title, .hgs-light .hgs-col-heading, .hgs-light .hgs-col-body { color: var(--navy); }
.hgs-light .hgs-sub { color: var(--text-muted); }
.section-sub { color: var(--text-muted); text-align: center; margin-bottom: 1.5rem; }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .65rem 1.4rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .875rem;
    cursor: pointer;
    transition: all .18s;
    text-decoration: none;
    letter-spacing: .02em;
}
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-hover); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-mid); color: #fff; }
.btn-outline { background: transparent; border: 2px solid currentColor; color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-outline-white { color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-white:hover { background: var(--gold); border-color: var(--gold); }
.btn-lg { padding: .85rem 1.9rem; font-size: 1rem; }

/* ── Article actions ── */
.article-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin: 2rem 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .85rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 500;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all .18s;
    cursor: pointer;
    background: none;
}
.share-btn:hover { border-color: var(--gold); color: var(--gold); }

/* ── Footer ── */
.site-footer { background: var(--footer-bg, var(--navy)); color: rgba(255,255,255,.75); margin-top: 0; }
.footer-top { max-width: var(--max-w); margin: 0 auto; padding: 3.5rem 1.5rem 2rem; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand .logo-text { color: #fff; font-size: 1.15rem; }
.footer-brand p { font-size: .875rem; margin-top: .9rem; line-height: 1.7; color: rgba(255,255,255,.6); }
.footer-col h4 { font-family: var(--serif); color: #fff; font-size: .95rem; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .45rem; }
.footer-col ul a { color: rgba(255,255,255,.65); font-size: .85rem; transition: color .18s; }
.footer-col ul a:hover { color: var(--gold); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 1.25rem 1.5rem;
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .8rem;
    color: rgba(255,255,255,.45);
    flex-wrap: wrap;
    gap: .5rem;
}
.footer-bottom a { color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: var(--gold); }
.footer-divider { height: 1px; background: rgba(255,255,255,.07); }

/* ── 404 ── */
.error-page { text-align: center; padding: 5rem 1.5rem; max-width: 540px; margin: 0 auto; }
.error-page .error-code { font-family: var(--serif); font-size: 6rem; color: var(--gold); line-height: 1; font-weight: 700; opacity: .3; }
.error-page h1 { font-family: var(--serif); font-size: 1.8rem; color: var(--navy); margin: 1rem 0 .75rem; }
.error-page p { color: var(--text-muted); margin-bottom: 1.75rem; }

/* ── Progress bar (reading) ── */
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--gold), #e8b84b); z-index: 9999; width: 0; transition: width .1s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .site-main.with-sidebar { grid-template-columns: 1fr; }
    .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .home-intro-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 900px) {
    /* ── Top bar ── */
    .top-bar { display: none; }
    .top-bar.topbar-show-mobile { display: block; }

    /* ── Site header ── */
    .site-header {
        position: relative;
        z-index: 510; /* > overlay (490) : le stacking context du header englobe le tiroir */
    }
    .header-inner {
        height: var(--mobile-header-height, 60px);
        padding: 0 1rem;
        justify-content: flex-start;
        gap: 0;
    }

    /* ── Logo — fill space, centre its content ── */
    .site-header .site-logo {
        flex: 1;
        justify-content: center;
    }

    /* ── Hamburger — left, animated into × ── */
    .nav-toggle {
        display: flex;
        flex-shrink: 0;
        margin-right: .6rem;
        position: relative;
        z-index: 520;
    }
    .nav-toggle span { transition: transform .3s ease, opacity .25s ease; }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* ── NAV OVERLAY (drawer backdrop) ── */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .5);
        z-index: 490;
    }
    .nav-overlay.open { display: block; animation: nvFadeIn .25s ease; }
    @keyframes nvFadeIn { from { opacity: 0; } to { opacity: 1; } }

    /* ══ Hamburger à DROITE (body.hamburger-right) ══ */
    .hamburger-right .header-inner {
        flex-direction: row-reverse;  /* Logo à gauche, hamburger à droite */
    }
    .hamburger-right .site-header .site-logo {
        justify-content: flex-start; /* Logo aligné à gauche */
    }
    .hamburger-right .nav-toggle {
        margin-right: 0;
        margin-left: .6rem;
    }
    /* Drawer depuis la droite quand hamburger est à droite */
    .hamburger-right.mobile-menu-drawer .site-nav {
        left: auto;
        right: 0;
        transform: translateX(100%);
        box-shadow: -6px 0 40px rgba(0,0,0,.45);
        border-right: none;
        border-left: 1px solid rgba(255,255,255,.08);
    }
    .hamburger-right.mobile-menu-drawer .site-nav.open {
        transform: translateX(0);
    }

    /* ══ Hamburger à GAUCHE (body.hamburger-left, défaut) ══ */
    .hamburger-left .header-inner {
        justify-content: flex-start;
    }
    .hamburger-left .site-header .site-logo {
        justify-content: center;
    }

    /* ══ DRAWER (slide from left) ══ */
    .mobile-menu-drawer .site-nav {
        display: flex !important; /* always in DOM, off-screen by default */
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(290px, 82vw);
        background: var(--header-bg, var(--navy));
        z-index: 500;
        padding-top: var(--mobile-header-height, 60px);
        padding-bottom: 2.5rem;
        gap: 0;
        transform: translateX(-100%);
        transition: transform .32s cubic-bezier(.4, 0, .2, 1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: 6px 0 40px rgba(0, 0, 0, .45);
        border-right: 1px solid rgba(255, 255, 255, .08);
    }
    .mobile-menu-drawer .site-nav.open { transform: translateX(0); }
    .mobile-menu-drawer .site-nav > li {
        border-bottom: 1px solid rgba(255, 255, 255, .07);
        list-style: none;
    }
    .mobile-menu-drawer .site-nav > li > a {
        padding: .85rem 1.5rem;
        font-size: .95rem;
        border-radius: 0;
        display: block;
    }
    .mobile-menu-drawer .site-nav > li.active > a {
        border-bottom: none;
        border-left: 3px solid var(--gold);
        padding-left: calc(1.5rem - 3px);
        color: var(--gold);
        background: rgba(255, 255, 255, .06);
    }

    /* ══ DROPDOWN (falls under header) ══ */
    .mobile-menu-dropdown .site-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--mobile-header-height, 60px);
        left: 0;
        right: 0;
        background: var(--header-bg, var(--navy));
        padding: .5rem 0;
        gap: 0;
        border-top: 2px solid var(--gold);
        box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
        z-index: 400;
        max-height: calc(100vh - var(--mobile-header-height, 60px));
        overflow-y: auto;
    }
    .mobile-menu-dropdown .site-nav.open { display: flex; }
    .mobile-menu-dropdown .site-nav > li { border-bottom: 1px solid rgba(255, 255, 255, .07); list-style: none; }
    .mobile-menu-dropdown .site-nav > li > a { padding: .8rem 1.5rem; font-size: .95rem; display: block; }

    /* ── Accordéon mobile : li parent → flex pour aligner lien + toggle ── */
    .site-nav li.has-children {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
    }
    .site-nav li.has-children > a {
        flex: 1;
        min-width: 0;
    }
    .site-nav li.has-children > .sub-menu {
        flex-basis: 100%;
        width: 100%;
    }

    /* Bouton toggle ▾/▴ — visible uniquement sur mobile */
    .sub-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 46px;
        background: rgba(255, 255, 255, .07);
        border: none;
        border-left: 1px solid rgba(255, 255, 255, .07);
        cursor: pointer;
        color: rgba(255, 255, 255, .6);
        font-size: .95rem;
        transition: background .15s, color .15s;
        flex-shrink: 0;
        padding: 0;
    }
    .sub-toggle:hover,
    .sub-toggle[aria-expanded="true"] {
        background: rgba(255, 255, 255, .13);
        color: var(--gold);
    }

    /* ── Sous-menus → accordéon (fermés par défaut) ── */
    .site-nav .sub-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        border-top: 1px solid rgba(255, 255, 255, .06);
        min-width: 0;
        background: rgba(0, 0, 0, .22);
        border-radius: 0;
    }
    .site-nav .sub-menu.open { display: block; }

    /* Liens dans les sous-menus (indentation progressive par niveau) */
    .site-nav .sub-menu li a {
        padding: .65rem 1.5rem .65rem 2.25rem;
        color: rgba(255, 255, 255, .7);
        font-size: .875rem;
        border-bottom: 1px solid rgba(255, 255, 255, .05);
        display: block;
    }
    .site-nav .sub-menu .sub-menu li a          { padding-left: 3.25rem; }
    .site-nav .sub-menu .sub-menu .sub-menu li a { padding-left: 4.25rem; }
    .site-nav .sub-menu .sub-menu .sub-menu .sub-menu li a { padding-left: 5.25rem; }
    .site-nav .sub-menu li:last-child > a { border-bottom: none; }
    .site-nav .sub-menu li a:hover { background: rgba(255, 255, 255, .08); color: var(--gold); }

    /* Cacher la flèche › sur mobile (remplacée par le bouton sub-toggle) */
    .sub-menu li.has-children > a::after { display: none; }

    /* ── Footer ── */
    .footer-top {
        grid-template-columns: repeat(var(--mobile-footer-cols, 1), 1fr);
        gap: 1.75rem;
    }
    .footer-bottom { flex-direction: column; text-align: center; }

    /* ── Other layout ── */
    .posts-grid { grid-template-columns: 1fr; }
    .sidebar { grid-template-columns: 1fr; }
    .home-intro-features { grid-template-columns: 1fr; }
    .page-hero { padding: 3rem 1.25rem; }
    .domains-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .site-main { padding: 2rem 1.25rem; }
    .breadcrumb { padding: 0 1.25rem; }
}

@media (max-width: 480px) {
    .header-inner { padding: 0 .75rem; }
    .post-list-item { flex-direction: column; gap: .75rem; }
    .post-list-date { display: none; }
    .domains-grid { grid-template-columns: 1fr !important; }
    .footer-top { grid-template-columns: 1fr !important; }
    .site-main { padding: 1.5rem 1rem; }
    .page-hero { padding: 2.5rem 1rem; }
    .home-intro-grid { gap: 1.5rem; }
}

/* ── Print ── */
@media print {
    .site-header, .site-footer, .sidebar, .article-actions, .reading-progress, .breadcrumb-wrap { display: none !important; }
    body { background: #fff; color: #000; font-size: 11pt; }
    a { color: #000; text-decoration: underline; }
    .article-body h2 { border-bottom: 1pt solid #000; }
    .legal-disclaimer { border: 1pt solid #ccc; }
}

/* ── Pagination ── */
.pagination { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin: 2rem 0; }
.page-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 2.2rem; height: 2.2rem; padding: 0 .6rem; border-radius: 4px; border: 1px solid var(--gold); background: transparent; color: var(--gold); text-decoration: none; font-size: .875rem; transition: background .15s, color .15s; }
.page-btn:hover { background: var(--gold); color: var(--navy); }
.page-btn.active { background: var(--gold); color: var(--navy); font-weight: 700; pointer-events: none; }

/* ── Category editorial blocks ── */
.cat-editorial { background: rgba(184,146,46,.07); border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; padding: 1.5rem 1.75rem; margin: 1.75rem 0; line-height: 1.8; }
.cat-editorial h2, .cat-editorial h3 { color: var(--navy); font-family: 'Playfair Display', Georgia, serif; }
.cat-editorial-bottom { background: rgba(27,42,74,.05); border-left-color: var(--navy); }

/* ── Bouton « Revenir en haut » (mobile uniquement, apparaît au défilement) ── */
.back-to-top { display: none; }
@media (max-width: 900px) {
    .back-to-top {
        position: fixed; right: 24px; bottom: 84px; z-index: 2147482500;
        width: 44px; height: 44px; padding: 0; border: none; border-radius: 50%;
        background: var(--navy, #1b2a4a); color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.28);
        display: flex; align-items: center; justify-content: center; cursor: pointer;
        opacity: 0; visibility: hidden; transform: translateY(8px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }
    .back-to-top.show { opacity: 1; visibility: visible; transform: none; }
    .back-to-top svg { width: 22px; height: 22px; }
    .back-to-top:active { transform: scale(.94); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   COUCHE « ÉCOLE APEL »
   Palette tirée du logo APEL Sainte-Anne : orange #f39200, vert #95c11f,
   bleu ciel #5bc0d4, bleu profond #1f5f7a (texte, pied de page).
   Polices conseillées (Apparence → Polices, auto-hébergées) : « Baloo 2 »
   pour les titres, « Nunito » pour le texte. Repli sur des polices système.
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
    --orange:      #f39200;
    --orange-dark: #c76f00;
    --orange-pale: #fff1dc;
    --green:       #95c11f;
    --green-dark:  #5f8a0c;
    --green-pale:  #f1f8de;
    --blue:        #5bc0d4;
    --blue-dark:   #1f7f96;
    --blue-pale:   #e3f5f9;
    --cream:       #fffaf2;
    --radius-lg:   22px;
}

body { background: var(--cream); }
a { color: var(--blue-dark); }
a:hover { color: var(--orange-dark); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

.skip-link { position: absolute; left: -999px; top: .5rem; z-index: 2000; background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 10px; }
.skip-link:focus { left: .75rem; color: #fff; }

/* ── En-tête blanc, logo en couleurs ── */
.site-header { background: var(--header-bg, #fff); box-shadow: 0 4px 18px rgba(31,95,122,.10); }
.site-logo img { display: block; height: auto; }
.logo-text { color: var(--navy); }
.site-nav > li > a {
    color: var(--navy);
    font-family: var(--serif);
    font-size: .98rem;
    font-weight: 600;
    border-radius: 999px;
    padding: .5rem 1rem;
    letter-spacing: 0;
}
.site-nav > li > a:hover,
.site-nav > li.active > a { background: var(--orange-pale); color: var(--orange-dark); }
.site-nav > li.active > a { border-bottom: none; box-shadow: inset 0 -3px 0 var(--orange); }
.sub-menu { border-radius: 14px; border-top: 4px solid var(--green); overflow: hidden; }
.sub-menu li a:hover { background: var(--green-pale); color: var(--navy); }
.nav-toggle span { background-color: var(--navy); background-image: linear-gradient(var(--navy), var(--navy)); height: 3px; }

.nav-search { position: relative; display: flex; align-items: center; margin-left: .4rem; }
.nav-search-btn { background: var(--blue-pale); border: none; color: var(--navy); cursor: pointer; padding: .5rem; display: flex; align-items: center; border-radius: 50%; transition: background .15s; }
.nav-search-btn:hover { background: var(--orange-pale); color: var(--orange-dark); }
.nav-search-btn svg { width: 20px; height: 20px; }
.nav-search-form { position: absolute; top: calc(100% + 14px); right: 0; display: none; align-items: center; gap: .4rem; background: #fff; border: 2px solid var(--blue-pale); border-radius: 16px; box-shadow: 0 12px 32px rgba(31,95,122,.18); padding: .5rem; z-index: 1300; }
.nav-search.open .nav-search-form { display: flex; }
.nav-search-form input { border: 1px solid #d9e9ee; border-radius: 10px; padding: .55rem .75rem; font-size: .95rem; width: 240px; max-width: 60vw; color: var(--text); font-family: inherit; }
.nav-search-form input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(243,146,0,.18); }
.nav-search-form button { background: var(--orange); color: #fff; border: none; border-radius: 10px; padding: .45rem .7rem; cursor: pointer; display: flex; align-items: center; }
.nav-search-form button svg { width: 18px; height: 18px; }

/* Bandeau tricolore sous l'en-tête */
.gold-bar {
    height: 6px;
    background: linear-gradient(90deg, var(--orange) 0 33.33%, var(--green) 33.33% 66.66%, var(--blue) 66.66% 100%);
}

/* ── Boutons arrondis ── */
.btn { border-radius: 999px; font-family: var(--serif); font-weight: 700; letter-spacing: 0; }
.btn-gold { background: var(--orange); box-shadow: 0 6px 16px rgba(243,146,0,.28); }
.btn-gold:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-navy:hover { transform: translateY(-1px); }
.btn-outline { color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--orange-pale); color: var(--orange-dark); }
.btn-sm { padding: .45rem 1rem; font-size: .82rem; }

/* ── Héros d'accueil ── */
.apel-hero { position: relative; background: linear-gradient(160deg, #fff 0%, var(--blue-pale) 55%, var(--green-pale) 100%); color: var(--navy); overflow: hidden; }
.apel-hero::before, .apel-hero::after { content: ''; position: absolute; border-radius: 50%; opacity: .5; pointer-events: none; }
.apel-hero::before { width: 340px; height: 340px; background: var(--orange-pale); top: -120px; left: -110px; }
.apel-hero::after  { width: 220px; height: 220px; background: rgba(149,193,31,.18); bottom: 30px; right: 38%; }
.apel-hero-inner { position: relative; z-index: 1; max-width: var(--max-w); margin: 0 auto; padding: 4rem 1.5rem 5.5rem; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.apel-kicker { display: inline-block; background: #fff; color: var(--green-dark); font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; padding: .35rem .9rem; border-radius: 999px; box-shadow: 0 3px 10px rgba(31,95,122,.08); margin-bottom: 1rem; }
.apel-hero h1 { font-family: var(--serif); font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.1; color: var(--navy); margin-bottom: 1rem; }
.apel-hero-sub { font-size: 1.12rem; color: var(--text-muted); max-width: 560px; margin-bottom: 1.75rem; }
.apel-hero-actions { display: flex; gap: .85rem; flex-wrap: wrap; }
.apel-hero-visual { position: relative; display: flex; justify-content: center; }
.apel-hero-badge { background: #fff; border-radius: 36px; padding: 2rem 2.25rem; box-shadow: 0 18px 50px rgba(31,95,122,.16); transform: rotate(-2deg); }
.apel-hero-badge img { width: 100%; max-width: 380px; height: auto; display: block; }
.apel-dot { position: absolute; border-radius: 50%; }
.apel-dot--orange { width: 46px; height: 46px; background: var(--orange); top: -14px; right: 12%; }
.apel-dot--green  { width: 26px; height: 26px; background: var(--green); bottom: 8px; left: 6%; }
.apel-dot--blue   { width: 18px; height: 18px; background: var(--blue); top: 30%; left: -6px; }
.apel-wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; color: var(--cream); }
.apel-wave svg { width: 100%; height: 50px; display: block; }

/* ── Sections ── */
.apel-section { padding: 3.5rem 1.5rem; }
.apel-section--soft { background: #fff; }
.apel-section-inner { max-width: var(--max-w); margin: 0 auto; }
.apel-section-title { font-family: var(--serif); color: var(--navy); font-size: clamp(1.6rem, 3vw, 2.1rem); text-align: center; margin-bottom: 2rem; }
.apel-section-title::after { content: ''; display: block; width: 72px; height: 6px; margin: .7rem auto 0; border-radius: 6px; background: linear-gradient(90deg, var(--orange) 0 33%, var(--green) 33% 66%, var(--blue) 66% 100%); }
.apel-home-content { max-width: var(--content-w); }
.apel-center { text-align: center; margin-top: 2rem; }

/* ── Cartes de présentation ── */
.apel-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.25rem; }
.apel-cards--compact { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: 2rem; }
.apel-card {
    --c: var(--blue); --c-pale: var(--blue-pale); --c-dark: var(--blue-dark);
    display: flex; flex-direction: column; gap: .55rem;
    background: #fff; border-radius: var(--radius-lg); padding: 1.5rem 1.4rem 1.3rem;
    border: 2px solid var(--c-pale); border-top: 8px solid var(--c);
    box-shadow: 0 6px 20px rgba(31,95,122,.07);
    color: var(--text); text-decoration: none;
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.apel-card:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 14px 30px rgba(31,95,122,.14); border-color: var(--c); color: var(--text); }
.apel-card--orange { --c: var(--orange); --c-pale: var(--orange-pale); --c-dark: var(--orange-dark); }
.apel-card--green  { --c: var(--green);  --c-pale: var(--green-pale);  --c-dark: var(--green-dark); }
.apel-card--blue   { --c: var(--blue);   --c-pale: var(--blue-pale);   --c-dark: var(--blue-dark); }
.apel-card-icon { width: 54px; height: 54px; border-radius: 16px; background: var(--c-pale); display: flex; align-items: center; justify-content: center; font-size: 1.7rem; }
.apel-card-title { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; color: var(--navy); line-height: 1.25; }
.apel-card-text { font-size: .9rem; color: var(--text-muted); line-height: 1.55; }
.apel-card-more { margin-top: auto; font-weight: 800; font-size: .85rem; color: var(--c-dark); }
.apel-cards--compact .apel-card { padding: 1.1rem 1.1rem 1rem; }
.apel-cards--compact .apel-card-icon { width: 42px; height: 42px; font-size: 1.3rem; border-radius: 12px; }
.apel-cards--compact .apel-card-title { font-size: 1rem; }

/* ── Bandeau d'appel ── */
.apel-cta { background: linear-gradient(120deg, var(--orange) 0%, #f7a823 100%); color: #fff; padding: 3.5rem 1.5rem; text-align: center; }
.apel-cta-inner { max-width: 720px; margin: 0 auto; }
.apel-cta h2 { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .6rem; }
.apel-cta p { font-size: 1.05rem; margin-bottom: 1.5rem; color: rgba(255,255,255,.95); }

/* ── Bandeau de titre des pages ── */
.apel-page-hero { padding: 3.2rem 1.5rem 4.2rem; background: var(--blue-dark); }
.apel-page-hero::before { opacity: .6; }
.apel-page-hero--orange { background: linear-gradient(135deg, #f39200 0%, #f7ae3c 100%); }
.apel-page-hero--green  { background: linear-gradient(135deg, #6f9a14 0%, #95c11f 100%); }
.apel-page-hero--blue   { background: linear-gradient(135deg, #1f7f96 0%, #5bc0d4 100%); }
.apel-page-hero h1 { text-shadow: 0 2px 10px rgba(0,0,0,.18); margin-bottom: .5rem; }
.apel-page-hero p { color: rgba(255,255,255,.95); font-size: 1.1rem; margin-bottom: 0; }
.apel-page-icon { display: inline-flex; align-items: center; justify-content: center; width: 70px; height: 70px; border-radius: 22px; background: rgba(255,255,255,.92); font-size: 2.1rem; margin-bottom: .9rem; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.apel-page-card { border-radius: var(--radius-lg); border: none; box-shadow: 0 10px 34px rgba(31,95,122,.09); margin-top: -2.6rem !important; position: relative; z-index: 2; }
.apel-page-card.card-padded { padding: 2.2rem 2.4rem; }
.apel-page-featured { margin: -2.2rem -2.4rem 1.75rem; line-height: 0; }
.apel-page-featured img { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.apel-related { padding-top: 2.5rem; }

/* ── Corps de texte ── */
.card { border-radius: var(--radius-lg); }
.article-body h2 { color: var(--navy); }
.article-body h2::before { background: var(--orange); border-radius: 4px; }
.article-body h3 { color: var(--blue-dark); }
.article-body a { color: var(--blue-dark); text-decoration: underline; text-decoration-color: rgba(31,127,150,.35); text-underline-offset: 3px; }
.article-body a:hover { color: var(--orange-dark); }
.article-body ul li::marker { color: var(--green); }
.article-body blockquote { border-left-color: var(--green); background: var(--green-pale); border-radius: 0 16px 16px 0; }

/* Blocs utilisables dans le contenu (classes à poser depuis l'éditeur, vue HTML) */
.apel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.apel-box { --c: var(--blue); --c-pale: var(--blue-pale); background: var(--c-pale); border-radius: 18px; padding: 1.15rem 1.2rem; border-left: 6px solid var(--c); }
.apel-box--orange { --c: var(--orange); --c-pale: var(--orange-pale); }
.apel-box--green  { --c: var(--green);  --c-pale: var(--green-pale); }
.apel-box--blue   { --c: var(--blue);   --c-pale: var(--blue-pale); }
.article-body .apel-box h3 { margin-top: 0; color: var(--navy); font-size: 1.05rem; }
.article-body .apel-box p:last-child { margin-bottom: 0; }
.apel-emoji { font-size: 1.6rem; line-height: 1; display: block; margin-bottom: .4rem; }
.apel-callout { background: var(--orange-pale); border: 2px dashed var(--orange); border-radius: 18px; padding: 1.1rem 1.3rem; margin: 1.5rem 0; }
.article-body .apel-callout p:last-child { margin-bottom: 0; }
.article-body ol.apel-steps { list-style: none; counter-reset: step; padding-left: 0; }
.article-body ol.apel-steps li { counter-increment: step; position: relative; padding-left: 3rem; margin-bottom: 1rem; }
.article-body ol.apel-steps li::before { content: counter(step); position: absolute; left: 0; top: -.1rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-family: var(--serif); }
.apel-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.apel-member { text-align: center; background: #fff; border: 2px solid var(--blue-pale); border-radius: 18px; padding: 1.1rem .8rem; }
.apel-avatar { width: 64px; height: 64px; margin: 0 auto .6rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; background: var(--blue-pale); }
.apel-member:nth-child(3n+1) .apel-avatar { background: var(--orange-pale); }
.apel-member:nth-child(3n+2) .apel-avatar { background: var(--green-pale); }
.article-body .apel-member strong { display: block; color: var(--navy); font-family: var(--serif); }
.apel-member span { font-size: .85rem; color: var(--text-muted); }

/* ── Formulaires natifs QuietCMS (FormManager) habillés aux couleurs de l'école ── */
.qcms-form-wrap { background: #fff; border: 2px solid var(--blue-pale); border-radius: var(--radius-lg); padding: 1.6rem 1.6rem .8rem; box-shadow: 0 8px 26px rgba(31,95,122,.07); }
.qcms-form .qcms-label { color: var(--navy); font-size: .9rem; font-weight: 700; }
.qcms-form .qcms-input { border: 2px solid #dcebf0; border-radius: 12px; padding: .7rem .85rem; font-size: .95rem; background: #fdfefe; }
.qcms-form .qcms-input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(243,146,0,.15); }
.qcms-form .qcms-section { border-top: 2px dashed var(--blue-pale); }
.qcms-form .qcms-section-title { font-family: var(--serif); color: var(--blue-dark); }
.qcms-form .qcms-checkbox-label input, .qcms-form .qcms-radio-label input { accent-color: var(--orange); width: 18px; height: 18px; }
.qcms-form .qcms-submit { background: var(--orange); border-radius: 999px; padding: .8rem 2rem; font-family: var(--serif); font-size: 1rem; box-shadow: 0 6px 16px rgba(243,146,0,.28); }
.qcms-form .qcms-submit:hover { background: var(--orange-dark); }
.qcms-alert { border-radius: 12px; }
.qcms-alert-success { background: var(--green-pale); border-color: var(--green); color: #3d5a06; }

/* ── Cartes d'articles ── */
.post-card { border-radius: var(--radius-lg); }
.apel-post-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.post-card-cat { color: var(--green-dark); }
.read-more { color: var(--orange-dark); }
.sidebar-widget { border-radius: 18px; overflow: hidden; }
.widget-title, .sidebar-widget-title { background: var(--blue-dark); }

/* ── Pied de page ── */
.site-footer { position: relative; margin-top: 3rem; color: rgba(255,255,255,.85); }
.footer-wave { position: absolute; top: -40px; left: 0; right: 0; height: 41px; line-height: 0; color: var(--footer-bg, var(--navy)); }
.footer-wave svg { width: 100%; height: 41px; display: block; }
.footer-top { grid-template-columns: 1.6fr 1fr 1fr; }
.footer-logo { display: inline-block; background: #fff; border-radius: 18px; padding: .7rem .9rem; }
.footer-logo img { width: 150px; height: auto; display: block; }
.footer-brand p { color: rgba(255,255,255,.78); }
.footer-col h4 { border-bottom-color: rgba(255,255,255,.18); }
.footer-col ul a { color: rgba(255,255,255,.82); }
.footer-col ul a:hover { color: #ffd08a; }
.footer-col .footer-sub a { padding-left: .8rem; font-size: .8rem; color: rgba(255,255,255,.65); }
.footer-col address { font-style: normal; font-size: .9rem; line-height: 1.7; margin-bottom: .8rem; }
.footer-col p a { color: #ffd08a; font-size: .9rem; }
.footer-col p .btn { color: #fff; margin-top: .4rem; }
.footer-bottom-wrap { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom { border-top: none; color: rgba(255,255,255,.7); }
.footer-legal { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255,255,255,.75); }

.reading-progress { background: linear-gradient(90deg, var(--orange), var(--green), var(--blue)); }
.back-to-top { background: var(--orange) !important; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .site-header .site-logo { justify-content: flex-start; }
    .hamburger-right .header-inner { flex-direction: row; }
    .hamburger-right .nav-toggle { order: 3; margin-left: .4rem; }
    .nav-search { margin-left: auto; margin-right: .2rem; }
    .nav-search-form { position: fixed; left: 0; right: 0; top: var(--mobile-header-height, 64px); border-radius: 0; border-left: 0; border-right: 0; padding: .65rem .9rem; }
    .nav-search-form input { width: 100%; max-width: none; }
    .mobile-menu-drawer .site-nav, .mobile-menu-dropdown .site-nav { background: var(--navy); }
    .site-nav > li > a { color: #fff; border-radius: 0; }
    .site-nav > li > a:hover, .site-nav > li.active > a { background: rgba(255,255,255,.08); color: #ffd08a; box-shadow: none; }
    .apel-hero-inner { grid-template-columns: 1fr; padding: 2.5rem 1.25rem 4.5rem; gap: 2rem; text-align: center; }
    .apel-hero-sub { margin-left: auto; margin-right: auto; }
    .apel-hero-actions { justify-content: center; }
    .apel-hero-visual { order: -1; }
    .apel-hero-badge { padding: 1.2rem 1.4rem; border-radius: 26px; }
    .apel-hero-badge img { max-width: 240px; }
    .apel-page-card.card-padded { padding: 1.6rem 1.25rem; }
    .apel-page-featured { margin: -1.6rem -1.25rem 1.5rem; }
    .qcms-form-wrap { padding: 1.1rem 1rem .5rem; }
    .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .apel-hero-actions .btn { width: 100%; justify-content: center; }
}

/* ── Lien « Espace parents » (en-tête, si l'extension est active) ── */
.nav-account { display: inline-flex; align-items: center; gap: .45rem; flex-shrink: 0; margin-left: 0; padding: .5rem 1rem; border-radius: 999px; background: var(--orange); color: #fff; font-size: .875rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap; box-shadow: 0 4px 12px rgba(243,146,0,.25); transition: background .15s, transform .15s; }
.nav-account:hover, .nav-account.is-active { background: var(--orange-dark); color: #fff; }
.nav-account:hover { transform: translateY(-1px); }
.nav-account svg { width: 18px; height: 18px; flex-shrink: 0; }
@media (max-width: 1180px) {
    .nav-account { padding: .5rem; border-radius: 50%; }
    .nav-account-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 900px) {
    .nav-account { margin-left: .2rem; box-shadow: none; }
    .nav-account svg { width: 20px; height: 20px; }
}

/* ── Logo de l'école partenaire (en-tête, héros, pied de page) ─────────── */
.site-logo { display: inline-flex; align-items: center; gap: .85rem; }
.school-logo-sep { width: 2px; align-self: stretch; margin: .9rem 0; border-radius: 2px; background: linear-gradient(var(--orange), var(--green), var(--blue)); opacity: .55; }
.site-logo img.school-logo { display: block; height: auto; }
.apel-hero-school { position: absolute; right: -.5rem; bottom: -5.6rem; width: 124px; height: 124px; padding: .95rem; border-radius: 50%; background: #fff; box-shadow: 0 12px 30px rgba(31,95,122,.18); transform: rotate(5deg); display: flex; align-items: center; justify-content: center; }
.apel-hero-school img { width: 100%; height: auto; display: block; }
.footer-school-logo { display: inline-block; background: #fff; border-radius: 16px; padding: .5rem .65rem; margin: .2rem 0 .9rem; }
.footer-school-logo img { width: 96px; height: auto; display: block; }
@media (max-width: 900px) {
    .apel-hero-visual { align-items: center; gap: 1rem; }
    .apel-hero-school { position: static; flex-shrink: 0; width: 108px; height: 108px; padding: .75rem; }
}
@media (max-width: 640px) {
    .site-logo { gap: .55rem; }
    .school-logo-sep { margin: .7rem 0; }
    .site-logo img.school-logo { max-height: 44px !important; }
    .apel-hero-visual { gap: .6rem; }
    .apel-hero-badge img { max-width: 190px; }
    .apel-hero-school { width: 84px; height: 84px; padding: .55rem; }
}

/* ── Page Équipe : photo ronde de chaque membre ─────────────────────────── */
.apel-team { display: flex; flex-wrap: wrap; justify-content: center; }
.apel-team > .apel-member { flex: 0 1 172px; }
.apel-member { display: flex; flex-direction: column; align-items: center; padding: 1.3rem .9rem 1.1rem; }
.article-body .apel-member img.apel-photo, .apel-member img.apel-photo { width: 104px; height: 104px; max-width: none; margin: 0 auto .85rem; border-radius: 50%; object-fit: cover; border: 4px solid var(--blue-pale); box-shadow: 0 6px 16px rgba(31,95,122,.12); }
.apel-member:nth-child(3n+1) img.apel-photo { border-color: var(--orange-pale); }
.apel-member:nth-child(3n+2) img.apel-photo { border-color: var(--green-pale); }
.article-body .apel-member strong { font-size: 1.02rem; line-height: 1.3; }
.apel-member span { display: block; margin-top: .2rem; }
@media (max-width: 480px) {
    .apel-team { gap: .75rem; }
    .apel-team > .apel-member { flex-basis: calc(50% - .4rem); }
    .article-body .apel-member img.apel-photo, .apel-member img.apel-photo { width: 84px; height: 84px; }
}

/* ── Page Notre école : logo de l'école à côté de l'introduction ───────── */
.apel-ecole-intro { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1rem; }
.article-body .apel-ecole-intro img, .apel-ecole-intro img { flex-shrink: 0; width: 130px; height: auto; margin: 0; }
.apel-ecole-intro p { margin: 0; }
@media (max-width: 560px) {
    .apel-ecole-intro { flex-direction: column; text-align: center; }
}

/* ── Menu : libellés sur une seule ligne, même avec le bouton Espace parents ─ */
.site-nav > li > a { white-space: nowrap; }
@media (min-width: 1025px) and (max-width: 1320px) {
    .site-nav > li > a { padding: .5rem .7rem; font-size: .93rem; }
}

/* ── Page Notre école : version chaleureuse ─────────────────────────────── */
.apel-lead { font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; color: var(--navy); margin-bottom: .6rem !important; }
.apel-ecole-intro > div p + p { margin-top: 0; }
.article-body blockquote.apel-quote, .apel-quote { margin: 2rem 0; padding: 1.6rem 2rem; text-align: center; background: linear-gradient(135deg, var(--orange-pale), var(--green-pale)); border: 0; border-radius: 22px; }
.apel-quote p { font-family: var(--serif); font-size: 1.2rem; font-style: italic; color: var(--navy); margin: 0 0 .4rem; }
.apel-quote cite { font-style: normal; font-size: .85rem; color: var(--text-muted); }
.apel-grid--4 { grid-template-columns: repeat(2, 1fr); }
.article-body a.btn-gold, .article-body a.btn-gold:hover { color: #fff; text-decoration: none; }
.article-body ul.apel-list-fun { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: .75rem; }
.article-body ul.apel-list-fun li { display: flex; gap: .9rem; align-items: flex-start; background: #fff; border: 2px solid var(--blue-pale); border-radius: 16px; padding: .85rem 1rem; margin: 0; }
.article-body ul.apel-list-fun li::before { content: none; display: none; }
.apel-list-fun li > span { font-size: 1.6rem; line-height: 1; flex-shrink: 0; }
.apel-cta-box { text-align: center; margin: 2rem 0 .5rem; padding: 1.8rem 1.5rem; border-radius: 22px; background: var(--blue-pale); }
.apel-cta-box p { margin: 0 0 .9rem; }
.apel-cta-box .apel-small { font-size: .85rem; color: var(--text-muted); margin: 0; }
@media (max-width: 560px) {
    .article-body blockquote.apel-quote, .apel-quote { padding: 1.3rem 1.1rem; }
    .apel-grid--4 { grid-template-columns: 1fr; }
}

/* ── Page Notre école : accroche, drapeau, logo près de l'adresse ───────── */
.article-body p.apel-lead { text-align: center; margin: .4rem 0 2.2rem !important; font-family: var(--serif); color: var(--navy); line-height: 1.2; }
.apel-lead span { display: block; }
.apel-lead span:first-child { font-size: clamp(1.1rem, 2.2vw, 1.4rem); font-weight: 600; color: var(--text-muted); margin-bottom: .4rem; }
.apel-lead span:last-child { font-size: clamp(1.7rem, 4.2vw, 2.6rem); font-weight: 800; }
.apel-lead em { font-style: normal; color: var(--orange); background: linear-gradient(transparent 68%, rgba(149,193,31,.38) 68%, rgba(149,193,31,.38) 92%, transparent 92%); }
.article-body p.apel-lead::after { content: ''; display: block; width: 72px; height: 6px; margin: 1rem auto 0; border-radius: 6px; background: linear-gradient(90deg, var(--orange) 0 33%, var(--green) 33% 66%, var(--blue) 66% 100%); }
.article-body img.apel-flag, img.apel-flag { width: 34px; height: 17px; max-width: none; margin: .2rem 0 0; border-radius: 3px; box-shadow: 0 1px 4px rgba(0,0,0,.25); display: block; }
.apel-box--logo { display: flex; align-items: center; gap: 1.1rem; }
.article-body .apel-box--logo img, .apel-box--logo img { flex-shrink: 0; width: 92px; height: auto; margin: 0; background: #fff; border-radius: 14px; padding: .35rem; }
.apel-box--logo p { margin-bottom: 0; }

/* ── Bandeau de page : image (logo) à la place de l'emoji ───────────────── */
.apel-page-icon--img { width: 120px; height: 120px; padding: .55rem; border-radius: 28px; background: #fff; }
.apel-page-icon--img img { width: 100%; height: 100%; object-fit: contain; display: block; }
p.apel-intro-text { font-size: 1.05rem; }
@media (max-width: 560px) { .apel-page-icon--img { width: 96px; height: 96px; border-radius: 22px; } }

/* ── Notre école : petit logo à gauche de l'adresse ─────────────────────── */
.apel-adresse { display: flex; align-items: center; gap: 1rem; }
.article-body .apel-adresse img { width: auto; height: 80px; margin: 0; flex-shrink: 0; border-radius: 10px; }
.apel-adresse p { margin: 0; }

/* ── Menu : pont invisible entre « L'APEL » et son sous-menu (survol continu) ─ */
@media (min-width: 1025px) {
    .site-nav > li.has-children::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
}

/* ── Menu : le sous-menu reste ouvert un court instant quand la souris sort ─ */
@media (min-width: 1025px) {
    .site-nav > li > .sub-menu { display: block; visibility: hidden; opacity: 0; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease, visibility 0s linear .4s; }
    .site-nav > li:hover > .sub-menu, .site-nav > li:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
    .site-nav > li.has-children::after { left: -12px; right: auto; width: 240px; height: 14px; }
}
