/* ── 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;
    --navy:       #28333d;
    --navy-mid:   #33424f;
    --navy-light: #415464;
    --gold:       #c1623a;
    --gold-hover: #a44f2d;
    --gold-pale:  #f6e7df;
    --parchment:  #f7f3ee;
    --white:      #ffffff;
    --text:       #232a31;
    --text-muted: #5d6b76;
    --border:     #e3dccf;
    --border-gold:#e0a883;
    --link:       #b1542d;
    --link-hover: #803b1d;
    --shadow-sm:  0 1px 4px rgba(0,0,0,.07);
    --shadow:     0 4px 16px rgba(0,0,0,.10);
    --shadow-lg:  0 8px 32px rgba(0,0,0,.13);
    --radius:     4px;
    --max-w:      1180px;
    --content-w:  760px;
    --serif:      'Fraunces','Playfair Display', Georgia, 'Times New Roman', serif;
    --sans:       'Inter', 'Segoe UI', system-ui, 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); }
}

/* ── Cartes d'articles de la page d'accueil (hp-*) ── */
.hp-home { max-width: 900px; margin: 0 auto; padding: 2.5rem 1.25rem; }
.hp-home > p { line-height: 1.8; }
.hp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; margin: 1rem 0 .25rem; }
.hp-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.hp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.hp-card-img { width: 100%; aspect-ratio: 16 / 9; max-height: 280px; object-fit: cover; display: block; }
.hp-car

/* =========================================================================
   ARTISAN ARRAS — surcharge « artisanal chaleureux » (ocre / terre / bois)
   Ajouté par Facem Web. Redéfinit la palette terrasse et ajoute les styles
   de l'annuaire (plugin annuaire-artisans). Ce bloc est en fin de fichier :
   il l'emporte sur les définitions précédentes par la cascade.
   ========================================================================= */
:root {
    --navy:        #211c18;  /* espresso profond, chaud (header, footer, nav) */
    --navy-mid:    #2e2721;
    --navy-light:  #43392f;
    --gold:        #d98a2b;  /* ocre ambré, punchy */
    --gold-hover:  #c0741c;
    --gold-pale:   #f6e8d1;
    --parchment:   #f8f3ea;  /* crème chaud clair */
    --white:       #ffffff;
    --text:        #2a2420;  /* brun très foncé */
    --text-muted:  #6f6255;
    --border:      #e9dfcc;
    --border-gold: #e0b579;
    --link:        #bd6f18;
    --link-hover:  #97540f;
    --terre:       #b5502f;  /* terre cuite, accent secondaire */
    --sauge:       #6f7a5a;  /* vert sauge, accent tertiaire */
    --aa-line:     #e9dfcc;
}

/* Accent secondaire terre cuite sur quelques éléments clés */
.gold-bar { background: linear-gradient(90deg, var(--gold), var(--terre)) !important; height: 4px !important; }
.hero-divider { background: var(--gold) !important; }

/* ── Correctif menu déroulant : supprime le gap qui fait perdre le survol ──── */
.site-nav > li.has-children > .sub-menu { top: 100% !important; }
.site-nav > li.has-children > .sub-menu::before {
    content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px;
}
.logo-text span { color: var(--gold) !important; }

/* =========================================================================
   Annuaire — grille des métiers (accueil : [annuaire_home])
   ========================================================================= */
.aa-metiers {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1rem;
    margin: 1.75rem 0;
}
.aa-metier {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.15rem 1.2rem;
    box-shadow: var(--shadow-sm);
    transition: transform .16s, box-shadow .16s, border-color .16s;
    color: var(--text);
}
.aa-metier:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--border-gold);
    color: var(--text);
}
.aa-metier-ico { font-size: 1.9rem; line-height: 1; }
.aa-metier-label { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; color: var(--navy); }
.aa-metier-count { font-size: .82rem; color: var(--gold-hover); font-weight: 600; }

