/* =====================================================================
   Cabinet Ophtalmologique de Châlons-en-Champagne — feuille de style
   Couleurs reprises du logo. Pour les modifier, changer uniquement
   les variables ci-dessous.
   ===================================================================== */
:root {
  --navy: #042447;        /* texte du logo */
  --blue: #1f5a8a;        /* boutons, liens */
  --blue-dark: #0b2f57;   /* survol */
  --sky: #68a6c9;         /* bleu clair du logo */
  --sky-light: #eaf3f9;   /* fonds doux */
  --ink: #1b2b3a;
  --muted: #56687a;
  --line: #dbe5ee;
  --bg-soft: #f5f9fc;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 12px 32px rgba(4, 36, 71, .08);
  --max: 1140px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-title: "Montserrat", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16.5px; line-height: 1.65; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-title); color: var(--navy); line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: 2.6rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-block; font-family: var(--font-title); font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--sky); margin-bottom: .7rem; }
.lead { font-size: 1.12rem; color: var(--muted); }
.muted { color: var(--muted); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .85rem 1.5rem; border-radius: 999px;
       font: 700 .95rem/1.2 var(--font); border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, transform .2s; text-decoration: none !important; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: #fff; }
.btn-outline:hover { background: var(--sky-light); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--sky-light); }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.02rem; }

