/*
Theme Name: FEMED
Theme URI: https://disparitions-euromed.org
Author: FEMED
Description: Thème officiel de la Fédération Euro-Méditerranéenne Contre les Disparitions Forcées
Version: 1.0.0
Text Domain: femed
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --red:      #0e7f7f;
  --red-h:    #0a6060;
  --red-lt:   #f0fafa;
  --red-mid:  #b8e0e0;
  --white:    #ffffff;
  --grey-lt:  #f7f6f4;
  --grey:     #e4e1dc;
  --grey-mid: #c2bdb5;
  --ink:      #1a1714;
  --ink2:     #3f3b37;
  --muted:    #7a756e;
  --nav-h:    68px;
  --max:      1200px;
  --radius:   2px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: #fff; color: var(--ink); font-family: 'DM Sans', sans-serif; font-weight: 300; line-height: 1.7; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 2.5rem; }

.eyebrow { font-family: 'DM Sans', sans-serif; font-size: .68rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--red); display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.eyebrow::before { content: ''; display: block; width: 1.6rem; height: 1px; background: var(--red); flex-shrink: 0; }
.eyebrow--center { justify-content: center; }
.eyebrow--center::before { display: none; }

h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.2rem, 3.8vw, 3.4rem); font-weight: 600; line-height: 1.08; color: var(--ink); margin-bottom: 1.5rem; }
h2 em { font-style: italic; color: var(--red); }
.text-center { text-align: center; }

.btn-primary { display: inline-block; background: var(--red); color: #fff; font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; padding: .85rem 2rem; border: 1.5px solid var(--red); transition: background .22s, transform .15s; }
.btn-primary:hover { background: var(--red-h); transform: translateY(-2px); }
.btn-ghost { display: inline-block; background: transparent; color: var(--ink); font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; padding: .85rem 2rem; border: 1.5px solid var(--grey); transition: border-color .2s; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-white { display: inline-block; background: #fff; color: var(--red); font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; padding: .9rem 2.2rem; border: 1.5px solid #fff; transition: background .2s, color .2s; }
.btn-white:hover { background: transparent; color: #fff; }

/* ── NAVBAR ── */
#navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--grey); display: flex; align-items: center; justify-content: space-between; padding: 0 2.5rem; transition: box-shadow .3s; }
#navbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.07); }
.logo { display: flex; flex-direction: column; line-height: 1.1; }
.logo-femed { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-weight: 700; color: var(--red); letter-spacing: .08em; }
.logo-sub { font-size: .52rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; gap: 2.2rem; }
.nav-links a { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); transition: color .2s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -3px; left: 0; right: 100%; height: 1px; background: var(--red); transition: right .25s; }
.nav-links a:hover { color: var(--red); }
.nav-links a:hover::after { right: 0; }
.nav-btn { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; background: #e8650a; color: #fff; padding: .48rem 1.4rem; transition: background .2s, transform .15s; font-weight: 500; box-shadow: 0 2px 12px rgba(232,101,10,.35); }
.nav-btn:hover { background: #c9540a; transform: translateY(-1px); }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.burger span { display: block; width: 22px; height: 1.5px; background: var(--ink); }
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h, 64px);
  left: 0; right: 0;
  background: #fff;
  border-bottom: 2px solid var(--red);
  padding: 1.6rem 1.5rem;
  overflow-y: auto;
  max-height: calc(100vh - var(--nav-h));
  z-index: 998;
  flex-direction: column;
  gap: 1.2rem;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .22s, transform .22s;
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-menu a { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink2); }
.mobile-cta { color: var(--red) !important; font-weight: 500; }

