/* ======================================================================
   SOMACHIR — Charte graphique officielle
   Rouge #C1272D · Alt #8B0000 · Vert #006233 · Or #C9A84C
   Playfair Display (titres) + DM Sans (corps)
   ====================================================================== */
:root {
  --brand:      #C1272D;
  --brand-dark: #8B0000;
  --heading:    #1C1C1E;
  --text:       #4A4A4C;
  --border:     #E8E0E0;
  --bg:         #FAFAFA;
  --white:      #FFFFFF;
  --green:      #006233;
  --green-dark: #004525;
  --gold:       #C9A84C;
  --brand-soft: #fdf2f2;
  --green-soft: #edf7f1;
  --gold-soft:  #fdf6e3;
  --radius:     8px;
  --radius-lg:  14px;
  --container:  1200px;
  --shadow-sm:  0 2px 10px rgba(28,28,30,.06);
  --shadow-md:  0 8px 30px rgba(28,28,30,.1);
  --ease: cubic-bezier(.4,0,.2,1);
  /* Motif zellige officiel (fichier fourni, fond blanc retiré) */
  --zellige: url("../img/zellige.svg");
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'DM Sans', -apple-system, Arial, sans-serif;
  font-size: 16px; font-weight: 400; line-height: 1.65;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand); }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700; color: var(--heading); line-height: 1.3;
}
h1 { font-size: 52px; line-height: 1.1; font-weight: 900; }
h2 { font-size: 32px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; line-height: 1.2; }
h5 { font-size: 17px; line-height: 1.25; }
h6 { font-size: 15px; }
@media (max-width: 720px) { h1 { font-size: 32px; } h2 { font-size: 26px; } h3 { font-size: 21px; } }

blockquote {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic; font-size: 19px; color: var(--heading);
  border-left: 3px solid var(--brand);
  padding: 6px 0 6px 20px; margin: 24px 0;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position:absolute; 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; top:-60px; left:16px; z-index:999; background:var(--brand); color:#fff; padding:9px 18px; border-radius:var(--radius); font-size:13px; font-weight:600; }
.skip-link:focus { top:12px; color:#fff; }

/* Boutons — charte : primary rouge / secondary blanc bordure verte, rayon 8px */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius);
  font-size: 14.5px; font-weight: 600; cursor: pointer;
  border: 1.5px solid transparent; transition: all .22s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(193,39,45,.3); }
.btn-secondary { background: var(--white); color: var(--green); border-color: var(--green); }
.btn-secondary:hover { background: var(--green); color: #fff; }
.btn-ghost { display:inline-flex; align-items:center; gap:6px; color: var(--green); font-size: 14px; font-weight: 600; transition: gap .2s var(--ease); }
.btn-ghost:hover { gap: 10px; color: var(--green-dark); }

/* ─── Topbar ─── */
.topbar { background: var(--heading); color: rgba(255,255,255,.75); font-size: 12.5px; padding: 8px 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar-info { display: flex; gap: 18px; }
.topbar-info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-info span::before { content: ''; width: 5px; height: 5px; background: var(--green); border-radius: 50%; }
.topbar-links { display: flex; gap: 8px; }
.topbar-links a { padding: 4px 14px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.tb-outline { border: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.85); }
.tb-outline:hover { border-color: rgba(255,255,255,.6); color: #fff; }
.tb-fill { background: var(--brand); color: #fff; }
.tb-fill:hover { background: var(--brand-dark); color: #fff; }

/* ─── Navbar ─── */
.navbar {
  background: rgba(255,255,255,.97); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  transition: box-shadow .3s var(--ease);
}
.navbar.is-scrolled { box-shadow: var(--shadow-sm); }
.navbar-inner { display: flex; align-items: center; height: 74px; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 54px; width: auto; }

.nav { flex: 1; display: flex; justify-content: center; }
.nav > ul { display: flex; gap: 2px; align-items: center; }
.nav > ul > li { position: relative; }
.nav a.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 15px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; color: var(--heading);
  transition: all .2s var(--ease); white-space: nowrap;
}
.nav a.nav-link:hover, .nav li:hover > a.nav-link, .nav a.nav-link.active { color: var(--brand); background: var(--brand-soft); }
.nav .caret { width: 8px; height: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .55; transition: transform .2s; }
.nav li:hover .caret { transform: rotate(225deg) translateY(-2px); }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-md);
  min-width: 230px; padding: 8px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: all .2s var(--ease); z-index: 60;
}
.nav li:hover .dropdown, .nav li:focus-within .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown a { display: block; padding: 10px 14px; border-radius: var(--radius); font-size: 13.5px; color: var(--text); }
.dropdown a:hover { background: var(--brand-soft); color: var(--brand); }

.nav-cta { flex-shrink: 0; display: flex; gap: 10px; align-items: center; }
.icon-search {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--heading); flex-shrink: 0;
  transition: all .2s var(--ease);
}
.icon-search:hover { background: var(--brand-soft); border-color: transparent; }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; cursor: pointer; align-items: center; justify-content: center; color: var(--heading); }

