/* ============ Radiosatlas — shared styles ============ */
:root {
  --white: #ffffff;
  --bg: #f4fbfd;
  --cloud: #e7f4f9;
  --water: #55c7bd;
  --water-deep: #2fa89c;
  --blue: #2079a6;
  --blue-deep: #13597c;
  --ink: #15323d;
  --ink-soft: #39606f;
  --muted: #5f7f8a;
  --line: #d6e8ee;
  --shadow: 0 6px 24px rgba(19, 89, 124, .10);
  --shadow-lg: 0 16px 44px rgba(19, 89, 124, .16);
  --radius: 18px;
  --font: 'Nunito', system-ui, -apple-system, sans-serif;
}

/* ---------- Reset / anti débordement horizontal ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img,
iframe,
video,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  color: var(--blue-deep);
  margin: 0 0 .5em;
}

p,
h1,
h2,
h3,
h4,
a,
li,
span,
div {
  overflow-wrap: break-word;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

section {
  padding: 4.5rem 0;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft, #39646e);
  max-width: 56ch;
}

/* Sécurité sur les enfants des grilles */
.hero-grid > *,
.grid-3 > *,
.grid-4 > *,
.steps > *,
.team > *,
.exam > *,
.form-grid > *,
.contact-grid > *,
.footer-grid > * {
  min-width: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
  white-space: nowrap;
  max-width: 100%;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--water);
  color: #06353a;
  box-shadow: 0 8px 18px rgba(47, 168, 154, .35);
}

.btn-primary:hover {
  background: var(--water-deep);
  color: #fff;
}

.btn-outline {
  background: #fff;
  color: var(--blue);
  border: 2px solid var(--water);
  box-shadow: 0 4px 12px rgba(47, 168, 154, .18);
}

.btn-outline:hover {
  background: var(--cloud);
}

.btn-dark {
  background: var(--blue-deep);
  color: #fff;
}

.btn-dark:hover {
  background: var(--blue);
}

.btn-block {
  width: 100%;
}

.btn-row {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  width: 100%;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1rem;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 900;
  color: var(--blue-deep);
  font-size: 1.15rem;
  white-space: nowrap;
  min-width: 0;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.03;
  text-align: left;
  min-width: 0;
}

.brand-name small {
  display: block;
  font-size: .66em;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--water-deep);
}

.brand-name br,
.brand-name mark {
  display: none;
}

.brand mark {
  background: var(--water);
  color: #065f5c;
  border-radius: 8px;
  padding: .1rem .4rem;
}

.logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  flex: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-soft, #39646e);
  font-weight: 700;
  font-size: .98rem;
}

.nav-links a:hover {
  color: var(--blue);
  text-decoration: none;
}

.nav-links .btn {
  padding: .6rem 1.15rem;
  font-size: .9rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex: none;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--blue-deep);
  margin: 3px 0;
  border-radius: 2px;
}

/* ---------- Language switch ---------- */
.lang-link {
  font-weight: 900;
  font-size: .9rem;
  border: 1.5px solid var(--water);
  color: var(--water-deep) !important;
  padding: .4rem .7rem;
  border-radius: 999px;
  line-height: 1;
}

.lang-link:hover {
  background: var(--cloud);
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(85, 199, 189, .28) 0%, transparent 55%),
    radial-gradient(100% 90% at 0% 100%, rgba(32, 121, 166, .18) 0%, transparent 55%);
  padding: 5rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 3rem;
  align-items: center;
}

.hero .kicker {
  display: inline-block;
  background: #fff;
  border: 1px solid rgba(47, 168, 154, .4);
  color: var(--water-deep);
  font-weight: 800;
  font-size: .85rem;
  padding: .3rem .8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  letter-spacing: .04em;
}

.hero h1 {
  font-size: 2.7rem;
  color: var(--blue-deep);
  font-weight: 900;
}

.hero p.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 48ch;
  margin-bottom: 2rem;
}

.hero-panel {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.4rem;
  border: 1px solid var(--line);
}

.quick-check {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: .4rem 0 0;
  border-top: 1px dashed var(--line);
}

.quick-check li {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  padding: .45rem 0;
  color: var(--ink-soft);
  font-size: .95rem;
}

.quick-check .ic {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--cloud);
  color: var(--water-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
}

.hero .cta-time {
  color: var(--muted);
  font-size: .9rem;
  margin-top: 1rem;
  display: flex;
  gap: .5rem;
  align-items: center;
}

/* ---------- Section bits ---------- */
.sec-head {
  max-width: 680px;
  margin-bottom: 2.4rem;
}