/* ── DROPDOWN NAVBAR ── */
.nav-links li { position: relative; }
.has-dropdown > a::after { content: ' ▾'; font-size: .55rem; opacity: .6; }
.dropdown { position: absolute; top: calc(100% + 1.2rem); left: 50%; transform: translateX(-50%); background: #fff; border: 1px solid var(--grey); border-top: 2px solid var(--red); padding: 1.4rem 1.6rem; gap: 2rem; min-width: 380px; box-shadow: 0 12px 40px rgba(0,0,0,.08); z-index: 200; display: none; grid-template-columns: 1fr 1fr; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: grid; }
.has-dropdown .dropdown::before { content: ''; position: absolute; top: -1.2rem; left: 0; right: 0; height: 1.2rem; }
.dropdown-heading { font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: .7rem; padding-bottom: .5rem; border-bottom: 1px solid var(--grey); }
.dropdown-col { display: flex; flex-direction: column; gap: .5rem; }
.dropdown-col a { font-size: .78rem; color: var(--ink2); letter-spacing: .04em; transition: color .2s, padding-left .2s; text-transform: none; }
.dropdown-col a:hover { color: var(--red); padding-left: .4rem; }
#mobileMenu a[href="#"] { font-size: .72rem; color: var(--muted); padding-left: 1rem; letter-spacing: .08em; }

/* ── HERO ── */
.hero { min-height: 100vh; padding-top: var(--nav-h); background: #fff; display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--grey); }
.hero-left { padding: 7rem 4rem 5rem 2.5rem; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--grey); }
h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(4rem, 6.5vw, 7rem); font-weight: 700; line-height: .92; color: var(--ink); margin-bottom: 1.6rem; }
h1 em { font-style: italic; color: var(--red); display: block; }
.hero-desc { font-size: 1rem; color: var(--ink2); line-height: 1.8; max-width: 46ch; margin-bottom: 2.2rem; }
.hero-actions { display: flex; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }
.hero-stats { display: flex; align-items: center; gap: 2rem; padding-top: 2.2rem; border-top: 1px solid var(--grey); }
.stat strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 2.8rem; font-weight: 600; color: var(--red); line-height: 1; }
.stat span { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stat-sep { width: 1px; height: 40px; background: var(--grey); }

blockquote { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-style: italic; color: var(--ink2); line-height: 1.75; border-left: 2px solid var(--red); padding-left: 1.4rem; }
blockquote cite { display: block; font-family: 'DM Sans', sans-serif; font-size: .62rem; font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 1rem; }
.coalition-badge { display: inline-flex; align-items: center; gap: .7rem; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--grey); padding: .55rem 1.1rem; align-self: flex-start; background: #fff; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(1.5)} }

/* ── HERO SLIDER ── */
.hero-right { position: relative; overflow: hidden; padding: 0 !important; min-height: calc(100vh - var(--nav-h)); }
.hero-slider { position: absolute; inset: 0; z-index: 0; }
.slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease; }
.slide.active { opacity: 1; }
.hero-slider::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.1) 60%, rgba(0,0,0,0) 100%); z-index: 1; }
.hero-right-content { position: relative; z-index: 2; padding: 7rem 3rem 3rem 4rem; display: flex; flex-direction: column; justify-content: flex-end; gap: 2.5rem; height: 100%; min-height: calc(100vh - var(--nav-h)); }
.hero-right-content blockquote { color: #fff; border-left-color: rgba(255,255,255,.5); }
.hero-right-content blockquote cite { color: rgba(255,255,255,.6); }
.hero-right-content .coalition-badge { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: rgba(255,255,255,.85); backdrop-filter: blur(8px); }
.hero-right::before { display: none !important; }
.slider-dots { position: absolute; bottom: 2rem; right: 2rem; z-index: 3; display: flex; gap: .5rem; }
.slider-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.35); border: none; cursor: pointer; padding: 0; transition: background .3s, transform .3s; }
.slider-dot.active { background: #fff; transform: scale(1.3); }

/* ── SECTIONS ── */
.section { padding: 7rem 0; }
.section--grey { background: var(--grey-lt); }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; }
.about-grid p { font-size: .97rem; color: var(--ink2); line-height: 1.85; margin-bottom: 1.1rem; }
.text-links { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.8rem; }
.text-links a { font-size: .72rem; letter-spacing: .12em; color: var(--red); transition: letter-spacing .22s, opacity .2s; opacity: .85; }
.text-links a:hover { letter-spacing: .18em; opacity: 1; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.pillar { background: #fff; border: 1px solid var(--grey); border-top: 2px solid var(--red); padding: 1.6rem; transition: box-shadow .25s, transform .25s; }
.pillar:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.07); }
.pillar span { font-size: 1.5rem; display: block; margin-bottom: .7rem; }
.pillar h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 600; color: var(--ink); margin-bottom: .4rem; }
.pillar p { font-size: .84rem; color: var(--muted); line-height: 1.65; }