/* =========================================================================
   Annuaire — grille des fiches artisans ([annuaire], [annuaire_recents])
   ========================================================================= */
.aa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.1rem;
    margin: 1.5rem 0;
}
.aa-card {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--gold);
    border-radius: 10px;
    padding: 1.15rem 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: transform .16s, box-shadow .16s;
    color: var(--text);
}
.aa-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.aa-card-head { display: flex; align-items: center; gap: .55rem; }
.aa-card-ico { font-size: 1.25rem; }
.aa-card-name { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; color: var(--navy); line-height: 1.25; }
.aa-card-meta { font-size: .84rem; color: var(--gold-hover); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.aa-card-exc { font-size: .92rem; color: var(--text-muted); line-height: 1.55; }
.aa-card-more { margin-top: auto; font-size: .88rem; font-weight: 600; color: var(--terre); }

.aa-empty {
    background: var(--gold-pale);
    border: 1px dashed var(--border-gold);
    border-radius: 10px;
    padding: 1.25rem 1.4rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
}
.aa-empty a { font-weight: 600; }

/* =========================================================================
   Fiche artisan — mise en page corps + panneau latéral
   ========================================================================= */
.aa-fiche-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 2rem;
    align-items: start;
}
.aa-fiche-body { min-width: 0; }
.aa-fiche {
    position: sticky;
    top: calc(var(--header-height, 72px) + 1rem);
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.aa-info {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.aa-info-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: .1rem;
    padding: .8rem 1.1rem;
    border-bottom: 1px solid var(--border);
}
.aa-info-row:last-child { border-bottom: 0; }
.aa-info-k { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gold-hover); font-weight: 700; }
.aa-info-v { font-size: .98rem; color: var(--text); font-weight: 500; }
.aa-info-v a { font-weight: 600; }

.aa-map-wrap { display: flex; flex-direction: column; gap: .4rem; }
.aa-map { box-shadow: var(--shadow-sm); }
.aa-map-note { font-size: .76rem; color: var(--text-muted); font-style: italic; }

.aa-fiche-cta { text-align: center; }
.aa-btn {
    display: inline-block;
    background: var(--gold);
    color: #fff;
    font-weight: 700;
    padding: .8rem 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: background .16s, transform .16s;
    width: 100%;
}
.aa-btn:hover { background: var(--gold-hover); color: #fff; transform: translateY(-2px); }

@media (max-width: 860px) {
    .aa-fiche-layout { grid-template-columns: 1fr; }
    .aa-fiche { position: static; }
}

/* =========================================================================
   Home — bandeaux « artisanal » (blocs utilisables dans le contenu de la home)
   ========================================================================= */
.aa-band {
    background: var(--gold-pale);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    margin: 2rem 0;
}
.aa-band h2 { color: var(--navy); }
.aa-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1rem; margin: 1.25rem 0; }
.aa-step { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 1.2rem; }
.aa-step-num { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: #fff; font-weight: 800; font-family: var(--serif); margin-bottom: .6rem; }
.aa-step h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: .3rem; }
.aa-step p { font-size: .92rem; color: var(--text-muted); }

/* =========================================================================
   ARTISAN ARRAS — animations & finitions (100 % CSS, conforme CSP)
   ========================================================================= */
@keyframes aa-fade-up   { from { opacity:0; transform:translateY(22px); } to { opacity:1; transform:none; } }
@keyframes aa-fade-in   { from { opacity:0; } to { opacity:1; } }
@keyframes aa-grow-bar  { from { width:0; opacity:0; } to { width:64px; opacity:1; } }
@keyframes aa-float     { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-9px); } }
@keyframes aa-float2    { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-14px); } }
@keyframes aa-sway      { 0%,100% { transform:rotate(-3deg); } 50% { transform:rotate(3deg); } }
@keyframes aa-spark     { 0%,100% { opacity:.25; } 50% { opacity:1; } }
@keyframes aa-draw      { to { stroke-dashoffset:0; } }

