/* ==========================================================================
   CPRE — Centre de Proctologie Médicale et Chirurgicale
   Charte graphique alignée sur le logo
   ========================================================================== */

:root {
  --teal-dark: #0E4D45;   /* teal foncé du logo */
  --teal:      #1E9E8A;   /* turquoise du logo */
  --gold:      #C9962E;   /* doré du logo */
  --ink:       #1c2b28;   /* texte principal */
  --muted:     #5b6b67;   /* texte secondaire */
  --bg:        #ffffff;
  --bg-soft:   #f4f8f7;   /* fond de section clair */
  --bg-teal-soft: #eaf4f2;
  --line:      #e2ebe9;
  --radius:    14px;
  --shadow:    0 6px 24px rgba(14, 77, 69, 0.08);
  --shadow-lg: 0 14px 40px rgba(14, 77, 69, 0.14);
  --maxw:      1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--teal-dark);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: var(--teal-dark); }

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

.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section__lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
}
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}

/* -------------------------------------------------------------- Header/nav */
.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);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.nav__logo img { height: 86px; width: auto; display: block; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: .96rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav__links a:hover { color: var(--teal); }
.nav__links a.active { color: var(--teal-dark); border-color: var(--gold); }

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.6rem;
  color: var(--teal-dark);
  cursor: pointer;
}

/* -------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: .98rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s, box-shadow .2s, background .2s;
}
.btn--primary { background: var(--gold); color: #fff; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(201,150,46,.35); }
.btn--teal { background: var(--teal-dark); color: #fff; }
.btn--teal:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(14,77,69,.28); }
.btn--ghost { background: transparent; color: var(--teal-dark); border-color: var(--teal-dark); }
.btn--ghost:hover { background: var(--teal-dark); color: #fff; }

/* -------------------------------------------------------------- Hero */
.hero {
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(30,158,138,.12), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-teal-soft) 100%);
  padding: 84px 0 72px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { margin-bottom: .3em; }
.hero__sub {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 28px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 30px;
  border-top: 5px solid var(--teal);
}
.hero__card h3 { margin-bottom: 14px; }
.hero__card ul { margin: 0; padding-left: 0; list-style: none; }
.hero__card li {
  padding: 8px 0 8px 28px;
  position: relative;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.hero__card li:last-child { border-bottom: 0; }
.hero__card li::before {
  content: "";
  position: absolute; left: 4px; top: 15px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold);
}

/* -------------------------------------------------------------- Cards grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .16s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--bg-teal-soft);
  color: var(--teal-dark);
  margin-bottom: 16px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

.card--urgent { border-left: 4px solid var(--gold); }

/* pathologies : liste de traitements dans une carte */
.card__treat {
  margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line);
  list-style: none;
}
.card__treat .lbl {
  display: block; font-size: .74rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--gold); margin-bottom: 8px;
}
.card__treat li {
  position: relative; padding: 3px 0 3px 18px; color: var(--ink); font-size: .93rem;
}
.card__treat li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
}

/* -------------------------------------------------------------- Feature / split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split__media {
  background: linear-gradient(140deg, var(--teal-dark), var(--teal));
  border-radius: var(--radius);
  min-height: 320px;
  display: grid;
  place-items: center;
  color: #fff;
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.split__media--photo { padding: 0; overflow: hidden; position: relative; min-height: 340px; }
.split__media--photo img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.split__media--photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(14,77,69,.85));
  color: #fff; padding: 26px 20px 16px; font-size: .92rem; font-weight: 600;
}
.split__media .initials {
  font-family: Georgia, serif;
  font-size: 4.2rem;
  font-weight: 700;
  letter-spacing: .05em;
  background: rgba(255,255,255,.14);
  border: 2px solid rgba(255,255,255,.35);
  width: 150px; height: 150px; border-radius: 50%;
  display: grid; place-items: center;
  margin-bottom: 18px;
}

/* -------------------------------------------------------------- Info list */
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.info-list li:last-child { border-bottom: 0; }
.info-list .ico {
  flex: 0 0 auto; color: var(--teal); margin-top: 3px;
}
.info-list .label { display: block; font-weight: 700; color: var(--teal-dark); }
.info-list .value { color: var(--muted); }
.placeholder {
  background: #fdf6e6;
  border: 1px dashed var(--gold);
  color: #8a6a12;
  padding: 1px 8px;
  border-radius: 6px;
  font-size: .92em;
}

/* -------------------------------------------------------------- CTA band */
.cta {
  background: linear-gradient(120deg, var(--teal-dark), var(--teal));
  color: #fff;
  border-radius: 18px;
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.9); max-width: 620px; margin: 0 auto 26px; }

/* -------------------------------------------------------------- Steps */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step {
  display: flex; gap: 18px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px;
}
.step__num {
  counter-increment: step;
  flex: 0 0 auto;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--teal-dark); color: #fff;
  display: grid; place-items: center; font-weight: 700;
  font-family: Georgia, serif;
}
.step__num::before { content: counter(step); }
.step h3 { margin: 4px 0 4px; }
.step p { margin: 0; color: var(--muted); }