/* ══════════════════════════════════════════
   MAP
   ══════════════════════════════════════════ */
.map-subtitle { text-align: center; font-size: .88rem; color: var(--muted); margin-bottom: 3rem; }
.map-layout { display: flex; flex-direction: column; gap: 0; }
.map-box { background: #fff; border: 1px solid var(--grey); overflow: hidden; }
.map-filters { display: flex; gap: .5rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--grey); flex-wrap: wrap; }
.filter-btn { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; background: transparent; color: var(--muted); border: 1px solid var(--grey); padding: .38rem .9rem; cursor: pointer; transition: all .2s; }
.filter-btn:hover, .filter-btn.active { background: #e8650a; color: #fff; border-color: #e8650a; }
#mapEl { background: #d4e9f7; position: relative; cursor: grab; }
#mapEl:active { cursor: grabbing; }
#mapEl svg { width: 100%; height: auto; display: block; }
.map-reset-btn { position: absolute; bottom: .6rem; left: .8rem; font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; background: rgba(255,255,255,.9); border: 1px solid var(--grey); padding: .3rem .7rem; cursor: pointer; z-index: 10; font-family: 'DM Sans', sans-serif; }
.map-reset-btn:hover { background: #fff; border-color: var(--ink); }
.map-legend { display: flex; gap: 1.8rem; padding: .75rem 1.1rem; border-top: 1px solid var(--grey); background: var(--grey-lt); flex-wrap: wrap; }
.map-legend span { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: .45rem; }
.dot-red { display: inline-block; width: 10px; height: 10px; border-radius: 1px; background: #e8650a; }
.dot-grey { display: inline-block; width: 10px; height: 10px; border-radius: 1px; background: #c8bfb0; border: 1px solid #b0a898; }
.cp-land { fill: #ddd6c8; stroke: #c0b8ac; stroke-width: .3; }
.cp-member { fill: #e8650a; stroke: #e8650a; stroke-width: .8; cursor: pointer; transition: fill .2s; }
.cp-member:hover { fill: #c9540a; }
.cp-member.active { fill: #a04008; }
.cp-label { fill: #fff; font-family: 'DM Sans', sans-serif; font-size: 5px; font-weight: 500; pointer-events: none; }
.map-bottom { display: grid; grid-template-columns: 1fr 360px; gap: 0; border: 1px solid var(--grey); border-top: none; background: #fff; min-height: 200px; }
.map-chips-area { padding: 1.4rem 1.8rem; border-right: 1px solid var(--grey); }
.map-chips-label { font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; display: flex; align-items: center; gap: .6rem; }
.map-chips-label::before { content: ''; display: block; width: 1.2rem; height: 1px; background: var(--muted); }
.map-panel { background: #fff; padding: 1.4rem 1.8rem; font-size: .88rem; overflow-y: auto; max-height: 400px; border-left: 2px solid transparent; transition: border-left-color .3s; }
.map-panel.has-country { border-left-color: var(--red); }
.panel-emoji { font-size: 1.6rem; margin-bottom: .6rem; }
.map-panel h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 600; color: var(--ink); margin-bottom: .5rem; }
.map-panel > div > p { font-size: .8rem; color: var(--muted); line-height: 1.55; margin-bottom: 1rem; }
.hidden { display: none !important; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; background: var(--grey-lt); border: 1px solid var(--grey); color: var(--ink2); padding: .32rem .75rem; cursor: pointer; transition: all .18s; border-radius: 2px; white-space: nowrap; }
.chip:hover { background: var(--red-lt); border-color: var(--red-mid); color: var(--red); transform: translateY(-1px); }
.chip.active { background: var(--red-lt); border-color: var(--red); color: var(--red); }
.back-btn { font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: none; border: none; cursor: pointer; padding: 0; margin-bottom: 1rem; transition: color .2s; }
.back-btn:hover { color: var(--ink); }
.p-tag { font-size: .55rem; letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-bottom: .4rem; }
.p-flag { font-size: 2rem; margin-bottom: .3rem; }
.p-name { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 600; color: var(--ink); line-height: 1; }
.p-region { font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; margin-top: .2rem; }
.p-count { font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-bottom: .6rem; margin-bottom: .7rem; border-bottom: 1px solid var(--grey); }
.p-orgs { display: flex; flex-direction: column; gap: .55rem; }
.ocard { background: var(--grey-lt); border-left: 2px solid var(--red); padding: .6rem .8rem; transition: background .2s; }
.ocard:hover { background: var(--red-lt); }
.oname { font-size: .82rem; font-weight: 500; color: var(--ink); margin-bottom: .2rem; }
.ocontact { font-size: .68rem; color: var(--muted); }
.olink { font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--red); display: inline-block; margin-top: .3rem; }
.map-tooltip { position: fixed; background: var(--ink); color: #fff; font-size: .66rem; letter-spacing: .1em; padding: .45rem .9rem; border-left: 2px solid #e8650a; pointer-events: none; opacity: 0; transition: opacity .15s; z-index: 300; white-space: nowrap; }
.map-tooltip.show { opacity: 1; }

/* ── NEWS ── */
.news-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 1.4rem; align-items: start; margin-top: 3rem; }
.news-card { background: #fff; border: 1px solid var(--grey); padding: 1.8rem; display: flex; flex-direction: column; gap: .7rem; transition: transform .25s, box-shadow .25s; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.07); }
.news-card--big { border-top: 2px solid var(--red); background: var(--grey-lt); }
.tag { font-size: .6rem; letter-spacing: .17em; text-transform: uppercase; color: var(--red); font-weight: 500; }
.news-card time { font-size: .66rem; color: var(--muted); }
.news-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 600; color: var(--ink); line-height: 1.2; }
.news-card--big h3 { font-size: 1.35rem; }
.news-card p { font-size: .85rem; color: var(--muted); line-height: 1.65; }
.news-card a { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-top: auto; }

/* ── PUBLICATIONS HOMEPAGE (section #publications uniquement) ── */
#publications .pub-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; margin-top: 3rem; }
#publications .pub-card { background: #fff; border: 1px solid var(--grey); border-top: 2px solid var(--red); padding: 2rem; display: flex; flex-direction: column; gap: .7rem; transition: transform .25s, box-shadow .25s; }
#publications .pub-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.07); }
#publications .pub-meta { display: flex; justify-content: space-between; align-items: center; }
#publications .pub-year { font-size: .62rem; color: var(--muted); }
#publications .pub-card h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-weight: 600; color: var(--ink); }
#publications .pub-card p { font-size: .85rem; color: var(--muted); line-height: 1.65; flex: 1; }
#publications .pub-card a { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }

/* ── DON ── */
.don-section { background: #e8650a; padding: 5rem 0; text-align: center; position: relative; overflow: hidden; }
.don-inner h2 { color: #fff; }
.don-inner h2 em { color: rgba(255,255,255,.55); }
.don-inner p { font-size: 1rem; color: rgba(255,255,255,.72); line-height: 1.85; max-width: 50ch; margin: 0 auto 2.2rem; }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 6rem; align-items: start; }
.contact-left h2 { margin-bottom: 1.1rem; }
.contact-left > p { font-size: .97rem; color: var(--ink2); line-height: 1.85; margin-bottom: 1.8rem; }
.contact-infos { display: flex; flex-direction: column; gap: .8rem; margin-bottom: 1.8rem; }
.cinfo { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.2rem; background: var(--grey-lt); border: 1px solid var(--grey); border-left: 2px solid transparent; transition: border-left-color .2s, background .2s; }
.cinfo:hover { border-left-color: var(--red); background: var(--red-lt); }
.cinfo span { font-size: 1.1rem; flex-shrink: 0; }
.cinfo strong { font-size: .85rem; font-weight: 500; display: block; color: var(--ink); margin-bottom: .15rem; }
.cinfo p, .cinfo a { font-size: .84rem; color: var(--muted); }
.urgency { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.2rem; background: #fff9f8; border: 1px solid #b8e0e0; border-left: 2px solid var(--red); }
.dot-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex-shrink: 0; margin-top: .38rem; animation: pulse 1.5s infinite; }
.urgency strong { font-size: .66rem; letter-spacing: .15em; text-transform: uppercase; color: var(--red); display: block; margin-bottom: .35rem; }
.urgency p { font-size: .82rem; color: #1a5f5f; line-height: 1.65; }

/* ── FORM ── */
.form-title { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--red); margin-bottom: 1.8rem; display: flex; align-items: center; gap: .8rem; }
.form-title::before { content: ''; display: block; width: 1.4rem; height: 1px; background: var(--red); }
.cform { display: flex; flex-direction: column; gap: 1.2rem; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select { font-family: 'DM Sans', sans-serif; font-size: .95rem; color: var(--ink); background: var(--grey-lt); border: none; border-bottom: 1.5px solid var(--grey); padding: .7rem .2rem; outline: none; transition: border-color .2s; }
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--red); background: #fff; }
.field textarea { resize: vertical; min-height: 100px; }
.sel-wrap { position: relative; }
.sel-wrap::after { content: '▾'; position: absolute; right: .2rem; top: 50%; transform: translateY(-50%); font-size: .75rem; color: var(--muted); pointer-events: none; }
.sel-wrap select { width: 100%; cursor: pointer; appearance: none; }
.send-btn { display: flex; align-items: center; justify-content: space-between; background: var(--ink); color: #fff; font-family: 'DM Sans', sans-serif; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; padding: 1rem 1.4rem; border: 1.5px solid var(--ink); cursor: pointer; transition: background .22s, border-color .22s; }
.send-btn:hover { background: var(--red); border-color: var(--red); }
.send-arrow { font-size: 1rem; transition: transform .2s; }
.send-btn:hover .send-arrow { transform: translateX(5px); }
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.field input.error, .field textarea.error, .field select.error { border-bottom-color: var(--red); }
.field-error-msg { font-size: .62rem; color: var(--red); display: none; }
.field-error-msg.show { display: block; }
.human-check { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--grey); background: var(--grey-lt); padding: .9rem 1.1rem; user-select: none; }
.human-check.checked { border-color: #2a7a4a; background: #f4fbf7; }
.human-check.error-state { border-color: var(--red); }
.human-check-inner { display: flex; align-items: center; gap: .9rem; cursor: pointer; flex: 1; }
.hc-box { width: 24px; height: 24px; border: 2px solid var(--grey-mid); border-radius: 2px; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: border-color .2s, background .2s; }
.hc-spinner { width: 14px; height: 14px; border: 2px solid var(--grey); border-top-color: var(--red); border-radius: 50%; animation: hcSpin .7s linear infinite; display: none; }
@keyframes hcSpin { to { transform: rotate(360deg); } }
.hc-tick { width: 14px; height: 12px; color: #2a7a4a; display: none; }
.human-check.verifying .hc-spinner { display: block; }
.human-check.checked .hc-box { border-color: #2a7a4a; background: #2a7a4a; }
.human-check.checked .hc-tick { display: block; color: #fff; }
.hc-label { font-size: .88rem; color: var(--ink2); }
.human-check.checked .hc-label { color: #2a7a4a; }
.hc-badge { display: flex; flex-direction: column; align-items: center; gap: .2rem; opacity: .4; }
.hc-badge svg { width: 20px; height: 20px; color: var(--muted); }
.hc-badge span { font-size: .5rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.captcha-error { font-size: .62rem; color: var(--red); display: none; }
.captcha-error.show { display: block; }
.form-success { display: none; font-size: .75rem; color: #2a7a4a; background: #edf7f2; border: 1px solid #b8dfc9; border-left: 2px solid #2a7a4a; padding: .8rem 1.1rem; }
.form-success.show { display: block; }

/* ── TOAST ── */
#glassToast { position: fixed; bottom: 2.5rem; right: 2.5rem; z-index: 9999; min-width: 280px; max-width: 380px; background: rgba(255,255,255,.18); backdrop-filter: blur(22px); border: 1px solid rgba(255,255,255,.45); box-shadow: 0 8px 32px rgba(14,127,127,.18); border-radius: 4px; overflow: hidden; transform: translateY(120%); opacity: 0; transition: transform .42s cubic-bezier(.22,.84,.36,1), opacity .38s ease; pointer-events: none; }
#glassToast.toast-show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.toast-inner { padding: 1.2rem 1.4rem; display: flex; align-items: flex-start; gap: 1rem; position: relative; }
.toast-inner::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--red); }
.toast-icon { width: 36px; height: 36px; border-radius: 50%; background: rgba(14,127,127,.12); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1rem; }
.toast-body { flex: 1; }
.toast-title { font-family: 'Cormorant Garamond', serif; font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: .2rem; }
.toast-msg { font-size: .78rem; color: var(--ink2); line-height: 1.5; }
.toast-close { background: none; border: none; cursor: pointer; color: var(--muted); font-size: 1rem; padding: 0; }
.toast-progress { height: 2px; background: rgba(14,127,127,.2); position: relative; overflow: hidden; }
.toast-progress::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; background: var(--red); width: 100%; transform-origin: left; animation: toastProgress 4s linear forwards; }
@keyframes toastProgress { from{transform:scaleX(1)} to{transform:scaleX(0)} }

/* ── FOOTER ── */
.footer { background: var(--grey-lt); color: var(--muted); padding: 5rem 0 2rem; border-top: 2px solid var(--red); }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3.5rem; }
.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; font-weight: 700; color: var(--red); margin-bottom: .7rem; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.social-link { width: 34px; height: 34px; border: 1px solid var(--grey); border-radius: 2px; display: flex; align-items: center; justify-content: center; color: var(--muted); transition: border-color .2s, color .2s, background .2s; }
.social-link:hover { border-color: var(--red); color: var(--red); background: var(--red-lt); }
.social-link svg { width: 15px; height: 15px; }
.fcol h5 { font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink2); margin-bottom: 1.2rem; }
.fcol ul { display: flex; flex-direction: column; gap: .6rem; }
.fcol a { font-size: .84rem; color: var(--muted); transition: color .2s; }
.fcol a:hover { color: var(--red); }
.footer-bottom { padding-top: 1.8rem; border-top: 1px solid var(--grey); display: flex; justify-content: space-between; font-size: .62rem; letter-spacing: .1em; color: var(--grey-mid); text-transform: uppercase; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .news-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid, .about-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .map-bottom { grid-template-columns: 1fr; }
  .map-chips-area { border-right: none; border-bottom: 1px solid var(--grey); }
  .map-panel { max-height: none; border-left: none; border-top: 2px solid transparent; }
  .map-panel.has-country { border-top-color: var(--red); border-left-color: transparent; }
}

@media (max-width: 768px) {
  .nav-links, .nav-btn { display: none; }
  .burger { display: flex; }
  .hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-left { padding: 4.5rem 1.5rem; }
  .section { padding: 4rem 0; }
  .container { padding: 0 1.2rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  #publications .pub-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  #mapEl { min-height: unset; }
  .map-filters { gap: .4rem; padding: .7rem .8rem; }
  .filter-btn { font-size: .58rem; padding: .3rem .7rem; }
  .map-bottom { grid-template-columns: 1fr; }
  #glassToast { min-width: unset; left: 1rem; right: 1rem; bottom: 1rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 3.4rem; }
  .pillars { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .frow { grid-template-columns: 1fr; }
  .map-filters { gap: .3rem; }
  .filter-btn { font-size: .56rem; padding: .28rem .6rem; }
}

/* ── INNER PAGES ── */
.femed-inner-page #navbar { background: rgba(255,255,255,.98); }

.page-breadcrumb { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: .5rem; margin-bottom: 1.5rem; }
.page-breadcrumb a { color: var(--red); transition: opacity .2s; }
.page-breadcrumb a:hover { opacity: .7; }
.page-breadcrumb span { opacity: .4; }

/* ── Language Switcher ── */
.lang-switcher { display: flex; align-items: center; gap: 4px; margin-right: 12px; }
.lang-item { display: flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 6px; text-decoration: none; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink); transition: background 0.2s, color 0.2s; white-space: nowrap; }
.lang-item:hover { background: rgba(0,0,0,0.07); }
.lang-active { background: var(--red); color: #fff; }
.lang-active:hover { background: var(--red); opacity: 0.9; }
.lang-flag { font-size: 1rem; line-height: 1; }
.lang-code { font-size: 0.68rem; }

@media (max-width: 768px) {
  .lang-code { display: none; }
  .lang-switcher { margin-right: 8px; }
  .lang-item { padding: 4px 5px; }
}