/* ─── Drawer mobile ─── */
.drawer { position: fixed; inset: 0; z-index: 300; visibility: hidden; opacity: 0; transition: all .3s var(--ease); }
.drawer.open { visibility: visible; opacity: 1; }
.drawer-bg { position: absolute; inset: 0; background: rgba(28,28,30,.55); }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 88vw);
  background: #fff; padding: 20px; overflow-y: auto;
  transform: translateX(100%); transition: transform .32s var(--ease);
  display: flex; flex-direction: column; gap: 16px;
}
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.drawer-head img { height: 42px; }
.drawer-close { width: 36px; height: 36px; border-radius: 50%; background: var(--bg); border: none; cursor: pointer; font-size: 17px; color: var(--heading); }
.drawer nav a { display: block; padding: 11px 14px; border-radius: var(--radius); font-size: 15px; font-weight: 600; color: var(--heading); }
.drawer nav a:hover { background: var(--brand-soft); color: var(--brand); }
.drawer nav .sub a { font-size: 13.5px; font-weight: 400; color: var(--text); padding: 8px 14px; }
.drawer nav .sub { border-left: 2px solid var(--brand-soft); margin: 2px 0 8px 16px; }
.drawer details summary { list-style: none; cursor: pointer; padding: 11px 14px; border-radius: var(--radius); font-size: 15px; font-weight: 600; color: var(--heading); display: flex; justify-content: space-between; align-items: center; }
.drawer details summary::-webkit-details-marker { display: none; }
.drawer details summary::after { content: '›'; transform: rotate(90deg); transition: transform .2s; color: var(--gold); }
.drawer details[open] summary::after { transform: rotate(-90deg); }
.drawer details summary:hover { background: var(--brand-soft); color: var(--brand); }
.drawer-cta { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--border); }
.drawer-cta .btn { justify-content: center; }
body.no-scroll { overflow: hidden; }

/* ─── Hero accueil ─── */
.hero { background: linear-gradient(135deg, #3a1108 0%, var(--heading) 42%, var(--heading) 58%, #06301c 100%); position: relative; overflow: hidden; color: #fff; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 65% 70% at 88% 45%, rgba(193,39,45,.28) 0%, transparent 62%),
    radial-gradient(ellipse 45% 55% at 8% 90%, rgba(0,98,51,.24) 0%, transparent 55%);
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: var(--zellige); background-size: 520px;
  opacity: .26; pointer-events: none; mix-blend-mode: soft-light;
  -webkit-mask-image: radial-gradient(ellipse 100% 110% at 50% 50%, #000 55%, transparent 96%);
  mask-image: radial-gradient(ellipse 100% 110% at 50% 50%, #000 55%, transparent 96%);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; padding: 76px 24px; max-width: var(--container); margin: 0 auto; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(201,168,76,.14); border: 1px solid rgba(201,168,76,.35); color: var(--gold); padding: 6px 15px; border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; margin-bottom: 20px; }
.hero-eyebrow::before { content: '★'; font-size: 10px; }
.hero-logo { height: 64px; width: auto; margin-bottom: 22px; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p.lead { font-size: 16.5px; color: rgba(255,255,255,.72); font-weight: 300; max-width: 470px; margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 38px; }
.hero-ctas .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.hero-ctas .btn-secondary:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.hero-note { font-size: 12.5px; color: rgba(255,255,255,.45); }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); max-width: 470px; }
.hero-stats-3 { grid-template-columns: repeat(3, 1fr); max-width: 380px; }
.stat-n { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700; color: #fff; }
.stat-l { font-size: 10.5px; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .7px; margin-top: 2px; }

.congres-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg); padding: 28px; backdrop-filter: blur(18px);
  position: relative; overflow: hidden;
}
.congres-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--brand), var(--gold), var(--green)); }
.cc-eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.congres-card h2 { color: #fff; font-size: 21px; margin-bottom: 8px; }
.cc-meta { font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 20px; display: flex; flex-direction: column; gap: 4px; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 20px; }
.cd-unit { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 12px 4px; text-align: center; }
.cd-n { font-family: 'Playfair Display', serif; font-size: 25px; font-weight: 700; color: #fff; display: block; line-height: 1; }
.cd-l { font-size: 9px; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.42); margin-top: 4px; }
.congres-card .btn { width: 100%; justify-content: center; }

/* ─── Sections ─── */
.section { padding: 60px 0; }
.section.alt { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 30px; flex-wrap: wrap; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--brand); }