.sec-head .tag {
  color: var(--water-deep);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .8rem;
}

.sec-head h2 {
  font-size: 2rem;
}

.sec-head p {
  color: var(--ink-soft);
}

/* ---------- Cards / grids ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  transition: transform .2s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
}

.card .card-thumb {
  width: calc(100% + 3.2rem);
  max-width: none;
  margin: -1.6rem -1.6rem 1.2rem;
  border-radius: var(--radius) var(--radius) 0 0;
  display: block;
  height: 190px;
  object-fit: cover;
  padding: 0;
}

.card .ic {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cloud), #e2f3ee);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.15rem;
}

.card p {
  color: var(--ink-soft);
  font-size: .98rem;
  margin-bottom: .6rem;
}

.card .link {
  font-weight: 800;
  color: var(--water-deep);
  font-size: .95rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
  counter-reset: st;
}

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.step .num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--water);
  color: #fff;
  font-weight: 900;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.05rem;
}

.step p {
  color: var(--ink-soft);
  font-size: .95rem;
  margin: 0;
}

/* ---------- Values / team / exams ---------- */
.clean {
  background: #fff;
}

.value-ic {
  font-size: 1.8rem;
}

.team {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.member {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.member .photo {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--cloud), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #fff;
}

.member .info {
  padding: 1.2rem;
}

.member h3 {
  margin-bottom: .15rem;
}

.member .role {
  color: var(--water-deep);
  font-weight: 800;
  font-size: .9rem;
}

.member .bio {
  color: var(--ink-soft);
  font-size: .92rem;
  margin: .5rem 0 0;
}

.exam {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.exam-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.exam-item .exam-thumb {
  width: calc(100% + 3rem);
  max-width: none;
  margin: -1.5rem -1.5rem 1.2rem;
  border-radius: var(--radius) var(--radius) 0 0;
  display: block;
  height: 190px;
  object-fit: cover;
  padding: 0;
}

.exam-item h3 {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.1rem;
}

.exam-item h3 .ic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--cloud);
  color: var(--water-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex: none;
}

.exam-item p {
  color: var(--ink-soft);
  font-size: .96rem;
  margin: .4rem 0 .8rem;
}

.exam-item details {
  font-size: .92rem;
}

.exam-item summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--blue);
  padding: .3rem 0;
}

.exam-item details .d {
  padding-left: .2rem;
  color: var(--ink-soft);
}

.exam-item details ul {
  margin: .3rem 0 .6rem 1.1rem;
  padding: 0;
  color: var(--ink-soft);
}

/* ---------- Info / data rows ---------- */
.info-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.info-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.info-block li {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  padding: .6rem 0;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line);
}

.info-block li:last-child {
  border-bottom: none;
}

.info-block .ic {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--cloud);
  color: var(--water-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hours {
  width: 100%;
  overflow-x: auto;
}

.hours table {
  width: 100%;
  border-collapse: collapse;
}

.hours td {
  padding: .5rem .4rem;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-soft);
}

.hours .today {
  font-weight: 800;
  color: var(--water-deep);
}

.badge {
  background: var(--cloud);
  color: var(--blue);
  font-weight: 800;
  font-size: .78rem;
  padding: .2rem .6rem;
  border-radius: 999px;
}

/* ---------- Maps ---------- */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #dbeaef;
  min-height: 300px;
}

.map-wrap iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.field label {
  display: block;
  font-weight: 800;
  font-size: .92rem;
  color: var(--blue-deep);
  margin-bottom: .4rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  max-width: 100%;
  padding: .8rem .9rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  transition: border .15s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--water);
}

.field .hint {
  font-size: .8rem;
  color: var(--muted);
  margin-top: .3rem;
}

.field .req {
  color: #d9534f;
}

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.rdv-tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.rdv-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: .6rem .2rem;
  margin: 0 1rem -1px 0;
  font-family: inherit;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
}

.rdv-tab.on {
  color: var(--water);
  border-bottom-color: var(--water);
}