/* ---------- En-tête ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 78px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none !important; color: var(--navy); }
.brand img { width: 62px; height: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; font-family: var(--font-title); }
.brand-text .l1 { font-size: .62rem; font-weight: 500; letter-spacing: .42em; color: var(--blue); }
.brand-text .l2 { font-size: 1.08rem; font-weight: 800; letter-spacing: .01em; color: var(--navy); margin: .18rem 0 .16rem; }
.brand-text .l3 { font-size: .56rem; font-weight: 500; letter-spacing: .2em; color: var(--blue); text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 1.7rem; }
.nav a { color: var(--ink); font-weight: 600; font-size: .94rem; padding: .3rem 0; border-bottom: 2px solid transparent; text-decoration: none; }
.nav a:hover, .nav a.active { color: var(--blue); border-bottom-color: var(--sky); }
.nav a.btn { color: #fff; border-bottom: 2px solid transparent; padding: .7rem 1.25rem; }
.nav a.btn:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: .4rem; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); border-radius: 3px; margin: 5px 0; }
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line);
         flex-direction: column; align-items: stretch; gap: 0; padding: .4rem 1.25rem 1.25rem; box-shadow: var(--shadow); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav a.active { border-bottom-color: var(--line); }
  .nav a.btn { margin-top: 1rem; border-bottom: 0; }
}
@media (max-width: 420px) {
  .brand img { width: 50px; }
  .brand-text .l2 { font-size: .95rem; }
  .brand-text .l1 { font-size: .56rem; }
  .brand-text .l3 { font-size: .5rem; letter-spacing: .14em; }
}

/* ---------- Accueil (hero) ---------- */
.hero { background: linear-gradient(180deg, #fff 0%, var(--sky-light) 100%); overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding: clamp(3rem, 7vw, 5.5rem) 0; }
.hero p.lead { max-width: 540px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1.2rem; }
.hero .where { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .92rem; }
.hero .where svg { width: 18px; height: 18px; color: var(--sky); flex: none; }
.hero-logo { position: relative; justify-self: center; width: min(460px, 100%); }
.hero-logo::before { content: ""; position: absolute; inset: 6% 2%; border-radius: 50%; background: radial-gradient(closest-side, #fff 60%, rgba(255,255,255,0)); z-index: 0; }
.hero-logo img { position: relative; z-index: 1; width: 100%; }
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero .actions, .hero .where { justify-content: center; }
  .hero-logo { order: -1; width: min(300px, 80%); }
}

/* ---------- Deux colonnes ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split > img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 3/2; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Points clés ---------- */
.facts { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: 1rem; }
.facts li { display: flex; gap: .9rem; align-items: flex-start; }
.facts strong { display: block; color: var(--navy); font-family: var(--font-title); font-size: .98rem; }
.facts span { color: var(--muted); font-size: .93rem; }
.icon { flex: none; width: 46px; height: 46px; border-radius: 13px; background: var(--sky-light); color: var(--blue); display: grid; place-items: center; }
.icon svg { width: 23px; height: 23px; }

/* ---------- Soins ---------- */
.grid { display: grid; gap: 1.3rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .icon { margin-bottom: 1rem; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card.urgent { border-color: #f1d6a9; background: #fffaf2; }
.card.urgent .icon { background: #fdefd6; color: #b0701a; }

/* ---------- Approche (étapes) ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 1.1rem; }
.steps li { position: relative; padding: 1.15rem 1.3rem 1.15rem 4.4rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; left: 1.2rem; top: 1.05rem;
                    font: 800 1.35rem/1 var(--font-title); color: var(--sky); }
.steps h3 { margin-bottom: .2rem; font-size: 1.02rem; }
.steps p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ---------- Rendez-vous ---------- */
.booking-grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: 1.4rem; align-items: start; }
@media (max-width: 900px) { .booking-grid { grid-template-columns: 1fr; } }
.booking-widget:empty { display: none; }
.booking-widget.has-widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.booking-widget iframe { display: block; width: 100%; border: 0; }
.booking-fallback { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(2rem, 5vw, 3rem); text-align: center; box-shadow: var(--shadow); }
.booking-fallback .icon { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 1.2rem; }
.booking-fallback .icon svg { width: 30px; height: 30px; }
.booking-fallback p { color: var(--muted); max-width: 440px; margin-inline: auto; }
.booking-fallback .btn { margin: .6rem 0 1.1rem; }
.booking-fallback .small { font-size: .88rem; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.info-list { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: 1rem; }
.info-list li { display: flex; gap: .85rem; align-items: flex-start; }
.info-list .icon { width: 40px; height: 40px; border-radius: 11px; }
.info-list .icon svg { width: 20px; height: 20px; }
.info-list strong { display: block; color: var(--navy); font-size: .92rem; }
.hours { width: 100%; border-collapse: collapse; font-size: .92rem; }
.hours td { padding: .45rem 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-weight: 600; color: var(--navy); }
.hours tr.closed td:last-child { color: var(--muted); font-weight: 500; }
.map { margin-top: 1.4rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--sky-light); min-height: 300px; }
.map iframe { display: block; width: 100%; height: 340px; border: 0; }
.map .placeholder { min-height: 300px; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 1.5rem; }
.notes { margin-top: 1.4rem; }
.notes .card { padding: 1.4rem; }
.notes ul { margin: .4rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: .94rem; }
.notes li { margin-bottom: .25rem; }

/* ---------- Recrutement ---------- */
.recruit { background: var(--navy); color: #fff; }
.recruit .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding: clamp(2.4rem, 5vw, 3.4rem) 0; }
.recruit h2 { color: #fff; font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-bottom: .35rem; }
.recruit .container > div { flex: 1 1 460px; }
.recruit .btn { flex: none; }
.recruit p { margin: 0; color: rgba(255,255,255,.82); max-width: 640px; }
.recruit .gr { font-family: var(--font-title); font-size: .9rem; color: var(--sky); letter-spacing: .04em; margin-bottom: .4rem; }
.flag { display: inline-block; width: 22px; height: 15px; border-radius: 2px; vertical-align: -2px; margin-right: .3rem; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.flag-fr { background: linear-gradient(90deg, #0055a4 33.3%, #fff 33.3% 66.6%, #ef4135 66.6%); }
.flag-gr { background: repeating-linear-gradient(180deg, #0d5eaf 0 1.67px, #fff 1.67px 3.33px); }

/* ---------- Pied de page ---------- */
.footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 2.8rem 0 1.4rem; font-size: .92rem; color: var(--muted); }
.footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer h4 { font-family: var(--font-title); color: var(--navy); font-size: .95rem; margin: 0 0 .7rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .4rem; }
.footer .bottom { border-top: 1px solid var(--line); padding-top: 1.1rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }
@media (max-width: 760px) { .footer .cols { grid-template-columns: 1fr; } }

/* ---------- Page texte (mentions légales) ---------- */
.page-title { background: var(--sky-light); padding: clamp(2.5rem, 6vw, 4rem) 0; }
.page-title h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin: 0; }
.prose { max-width: 780px; }
.prose h2 { font-size: 1.35rem; margin-top: 2rem; }
.prose h3 { font-size: 1.05rem; margin-top: 1.3rem; }
.notice { background: #fff8ec; border: 1px solid #f1d6a9; color: #7a5a1c; border-radius: 12px; padding: 1rem 1.2rem; font-size: .92rem; }

/* ---------- Barre d'action mobile ---------- */
.mobile-cta { display: none; }
@media (max-width: 700px) {
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
                background: #fff; padding: .6rem .8rem; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(4,36,71,.08); }
  .mobile-cta .btn { padding: .72rem; font-size: .92rem; }
  body { padding-bottom: 70px; }
}

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
@media (max-width: 860px) {
  .hero .where { display: block; }
  .hero .where svg { display: inline-block; vertical-align: -3px; margin-right: .3rem; }
}
