/* Pharmacie L'Orchidée - couleurs du logo (#287973) et croix verte de l'enseigne */
:root {
  --teal: #287973;
  --teal-dark: #1a524e;
  --teal-deep: #0f3431;
  --mint: #e9f4f2;
  --mint-2: #d3ebe7;
  --green: #22b24c;
  --orchid: #b8457f;
  --ink: #102b28;
  --ink-soft: #4a615e;
  --line: #d6e5e2;
  --white: #ffffff;
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Figtree", "Segoe UI", system-ui, sans-serif;
  --wrap: 1160px;
  --r: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--sans); color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: .18em; }
a:hover { color: var(--orchid); }
:focus-visible { outline: 3px solid var(--orchid); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0 0 .6em; line-height: 1.15; color: var(--teal-deep); }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 4.8vw, 3.7rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font: 800 1.2rem/1.3 var(--sans); }
p { margin: 0 0 1em; max-width: 66ch; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--teal-deep); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.35rem; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-ghost { border-color: var(--teal); color: var(--teal-dark); background: transparent; }
.btn-ghost:hover { background: var(--teal); color: #fff; }
.btn-light { background: #fff; color: var(--teal-deep); }
.btn-light:hover { background: var(--mint-2); color: var(--teal-deep); }
.btn-block { width: 100%; }
.btn-call { background: var(--mint); color: var(--teal-deep); padding: .6rem 1rem; white-space: nowrap; }
.btn-call:hover { background: var(--teal); color: #fff; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(34, 178, 76, .22); flex: none; display: inline-block; }

/* En-tête */
.site-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-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand img { height: 46px; width: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: .2rem; margin: 0; padding: 0; }
.nav a { display: block; padding: .5rem .8rem; border-radius: 999px; color: var(--ink); font-weight: 700; text-decoration: none; }
.nav a:hover { background: var(--mint); color: var(--teal-deep); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 2px solid var(--teal); color: var(--teal-deep); border-radius: 999px; padding: .4rem .9rem; font: 700 .95rem var(--sans); cursor: pointer; }
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; gap: .8rem; }
  .nav-toggle { display: inline-block; order: 2; margin-left: .2rem; }
  .btn-call { order: 1; margin-left: auto; }
  .nav { order: 3; width: 100%; display: none; margin: 0 0 1rem; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; }
  .nav a { border-radius: 10px; padding: .8rem; }
}
@media (max-width: 420px) { .brand img { height: 36px; } .btn-call { font-size: .9rem; padding: .5rem .75rem; } }

/* Accueil */
.hero { padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5.5rem); background: linear-gradient(180deg, var(--mint) 0%, #fff 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.kicker { font-weight: 800; color: var(--orchid); margin-bottom: 1rem; }
.lead { font-size: 1.17rem; color: var(--ink-soft); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-visual { position: relative; padding-bottom: 3.5rem; }
.hero-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 70% center; border-radius: 28px 28px 28px 120px; box-shadow: 0 30px 60px -30px rgba(15, 52, 49, .45); }

/* Carte « ouverte » : l'élément signature, comme l'enseigne lumineuse */
.open-card {
  position: absolute; left: -1.5rem; bottom: 0; display: flex; align-items: center; gap: 1.1rem;
  background: var(--teal-deep); color: #fff; padding: 1.1rem 1.4rem 1.1rem 1.1rem; border-radius: 20px;
  box-shadow: 0 20px 40px -18px rgba(15, 52, 49, .6); max-width: 360px;
}
.open-card p { margin: 0; }
.cross { width: 64px; height: 64px; flex: none; position: relative; }
.cross::before, .cross::after {
  content: ""; position: absolute; background: var(--green); border-radius: 5px;
  box-shadow: 0 0 18px rgba(34, 178, 76, .75);
}
.cross::before { left: 21px; top: 2px; width: 22px; height: 60px; }
.cross::after { top: 21px; left: 2px; width: 60px; height: 22px; }
.open-now { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .95rem; color: #bfe9cc; }
.open-big { font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; margin: .15rem 0 .25rem !important; }
.open-time { font-size: .92rem; color: #cfe3e0; }
.open-time b { color: #fff; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
  .cross::before, .cross::after { animation: neon 2.8s ease-in-out infinite; }
  .dot { animation: ping 2s ease-out infinite; }
  @keyframes neon { 0%, 100% { opacity: 1; } 50% { opacity: .72; box-shadow: 0 0 6px rgba(34, 178, 76, .4); } }
  @keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34, 178, 76, .55); } 100% { box-shadow: 0 0 0 9px rgba(34, 178, 76, 0); } }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .open-card { left: 1rem; right: 1rem; max-width: none; }
}

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-tint { background: var(--mint); }
.section-deep { background: var(--teal-deep); color: #e2efed; }
.section-deep h2, .section-deep h3 { color: #fff; }
.section-deep a { color: #fff; }
.section-intro { max-width: 60ch; margin-bottom: 2.6rem; }
.section-intro p { color: var(--ink-soft); font-size: 1.1rem; }
.section-deep .section-intro p { color: #b9d3cf; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-photos { display: grid; grid-template-columns: 1fr; gap: 1rem; position: relative; }
.split-photos img { border-radius: var(--r); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.split-photos img:last-child { width: 72%; margin: -4.5rem 0 0 auto; border: 6px solid #fff; box-shadow: 0 20px 40px -20px rgba(15, 52, 49, .4); }
.points { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.points li { padding: .8rem 0 .8rem 2.2rem; border-top: 1px solid var(--line); position: relative; }
.points li::before { content: "+"; position: absolute; left: 0; top: .72rem; width: 1.4rem; height: 1.4rem; border-radius: 6px; background: var(--teal); color: #fff; font: 800 1rem/1.4rem var(--sans); text-align: center; }
.points b { display: block; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Services */
.services { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.4rem; }
.service { grid-column: span 2; background: #fff; border-radius: var(--r); padding: 1.6rem 1.5rem 1.2rem; border: 1px solid var(--line); }
.service:nth-child(4) { grid-column: 2 / span 2; }
.ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px 18px 18px 6px; background: var(--teal); margin-bottom: 1.1rem; }
.ico img { width: 34px; height: 34px; }
.service:nth-child(2) .ico { background: var(--orchid); }
.service p { color: var(--ink-soft); margin: 0; }
@media (max-width: 900px) { .services { grid-template-columns: 1fr 1fr; } .service, .service:nth-child(4) { grid-column: auto; } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

/* Ordonnance */
.ord-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 1.6rem 0; }
.steps li { counter-increment: s; position: relative; padding: .2rem 0 1.1rem 3.2rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--mint); color: var(--teal-deep); font: 400 1.15rem/2.2rem var(--serif); text-align: center; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 1.08rem; top: 2.4rem; bottom: .2rem; width: 2px; background: var(--mint-2); }
.steps b { display: block; }
.note { background: #fbeef5; border-left: 4px solid var(--orchid); padding: .9rem 1.1rem; border-radius: 0 10px 10px 0; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.3rem, 3vw, 2.2rem); box-shadow: 0 30px 60px -40px rgba(15, 52, 49, .45); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; }
input, select, textarea { width: 100%; font: 1rem var(--sans); color: var(--ink); padding: .75rem .9rem; border: 2px solid var(--line); border-radius: 10px; background: #fff; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(40, 121, 115, .18); }
.file-field input { padding: .6rem; background: var(--mint); border-style: dashed; cursor: pointer; }
.hint { display: block; font-size: .9rem; color: var(--ink-soft); margin-top: .3rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; margin: .4rem 0 1.2rem; }
.consent input { width: auto; margin-top: .3rem; accent-color: var(--teal); }
.hp { position: absolute; left: -5000px; }
.is-invalid, .is-invalid input { border-color: #c0392b !important; background: #fff6f5; }
.form-error { color: #9b1c14; background: #fdeaea; padding: .7rem 1rem; border-radius: 8px; font-weight: 700; }
.alert { padding: 1rem 1.2rem; border-radius: 10px; font-weight: 700; margin-bottom: 1.2rem; }
.alert-ok { background: #e3f5e8; color: #1d6b34; }
.alert-ko { background: #fdeaea; color: #9b1c14; }
[hidden] { display: none !important; }
@media (max-width: 900px) { .ord-grid { grid-template-columns: 1fr; } }

/* Nous trouver */
.find-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 1.5rem; }
.map { border-radius: 20px; overflow: hidden; min-height: 420px; background: #16433f; }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.find-info { display: flex; flex-direction: column; gap: 1rem; }
.info-block { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r); padding: 1.1rem 1.3rem; }
.info-block h3 { font-size: .95rem; color: #9fcac4; margin-bottom: .4rem; }
.info-block p { margin: 0; }
.info-block .big { font-family: var(--serif); font-size: 1.45rem; color: #fff; }
.tels { list-style: none; padding: 0; margin: 0; }
.tels li { padding: .15rem 0; }
.tels a { font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.tels a:hover { text-decoration: underline; color: #fff; }
.find-info .btn { margin-top: auto; }
@media (max-width: 900px) { .find-grid { grid-template-columns: 1fr; } .map, .map iframe { min-height: 320px; } }

/* Réseaux */
.social { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.social-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.social h2 { margin-bottom: .3rem; }
.social p { color: var(--ink-soft); margin: 0; }
.social-links { display: flex; gap: .8rem; flex-wrap: wrap; }
.soc { display: inline-flex; align-items: center; gap: .6rem; padding: .8rem 1.3rem; border-radius: 999px; color: #fff; font-weight: 700; text-decoration: none; }
.soc svg { width: 20px; height: 20px; fill: currentColor; }
.soc-fb { background: #1877f2; }
.soc-ig { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); }
.soc:hover { color: #fff; filter: brightness(1.08); }

/* Pied de page */
.site-footer { background: var(--ink); color: #b9ccc9; padding: 2rem 0; font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.2rem; }
.footer-inner img { width: 44px; height: 44px; filter: brightness(0) invert(1); opacity: .9; }
.site-footer p { margin: 0; }
.f-name { color: #fff; font-family: var(--serif); font-size: 1.15rem; }
.f-copy { margin-left: auto !important; }
.site-footer a { color: #fff; font-weight: 700; }

/* Bouton d'appel flottant (mobile) */
.float-call { display: none; }
@media (max-width: 760px) {
  .float-call {
    position: fixed; right: 1rem; bottom: 1rem; z-index: 60; display: inline-flex; align-items: center; gap: .5rem;
    background: var(--green); color: #fff; font-weight: 800; text-decoration: none; padding: .85rem 1.15rem; border-radius: 999px;
    box-shadow: 0 10px 24px -8px rgba(15, 52, 49, .6);
  }
  .float-call svg { width: 20px; height: 20px; fill: currentColor; }
  .float-call:hover { color: #fff; }
  .site-footer { padding-bottom: 5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.section-deep .btn-light, .section-deep .btn-light:hover { color: var(--teal-deep); }
@media (max-width: 760px) { .site-header .btn-call { display: none; } .nav-toggle { margin-left: auto; } }
