/* Dimanet V2 - feuille de style (aucune ressource externe) */

@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --navy: #0d306f;
  --navy-deep: #081f4a;
  --blue: #1b5fa8;
  --sky: #eaf2fb;
  --mint: #22a06b;          /* V3 : vert de la V1 (boutons : texte marine, 4,8:1) */
  --mint-text: #15803d;     /* teinte foncée réservée aux petits textes sur blanc (5,0:1) */
  --on-mint: #081f4a;
  --mint-dark: #2bb57a;     /* survol : plus clair, le texte marine reste lisible */
  --mint-soft: #e7f5ec;
  --ink: #18202b;
  --text: #3a4554;
  --muted: #677385;
  --line: #e2e7ee;
  --bg: #f6f8fb;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 32, 64, .06), 0 8px 28px rgba(16, 32, 64, .07);
  --wrap: 1200px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font: 17px/1.7 var(--font); color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; font-weight: 750; margin: 1.8em 0 .55em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); margin-top: 0; letter-spacing: -.03em; }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
strong { color: var(--ink); }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); z-index: 100; }
.skip:focus { left: 8px; color: #fff; }
.ico { width: 1.05em; height: 1.05em; flex: none; vertical-align: -.15em; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mint-text); margin: 0 0 1em; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.35em; border-radius: var(--radius-sm); font: 650 .98rem/1.2 var(--font); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn--accent { background: var(--mint); color: var(--on-mint); }
.btn--accent:hover { background: var(--mint-dark); color: var(--on-mint); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--blue); color: #fff; }
.btn--outline { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--outline:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.btn--block { width: 100%; }

/* En-tête */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; gap: 28px; min-height: 80px; }
.brand { flex: none; }
.brand img { width: 168px; }
.nav { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 24px; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav__list { display: flex; gap: 2px; }
.nav__link, .nav__parent { display: flex; align-items: center; gap: 6px; padding: 9px 14px; border: 0; border-radius: var(--radius-sm); background: none; font: 600 .96rem var(--font); color: var(--ink); text-decoration: none; cursor: pointer; }
.nav__parent::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); opacity: .55; }
.nav__link:hover, .nav__parent:hover, .nav__link[aria-current="page"], .nav__group.is-active > .nav__parent { background: var(--sky); color: var(--navy); }
.nav__group { position: relative; }
.nav__sub { position: absolute; top: calc(100% + 10px); left: 0; min-width: 260px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; }
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav__group:hover > .nav__sub, .nav__group:focus-within > .nav__sub, .nav__parent[aria-expanded="true"] + .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { display: block; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-size: .95rem; }
.nav__sub a:hover, .nav__sub a[aria-current="page"] { background: var(--sky); color: var(--navy); }
.nav__actions { display: flex; align-items: center; gap: 18px; }
.nav__phone { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 650; text-decoration: none; white-space: nowrap; font-size: .95rem; }
.nav__phone .ico { color: var(--mint); }
.nav-toggle { display: none; }