@media (prefers-reduced-motion: no-preference) {
  /* Entrée du héros */
  .page-hero h1 { animation: aa-fade-up .8s cubic-bezier(.2,.7,.2,1) both; }
  .page-hero p  { animation: aa-fade-up .8s .16s cubic-bezier(.2,.7,.2,1) both; }
  .page-hero .hero-divider { animation: aa-grow-bar .7s .34s ease both; }

  /* Grilles : apparition en cascade */
  .aa-metiers .aa-metier { animation: aa-fade-up .55s ease both; }
  .aa-metiers .aa-metier:nth-child(1){animation-delay:.02s}.aa-metiers .aa-metier:nth-child(2){animation-delay:.06s}
  .aa-metiers .aa-metier:nth-child(3){animation-delay:.10s}.aa-metiers .aa-metier:nth-child(4){animation-delay:.14s}
  .aa-metiers .aa-metier:nth-child(5){animation-delay:.18s}.aa-metiers .aa-metier:nth-child(6){animation-delay:.22s}
  .aa-metiers .aa-metier:nth-child(7){animation-delay:.26s}.aa-metiers .aa-metier:nth-child(8){animation-delay:.30s}
  .aa-metiers .aa-metier:nth-child(9){animation-delay:.34s}.aa-metiers .aa-metier:nth-child(10){animation-delay:.38s}
  .aa-metiers .aa-metier:nth-child(11){animation-delay:.42s}.aa-metiers .aa-metier:nth-child(12){animation-delay:.46s}

  /* Icônes de métier : petit flottement au survol */
  .aa-metier:hover .aa-metier-ico { animation: aa-float 1.6s ease-in-out infinite; }
  .aa-card:hover  .aa-card-ico  { animation: aa-sway 1.2s ease-in-out infinite; }

  /* Illustration animée du héros */
  .aa-hero-illus .flo  { animation: aa-float  4.5s ease-in-out infinite; transform-origin:center; }
  .aa-hero-illus .flo2 { animation: aa-float2 6s   ease-in-out infinite; transform-origin:center; }
  .aa-hero-illus .spark{ animation: aa-spark  2.4s ease-in-out infinite; }
  .aa-hero-illus .draw { stroke-dasharray: 600; stroke-dashoffset: 600; animation: aa-draw 2.2s .3s ease forwards; }

  /* Révélation au défilement (CSS scroll-driven, sinon simple apparition) */
  @supports (animation-timeline: view()) {
    .aa-reveal { animation: aa-fade-up both linear; animation-timeline: view(); animation-range: entry 2% cover 22%; }
  }
}

/* Illustration du héros — mise en page */
.aa-hero-illus { width:min(600px,90vw); margin:1.4rem auto 0; display:block; }
.aa-hero-illus svg { width:100%; height:auto; display:block; filter: drop-shadow(0 10px 24px rgba(0,0,0,.28)); }

/* Bandeaux de section « artisanaux » */
.aa-section { margin: 2.6rem 0; }
.aa-section > h2 { font-family: var(--serif); color: var(--navy); font-size: 1.75rem; margin-bottom: .4rem; }
.aa-lead { color: var(--text-muted); font-size: 1.06rem; max-width: 720px; }
.aa-hr { height:3px; width:64px; background:linear-gradient(90deg,var(--gold),var(--terre)); border:0; border-radius:3px; margin:1.1rem 0 1.6rem; }

/* Cartes « pourquoi nous » / avantages */
.aa-feats { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:1.1rem; margin:1.4rem 0; }
.aa-feat { background:var(--white); border:1px solid var(--border); border-radius:14px; padding:1.35rem; box-shadow:var(--shadow-sm); }
.aa-feat .ic { width:46px;height:46px;border-radius:12px;background:var(--gold-pale);display:flex;align-items:center;justify-content:center;margin-bottom:.7rem;color:var(--gold-hover); }
.aa-feat .ic svg { width:26px;height:26px; }
.aa-feat h3 { font-size:1.1rem;color:var(--navy);margin-bottom:.35rem; }
.aa-feat p  { font-size:.94rem;color:var(--text-muted); }

