/*
 * ADICARE – public site styles.
 *
 * Design system: docs/design/DESIGN.md (light) and DESIGN-DARK.md (dark), an
 * analysis of the former adicare.org. Every colour, size and radius below
 * comes from the tokens in :root; do not hard-code colours further down.
 * Where the analysis and the former site differ, the site wins (see
 * docs/design/README.md).
 */

/* Fonts (self-hosted: no request to Google, no cookie) --------------------- */
@font-face { font-family: "Roboto Slab"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/roboto-slab-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto Slab"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/roboto-slab-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto Slab"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/roboto-slab-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto Slab"; font-weight: 900; font-style: normal; font-display: swap; src: url("../fonts/roboto-slab-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/roboto-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/roboto-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/roboto-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Hammersmith One"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/hammersmith-one-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Shadows Into Light"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/shadows-into-light-latin-400-normal.woff2") format("woff2"); }

/* Tokens (DESIGN.md) ------------------------------------------------------ */
:root {
    color-scheme: light;

    /* Brand & accent */
    --color-primary: #d12018;          /* cardiac red: CTAs, category headings, links, fields, contact band */
    --color-primary-hover: #a9160f;
    --color-primary-tint: #fbeceb;     /* background of a field in error */
    --color-link: #d12018;             /* text links (lighter in dark mode, for contrast) */
    --color-label: #d12018;            /* form labels (lighter in dark mode, for contrast) */
    --color-link-hover: #a9160f;
    --color-on-primary: #ffffff;
    --color-legacy-grey: #737373;      /* secondary action ("Faire un legs"); #808080 in DESIGN.md, darkened so white text reaches 4.5:1 */
    --color-legacy-grey-hover: #666666;
    --color-leaf-green: #8cc640;       /* current nav item only */

    /* Surfaces */
    --color-canvas: #ffffff;
    --color-surface-soft: #f6f6f6;
    --color-footer-night: #202020;
    --color-footer-rule: #333333;
    --color-hairline: #eeeeee;
    --color-rule: #dddddd;             /* table cell borders (a hairline is too faint there) */

    /* Text */
    --color-ink-deep: #111111;         /* page titles, callout heading */
    --color-ink: #333333;              /* nav, field text */
    --color-body: #666666;             /* running copy */
    --color-mute: #999999;             /* footer copy (on the dark band) and decorative marks; too light for text on white */
    --color-ring: #777777;             /* footer social circles */

    /* Depth */
    --shadow-header: 0 3px 10px rgba(0, 0, 0, .15);   /* the only shadow of the page */
    --shadow-menu: 0 8px 20px rgba(0, 0, 0, .14);
    --overlay: rgba(0, 0, 0, .88);

    /* Type */
    --font-slab: "Roboto Slab", Georgia, "Times New Roman", serif;
    --font-ui: "Roboto", Arial, Helvetica, sans-serif;          /* action buttons only */
    --font-callout: "Hammersmith One", "Roboto Slab", Arial, sans-serif;
    --font-script: "Shadows Into Light", "Roboto Slab", serif;  /* slider titles */

    /* Shapes & spacing */
    --radius-xs: 4px;      /* buttons, photos */
    --radius-md: 12px;     /* form fields */
    --radius-full: 9999px; /* icon holders, social circles, slider bullets */
    --space-xxs: 5px;
    --space-xs: 8px;
    --space-sm: 10px;
    --space-md: 15px;
    --space-lg: 20px;
    --space-xl: 25px;
    --container: 1170px;
    --nav-height: 90px;
    --header-top-height: 130px;   /* logo row; set exactly by site.js */
}

/* Dark mode (DESIGN-DARK.md): set by /assets/js/theme.js on <html>, from the
   visitor's choice or their system setting. The editor (TinyMCE) never gets it.
   Screen only: a page printed from the dark theme prints on the light values. */
@media screen {
    :root[data-theme="dark"] {
        color-scheme: dark;
        --color-primary-tint: #3a1614;
        --color-link: #ff6b61;             /* #d12018 on this canvas is 3.5:1, too low for small text */
        --color-link-hover: #ff9189;
        --color-label: #ff6b61;
        --color-canvas: #161313;
        --color-surface-soft: #221d1d;
        --color-footer-night: #0c0a0a;
        --color-footer-rule: #221d1d;
        --color-hairline: #2e2828;
        --color-rule: #3a3333;
        --color-ink-deep: #ffffff;
        --color-ink: #e6e1e1;
        --color-body: #b3acac;
        --color-mute: #8a8484;
        --shadow-header: 0 3px 10px rgba(0, 0, 0, .55);
        --shadow-menu: 0 8px 20px rgba(0, 0, 0, .5);
    }
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--color-canvas); }
body {
    margin: 0;
    font-family: var(--font-slab);
    font-size: 14px;          /* typography.body */
    font-weight: 300;
    line-height: 1.75;
    color: var(--color-body);
    background: var(--color-canvas);
}
img, video { max-width: 100%; height: auto; }
iframe { max-width: 100%; border: 0; }
a { color: var(--color-link); text-decoration: none; }
a:hover, a:focus { color: var(--color-link-hover); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--color-ink-deep); outline-offset: 2px; }
b, strong { font-weight: 700; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-slab);
    font-weight: 700;
    color: var(--color-ink-deep);
    line-height: 1.5;
    margin: 0 0 .5em;
}
h1 { font-size: 30px; }   /* typography.heading-1 */
h2 { font-size: 24px; }   /* typography.heading-2 */
h3 { font-size: 22px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
hr { border: 0; height: 2px; background: var(--color-primary); margin: 30px 0; }
blockquote { margin: 0 0 1em; padding: 10px 20px; border-left: 4px solid var(--color-primary); background: var(--color-surface-soft); line-height: 1.6; }
table { border-collapse: collapse; margin: 0 0 1.5em; max-width: 100%; }
th, td { padding: 6px 10px; border: 1px solid var(--color-rule); vertical-align: top; }
th { color: var(--color-ink-deep); font-weight: 700; background: var(--color-surface-soft); }

.container { width: 100%; max-width: calc(var(--container) + 30px); margin: 0 auto; padding: 0 15px; }
.visually-hidden, .screen-reader-text {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 10px; top: -60px; z-index: 1000;
    background: var(--color-canvas); color: var(--color-link); padding: 10px 16px;
    border-radius: var(--radius-xs); box-shadow: var(--shadow-header);
}
.skip-link:focus { top: 10px; }

/* Buttons (button-primary / button-secondary) ------------------------------ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px;                     /* clears the 44 × 44 touch target */
    font-family: var(--font-ui); font-size: 14px; font-weight: 500; line-height: 1;
    text-transform: uppercase; letter-spacing: 1px;
    padding: 10px 18px; border: 2px solid transparent; border-radius: var(--radius-xs);
    cursor: pointer; text-decoration: none; transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover, .btn:focus { text-decoration: none; }
.btn-primary { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-on-primary); }
.btn-primary:hover, .btn-primary:focus { background: var(--color-primary-hover); border-color: var(--color-primary-hover); color: var(--color-on-primary); }
.btn-grey { background: var(--color-legacy-grey); border-color: var(--color-legacy-grey); color: var(--color-on-primary); }
.btn-grey:hover, .btn-grey:focus { background: var(--color-legacy-grey-hover); border-color: var(--color-legacy-grey-hover); color: var(--color-on-primary); }
.btn-outline { background: transparent; border-color: var(--color-primary); color: var(--color-link); }
.btn-outline:hover, .btn-outline:focus { background: var(--color-primary); color: var(--color-on-primary); }
.btn-small { min-height: 36px; font-size: 12px; padding: 7px 14px; }
.btn[disabled], .btn.is-disabled { opacity: .45; cursor: not-allowed; }
.btn .fa { font-size: 20px; }