/* Accueil */
.hero { position: relative; overflow: hidden; background: var(--navy-deep); color: #c9d6ea; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(900px 500px at 85% -10%, rgba(34,160,107,.35), transparent 60%), radial-gradient(700px 500px at 10% 120%, rgba(27,95,168,.55), transparent 60%), linear-gradient(160deg, #0d306f, #081f4a 70%); }
.hero__inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; padding-top: 96px; padding-bottom: 104px; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 5.6vw, 4rem); margin-bottom: .4em; }
.hero h1 em { font-style: normal; color: #7be0b0; }
.hero__lead { font-size: 1.2rem; max-width: 600px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 30px; backdrop-filter: blur(6px); }
.hero__card p { margin: 0; }
.hero__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.hero__facts li { display: flex; gap: 14px; align-items: flex-start; }
.hero__facts strong { display: block; color: #fff; font-size: 1.05rem; }
.hero__facts span { font-size: .93rem; }
.hero__dot { flex: none; width: 34px; height: 34px; border-radius: 50%; background: rgba(123,224,176,.18); color: #7be0b0; display: grid; place-items: center; }

.section { padding: 96px 0; }
.section--tint { background: var(--bg); }
.section__head { max-width: 680px; margin-bottom: 48px; }
.section__head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section__head h2 { margin: 0 0 .4em; font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.section__head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.tile:hover { border-color: #c5d6ea; box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.tile h3 { margin: 18px 0 .4em; font-size: 1.25rem; }
.tile p { margin: 0 0 1.2em; font-size: .97rem; }
.tile__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--sky); color: var(--blue); display: grid; place-items: center; }
.tile__icon svg { width: 24px; height: 24px; }
.tile__more { margin-top: auto; font-weight: 650; color: var(--blue); font-size: .95rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.quote { margin: 0; padding: 36px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.quote p { font-size: 1.12rem; color: var(--ink); }
.quote footer { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.quote img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.quote cite { font-style: normal; font-weight: 700; color: var(--ink); display: block; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li { padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--navy); font-size: .92rem; }

.cta { border-radius: 20px; padding: 56px; background: linear-gradient(135deg, var(--navy), var(--blue)); color: #d6e2f3; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta h2 { color: #fff; margin: 0 0 .3em; }
.cta p { margin: 0; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; flex: none; }

/* Pages intérieures */
.page-head { background: var(--bg); border-bottom: 1px solid var(--line); padding: 64px 0 52px; }
.page-head h1 { margin: 0; max-width: 820px; }
.page-head__intro { margin: 18px 0 0; font-size: 1.15rem; color: var(--muted); max-width: 760px; }
.page-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; padding-top: 56px; padding-bottom: 96px; }
.page-body--wide { grid-template-columns: minmax(0, 1fr); }
.aside__box { position: sticky; top: 104px; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.aside__title { font-weight: 750; color: var(--ink); font-size: 1.15rem; margin-bottom: .4em; }
.aside__box p { font-size: .95rem; }
.aside__phone { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 14px; font-weight: 650; text-decoration: none; color: var(--ink); }
.aside__phone .ico { color: var(--mint); }

.prose { max-width: 780px; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .4em 0; }
.prose li::marker { color: var(--mint); }
.lead { font-size: 1.15rem; color: var(--ink); }
.note { padding: 16px 20px; border-radius: var(--radius-sm); background: #fff7e6; border: 1px solid #f3dca4; color: #6b4e0a; font-size: .95rem; }

.list-check { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
.list-check li { position: relative; padding-left: 32px; margin: 0; }
.list-check li::before { content: ""; position: absolute; left: 0; top: .32em; width: 20px; height: 20px; border-radius: 50%; background: var(--mint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2322a06b' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat; }
.list-check--single { grid-template-columns: 1fr; }

.blocks { display: grid; gap: 16px; margin: 28px 0; }
.block { padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.block h2, .block h3 { margin: 0 0 .35em; font-size: 1.2rem; }
.block p:last-child, .block ul:last-child, .block ol:last-child { margin-bottom: 0; }
.block__meta { display: inline-flex; gap: 6px; align-items: center; font-size: .86rem; font-weight: 600; color: var(--blue); background: var(--sky); padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.blocks--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--bg); color: var(--ink); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose td ul { margin: 0; padding-left: 1.1em; }

.equipment { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 28px; }
.equipment figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.equipment img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: 20px; }
.equipment figcaption { padding: 14px 18px; border-top: 1px solid var(--line); font-weight: 650; color: var(--ink); }

.clients { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0 !important; }
.clients li { margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-align: center; font-weight: 650; color: var(--navy); font-size: .93rem; }

/* Équipe */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 8px; }
.member { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.member__photo { width: 100%; aspect-ratio: 1; object-fit: cover; }
.member__placeholder { aspect-ratio: 1; display: grid; place-items: center; background: var(--bg); color: #b8c3d1; }
.member__placeholder svg { width: 38%; height: 38%; }
.member__body { padding: 20px 22px 24px; }
.member__name { margin: 0; font-size: 1.15rem; color: var(--ink); font-weight: 750; }
.member__role { margin: 2px 0 14px; color: var(--mint-text); font-weight: 650; font-size: .93rem; }
.member--empty { border-style: dashed; }
.member--empty .member__name { color: var(--muted); }
.member__mail { font-weight: 600; font-size: .93rem; }

/* Formulaire */
.form { display: grid; gap: 20px; margin-top: 8px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form label { display: block; font-weight: 650; color: var(--ink); margin-bottom: 6px; font-size: .95rem; }
.form input, .form textarea, .form select { width: 100%; padding: 12px 14px; font: inherit; color: var(--ink); background: #fff; border: 1px solid #cbd3de; border-radius: var(--radius-sm); }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--blue); outline: 3px solid rgba(27,95,168,.15); }
.form textarea { min-height: 180px; resize: vertical; }
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__legal { font-size: .88rem; color: var(--muted); margin: 0; }
.req { color: #c2410c; }
.alert { padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 24px; font-weight: 600; }
.alert--ok { background: var(--mint-soft); color: #11603d; border: 1px solid #b8e5cf; }
.alert--err { background: #fdecec; color: #8a1c1c; border: 1px solid #f3c2c2; }
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 40px; }
.contact-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-card p { margin: 0; }
.contact-card__label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px !important; }
.contact-card a { font-weight: 650; text-decoration: none; }

/* Pied de page */
.footer { background: var(--navy-deep); color: #a9b9d1; font-size: .95rem; }
.footer a { color: #dfe8f5; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__top { display: grid; grid-template-columns: 1.1fr 2fr 1fr; gap: 48px; padding-top: 72px; padding-bottom: 56px; }
.footer__name { font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: -.02em; margin-bottom: .3em; }
.footer__brand .btn { margin-top: 8px; color: var(--on-mint); }
.footer__brand .btn:hover { text-decoration: none; }
.footer__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__heading { color: #fff; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__contact { font-style: normal; display: grid; gap: 12px; align-content: start; }
.footer__contact > a, .footer__contact > span { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact .ico { color: #7be0b0; margin-top: .3em; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; padding-bottom: 20px; font-size: .86rem; }
.footer__bottom p { margin: 0; }
.footer__bottom ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }

/* Responsive */
@media (max-width: 1100px) {
  .header__inner { justify-content: space-between; }
  .nav-toggle { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; cursor: pointer; }
  .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s, background .2s; }
  .nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bar::before { top: -6px; } .nav-toggle__bar::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - 80px); overflow-y: auto; }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; }
  .nav__link, .nav__parent { width: 100%; justify-content: space-between; padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav__sub { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 8px 12px; min-width: 0; }
  .nav__parent[aria-expanded="true"] + .nav__sub { display: block; }
  .nav__actions { flex-direction: column; align-items: stretch; padding-top: 18px; }
  .nav__phone { justify-content: center; }
  .hero__inner, .split { grid-template-columns: 1fr; gap: 40px; }
  .tiles, .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-body { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .aside__box { position: static; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__nav { grid-column: 1 / -1; order: 3; }
  .cta { flex-direction: column; align-items: flex-start; padding: 40px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { padding-left: 18px; padding-right: 18px; }
  .brand img { width: 140px; }
  .header__inner { min-height: 68px; }
  .hero__inner { padding-top: 64px; padding-bottom: 72px; }
  .section { padding: 64px 0; }
  .tiles, .team, .blocks--2, .equipment, .contact-cards, .form__row, .footer__top, .footer__nav { grid-template-columns: minmax(0, 1fr); }
  .list-check { grid-template-columns: minmax(0, 1fr); }
  .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-head { padding: 44px 0 36px; }
  .cta { padding: 32px 24px; }
  .footer__bottom-inner { flex-direction: column; }
  .footer__bottom ul { flex-wrap: wrap; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .header, .footer, .aside, .nav-toggle { display: none !important; } .page-body { display: block; } }

.eyebrow + h1, .eyebrow + h2 { margin-top: 0; }


/* ===== V2 : ajouts issus de la revue UI/UX ===== */

/* Lisibilité : longueur de ligne et typographie Inter */
body { font-feature-settings: "cv11", "ss01"; }
.prose p, .prose li { max-width: 70ch; }

/* Bouton d'appel visible sur mobile dans l'en-tête */
.header__call { display: none; }

/* Sous-menus : cible de clic confortable */
.nav__sub a { min-height: 44px; display: flex; align-items: center; }

/* Comment ça marche */
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: etape; list-style: none; padding: 0; margin: 0; }
.steps3 li { position: relative; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.steps3 li::before { counter-increment: etape; content: counter(etape); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 16px; }
.steps3 h3 { margin: 0 0 .35em; }
.steps3 p { margin: 0; font-size: .97rem; }

/* Où nous trouver */
.locate { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
.locate__card { padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.locate__card address { font-style: normal; font-size: 1.1rem; color: var(--ink); margin-bottom: 20px; }
.locate__links { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--line { border-color: var(--line); color: var(--navy); background: #fff; }
.btn--line:hover { border-color: var(--blue); color: var(--navy); }
.locate__map { border-radius: var(--radius); background: linear-gradient(135deg, var(--sky), #f2f8f4); border: 1px solid var(--line); display: grid; place-items: center; padding: 32px; text-align: center; color: var(--navy); }
.locate__map svg { width: 56px; height: 56px; color: var(--mint); margin: 0 auto 12px; }
.locate__map p { margin: 0; font-weight: 600; }

/* Équipe : photos d'origine en basse résolution -> affichage en médaillon */
.member { text-align: center; padding-top: 28px; }
.member__photo, .member__placeholder { width: 132px; height: 132px; aspect-ratio: auto; border-radius: 50%; margin: 0 auto; object-fit: cover; }
.member__placeholder { display: grid; place-items: center; }

/* Matériel : images petites -> pas d'agrandissement flou */
.equipment img { max-height: 260px; margin: 0 auto; width: auto; }

/* Formulaires : erreurs par champ + résumé */
.form [aria-invalid="true"] { border-color: #b42318; background: #fffafa; }
.field-error { margin: 6px 0 0; color: #b42318; font-size: .9rem; font-weight: 600; }
.error-summary { padding: 18px 20px; border: 2px solid #b42318; border-radius: var(--radius-sm); background: #fff5f5; margin-bottom: 8px; }
.error-summary:focus { outline: 3px solid #b42318; outline-offset: 2px; }
.error-summary h2 { margin: 0 0 .4em; font-size: 1.1rem; color: #8a1c1c; }
.error-summary ul { margin: 0; padding-left: 1.2em; }
.error-summary a { color: #8a1c1c; font-weight: 600; }
.form__hint { font-size: .88rem; color: var(--muted); margin: 6px 0 0; }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }

@media (max-width: 1100px) {
  :root { --header-h: 80px; }
  .header__call { display: grid; place-items: center; width: 46px; height: 46px; margin-left: auto; border-radius: var(--radius-sm); background: var(--mint); color: var(--on-mint); }
  .header__call .ico { width: 20px; height: 20px; }
  .steps3, .locate { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  :root { --header-h: 68px; }
}

/* V2 : surtitre lisible sur fond sombre */
.hero .eyebrow { color: #7be0b0; }


/* ===== V3 : visuels, parallax et animations ===== */

/* Scènes décoratives (illustrations SVG originales, aria-hidden) */
.hero, .page-head, .feature-band { position: relative; overflow: hidden; isolation: isolate; }
.scene { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.scene__layer { position: absolute; inset: -12% 0; }
.scene__layer--tall { inset: -20% 0; }
.scene__layer--city { inset: auto 0 -6% 0; height: 62%; }
.scene__svg { width: 100%; height: 100%; display: block; }
.sky-b { fill: rgba(255, 255, 255, .055); }
.sky-w { fill: rgba(123, 224, 176, .28); }
.bubbles { fill: rgba(255, 255, 255, .07); stroke: rgba(255, 255, 255, .22); stroke-width: 1.5; }
.bubbles--back { fill: rgba(123, 224, 176, .06); stroke: rgba(123, 224, 176, .18); }
.bubbles .shine { fill: rgba(255, 255, 255, .45); stroke: none; }
.sparkles { fill: rgba(255, 255, 255, .55); }
.hero .hero__card { background: rgba(8, 31, 74, .55); }

/* En-têtes de pages intérieures : bulles discrètes */
.scene--soft .bubbles--soft { fill: rgba(27, 95, 168, .05); stroke: rgba(27, 95, 168, .14); }
.scene--soft .bubbles--soft .shine { fill: rgba(255, 255, 255, .9); }
.scene--soft .sparkles { fill: rgba(34, 160, 107, .35); }

/* Chiffres clés */
.stats-band { background: #fff; border-bottom: 1px solid var(--line); }
.stats-band__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 40px; padding-bottom: 40px; text-align: center; }
.stats-band strong { display: block; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.03em; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.1; }
.stats-band span { color: var(--muted); font-size: .95rem; }
/* Zoom bref sur la valeur finale d'un compteur */
.stats-band strong { transform-origin: center; }
.stats-band strong.is-counted { animation: compteur-zoom .9s cubic-bezier(.34,1.56,.64,1); }
@keyframes compteur-zoom { 0% { transform: scale(1); } 40% { transform: scale(1.4); color: #15803d; } 70% { transform: scale(.96); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .stats-band strong.is-counted { animation: none; } }

/* Page 404 personnalisée */
.oups { padding: 72px 0 96px; background: linear-gradient(180deg, var(--sky), #fff 70%); overflow-x: clip; }
.oups__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; margin-bottom: 64px; }
.oups__svg { width: 100%; max-width: 460px; height: auto; display: block; margin: 0 auto; overflow: visible; }
.oups__chiffre { font: 800 150px/1 var(--font); fill: var(--navy); letter-spacing: -.04em; }
.oups__bulle { transform-origin: 210px 140px; animation: oups-flotte 3.2s ease-in-out infinite; }
.oups__b { fill: #fff; stroke: #1b5fa8; stroke-width: 2.5; opacity: 0; animation: oups-monte 3.6s ease-in infinite; }
.oups__b2 { animation-delay: 1.1s; } .oups__b3 { animation-delay: 2.2s; }
.oups__raclette { animation: oups-raclette 4.5s ease-in-out infinite; }
.oups__etincelle { transform-box: fill-box; transform-origin: center; animation: oups-brille 2.4s ease-in-out infinite; }
.oups__etincelle--2 { animation-delay: 1.2s; }
.oups__texte h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: .5em; }
.oups__lead { font-size: 1.1rem; color: var(--ink); }
.oups__liens { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.oups__liens a { display: inline-block; padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--navy); font-size: .95rem; text-decoration: none; transition: background .2s, border-color .2s; }
.oups__liens a:hover { background: var(--mint-soft); border-color: var(--mint); }
@keyframes oups-flotte { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-10px) scale(1.04); } }
@keyframes oups-monte { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: .9; } 100% { opacity: 0; transform: translateY(-150px); } }
@keyframes oups-raclette { 0% { transform: translateX(20px); } 50% { transform: translateX(400px); } 100% { transform: translateX(20px); } }
@keyframes oups-brille { 0%, 100% { transform: scale(.6); opacity: .4; } 50% { transform: scale(1.15); opacity: 1; } }
@media (max-width: 860px) { .oups__inner { grid-template-columns: 1fr; gap: 24px; } .oups__svg { max-width: 340px; } }
@media (prefers-reduced-motion: reduce) { .oups__bulle, .oups__b, .oups__raclette, .oups__etincelle { animation: none; } .oups__b { opacity: .8; } }

/* Bandeau parallax "vitres" */
.feature-band { background: linear-gradient(180deg, #0b2a63, #081f4a); color: #c9d6ea; min-height: 560px; display: flex; align-items: center; }
.pane { fill: rgba(255, 255, 255, .05); stroke: rgba(255, 255, 255, .10); stroke-width: 1.5; }
.pane--shine { fill: rgba(123, 224, 176, .14); }
.feature-band__inner { position: relative; padding-top: 110px; padding-bottom: 110px; }
.feature-band__text { max-width: 560px; padding: 36px; border-radius: var(--radius); background: rgba(8, 31, 74, .78); border: 1px solid rgba(255, 255, 255, .12); }
.feature-band h2 { color: #fff; margin-top: 0; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.feature-band .eyebrow { color: #7be0b0; }
.gondola { position: absolute; right: 9%; top: -8%; width: clamp(170px, 20vw, 260px); }
.gondola__svg { width: 100%; height: auto; display: block; }
.gondola .cable { stroke: rgba(255, 255, 255, .45); stroke-width: 3; }
.gondola .basket { fill: #22a06b; }
.gondola .rail { fill: #2bb57a; }
.gondola .worker { fill: #e8eef7; }
.gondola .pole { stroke: #e8eef7; stroke-width: 5; stroke-linecap: round; }
.gondola .squeegee { fill: #7be0b0; }

/* Apparition au défilement (si JavaScript actif et animations autorisées) */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--reveal-delay, 0ms); }
.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }

/* Survol des cartes */
.tile__icon { transition: background .2s, color .2s, transform .2s; }
.tile:hover .tile__icon { background: var(--mint); color: var(--on-mint); transform: scale(1.06); }

@media (max-width: 1100px) {
  .gondola { right: 4%; opacity: .55; }
  .feature-band { min-height: 0; }
}
@media (max-width: 680px) {
  .stats-band__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gondola { display: none; }
  .feature-band__inner { padding-top: 64px; padding-bottom: 64px; }
  .feature-band__text { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* V3 : voile derrière le texte du hero pour que l'illustration ne gêne jamais la lecture */
.hero .scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,31,74,.92) 0%, rgba(8,31,74,.78) 38%, rgba(8,31,74,.15) 62%, rgba(8,31,74,0) 75%); }
@media (max-width: 1100px) { .hero .scene::after { background: rgba(8,31,74,.72); } }


/* ===== V3.1 : scènes par rubrique, accueil enrichi, villes variées ===== */

/* En-têtes de pages : une ambiance par rubrique, des pictogrammes par page */
.page-head { background: none; border-bottom: 0; }
.theme--services { background: linear-gradient(120deg, #e3eefb 0%, #f4f8fd 55%, #e8f1fb 100%); }
.theme--qualite  { background: linear-gradient(120deg, #e2f4e9 0%, #f3faf6 55%, #e6f5ed 100%); }
.theme--societe  { background: linear-gradient(120deg, #e8eaf8 0%, #f5f6fc 55%, #eceefa 100%); }
.theme--contact  { background: linear-gradient(120deg, #def3f3 0%, #f2fafa 55%, #e3f5f4 100%); }
.theme--neutre   { background: linear-gradient(120deg, #eef1f5 0%, #f7f9fb 100%); }
.theme--services svg { fill: #1b5fa8; }
.theme--qualite  svg { fill: #188556; }
.theme--societe  svg { fill: #3b4aa8; }
.theme--contact  svg { fill: #0f7c80; }
.theme--neutre   svg { fill: #5b6675; }
.gl-far  { opacity: .07; }
.gl-mid  { opacity: .12; }
.gl-near { opacity: .20; }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }

/* Sections de l'accueil avec décor */
.has-scene { position: relative; overflow: hidden; isolation: isolate; }
.scene--home.theme--services, .scene--home.theme--qualite { background: none; }
.scene--home .gl-far { opacity: .05; } .scene--home .gl-mid { opacity: .08; } .scene--home .gl-near { opacity: .14; }
.section--mint { background: linear-gradient(180deg, #e9f7ef, #f3fbf6); }
.section--sky { background: linear-gradient(180deg, #e8f1fb, #f5f9fd); }
.section--mint, .section--sky { padding-top: 130px; padding-bottom: 130px; }
.wave { position: absolute; left: 0; width: 100%; height: 70px; z-index: 0; display: block; }
.wave--top { top: -1px; }
.wave--bottom { bottom: -1px; }
.section--mint .wave--top { fill: #fff; }
.section--mint .wave--bottom { fill: #0b2a63; }
.section--sky .wave--top { fill: #081f4a; }

/* Références sur fond de nuit */
.section--night { background: linear-gradient(160deg, #0d306f, #081f4a); }
.section--night h2 { color: #fff; }
.section--night .section__head p { color: #c9d6ea; }
.section--night .eyebrow { color: #7be0b0; }
.section--night .chips li { background: rgba(255, 255, 255, .95); border-color: transparent; }
.section--night a { color: #7be0b0; }
.section--night a:hover { color: #fff; }

/* Ville la nuit en bas de page, enchaînée avec le pied de page */
.section--city { background: linear-gradient(180deg, #0d306f 0%, #0a2558 60%, #081f4a 100%); padding-top: 120px; padding-bottom: 240px; }
.section--city .cta { background: rgba(8, 31, 74, .80); border: 1px solid rgba(255, 255, 255, .14); }
.section--city .scene__layer--city { inset: auto 0 -2% 0; height: 70%; }
.section--city .scene__layer--near { height: 55%; }

/* Villes : deux plans d'immeubles de formes et tailles variées */
.scene__layer--city { inset: auto 0 -6% 0; height: 66%; }
.scene__layer--near { height: 52%; }
.sky--far .sky__b { fill: rgba(255, 255, 255, .05); stroke: rgba(255, 255, 255, .05); }
.sky--far .sky__w { fill: rgba(123, 224, 176, .16); }
.sky--near .sky__b { fill: #0f2f6b; stroke: #0f2f6b; }
.sky--near .sky__w { fill: rgba(255, 214, 120, .55); }

/* Plan de quartier */
.locate__map { padding: 0; overflow: hidden; position: relative; min-height: 280px; display: block; }
.map, .map__layer { position: absolute; inset: 0; }
.map__layer { inset: -8% 0; }
.map__svg { width: 100%; height: 100%; display: block; }
.map__pin { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; animation: pin 2.4s ease-in-out infinite; }
.map__pin svg { width: 56px; height: 56px; filter: drop-shadow(0 6px 8px rgba(13, 48, 111, .3)); }
.map__pin span { margin-top: 2px; background: var(--navy); color: #fff; font-weight: 700; font-size: .85rem; padding: 3px 10px; border-radius: 999px; }
@keyframes pin { 0%, 100% { transform: translate(-50%, -100%); } 50% { transform: translate(-50%, -112%); } }

@media (max-width: 680px) {
  .section--mint, .section--sky { padding-top: 96px; padding-bottom: 96px; }
  .section--city { padding-bottom: 170px; }
  .wave { height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .map__pin { animation: none; } }

/* Plan : annule la taille d'icône héritée de la V2 et renforce les couleurs */
.locate__map .map__svg { width: 100%; height: 100%; margin: 0; color: inherit; }
.locate__map .map__pin svg { width: 56px; height: 56px; margin: 0; }
.locate__map { background: #eef4fb; }


/* ===== V3.2 : photos provisoires (CC0) ===== */
.tile { padding: 0; overflow: hidden; }
.tile__photo { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--sky); }
.tile__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover .tile__photo img { transform: scale(1.05); }
.tile .tile__icon { margin: -24px 0 0 28px; position: relative; box-shadow: 0 4px 12px rgba(13,48,111,.15); background: #fff; }
.tile h3, .tile p, .tile .tile__more { margin-left: 28px; margin-right: 28px; }
.tile .tile__more { margin-bottom: 26px; }

.photo-stack { position: relative; }
.photo-stack__frame { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.photo-stack__img { height: 118%; margin-top: -9%; }
.photo-stack__img img { width: 100%; height: 100%; object-fit: cover; }
.quote--over { position: relative; margin: -90px 24px 0 -24px; }

.section--night .bg-photo { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.bg-photo__img { position: absolute; inset: -15% 0; }
.bg-photo__img img { width: 100%; height: 100%; object-fit: cover; opacity: .22; filter: grayscale(.3); }

.banner { margin: 0 0 40px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 9; box-shadow: var(--shadow); }
.banner__img { height: 124%; margin-top: -12%; }
.banner__img img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 680px) {
  .quote--over { margin: -60px 12px 0; }
  .banner { aspect-ratio: 16 / 9; margin-bottom: 28px; }
}


/* ===== V3.3 : ville la nuit dans le pied de page (toutes les pages) ===== */
.section--city { padding-bottom: 120px; }
.footer { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, #081f4a 0%, #0b2a63 100%); }
.footer .scene__layer--city { inset: auto 0 0 0; height: 260px; }
.footer .scene__layer--near { height: 190px; }
.footer__top { padding-bottom: 230px; }
.footer__bottom { position: relative; background: rgba(6, 22, 54, .92); border-top: 1px solid rgba(255, 255, 255, .08); }
@media (max-width: 680px) {
  .footer .scene__layer--city { height: 180px; }
  .footer .scene__layer--near { height: 130px; }
  .footer__top { padding-bottom: 160px; }
}

/* V3.3 : pied de page plus lisible - pas de grosses bulles derrière les liens, tours entières */
.footer .bubbles--back { display: none; }
.footer .bubbles { opacity: .5; }
.footer .scene__layer--city { height: 380px; }
.footer .scene__layer--near { height: 210px; }
.footer__top { padding-bottom: 260px; }
@media (max-width: 680px) {
  .footer .scene__layer--city { height: 240px; }
  .footer .scene__layer--near { height: 140px; }
  .footer__top { padding-bottom: 170px; }
}
