/* ==========================================================================
   Cabinet de Traumatologie Orthopédique — Dr. Mohamed Bayad
   Charte : marine (logo) · or / chêne (boiseries) · crème (marbre)
   ========================================================================== */

:root {
  --navy: #13213a;
  --navy-2: #1b2d4d;
  --navy-3: #243a60;
  --gold: #b0844a;
  --gold-2: #c9a26c;
  --gold-soft: #e9d8bd;
  --oak: #d2b48c;
  --cream: #f8f5ef;
  --sand: #f1ebe1;
  --white: #ffffff;
  --ink: #18202e;
  --muted: #5b6474;
  --line: #e5ddd0;
  --success: #2f8f5b;

  --ff-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --ff-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(19, 33, 58, .06);
  --shadow: 0 18px 50px -18px rgba(19, 33, 58, .25);
  --shadow-lg: 0 40px 80px -30px rgba(19, 33, 58, .35);
  --container: 1760px;
  --gutter: clamp(16px, 3.2vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 1.03rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ul { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.12; color: var(--navy); }
h1, h2 { font-family: var(--ff-display); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 4.4vw, 5rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.005em; }
em.accent, h1 em, h2 em { font-style: italic; color: var(--gold); font-weight: 500; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); padding-inline: var(--gutter); margin-inline: auto; }
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }
.section--white { background: var(--white); }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy); color: #d9dfea; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .7rem 1rem; z-index: 999; }
.skip-link:focus { left: 1rem; top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.section--navy .eyebrow { color: var(--gold-2); }
.section-head { max-width: 720px; margin-bottom: 3.2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section--navy .section-head p { color: #b6c0d2; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.6rem; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: 1.5px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s, border-color .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--navy); color: #fff; box-shadow: 0 12px 30px -12px rgba(19,33,58,.6); }
.btn--primary:hover { background: var(--navy-3); }
.btn--gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #fff; box-shadow: 0 12px 30px -12px rgba(176,132,74,.75); }
.btn--gold:hover { box-shadow: 0 16px 36px -12px rgba(176,132,74,.9); }
.btn--ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--light:hover { background: #fff; color: var(--navy); }
.btn--wa { background: #1f9d55; color: #fff; }
.btn--wa:hover { background: #188346; }
.btn--sm { padding: .7rem 1.2rem; font-size: .88rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--navy); font-size: .93rem; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #c3cbda; font-size: .84rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .55rem; }
.topbar__group { display: flex; gap: 1.6rem; align-items: center; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: .45rem; }
.topbar__item svg { width: 15px; height: 15px; color: var(--gold-2); }
.topbar a:hover { color: #fff; }
.status { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: #8c96a8; }
.status.is-open .status__dot { background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.18); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 245, 239, .86);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 82px; }
.brand { display: flex; align-items: center; gap: .8rem; }
.brand__mark { width: 46px; height: 46px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--ff-display); font-size: 1.45rem; font-weight: 700; color: var(--navy); }
.brand__tag { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: .3rem; }
.nav__link {
  position: relative; padding: .6rem .85rem; font-weight: 600; font-size: .94rem; color: var(--ink);
  border-radius: 10px; display: inline-flex; align-items: center; gap: .3rem; background: none; border: 0; cursor: pointer; font-family: inherit;
}
.nav__link::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .35rem; height: 1.5px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link svg { width: 14px; height: 14px; transition: transform .25s; }
.nav__item { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; width: 560px;
  transform: translate(-50%, 8px); opacity: 0; visibility: hidden;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  padding: .8rem; display: grid; grid-template-columns: 1fr 1fr; gap: .2rem;
  transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.dropdown::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav__item:hover .dropdown, .nav__item:focus-within .dropdown, .nav__item.is-open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__item:hover > .nav__link svg { transform: rotate(180deg); }
.dropdown a { display: flex; gap: .8rem; align-items: flex-start; padding: .8rem; border-radius: 12px; transition: background .2s; }
.dropdown a:hover { background: var(--cream); }
.dropdown__icon { width: 38px; height: 38px; border-radius: 10px; background: var(--sand); color: var(--gold); display: grid; place-items: center; flex: none; }
.dropdown__icon svg { width: 20px; height: 20px; }
.dropdown strong { display: block; font-size: .92rem; color: var(--navy); line-height: 1.3; }
.dropdown small { color: var(--muted); font-size: .8rem; line-height: 1.4; display: block; margin-top: 2px; }
.header__cta { display: flex; gap: .6rem; align-items: center; }
.burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; place-items: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; position: relative; transition: transform .3s, background .3s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(4rem, 7vw, 6rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 85% 20%, rgba(201,162,108,.22), transparent 70%),
    radial-gradient(500px 380px at 5% 90%, rgba(27,45,77,.07), transparent 70%);
}
.hero .container { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; position: relative; }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin: 1.4rem 0 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.6rem; }
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .95rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .84rem; font-weight: 600; color: var(--navy); }
.chip svg { width: 15px; height: 15px; color: var(--gold); }
.hero__visual { position: relative; justify-self: center; width: min(100%, clamp(420px, 34vw, 600px)); }
.hero__frame {
  position: relative; border-radius: 240px 240px 28px 28px; overflow: hidden; aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg); background: var(--sand);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 28% 30%; }
.hero__hex { position: absolute; width: 150px; color: var(--gold-2); opacity: .55; z-index: -1; }
.hero__hex--1 { top: -30px; right: -50px; }
.hero__hex--2 { bottom: 60px; left: -70px; width: 110px; color: var(--navy); opacity: .12; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: .85rem;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-radius: 16px; padding: .9rem 1.1rem;
  box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.7);
}
.float-card__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: var(--gold-2); flex: none; }
.float-card__icon svg { width: 20px; height: 20px; }
.float-card strong { display: block; color: var(--navy); font-size: .95rem; line-height: 1.25; }
.float-card span { font-size: .8rem; color: var(--muted); }
.float-card--a { left: -40px; bottom: 44px; }
.float-card--b { right: -28px; top: 32%; }