/* Ruban de chiffres-clés */
.aa-stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:1rem; margin:1.6rem 0; }
.aa-stat { text-align:center; background:var(--navy); color:#fff; border-radius:14px; padding:1.3rem .8rem; }
.aa-stat b { display:block; font-family:var(--serif); font-size:2rem; color:var(--gold); line-height:1; }
.aa-stat span { font-size:.82rem; color:rgba(255,255,255,.72); }

/* Bloc CTA */
.aa-cta { background:linear-gradient(135deg,var(--navy),#3a2a20); color:#fff; border-radius:18px; padding:2.2rem 1.8rem; text-align:center; margin:2.6rem 0; }
.aa-cta h2 { color:#fff; font-family:var(--serif); }
.aa-cta p { color:rgba(255,255,255,.8); max-width:620px; margin:.5rem auto 1.2rem; }
.aa-cta .aa-btn { width:auto; padding:.85rem 2rem; }

/* FAQ (details) */
.aa-faq details { background:var(--white); border:1px solid var(--border); border-radius:12px; margin:.6rem 0; overflow:hidden; }
.aa-faq summary { cursor:pointer; padding:1rem 1.2rem; font-weight:600; color:var(--navy); list-style:none; position:relative; }
.aa-faq summary::-webkit-details-marker { display:none; }
.aa-faq summary::after { content:'+'; position:absolute; right:1.1rem; color:var(--gold); font-size:1.3rem; line-height:1; transition:transform .2s; }
.aa-faq details[open] summary::after { transform:rotate(45deg); }
.aa-faq details > div { padding:0 1.2rem 1.1rem; color:var(--text-muted); }

/* Grille des communes couvertes */
.aa-communes-grid { display:flex; flex-wrap:wrap; gap:.5rem; margin:1.2rem 0; }
.aa-commune-chip { background:var(--gold-pale); color:var(--gold-hover); border:1px solid var(--border-gold); border-radius:999px; padding:.35rem .9rem; font-size:.88rem; font-weight:600; }

/* =========================================================================
   ARTISAN ARRAS — infographies animées (barres, schémas, parcours)
   ========================================================================= */
.aa-infographic { margin: 1.4rem 0; background:var(--white); border:1px solid var(--border); border-radius:16px; padding:1.4rem 1.5rem; box-shadow:var(--shadow-sm); }
.aa-infographic h3 { color:var(--navy); font-size:1.15rem; margin-bottom:.2rem; }
.aa-infographic .cap { font-size:.8rem; color:var(--text-muted); font-style:italic; margin-bottom:1rem; }
.aa-infographic svg { width:100%; height:auto; display:block; }

/* Barres de répartition */
.aa-bars { display:flex; flex-direction:column; gap:.7rem; }
.aa-bar { display:grid; grid-template-columns:150px 1fr 44px; align-items:center; gap:.7rem; }
.aa-bar .lab { font-size:.9rem; color:var(--text); font-weight:600; }
.aa-bar .track { background:var(--gold-pale); border-radius:8px; height:16px; overflow:hidden; }
.aa-bar .fill { height:100%; border-radius:8px; background:linear-gradient(90deg,var(--gold),var(--terre)); transform-origin:left center; }
.aa-bar .val { font-size:.82rem; color:var(--gold-hover); font-weight:700; text-align:right; }
@media (max-width:560px){ .aa-bar{ grid-template-columns:110px 1fr 40px; } .aa-bar .lab{ font-size:.8rem; } }

@keyframes aa-bar-grow { from { transform:scaleX(0);} to { transform:scaleX(1);} }
@media (prefers-reduced-motion: no-preference){
  @supports (animation-timeline: view()){
    .aa-bar .fill { animation: aa-bar-grow 1.2s cubic-bezier(.2,.7,.2,1) both; animation-timeline: view(); animation-range: entry 2% cover 26%; }
    .aa-draw-on-scroll { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: aa-draw 2s ease forwards; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  }
  /* Repli navigateurs sans scroll-timeline : dessin à l'affichage */
  @supports not (animation-timeline: view()){
    .aa-draw-on-scroll { stroke-dasharray:1200; stroke-dashoffset:1200; animation: aa-draw 2.2s .3s ease forwards; }
  }
  .aa-infographic .flo  { animation: aa-float  5s ease-in-out infinite; transform-origin:center; }
  .aa-infographic .flo2 { animation: aa-float2 6.5s ease-in-out infinite; transform-origin:center; }
  .aa-infographic .spark{ animation: aa-spark 2.6s ease-in-out infinite; }
  .aa-badge-pop { animation: aa-fade-up .6s ease both; }
}

/* Schéma maison : badges métiers */
.aa-house-badge circle { fill:#fff; stroke:var(--gold); stroke-width:2; }
.aa-house-badge text.ico { font-size:20px; }
.aa-house-label { font-family:system-ui,sans-serif; font-size:12.5px; font-weight:600; fill:var(--navy); }
.aa-house-lead { stroke:var(--border-gold); stroke-width:1.5; stroke-dasharray:3 3; }

/* Parcours (journey) */
.aa-journey { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:1rem; margin-top:.6rem; }
.aa-jstep { position:relative; background:var(--parchment); border:1px solid var(--border); border-radius:12px; padding:1rem; }
.aa-jstep .n { position:absolute; top:-14px; left:14px; width:30px;height:30px;border-radius:50%;background:var(--gold);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-family:var(--serif); }
.aa-jstep h4 { margin:.5rem 0 .2rem; color:var(--navy); font-size:1rem; }
.aa-jstep p { font-size:.85rem; color:var(--text-muted); }

/* Checklist animée */
.aa-checklist { list-style:none; margin:1rem 0; display:grid; gap:.55rem; }
.aa-checklist li { display:flex; align-items:flex-start; gap:.7rem; background:var(--white); border:1px solid var(--border); border-left:3px solid var(--gold); border-radius:10px; padding:.7rem .9rem; font-size:.95rem; color:var(--text); }
.aa-checklist li .ck { flex:0 0 auto; width:22px; height:22px; border-radius:50%; background:var(--gold); color:#fff; display:flex; align-items:center; justify-content:center; font-size:.8rem; font-weight:800; }
@media (prefers-reduced-motion: no-preference){
  .aa-checklist li { animation: aa-fade-up .5s ease both; }
  .aa-checklist li:nth-child(2){animation-delay:.05s}.aa-checklist li:nth-child(3){animation-delay:.1s}.aa-checklist li:nth-child(4){animation-delay:.15s}.aa-checklist li:nth-child(5){animation-delay:.2s}.aa-checklist li:nth-child(6){animation-delay:.25s}.aa-checklist li:nth-child(7){animation-delay:.3s}.aa-checklist li:nth-child(8){animation-delay:.35s}.aa-checklist li:nth-child(9){animation-delay:.4s}.aa-checklist li:nth-child(10){animation-delay:.45s}
}

/* ─── Vignette image des cartes annuaire (extraits avec image) ─────────────── */
.aa-card--media { padding-top: 0; overflow: hidden; }
.aa-card-media { display: block; margin: 0 -1.25rem .7rem; overflow: hidden; line-height: 0; background: #efe7d8; }
.aa-card-media img { width: 100%; height: 172px; object-fit: cover; display: block; transition: transform .35s ease; }
.aa-card:hover .aa-card-media img { transform: scale(1.045); }
@media (prefers-reduced-motion: reduce) { .aa-card-media img { transition: none; } }

/* ─── Sidebar annuaire (blog) : liste des métiers ─────────────────────────── */
.aa-side-metiers { list-style: none; margin: 0; padding: 0; }
.aa-side-metiers li { margin: 0; }
.aa-side-metiers a { display: flex; align-items: center; gap: .55rem; padding: .5rem .3rem; border-bottom: 1px solid var(--border); color: var(--navy); text-decoration: none; font-size: .95rem; transition: color .15s, padding-left .15s; }
.aa-side-metiers a:hover { color: var(--terre); padding-left: .6rem; }
.aa-side-metiers .aa-sm-ic { font-size: 1.05rem; }
.aa-side-all { margin: .7rem 0 0; }
.aa-side-all a { color: var(--terre); font-weight: 600; text-decoration: none; }
.aa-side-cta { background: var(--parchment); border: 1px solid var(--border); border-radius: 10px; padding: 1rem; }
.aa-side-cta p { margin: 0 0 .5rem; font-size: .92rem; }
.aa-side-cta .aa-btn { display: inline-block; margin-top: .2rem; }

/* ─── Cartes métiers avec image (page annuaire) ───────────────────────────── */
.aa-metier--media { padding-top: 0; overflow: hidden; }
.aa-metier-media { display: block; margin: 0 -1.2rem .8rem; overflow: hidden; line-height: 0; background: #efe7d8; }
.aa-metier-media img { width: 100%; height: 168px; object-fit: cover; display: block; transition: transform .35s ease; }
.aa-metier:hover .aa-metier-media img { transform: scale(1.05); }
.aa-metier-head { display: flex; align-items: center; gap: .5rem; }
.aa-metier--media .aa-metier-ico { font-size: 1.25rem; }
@media (prefers-reduced-motion: reduce) { .aa-metier-media img { transition: none; } }

/* ─── Bouton CTA fiche : lisibilité (override .article-body a) ─────────────── */
.article-body a.aa-btn, a.aa-btn { color: #fff !important; text-decoration: none !important; background: var(--terre); }
.article-body a.aa-btn:hover, a.aa-btn:hover { color: #fff !important; background: #9b4327; }

/* ─── Fiche : contenu plus large (moins "boxed") ──────────────────────────── */
.card-fiche { max-width: var(--max-w); }
@media (min-width: 981px) {
  .card-fiche .aa-fiche-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 2.5rem; }
}

/* ─── "Le saviez-vous ?" — encart infographie de fin de fiche ──────────────── */
.aa-tidbit { position: relative; background: linear-gradient(135deg, var(--parchment) 0%, #f3ead9 100%); border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: 14px; padding: 1.6rem 1.7rem; margin: .5rem 0; box-shadow: var(--shadow-sm); overflow: hidden; }
.aa-tidbit::before { content: "💡"; position: absolute; top: 1rem; right: 1.2rem; font-size: 1.7rem; opacity: .55; }
.aa-tidbit h3 { margin: 0 0 .6rem; font-family: var(--serif); color: var(--terre); font-size: 1.2rem; padding-right: 2rem; }
.aa-tidbit p { margin: .35rem 0; }
.aa-tidbit .aa-stats, .aa-tidbit .aa-bars { margin-top: 1rem; }
.aa-tidbit .aa-fact { display: flex; align-items: baseline; gap: .6rem; margin: .5rem 0; }
.aa-tidbit .aa-fact b { font-family: var(--serif); font-size: 1.5rem; color: var(--gold-hover, var(--terre)); line-height: 1; }

/* ─── Fiche en une seule colonne : carte d'identité en haut (fin des vides) ── */
.aa-fiche-flow { display: block; }
.aa-idcard { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 1.6rem; align-items: stretch; background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 1.4rem 1.5rem; margin: 0 0 2rem; box-shadow: var(--shadow-sm); }
.aa-idcard-col { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.aa-idcard-col .aa-fiche-cta { margin-top: auto; }
.aa-idcard-map { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.aa-idcard-map .aa-map { max-width: 100% !important; }
@media (max-width: 820px) { .aa-idcard { grid-template-columns: 1fr; } }