/* Strip at the top of a test copy of the site (config 'test_banner'). */
.test-banner, .site-notice {
    margin: 0; padding: 6px 15px; text-align: center;
    font: 500 13px/1.5 var(--font-ui); letter-spacing: .3px;
    background: var(--color-ink-deep); color: var(--color-canvas);
}

/* Header (site-header) ------------------------------------------------------ */
.site-header { background: var(--color-canvas); box-shadow: var(--shadow-header); position: relative; z-index: 50; }
.header-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-logo { display: block; line-height: 0; }
.site-logo img { width: 350px; height: auto; }
.site-tagline { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.header-buttons { display: flex; gap: 2px; margin-top: 19px; }

.menu-toggle {
    display: none; align-items: center; gap: 10px;
    background: none; border: 2px solid var(--color-ink); border-radius: var(--radius-xs);
    color: var(--color-ink); font: 700 15px var(--font-slab); padding: 8px 14px; cursor: pointer;
}
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
    display: block; width: 22px; height: 3px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s;
}
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -7px; }
.menu-toggle-bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Navigation (nav-link / nav-link-active) */
.nav-inner { display: flex; align-items: center; }
.main-nav .menu { list-style: none; margin: 0; padding: 0 0 0 20px; display: flex; flex-wrap: wrap; flex: 1; }
.main-nav .menu > .menu-item { position: relative; display: flex; align-items: center; }
.main-nav .menu > .menu-item > a,
.main-nav .menu > .menu-item > .menu-label {
    display: block; padding: 0 20px; line-height: var(--nav-height);
    font-family: var(--font-slab); font-weight: 900; font-size: 18.2px; color: var(--color-ink); cursor: pointer;
    transition: padding .2s, line-height .2s;
}
.main-nav .menu > .menu-item.has-children > a,
.main-nav .menu > .menu-item.has-children > .menu-label { padding-right: 4px; }
.main-nav .menu > .menu-item > a:hover,
.main-nav .menu > .menu-item:hover > .menu-label { color: var(--color-link); text-decoration: none; }
/* "You are here": leaf green, and only here. */
.main-nav .menu > .menu-item.is-active > a,
.main-nav .menu > .menu-item.is-active > .menu-label { color: var(--color-leaf-green); text-decoration: none; }
.submenu-toggle {
    background: none; border: 0; padding: 0 14px 0 2px; margin: 0; cursor: pointer; color: var(--color-ink); align-self: stretch;
}
.submenu-toggle::after { content: "\f107"; font-family: "ADICARE Icons"; font-size: 16px; }
.menu-item.has-children:hover > .submenu-toggle { color: var(--color-link); }
/* The whole "you are here" trail is green: parents, their carets, labels. */
.main-nav .menu-item.is-active > .submenu-toggle,
.main-nav .menu-item.is-active:hover > .submenu-toggle { color: var(--color-leaf-green); }
.sub-menu {
    list-style: none; margin: 0; padding: 8px 0;
    position: absolute; left: 0; top: 100%; min-width: 230px; background: var(--color-canvas);
    box-shadow: var(--shadow-menu); border-top: 3px solid var(--color-primary);
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .15s, transform .15s, visibility .15s;
}
.sub-menu .sub-menu { left: 100%; top: -11px; }
/* A panel opens when site.js marks it open (click, tap, Enter on its caret),
   and on hover where the device really hovers: the "hover" a tap leaves would
   hold it open while the finger scrolls. Without JavaScript, hover and
   keyboard focus open it. */
.menu-item.is-open > .sub-menu,
html:not(.js) .menu-item.has-children:hover > .sub-menu,
html:not(.js) .menu-item.has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) {
    .menu-item.has-children:hover > .sub-menu { opacity: 1; visibility: visible; transform: none; }
}
.sub-menu .menu-item { position: relative; display: flex; flex-wrap: wrap; align-items: center; }
.sub-menu a, .sub-menu .menu-label { display: block; flex: 1; padding: 9px 18px; font-size: 14px; font-weight: 400; color: var(--color-ink); line-height: 1.5; }
.sub-menu a:hover { color: var(--color-link); background: var(--color-surface-soft); text-decoration: none; }
.sub-menu .is-active > a,
.sub-menu .is-active > .menu-label { color: var(--color-leaf-green); }
.sub-menu .submenu-toggle { padding: 0 12px; }
.sub-menu .submenu-toggle::after { content: "\f105"; }

/* Compact "Faire un don" shown in the nav row once the logo row has scrolled away. */
.nav-cta { display: none; flex: 0 0 auto; min-height: 40px; padding: 8px 14px; margin-left: 10px; }

/* Sticky header (desktop): the logo row scrolls away, the nav row stays on top
   with the header's shadow under it. No JavaScript needed for the sticking. */
