/* Beky Confort — feuille de style du site public.
   Couleurs pilotées depuis Administration › Paramètres du site (variables injectées dans <head>). */
:root {
    --blue: #0b2f57;
    --navy: #07223f;
    --orange: #f26a10;
    --orange-soft: #fff1e7;
    --ink: #0b2f57;
    --text: #4c5f74;
    --muted: #7b8a9c;
    --line: #e4eaf1;
    --surface: #f4f7fb;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(8, 40, 75, .08);
    --shadow-lg: 0 18px 45px rgba(8, 40, 75, .16);
    --font-head: "Poppins", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1em; }
.accent { color: var(--orange); }
.muted { color: var(--muted); font-size: .9em; }
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.container { width: min(1240px, 100% - 32px); margin-inline: auto; }
.container-wide { width: min(1520px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(860px, 100% - 32px); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--orange); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.bar { display: block; width: 46px; height: 4px; border-radius: 4px; background: var(--orange); margin: 14px 0 18px; }
.center { text-align: center; }
.center .bar { margin-inline: auto; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .18em; color: var(--orange); font-size: .8rem; font-weight: 700; font-family: var(--font-head); margin-bottom: 8px; }
.lead { font-size: 1.05rem; max-width: 720px; }
.empty { padding: 40px; text-align: center; background: var(--surface); border-radius: var(--radius); }

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 8px; border: 1.5px solid var(--orange); background: var(--orange); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .92rem; transition: .2s; }
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(242, 106, 16, .3); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--orange); }
.btn-outline:hover { background: var(--orange); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: #fff; box-shadow: none; }
.btn-sm { padding: 8px 16px; font-size: .82rem; }
.btn-lg { padding: 17px 30px; border-radius: 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0; }
.link-more { display: inline-flex; align-items: center; gap: 6px; color: var(--orange); font-weight: 600; font-size: .88rem; }
.round-btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow); color: var(--ink); transition: .2s; }
.round-btn:hover { background: var(--orange); color: #fff; }
.round-btn.disabled { opacity: .4; pointer-events: none; }

/* Topbar */
.topbar { background: var(--navy); color: #d7e3f0; font-size: .8rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar-info { display: flex; flex-wrap: wrap; gap: 6px 26px; list-style: none; margin: 0; padding: 6px 0; }
.topbar-info li, .topbar-info a { display: inline-flex; align-items: center; gap: 8px; }
.topbar-info .icon { color: var(--orange); }
.topbar-info a:hover { color: #fff; }
.topbar-right { display: flex; align-items: center; gap: 18px; align-self: stretch; }
.socials { display: flex; gap: 8px; }
.socials a { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); transition: .2s; }
.socials a:hover { background: var(--orange); }
.socials .icon { width: 13px; height: 13px; }
.topbar-cta { display: flex; align-items: center; background: var(--orange); color: #fff; font-weight: 600; padding: 0 26px; border-radius: 0 0 0 22px; font-family: var(--font-head); }
.topbar-cta:hover { filter: brightness(1.08); }

/* Header */
.site-header { background: #fff; position: sticky; top: 0; z-index: 40; transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(8, 40, 75, .1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand img { height: 52px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.main-nav a { position: relative; font-family: var(--font-head); font-weight: 500; font-size: .9rem; color: var(--ink); padding: 8px 0; display: block; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--orange); transform: scaleX(0); transition: transform .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--orange); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.search { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 4px 4px 16px; }
.search input { border: 0; background: transparent; outline: 0; width: 150px; font-size: .88rem; }
.search button { border: 0; background: transparent; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); }
.search button:hover { background: var(--orange); color: #fff; }
.search-lg { padding: 8px 8px 8px 22px; margin-bottom: 26px; }
.search-lg input { width: 100%; font-size: 1rem; }
.burger { display: none; border: 0; background: var(--surface); width: 44px; height: 44px; border-radius: 10px; place-items: center; color: var(--ink); }
.burger .icon { width: 24px; height: 24px; }

/* Hero */
.hero { position: relative; background: linear-gradient(100deg, #eef5fc 0%, #f7fbff 55%, #e7f0f9 100%); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 8% 90%, rgba(11, 47, 87, .06), transparent 40%); pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: 1fr 1.08fr; gap: 40px; align-items: center; min-height: 560px; padding: 50px 0; position: relative; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); line-height: 1.08; }
.hero h1 .accent { display: block; }
.hero-text p { font-size: 1.02rem; max-width: 470px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 26px; list-style: none; padding: 0; margin: 34px 0 0; }
.hero-badges li { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: .82rem; color: var(--ink); max-width: 150px; line-height: 1.3; }
.hero-badges .icon { width: 34px; height: 34px; color: var(--ink); }
.hero-visual { position: relative; height: 480px; }
.hero-main-img { position: absolute; inset: 0 22% 0 0; border-radius: 0 0 0 120px; overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-main-img::after { content: ""; position: absolute; top: -40px; right: -60px; width: 240px; height: 140%; border-left: 26px solid var(--orange); border-radius: 50%; opacity: .9; }
.hero-main-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-hexes { position: absolute; right: 0; top: -14px; bottom: -14px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.hex { height: 32.5%; aspect-ratio: 1.12; clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); background: #fff; padding: 5px; filter: drop-shadow(0 8px 16px rgba(8, 40, 75, .2)); }
.hex img { width: 100%; height: 100%; object-fit: cover; clip-path: inherit; }
.hero-box { position: absolute; left: 0; bottom: -10px; display: flex; align-items: center; gap: 16px; background: var(--blue); color: #fff; padding: 20px 30px; border-radius: 30px 30px 0 30px; box-shadow: var(--shadow-lg); }
.hero-box-icon { width: 46px; height: 46px; }
.hero-box ul { list-style: none; margin: 0; padding: 0; font-family: var(--font-head); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; line-height: 1.5; }

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: var(--surface); }
.section-title p { max-width: 640px; }
.section-title.center p { margin-inline: auto; }
.section-title h2 { margin-bottom: 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 26px; }
.section-head .bar { margin-bottom: 0; }

/* Prestations */
.service-cards { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); text-align: center; display: flex; flex-direction: column; align-items: center; padding-bottom: 18px; transition: .25s; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card-img { width: 100%; aspect-ratio: 1.25; overflow: hidden; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service-card:hover .service-card-img img { transform: scale(1.07); }
.service-card-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; border: 4px solid #fff; box-shadow: 0 6px 14px rgba(242, 106, 16, .35); }
.service-card .service-card-icon { margin-top: -24px; position: relative; }
.service-card-icon .icon { width: 20px; height: 20px; }
.service-card h3 { font-size: .86rem; margin: 12px 10px 14px; flex: 1; display: flex; align-items: center; }
.circle-arrow { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; color: var(--ink); transition: .2s; }
.circle-arrow .icon { width: 14px; height: 14px; }
.service-card:hover .circle-arrow { background: var(--orange); border-color: var(--orange); color: #fff; }

/* Pourquoi nous choisir */
.why-section { background: linear-gradient(180deg, #fff, var(--surface)); }
.why-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.why-media { position: relative; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 1.7; }
.why-media img { width: 100%; height: 100%; object-fit: cover; }
.play-btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .75); color: var(--ink); backdrop-filter: blur(4px); transition: .2s; }
.play-btn:hover { background: var(--orange); color: #fff; }
.play-btn .icon { width: 30px; height: 30px; margin-left: 4px; }
.why-features { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px; }
.why-features li { display: flex; gap: 16px; align-items: center; font-family: var(--font-head); font-weight: 600; font-size: .86rem; color: var(--ink); line-height: 1.4; }
.why-features .icon { width: 36px; height: 36px; color: var(--orange); }

/* Chiffres */
.stats-band { position: relative; background: linear-gradient(rgba(7, 34, 63, .92), rgba(11, 47, 87, .94)), var(--stats-bg, none) center / cover; color: #fff; padding: 46px 0 52px; text-align: center; }
.stats-band h2 { color: #fff; font-size: clamp(1.3rem, 2.2vw, 1.75rem); margin: 0; }
.stats-band .bar { margin-inline: auto; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 18px; text-align: left; }
.stat { display: flex; align-items: center; gap: 18px; justify-content: center; }
.stat-icon { width: 50px; height: 50px; color: var(--orange); }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 600; line-height: 1.1; }
.stat span { color: #d3e0ee; }

/* Carrousels */
.carousel { position: relative; }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 6px 2px 20px; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; }
.carousel-btn { position: absolute; top: calc(50% - 30px); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; color: var(--ink); transition: .2s; }
.carousel-btn:hover { background: var(--orange); color: #fff; }
.carousel-btn.prev { left: -62px; }
.carousel-btn.next { right: -62px; }
.dots { display: flex; justify-content: center; gap: 8px; }
.dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: #cfd8e3; transition: .2s; }
.dots button.active { background: var(--orange); width: 9px; }
.project-card { background: #fff; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); display: block; transition: .25s; }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.project-card-img { aspect-ratio: 1.6; overflow: hidden; }
.project-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project-card:hover img { transform: scale(1.06); }
.project-card-body { padding: 14px 16px 18px; }
.project-card-body h3 { font-size: .86rem; margin-bottom: 6px; }
.project-card-body .muted { font-size: .78rem; }
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Engagement */
.engagement { background: linear-gradient(100deg, #f8fbf6 0%, #eef6ea 60%, #e3f0dc 100%); overflow: hidden; }
.engagement-inner { display: grid; grid-template-columns: 1fr 1fr .62fr; gap: 30px; align-items: center; min-height: 340px; padding: 40px 0; }
.engagement-img img { width: 100%; max-height: 300px; object-fit: cover; border-radius: 50% 50% 18px 18px / 40% 40% 18px 18px; }
.engagement-features { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.engagement-features li { background: #fff; border-radius: 6px; box-shadow: var(--shadow); padding: 14px 18px; display: flex; align-items: center; gap: 16px; font-family: var(--font-head); font-weight: 500; font-size: .82rem; color: var(--ink); line-height: 1.35; }
.engagement-features .icon { width: 32px; height: 32px; color: #2f9a3a; }

/* Partenaires */
.partners-section { padding-top: 40px; }
.partners-track { grid-auto-columns: calc((100% - 6 * 24px) / 7); gap: 24px; align-items: center; margin-top: 18px; }
.partner { height: 96px; display: grid; place-items: center; padding: 8px; filter: grayscale(.15); transition: .2s; }
.partner:hover { filter: none; transform: scale(1.05); }
.partner img { max-height: 84px; width: auto; max-width: 100%; object-fit: contain; }
.partner span { font-family: var(--font-head); font-weight: 700; color: var(--ink); text-align: center; }

/* Actualités */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { background: #fff; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.post-card-img { position: relative; aspect-ratio: 1.9; overflow: hidden; display: block; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-card-img img { transform: scale(1.06); }
.date-badge { position: absolute; left: 14px; top: 14px; background: #fff; border-radius: 6px; padding: 6px 12px; text-align: center; font-size: .72rem; font-weight: 600; color: var(--ink); box-shadow: var(--shadow); line-height: 1.1; }
.date-badge strong { display: block; color: var(--orange); font-family: var(--font-head); font-size: 1.5rem; }
.post-card-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.post-card-body h3 { font-size: .95rem; }
.post-card-body h3 a:hover { color: var(--orange); }
.post-card-body p { font-size: .86rem; flex: 1; }

/* Footer */
.site-footer { background: var(--navy); color: #c4d3e3; font-size: .86rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .8fr 1fr 1.2fr; gap: 40px; padding: 54px 0 40px; }
.footer-logo { height: 52px; width: auto; margin-bottom: 16px; background: #fff; border-radius: 8px; padding: 6px 10px; }
.site-footer h3 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a:hover { color: var(--orange); }
.footer-contact p { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .icon { color: #fff; margin-top: 3px; }
.socials-lg { margin-top: 14px; }
.socials-lg a { width: 36px; height: 36px; background: #fff; color: var(--navy); }
.socials-lg a.s-facebook { background: #1877f2; color: #fff; }
.socials-lg a.s-linkedin { background: #0a66c2; color: #fff; }
.socials-lg a.s-youtube { background: #ff0000; color: #fff; }
.socials-lg .icon { width: 17px; height: 17px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); background: rgba(0, 0, 0, .12); }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 0; }
.footer-bottom ul { display: flex; gap: 0; }
.footer-bottom li + li::before { content: "|"; margin: 0 12px; opacity: .5; }
.whatsapp { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(37, 211, 102, .45); transition: .2s; }
.whatsapp:hover { transform: scale(1.08); }
.whatsapp .icon { width: 30px; height: 30px; }

/* Pages intérieures */
.page-hero { background: linear-gradient(100deg, #eef5fc, #f8fbff); padding: 56px 0 40px; }
.page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); max-width: 900px; }
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 44px; align-items: start; }
.detail-cover { width: 100%; border-radius: var(--radius); margin-bottom: 28px; aspect-ratio: 1.8; object-fit: cover; }
.detail-aside { position: sticky; top: 110px; background: var(--surface); border-radius: var(--radius); padding: 26px; display: grid; gap: 14px; }
.detail-aside dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; }
.detail-aside dt { font-weight: 600; color: var(--ink); }
.detail-aside dd { margin: 0; }
.detail-aside .btn { justify-content: center; }
.aside-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.aside-links a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--ink); font-weight: 500; }
.aside-links a:hover { background: #fff; color: var(--orange); }
.aside-links .icon { color: var(--orange); }
.detail-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 28px; }
.detail-img { border: 0; padding: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 1.4; background: var(--surface); }
.detail-img.first { grid-column: 1 / -1; aspect-ratio: 1.9; }
.detail-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.detail-img:hover img { transform: scale(1.05); }
.prose { color: var(--text); font-size: 1rem; }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--orange); text-decoration: underline; }
.prose blockquote { margin: 1.5em 0; padding: 18px 24px; border-left: 4px solid var(--orange); background: var(--orange-soft); border-radius: 0 10px 10px 0; font-style: italic; }
.prose img { border-radius: 10px; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: start; }
.split-img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.service-list { display: grid; gap: 26px; }
.service-row { display: grid; grid-template-columns: 340px 1fr; gap: 30px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .25s; }
.service-row:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.service-row img { width: 100%; height: 100%; min-height: 210px; object-fit: cover; }
.service-row > div { padding: 24px 30px 24px 0; }
.service-row h2 { font-size: 1.35rem; margin: 14px 0 8px; }
.search-group { font-size: 1.2rem; margin-top: 30px; }
.search-results { list-style: none; padding: 0; display: grid; gap: 10px; }
.search-results li { display: grid; gap: 2px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px; }
.search-results a { font-weight: 600; color: var(--ink); }
.search-results a:hover { color: var(--orange); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 40px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.info-card { display: flex; gap: 16px; padding: 20px; background: var(--surface); border-radius: var(--radius); }
.info-card > .icon { width: 42px; height: 42px; padding: 10px; border-radius: 50%; background: var(--orange); color: #fff; }
.info-card h3 { margin-bottom: 4px; }
.info-card p { margin: 0; }
.map { width: 100%; height: 280px; border: 0; border-radius: var(--radius); }
.panel { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-lg); }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .86rem; color: var(--ink); }
.form input, .form select, .form textarea { width: 100%; padding: 13px 14px; border: 1px solid #d5dee8; border-radius: 9px; background: #fff; font-weight: 400; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242, 106, 16, .15); }
.form textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .checkbox { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--orange); }
.form .btn { justify-self: start; }
.error { color: #c62828; font-weight: 500; }
.hp { position: absolute; left: -9999px; }
.alert-success, .alert-error { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; }
.alert-success { background: #e8f6ec; color: #1f7a3a; }
.alert-error { background: #fdecec; color: #b42318; }

/* Galerie de réalisations */
.gallery-page { padding: 30px 0 60px; background: linear-gradient(180deg, #f5f8fc 0, #fff 340px); }
.gallery-head { display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; margin-bottom: 14px; }
.gallery-head > div:first-child { flex: 1; min-width: 0; }
.gallery-head h1 { font-size: clamp(2rem, 3vw, 2.7rem); }
.gallery-head .lead { margin-bottom: 0; }
.stat-cards { display: grid; grid-template-columns: repeat(4, minmax(140px, 170px)); gap: 10px; margin-top: 30px; }
.stat-card { display: flex; gap: 12px; align-items: center; background: rgba(255, 255, 255, .92); border-radius: 6px; box-shadow: var(--shadow); padding: 22px 18px; }
.stat-card-icon { width: 42px; height: 42px; color: var(--orange); }
.stat-card strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: 1.3rem; line-height: 1.1; }
.stat-card span { display: block; font-size: .72rem; line-height: 1.35; color: var(--muted); margin-top: 3px; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 12px 0 18px; }
.filter { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; background: #f0f3f7; border-radius: 6px; font-family: var(--font-head); font-weight: 500; font-size: .86rem; color: var(--ink); transition: .2s; }
.filter .icon { width: 20px; height: 20px; }
.filter:hover { background: #e4e9f0; }
.filter.active { background: var(--orange); color: #fff; box-shadow: 0 8px 18px rgba(242, 106, 16, .3); }
.mosaic { display: grid; gap: 10px; margin-bottom: 10px; }
.mosaic-a { grid-template-columns: 1.92fr 1fr 1.12fr; height: 324px; }
.mosaic-b { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); height: 222px; }
.tile { position: relative; overflow: hidden; border-radius: 6px; background: var(--blue); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tile:hover img { transform: scale(1.06); }
.tile-link { position: absolute; inset: 0; z-index: 2; }
.tile-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px 70px 18px 18px; background: linear-gradient(180deg, transparent 40%, rgba(5, 22, 42, .88)); color: #fff; pointer-events: none; }
.tile h3 { color: #fff; font-size: .98rem; margin: 8px 0 6px; text-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.mosaic-a .tile:first-child h3 { font-size: 1.15rem; max-width: 300px; }
.pill { align-self: flex-start; background: var(--orange); color: #fff; padding: 4px 10px; border-radius: 6px; font-size: .72rem; font-weight: 600; }
.tile-loc { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; }
.tile-loc .icon { width: 14px; height: 14px; }
.zoom { position: absolute; right: 16px; bottom: 16px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .7); background: rgba(7, 34, 63, .85); color: #fff; display: grid; place-items: center; transition: .2s; }
.zoom:hover { background: var(--orange); border-color: var(--orange); }
.thumbs { display: grid; grid-template-columns: repeat(10, 1fr); gap: 10px; margin-top: 12px; }
.thumb { border: 0; padding: 0; border-radius: 4px; overflow: hidden; aspect-ratio: 1.45; background: var(--surface); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.thumb:hover img { transform: scale(1.08); }
.gallery-foot { display: flex; justify-content: center; align-items: center; position: relative; margin-top: 28px; min-height: 60px; }
.pager { position: absolute; right: 0; display: flex; align-items: center; gap: 22px; }
.pager-dots { display: flex; gap: 14px; margin-right: 30px; }
.pager-dots a { width: 10px; height: 10px; border-radius: 50%; background: #d3dae3; }
.pager-dots a.active { background: var(--orange); }

/* Visionneuse */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(4, 16, 30, .94); display: flex; align-items: center; justify-content: center; padding: 60px 80px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: min(1200px, 86vw); max-height: 78vh; border-radius: 10px; margin: auto; }
.lightbox figcaption { color: #fff; margin-top: 14px; font-family: var(--font-head); }
.lb-close, .lb-nav { position: absolute; border: 0; width: 50px; height: 50px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb-close:hover, .lb-nav:hover { background: var(--orange); color: #fff; }

/* Responsive */
@media (max-width: 1360px) {
    .carousel-btn.prev { left: -14px; }
    .carousel-btn.next { right: -14px; }
    .gallery-head { flex-direction: column; }
    .stat-cards { margin-top: 0; width: 100%; grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1180px) {
    .main-nav ul { gap: 20px; }
    .search input { width: 110px; }
    .service-cards { grid-template-columns: repeat(4, 1fr); }
    .engagement-inner { grid-template-columns: 1fr 1fr; }
    .engagement-features { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .partners-track { grid-auto-columns: calc((100% - 4 * 24px) / 5); }
    .thumbs { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 980px) {
    .burger { display: grid; }
    .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 10px 16px 20px; box-shadow: 0 14px 24px rgba(8, 40, 75, .12); display: none; }
    .main-nav.open { display: flex; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
    .main-nav a::after { display: none; }
    .search input { width: 100%; }
    .hero-inner, .why-inner, .detail-grid, .split, .contact-grid { grid-template-columns: 1fr; }
    .hero-visual { height: 400px; }
    .detail-aside { position: static; }
    .carousel-track { grid-auto-columns: calc((100% - 20px) / 2); }
    .post-grid, .card-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .stat { justify-content: flex-start; }
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
    .mosaic-a { grid-template-columns: 1fr 1fr; height: auto; grid-auto-rows: 240px; }
    .mosaic-a .tile:first-child { grid-column: 1 / -1; }
    .mosaic-b { grid-template-columns: 1fr 1fr; height: auto; grid-auto-rows: 210px; }
    .gallery-foot { flex-direction: column; gap: 20px; }
    .pager { position: static; }
    .service-row { grid-template-columns: 1fr; }
    .service-row > div { padding: 0 24px 24px; }
}
@media (max-width: 640px) {
    .topbar-info li:nth-child(2), .hide-sm { display: none; }
    .topbar-cta { padding: 0 14px; font-size: .75rem; }
    .socials { display: none; }
    .site-footer .socials { display: flex; }
    .brand img { height: 42px; }
    .header-inner { min-height: 70px; }
    .section { padding: 52px 0; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .hero-visual { height: 320px; }
    .hero-hexes { width: 34%; }
    .hero-box { padding: 14px 18px; border-radius: 18px 18px 0 18px; }
    .hero-box-icon { width: 32px; height: 32px; }
    .hero-box ul { font-size: .66rem; }
    .hero-badges { gap: 16px; }
    .service-cards { grid-template-columns: repeat(2, 1fr); }
    .why-features, .stats-row, .post-grid, .card-grid, .form-row { grid-template-columns: 1fr; }
    .engagement-inner { grid-template-columns: 1fr; }
    .engagement-features { grid-template-columns: 1fr; }
    .carousel-track { grid-auto-columns: 86%; }
    .partners-track { grid-auto-columns: calc((100% - 2 * 24px) / 3); }
    .carousel-btn { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .mosaic-a, .mosaic-b { grid-template-columns: 1fr; }
    .stat-cards { grid-template-columns: 1fr 1fr; }
    .stat-card { padding: 14px 12px; }
    .filter { padding: 10px 14px; font-size: .8rem; }
    .thumbs { grid-template-columns: repeat(3, 1fr); }
    .panel { padding: 22px; }
    .detail-gallery { grid-template-columns: 1fr 1fr; }
    .lightbox { padding: 60px 12px; }
    .lb-nav { top: auto; bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
