/* ENTREO — styles communs des pages intérieures (services, zones, conseils…) */
:root {
  --blue: #14509b;
  --blue-700: #0f3f7c;
  --blue-50: #eaf1fa;
  --yellow: #fbe93e;
  --yellow-600: #e8d41f;
  --ink: #201e1d;
  --ink-soft: #46403e;
  --muted: #6b6664;
  --bg: #f3f2f2;
  --surface: #ffffff;
  --rule: #201e1d;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gut: 24px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
h1, h2, h3 { font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
p { margin: 0 0 14px; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
::selection { background: var(--yellow); color: var(--blue); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.kicker { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.kicker-yellow { background: var(--yellow); color: var(--blue); padding: 7px 12px; }
.kicker-blue { color: var(--blue); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 52px; padding: 14px 20px; font: 800 15px/1.2 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-yellow { background: var(--yellow); color: var(--blue); }
.btn-yellow:hover { background: var(--yellow-600); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-700); }
.btn-line-light { border-color: #fff; color: #fff; }
.btn-line-light:hover { background: rgba(255,255,255,.12); }
.btn-line { border-color: var(--blue); color: var(--blue); }
.btn-line:hover { background: rgba(20,80,155,.08); }

/* En-tête + menu mobile */
header.top { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 2px solid var(--blue); }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.top .brand img { height: 60px; width: auto; }
.top nav { display: flex; gap: 24px; margin-left: auto; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.top nav a:hover, .top nav a[aria-current] { color: var(--blue); }
.top nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--yellow); }
.top .btn { min-height: 44px; padding: 10px 16px; }
.menu-toggle { display: none; }
@media (max-width: 900px) {
  .top .wrap { gap: 12px; }
  .top .btn { margin-left: auto; }
  .menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: none; border: 2px solid var(--blue); color: var(--blue); cursor: pointer; }
  .menu-toggle svg { width: 22px; height: 22px; }
  .menu-toggle .i-close, .top.open .menu-toggle .i-open { display: none; }
  .top.open .menu-toggle .i-close { display: block; }
  .top nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 4px var(--gut) 12px; background: var(--surface); border-bottom: 2px solid var(--blue); box-shadow: 0 12px 24px rgba(0,0,0,.08); }
  .top.open nav { display: flex; }
  .top nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid #e3e1e1; }
  .top nav a:last-child { border-bottom: 0; }
}
@media (max-width: 520px) { .top .btn { width: 44px; padding: 0; justify-content: center; } .top .btn > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }

/* Hero de page intérieure */
.page-hero { position: relative; background: var(--blue); color: #fff; overflow: hidden; }
.page-hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; padding-top: 40px; padding-bottom: 80px; }
.page-hero::after { content: ""; position: absolute; top: 0; right: 0; width: 24px; height: 40%; background: var(--yellow); }
.crumbs { grid-column: 1 / -1; font-size: 14px; color: #dbe5f3; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "\203A"; margin-right: 6px; color: var(--yellow); }
.crumbs a { color: #fff; }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 56px); margin: 22px 0 20px; }
.page-hero h1 em { font-style: normal; color: var(--yellow); display: block; }
.page-hero .lead { font-size: 19px; line-height: 1.55; color: #dbe5f3; max-width: 580px; margin-bottom: 30px; }
.page-hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.page-hero .photo { border: 6px solid #fff; border-top-right-radius: 96px; aspect-ratio: 4 / 3; }
@media (max-width: 860px) { .page-hero .wrap { grid-template-columns: 1fr; gap: 36px; padding-bottom: 60px; } .page-hero::after { width: 14px; } .page-hero .photo { border-top-right-radius: 64px; } }

/* Emplacements photo : même taille avec le repère hachuré ou la vraie photo */
.photo { position: relative; margin: 0; overflow: hidden; background: #e6e4e4; }
.photo > img, .photo > .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo .ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; text-align: center; background: repeating-linear-gradient(135deg, #dcdada 0 12px, #e6e4e4 12px 24px); color: var(--muted); font-size: 14px; line-height: 1.4; }
.photo .ph svg { width: 34px; height: 34px; }
.photo .ph b { color: var(--ink-soft); }
.photo figcaption { position: absolute; left: 0; bottom: 0; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; padding: 8px 14px; }
.photo figcaption b { color: var(--yellow); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-right: 8px; }

/* Galerie de réalisations */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gallery .photo { aspect-ratio: 3 / 4; border: 2px solid var(--rule); }
@media (max-width: 1000px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } .gallery .photo { aspect-ratio: 4 / 3; } }
.gallery.duo { grid-template-columns: repeat(2, 1fr); }
.gallery.duo .photo { aspect-ratio: 3 / 2; }
@media (max-width: 640px) { .gallery.duo { grid-template-columns: 1fr; } }

/* Pages zones */
.zone-grid { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 48px; align-items: start; }
.zone-text p { color: var(--ink-soft); font-size: 17px; }
.zone-text h3, .zone-towns h3 { font-size: 18px; margin: 28px 0 14px; }
.facts { list-style: none; margin: 0; padding: 0; background: var(--blue); color: #fff; }
.facts li { display: flex; gap: 14px; padding: 20px 22px; }
.facts li + li { border-top: 2px solid rgba(255,255,255,.3); }
.facts svg { width: 24px; height: 24px; flex: none; color: var(--yellow); margin-top: 2px; }
.facts b { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); margin-bottom: 4px; }
.facts span { font-weight: 600; line-height: 1.4; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.chips li { background: var(--surface); border: 2px solid #d8d5d4; padding: 6px 12px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
section.alt .chips li { background: var(--bg); }
.chips-links li { padding: 0; border-color: var(--blue); }
.chips-links a { display: block; padding: 8px 14px; color: var(--blue); font-weight: 800; text-decoration: none; }
.chips-links a:hover { background: var(--yellow); }
.zone-towns { margin-top: 12px; padding-top: 8px; border-top: 2px solid var(--rule); }
.svc-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.svc-links a { display: flex; flex-direction: column; background: var(--surface); border: 2px solid var(--rule); padding: 20px; color: var(--ink); text-decoration: none; transition: background .15s; }
section.alt .svc-links a { background: var(--bg); }
.svc-links a:hover { background: var(--yellow) !important; }
.svc-links svg { width: 26px; height: 26px; color: var(--blue); margin-bottom: 12px; }
.svc-links h3 { font-size: 17px; margin-bottom: 12px; flex: 1; }
.svc-links .more { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; color: var(--blue); }
.svc-links .more svg { width: 16px; height: 16px; margin: 0; }
.depts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dept { background: var(--surface); border: 2px solid var(--rule); padding: 24px; }
.dept-num { display: inline-block; background: var(--blue); color: var(--yellow); font-weight: 800; font-size: 22px; padding: 4px 12px; margin-bottom: 14px; }
.dept h3 { font-size: 22px; margin-bottom: 8px; }
.dept h3 a { color: var(--ink); text-decoration: none; }
.dept h3 a:hover { color: var(--blue); text-decoration: underline; }
.dept p { color: var(--ink-soft); font-size: 15px; }
.times { width: 100%; max-width: 640px; border-collapse: collapse; border: 2px solid var(--rule); background: var(--bg); }
.times th, .times td { text-align: left; padding: 14px 18px; border-bottom: 1px solid #d8d5d4; }
.times thead th { background: var(--blue); color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.times td { font-weight: 800; color: var(--blue); white-space: nowrap; }
.times tbody th a { font-weight: 600; }
@media (max-width: 1000px) { .svc-links { grid-template-columns: repeat(2, 1fr); } .depts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .zone-grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 560px) { .svc-links, .depts { grid-template-columns: 1fr; } }

/* Sections */
section.block { padding: 88px 0; }
section.alt { background: var(--surface); }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(30px, 3.8vw, 44px); margin-top: 12px; }
.sec-head p { color: var(--ink-soft); font-size: 17px; margin: 0; }
@media (max-width: 760px) { section.block { padding: 64px 0; } .sec-head { grid-template-columns: 1fr; gap: 16px; } }

/* Grille de prestations */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--rule); border-left: 2px solid var(--rule); background: var(--surface); }
.cards > * { border-right: 2px solid var(--rule); border-bottom: 2px solid var(--rule); padding: 28px 26px 30px; }
.cards svg { width: 32px; height: 32px; color: var(--blue); margin-bottom: 18px; }
.cards h3 { font-size: 20px; margin-bottom: 8px; }
.cards p { color: var(--ink-soft); font-size: 15px; margin: 0; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* Encadré réglementaire / info */
.note { display: grid; grid-template-columns: auto 1fr; gap: 20px; background: var(--blue-50); border-left: 8px solid var(--blue); padding: 26px 28px; margin-top: 40px; }
.note > svg { width: 30px; height: 30px; color: var(--blue); }
.note h3 { font-size: 20px; margin-bottom: 8px; }
.note p { color: var(--ink-soft); margin: 0 0 10px; }
.note p:last-child { margin: 0; }
@media (max-width: 560px) { .note { grid-template-columns: 1fr; gap: 10px; } }

/* Étapes */
.how { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--blue); color: #fff; }
.how > div { padding: 30px 26px 32px; }
.how > div + div { border-left: 2px solid rgba(255,255,255,.35); }
.how .n { font-size: 52px; font-weight: 800; line-height: 1; color: var(--yellow); letter-spacing: -0.03em; }
.how h3 { font-size: 20px; margin: 14px 0 6px; }
.how p { color: #dbe5f3; font-size: 15px; margin: 0; }
@media (max-width: 900px) { .how { grid-template-columns: 1fr 1fr; } .how > div:nth-child(3) { border-left: 0; } .how > div:nth-child(n+3) { border-top: 2px solid rgba(255,255,255,.35); } }
@media (max-width: 560px) { .how { grid-template-columns: 1fr; } .how > div + div { border-left: 0; border-top: 2px solid rgba(255,255,255,.35); } }

/* Pourquoi ENTREO */
.why { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--blue); border-bottom: 2px solid var(--blue); }
.why > div { padding: 28px 28px 30px 0; }
.why > div + div { border-left: 2px solid var(--blue); padding-left: 28px; }
.why .big { font-size: clamp(40px, 4.6vw, 58px); font-weight: 800; color: var(--blue); line-height: 1; letter-spacing: -0.03em; }
.why .big small { font-size: .45em; letter-spacing: 0; }
.why h3 { font-size: 18px; margin: 14px 0 6px; }
.why p { color: var(--ink-soft); font-size: 15px; margin: 0; }
@media (max-width: 760px) { .why { grid-template-columns: 1fr; } .why > div + div { border-left: 0; padding-left: 0; border-top: 2px solid var(--blue); } }

/* FAQ */
.faq { max-width: 880px; border-top: 2px solid var(--rule); }
.faq details { border-bottom: 2px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px 0; font-size: 18px; font-weight: 800; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; background: var(--yellow); color: var(--blue); font-size: 22px; font-weight: 800; }
.faq details[open] summary::after { content: "\2013"; }
.faq .a { padding: 0 0 22px; color: var(--ink-soft); max-width: 760px; }
.faq .a p:last-child { margin: 0; }

/* Autres services */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related a { display: block; background: var(--surface); border: 2px solid var(--rule); padding: 24px 24px 22px; color: var(--ink); text-decoration: none; transition: background .15s; }
.related a:hover { background: var(--yellow); }
.related svg { width: 28px; height: 28px; color: var(--blue); margin-bottom: 14px; }
.related h3 { font-size: 19px; margin-bottom: 6px; }
.related p { color: var(--ink-soft); font-size: 14px; margin: 0 0 14px; }
.related .more { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; color: var(--blue); }
.related .more svg { width: 16px; height: 16px; margin: 0; }
@media (max-width: 860px) { .related { grid-template-columns: 1fr; } }

/* Bandeau d'appel à l'action */
.cta { background: var(--yellow); color: var(--blue); }
.cta .wrap { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.cta h2 { font-size: clamp(28px, 3.4vw, 40px); }
.cta p { margin: 10px 0 0; font-size: 17px; color: var(--blue-700); }
.cta .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .cta .wrap { grid-template-columns: 1fr; } }

/* Pied de page */
.motto { background: var(--blue); color: #fff; font-weight: 800; font-size: clamp(18px, 2.4vw, 26px); }
.motto .wrap { padding-top: 22px; padding-bottom: 22px; text-align: center; }
footer { background: var(--surface); border-top: 2px solid var(--blue); font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; padding-top: 28px; padding-bottom: 28px; }
footer img { height: 44px; width: auto; }
footer a { color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin: 4px 0 6px; }
.foot-links a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.foot-links a:hover { color: var(--blue); text-decoration: underline; }

/* Appel mobile */
.callbar { display: none; }
@media (max-width: 640px) {
  .callbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; }
  .callbar a { flex: 1; justify-content: flex-start; min-height: 56px; }
  body { padding-bottom: 56px; }
}