@media (min-width: 1024px) {
    html { scroll-padding-top: calc(var(--nav-height) + 10px); }
    .site-header { position: sticky; top: calc(-1 * var(--header-top-height)); }
    .site-header.is-stuck .nav-cta { display: inline-flex; }
    .site-header.is-stuck .main-nav .menu > .menu-item > a,
    .site-header.is-stuck .main-nav .menu > .menu-item > .menu-label { padding: 0 12px; }
    .site-header.is-stuck .main-nav .menu > .menu-item.has-children > a,
    .site-header.is-stuck .main-nav .menu > .menu-item.has-children > .menu-label { padding-right: 2px; }
}

/* Content ---------------------------------------------------------------- */
.site-content { display: block; min-height: 40vh; }
.site-content:focus { outline: none; }
/* breadcrumb / breadcrumb-current */
.breadcrumbs { padding: 20px 0; border-bottom: 1px solid var(--color-hairline); margin-bottom: 20px; font-size: 14px; font-weight: 400; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.breadcrumbs li { color: var(--color-link); }
.breadcrumbs li + li::before { content: "\f0da"; font-family: "ADICARE Icons"; color: var(--color-mute); margin: 0 10px; font-size: 11px; }
.breadcrumbs a { color: var(--color-body); }
.breadcrumbs a:hover { color: var(--color-link); }
.page-title { font-size: 30px; line-height: 1.5; margin: 8px 0 18px; color: var(--color-ink-deep); }
.entry { padding-bottom: 10px; }
.entry-meta { font-size: 14px; color: var(--color-body); margin-top: -10px; }
.entry-image { margin: 0 0 20px; }
.entry-content::after { content: ""; display: block; clear: both; }
.entry-content h1 { font-size: 30px; }
.entry-content h3 { font-size: 24px; }   /* category headings of the former site */
.entry-content h4 { font-size: 18px; }
.entry-content ul li, .entry-content ol li { margin-bottom: .3em; }
.font-accent { font-family: var(--font-callout) !important; font-weight: 400 !important; }
.alignleft { float: left; margin: 5px 20px 10px 0; }
.alignright { float: right; margin: 5px 0 10px 20px; }
.aligncenter { display: block; margin: 0 auto 1em; text-align: center; }
.block { margin-bottom: 20px; }
.spacer { display: block; }
.button-row { margin: 10px 0 20px; }

/* Grid (replaces WPBakery rows/columns) */
.row { display: flex; flex-wrap: wrap; margin: 0 -15px 10px; }
.row-middle { align-items: center; }
.col { flex: 0 0 100%; max-width: 100%; padding: 0 15px; min-width: 0; }
@media (min-width: 768px) {
    .col-1 { flex-basis: 8.3333%; max-width: 8.3333%; }
    .col-2 { flex-basis: 16.6667%; max-width: 16.6667%; }
    .col-3 { flex-basis: 25%; max-width: 25%; }
    .col-4 { flex-basis: 33.3333%; max-width: 33.3333%; }
    .col-5 { flex-basis: 41.6667%; max-width: 41.6667%; }
    .col-6 { flex-basis: 50%; max-width: 50%; }
    .col-7 { flex-basis: 58.3333%; max-width: 58.3333%; }
    .col-8 { flex-basis: 66.6667%; max-width: 66.6667%; }
    .col-9 { flex-basis: 75%; max-width: 75%; }
    .col-10 { flex-basis: 83.3333%; max-width: 83.3333%; }
    .col-11 { flex-basis: 91.6667%; max-width: 91.6667%; }
    .col-12 { flex-basis: 100%; max-width: 100%; }
}

/* Images (service-card photos: 4px corners, as on the former site) */
.image { margin: 0 0 20px; }
.image-center { text-align: center; }
.image-right { text-align: right; }
.image img { display: inline-block; vertical-align: top; }
.image h4 { margin-bottom: 8px; }
.image figcaption { font-size: 13px; color: var(--color-body); margin-top: 6px; }
.image-rounded a, .image-rounded img { border-radius: var(--radius-xs); }
.image-rounded a { display: inline-block; overflow: hidden; line-height: 0; }
.image-rounded a img { transition: transform .5s ease; }
.image-rounded a:hover img { transform: scale(1.05); }
.image-circle img, img.image-circle { border-radius: 50%; aspect-ratio: 1 / 1; object-fit: cover; }
img.image-rounded { border-radius: var(--radius-xs); }
.image-circle { margin-bottom: 8px; }

/* Icon boxes (support-callout) */
.icon-box { margin: 0 0 20px; padding: 10px 20px; }
.icon-box-center { text-align: center; }
.icon-box-icon { margin: 0 0 8px; line-height: 1; }
.icon-box-icon .fa { font-size: 50px; color: var(--color-primary); transition: color .2s; }
.icon-box-icon a:hover .fa { color: var(--color-primary-hover); }
.icon-box-title { font-family: var(--font-callout); font-weight: 400; font-size: 24px; line-height: 1.5; color: var(--color-ink-deep); }
.icon-box-title a { color: inherit; }
.icon-box-title a:hover { color: var(--color-link); text-decoration: none; }
.icon-box-text p:last-child { margin-bottom: 0; }
.icon-box-text a { font-weight: 400; }   /* call-to-action link ("DONNER À ADICARE"), typography.link */

/* Separators */
hr.separator { background: var(--color-hairline); height: 1px; margin: 25px auto; }
hr.separator-red { background: var(--color-primary); height: 2px; }
hr.separator-short { width: 50px; }
hr.separator-short.separator-red { height: 3px; }

/* Videos, maps, galleries */
.video-title { color: var(--color-link); font-size: 20px; margin-top: 10px; }
.video-embed { position: relative; aspect-ratio: 16 / 9; margin: 0 0 30px; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-embed { position: relative; aspect-ratio: 16 / 9; max-height: 450px; margin: 0 0 20px; }
.map-embed iframe { width: 100%; height: 100%; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 0 0 25px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; border-radius: var(--radius-xs); display: block; }
.gallery-carousel {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px;
    scrollbar-width: thin; position: relative; padding-bottom: 6px;
}
.gallery-carousel figure { flex: 0 0 100%; scroll-snap-align: center; }
.gallery-carousel img { aspect-ratio: auto; object-fit: contain; max-height: 70vh; background: var(--color-surface-soft); }
.carousel-wrap { position: relative; margin: 0 0 25px; }
.carousel-wrap .gallery-carousel { margin: 0; }
.carousel-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 44px; height: 44px; border-radius: var(--radius-full); border: 0; cursor: pointer;
    background: var(--color-canvas); color: var(--color-ink-deep); font-size: 26px; line-height: 1; box-shadow: var(--shadow-header);
}
.carousel-nav.prev { left: 10px; }
.carousel-nav.next { right: 10px; }

/* Lightbox */
.lightbox-overlay {
    position: fixed; inset: 0; z-index: 1000; background: var(--overlay);
    display: flex; align-items: center; justify-content: center; padding: 40px 20px;
}
.lightbox-overlay img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-overlay button { position: absolute; top: 12px; right: 16px; background: none; border: 0; color: #fff; font-size: 36px; cursor: pointer; }

/* Timeline (history page) */
.timeline { list-style: none; margin: 20px 0 30px; padding: 0 0 0 40px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 14px; top: 6px; bottom: 6px; width: 3px; background: var(--color-hairline); }
.timeline li { position: relative; margin: 0 0 22px; background: var(--color-surface-soft); border-bottom: 3px solid var(--color-primary); padding: 14px 18px; }
.timeline li > .fa {
    position: absolute; left: -40px; top: 12px; width: 30px; height: 30px; border-radius: var(--radius-full);
    background: var(--color-primary); color: var(--color-on-primary); display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.timeline h3 { font-size: 18px; margin-bottom: 4px; }
.timeline-date { color: var(--color-link); font-weight: 700; margin: 0 0 2px; font-size: 13px; }

/* Tabs converted to sections, callouts, lists */
.tab-section { margin-bottom: 25px; }
.callout { background: var(--color-surface-soft); border-left: 4px solid var(--color-primary); padding: 18px 22px; margin: 0 0 20px; }
.link-list { list-style: none; padding: 0; }
.link-list li { padding: 10px 0; border-bottom: 1px solid var(--color-hairline); }

/* Tables from the old child theme */
table.tableau-large, table.pathologies { width: 50%; min-width: 300px; }
table.tableau-large td, table.pathologies td { text-align: center; border: 1px solid var(--color-legacy-grey); }
table.tableau-large td:first-child, table.pathologies td:first-child { text-align: left; }
table.tableau-large .entete-ligne { border-right: 1px solid var(--color-legacy-grey); }

/* Post grid (service-card: photo + heading) */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; margin: 10px 0 30px; }
.post-card { display: flex; flex-direction: column; }
.post-card-image { display: block; overflow: hidden; border-radius: var(--radius-xs); margin-bottom: 12px; line-height: 0; }
.post-card-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s; }
.post-card-image:hover img { transform: scale(1.05); }
.post-card-title { font-size: 19px; margin-bottom: 6px; }
.post-card-title a { color: var(--color-ink-deep); }
.post-card-title a:hover { color: var(--color-link); text-decoration: none; }
.post-card-excerpt { font-size: 14px; flex: 1; }

/* Structured lists ([liste nom="…"] in a page, see Content\Lists) ---------- */
/* Videos and podcasts: a preview image; the platform's player loads on click. */
.list-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 36px 30px; margin: 10px 0 30px; }
.list-media-item { min-width: 0; }
.video-lite, .video-lite-frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-xs); overflow: hidden; background: #111; }
.video-lite img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.video-lite:hover img { transform: scale(1.03); }
.video-lite.no-thumb { background: linear-gradient(135deg, #3a3a3a, #111); }
.video-lite-play {
    position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff;
    background: var(--color-primary); box-shadow: 0 2px 10px rgba(0, 0, 0, .35); transition: background-color .2s, transform .2s;
}
.video-lite:hover .video-lite-play, .video-lite:focus-visible .video-lite-play { background: var(--color-primary-hover); transform: scale(1.06); }
.list-media-player { display: block; width: 100%; }
/* Podcast player (Spotify, Deezer, Apple Podcasts) before the click */
.audio-lite { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 72px; padding: 12px 16px; border: 1px solid var(--color-rule); border-radius: var(--radius-md); background: var(--color-surface-soft); color: var(--color-ink); text-decoration: none; }
.audio-lite:hover, .audio-lite:focus-visible { border-color: var(--color-primary); text-decoration: none; color: var(--color-ink-deep); }
.audio-lite-play { flex: 0 0 46px; height: 46px; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; background: var(--color-primary); color: var(--color-on-primary); font-size: 18px; }
.audio-lite-label { font: 500 15px/1.4 var(--font-ui); }
.audio-lite-frame { display: block; width: 100%; border: 0; border-radius: var(--radius-md); }
/* Maps and other embeds of page bodies before the click */
.embed-lite { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; aspect-ratio: 16 / 9; max-height: 450px; margin: 0 0 20px; padding: 20px; background: var(--color-surface-soft); border: 1px solid var(--color-rule); border-radius: var(--radius-xs); text-align: center; }
.embed-lite-link { font-size: 13px; }
.embed-lite-frame { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 450px; border: 0; margin: 0 0 20px; }
.list-media-title { font-size: 18px; line-height: 1.45; margin: 12px 0 4px; }
.list-media-meta { margin: 0 0 6px; font-size: 13px; color: var(--color-body); }
.list-tag { display: inline-block; margin-right: 8px; padding: 0 9px; border-radius: var(--radius-full); background: var(--color-surface-soft); color: var(--color-ink); font: 500 12px/22px var(--font-ui); }
.list-media-text { margin: 4px 0 0; }

/* Books */
.list-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 500px), 1fr)); gap: 40px 34px; margin: 10px 0 30px; }
.list-book { display: flex; gap: 22px; align-items: flex-start; }
.list-book-cover { flex: 0 0 150px; }
.list-book-cover img { display: block; width: 100%; height: auto; border-radius: var(--radius-xs); box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
.list-book-body { min-width: 0; }
.list-book-title { font-size: 20px; line-height: 1.4; margin: 0 0 4px; }
.list-book-subtitle { margin: 0 0 4px; font-weight: 700; color: var(--color-ink); }
.list-book-authors { margin: 0 0 8px; color: var(--color-ink); }
.list-book-text > :last-child { margin-bottom: 0; }
.list-book-details { list-style: none; margin: 10px 0; padding: 0; font-size: 13px; }
.entry-content .list-book-details li { margin: 0; }
.list-book-images { grid-template-columns: repeat(auto-fill, minmax(110px, 160px)); margin: 10px 0 14px; }
.list-book-images img { aspect-ratio: auto; object-fit: contain; background: var(--color-surface-soft); }

/* Partners */
.list-partners { margin: 10px 0 30px; }
.list-partner { display: flex; gap: 30px; align-items: flex-start; padding: 24px 0; border-bottom: 1px solid var(--color-hairline); }
.list-partner:last-child { border-bottom: 0; }
.list-partner-logo { flex: 0 0 170px; }
.list-partner-logo img { display: block; width: 100%; height: auto; border-radius: var(--radius-xs); }
.list-partner-body { min-width: 0; max-width: 800px; }
.list-partner-name { margin: 0 0 6px; font-size: 18px; line-height: 1.4; color: var(--color-link); }
.list-partner-name a { color: inherit; }
.list-partner-text > :last-child { margin-bottom: 0; }

/* People, by group */
.list-group-title { margin: 30px 0 18px; font-size: 24px; color: var(--color-link); }
.list-people { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 30px 20px; }
.entry-content .list-people li { margin: 0; }
.list-person { text-align: center; }
.list-person-link { display: block; color: inherit; }
.list-person-link:hover, .list-person-link:focus { text-decoration: none; }
.list-person-photo { display: block; width: 100px; height: 100px; margin: 0 auto 10px; border-radius: 50%; object-fit: cover; }
.list-person-placeholder { display: flex; align-items: center; justify-content: center; background: var(--color-surface-soft); color: var(--color-mute); font-size: 40px; }
.list-person-name { display: block; font-size: 17px; line-height: 1.4; color: var(--color-ink-deep); }
.list-person-link:hover .list-person-name { color: var(--color-link); }
.list-person-role { display: block; margin-top: 4px; line-height: 1.5; }

/* Events */
.list-events { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 0 40px; align-items: start; margin: 10px 0 30px; }
.list-event { min-width: 0; padding: 0 0 34px; margin: 0 0 34px; border-bottom: 1px solid var(--color-hairline); }
.list-event-kicker { margin: 0 0 4px; color: var(--color-link); font-weight: 700; font-size: 16px; }
.list-event-title { margin: 0 0 12px; font-size: 22px; line-height: 1.4; }
.list-event-text > :last-child { margin-bottom: 0; }
.list-event .gallery { margin: 16px 0; }
/* One photo: shown whole, not cropped like the thumbnails of a gallery grid. */
.list-event .gallery:not(.gallery-carousel) { display: block; }
.list-event .gallery:not(.gallery-carousel) img { width: auto; height: auto; max-width: 100%; max-height: 420px; aspect-ratio: auto; object-fit: contain; }
.list-event .gallery-carousel img { max-height: 420px; }

/* Testimonials */
.list-testimonies { margin: 10px 0 30px; }
.list-testimony { display: flow-root; padding: 0 0 30px; margin: 0 0 30px; border-bottom: 1px solid var(--color-hairline); }
.list-testimony:last-child { border-bottom: 0; margin-bottom: 0; }
.list-testimony-name { margin: 0 0 14px; font-size: 20px; line-height: 1.4; color: var(--color-ink-deep); }
.list-testimony-subtitle { display: block; font-size: 15px; color: var(--color-body); }
.list-testimony-photo { float: left; max-width: min(350px, 45%); margin: 4px 24px 12px 0; }
.list-testimony-photo img { display: block; width: auto; max-width: 100%; height: auto; border-radius: var(--radius-xs); }
.list-testimony-text > :last-child { margin-bottom: 0; }
.list-testimony-more { clear: both; padding-top: 6px; margin: 0; }

/* Grant holders */
.list-fellows .list-person-role p { margin: 0; }

@media (max-width: 600px) {
    .list-testimony-photo { float: none; max-width: 100%; margin: 0 0 12px; }
    .list-book, .list-partner { flex-direction: column; gap: 12px; }
    .list-book-cover { flex-basis: auto; width: 150px; }
    .list-partner-logo { flex-basis: auto; width: 170px; }
}

/* Home ------------------------------------------------------------------- */
.home-content { padding-top: 60px; }
.home-content .image-rounded img { width: 100%; max-width: 350px; }
/* A definite width for the link around the image, so that the image keeps its
   space (from its width/height) before it has loaded: nothing jumps. */
.home-content .image-rounded a { width: 100%; max-width: 350px; }
.home-content .icon-box { padding: 0 10%; }
.home-content .icon-box-icon .fa { font-size: 60px; }
/* contact-band + icon-holder */
.contact-band { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--color-primary); color: var(--color-on-primary); padding: 0; margin-top: 40px; margin-bottom: 20px; max-width: var(--container); }
.contact-box { display: flex; align-items: center; gap: 30px; padding: 30px; }
.contact-icon {
    flex: 0 0 80px; width: 80px; height: 80px; border-radius: var(--radius-full); background: var(--color-canvas); color: var(--color-primary);
    display: flex; align-items: center; justify-content: center; font-size: 32px;
}
.contact-box h2 { color: var(--color-on-primary); font-size: 14px; line-height: 1.5; text-transform: uppercase; margin: 0 0 4px; font-weight: 700; }
.contact-box p { margin: 0; font-weight: 400; line-height: 1.75; }
.contact-box a { color: var(--color-on-primary); }

