/* ============================================================
   Formation Pratique Implantologie - shared styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Gelasio:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Work+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --bg:        #0c0a08;   /* warm near-black page background */
  --bg-2:      #11100d;   /* slightly raised dark panel */
  --card:      #100e0b;   /* destination card bg */
  --card-border: #2a241c;
  --light:     #f1ece3;   /* warm off-white section */
  --light-2:   #e9e3d8;   /* form panel */
  --gold:      #d99a2e;   /* primary accent */
  --gold-soft: #e0a838;   /* button gold */
  --gold-line: #c98f2a;
  --ink:       #211c16;   /* dark text on light */
  --ink-soft:  #4a423a;
  --on-dark:   #d6d0c6;   /* body text on dark */
  --on-dark-dim: #a59f95;
  --white:     #f6f3ee;
  --serif: Georgia, 'Gelasio', 'Times New Roman', serif;
  --sans: 'Work Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--on-dark);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
h1, h2, h3 { overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- Top navigation ---------- */
.nav {
  background: var(--bg);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.brand .logo { width: 46px; height: 52px; color: var(--gold); flex-shrink: 0; }
.brand .brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.06em;
  line-height: 1.25;
  color: var(--white);
  white-space: nowrap;
}
.nav-menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-menu a {
  font-size: 13px;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.nav-menu a:hover { color: var(--gold); }
.nav-menu a.active { color: var(--gold); }
.nav-menu a.active.underlined { border-bottom: 2px solid var(--gold); padding-bottom: 4px; }
.caret { width: 9px; height: 9px; }
.btn-reserver {
  background: var(--gold-soft);
  color: #1a1207 !important;
  padding: 12px 20px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.btn-reserver:hover { background: #eab347; }

/* ---------- Nav dropdown (Formations) ---------- */
.nav-dd { position: relative; display: inline-flex; align-items: center; }
.dd-toggle { display: none; }
.nav-dd-trigger {
  font-size: 13px; letter-spacing: 0.06em; font-weight: 600; color: var(--white);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer;
}
.nav-dd-trigger:hover { color: var(--gold); }
.nav-dd-menu { position: absolute; top: 100%; left: -16px; padding-top: 14px; display: none; z-index: 50; }
/* hover/focus seulement sur desktop (sur mobile -> mecanisme checkbox uniquement,
   sinon le focus reste "colle" apres un tap et le sous-menu ne se referme plus) */
@media (min-width: 1081px) {
  .nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu { display: block; }
}
.nav-dd-menu > div { background: #14110d; border: 1px solid var(--card-border); border-radius: 8px; padding: 8px; min-width: 232px; box-shadow: 0 18px 44px rgba(0,0,0,0.55); }
.nav-dd-menu a { display: block; padding: 11px 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.01em; color: var(--white); text-transform: none; border-radius: 5px; white-space: nowrap; }
.nav-dd-menu a small { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0; color: var(--on-dark-dim); text-transform: none; margin-top: 2px; }
.nav-dd-menu a:hover { background: rgba(217,154,46,0.12); color: var(--gold); }
.nav-dd-menu a:hover small { color: var(--gold); }
.nav-dd-menu a.active { color: var(--gold); }

/* hamburger hidden on desktop */
.nm-toggle, .nm-burger { display: none; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--on-dark-dim);
  margin-bottom: 26px;
}
.breadcrumb a { color: var(--gold); }
.breadcrumb a.active { border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.breadcrumb .sep { color: var(--on-dark-dim); }

/* ---------- Headings & shared bits ---------- */
.display {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--white);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0;
}
.eyebrow {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.gold-rule {
  width: 54px;
  height: 2px;
  background: var(--gold);
  border: none;
  margin: 14px 0 0;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 26px 0;
}
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--on-dark-dim);
}
.footer-links { display: flex; gap: 34px; align-items: center; }
.footer-links a:hover { color: var(--gold); }
.footer-links .divider { color: #4a423a; }

/* ---------- Generic CTA strip ---------- */
.cta-strip {
  background: var(--bg);
  padding: 30px 0;
}
.cta-strip-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.cta-strip .cal-ic { width: 40px; height: 40px; color: var(--white); flex-shrink: 0; }
.cta-strip h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}
.cta-strip p { margin: 0; font-size: 14px; color: var(--on-dark-dim); max-width: 420px; }
.cta-btn-dark {
  margin-left: auto;
  background: #000;
  color: var(--white);
  border: 1px solid #3a342b;
  padding: 18px 30px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}
.cta-btn-dark:hover { border-color: var(--gold); }

/* ---------- "Ce qui est inclus" band ---------- */
.included {
  background: var(--bg);
  padding: 44px 0 40px;
}
.included h3 {
  text-align: center;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 36px;
}
.included-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.included-item {
  text-align: center;
  padding: 0 22px;
  position: relative;
}
.included-item + .included-item::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 1px;
  background: rgba(255,255,255,0.10);
}
.included-item .ic { width: 44px; height: 44px; color: var(--gold); margin: 0 auto 16px; }
.included-item p { margin: 0; font-size: 14px; color: var(--on-dark); line-height: 1.45; }

/* ---------- Photos (cropped from source captures) ---------- */
img.photo { object-fit: cover; background: #15120e; }
.hero-img { border-radius: 4px; }
.map-slot, .implant-slot { border-radius: 6px; }
.waterfall { border-radius: 4px; }
.city img.photo { border-radius: 3px; }
.shot img.photo { border-radius: 4px; }
.xray { border-radius: 4px; }

/* ---------- Image placeholder (for portraits/new imagery) ---------- */
.img-ph {
  background:
    repeating-linear-gradient(45deg, #17140f, #17140f 9px, #1b1711 9px, #1b1711 18px);
  display: flex; align-items: center; justify-content: center;
  color: #6f675b; font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px; letter-spacing: 0.08em; text-align: center; line-height: 1.4;
  padding: 8px;
}

/* ============================================================
   MOBILE / RESPONSIVE
   ============================================================ */
/* --- Nav: collapse to hamburger before it overflows (~1080px) --- */
@media (max-width: 1080px) {
  .nav-inner { flex-wrap: wrap; padding: 14px 20px; gap: 10px; }
  .brand .logo { width: 38px; height: 43px; }
  .brand .brand-name { font-size: 14px; }
  .nm-burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    margin-left: auto; width: 44px; height: 44px; cursor: pointer; flex-shrink: 0;
  }
  .nm-burger span { display: block; width: 24px; height: 2px; background: var(--white); margin: 0 auto; transition: transform .25s, opacity .2s; }
  .nm-toggle:checked ~ .nm-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nm-toggle:checked ~ .nm-burger span:nth-child(2) { opacity: 0; }
  .nm-toggle:checked ~ .nm-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-menu {
    display: none; order: 5; flex-basis: 100%; flex-direction: column;
    align-items: stretch; gap: 0; margin-left: 0;
    border-top: 1px solid rgba(255,255,255,0.08); padding-top: 4px;
  }
  .nm-toggle:checked ~ .nav-menu { display: flex; }
  .nav-menu > a { padding: 14px 2px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-dd { display: block; width: 100%; }
  .nav-dd-trigger { padding: 14px 2px; border-bottom: 1px solid rgba(255,255,255,0.06); width: 100%; justify-content: space-between; }
  .nav-dd-trigger .caret { transition: transform .2s ease; }
  /* mobile : sous-menu replie par defaut, deplie au clic (checkbox) */
  .nav-dd-menu { position: static; display: none; padding-top: 0; }
  .dd-toggle:checked ~ .nav-dd-menu { display: block; }
  .dd-toggle:checked ~ .nav-dd-trigger .caret { transform: rotate(180deg); }
  .nav-dd-menu > div { background: transparent; border: none; box-shadow: none; padding: 4px 0 8px 18px; min-width: 0; }
  .nav-dd-menu a { padding: 9px 0; }
  .btn-reserver { text-align: center; justify-content: center; margin-top: 12px; padding: 14px; }
}

@media (max-width: 820px) {
  /* --- Shared components --- */
  .container { padding: 0 22px; }
  .cta-strip-inner { flex-direction: column; align-items: flex-start; gap: 18px; padding: 0 22px; }
  .cta-strip .cta-btn-dark { margin-left: 0; width: 100%; justify-content: center; }
  .cta-strip p { max-width: none; }
  .included { padding: 38px 0 34px; }
  .included-grid { grid-template-columns: 1fr 1fr; gap: 30px 0; padding: 0 22px; }
  .included-item { padding: 0 14px; }
  .included-item:nth-child(odd)::before { display: none; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; padding: 0 22px; }
  .footer-links { gap: 18px; }
  .breadcrumb { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .included-grid { grid-template-columns: 1fr; gap: 26px; }
  .included-item::before { display: none !important; }
}

/* ===== Bandeau Instagram (reutilisable) ===== */
.ig-band { background: var(--bg); padding: 0; }
.ig-band-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 18px 40px;
  border-top: 1px solid rgba(255,255,255,0.10);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap;
}
.ig-band .ig-txt { font-size: 15px; color: var(--on-dark); line-height: 1.4; }
.ig-band .ig-txt strong { color: var(--white); font-weight: 700; }
.ig-btn {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--gold); color: var(--gold);
  padding: 11px 20px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700; letter-spacing: 0.04em; text-decoration: none;
  transition: background .15s, color .15s;
}
.ig-btn:hover { background: var(--gold); color: #1a1207; }
.ig-btn svg { width: 19px; height: 19px; }
@media (max-width: 560px) {
  .ig-band-inner { padding-left: 22px; padding-right: 22px; gap: 14px; text-align: center; }
  .ig-band .ig-txt { font-size: 14px; }
}
