/* =========================================================
   Dr Nazim Gherabi — feuille de style
   Palette : bleu nuit (Novembre Bleu) + turquoise (logo cabinet)
   ========================================================= */
:root {
  --navy: #0b2a4a;
  --navy-2: #12375e;
  --blue: #1d6fb8;
  --teal: #1f9aa0;
  --teal-d: #157a80;
  --teal-l: #e6f4f5;
  --sky: #eef5fa;
  --ink: #12243a;
  --muted: #5a6b7d;
  --line: #dde6ee;
  --bg: #ffffff;
  --bg-soft: #f5f9fc;
  --wa: #25d366;
  --wa-d: #1aa851;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(11, 42, 74, .25);
  --shadow-lg: 0 30px 60px -25px rgba(11, 42, 74, .35);
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 76px;
}
html[lang="ar"] { --serif: "Cairo", "Segoe UI", Tahoma, sans-serif; --sans: "Cairo", "Segoe UI", Tahoma, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; color: var(--navy); letter-spacing: -.01em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-weight: 800; letter-spacing: 0; line-height: 1.35; }
p { margin: 0 0 1em; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
svg.fill, svg .fill { fill: currentColor; stroke: none; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.mt { margin-top: 2rem; }

.skip { position: absolute; inset-inline-start: 8px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; transform: translateY(-200%); }
.skip:focus { transform: none; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .9em 1.4em; border-radius: 999px; font-weight: 600; font-size: .98rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s; font-family: inherit; line-height: 1.2; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .6em 1.1em; font-size: .9rem; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--navy-2); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 10px 24px -10px rgba(37, 211, 102, .7); }
.btn-wa:hover { background: var(--wa-d); }
.btn-outline { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-outline:hover { border-color: var(--teal); color: var(--teal-d); }
.btn-light { background: #fff; color: var(--navy); }
.btn-outline-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(11,42,74,.5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong { font-family: var(--serif); font-weight: 400; font-size: 1.22rem; color: var(--navy); white-space: nowrap; }
html[lang="ar"] .brand-text strong { font-weight: 800; font-size: 1.05rem; }
.brand-text small { color: var(--teal-d); font-size: .76rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand.light .brand-text strong { color: #fff; }
.brand.light .brand-text small { color: #8fdde0; }
.main-nav { display: flex; gap: 4px; }
.btn { white-space: nowrap; }
.main-nav a { white-space: nowrap; text-decoration: none; padding: .5em .8em; border-radius: 999px; font-weight: 500; font-size: .95rem; color: var(--ink); transition: background .2s, color .2s; }
.main-nav a:hover, .main-nav a.active { background: var(--teal-l); color: var(--teal-d); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle { font-family: "Cairo", var(--sans); font-weight: 700; font-size: .9rem; border: 1.5px solid var(--line); background: #fff; color: var(--navy); border-radius: 999px; padding: .4em .9em; cursor: pointer; transition: border-color .2s; }
.lang-toggle:hover { border-color: var(--teal); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: var(--teal-l); border-radius: 12px; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 90px) 0 clamp(50px, 7vw, 100px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 400px at 85% 20%, rgba(31,154,160,.16), transparent 70%),
    radial-gradient(500px 380px at 10% 90%, rgba(29,111,184,.12), transparent 70%),
    linear-gradient(180deg, #f3f8fc, #fff 85%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .6em; background: #fff; border: 1px solid var(--line); padding: .45em 1em; border-radius: 999px; font-size: .86rem; font-weight: 600; color: var(--teal-d); box-shadow: 0 4px 14px -10px rgba(11,42,74,.4); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 4px rgba(37,211,102,.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(37,211,102,0); } }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); margin: .45em 0 .4em; }
.hero h1 em, .nb h2 em { font-style: italic; color: var(--teal); }
html[lang="ar"] .hero h1 em, html[lang="ar"] .nb h2 em { font-style: normal; }
.lead { font-size: clamp(1.02rem, 1.5vw, 1.15rem); color: var(--muted); max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 1.8em; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: .55em; }
.hero-facts li { display: flex; align-items: center; gap: .6em; font-weight: 500; }
.hero-facts svg { color: #fff; background: var(--teal); border-radius: 50%; padding: 3px; width: 1.35em; height: 1.35em; stroke-width: 2.6; }

.hero-visual { position: relative; }
.portrait { position: relative; border-radius: 32px; overflow: hidden; aspect-ratio: 1 / 1.08; box-shadow: var(--shadow-lg); background: var(--sky); }
.portrait::after { content: ""; position: absolute; inset: auto 0 0 0; height: 35%; background: linear-gradient(transparent, rgba(11,42,74,.35)); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.float-card { position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; padding: 12px 16px; border-radius: 16px; box-shadow: var(--shadow); font-size: .9rem; line-height: 1.25; animation: float 6s ease-in-out infinite; }
.float-card strong { display: block; color: var(--navy); }
.float-card small { color: var(--muted); }
.fc-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--teal-l); color: var(--teal-d); }
.fc-icon.blue { background: #e7f0fa; color: var(--blue); }
.fc-1 { top: 8%; inset-inline-start: -28px; }
.fc-2 { bottom: 9%; inset-inline-end: -22px; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- Strip ---------- */
.strip { margin-top: -36px; position: relative; z-index: 2; }
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.strip-item { display: flex; align-items: center; gap: 14px; padding: 20px 24px; text-decoration: none; transition: background .2s; }
.strip-item + .strip-item { border-inline-start: 1px solid var(--line); }
.strip-item:hover { background: var(--bg-soft); }
.strip-item small { display: block; color: var(--muted); font-size: .82rem; }
.strip-item strong { color: var(--navy); font-size: 1.02rem; }
.si-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--navy); color: #fff; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--navy); color: #d6e3ef; }
.section-dark h2 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 52px); text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-head p:last-child { color: var(--muted); font-size: 1.05rem; margin: 0; }
.section-dark .section-head p:last-child { color: #a9bdd1; }
.kicker { display: inline-flex; align-items: center; gap: .5em; text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; color: var(--teal-d); margin-bottom: .9em; }
html[lang="ar"] .kicker { letter-spacing: 0; font-size: .9rem; }
.kicker.light { color: #7fd3d7; }
.ribbon { fill: currentColor; stroke: none; }

/* ---------- Specialities ---------- */
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.spec-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px 22px; transition: transform .3s, box-shadow .3s, border-color .3s; overflow: hidden; display: flex; flex-direction: column; }
.spec-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--teal), var(--blue)); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
html[dir="rtl"] .spec-card::before { transform-origin: right; }
.spec-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.spec-card:hover::before { transform: scaleX(1); }
.spec-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--teal-l); color: var(--teal-d); margin-bottom: 18px; transition: background .3s, color .3s; }
.spec-card:hover .spec-icon { background: var(--navy); color: #fff; }
.spec-icon svg { width: 28px; height: 28px; stroke-width: 1.6; }
.spec-card h3 { font-size: 1.32rem; margin-bottom: .4em; }
html[lang="ar"] .spec-card h3 { font-size: 1.15rem; }
.spec-card p { color: var(--muted); font-size: .94rem; margin-bottom: 1em; flex: 1; }
.spec-card .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.spec-card .tags span { font-size: .75rem; font-weight: 600; background: var(--bg-soft); color: var(--navy-2); padding: .25em .65em; border-radius: 999px; border: 1px solid var(--line); }
.spec-card .spec-link { margin-top: 14px; font-weight: 600; font-size: .9rem; color: var(--teal-d); text-decoration: none; display: inline-flex; gap: .3em; align-items: center; }
.spec-card .spec-link:hover { text-decoration: underline; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-media { position: relative; padding-bottom: 60px; padding-inline-end: 50px; }
.am-main { border-radius: 26px; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.am-sub { position: absolute; width: 46%; bottom: 0; inset-inline-end: 0; border-radius: 20px; border: 6px solid var(--bg-soft); box-shadow: var(--shadow); aspect-ratio: 3/4; object-fit: cover; object-position: top; }
.about-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.about-copy > p { color: var(--muted); }
.quote { margin: 1.6em 0; padding: 1.3em 1.5em; background: #fff; border-radius: var(--radius-sm); border-inline-start: 4px solid var(--teal); box-shadow: 0 10px 30px -22px rgba(11,42,74,.5); }
.quote p { font-family: var(--serif); font-size: 1.3rem; color: var(--navy); margin-bottom: .4em; line-height: 1.35; }
html[lang="ar"] .quote p { font-weight: 700; font-size: 1.15rem; }
.quote cite { font-style: normal; font-size: .88rem; color: var(--muted); }
.pillars { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pillars li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; }
.pillars strong { display: block; color: var(--navy); font-size: .95rem; margin-bottom: .2em; }
.pillars span { font-size: .84rem; color: var(--muted); line-height: 1.45; display: block; }

/* ---------- Novembre Bleu ---------- */
.nb { background: linear-gradient(135deg, #0b2a4a 0%, #0f3b68 55%, #1d6fb8 130%); color: #d6e3ef; position: relative; overflow: hidden; }
.nb::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: rgba(255,255,255,.05); top: -180px; inset-inline-end: -160px; }
.nb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 70px); align-items: center; position: relative; }
.nb h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.nb h2 em { color: #7fc4f5; }
.nb-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 1.6em 0; }
.nb-stats div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-sm); padding: 14px; }
.nb-stats strong { display: block; font-family: var(--serif); font-size: 2rem; color: #fff; line-height: 1.1; font-weight: 400; }
html[lang="ar"] .nb-stats strong { font-weight: 800; }
.nb-stats span { font-size: .82rem; line-height: 1.35; display: block; margin-top: 4px; }
.nb-who { font-size: .95rem; }
.nb-src { font-size: .8rem; color: #93abc4; }
.nb-slides { position: relative; }
.slider { position: relative; border-radius: 24px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); aspect-ratio: 3/4; background: #eaf2fa; max-width: 460px; margin-inline: auto; }
.slider-track { display: flex; height: 100%; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.slider-track img { width: 100%; height: 100%; object-fit: cover; flex: 0 0 100%; cursor: zoom-in; }
.slider-btn { position: absolute; top: 50%; translate: 0 -50%; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--navy); font-size: 1.5rem; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); line-height: 1; }
.slider-btn.prev { left: 12px; } .slider-btn.next { right: 12px; }
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.slider-dots button { width: 9px; height: 9px; border-radius: 99px; border: 0; background: rgba(255,255,255,.35); cursor: pointer; padding: 0; transition: width .3s, background .3s; }
.slider-dots button.on { width: 26px; background: #fff; }

/* ---------- Events ---------- */
.events { display: grid; gap: 26px; }
.event { display: grid; grid-template-columns: 1.05fr 1fr; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; transition: box-shadow .3s; }
.event:hover { box-shadow: var(--shadow-lg); }
.event:nth-child(even) .event-media { order: 2; }
.event-media { position: relative; display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; min-height: 340px; background: var(--sky); }
.event-media img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: filter .3s; }
.event-media img:hover { filter: brightness(1.06); }
.event-media img:first-child { grid-row: 1 / 3; }
.event-media.single { grid-template-columns: 1fr; }
.event-media.single img:first-child { grid-row: auto; }
.event-media.two img:first-child { grid-row: 1 / 3; }
.event-media.two img:nth-child(2) { grid-row: 1 / 3; }
.event-body { padding: clamp(24px, 3.5vw, 40px); display: flex; flex-direction: column; justify-content: center; }
.event-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: .35em; font-size: .78rem; font-weight: 700; padding: .35em .8em; border-radius: 999px; background: var(--teal-l); color: var(--teal-d); }
.chip.blue { background: #e7f0fa; color: var(--blue); }
.chip.gray { background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); }
.chip svg { width: 1em; height: 1em; }
.event h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
.event p { color: var(--muted); }
.event .event-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: .5em; }
.event .event-links .btn { font-size: .88rem; padding: .7em 1.1em; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.filters button { font-family: inherit; font-size: .9rem; font-weight: 600; padding: .55em 1.1em; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.2); background: transparent; color: #c6d6e6; cursor: pointer; transition: all .2s; }
.filters button:hover { border-color: rgba(255,255,255,.5); color: #fff; }
.filters button[aria-selected="true"] { background: #fff; color: var(--navy); border-color: #fff; }
.filters.dark button { border-color: var(--line); color: var(--muted); }
.filters.dark button:hover { border-color: var(--teal); color: var(--teal-d); }
.filters.dark button[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Videos ---------- */
.video-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.video-card { position: relative; aspect-ratio: 9/16; border-radius: 18px; overflow: hidden; border: 0; padding: 0; cursor: pointer; text-align: start; color: #fff; font-family: inherit; background: var(--navy-2); isolation: isolate; transition: transform .3s, box-shadow .3s; }
.video-card:hover { transform: translateY(-5px); box-shadow: 0 25px 50px -20px rgba(0,0,0,.7); }
.video-card .vc-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transition: transform .6s; }
.video-card:hover .vc-bg { transform: scale(1.06); }
.video-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,42,74,.15) 0%, rgba(11,42,74,.25) 45%, rgba(7,24,44,.92) 100%); }
.video-card .vc-play { position: absolute; top: 50%; left: 50%; translate: -50% -60%; width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--navy); display: grid; place-items: center; transition: transform .3s, background .3s; }
.video-card:hover .vc-play { transform: scale(1.1); background: #fff; }
.video-card .vc-play svg { width: 22px; height: 22px; margin-inline-start: 3px; }
html[dir="rtl"] .video-card .vc-play svg { margin-inline-start: 0; margin-inline-end: 3px; }
.video-card .vc-info { position: absolute; inset: auto 0 0 0; padding: 14px; }
.video-card .vc-cat { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #7fd3d7; }
html[lang="ar"] .video-card .vc-cat { letter-spacing: 0; }
.video-card .vc-title { display: block; font-weight: 600; font-size: .95rem; line-height: 1.3; margin-top: 4px; }
.video-card .vc-views { font-size: .75rem; color: #a9bdd1; display: block; margin-top: 4px; }
.video-card.hidden, .g-item.hidden { display: none; }

/* ---------- Gallery ---------- */
.gallery { columns: 4 240px; column-gap: 14px; }
.g-item { break-inside: avoid; margin: 0 0 14px; position: relative; border-radius: 16px; overflow: hidden; cursor: zoom-in; border: 0; padding: 0; display: block; width: 100%; background: var(--sky); }
.g-item img { width: 100%; height: auto; transition: transform .6s; }
.g-item:hover img { transform: scale(1.04); }
.g-item figcaption { position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; color: #fff; font-size: .85rem; font-weight: 500; text-align: start; background: linear-gradient(transparent, rgba(7,24,44,.85)); opacity: 0; transform: translateY(8px); transition: all .3s; }
.g-item:hover figcaption, .g-item:focus-visible figcaption { opacity: 1; transform: none; }

/* ---------- Booking ---------- */
.rdv-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.rdv-info h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.rdv-info > p { color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 1.6em 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps li > span { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; }
.steps strong { display: block; color: var(--navy); }
.steps small { color: var(--muted); font-size: .9rem; }
.rdv-alt { display: flex; flex-wrap: wrap; gap: 10px; }
.note { margin-top: 1.4em; font-size: .86rem; color: #8a4b12; background: #fff6ea; border: 1px solid #f4dcbc; padding: 10px 14px; border-radius: 10px; }

.rdv-form { background: #fff; border-radius: 24px; padding: clamp(22px, 4vw, 38px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field > legend { font-weight: 600; font-size: .88rem; color: var(--navy); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; width: 100%; padding: .8em 1em; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg-soft); color: var(--ink); transition: border-color .2s, background .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(31,154,160,.15); }
.field.invalid input, .field.invalid select { border-color: #d64545; background: #fff7f7; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.radio-row legend { margin-bottom: 6px; width: 100%; }
.radio-row label, .consent { display: inline-flex; align-items: flex-start; gap: .5em; font-size: .93rem; cursor: pointer; }
.radio-row input, .consent input { accent-color: var(--teal); width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0; }
.consent { color: var(--muted); font-size: .86rem; }
.consent.invalid { color: #d64545; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; }
.rdv-form { position: relative; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form-actions .btn { flex: 1 1 220px; }
.form-status { font-size: .93rem; border-radius: 12px; }
.form-status:empty { display: none; }
.form-status.ok { background: #e8f8ef; color: #136b3a; border: 1px solid #bfe9cf; padding: 12px 14px; }
.form-status.err { background: #fff1f1; color: #9b2c2c; border: 1px solid #f3c7c7; padding: 12px 14px; }
.form-status.info { background: var(--teal-l); color: var(--teal-d); border: 1px solid #c4e5e7; padding: 12px 14px; }
.form-status a { font-weight: 700; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; align-items: stretch; }
.contact-cards { display: grid; gap: 12px; align-content: start; }
.c-card { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.c-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--teal-l); color: var(--teal-d); flex-shrink: 0; }
.c-card small { display: block; color: var(--muted); font-size: .8rem; }
.c-card strong { display: block; color: var(--navy); font-weight: 600; }
.c-card strong a { text-decoration: none; }
.c-card strong a:hover { color: var(--teal-d); }
.c-card div > a { font-size: .88rem; color: var(--teal-d); font-weight: 600; text-decoration: none; }
.socials { display: flex; gap: 10px; margin-top: 4px; }
.socials a { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--navy); color: #fff; transition: transform .2s, background .2s; }
.socials a:hover { transform: translateY(-3px); background: var(--teal); }
.map { border-radius: 22px; overflow: hidden; min-height: 380px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--sky); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: #071a30; color: #9fb3c8; padding: 60px 0 100px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h3 { font-family: var(--sans); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: #fff; margin-bottom: 1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5em; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.f-about { margin-top: 1em; max-width: 36ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .82rem; }
.footer-bottom p { margin: 0; }
.disclaimer { color: #6f87a0; }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 120; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wa-btn { width: 62px; height: 62px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; color: #fff; box-shadow: 0 12px 30px -8px rgba(37,211,102,.8); position: relative; transition: transform .25s; }
.wa-btn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ring 2.2s infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.wa-btn svg { width: 32px; height: 32px; fill: #fff; stroke: none; }
.wa-float:hover .wa-btn { transform: scale(1.08); }
.wa-tip { background: #fff; color: var(--navy); font-weight: 600; font-size: .88rem; padding: .6em 1em; border-radius: 999px; box-shadow: var(--shadow); white-space: nowrap; opacity: 0; transform: translateX(10px); transition: all .3s; pointer-events: none; }
html[dir="rtl"] .wa-tip { transform: translateX(-10px); }
.wa-float:hover .wa-tip, .wa-float.peek .wa-tip { opacity: 1; transform: none; }

/* ---------- Mobile bar ---------- */
.mobile-bar { display: none; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 300; background: rgba(5,16,30,.92); display: grid; place-items: center; padding: 60px 70px; }
.modal[hidden] { display: none; }
.modal-body { max-width: min(1100px, 100%); max-height: calc(100vh - 140px); display: grid; place-items: center; }
.modal-body img { max-width: 100%; max-height: calc(100vh - 140px); border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.modal-body iframe { width: min(380px, 86vw); aspect-ratio: 9/16; max-height: calc(100vh - 140px); border: 0; border-radius: 16px; background: #000; }
.modal-close { position: absolute; top: 14px; inset-inline-end: 18px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1.8rem; cursor: pointer; line-height: 1; }
.modal-nav { position: absolute; top: 50%; translate: 0 -50%; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 2rem; cursor: pointer; line-height: 1; }
.modal-nav.prev { left: 14px; } .modal-nav.next { right: 14px; }
.modal-close:hover, .modal-nav:hover { background: rgba(255,255,255,.25); }
.modal-caption { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #cfdbe7; font-size: .92rem; margin: 0; padding: 0 70px; }
.modal-caption a { color: #7fd3d7; }
body.no-scroll { overflow: hidden; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1080px) {
  :root { --header-h: 66px; }
  .burger { display: flex; }
  .main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; background: #fff; flex-direction: column; padding: 12px 16px 20px; gap: 2px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(11,42,74,.35); transform: translateY(-120%); visibility: hidden; transition: transform .35s, visibility .35s; }
  .main-nav.open { transform: none; visibility: visible; }
  .main-nav a { padding: .85em 1em; font-size: 1.02rem; border-radius: 12px; }
}
@media (max-width: 920px) {
  .hero-grid, .about-grid, .nb-grid, .rdv-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; margin-inline: auto; width: 100%; }
  .fc-1 { inset-inline-start: -8px; } .fc-2 { inset-inline-end: -8px; }
  .event, .event:nth-child(even) { grid-template-columns: 1fr; }
  .event:nth-child(even) .event-media { order: 0; }
  .event-media { min-height: 260px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .about-media { max-width: 560px; }
}
@media (max-width: 680px) {
  body { padding-bottom: 68px; }
  .hide-sm { display: none !important; }
  .brand-text strong { font-size: 1.05rem; }
  .brand-text small { font-size: .7rem; }
  .brand img { width: 38px; height: 38px; }
  .strip { margin-top: -24px; }
  .strip-grid { grid-template-columns: 1fr; }
  .strip-item + .strip-item { border-inline-start: 0; border-top: 1px solid var(--line); }
  .strip-item { padding: 14px 18px; }
  .spec-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .video-card .vc-play { width: 46px; height: 46px; }
  .video-card .vc-title { font-size: .85rem; }
  .gallery { columns: 2 140px; column-gap: 10px; }
  .g-item { margin-bottom: 10px; }
  .pillars, .nb-stats { grid-template-columns: 1fr; }
  .nb-stats div { display: flex; align-items: baseline; gap: 12px; }
  .nb-stats strong { font-size: 1.6rem; min-width: 80px; }
  .field-row { grid-template-columns: 1fr; }
  .event-media { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 120px; min-height: 0; }
  .event-media img:first-child { grid-column: 1 / -1; grid-row: auto; }
  .event-media.single { grid-template-rows: 240px; }
  .event-media.two { grid-template-rows: 220px; }
  .event-media.two img:first-child { grid-column: auto; grid-row: auto; }
  .event-media.two img:nth-child(2) { grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-footer { padding-bottom: 110px; }
  .float-card { padding: 9px 12px; font-size: .8rem; }
  .fc-icon { width: 32px; height: 32px; }
  .wa-float { bottom: 82px; inset-inline-end: 14px; }
  .wa-btn { width: 54px; height: 54px; }
  .wa-tip { display: none; }
  .mobile-bar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; inset: auto 0 0 0; z-index: 110; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -20px rgba(11,42,74,.4); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); gap: 6px; }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px; text-decoration: none; font-size: .74rem; font-weight: 600; color: var(--navy); border-radius: 12px; }
  .mobile-bar a.wa { color: var(--wa-d); }
  .mobile-bar a.rdv { background: var(--navy); color: #fff; }
  .mobile-bar svg { width: 22px; height: 22px; }
  .modal { padding: 60px 10px; }
  .modal-nav { top: auto; bottom: 10px; translate: none; width: 44px; height: 44px; }
  .modal-caption { bottom: 64px; padding: 0 16px; font-size: .82rem; }
  .slider-btn { width: 36px; height: 36px; }
}