/* Page header (pages intérieures) */
.page-head { background: linear-gradient(120deg, #3a1108 0%, var(--heading) 45%, #06301c 100%); color: #fff; padding: 52px 0 48px; position: relative; overflow: hidden; }
.page-head::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 55% 90% at 90% 20%, rgba(193,39,45,.22) 0%, transparent 60%); }
.page-head::after {
  content: ''; position: absolute; inset: 0;
  background-image: var(--zellige); background-size: 460px;
  opacity: .22; pointer-events: none; mix-blend-mode: soft-light;
}
.page-head .container { position: relative; z-index: 2; }
.page-head h1 { color: #fff; font-size: clamp(30px, 4.5vw, 44px); margin-bottom: 10px; }
.page-head p { color: rgba(255,255,255,.65); max-width: 640px; font-weight: 300; }
.breadcrumb { font-size: 12px; color: rgba(255,255,255,.45); margin-bottom: 16px; }
.breadcrumb a { color: var(--gold); }

/* Cartes génériques */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px;
  transition: all .25s var(--ease);
  display: flex; flex-direction: column; gap: 10px;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-soft); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.card-icon.green { background: var(--green-soft); }
.card-icon.gold { background: var(--gold-soft); }
.card h3, .card h4 { margin: 0; }
.card p { font-size: 14px; color: var(--text); font-weight: 300; flex: 1; }
.card .meta { font-size: 11.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 99px; font-size: 11.5px; font-weight: 700; width: fit-content; }
.badge.red { background: var(--brand-soft); color: var(--brand); }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.gold { background: var(--gold-soft); color: #8a6d24; }
.badge.lock::before { content: '🔒'; font-size: 10px; }

/* Double CTA (accueil) */
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.audience-card { border-radius: var(--radius-lg); padding: 34px 30px; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.audience-card.patient { background: var(--white); border: 1px solid var(--border); }
.audience-card.pro { background: linear-gradient(135deg, var(--green-dark), var(--green)); color: #fff; }
.audience-card.pro h2 { color: #fff; }
.audience-card.pro p { color: rgba(255,255,255,.78); }
.audience-card p { font-size: 14.5px; font-weight: 300; }
.audience-card .tag { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.audience-card.patient .tag { color: var(--brand); }
.audience-card.pro .tag { color: var(--gold); }
.audience-card.pro .btn { background: #fff; color: var(--green-dark); }
.audience-card.pro .btn:hover { background: var(--gold); color: var(--heading); }

/* Listes actualités */
.news-row { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; display: flex; gap: 16px; align-items: flex-start; transition: all .2s var(--ease); }
.news-row:hover { border-color: var(--brand); transform: translateX(3px); box-shadow: 0 4px 14px rgba(193,39,45,.08); }
.news-row .card-icon { width: 44px; height: 44px; flex-shrink: 0; }
.news-row h4 { font-size: 16.5px; }
.news-row .date { font-size: 11.5px; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }
.news-row p { font-size: 13.5px; font-weight: 300; margin-top: 2px; }

/* Agenda */
.agenda-item { display: flex; gap: 16px; align-items: flex-start; background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; transition: all .2s var(--ease); }
.agenda-item:hover { box-shadow: var(--shadow-sm); }
.agenda-date { flex-shrink: 0; width: 56px; text-align: center; padding: 8px 4px; border-radius: 10px; background: var(--brand-soft); }
.agenda-date.g { background: var(--green-soft); }
.agenda-date .d { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--brand); line-height: 1; }
.agenda-date.g .d { color: var(--green); }
.agenda-date .m { font-size: 9.5px; font-weight: 700; text-transform: uppercase; color: var(--brand); letter-spacing: .5px; }
.agenda-date.g .m { color: var(--green); }
.agenda-item h4 { font-size: 16.5px; margin-bottom: 2px; }
.agenda-item .loc { font-size: 12.5px; color: var(--text); }

/* Vidéos */
.video-card { padding: 0; overflow: hidden; }
.video-thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--heading), #3a3a3c); position: relative; display: flex; align-items: center; justify-content: center; }
.video-thumb .play { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--brand); padding-left: 4px; }
.video-thumb .dur { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,.75); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.video-card .body { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }

/* Bureau */
.person { text-align: center; }
.person .photo { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 14px; background: var(--brand-soft); border: 3px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 42px; overflow: hidden; }
.person h4 { font-size: 17px; }
.person .role { font-size: 11.5px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .7px; margin-top: 3px; }
.person .city { font-size: 12.5px; color: var(--text); margin-top: 2px; }

/* Formulaires */
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; max-width: 640px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--heading); }
.field input, .field select, .field textarea {
  padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 14.5px; background: #fff; color: var(--heading); outline: none;
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); }
.field .hint { font-size: 12px; color: #8a8a8e; }
.notice { background: var(--gold-soft); border: 1px solid rgba(201,168,76,.4); border-radius: var(--radius); padding: 14px 18px; font-size: 13.5px; margin: 18px 0; }
.notice.green { background: var(--green-soft); border-color: rgba(0,98,51,.25); }

/* Bandeau juniors / CTA large */
.banner {
  background: linear-gradient(135deg, var(--green-dark), var(--green) 65%);
  border-radius: var(--radius-lg); padding: 32px 34px; color: #fff;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.banner::before { content: ''; position: absolute; top: -60%; right: -4%; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.08); }
.banner h3 { color: #fff; }
.banner p { color: rgba(255,255,255,.78); font-size: 14px; font-weight: 300; }
.banner > div { flex: 1; min-width: 240px; position: relative; z-index: 1; }
.banner .btn { background: #fff; color: var(--green-dark); border: none; position: relative; z-index: 1; }
.banner .btn:hover { background: var(--gold); color: var(--heading); }

/* Contenu éditorial (pages légales, fiches) */
.prose { max-width: 780px; }
.prose h2 { margin: 34px 0 14px; }
.prose h3 { margin: 26px 0 10px; }
.prose p { margin-bottom: 14px; font-weight: 300; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; font-weight: 300; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--heading); font-weight: 600; }

/* Tableaux fiches */
.check-list { display: flex; flex-direction: column; gap: 10px; }
.check-item { display: flex; gap: 12px; align-items: flex-start; background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; font-size: 14px; }
.check-item::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* ─── Affiche officielle ─── */
.poster-preview {
  display: block; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
  transition: transform .25s var(--ease); max-width: 320px; margin: 0 auto;
}
.poster-preview:hover { transform: translateY(-4px) scale(1.01); }
.poster-preview img { width: 100%; height: auto; display: block; }

/* ─── Recherche ─── */
.search-panel {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.search-input {
  width: 100%; padding: 15px 18px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 16px; color: var(--heading); background: #fff; outline: none;
  transition: border-color .2s var(--ease);
  margin-bottom: 14px;
}
.search-input:focus { border-color: var(--brand); }
.search-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.search-filters select {
  padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 13.5px; color: var(--heading); background: #fff; outline: none; cursor: pointer;
  flex: 1; min-width: 150px;
}
.search-filters select:focus { border-color: var(--brand); }
.search-filters .btn { padding: 10px 18px; font-size: 13px; }
.search-count { font-size: 13px; font-weight: 600; color: var(--brand); margin-bottom: 14px; }
@media (max-width: 640px) { .search-filters { flex-direction: column; } .search-filters select { min-width: 0; } }

/* ─── Footer ─── */
footer { background: linear-gradient(135deg, #2a0d07 0%, var(--heading) 45%, #052c1a 100%); color: rgba(255,255,255,.72); margin-top: 70px; position: relative; overflow: hidden; }
footer::before {
  content: ''; position: absolute; inset: 0;
  background-image: var(--zellige); background-size: 520px;
  opacity: .16; pointer-events: none; mix-blend-mode: soft-light;
}
footer::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 12px;
  background-image: var(--zellige); background-size: 130px;
  opacity: .55; pointer-events: none;
}
footer .container, footer .footer-bottom { position: relative; z-index: 1; }
.footer-top { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 40px; padding: 54px 0 40px; }
.footer-brand img { height: 58px; margin-bottom: 14px; background: #fff; padding: 6px 10px; border-radius: 10px; }
.footer-brand p { font-size: 13px; font-weight: 300; line-height: 1.7; max-width: 300px; }
footer h4 { font-family: 'DM Sans', sans-serif; font-size: 11.5px; text-transform: uppercase; letter-spacing: 1.2px; color: #fff; margin-bottom: 15px; padding-bottom: 9px; border-bottom: 1px solid rgba(255,255,255,.1); font-weight: 700; }
footer ul li { margin-bottom: 8px; }
footer ul li a { font-size: 13px; color: rgba(255,255,255,.72); }
footer ul li a:hover { color: #fff; }
.footer-nl { margin-top: 16px; display: flex; gap: 8px; }
.footer-nl input { flex: 1; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); padding: 10px 13px; color: #fff; font-size: 13px; outline: none; }
.footer-nl input::placeholder { color: rgba(255,255,255,.45); }
.footer-nl button { background: var(--brand); color: #fff; border: none; border-radius: var(--radius); padding: 10px 16px; font-size: 13px; font-weight: 700; cursor: pointer; }
.footer-nl button:hover { background: var(--brand-dark); }
.flag { display: flex; align-items: center; gap: 12px; padding-bottom: 4px; }
.flag .stripe { height: 3px; flex: 1; background: var(--brand); border-radius: 2px; }
.flag .star { color: var(--green); font-size: 15px; }
.footer-bottom { background: rgba(0,0,0,.25); border-top: 1px solid rgba(255,255,255,.05); margin-top: 20px; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; padding-bottom: 14px; font-size: 12px; flex-wrap: wrap; gap: 8px; }
.footer-bottom a { color: rgba(255,255,255,.6); margin-left: 16px; }
.footer-bottom a:hover { color: #fff; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav, .nav-cta .btn, .topbar-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .audience { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 56px 18px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .topbar-info span:last-child { display: none; }
  .section { padding: 44px 0; }
  .brand img { height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}


/* Adaptation WordPress */
body { margin: 0; }
.wp-site-blocks { padding: 0; }
.wp-block-post-content { margin: 0; max-width: none; }
.wp-block-post-content > * { max-width: none; margin-block-start: 0; }
.somachir-wp-topbar { font-family: 'DM Sans', sans-serif; }
.somachir-wp-topbar a { color: rgba(255,255,255,.9); }
.somachir-wp-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.somachir-wp-header .wp-block-site-logo img { height: 54px; width: auto; }
.somachir-wp-header .wp-block-navigation-item__content {
  color: var(--heading); font-size: 14px; font-weight: 500;
}
.somachir-wp-header .wp-block-navigation-item__content:hover { color: var(--brand); }
.somachir-wp-footer { margin-block-start: 0; }
.somachir-imported-page { margin: 0; }
.somachir-video-library { padding: 56px 0; }
.somachir-video-filters {
  display: grid; grid-template-columns: minmax(220px, 2fr) repeat(2, minmax(150px, 1fr)) auto;
  gap: 12px; align-items: end; padding: 20px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 24px;
}
.somachir-video-filters label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; color: var(--heading); }
.somachir-video-filters input,
.somachir-video-filters select {
  width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--border);
  border-radius: var(--radius); background: #fff; color: var(--heading);
}
.somachir-video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.somachir-video-item { min-width: 0; }
.somachir-video-item .video-thumb {
  aspect-ratio: 16 / 9; background: linear-gradient(135deg, #32110d, #1c1c1e 55%, #06301c);
}
.somachir-video-item .video-thumb::after {
  content: ''; position: absolute; inset: 0; background-image: var(--zellige);
  background-size: 320px; opacity: .16;
}
.somachir-video-item .play { z-index: 1; }
.somachir-video-item .body { padding: 20px; }
.somachir-video-item .video-meta {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px;
}
.somachir-video-count { margin: 0 0 18px; font-weight: 600; color: var(--green-dark); }
.somachir-video-empty { padding: 26px; border: 1px solid var(--border); background: #fff; border-radius: var(--radius); }
.somachir-pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 30px; }
.somachir-pagination .page-numbers {
  min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--radius); background: #fff;
}
.somachir-pagination .current { background: var(--green); color: #fff; border-color: var(--green); }
.somachir-classic-header .menu,
.somachir-classic-header .sub-menu { list-style: none; margin: 0; padding: 0; }
.somachir-classic-header .menu { display: flex; align-items: center; gap: 2px; }
.somachir-classic-header .menu-item { position: relative; }
.somachir-classic-header .menu-item > a {
  display: block; padding: 10px 12px; color: var(--heading); font-size: 14px; font-weight: 500;
}
.somachir-classic-header .sub-menu {
  position: absolute; left: 0; top: 100%; min-width: 220px; padding: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(-5px); transition: .2s;
}
.somachir-classic-header .menu-item:hover > .sub-menu,
.somachir-classic-header .menu-item:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
@media (max-width: 980px) {
  .somachir-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .somachir-video-filters { grid-template-columns: 1fr 1fr; }
  .somachir-classic-header .nav { display: none; }
}
@media (max-width: 640px) {
  .somachir-video-grid, .somachir-video-filters { grid-template-columns: 1fr; }
}