/* Slider ------------------------------------------------------------------ */
.slider { position: relative; background: var(--color-canvas); overflow: hidden; }
.slides { position: relative; height: clamp(300px, 44vw, 600px); }
.slide {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 40px;
    padding: 20px 70px 50px; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide-media { height: 100%; display: flex; align-items: center; justify-content: center; min-width: 0; }
.slide-media a { display: block; height: 100%; line-height: 0; }
.slide-media img, .slide-media video { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.slide--image .slide-media { width: 100%; }
.slide--image-text .slide-media { flex: 0 1 50%; }
.slide-text { flex: 0 1 45%; max-height: 100%; overflow: auto; color: var(--color-ink); }
.slide--text .slide-text { flex: 0 1 900px; text-align: center; }
.slide-title { font-family: var(--font-script); font-weight: 400; font-size: clamp(24px, 3vw, 44px); line-height: 1.25; color: var(--color-ink-deep); margin-bottom: 14px; }
.slide-body { font-family: var(--font-ui); font-size: clamp(14px, 1.2vw, 17px); line-height: 1.6; color: var(--color-ink); }
.slider-arrow {
    position: absolute; top: calc(50% - 25px); transform: translateY(-50%); z-index: 3;
    width: 46px; height: 46px; border-radius: var(--radius-full); border: 0; cursor: pointer;
    background: rgba(0,0,0,.35); color: #fff; font-size: 30px; line-height: 1; transition: background .2s;
}
.slider-arrow:hover, .slider-arrow:focus-visible { background: rgba(0,0,0,.65); }
.slider-prev { left: 12px; }
.slider-next { right: 12px; }
.slider-controls { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; align-items: center; justify-content: center; gap: 12px; z-index: 3; }
.slider-dots { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; }
.slider-dots a { display: block; width: 12px; height: 12px; border-radius: var(--radius-full); background: var(--color-rule); border: 2px solid var(--color-canvas); box-shadow: 0 0 0 1px var(--color-mute); }
.slider-dots a[aria-current="true"] { background: var(--color-ink); }
.slider-pause { background: none; border: 0; color: var(--color-ring); cursor: pointer; font-size: 14px; padding: 4px; }

/* Share (brand colours of each network, as on the former site) ------------ */
.share { margin: 30px 0 25px; font-family: var(--font-ui); }
.share-label { font-size: 15px; color: var(--color-body); margin: 0 0 8px; font-weight: 500; }
.share-buttons { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.share-buttons a {
    display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px;
    font-size: 12px; font-weight: 500; color: #fff; border-radius: 2px; text-decoration: none;
}
.share-buttons a:hover { filter: brightness(1.1); text-decoration: none; color: #fff; }
.share-buttons .fa { font-size: 15px; }
.share-facebook { background: #1877f2; }
.share-twitter { background: #000; }
.share-linkedin { background: #0a66c2; }
.share-more { background: var(--color-surface-soft); color: var(--color-ink) !important; border: 1px solid var(--color-rule); }
.x-logo { font-size: 15px; font-weight: 500; }

/* Footer (site-footer / footer-social-icon) ------------------------------- */
.site-footer { background: var(--color-footer-night); color: var(--color-mute); font-size: 14px; font-weight: 400; padding-top: 22px; }
.footer-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 30px; padding-bottom: 30px; flex-wrap: wrap; }
/* The thin divider sits inside the dark band, across the content width, as on the former site. */
.footer-inner::before { content: ""; position: absolute; top: 0; left: 15px; right: 15px; height: 1px; background: var(--color-footer-rule); }
.site-footer .container { max-width: calc(var(--container) + 30px); }
.site-info { margin: 0; }
.site-info a { color: var(--color-mute); margin-left: 12px; }
.site-info a:hover { color: var(--color-on-primary); }
.footer-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.social-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; }
.social-links a, .theme-toggle {
    width: 36px; height: 36px; border-radius: var(--radius-full); border: 2px solid var(--color-ring); color: var(--color-ring);
    display: flex; align-items: center; justify-content: center; background: none; padding: 0; cursor: pointer; font-size: 15px;
}
.social-links a:hover, .theme-toggle:hover { color: var(--color-on-primary); border-color: var(--color-primary); background: var(--color-primary); text-decoration: none; }
.theme-toggle:focus-visible, .social-links a:focus-visible, .site-info a:focus-visible { outline-color: var(--color-on-primary); }
.theme-toggle[hidden] { display: none; }

/* Forms (form-label / select-field / text-input) --------------------------- */
.form { max-width: 760px; margin: 10px 0 30px; }
.form-row { margin: 0 0 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-grid .full { grid-column: 1 / -1; }
.form label, .form .label {
    display: block; margin-bottom: 5px;
    font-family: var(--font-slab); font-size: 16.8px; font-weight: 700; line-height: 28px; color: var(--color-label);
}
.form .req { color: var(--color-label); }
.form .hint { display: block; font-size: 13px; font-weight: 300; line-height: 1.5; color: var(--color-body); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="number"],
.form input[type="password"], .form input[type="date"], .form select, .form textarea {
    width: 100%; min-height: 42px;
    font-family: var(--font-slab); font-size: 14px; line-height: 1.5; color: var(--color-ink);
    border: 1px solid var(--color-primary); border-radius: var(--radius-md);
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
/* text-input: soft fill, bold value */
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="number"],
.form input[type="password"], .form input[type="date"] {
    background: var(--color-surface-soft); font-weight: 700; padding: 10px 15px;
}
.form textarea { background: var(--color-surface-soft); font-weight: 400; padding: 10px 15px; min-height: 150px; resize: vertical; }
/* select-field: transparent fill, light value, room for the caret */
.form select {
    appearance: none; -webkit-appearance: none;
    background-color: transparent; font-weight: 300; padding: 10px 42px 10px 15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23d12018' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px;
}
.form select option { color: var(--color-ink); background: var(--color-canvas); }
.form ::placeholder { color: var(--color-body); font-weight: 300; opacity: 1; }   /* the value is bolder and darker */
.form input:focus, .form select:focus, .form textarea:focus {
    border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(209, 32, 24, .2); outline: none;
}
/* Keyboard focus: the site's ring, which the red halo alone cannot replace (it
   nearly disappears in dark mode). */
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible {
    outline: 2px solid var(--color-ink-deep); outline-offset: 2px; box-shadow: none;
}
.form input[type="radio"], .form input[type="checkbox"] { accent-color: var(--color-primary); }
.form .has-error input, .form .has-error select, .form .has-error textarea { border-width: 2px; background-color: var(--color-primary-tint); }
.form .field-error { color: var(--color-link); font-size: 13px; margin: 4px 0 0; font-weight: 400; }
.form-honeypot { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-consent { font-size: 13px; color: var(--color-body); }
/* Editable texts (Textes du site) sit in a block that may hold several
   paragraphs: the same space below as the paragraph they replaced. */
.form-consent, .tax-note, .error-text { margin: 0 0 1em; }
.form-consent > :last-child, .tax-note > div > :last-child, .error-text > :last-child { margin-bottom: 0; }
/* The icon stays beside the note, even one of several paragraphs. */
.tax-note { display: flex; gap: .4em; align-items: baseline; }

/* Notices (ex-toast chrome: a card with a coloured rule on the leading edge,
   red for errors, greys otherwise: no second accent colour) */
.notice {
    padding: 14px 18px; margin: 0 0 20px; font-weight: 400;
    background: var(--color-canvas); color: var(--color-ink);
    border: 1px solid var(--color-hairline); border-left: 3px solid var(--color-ink-deep);
}
.notice-success { border-left-color: var(--color-ink-deep); }
.notice-info { border-left-color: var(--color-legacy-grey); background: var(--color-surface-soft); }
.notice-error { border-left-color: var(--color-primary); background: var(--color-primary-tint); color: var(--color-ink-deep); }

/* Donation form */
.donation-form fieldset { border: 0; padding: 0; margin: 0 0 28px; }
.donation-form legend { font-family: var(--font-slab); font-weight: 700; font-size: 24px; line-height: 1.5; color: var(--color-ink-deep); margin-bottom: 14px; padding: 0; }
.amount-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.amount-input { position: relative; max-width: 220px; }
.amount-input input { padding-right: 34px !important; }
.amount-input::after { content: "€"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--color-body); font-weight: 700; }
.amount-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.amount-presets button {
    border: 1px solid var(--color-primary); background: transparent; color: var(--color-link);
    border-radius: var(--radius-xs); padding: 8px 14px; min-height: 40px;
    font: 500 14px var(--font-ui); letter-spacing: 1px; cursor: pointer;
}
.amount-presets button:hover, .amount-presets button.is-selected { background: var(--color-primary); color: var(--color-on-primary); }
.payment-methods { display: grid; gap: 12px; }
.form .payment-method {
    display: flex; gap: 12px; align-items: flex-start; margin: 0; cursor: pointer;
    border: 1px solid var(--color-rule); border-radius: var(--radius-md); padding: 14px 16px;
    font-size: 14px; font-weight: 300; line-height: 1.75; color: var(--color-body);
}
.payment-method input { margin-top: 5px; accent-color: var(--color-primary); }
.payment-method strong { color: var(--color-ink-deep); display: block; }
.payment-method span { font-size: 14px; }
.payment-method:has(input:checked) { border-color: var(--color-primary); background: var(--color-surface-soft); }
.donation-summary { background: var(--color-surface-soft); padding: 16px 20px; margin: 0 0 20px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--color-body); }
.donation-summary strong { font-size: 22px; color: var(--color-ink-deep); }
.tax-note { font-size: 14px; color: var(--color-body); }
.receipt-box { text-align: center; margin: 20px 0 30px; }

/* Error page */
.error-page { padding: 60px 15px 80px; text-align: center; }

/* Dark mode: content details (screen only, like the dark tokens) ---------- */
@media screen {
    /* The logo is a JPEG on white: keep it on a small white plate. */
    :root[data-theme="dark"] .site-logo img { background: #fff; border-radius: var(--radius-xs); }
    /* Colours typed in the editor were chosen for a white page. Black, and the
       editor's "Noir" and "Titre", take the dark title colour; "Gris" takes the
       dark body colour; the brand red takes the lighter red of links. */
    :root[data-theme="dark"] .entry-content [style*="color: #000000" i],
    :root[data-theme="dark"] .entry-content [style*="color:#000000" i],
    :root[data-theme="dark"] .entry-content [style*="color: #0a0a0a" i],
    :root[data-theme="dark"] .entry-content [style*="color: #000a2b" i],
    :root[data-theme="dark"] .entry-content [style*="color: #111111" i],
    :root[data-theme="dark"] .entry-content [style*="color: rgb(0, 0, 0)" i] { color: var(--color-ink-deep) !important; }
    :root[data-theme="dark"] .entry-content [style*="color: #666666" i] { color: var(--color-body) !important; }
    :root[data-theme="dark"] .entry-content [style*="color: #d12018" i] { color: var(--color-link) !important; }
    /* A light box typed in the editor (the grey #cecece boxes of /faire-un-don/)
       keeps the light theme's text colours inside it. */
    :root[data-theme="dark"] .entry-content [style*="background-color: #cecece" i] {
        --color-ink-deep: #111111;
        --color-ink: #333333;
        --color-body: #666666;
        --color-link: #d12018;
        --color-link-hover: #a9160f;
        color: var(--color-body);
    }
    /* Logos with a transparent background were drawn for a white page. */
    :root[data-theme="dark"] .entry-content img[src$=".png" i],
    :root[data-theme="dark"] .entry-content img[src$=".gif" i],
    :root[data-theme="dark"] .entry-content img[src$=".webp" i] { background: #fff; }
    /* ...except where the plate would show around the picture: the carousel's
       letterbox and the edge of circular portraits. */
    :root[data-theme="dark"] .entry-content .gallery-carousel img { background: var(--color-surface-soft); }
    :root[data-theme="dark"] .entry-content .image-circle img { background: none; }
    /* Soften large bright images a little. */
    :root[data-theme="dark"] .site-content img:not(.no-dim) { filter: brightness(.94); }
    /* The black X share button gets an outline so that it does not melt into the canvas. */
    :root[data-theme="dark"] .share-twitter { box-shadow: inset 0 0 0 1px var(--color-rule); }
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1199px) {
    .main-nav .menu > .menu-item > a, .main-nav .menu > .menu-item > .menu-label { padding: 0 12px; font-size: 16px; }
    .main-nav .menu > .menu-item.has-children > a, .main-nav .menu > .menu-item.has-children > .menu-label { padding-right: 2px; }
    .submenu-toggle { padding-right: 10px; }
}

/* Stuck header between 1024 and 1199 px: tighter items and an icon-only
   "Faire un don". Never below 1024 px, where the header does not stick. */
@media (min-width: 1024px) and (max-width: 1199px) {
    .site-header.is-stuck .main-nav .menu > .menu-item > a,
    .site-header.is-stuck .main-nav .menu > .menu-item > .menu-label { padding: 0 8px; }
    .nav-cta .nav-cta-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
    .nav-cta { padding: 8px 12px; }
}

@media (max-width: 1023px) {
    .header-top { align-items: center; padding-top: 12px; padding-bottom: 12px; }
    .site-logo img { width: min(240px, 58vw); }
    .menu-toggle { margin-left: auto; }
    .header-buttons { order: 3; width: 100%; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .btn-header { min-height: 46px; padding: 9px 6px; font-size: 11px; letter-spacing: .5px; flex-direction: column; gap: 4px; text-align: center; line-height: 1.2; }
    .btn-header .fa { font-size: 18px; }
    .menu-toggle { display: inline-flex; }
    .main-nav { display: none; border-top: 1px solid var(--color-hairline); }
    .main-nav.is-open { display: block; }
    .nav-inner { display: block; }
    .main-nav .menu { flex-direction: column; padding: 8px 0 16px; }
    .main-nav .menu > .menu-item { flex-wrap: wrap; border-bottom: 1px solid var(--color-hairline); }
    .main-nav .menu > .menu-item > a, .main-nav .menu > .menu-item > .menu-label { line-height: 1.4; padding: 14px 4px; flex: 1; }
    .submenu-toggle { padding: 12px 16px; }
    .submenu-toggle[aria-expanded="true"]::after { content: "\f106"; }
    .sub-menu, .sub-menu .sub-menu {
        position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: 0;
        width: 100%; display: none; padding: 0 0 8px 16px; min-width: 0;
    }
    .menu-item.is-open > .sub-menu { display: block; }
    .menu-item.has-children:hover > .sub-menu, .menu-item.has-children:focus-within > .sub-menu { display: none; }
    .menu-item.is-open.has-children:hover > .sub-menu, .menu-item.is-open.has-children:focus-within > .sub-menu { display: block; }
    .sub-menu .submenu-toggle::after { content: "\f107"; }
    .nav-cta { display: none !important; }
    .contact-band { grid-template-columns: 1fr; }
    .slide { padding: 16px 16px 50px; gap: 16px; }
    .slide--image-text { flex-direction: column; }
    .slide--image-text .slide-media { flex: 0 0 45%; height: 45%; }
    .slide-text { flex: 1 1 auto; }
    .slides { height: clamp(300px, 95vw, 520px); }
    .slider-arrow { display: none; }
}

@media (max-width: 767px) {
    .page-title { font-size: 24px; }
    .entry-content h1 { font-size: 26px !important; }
    .home-content { padding-top: 30px; }
    .form-grid { grid-template-columns: 1fr; }
    .alignleft, .alignright { float: none; margin: 0 0 1em; display: block; }
    table.tableau-large, table.pathologies { width: 100%; }
    .entry-content table { display: block; overflow-x: auto; }
    .footer-inner { flex-direction: column; text-align: center; }
    .contact-box { padding: 22px; gap: 18px; }
    .contact-icon { flex-basis: 64px; width: 64px; height: 64px; font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
    :root { color-scheme: light; }
    html { background: #fff; }
    .site-header nav, .menu-toggle, .header-buttons, .share, .site-footer, .slider-controls, .slider-arrow { display: none !important; }
    .site-header { box-shadow: none; position: static; }
    body, .site-header { background: #fff; color: #000; }
    a { color: #000; }
}

/* ICONS (generated by tools/icons/build.py from Font Awesome 4.7: do not edit by hand) */
@font-face { font-family: "ADICARE Icons"; font-weight: normal; font-style: normal; font-display: block; src: url("../fonts/adicare-icons.woff2?v=f504363b23") format("woff2"); }
.fa { display: inline-block; font: normal normal normal 14px/1 "ADICARE Icons"; font-size: inherit; text-rendering: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.fa-search:before { content: "\f002"; }
.fa-envelope-o:before { content: "\f003"; }
.fa-heart:before { content: "\f004"; }
.fa-star:before { content: "\f005"; }
.fa-user:before { content: "\f007"; }
.fa-th-large:before { content: "\f009"; }
.fa-check:before { content: "\f00c"; }
.fa-times:before { content: "\f00d"; }
.fa-clock-o:before { content: "\f017"; }
.fa-download:before { content: "\f019"; }
.fa-lock:before { content: "\f023"; }
.fa-flag:before { content: "\f024"; }
.fa-headphones:before { content: "\f025"; }
.fa-book:before { content: "\f02d"; }
.fa-map-marker:before { content: "\f041"; }
.fa-pencil-square-o:before { content: "\f044"; }
.fa-play:before { content: "\f04b"; }
.fa-pause:before { content: "\f04c"; }
.fa-chevron-left:before { content: "\f053"; }
.fa-chevron-right:before { content: "\f054"; }
.fa-check-circle:before { content: "\f058"; }
.fa-info-circle:before { content: "\f05a"; }
.fa-arrow-left:before { content: "\f060"; }
.fa-arrow-right:before { content: "\f061"; }
.fa-arrow-up:before { content: "\f062"; }
.fa-arrow-down:before { content: "\f063"; }
.fa-plus:before { content: "\f067"; }
.fa-minus:before { content: "\f068"; }
.fa-calendar:before { content: "\f073"; }
.fa-comment:before { content: "\f075"; }
.fa-linkedin-square:before { content: "\f08c"; }
.fa-external-link:before { content: "\f08e"; }
.fa-trophy:before { content: "\f091"; }
.fa-phone:before { content: "\f095"; }
.fa-twitter:before { content: "\f099"; }
.fa-facebook:before { content: "\f09a"; }
.fa-users:before { content: "\f0c0"; }
.fa-link:before { content: "\f0c1"; }
.fa-flask:before { content: "\f0c3"; }
.fa-cut:before { content: "\f0c4"; }
.fa-caret-down:before { content: "\f0d7"; }
.fa-caret-right:before { content: "\f0da"; }
.fa-envelope:before { content: "\f0e0"; }
.fa-linkedin:before { content: "\f0e1"; }
.fa-lightbulb-o:before { content: "\f0eb"; }
.fa-user-md:before { content: "\f0f0"; }
.fa-file-text-o:before { content: "\f0f6"; }
.fa-angle-left:before { content: "\f104"; }
.fa-angle-right:before { content: "\f105"; }
.fa-angle-up:before { content: "\f106"; }
.fa-angle-down:before { content: "\f107"; }
.fa-quote-left:before { content: "\f10d"; }
.fa-quote-right:before { content: "\f10e"; }
.fa-microphone:before { content: "\f130"; }
.fa-calendar-o:before { content: "\f133"; }
.fa-play-circle:before { content: "\f144"; }
.fa-youtube-play:before { content: "\f16a"; }
.fa-instagram:before { content: "\f16d"; }
.fa-university:before { content: "\f19c"; }
.fa-graduation-cap:before { content: "\f19d"; }
.fa-building:before { content: "\f1ad"; }
.fa-file-pdf-o:before { content: "\f1c1"; }
.fa-paper-plane:before { content: "\f1d8"; }
.fa-heartbeat:before { content: "\f21e"; }
.fa-facebook-official:before { content: "\f230"; }
.fa-hourglass-half:before { content: "\f252"; }
.fa-vimeo:before { content: "\f27d"; }
.fa-volume-control-phone:before { content: "\f2a0"; }
.fa-handshake-o:before { content: "\f2b5"; }
/* /ICONS */
