/* =========================================================================
   Centre Hospitalier Erdre et Loire — feuille de style du site public
   Charte : Raleway · bleu nuit #1f3742 · turquoise #169693 / #6ac2c1
            vert #a9cb50 / #c3d76b · bleu ciel #15aff7
   ========================================================================= */
:root {
  --navy: #1f3742;
  --navy-2: #104451;
  --teal: #169693;
  --teal-2: #0f7c79;
  --teal-light: #6ac2c1;
  --teal-50: #eaf6f5;
  --teal-100: #d4eeec;
  --green: #a9cb50;
  --green-2: #8db236;
  --green-light: #c3d76b;
  --green-50: #f3f8e6;
  --sky: #15aff7;
  --sky-2: #0a8fd0;
  --red: #c8102e;
  --text: #24343b;
  --muted: #5d6f77;
  --line: #dfe7ea;
  --bg: #ffffff;
  --bg-soft: #f5f8f9;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(31, 55, 66, .10);
  --shadow-sm: 0 2px 10px rgba(31, 55, 66, .08);
  --container: 1200px;
  --font: "Raleway", "Segoe UI", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--bg); font-feature-settings: "lnum" 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-2); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--navy); font-weight: 700; margin: 0 0 .6em; }
h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
h3 { font-size: 1.2rem; color: var(--teal-2); }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .25em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 10px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 1000; border-radius: 6px; }
.skip-link:focus { top: 10px; color: #fff; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .75em 1.3em; border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, transform .15s; font-family: inherit; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-2); color: #fff; }
.btn-green { background: var(--green); color: var(--navy); }
.btn-green:hover { background: var(--green-2); color: var(--navy); }
.btn-sky { background: var(--sky); color: #fff; }
.btn-sky:hover { background: var(--sky-2); color: #fff; }
.btn-outline { border-color: var(--teal); color: var(--teal-2); background: #fff; }
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-lg { padding: .95em 1.6em; font-size: 1.02rem; }

/* ---------- Bandeau d'alerte ---------- */
.alert-bar { background: var(--navy); color: #fff; font-size: .92rem; }
.alert-bar .container { display: flex; gap: 10px; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.alert-bar a { color: var(--green-light); font-weight: 700; }
.alert-bar svg { width: 18px; height: 18px; color: var(--green-light); flex: none; }

/* ---------- En-tête ---------- */
.site-header { background: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 0 var(--line); }
.header-main { display: flex; align-items: center; gap: 24px; min-height: 92px; }
.logo { display: block; flex: none; }
.logo img { height: 72px; width: auto; }
.header-tools { margin-left: auto; flex: 1; justify-content: flex-end; display: flex; align-items: center; gap: 10px; }
.header-search { position: relative; flex: 1; max-width: 520px; margin-left: 40px; }
.header-search input { width: 100%; box-sizing: border-box; border: 1px solid var(--line); background: var(--bg-soft); border-radius: 999px; padding: .65em 2.6em .65em 1.1em; font: inherit; font-size: .92rem; color: var(--text); transition: width .2s, border-color .2s; }
.header-search input:focus { outline: none; border-color: var(--teal); background: #fff; }
.header-search button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: var(--teal); color: #fff; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.header-search button svg { width: 16px; height: 16px; }
.icon-btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; color: var(--navy); font-size: .95rem; padding: .55em .9em; border-radius: 999px; }
.icon-btn .ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--sky); }
.icon-btn .ico svg { width: 20px; height: 20px; }
.icon-btn.mail .ico { background: var(--navy-2); }
.icon-btn:hover { background: var(--bg-soft); color: var(--navy); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; width: 48px; height: 48px; cursor: pointer; color: var(--green-2); border-radius: 10px; }
.menu-toggle svg { width: 30px; height: 30px; }

/* Navigation principale : barre verte de la charte */
.main-nav { background: var(--green); }
.main-nav > .container > ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; }
.main-nav li { margin: 0; position: relative; }
.nav-link { display: flex; align-items: center; gap: 6px; padding: 15px 14px; color: #fff; text-decoration: none; font-weight: 700; text-transform: uppercase; font-size: .86rem; letter-spacing: .04em; background: none; border: 0; font-family: inherit; cursor: pointer; text-shadow: 0 1px 1px rgba(0,0,0,.08); }
.nav-link svg { width: 12px; height: 12px; transition: transform .2s; }
.main-nav li:hover > .nav-link, .nav-link[aria-expanded="true"], .nav-link.active { background: var(--green-2); color: #fff; }
.nav-link.urgent { background: var(--sky); }
.nav-link.urgent:hover { background: var(--sky-2) !important; }
.submenu { position: absolute; left: 0; top: 100%; min-width: 290px; background: #fff; border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); padding: 10px; list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 50; border-top: 4px solid var(--green-2); }
.main-nav li:last-child .submenu, .main-nav li:nth-last-child(2) .submenu { left: auto; right: 0; }
.main-nav li:hover > .submenu, .main-nav li:focus-within > .submenu, .submenu.open { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: block; padding: 9px 14px; border-radius: 8px; color: var(--navy); text-decoration: none; font-weight: 600; font-size: .95rem; }
.submenu a:hover, .submenu a.active { background: var(--teal-50); color: var(--teal-2); }

/* ---------- « En 1 clic ! » (charte d'origine) ---------- */
.quick-links { position: fixed; left: 0; top: 46%; z-index: 90; display: flex; flex-direction: column; gap: 6px; }
.quick-links__title { background: var(--navy); color: #fff; font-size: .72rem; font-weight: 800; padding: 6px 8px; border-radius: 0 8px 8px 0; text-align: center; }
.quick-link { display: flex; align-items: center; text-decoration: none; position: relative; }
.quick-link .ql-ico { width: 64px; height: 64px; display: grid; place-items: center; color: #fff; border-radius: 0 12px 12px 0; box-shadow: var(--shadow-sm); }
.quick-link .ql-ico svg { width: 34px; height: 34px; }
.quick-link.urg .ql-ico { background: var(--sky); }
.quick-link.rdv .ql-ico { background: var(--green); }
.quick-link .ql-label { position: absolute; left: 72px; white-space: nowrap; background: #fff; color: var(--navy); font-weight: 700; font-size: .85rem; padding: 8px 12px; border-radius: 8px; box-shadow: var(--shadow); opacity: 0; transform: translateX(-6px); transition: .18s; pointer-events: none; }
.quick-link.urg .ql-label { background: #c7ebfd; }
.quick-link.rdv .ql-label { background: #e6f2c4; }
.quick-link:hover .ql-label, .quick-link:focus .ql-label { opacity: 1; transform: none; }
.mobile-bar { display: none; }

/* ---------- Bandeaux ---------- */
.page-hero { position: relative; min-height: 300px; display: flex; align-items: flex-end; background: linear-gradient(120deg, var(--navy-2), var(--teal) 60%, var(--teal-light)); overflow: hidden; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16,68,81,.35), rgba(16,68,81,0) 55%); }
.page-hero .container { position: relative; z-index: 1; display: flex; justify-content: flex-end; }
.hero-box { background: rgba(22, 150, 147, .93); color: #fff; padding: 28px 40px 26px; max-width: 640px; border-radius: var(--radius) var(--radius) 0 0; }
.hero-box h1 { color: #fff; margin: 0; text-transform: uppercase; letter-spacing: .02em; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.hero-box h1::after { content: ""; display: block; width: 46px; height: 4px; background: #fff; margin-top: 12px; border-radius: 2px; }
.hero-box p { margin: 12px 0 0; font-weight: 500; opacity: .95; }

.breadcrumb { font-size: .9rem; color: var(--muted); padding: 18px 0; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "›"; margin: 0 6px; color: var(--teal-light); font-weight: 700; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--teal-2); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--navy); font-weight: 600; }

/* ---------- Mise en page des pages ---------- */
.page-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; padding-bottom: 70px; }
.page-layout.no-side { grid-template-columns: minmax(0, 1fr); }
.side-nav { position: sticky; top: 110px; align-self: start; }
.side-nav .side-box { border-left: 3px solid var(--green); padding: 4px 0 4px 18px; margin-bottom: 26px; }
.side-nav h2, .side-nav h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.side-nav ul { list-style: none; padding: 0; margin: 0; }
.side-nav li { margin: 0; }
.side-nav a { display: block; padding: 6px 0; color: var(--navy); text-decoration: none; font-weight: 600; font-size: .95rem; line-height: 1.35; }
.side-nav a:hover, .side-nav a.active { color: var(--teal-2); }
.side-nav a.active { font-weight: 800; }
.side-nav .side-html p { margin: 0; }
.side-nav .side-html a { padding: 6px 0; }

.intro { font-size: 1.08rem; margin-bottom: 30px; }
.content-block { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 36px; padding: 34px 0; border-top: 1px solid var(--line); }
.content-block:first-of-type { border-top: 0; padding-top: 6px; }
.content-block.full { grid-template-columns: minmax(0, 1fr); }
.block-title { display: inline-block; background: var(--teal-light); color: #fff; text-transform: uppercase; font-size: clamp(1.05rem, 1.8vw, 1.3rem); padding: 6px 12px; letter-spacing: .02em; border-radius: 4px; margin-bottom: 18px; }
.rich h2 { font-size: 1.35rem; }
.rich h3 { margin-top: 1.3em; }
.rich h3.practical-information, .rich h3:has(+ p) { font-size: 1.1rem; }
.rich img { border-radius: var(--radius-sm); margin: 1em 0; }
.rich table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .95rem; }
.rich th, .rich td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.rich th { background: var(--teal-50); color: var(--navy); }
.rich blockquote { margin: 1.2em 0; padding: 14px 20px; border-left: 4px solid var(--green); background: var(--green-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.rich iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius-sm); }
.rich .encadre, .rich .encadre-info { background: var(--teal-50); border-radius: var(--radius-sm); padding: 16px 20px; margin: 1em 0; }
.rich .encadre-alerte { background: #fff4e5; border-left: 4px solid #f0a020; border-radius: var(--radius-sm); padding: 16px 20px; margin: 1em 0; }
.rich a.bouton { display: inline-block; background: var(--teal); color: #fff; padding: .6em 1.2em; border-radius: 999px; text-decoration: none; font-weight: 700; }
.rich a[href$=".pdf"]::before { content: "PDF"; font-size: .65em; font-weight: 800; background: var(--red); color: #fff; padding: 2px 5px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.rich > :last-child { margin-bottom: 0; }

.block-aside { display: flex; flex-direction: column; gap: 18px; }
.info-card { background: var(--bg-soft); border-radius: var(--radius); padding: 22px 24px; border-top: 4px solid var(--green); font-size: .97rem; }
.info-card h3 { font-size: 1.05rem; color: var(--navy); margin: 0 0 .6em; }
.info-card h4 { font-size: .92rem; color: var(--teal-2); margin: 1em 0 .4em; text-transform: none; }
.info-card ul { padding-left: 1.1em; }
.info-card strong { color: var(--navy); }
.info-card p:last-child, .info-card ul:last-child { margin-bottom: 0; }
.info-card a[href^="tel:"] { font-weight: 800; font-size: 1.1rem; color: var(--navy); text-decoration: none; }

/* Encart « Équipe médicale » généré depuis l'annuaire */
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); font-size: .95rem; }
.team-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.02rem; color: var(--navy); margin: 0 0 12px; }
.team-card h3 svg { width: 22px; height: 22px; color: var(--teal); flex: none; }
.team-card h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 14px 0 6px; }
.team-card ul { list-style: none; padding: 0; margin: 0; }
.team-card li { padding: 6px 0; border-bottom: 1px dashed var(--line); margin: 0; line-height: 1.35; }
.team-card li:last-child { border-bottom: 0; }
.team-card .doc { font-weight: 700; color: var(--navy); }
.team-card .spec { display: block; color: var(--muted); font-size: .88rem; }
.team-card .svc-name { font-weight: 800; color: var(--teal-2); font-size: .9rem; margin: 14px 0 4px; }
.team-card .svc-name:first-of-type { margin-top: 0; }
.team-section { padding: 40px 0 10px; border-top: 1px solid var(--line); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
:target.team-card, .team-card:target { animation: flash 2s ease 1; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 4px var(--green-light); } 100% { box-shadow: var(--shadow-sm); } }

/* Vignettes des sous-pages */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin: 10px 0 30px; }
.card-link { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 120px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; text-decoration: none; color: var(--navy); font-weight: 700; font-size: 1.05rem; transition: border-color .2s, box-shadow .2s, transform .2s; position: relative; overflow: hidden; }
.card-link::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--green); }
.card-link small { font-weight: 500; color: var(--muted); font-size: .9rem; }
.card-link .arrow { color: var(--teal); font-size: .9rem; font-weight: 800; }
.card-link:hover { border-color: var(--teal-light); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--teal-2); }

/* ---------- Accueil ---------- */
.home-hero { position: relative; min-height: 540px; display: flex; align-items: flex-end; background: linear-gradient(120deg, var(--navy-2), var(--teal) 55%, var(--green)); overflow: hidden; }
.home-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,68,81,.55), rgba(16,68,81,.05) 65%); }
.home-hero .container { position: relative; z-index: 1; padding-bottom: 120px; }
.home-hero .hero-box { border-radius: var(--radius); max-width: 620px; }
.home-hero h1 { font-size: clamp(1.7rem, 3.8vw, 2.7rem); }

