/* =========================================================
   Clinique Vétérinaire Pâquerette & Pollux
   Refonte UI/UX — charte d'après le logo (vert · orange · bleu)
   ========================================================= */

:root {
  /* Couleurs de marque issues du logo */
  --green:      #9cbf2e;  /* Pâquerette / rurale */
  --green-d:    #6e8a1c;
  --green-soft: #eef5d6;
  --orange:     #ef7e3c;  /* Pollux / canine */
  --orange-d:   #db6526;
  --orange-soft:#ffe6d4;
  --blue:       #36bbf4;  /* équine / accent */
  --blue-d:     #1198d4;
  --blue-soft:  #dcf2fd;

  --ink:        #3b4a54;
  --ink-strong: #2b3940;
  --muted:      #6a7a82;
  --cream:      #fbfdf6;
  --tint:       #f1f6e4;
  --line:       #e7e6da;
  --white:      #ffffff;

  --font-display: "Baloo 2", "Trebuchet MS", Verdana, sans-serif;
  --font-body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --r-sm: 10px; --r-md: 16px; --r-lg: 22px; --r-xl: 30px; --r-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(43,57,64,.07);
  --shadow-md: 0 14px 32px rgba(43,57,64,.12);
  --shadow-lg: 0 26px 60px rgba(43,57,64,.16);
  --container: 1180px;
  --header-h: 80px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 14px); -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: var(--font-body); color: var(--ink); background: var(--cream);
  line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; color: var(--ink-strong); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 5px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--green-d); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); transition: top .2s var(--ease); font-weight: 800; }