/* -------------------------------------------------------------- Footer */
.site-footer {
  background: var(--teal-dark);
  color: rgba(255,255,255,.86);
  padding: 48px 0 26px;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.footer__grid h4 {
  color: #fff; font-size: 1rem; margin: 0 0 14px;
  text-transform: uppercase; letter-spacing: .08em;
}
.footer__grid ul { list-style: none; margin: 0; padding: 0; }
.footer__grid li { margin-bottom: 8px; }
.footer__logo {
  background: #fff; padding: 12px 16px; border-radius: 10px;
  display: inline-block; margin-bottom: 14px;
}
.footer__logo img { height: 56px; display: block; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.18);
  margin-top: 34px; padding-top: 18px;
  font-size: .85rem; color: rgba(255,255,255,.6);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* -------------------------------------------------------------- Page header */
.page-head {
  background: linear-gradient(180deg, var(--bg-teal-soft), #fff);
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--line);
}
.page-head p { color: var(--muted); max-width: 680px; margin: 0; }

.note {
  background: var(--bg-soft);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  padding: 16px 20px;
  color: var(--muted);
  font-size: .96rem;
}

/* -------------------------------------------------------------- Urgence */
.urgence-band {
  background: #fdf3e3;
  border: 1px solid #f0d9a8;
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.urgence-band__icon {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%;
  background: var(--gold); color: #fff; display: grid; place-items: center;
}
.urgence-band__icon svg { width: 26px; height: 26px; }
.urgence-band__text { flex: 1 1 340px; }
.urgence-band__text strong { color: #8a5a12; display: block; margin-bottom: 2px; }
.urgence-band__text p { margin: 0; color: #6b5320; font-size: .96rem; }
.urgence-band__text .vital { font-weight: 700; color: #b3261e; }
.urgence-band .btn { flex: 0 0 auto; }

.samu {
  display: inline-flex; align-items: center; gap: 6px;
  background: #b3261e; color: #fff; font-weight: 700;
  border-radius: 8px; padding: 2px 10px;
}

/* -------------------------------------------------------------- Articles (infos patient) */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.article-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
  transition: transform .16s, box-shadow .2s;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.article-card h3 { margin-bottom: 10px; }
.article-card p { color: var(--muted); margin: 0; font-size: .98rem; }
.article-card a.readmore {
  display: inline-block; margin-top: 14px; font-weight: 700;
  color: var(--teal-dark); text-decoration: none;
}
.article-card a.readmore:hover { color: var(--teal); }

.prose { max-width: 760px; }
.prose h3 { margin-top: 34px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose .anchor { scroll-margin-top: 90px; }

/* -------------------------------------------------------------- Téléchargement document */
.doc-download {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--teal);
  border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow);
  margin-top: 30px;
}
.doc-download__icon {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 10px;
  background: var(--bg-teal-soft); color: var(--teal-dark);
  display: grid; place-items: center;
}
.doc-download__icon svg { width: 26px; height: 26px; }
.doc-download__text { flex: 1 1 300px; }
.doc-download__text strong { display: block; color: var(--teal-dark); }
.doc-download__text span { color: var(--muted); font-size: .92rem; }

/* -------------------------------------------------------------- Lieux (multisite) */
.locations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.loc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .16s, box-shadow .2s;
}
.loc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.loc-card--main { border-top: 5px solid var(--gold); }
.loc-photo {
  height: 160px; border-radius: 10px; margin-bottom: 18px; overflow: hidden;
  background: linear-gradient(135deg, var(--bg-teal-soft), #dbeae6);
  display: grid; place-items: center; color: var(--teal-dark);
}
.loc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.loc-photo .ph { text-align: center; font-size: .82rem; opacity: .8; }
.loc-photo .ph svg { width: 28px; height: 28px; display: block; margin: 0 auto 6px; }
.loc-card__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 6px;
}
.loc-card__head h3 { margin: 0; }
.loc-badge {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--gold);
  background: #fdf6e6; border-radius: 999px; padding: 3px 10px;
  white-space: nowrap;
}
.loc-city { color: var(--muted); font-size: .95rem; margin: 0 0 14px; }
.loc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tag {
  font-size: .78rem; font-weight: 700; padding: 4px 12px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
}
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.tag--cons { background: var(--bg-teal-soft); color: var(--teal-dark); }
.tag--cons::before { background: var(--teal); }
.tag--urg  { background: #fdf1e0; color: #8a5a12; }
.tag--urg::before  { background: var(--gold); }
.tag--chir { background: #e7efed; color: var(--teal-dark); }
.tag--chir::before { background: var(--teal-dark); }
.loc-meta { list-style: none; margin: 0 0 22px; padding: 0; }
.loc-meta li {
  display: flex; gap: 10px; align-items: flex-start;
  color: var(--muted); font-size: .95rem; padding: 5px 0;
}
.loc-meta .ico { color: var(--teal); flex: 0 0 auto; margin-top: 2px; }
.loc-card .btn { margin-top: auto; align-self: flex-start; }

/* -------------------------------------------------------------- Responsive */
@media (max-width: 860px) {
  .hero__grid, .split, .footer__grid { grid-template-columns: 1fr; }
  .split__media { min-height: 220px; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 14px 24px; gap: 6px;
    display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links a { width: 100%; padding: 10px 0; }
  .nav__toggle { display: block; }
  .nav__logo img { height: 60px; }
  .cta { padding: 34px 22px; }
}