.finder { position: relative; z-index: 5; margin-top: -70px; }
.finder-card { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dropdown { position: relative; }
.dropdown summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 22px; border-radius: 14px; font-weight: 800; font-size: 1.15rem; color: #fff; }
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown summary svg { width: 20px; height: 20px; transition: transform .2s; }
.dropdown[open] summary svg { transform: rotate(180deg); }
.dropdown.iam summary { background: var(--navy); }
.dropdown.isearch summary { background: var(--teal); }
.dropdown ul { list-style: none; margin: 8px 0 0; padding: 8px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); position: absolute; left: 0; right: 0; z-index: 20; max-height: 360px; overflow: auto; }
.dropdown li { margin: 0; }
.dropdown li a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--navy); text-decoration: none; font-weight: 600; }
.dropdown li a:hover { background: var(--teal-50); color: var(--teal-2); }

.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 26px; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 22px 10px; border-radius: var(--radius); background: var(--bg-soft); text-decoration: none; color: var(--navy); font-weight: 700; font-size: .93rem; line-height: 1.25; transition: .2s; border: 1px solid transparent; }
.tile .tile-ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: #fff; color: var(--teal); box-shadow: var(--shadow-sm); }
.tile .tile-ico svg { width: 28px; height: 28px; }
.tile:hover { background: #fff; border-color: var(--teal-light); box-shadow: var(--shadow); color: var(--teal-2); transform: translateY(-2px); }
.tile:nth-child(1) .tile-ico { background: var(--sky); color: #fff; }
.tile:nth-child(2) .tile-ico { background: var(--green); color: #fff; }

.section { padding: 70px 0; }
.section-soft { background: var(--teal-50); }
.section-title { text-align: center; margin-bottom: 36px; }
.section-title h2 { display: inline-flex; align-items: center; gap: 14px; text-transform: uppercase; letter-spacing: .06em; font-size: 1.35rem; margin: 0; }
.section-title h2::before, .section-title h2::after { content: ""; width: 22px; height: 3px; background: var(--green); border-radius: 2px; }
.section-title p { color: var(--muted); margin: 8px 0 0; }
.section-actions { text-align: center; margin-top: 34px; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; position: relative; }
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.news-card .thumb { aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--teal-light), var(--green-light)); overflow: hidden; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .thumb img { transform: scale(1.04); }
.news-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card time { font-size: .8rem; font-weight: 800; color: var(--green-2); text-transform: uppercase; letter-spacing: .05em; }
.news-card h3 { font-size: 1.12rem; color: var(--navy); margin: 0; }
.news-card h3 a { color: inherit; text-decoration: none; }
.news-card h3 a::after { content: ""; position: absolute; inset: 0; }
.news-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.news-card .pin { position: absolute; top: 12px; left: 12px; background: var(--green); color: var(--navy); font-size: .72rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; }

.jobs-teaser { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: center; }
.jobs-teaser .big { font-size: 4rem; font-weight: 800; color: var(--teal); line-height: 1; }
.job-list { display: grid; gap: 14px; }
.job-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; transition: .2s; position: relative; }
.job-item:hover { border-color: var(--teal-light); box-shadow: var(--shadow); }
.job-item h3 { font-size: 1.08rem; margin: 0 0 6px; color: var(--navy); }
.job-item h3 a { color: inherit; text-decoration: none; }
.job-item h3 a::after { content: ""; position: absolute; inset: 0; }
.job-item p { margin: 6px 0 0; color: var(--muted); font-size: .94rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: var(--teal-50); color: var(--teal-2); font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.tag.green { background: var(--green-50); color: #5d7a14; }
.tag.navy { background: #e6ecef; color: var(--navy); }

.sites { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.site-card { border-radius: var(--radius); overflow: hidden; background: var(--navy); color: #fff; text-decoration: none; display: flex; flex-direction: column; transition: transform .2s; }
.site-card:hover { transform: translateY(-3px); color: #fff; }
.site-card .pic { aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 14px; background: var(--navy-2); }
.site-card .pic img { max-height: 120px; width: auto; }
.site-card span { padding: 14px 18px; font-weight: 700; display: flex; justify-content: space-between; }

/* ---------- Actualités ---------- */
.article { max-width: 820px; margin: 0 auto; padding-bottom: 60px; }
.article-head time { color: var(--green-2); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: .85rem; }
.article-head h1 { margin-top: 6px; }
.article-figure { margin: 10px 0 30px; border-radius: var(--radius); overflow: hidden; }
.article-figure img { width: 100%; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 40px; }
.post-nav a { text-decoration: none; font-weight: 700; max-width: 45%; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; text-decoration: none; font-weight: 700; border: 1px solid var(--line); color: var(--navy); padding: 0 10px; }
.pagination .current { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ---------- Offre d'emploi ---------- */
.job-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; padding-bottom: 70px; }
.job-facts { background: var(--bg-soft); border-radius: var(--radius); padding: 24px; position: sticky; top: 110px; }
.job-facts dl { margin: 0 0 18px; display: grid; gap: 10px; }
.job-facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.job-facts dd { margin: 0; font-weight: 700; color: var(--navy); }
.closed-notice { background: #fff4e5; border-left: 4px solid #f0a020; padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 24px; }

/* ---------- Formulaires ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: var(--shadow-sm); margin-top: 30px; }
.form-card h2 { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; font-size: .93rem; margin-bottom: 6px; color: var(--navy); }
.field .req { color: var(--red); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: .75em .9em; border: 1.5px solid #cdd8dc; border-radius: 10px; background: #fff; color: var(--text); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-100); }
.field .hint { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--red); }
.field .error { color: var(--red); font-size: .88rem; font-weight: 600; margin-top: 4px; }
.file-drop { border: 2px dashed #cdd8dc; border-radius: 12px; padding: 16px; text-align: center; background: var(--bg-soft); }
.file-drop input { font: inherit; font-size: .92rem; max-width: 100%; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--teal); flex: none; }
.hp { position: absolute !important; left: -9999px !important; }
.notice { padding: 16px 20px; border-radius: 12px; margin: 0 0 24px; font-weight: 600; }
.notice.success { background: var(--green-50); border-left: 4px solid var(--green-2); color: #3d5208; }
.notice.error { background: #fdecee; border-left: 4px solid var(--red); color: #8a0b20; }
.legal-small { font-size: .82rem; color: var(--muted); margin-top: 18px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 40px; padding-bottom: 70px; }
.address-list { display: grid; gap: 14px; }
.address { background: var(--bg-soft); border-radius: var(--radius); padding: 18px 20px; font-size: .95rem; border-left: 4px solid var(--teal-light); }
.address strong { color: var(--navy); display: block; }

/* Annuaire */
.directory { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin: 10px 0 40px; }
.directory .panel { background: var(--bg-soft); border-radius: 18px; padding: 26px; }
.directory .panel h2 { font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.directory .panel h2 svg { width: 26px; height: 26px; color: var(--teal); }
.dir-search { width: 100%; font: inherit; padding: .85em 1em; border-radius: 12px; border: 1.5px solid #cdd8dc; margin-bottom: 14px; }
.dir-search:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-100); }
.dir-list { list-style: none; margin: 0; padding: 0; max-height: 460px; overflow: auto; display: grid; gap: 6px; }
.dir-list li { margin: 0; }
.dir-list a { display: block; background: #fff; padding: 10px 14px; border-radius: 10px; text-decoration: none; color: var(--navy); font-weight: 700; border: 1px solid transparent; }
.dir-list a:hover { border-color: var(--teal-light); color: var(--teal-2); }
.dir-list small { display: block; font-weight: 500; color: var(--muted); }
.dir-empty { color: var(--muted); font-style: italic; display: none; }
.letters { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.letters button { border: 0; background: #fff; border-radius: 6px; min-width: 30px; height: 30px; font: inherit; font-weight: 700; color: var(--teal-2); cursor: pointer; font-size: .85rem; }
.letters button[aria-pressed="true"] { background: var(--teal); color: #fff; }

/* Recherche */
.search-big { display: flex; gap: 10px; margin-bottom: 30px; }
.search-big input { flex: 1; font: inherit; font-size: 1.1rem; padding: .8em 1.1em; border-radius: 999px; border: 1.5px solid #cdd8dc; }
.results { list-style: none; padding: 0; display: grid; gap: 14px; }
.results li { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin: 0; }
.results .type { font-size: .78rem; text-transform: uppercase; font-weight: 800; color: var(--green-2); letter-spacing: .05em; }
.results a { font-size: 1.12rem; font-weight: 700; text-decoration: none; }
.results p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }

/* Plan du site */
.sitemap-tree ul { list-style: none; padding-left: 20px; border-left: 2px solid var(--teal-100); }
.sitemap-tree > ul { border: 0; padding: 0; }
.sitemap-tree a { text-decoration: none; font-weight: 600; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy); color: #c9d6db; font-size: .95rem; margin-top: 0; }
.footer-sites { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 46px 0 34px; border-bottom: 1px solid rgba(255,255,255,.1); text-align: center; }
.footer-sites a { color: #fff; text-decoration: none; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer-sites img { height: 90px; width: auto; opacity: .9; }
.footer-main { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; padding: 44px 0; }
.site-footer h2 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer a { color: #c9d6db; text-decoration: none; }
.site-footer a:hover { color: var(--green-light); text-decoration: underline; }
.footer-logo { background: #fff; display: inline-block; padding: 10px 14px; border-radius: 12px; margin-bottom: 16px; }
.footer-logo img { height: 56px; width: auto; }
.footer-phone { font-size: 1.35rem; font-weight: 800; color: #fff !important; display: inline-block; margin: 6px 0; }
.emergency-box { background: rgba(21,175,247,.14); border: 1px solid rgba(21,175,247,.4); border-radius: 12px; padding: 14px 16px; color: #fff; margin-top: 14px; font-size: .9rem; }
.emergency-box strong { color: #fff; font-size: 1.2rem; }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.08); }
.social a:hover { background: var(--green); color: var(--navy); }
.social svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: .85rem; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-bottom li { margin: 0; }

.back-to-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: .2s; z-index: 80; border: 0; cursor: pointer; }
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top svg { width: 20px; height: 20px; }

.empty-state { background: var(--bg-soft); padding: 30px; border-radius: var(--radius); text-align: center; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-link { padding: 15px 10px; font-size: .8rem; }
  .header-search { margin-left: 16px; }
  .icon-btn span.txt { display: none; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1000px) {
  .menu-toggle { display: grid; place-items: center; }
  .header-tools { display: none; }
  .header-main { min-height: 76px; }
  .logo img { height: 58px; }
  .main-nav { position: fixed; top: 76px; left: 0; right: 0; bottom: 0; background: #fff; transform: translateX(100%); transition: transform .25s; overflow-y: auto; z-index: 99; visibility: hidden; }
  .main-nav.open { transform: none; visibility: visible; }
  .main-nav > .container > ul { flex-direction: column; padding: 10px 0 120px; }
  .nav-link { color: var(--navy); text-shadow: none; width: 100%; justify-content: space-between; padding: 16px 6px; font-size: .95rem; border-bottom: 1px solid var(--line); }
  .main-nav li:hover > .nav-link { background: none; color: var(--navy); }
  .nav-link[aria-expanded="true"] { background: var(--green-50) !important; color: var(--navy); }
  .nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }
  .nav-link.urgent { background: var(--sky); color: #fff; border-radius: 10px; margin-top: 10px; justify-content: center; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; border: 0; padding: 4px 0 10px 10px; min-width: 0; }
  .submenu.open { display: block; }
  .main-nav li:hover > .submenu { display: none; }
  .main-nav li:hover > .submenu.open, .main-nav li:focus-within > .submenu.open { display: block; }
  .mobile-search { display: block !important; padding: 16px 0 4px; }
  .mobile-search input { width: 100%; font: inherit; padding: .8em 1em; border-radius: 999px; border: 1.5px solid #cdd8dc; }
  .quick-links { display: none; }
  .mobile-bar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; background: #fff; box-shadow: 0 -4px 20px rgba(0,0,0,.08); }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 10px; text-decoration: none; font-size: .75rem; font-weight: 800; color: var(--navy); }
  .mobile-bar a svg { width: 24px; height: 24px; }
  .mobile-bar a.urg { color: var(--sky-2); }
  .mobile-bar a.rdv { color: var(--green-2); }
  body { padding-bottom: 64px; }
  .back-to-top { bottom: 80px; }
  .page-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .side-nav { position: static; order: 2; border-top: 1px solid var(--line); padding-top: 30px; }
  .content-block { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .jobs-teaser, .job-layout, .contact-grid, .directory { grid-template-columns: minmax(0, 1fr); }
  .job-facts { position: static; }
  .sites, .footer-sites { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .container { padding: 0 16px; }
  .page-hero { min-height: 200px; }
  .hero-box { padding: 20px 22px; border-radius: var(--radius) var(--radius) 0 0; }
  .home-hero { min-height: 420px; }
  .home-hero .container { padding-bottom: 100px; }
  .finder-card { grid-template-columns: 1fr; padding: 16px; gap: 12px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-card { padding: 20px; }
  .footer-main { grid-template-columns: minmax(0, 1fr); }
  .section { padding: 50px 0; }
  .job-item { grid-template-columns: minmax(0, 1fr); }
  .rich table { display: block; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .quick-links, .mobile-bar, .back-to-top, .side-nav, .form-card { display: none !important; }
  .page-hero { min-height: 0; background: none; }
  .page-hero img, .page-hero::after { display: none; }
  .hero-box { background: none; color: #000; padding: 0; }
  .hero-box h1 { color: #000; }
}
.site-card span svg { width: 20px; height: 20px; flex: none; }
.site-card .pic svg { width: 48px; height: 48px; color: var(--teal-light); }
.rich a > img { max-width: 240px; border: 1px solid var(--line); padding: 4px; background: #fff; }
.jobs-teaser .big { margin: 0 0 6px; }

/* =========================================================================
   Compléments WordPress (blocs de l'éditeur, classes WordPress)
   ========================================================================= */
.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; }
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 0; } }
.rich .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.rich .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.rich .aligncenter { margin-left: auto; margin-right: auto; display: block; }
.rich::after { content: ""; display: table; clear: both; }
.rich figure { margin: 1.2em 0; }
.rich figure img { margin: 0; }
.rich figcaption, .rich .wp-caption-text, .rich .wp-element-caption { font-size: .88rem; color: var(--muted); margin-top: 6px; }
.rich .wp-caption { max-width: 100%; }
.rich .wp-block-image img { border-radius: var(--radius-sm); }
.rich .wp-block-table { overflow-x: auto; }
.rich .wp-block-table table { margin: 0; }
.rich .wp-block-file { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--bg-soft); border-radius: var(--radius-sm); padding: 12px 16px; }
.rich .wp-block-file .wp-block-file__button { background: var(--teal-2); color: #fff; border-radius: 999px; padding: .45em 1em; text-decoration: none; font-weight: 700; font-size: .9rem; }
.rich .wp-block-button__link { background: var(--teal-2); color: #fff; border-radius: 999px; padding: .7em 1.3em; font-weight: 700; text-decoration: none; }
.rich .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--teal-2); border: 2px solid currentColor; }
.rich .wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.rich .wp-block-columns { display: flex; gap: 2em; flex-wrap: wrap; }
.rich .wp-block-column { flex: 1 1 260px; min-width: 0; }
.rich .wp-block-embed iframe { aspect-ratio: 16 / 9; }
.rich .wp-block-quote { margin: 1.2em 0; padding: 14px 20px; border-left: 4px solid var(--green); background: var(--green-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.rich .has-background { padding: 16px 20px; border-radius: var(--radius-sm); }
.rich .is-style-encadre { background: var(--teal-50); border-radius: var(--radius-sm); padding: 16px 20px; margin: 1em 0; }
.rich .is-style-alerte { background: #fff4e5; border-left: 4px solid #f0a020; border-radius: var(--radius-sm); padding: 16px 20px; margin: 1em 0; }
.form-card.spontaneous { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.pagination .dots { border: 0; }
.side-html > :last-child { margin-bottom: 0; }

/* Barre de menu : tous les éléments à la même hauteur, l'élément actif occupe toute la hauteur de la barre */
@media (min-width: 1001px) {
  .main-nav > .container > ul { align-items: stretch; min-height: 52px; }
  .main-nav > .container > ul > li { display: flex; }
  .main-nav > .container > ul > li > .nav-link { height: 100%; min-height: 52px; box-sizing: border-box; margin: 0; padding-top: 0; padding-bottom: 0; line-height: 1.2; align-items: center; }
  .main-nav > .container > ul > li > .submenu { top: 100%; }
}

/* Lien « présentation » des sous-menus : mis en avant (même bleu que le bouton téléphone) */
.submenu .submenu-intro { margin-bottom: 6px; }
.submenu .submenu-intro a, .submenu .submenu-intro a.active { background: var(--sky); color: #fff; }
.submenu .submenu-intro a:hover, .submenu .submenu-intro a:focus-visible { background: var(--sky-2); color: #fff; }
@media (max-width: 1000px) { .submenu .submenu-intro a { margin: 4px 0; } }

/* Pictogrammes devant les rubriques du menu principal */
.nav-link { white-space: nowrap; }
.nav-link .nav-ico { display: inline-flex; margin-right: 2px; }
.nav-link .nav-ico svg { width: 18px; height: 18px; }
@media (min-width: 1001px) and (max-width: 1359px) { .nav-link .nav-ico { display: none; } }
@media (min-width: 1360px) { .main-nav > .container > ul > li > .nav-link { padding-left: 10px; padding-right: 10px; } }
@media (max-width: 1000px) {
  .nav-link { justify-content: flex-start; }
  .nav-link > svg:last-child { margin-left: auto; }
  .nav-link.urgent { justify-content: center; }
  .nav-link .nav-ico { margin-right: 10px; }
  .nav-link .nav-ico svg { width: 22px; height: 22px; }
}

/* Numéros de téléphone : bouton d'appel de taille raisonnable */
.rich .chel-tel, .chel-tel { margin: .8em 0; }
.chel-tel a { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; text-decoration: none; white-space: nowrap; }
.chel-tel a:hover span:last-child { text-decoration: underline; }
.chel-tel-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--sky); color: #fff; display: inline-grid; place-items: center; }
.chel-tel-ico svg { width: 18px; height: 18px; }
a.chel-tel-inline { color: inherit; text-decoration: none; white-space: nowrap; }
a.chel-tel-inline:hover { text-decoration: underline; }