.skip-link:focus { top: 12px; }
.ic { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* ---------- Boutons ---------- */
.btn {
  --bg: var(--green); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--bg); color: var(--fg); font-weight: 800; font-size: .98rem;
  padding: 12px 22px; border-radius: var(--r-pill); white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn .ic { width: 19px; height: 19px; }
.btn--lg { padding: 15px 28px; font-size: 1.05rem; }
.btn--primary { --bg: var(--orange); }
.btn--primary:hover { background: var(--orange-d); }
.btn--call { --bg: var(--orange); }
.btn--call:hover { background: var(--orange-d); }
.btn--blue { --bg: var(--blue); }
.btn--blue:hover { background: var(--blue-d); }
.btn--ghost { --bg: transparent; --fg: var(--green-d); box-shadow: inset 0 0 0 2px var(--green); }
.btn--ghost:hover { background: var(--green); --fg: #fff; box-shadow: inset 0 0 0 2px var(--green); }
.btn--white { --bg: #fff; --fg: var(--orange-d); }
.btn--outline-white { --bg: transparent; --fg: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.btn--outline-white:hover { background: rgba(255,255,255,.14); }

/* ---------- Barre utilitaire ---------- */
.topbar { background: var(--ink-strong); color: #d4dbd0; font-size: .85rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 16px; }
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 12px; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; color: #d4dbd0; }
.topbar__item .ic { width: 15px; height: 15px; opacity: .85; }
.topbar__item:hover { color: #fff; }
.topbar__urg { color: #ffd9c2; font-weight: 800; }
.topbar__urg .ic { fill: var(--orange); opacity: 1; }
.topbar__urg:hover { color: #fff; }
.topbar__sep { width: 1px; height: 16px; background: rgba(255,255,255,.2); }
.topbar__item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(156,191,46,.25); }
.topbar__item.is-closed .dot { background: var(--orange); box-shadow: 0 0 0 3px rgba(239,126,60,.25); }
.topbar__social { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #d4dbd0; transition: background .2s, color .2s; }
.topbar__social .ic { width: 17px; height: 17px; }
.topbar__social:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- En-tête ---------- */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(251,253,246,.86); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); background: rgba(251,253,246,.95); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 50px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.04; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.34rem; color: var(--green-d); letter-spacing: -.01em; }
.brand__name em { font-style: normal; color: var(--blue); }
.brand__sub { font-size: .73rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 22px; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__link { position: relative; font-weight: 800; font-size: .96rem; color: var(--ink); padding: 9px 13px; border-radius: var(--r-pill); transition: color .2s, background .2s; }
.nav__link::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 5px; height: 2.5px; background: var(--orange); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav__link:hover { color: var(--green-d); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--green-d); }
.nav__cta { display: none; }
.nav__close { display: none; }
@media (min-width: 1040px) { .nav__cta { display: inline-flex; } }
.nav__toggle { display: none; width: 46px; height: 46px; border-radius: 12px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav__toggle span { width: 24px; height: 2.6px; background: var(--ink-strong); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav__overlay { position: fixed; inset: 0; background: rgba(43,57,64,.45); z-index: 998; opacity: 0; display: none; transition: opacity .3s; }

/* ---------- Héro (fond à pattes) ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, #ffffff, var(--cream));
  padding: clamp(36px, 6vw, 72px) 0 clamp(48px, 7vw, 84px);
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 60px); align-items: center; }

/* Tracés d'empreintes décoratifs (maison) */
.prints { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.print { position: absolute; width: var(--s, 42px); height: var(--s, 42px); rotate: var(--r, 0deg); background: currentColor; -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat; opacity: .5; }
.print--dog   { --m: url("../img/brand/paw-mask.svg"); }
.print--cat   { --m: url("../img/brand/paw-cat.svg"); }
.print--cow   { --m: url("../img/brand/hoof-mask.svg"); }
.print--horse { --m: url("../img/brand/hoof-horse.svg"); }
.print--orange { color: var(--orange); }
.print--green  { color: var(--green); }
.print--blue   { color: var(--blue); }

.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: var(--orange-d); background: var(--orange-soft); padding: 7px 15px; border-radius: var(--r-pill); margin-bottom: 18px; }
.eyebrow--green { color: var(--green-d); background: var(--green-soft); }
.eyebrow__dot { width: 17px; height: 17px; background: currentColor; -webkit-mask: url("../img/brand/paw-mask.svg") center/contain no-repeat; mask: url("../img/brand/paw-mask.svg") center/contain no-repeat; }

.hero__title { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -.01em; color: var(--ink-strong); }
.hero__title .hl { position: relative; color: var(--green-d); white-space: nowrap; }
.hero__title .hl::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: .06em; height: .32em; z-index: -1; background: var(--blue); opacity: .35; border-radius: 6px; }
.hero__lead { font-size: 1.15rem; color: var(--muted); margin-top: 20px; max-width: 36em; }
.hero__lead strong { color: var(--ink); font-weight: 800; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .9rem; background: var(--white); color: var(--ink); padding: 9px 15px; border-radius: var(--r-pill); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.chip--orange { color: var(--orange-d); border-color: var(--orange-soft); }
.chip--green { color: var(--green-d); border-color: var(--green-soft); }
.chip--blue { color: var(--blue-d); border-color: var(--blue-soft); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex: none; }
.dot--live { background: var(--green); box-shadow: 0 0 0 4px rgba(156,191,46,.22); animation: pulse 2s infinite; }
.chip.is-closed .dot--live, .hours__status.is-closed .dot--live { background: var(--orange); box-shadow: 0 0 0 4px rgba(239,126,60,.22); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(156,191,46,.22);} 50% { box-shadow: 0 0 0 7px rgba(156,191,46,0);} }

.hero__media { position: relative; }
.hero__photo { position: relative; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid #fff; rotate: 1.4deg; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/2; }
.hero__badge { position: absolute; background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-md); padding: 11px 16px; display: flex; flex-direction: column; line-height: 1.05; border: 1px solid var(--line); z-index: 2; }
.hero__badge strong { font-family: var(--font-display); font-size: 1.45rem; }
.hero__badge span { font-size: .76rem; font-weight: 800; color: var(--muted); }
.hero__badge--years { top: -14px; left: -14px; rotate: -4deg; } .hero__badge--years strong { color: var(--orange-d); }
.hero__badge--team { bottom: -16px; right: -10px; rotate: 3deg; } .hero__badge--team strong { color: var(--green-d); }

/* ---------- Bandeau urgences ---------- */
.urgences { background: linear-gradient(100deg, var(--orange), var(--orange-d)); color: #fff; }
.urgences__inner { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; padding: 12px 0; text-align: center; }
.urgences__label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .03em; }
.urgences__label .ic { width: 20px; height: 20px; fill: #fff; }
.urgences__text { font-weight: 700; font-size: 1rem; }
.urgences__text a { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.urgences__text strong { background: rgba(255,255,255,.22); padding: 2px 8px; border-radius: var(--r-pill); }

/* ---------- Infos rapides ---------- */
.quickbar { padding: clamp(26px, 4vw, 42px) 0; position: relative; z-index: 3; }
.quickbar__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quickcard { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: var(--r-md); padding: 18px 20px; box-shadow: var(--shadow-md); border: 1px solid var(--line); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.quickcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.quickcard__ic { width: 46px; height: 46px; flex: none; border-radius: 13px; display: grid; place-items: center; background: var(--green-soft); color: var(--green-d); }
.quickcard__ic svg { width: 24px; height: 24px; fill: currentColor; }
.quickcard:nth-child(1) .quickcard__ic { background: var(--orange-soft); color: var(--orange-d); }
.quickcard:nth-child(3) .quickcard__ic { background: var(--blue-soft); color: var(--blue-d); }
.quickcard:nth-child(4) .quickcard__ic { background: #fff1d4; color: #c9920f; }
.quickcard__txt { display: flex; flex-direction: column; min-width: 0; }
.quickcard__txt strong { font-size: 1.02rem; color: var(--ink-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quickcard__txt small { color: var(--muted); font-weight: 700; font-size: .82rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(52px, 7vw, 96px) 0; position: relative; }
.section--tint { background: var(--tint); }
.section__head { max-width: 720px; margin: 0 auto clamp(34px, 5vw, 52px); text-align: center; }
.section__title { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.section__lead { font-size: 1.1rem; color: var(--muted); margin-top: 14px; }
.section__lead--center { margin-inline: auto; }
.section__lead a { color: var(--blue-d); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.section__text { color: var(--muted); margin-top: 14px; }
.section__text strong, .section__lead strong { color: var(--ink); font-weight: 800; }

/* ---------- Décor « pattes » ---------- */
.section > .container { position: relative; z-index: 1; }
/* filigranes dans les zones */
.section--tint::before, .section--tint::after,
#clinique::before, #clinique::after {
  content: ""; position: absolute; pointer-events: none; z-index: 0; opacity: .08;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: contain; mask-size: contain;
}
.section--tint::after { width: 150px; height: 150px; right: -24px; top: 56px; background: var(--orange-d); -webkit-mask-image: url("../img/brand/paw-mask.svg"); mask-image: url("../img/brand/paw-mask.svg"); rotate: 16deg; }
.section--tint::before { width: 140px; height: 140px; left: -26px; bottom: 40px; background: var(--green-d); -webkit-mask-image: url("../img/brand/hoof-mask.svg"); mask-image: url("../img/brand/hoof-mask.svg"); rotate: -12deg; }
#clinique::before { width: 130px; height: 130px; left: -34px; top: 14px; background: var(--orange-d); -webkit-mask-image: url("../img/brand/paw-mask.svg"); mask-image: url("../img/brand/paw-mask.svg"); rotate: -18deg; }
#clinique::after { width: 120px; height: 120px; right: -30px; bottom: 30px; background: var(--green-d); -webkit-mask-image: url("../img/brand/hoof-mask.svg"); mask-image: url("../img/brand/hoof-mask.svg"); rotate: 14deg; }

/* séparateur « traces de pas » entre deux zones */
.paw-divider { height: 76px; margin: 0; background: url("../img/brand/paw-trail.svg") repeat-x center; background-size: auto 72px; opacity: .85; }
.paw-divider--tint { background-color: var(--tint); }

/* ---------- La clinique ---------- */
.about { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(30px, 5vw, 66px); align-items: center; }
.about__media { position: relative; padding-bottom: 20px; }
.about__photo { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); margin: 0; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about__photo--main { aspect-ratio: 4/3; rotate: -1.5deg; }
.about__photo--accent { position: absolute; right: -12px; bottom: 0; width: 46%; aspect-ratio: 1/1; rotate: 3deg; border: 6px solid #fff; }
.about__logo { position: absolute; left: -10px; top: -18px; width: 116px; background: #fff; border-radius: 16px; padding: 8px; box-shadow: var(--shadow-md); rotate: -5deg; }
.about__logo img { width: 100%; height: auto; border-radius: 8px; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.value { display: flex; gap: 13px; align-items: flex-start; }
.value__ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; font-size: 1.25rem; border-radius: 13px; background: var(--green-soft); }
.value__ic--orange { background: var(--orange-soft); } .value__ic--blue { background: var(--blue-soft); } .value__ic--green { background: var(--green-soft); }
.value span:last-child { display: flex; flex-direction: column; font-size: .94rem; color: var(--muted); }
.value strong { color: var(--ink-strong); font-size: 1.02rem; font-family: var(--font-display); font-weight: 700; }

/* ---------- Pôles ---------- */
.poles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.pole { background: #fff; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .22s var(--ease), box-shadow .22s var(--ease); display: flex; flex-direction: column; }
.pole:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pole__photo { margin: 0; aspect-ratio: 16/10; overflow: hidden; position: relative; }
.pole__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pole:hover .pole__photo img { transform: scale(1.06); }
.pole__photo::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; }
.pole__body { padding: 22px 24px 26px; }
.pole__title { font-size: 1.4rem; display: flex; align-items: center; gap: 10px; }
.pole__emoji { font-size: 1.3rem; }
.pole__sub { color: var(--muted); font-weight: 700; font-size: .9rem; margin: 4px 0 14px; }
.pole__list { display: grid; gap: 8px; }
.pole__list li { position: relative; padding-left: 26px; font-size: .95rem; color: var(--ink); }
.pole__list li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 9px; height: 9px; border-radius: 3px; transform: rotate(45deg); }
.pole__list strong { color: var(--orange-d); font-weight: 800; }
/* couleurs par pôle */
.pole--canine .pole__photo::after { background: var(--orange); }
.pole--canine .pole__list li::before { background: var(--orange); }
.pole--rurale .pole__photo::after { background: var(--green); }
.pole--rurale .pole__list li::before { background: var(--green); }
.pole--equine .pole__photo::after { background: var(--blue); }
.pole--equine .pole__list li::before { background: var(--blue); }
.pole--equine .pole__list strong { color: var(--blue-d); }

/* ---------- Équipe ---------- */
.team-group { display: flex; align-items: center; justify-content: center; gap: 16px; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--ink-strong); margin: 6px 0 30px; }
.team-group--asv { margin-top: 52px; }
.team-group__line { height: 3px; width: 50px; border-radius: 3px; background: var(--green); opacity: .55; }
.team-group--asv .team-group__line { background: var(--orange); }

.team { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(18px, 2.5vw, 32px) clamp(16px, 2vw, 26px); }
.member { text-align: center; }
.member__photo { position: relative; width: clamp(130px, 15vw, 180px); aspect-ratio: 1; margin: 0 auto 16px; border-radius: 50%; transition: transform .28s var(--ease); }
.member__photo::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; background: var(--halo, var(--blue)); opacity: .3; z-index: 0; transition: transform .35s var(--ease), opacity .25s; }
.member__photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.member:hover .member__photo { transform: translateY(-8px) scale(1.03); }
.member:hover .member__photo::before { opacity: .55; transform: scale(1.09) rotate(8deg); }
.member__name { font-size: 1.1rem; line-height: 1.2; }
.member__role { color: var(--muted); font-size: .86rem; font-weight: 700; margin-top: 3px; }
.member__tags { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin-top: 10px; }
.ptag { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; padding: 3px 10px; border-radius: var(--r-pill); }
.ptag--green { background: var(--green-soft); color: var(--green-d); }
.ptag--orange { background: var(--orange-soft); color: var(--orange-d); }
.ptag--blue { background: var(--blue-soft); color: var(--blue-d); }
/* halos colorés alternés (vivacité) */
.team .member:nth-child(3n+1) { --halo: var(--orange); }
.team .member:nth-child(3n+2) { --halo: var(--green); }
.team .member:nth-child(3n)   { --halo: var(--blue); }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.gtile { position: relative; border-radius: var(--r-md); overflow: hidden; cursor: pointer; box-shadow: var(--shadow-sm); margin: 0; background: var(--tint); }
.gtile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gtile--lg { grid-column: span 2; grid-row: span 2; }
.gtile--tall { grid-row: span 2; }
.gtile--wide { grid-column: span 2; }
.gtile figcaption { position: absolute; inset: auto 0 0 0; padding: 14px 16px; color: #fff; font-weight: 800; font-size: .95rem; background: linear-gradient(transparent, rgba(31,40,45,.8)); transform: translateY(6px); opacity: 0; transition: .3s var(--ease); }
.gtile::after { content: "🔍"; position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; font-size: .85rem; opacity: 0; transform: scale(.8); transition: .25s var(--ease); }
.gtile:hover img { transform: scale(1.07); }
.gtile:hover figcaption { transform: translateY(0); opacity: 1; }
.gtile:hover::after { opacity: 1; transform: scale(1); }

/* ---------- Infos pratiques ---------- */
.infos { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: stretch; }
.infos__cards { display: grid; gap: 22px; align-content: start; }
.infocard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.infocard__title { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; margin-bottom: 16px; }
.infocard__title .ic { width: 22px; height: 22px; fill: var(--green-d); }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .98rem; }
.hours th { font-weight: 800; color: var(--ink); font-family: var(--font-body); }
.hours td { text-align: right; color: var(--muted); font-weight: 700; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: none; }
.hours .is-closed td { color: var(--orange-d); }
.hours__status { display: inline-flex; align-items: center; gap: 9px; margin-top: 14px; font-weight: 800; color: var(--green-d); font-size: .95rem; }
.hours__status.is-closed { color: var(--orange-d); }
.infocard__urg { margin-top: 16px; padding: 12px 14px; background: var(--orange-soft); border-radius: var(--r-sm); font-size: .9rem; color: var(--ink); }
.infocard__urg a { color: var(--orange-d); font-weight: 800; }
.contact-list { display: grid; gap: 14px; }
.contact-list li { display: flex; flex-direction: column; }
.contact-list__lbl { font-size: .74rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-list a { color: var(--green-d); font-weight: 800; }
.contact-list a:hover { text-decoration: underline; }
.infocard__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.infos__map { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); min-height: 440px; }
.infos__map iframe { width: 100%; height: 100%; min-height: 440px; border: 0; display: block; }

/* ---------- CTA ---------- */
.cta { padding: clamp(38px, 6vw, 70px) 0; }
.cta__inner { background: linear-gradient(135deg, var(--green), var(--green-d)); border-radius: var(--r-xl); padding: clamp(32px, 5vw, 56px); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.cta__inner::before, .cta__inner::after { content: ""; position: absolute; border-radius: 50%; opacity: .2; }
.cta__inner::before { width: 240px; height: 240px; background: var(--blue); right: -60px; top: -80px; }
.cta__inner::after { width: 200px; height: 200px; background: var(--orange); left: -50px; bottom: -80px; }
.cta__text { position: relative; z-index: 1; max-width: 30em; }
.cta__text h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.cta__text p { color: rgba(255,255,255,.9); margin-top: 10px; font-size: 1.05rem; }
.cta__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Pied de page ---------- */
.footer { background: var(--ink-strong); color: #c2ccc6; padding-top: clamp(42px, 6vw, 66px); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1.1fr; gap: 36px; padding-bottom: 38px; }
.footer__logo { width: 200px; max-width: 70%; background: #fff; padding: 10px 14px; border-radius: 14px; }
.footer__about { margin-top: 16px; font-size: .95rem; color: #a6b3ad; max-width: 34ch; }
.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: background .2s, transform .2s; color: #d4dbd0; }
.footer__social svg { width: 20px; height: 20px; fill: currentColor; }
.footer__social a:hover { background: var(--orange); transform: translateY(-3px); color: #fff; }
.footer__col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; font-family: var(--font-display); font-weight: 700; }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__contact li { margin-bottom: 4px; font-size: .95rem; }
.footer__hours li { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; border-bottom: 1px dashed rgba(255,255,255,.12); padding-bottom: 8px; }
.footer__hours li span:last-child { color: #fff; font-weight: 700; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 0; font-size: .85rem; color: #98a59f; flex-wrap: wrap; }
.footer__bottom-inner a:hover { color: #fff; text-decoration: underline; }

/* ---------- FAB & retour haut ---------- */
.fab-call { position: fixed; right: 18px; bottom: 18px; z-index: 900; width: 58px; height: 58px; border-radius: 50%; background: var(--orange); color: #fff; display: none; place-items: center; box-shadow: 0 10px 26px rgba(239,126,60,.5); animation: ring 2.4s infinite; }
.fab-call svg { width: 26px; height: 26px; fill: #fff; }
@keyframes ring { 0%,100% { box-shadow: 0 10px 26px rgba(239,126,60,.5);} 50% { box-shadow: 0 10px 26px rgba(239,126,60,.5), 0 0 0 12px rgba(239,126,60,0);} }
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 880; width: 46px; height: 46px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(12px); transition: .3s var(--ease); }
.to-top svg { width: 22px; height: 22px; fill: #fff; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--green-d); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1500; background: rgba(20,28,24,.93); display: grid; place-items: center; padding: 30px; }
.lightbox__content { max-width: 880px; width: 100%; text-align: center; }
.lightbox__media { border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
.lightbox__media img { width: 100%; height: auto; max-height: 76vh; object-fit: contain; }
.lightbox__content figcaption { color: #fff; margin-top: 16px; font-weight: 800; font-size: 1.05rem; }
.lightbox__close { position: fixed; top: 18px; right: 22px; color: #fff; font-size: 2.4rem; line-height: 1; width: 48px; height: 48px; }
.lightbox__nav { position: fixed; top: 50%; transform: translateY(-50%); color: #fff; font-size: 3rem; width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.12); transition: background .2s; }
.lightbox__nav:hover { background: rgba(255,255,255,.25); }
.lightbox__nav--prev { left: 18px; } .lightbox__nav--next { right: 18px; }

/* ---------- Modale ---------- */
.modal { position: fixed; inset: 0; z-index: 1600; display: grid; place-items: center; padding: 24px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(20,28,24,.55); }
.modal__box { position: relative; background: #fff; border-radius: var(--r-lg); max-width: 560px; width: 100%; padding: 36px; box-shadow: var(--shadow-lg); max-height: 86vh; overflow: auto; }
.modal__box h2 { font-size: 1.6rem; margin-bottom: 16px; }
.modal__box p { color: var(--muted); margin-bottom: 12px; font-size: .98rem; }
.modal__box strong { color: var(--ink); }
.modal__small { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; }
.modal__close { position: absolute; top: 14px; right: 16px; font-size: 1.9rem; line-height: 1; color: var(--muted); width: 40px; height: 40px; border-radius: 50%; }
.modal__close:hover { background: var(--tint); color: var(--ink); }

/* ---------- Apparition ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.services .svc, .team .member, .gallery .gtile, .poles .pole { transition-delay: var(--d, 0ms); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .poles { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .pole { flex-direction: row; }
  .pole__photo { width: 40%; aspect-ratio: auto; }
}
@media (max-width: 920px) {
  .topbar { display: none; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__content, .hero__media { min-width: 0; }
  .hero__title .hl { white-space: normal; }
  .hero__title { overflow-wrap: break-word; }
  .hero__content { order: 2; }
  .hero__media { order: 1; max-width: 440px; margin: 0 auto 8px; }
  .eyebrow, .hero__actions, .hero__chips { justify-content: center; }
  .hero__lead { margin-inline: auto; }
  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 460px; margin: 0 auto; }
  .infos { grid-template-columns: 1fr; }
  .quickbar__grid { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(3, 1fr); }
  .nav__toggle { display: flex; }
  .nav { position: fixed; top: 0; right: 0; height: 100dvh; width: min(86vw, 340px); background: var(--cream); flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 84px 26px 30px; z-index: 999; transform: translateX(100%); transition: transform .35s var(--ease); box-shadow: -20px 0 50px rgba(43,57,64,.18); }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__link { padding: 14px; border-radius: var(--r-sm); font-size: 1.1rem; }
  .nav__link::after { display: none; }
  .nav__link:hover, .nav__link.is-active { background: var(--tint); }
  .nav__cta { display: inline-flex; margin-top: 18px; }
  .nav__close { display: grid; place-items: center; position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; font-size: 2rem; color: var(--ink-strong); border-radius: 50%; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav__overlay { display: block; opacity: 1; }
  .nav-open .nav__toggle span:nth-child(1) { transform: translateY(7.6px) rotate(45deg); }
  .nav-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav__toggle span:nth-child(3) { transform: translateY(-7.6px) rotate(-45deg); }
  .fab-call { display: grid; }
  .to-top { bottom: 86px; }
  .urgences__inner { flex-direction: column; gap: 6px; padding: 10px 0; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .quickbar__grid { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gtile--lg, .gtile--wide { grid-column: span 2; }
  .gtile--lg { grid-row: span 2; }
  .gtile--tall { grid-row: span 1; }
  .pole { flex-direction: column; }
  .pole__photo { width: 100%; aspect-ratio: 16/10; }
  .hero__badge { display: none; }
  .cta__inner { flex-direction: column; text-align: center; }
  .cta__text { max-width: none; }
  .cta__actions { justify-content: center; width: 100%; }
  .footer__bottom-inner { justify-content: center; text-align: center; }
  .about__logo { width: 92px; }
}
@media (max-width: 400px) { .team { grid-template-columns: repeat(2, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .js .reveal { opacity: 1 !important; transform: none !important; }
}