/* ---------- Info strip ---------- */
.info-strip { margin-top: -2.5rem; position: relative; z-index: 2; }
.info-strip__grid { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.info-strip__item { display: flex; gap: 1rem; padding: clamp(1.2rem, 2vw, 1.7rem) clamp(1.1rem, 2vw, 1.8rem); align-items: flex-start; }
.info-strip__item + .info-strip__item { border-left: 1px solid var(--line); }
.info-strip__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--sand); color: var(--gold); display: grid; place-items: center; flex: none; }
.info-strip__icon svg { width: 22px; height: 22px; }
.info-strip h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); margin-bottom: .3rem; }
.info-strip p { margin: 0; font-weight: 600; color: var(--navy); line-height: 1.5; font-size: .96rem; }
.info-strip a:hover { color: var(--gold); }

/* ---------- Services grid ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.service-card {
  position: relative; display: flex; flex-direction: column; padding: 2.1rem 2rem 1.8rem; border-radius: var(--radius-lg);
  background: var(--cream); border: 1px solid var(--line); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s, background .4s, border-color .4s;
}
.service-card::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,108,.25), transparent 70%); opacity: 0; transition: opacity .4s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); background: #fff; border-color: transparent; }
.service-card:hover::after { opacity: 1; }
.service-card__icon {
  width: 60px; height: 60px; display: grid; place-items: center; color: var(--gold); margin-bottom: 1.5rem;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-sm); transition: background .4s, color .4s;
}
.service-card:hover .service-card__icon { background: var(--navy); color: var(--gold-2); }
.service-card__icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.service-card p { color: var(--muted); font-size: .97rem; flex: 1; }
.service-card ul { margin: 0 0 1.4rem; display: grid; gap: .35rem; }
.service-card li { display: flex; gap: .5rem; font-size: .9rem; color: var(--ink); }
.service-card li svg { width: 16px; height: 16px; color: var(--gold); flex: none; margin-top: 4px; }
.service-card .link-arrow::before { content: ""; position: absolute; inset: 0; }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.media-stack { position: relative; padding: 0 0 3rem 3rem; }
.media-stack__main { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); }
.media-stack__main img { width: 100%; height: 100%; object-fit: cover; }
.media-stack__badge {
  position: absolute; left: 0; bottom: 0; background: var(--gold); color: #fff; padding: 1.4rem 1.6rem;
  border-radius: 20px; box-shadow: var(--shadow); max-width: 300px;
}
.media-stack__badge strong { font-family: var(--ff-display); font-size: 1.7rem; display: block; line-height: 1.1; color: #fff; }
.media-stack__badge span { font-size: .85rem; opacity: .92; }
.media-stack__line { position: absolute; top: 2rem; left: 1rem; bottom: 5rem; width: 1px; background: linear-gradient(var(--gold-2), transparent); }
.checklist { display: grid; gap: .9rem; margin: 1.8rem 0 2.2rem; }
.checklist li { display: flex; gap: .9rem; align-items: flex-start; }
.checklist__icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(201,162,108,.18); color: var(--gold); flex: none; }
.checklist__icon svg { width: 15px; height: 15px; }
.checklist strong { display: block; color: var(--navy); }
.checklist span { color: var(--muted); font-size: .95rem; }
.section--navy .checklist strong { color: #fff; }
.section--navy .checklist span { color: #aeb9cc; }
.section--navy p { color: #c3cbda; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.step { position: relative; padding: 2rem 1.6rem; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--ff-display); font-size: 3rem; font-weight: 600; line-height: 1; color: var(--gold-2); display: block; margin-bottom: 1rem;
}
.step h3 { font-size: 1.1rem; }
.step p { font-size: .94rem; margin: 0; color: #b6c0d2; }
.section--white .step, .section--sand .step, .steps--light .step { background: #fff; border-color: var(--line); }
.steps--light .step p { color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(190px, 15vw, 300px); gap: 1rem; }
.gallery__item { position: relative; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--sand); border: 0; padding: 0; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item figcaption, .gallery__cap {
  position: absolute; left: .8rem; bottom: .8rem; background: rgba(255,255,255,.92); color: var(--navy);
  padding: .35rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 700;
}
.gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(10, 18, 32, .88); backdrop-filter: blur(4px); }
.lightbox img { max-height: 86vh; width: auto; margin: auto; border-radius: 14px; }
.lightbox p { color: #fff; text-align: center; margin: .8rem 0 0; font-weight: 600; }
.lightbox__close { position: fixed; top: 1rem; right: 1rem; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); font-size: 1.6rem; cursor: pointer; line-height: 1; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .8rem; align-items: start; }
@media (min-width: 1100px) { .faq { grid-template-columns: 1fr 1fr; gap: 1rem; } }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .3s, border-color .3s; }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: var(--gold-soft); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.3rem 1.5rem; font-weight: 700; color: var(--navy);
  display: flex; justify-content: space-between; gap: 1rem; align-items: center; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--sand); color: var(--gold); font-size: 1.3rem; font-weight: 500; transition: transform .3s, background .3s, color .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--navy); color: #fff; }
.faq__answer { padding: 0 1.5rem 1.4rem; color: var(--muted); }
.faq__answer p:last-child { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 100%); color: #d6dcea;
  display: grid; grid-template-columns: 1.4fr auto; gap: 2rem; align-items: center;
}
.cta-band::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 3 91 26.5v47L50 97 9 73.5v-47z' fill='none' stroke='%23c9a26c' stroke-width='1.2'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: .35;
}
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { margin: 0; color: #b6c0d2; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .8rem; position: relative; z-index: 1; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; align-items: stretch; }
.contact-card { background: #fff; border-radius: var(--radius-lg); padding: clamp(1.8rem, 3vw, 2.6rem); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.contact-list { display: grid; gap: 1.4rem; margin: 1.5rem 0 2rem; }
.contact-list li { display: flex; gap: 1rem; }
.contact-list__icon { width: 46px; height: 46px; border-radius: 14px; background: var(--navy); color: var(--gold-2); display: grid; place-items: center; flex: none; }
.contact-list__icon svg { width: 20px; height: 20px; }
.contact-list h3 { font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); margin-bottom: .2rem; }
.contact-list p, .contact-list a { margin: 0; color: var(--navy); font-weight: 600; }
.contact-list a:hover { color: var(--gold); }
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours td { padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.hours td:last-child { text-align: right; font-weight: 700; color: var(--navy); }
.hours tr.is-today td { color: var(--gold); }
.hours .closed { color: var(--muted) !important; font-weight: 500 !important; }
.map { flex: 1; border-radius: var(--radius-lg); overflow: hidden; min-height: 420px; position: relative; border: 1px solid var(--line); background: var(--sand); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.25) contrast(1.05); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3.5rem, 6vw, 5rem); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 400px at 90% 0%, rgba(201,162,108,.2), transparent 70%); pointer-events: none; }
.page-hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; position: relative; }
.page-hero--simple .container { grid-template-columns: 1fr; }
.page-hero--simple .page-hero__lead { max-width: 820px; }
.page-hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); }
.page-hero__lead { font-size: 1.12rem; color: var(--muted); margin: 1.2rem 0 2rem; max-width: 620px; }
.page-hero__media { justify-self: end; width: 100%; max-width: 560px; border-radius: 200px 200px 24px 24px; overflow: hidden; aspect-ratio: 4 / 4.6; box-shadow: var(--shadow-lg); }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.breadcrumb { list-style: none; padding: 0; margin: 0 0 1.6rem; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .84rem; color: var(--muted); margin-bottom: 1.6rem; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--line); }
.breadcrumb [aria-current] { color: var(--navy); font-weight: 600; }

/* ---------- Article layout ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 24vw, 400px); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.prose { font-size: 1.05rem; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-top: 2.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8rem; font-size: 1.2rem; }
.prose p, .prose li { color: #3b4454; }
.prose ul { margin: 0 0 1.4rem; display: grid; gap: .55rem; }
.prose ul li { position: relative; padding-left: 1.6rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; border-radius: 2px; transform: rotate(45deg); background: var(--gold-2); }
.prose a { color: var(--gold); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.4rem 0 2rem; }
.mini-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.mini-card h3 { margin-top: 0 !important; font-size: 1.08rem; display: flex; gap: .6rem; align-items: center; }
.mini-card h3::before { content: ""; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--gold); flex: none; }
.mini-card p { margin: 0; font-size: .96rem; color: var(--muted); }
.notice { display: flex; gap: .9rem; background: var(--sand); border-left: 3px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.1rem 1.3rem; font-size: .92rem; color: var(--muted); margin-top: 2.4rem; }
.notice svg { width: 20px; height: 20px; color: var(--gold); flex: none; margin-top: 3px; }
.notice p { margin: 0; color: var(--muted); }

.aside { position: sticky; top: 110px; display: grid; gap: 1.2rem; }
.aside-card { background: var(--navy); color: #c3cbda; border-radius: var(--radius-lg); padding: 1.9rem; position: relative; overflow: hidden; }
.aside-card::after { content: ""; position: absolute; right: -50px; bottom: -50px; width: 160px; height: 160px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 3 91 26.5v47L50 97 9 73.5v-47z' fill='none' stroke='%23c9a26c' stroke-width='1.5'/%3E%3C/svg%3E") center/contain no-repeat; opacity: .4; }
.aside-card h2 { color: #fff; font-size: 1.7rem; }
.aside-card p { font-size: .93rem; color: #b6c0d2; }
.aside-card .btn { width: 100%; margin-top: .6rem; position: relative; z-index: 1; }
.aside-card__meta { display: grid; gap: .5rem; margin: 1.2rem 0; font-size: .9rem; }
.aside-card__meta span { display: flex; gap: .55rem; align-items: center; }
.aside-card__meta svg { width: 16px; height: 16px; color: var(--gold-2); flex: none; }
.aside-links { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; }
.aside-links h2 { font-family: var(--ff-body); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); margin-bottom: .8rem; }
.aside-links a { display: flex; justify-content: space-between; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: .93rem; color: var(--navy); gap: .5rem; }
.aside-links li:last-child a { border: 0; }
.aside-links a:hover { color: var(--gold); }
.aside-links svg { width: 15px; height: 15px; flex: none; }

/* ---------- Footer ---------- */
.footer { background: #0e1829; color: #9aa6ba; padding: 5rem 0 0; font-size: .94rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2.5rem; padding-bottom: 3.5rem; }
.footer .brand__name { color: #fff; }
.footer h2 { font-family: var(--ff-body); font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; color: var(--gold-2); margin-bottom: 1.2rem; }
.footer ul { display: grid; gap: .6rem; }
.footer a:hover { color: #fff; }
.footer address { font-style: normal; display: grid; gap: .7rem; }
.footer address span { display: flex; gap: .6rem; }
.footer address svg { width: 16px; height: 16px; color: var(--gold-2); flex: none; margin-top: 5px; }
.footer__about { margin: 1.2rem 0 0; max-width: 340px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .84rem; }

/* ---------- Floating WhatsApp / mobile bar ---------- */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  background: #1f9d55; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -8px rgba(31,157,85,.6);
  transition: transform .3s var(--ease);
}
.fab:hover { transform: scale(1.08); }
.fab svg { width: 28px; height: 28px; }
.fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1f9d55; animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.mobile-bar { display: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; } .reveal-delay-2 { transition-delay: .2s; } .reveal-delay-3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .fab::before { animation: none; }
  * { transition-duration: .01ms !important; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .float-card--b { right: -10px; }
  .float-card--a { left: -16px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 1180px) {
  .topbar__hide-md { display: none !important; }
  .burger { display: grid; }
  .nav {
    position: fixed; inset: 82px 0 0 0; background: var(--cream); flex-direction: column; align-items: stretch;
    padding: 1.2rem 1.25rem 6rem; gap: .2rem; overflow-y: auto;
    opacity: 0; transform: translateY(-12px); transition: opacity .3s, transform .35s var(--ease), visibility .3s; visibility: hidden;
  }
  .nav-open .nav { opacity: 1; transform: none; visibility: visible; }
  .nav-open { overflow: hidden; }
  .nav__link { font-size: 1.15rem; padding: 1rem .5rem; border-bottom: 1px solid var(--line); border-radius: 0; justify-content: space-between; width: 100%; }
  .nav__link::after { display: none; }
  .dropdown { position: static; width: auto; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; background: transparent; grid-template-columns: 1fr; padding: .3rem 0 .6rem; display: none; }
  .nav__item.is-open .dropdown { display: grid; transform: none; }
  .nav__item:hover .dropdown { transform: none; }
  .nav__item.is-open > .nav__link svg { transform: rotate(180deg); }
  .nav .btn { margin-top: 1.2rem; }
}
@media (max-width: 980px) {
  .hero .container, .page-hero .container, .split, .contact-grid, .article-layout { grid-template-columns: minmax(0, 1fr); }
  .split--reverse .split__media { order: 0; }
  .hero__visual { margin-top: 1rem; }
  .services { grid-template-columns: 1fr 1fr; }
  .info-strip__grid { grid-template-columns: 1fr; }
  .info-strip__item + .info-strip__item { border-left: 0; border-top: 1px solid var(--line); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .cta-band { grid-template-columns: 1fr; }
  .aside { position: static; }
  .page-hero__media { max-width: 520px; justify-self: center; }
  .hero__visual { width: min(100%, 520px); }
}
@media (min-width: 1181px) { .nav .nav__mobile-only { display: none; } }
@media (max-width: 640px) {
  .header__cta .btn--primary { display: none; }
  body { font-size: 1rem; padding-bottom: 68px; }
  .topbar { display: none; }
  .header .container { height: 70px; }
  .nav { inset: 70px 0 0 0; }
  .brand__mark { width: 40px; height: 40px; }
  .brand__name { font-size: 1.25rem; }
  .brand__tag { font-size: .6rem; letter-spacing: .12em; }
  .services, .cards-2, .steps, .footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
  .btn { white-space: normal; text-align: center; }
  .float-card { padding: .7rem .85rem; }
  .float-card--b { display: none; }
  .float-card--a { left: 8px; bottom: 16px; }
  .hero__hex { display: none; }
  .media-stack { padding: 0 0 2.5rem 1.5rem; }
  .gallery { grid-auto-rows: 160px; gap: .6rem; }
  .gallery__item:nth-child(1) { grid-row: span 2; }
  .cta-band__actions .btn { flex: 1 1 100%; }
  .fab { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { padding: .8rem 1rem; }
  .map { min-height: 320px; }
}

/* ---------- Parcours (timeline) ---------- */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; counter-reset: tl; }
.timeline__item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.7rem 1.6rem; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); transition: border-color .3s, background .3s; }
.timeline__item:hover { border-color: rgba(201,162,108,.5); background: rgba(255,255,255,.07); }
.timeline__icon { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; background: rgba(201,162,108,.15); color: var(--gold-2); }
.timeline__icon svg { width: 22px; height: 22px; }
.timeline__tag { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); margin-bottom: .4rem; }
.timeline h3 { font-size: 1.08rem; margin-bottom: .35rem; color: #fff; }
.timeline p { margin: 0; font-size: .93rem; color: #b6c0d2; }
.bloc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.bloc-grid .gallery__item { grid-column: auto !important; grid-row: auto !important; aspect-ratio: 4 / 3.4; }
.bloc-grid .gallery__item img { object-position: 50% 32%; }
@media (max-width: 1100px) { .timeline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .timeline, .bloc-grid { grid-template-columns: 1fr; } .bloc-grid .gallery__item { aspect-ratio: 4 / 4.6; } }