.choice {
  display: block;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.choice:hover {
  border-color: var(--water);
}

.choice input {
  margin-right: .6rem;
  accent-color: var(--water-deep);
}

.choice.selected {
  border-color: var(--water);
  background: var(--cloud);
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: .6rem;
}

.slot {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: .6rem;
  text-align: center;
  cursor: pointer;
  font-weight: 800;
  color: var(--blue-deep);
  background: #fff;
  transition: .15s;
}

.slot:hover {
  border-color: var(--water);
}

.slot.on {
  background: var(--water);
  border-color: var(--water);
  color: #fff;
}

.day-pill {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: .55rem .9rem;
  cursor: pointer;
  font-weight: 800;
  color: var(--ink-soft);
  background: #fff;
}

.day-pill.on {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  color: #fff;
}

.day-row {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

/* ---------- FAQ accordion ---------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: .8rem;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 1.15rem 1.3rem;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--blue-deep);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-q .arrow {
  color: var(--water-deep);
  transition: transform .2s;
  flex: none;
}

.faq-item.open .arrow {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  padding: 0 1.3rem;
}

.faq-item.open .faq-a {
  max-height: 400px;
  padding: 0 1.3rem 1.1rem;
}

.faq-a p {
  color: var(--ink-soft);
  margin: .4rem 0;
}

.faq-a ul {
  color: var(--ink-soft);
  margin: .4rem 0;
  padding-left: 1.2rem;
}

/* ---------- Contact form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 2.4rem;
}

/* ---------- Chatbot ---------- */
.chat-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--water), var(--blue));
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(19, 89, 124, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s;
}

.chat-btn:hover {
  transform: scale(1.06);
}

.chat-window {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 60;
  width: min(380px, 92vw);
  height: min(520px, 72vh);
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chat-window.open {
  display: flex;
}

.chat-head {
  background: linear-gradient(135deg, var(--water), var(--blue));
  color: #fff;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}

.chat-head .avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex: none;
}

.chat-head h4 {
  margin: 0;
  color: #fff;
  font-size: 1.02rem;
}

.chat-head p {
  margin: 0;
  font-size: .78rem;
  opacity: .9;
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.msg {
  max-width: 80%;
  padding: .6rem .9rem;
  border-radius: 14px;
  font-size: .94rem;
  white-space: pre-wrap;
}

.msg.bot {
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  color: var(--ink);
}

.msg.user {
  background: var(--water);
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: .2rem;
}

.chip {
  background: #fff;
  border: 1px solid var(--water);
  color: var(--water-deep);
  font-weight: 800;
  font-size: .8rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  cursor: pointer;
}

.chip:hover {
  background: var(--cloud);
}

.chat-input {
  display: flex;
  gap: .5rem;
  padding: .7rem;
  border-top: 1px solid var(--line);
}

.chat-input input {
  flex: 1;
  min-width: 0;
  padding: .7rem .9rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-family: inherit;
  font-size: .95rem;
}

.chat-input input:focus {
  outline: none;
  border-color: var(--water);
}

.chat-input button {
  background: var(--water);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  flex: none;
}

.chat-slot-row {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  max-width: 80%;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(130deg, var(--blue-deep), var(--water-deep));
  border-radius: var(--radius);
  padding: 3rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-band h2 {
  color: #fff;
  margin: 0 0 .3rem;
}

.cta-band p {
  color: rgba(255, 255, 255, .9);
  margin: .2rem 0 0;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--blue-deep);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .2);
}

.cta-band .btn-primary:hover {
  background: var(--cloud);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-deep);
  color: #dbeaf1;
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
}

.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: .8rem;
}

.site-footer a {
  color: #cfe4ec;
}

.site-footer a:hover {
  color: #fff;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .45rem;
}

.site-footer p {
  font-size: .92rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .15);
  margin-top: 2rem;
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .85rem;
}

/* ---------- Page hero inner ---------- */
.page-hero {
  background:
    radial-gradient(110% 90% at 100% 0%, rgba(47, 199, 192, .22) 0%, transparent 55%),
    radial-gradient(90% 90% at 0% 100%, rgba(32, 121, 169, .16) 0%, transparent 55%);
  padding: 3.4rem 0 3rem;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: 2.2rem;
  margin-bottom: .3rem;
}

.page-hero p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 60ch;
  margin: 0;
}

.crumbs {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: .8rem;
}

.crumbs a {
  color: var(--blue);
}

/* ---------- Image band ---------- */
.img-band {
  position: relative;
  height: 320px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-top: 3rem;
}

.img-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(19, 89, 124, .65), rgba(19, 89, 124, .05));
}

.img-band .cap {
  position: absolute;
  left: 1.5rem;
  bottom: 1.2rem;
  color: #fff;
  z-index: 1;
  font-weight: 900;
  font-size: 1.3rem;
}

.img-band .cap small {
  display: block;
  font-weight: 600;
  font-size: .95rem;
  opacity: .9;
}

html[dir="rtl"] .img-band .cap {
  left: auto;
  right: 1.5rem;
}

/* ---------- Photo gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
  margin-top: 2rem;
}

.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
  transition: transform .25s ease;
}

.gallery img:hover {
  transform: scale(1.03);
}


/* ============ Cookie consent banner ============ */
.cookie-banner{
  position:fixed;left:0;right:0;bottom:0;z-index:100;
  background:#fff;border-top:2px solid var(--water);box-shadow:0 -8px 30px rgba(19,89,124,.18);
  animation:cookieIn .3s ease}
@keyframes cookieIn{from{transform:translateY(100%)}to{transform:translateY(0)}}
.cookie-banner.hidden{transform:translateY(100%);opacity:0;transition:transform .3s ease,opacity .3s ease}
.cookie-banner-inner{width:min(1120px,94%);margin:0 auto;padding:1.1rem 0;display:flex;align-items:center;
  justify-content:space-between;gap:1.2rem;flex-wrap:wrap}
.cookie-text strong{color:var(--blue-deep);display:block;font-size:1rem}
.cookie-text a{text-decoration:underline}
.cookie-actions{display:flex;gap:.6rem;flex-shrink:0}
.cookie-actions .btn{padding:.6rem 1.2rem;font-size:.9rem}
@media(max-width:600px){.cookie-banner-inner{flex-direction:column;align-items:flex-start}.cookie-actions{width:100%}.cookie-actions .btn{flex:1}}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .exam {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .nav {
    height: auto;
    min-height: 66px;
  }

  .brand {
    max-width: calc(100% - 58px);
    white-space: normal;
    font-size: 1rem;
  }

  .brand-name {
    white-space: normal;
    line-height: 1.08;
  }

  .logo {
    width: 36px;
    height: 36px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 100vw;
    max-width: 100vw;
    background: #fff;
    flex-direction: column;
    gap: 0;
    box-shadow: var(--shadow);
    border-top: 1px solid var(--line);
    overflow-x: hidden;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: .9rem 1.2rem;
    border-bottom: 1px solid var(--line);
  }

  .nav-links .btn {
    margin: .8rem 1.2rem;
    width: calc(100% - 2.4rem);
    white-space: normal;
  }

  section {
    padding: 3rem 0;
  }

  .hero {
    padding: 3.5rem 0;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 9vw, 2.25rem);
  }

  .hero p.lede,
  .lead {
    font-size: 1rem;
  }

  .btn {
    white-space: normal;
  }

  .btn-row {
    width: 100%;
  }

  .btn-row .btn {
    flex: 1 1 100%;
  }

  .grid-3,
  .grid-4,
  .steps,
  .team,
  .exam,
  .form-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .step,
  .exam-item,
  .info-block,
  .form-card {
    padding: 1.2rem;
  }

  .card .card-thumb {
    width: calc(100% + 2.4rem);
    margin: -1.2rem -1.2rem 1rem;
    height: 170px;
  }

  .exam-item .exam-thumb {
    width: calc(100% + 2.4rem);
    margin: -1.2rem -1.2rem 1rem;
    height: 170px;
  }

  .sec-head h2 {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .cta-band {
    padding: 2rem 1.2rem;
    text-align: center;
    justify-content: center;
  }

  .cta-band .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .map-wrap iframe {
    height: 280px;
  }

  .img-band {
    height: 240px;
    margin-top: 2rem;
  }

  .img-band .cap {
    left: 1rem;
    right: 1rem;
    font-size: 1.1rem;
  }

  html[dir="rtl"] .img-band .cap {
    right: 1rem;
    left: 1rem;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery img {
    height: 150px;
  }

  .chat-btn {
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
  }

  .chat-window {
    left: 12px;
    right: 12px;
    bottom: 84px;
    width: auto;
    max-width: none;
    height: min(500px, 70vh);
  }

  .msg,
  .chat-slot-row {
    max-width: 88%;
  }

  .rdv-tabs {
    gap: .3rem;
  }

  .rdv-tab {
    margin-right: .5rem;
    font-size: .95rem;
  }
}

@media (max-width: 600px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery img {
    height: 160px;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .brand {
    font-size: .92rem;
  }

  .logo {
    width: 34px;
    height: 34px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .btn {
    width: 100%;
    padding-inline: 1rem;
  }

  .slot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .day-row,
  .slot-grid {
    width: 100%;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery img {
    height: 180px;
  }

  .chat-input {
    gap: .4rem;
    padding: .6rem;
  }

  .chat-input button {
    width: 42px;
    height: 42px;
  }
}
