/* =====================================================================
   JPG Peinture — site public
   Même dizajn que l'ancien site, sans WordPress ni Elementor.
   ===================================================================== */
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Rubik"; font-weight: 300 700; font-style: normal; font-display: swap; src: url("../fonts/rubik-var.woff2") format("woff2"); }

:root {
    --red: #e82127;
    --red-dark: #b50030;
    --crimson: #9e002a;
    --footer: #ad1a1f;
    --black: #000;
    --text: #3a4268;
    --muted: #666;
    --line: #eaebf0;
    --line-2: #e5eaef;
    --soft: #f0f1f3;
    --grey: #e6e7e8;
    --stat-icon: #ced4e6;
    --white: #fff;
    --heading: "Poppins", "Segoe UI", Arial, sans-serif;
    --body: "Rubik", "Segoe UI", Arial, sans-serif;
    --ease: cubic-bezier(.22, .61, .36, 1);
    --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 26px; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
picture { display: block; }
a { color: var(--red); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { margin: 0; font-family: var(--heading); font-weight: 700; color: var(--black); }
p { margin: 0 0 15px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.icon { width: 1em; height: 1em; flex-shrink: 0; fill: currentColor; }
.cover { width: 100%; height: 100%; object-fit: cover; }
.container { width: min(1170px, 100% - 40px); margin-inline: auto; }
.container-narrow { width: min(820px, 100% - 40px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--red); color: #fff; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Barre de progression de lecture */
.scroll-progress { position: fixed; inset: 0 0 auto; z-index: 120; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; will-change: transform; pointer-events: none; }

/* ---------------------------------------------------------------------
   Boutons
   --------------------------------------------------------------------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; overflow: hidden; padding: 14px 26px; border: 0; border-radius: 3px; font-family: var(--heading); font-size: 15px; font-weight: 700; line-height: 20px; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s; }
.btn .icon { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.btn:hover .icon-arrow, .btn:hover svg:last-child { transform: translateX(3px); }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); transition: left .6s var(--ease); pointer-events: none; }
.btn:hover::after { left: 120%; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(181, 0, 48, .3); }
.btn-outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.btn-outline:hover { background: #fff; color: var(--black); transform: translateY(-2px); }
.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { background: #2a2a2a; color: #fff; transform: translateY(-2px); }

/* ---------------------------------------------------------------------
   En-tête : ligne logo + coordonnées
   --------------------------------------------------------------------- */
.header-top { border-bottom: 1px solid var(--line); background: #fff; }
.header-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand img { width: 233px; height: 60px; }
.header-infos { display: flex; align-items: center; }
.header-infos li { position: relative; }
.header-infos li + li { margin-left: 26px; padding-left: 26px; }
.header-infos li + li::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; border-left: 2px dashed #c9cde0; }
.header-infos a { display: flex; align-items: center; gap: 10px; color: var(--black); }
.header-infos .icon { width: 32px; height: 32px; color: var(--red); transition: transform .35s var(--ease); }
.header-infos a:hover .icon { transform: rotate(-10deg) scale(1.12); }
.header-infos small { display: block; font-size: 13.5px; line-height: 18px; color: #5a5a5a; }
.header-infos strong { display: block; font-family: var(--heading); font-size: 18px; font-weight: 700; line-height: 24px; color: var(--black); transition: color .2s; }
.header-infos a:hover strong { color: var(--red); }

/* ---------------------------------------------------------------------
   Navigation (collante au défilement, comme sur l'ancien site)
   --------------------------------------------------------------------- */
.nav-bar { position: sticky; top: 0; z-index: 100; background: #fff; transition: box-shadow .3s; }
.nav-bar.is-stuck { box-shadow: 0 6px 24px rgba(12, 12, 12, .09); }
.nav-bar-inner { display: flex; align-items: center; height: var(--nav-h); }
.nav-logo { display: block; width: 0; opacity: 0; overflow: hidden; visibility: hidden; flex-shrink: 0; transition: width .35s var(--ease), opacity .3s, margin .35s var(--ease); }
.nav-logo img { width: 210px; max-width: none; height: 54px; }
.is-stuck .nav-logo { width: 210px; margin-right: 40px; opacity: 1; visibility: visible; }
.main-nav { display: flex; align-items: center; height: 100%; }
.nav-list { display: flex; align-items: center; height: 100%; gap: 44px; }
.nav-list > li { position: relative; display: flex; align-items: center; height: 100%; }
.nav-list > li > a { position: relative; display: flex; align-items: center; height: 100%; font-family: var(--body); font-size: 16px; font-weight: 600; color: var(--black); white-space: nowrap; }
.nav-list > li > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-list > li > a:hover { color: var(--black); }
.nav-list > li > a:hover::after, .nav-list > li:focus-within > a::after, .nav-list > li.is-active > a::after { transform: scaleX(1); }
.dropdown-toggle { display: none; }
.dropdown { position: absolute; top: 100%; left: -18px; z-index: 20; min-width: 280px; padding: 8px 0; background: #fff; border-top: 3px solid var(--red); box-shadow: 0 18px 44px rgba(12, 12, 12, .16); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .22s, transform .28s var(--ease), visibility .22s; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 10px 22px; font-family: var(--heading); font-size: 15px; font-weight: 600; color: var(--crimson); transition: background .2s, color .2s, padding .25s var(--ease); }
.dropdown a:hover, .dropdown a[aria-current] { background: var(--red-dark); color: #fff; padding-left: 28px; }
.dropdown .icon { display: none; }
.nav-mobile-extra { display: none; }
.nav-locked { overflow: hidden; }
.nav-socials { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.main-nav + .nav-socials::before { content: none; }
.nav-socials a { display: flex; color: #5a5a5a; font-size: 16px; transition: color .2s, transform .25s var(--ease); }
.nav-socials a:hover { color: var(--red); transform: translateY(-2px); }
.nav-toggle { display: none; }

/* ---------------------------------------------------------------------
   Bannière d'accueil
   --------------------------------------------------------------------- */
.hero { position: relative; display: flex; align-items: center; height: 780px; overflow: hidden; background: #1a1a1a; color: #fff; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0, 0, 0, .52) 0%, rgba(0, 0, 0, .22) 42%, transparent 70%); pointer-events: none; }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide picture { height: 100%; }
.hero-slide.is-active img { animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1.09); } to { transform: scale(1); } }
.hero-inner { position: relative; z-index: 2; }
.hero-title { display: block; color: #fff; font-size: 72px; line-height: 82px; text-shadow: 2px 3px 14px rgba(0, 0, 0, .5); }
.hero-line { position: relative; display: block; width: fit-content; }
.hero-line > span { display: block; animation: heroText .01s calc(.1s + var(--line) * .18s + .42s) both; }
.hero-line::after { content: ""; position: absolute; inset: 9px -8px 7px; z-index: 1; background: var(--red); transform: scaleX(0); transform-origin: left; animation: paintSwipe .9s calc(.1s + var(--line) * .18s) var(--ease) both; }
@keyframes heroText { from { opacity: 0; } to { opacity: 1; } }
@keyframes paintSwipe {
    0% { transform: scaleX(0); transform-origin: left; }
    48% { transform: scaleX(1); transform-origin: left; }
    52% { transform: scaleX(1); transform-origin: right; }
    100% { transform: scaleX(0); transform-origin: right; }
}
.hero-sub { display: block; margin-top: 10px; font-size: 24px; font-weight: 600; line-height: 34px; animation: fadeUp .8s 1.05s var(--ease) both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; animation: fadeUp .8s 1.25s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------------
   Sections
   --------------------------------------------------------------------- */
.section { padding: 78px 0 70px; }
.section-title { font-size: 36px; line-height: 47px; text-transform: uppercase; color: var(--black); overflow-wrap: anywhere; hyphens: auto; }
.section-title-red { color: var(--crimson); }
.section-head { max-width: 520px; margin: 0 auto 60px; text-align: center; }
.section-head p { margin-bottom: 15px; font-size: 17px; line-height: 27px; color: var(--muted); }
.section-head .section-title { margin-bottom: 26px; }

/* Trait de peinture qui se dessine sous les titres */
.title-stroke { position: relative; padding-bottom: 16px; }
.title-stroke::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 76px; height: 4px; margin-left: -38px; border-radius: 4px; background: var(--red); transition: transform .9s .25s var(--ease); }
.reveal .title-stroke::after { transform: scaleX(0); }
.reveal.is-visible .title-stroke::after { transform: scaleX(1); }

/* Présentation */
.about { padding-bottom: 70px; }
.about-grid { display: grid; grid-template-columns: 1fr 570px; align-items: start; gap: 30px; }
.about-text { padding-top: 15px; padding-right: 30px; }
.about-text .section-title { margin-bottom: 22px; }
.about-prose p { margin-bottom: 30px; line-height: 27px; color: var(--muted); }
.about-media { position: relative; }
.about-image { width: 100%; border-radius: 8px; box-shadow: 0 22px 50px rgba(12, 12, 12, .14); }
.about-media picture { overflow: hidden; border-radius: 8px; }
.about-media img { transition: transform 1.1s var(--ease); }
.about-media:hover img { transform: scale(1.035); }
.about-badge { position: absolute; top: 40px; right: 0; width: 170px; padding: 18px 16px 18px 22px; background: #fff; border-left: 8px solid var(--red); border-bottom: 8px solid var(--red); color: var(--black); font-weight: 700; font-size: 16px; line-height: 21px; transition: transform .35s var(--ease); }
.about-media:hover .about-badge { transform: translate(6px, -6px); }
.about-badge-value { display: block; margin-bottom: 8px; font-family: var(--heading); font-size: 72px; line-height: 72px; font-weight: 700; color: var(--red-dark); }

/* Chiffres clés */
.stats-band { padding: 74px 0; background: #000 url("../img/bg-counter.webp") center / cover no-repeat; color: #fff; }
.stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 30px; }
.stat { display: flex; align-items: center; gap: 16px; }
.stat-icon { display: flex; font-size: 62px; color: var(--stat-icon); transition: transform .4s var(--ease), color .3s; }
.stat:hover .stat-icon { color: #fff; transform: translateY(-4px); }
.stat-value { margin: 0 0 4px; font-family: var(--heading); font-size: 36px; font-weight: 700; line-height: 36px; color: #fff; font-variant-numeric: tabular-nums; }
.stat-value sup { margin-left: 4px; font-size: 20px; line-height: 0; vertical-align: 12px; color: var(--red); }
.stat-label { margin: 0; font-weight: 700; color: #fff; }

/* Secteurs : cartes */
.sectors { padding: 68px 0 80px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card { position: relative; display: flex; align-items: center; gap: 16px; padding: 26px 24px 26px 28px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 4px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; }
.service-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.service-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 20px 44px rgba(12, 12, 12, .12); }
.service-card:hover::after { transform: scaleX(1); }
.service-icon { position: relative; display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 92px; height: 92px; overflow: hidden; border-radius: 50%; background: var(--soft); font-size: 48px; color: var(--red); transition: color .3s; }
.service-icon::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--red); transform: scale(0); transition: transform .45s var(--ease); }
.service-icon .icon { position: relative; transition: transform .45s var(--ease); }
.service-card:hover .service-icon { color: #fff; }
.service-card:hover .service-icon::before { transform: scale(1.02); }
.service-card:hover .service-icon .icon { transform: scale(1.06) rotate(-6deg); }
.service-body h3 { margin-bottom: 6px; font-size: 20px; line-height: 24px; color: var(--crimson); transition: color .2s; }
.service-body p { margin: 0; font-size: 14px; line-height: 21px; color: var(--muted); }
.service-card:hover h3 { color: var(--red); }

/* Réalisations (accueil) : bande noire et grille qui la chevauche */
.works { position: relative; }
.works-band { padding: 63px 0 188px; background: #000; color: #d0d0d0; }
.works-head { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 30px; padding-inline: 15px; }
.works-head .section-title { color: #fff; max-width: 330px; }
.works-head p { margin: 0; font-size: 17px; line-height: 27px; text-transform: uppercase; color: #d0d0d0; }
.works-gallery { position: relative; margin-top: -125px; padding-bottom: 80px; }
.works-more { margin: 40px 0 0; text-align: center; }

/* Grille de photos */
.gallery { display: grid; gap: 10px; }
.gallery-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-item { position: relative; display: block; overflow: hidden; aspect-ratio: 383 / 222; background: #ececef; }
.gallery-item picture { height: 100%; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .75s var(--ease), filter .4s; }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(158, 0, 42, .72) 0%, rgba(158, 0, 42, .12) 62%, transparent 100%); opacity: 0; transition: opacity .35s; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.09); }
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; }
.gallery-zoom { position: absolute; left: 50%; top: 50%; z-index: 1; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: #fff; color: var(--red); font-size: 22px; opacity: 0; transform: scale(.5) rotate(-90deg); transition: opacity .3s, transform .4s var(--ease); }
.gallery-item:hover .gallery-zoom, .gallery-item:focus-visible .gallery-zoom { opacity: 1; transform: none; }
.gallery-more { display: flex; justify-content: center; margin-top: 30px; }

/* Bannière des pages intérieures */
.page-banner { position: relative; display: flex; align-items: center; min-height: 292px; padding: 70px 0 56px; overflow: hidden; background: #0e0e0e; color: #fff; text-align: center; }
.page-banner-bg { position: absolute; inset: -40px 0; will-change: transform; }
.page-banner-bg picture { height: 100%; }
.page-banner::after { content: ""; position: absolute; inset: 0; background: rgba(21, 21, 34, .72); }
.page-banner-inner { position: relative; z-index: 2; }
.page-banner h1 { color: #fff; font-size: 60px; line-height: 72px; animation: fadeUp .8s var(--ease) both; }
.breadcrumbs { margin-top: 8px; font-size: 14px; animation: fadeUp .8s .15s var(--ease) both; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; }
.breadcrumbs li { color: rgba(255, 255, 255, .85); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: rgba(255, 255, 255, .5); }
.breadcrumbs a { color: #fff; }
.breadcrumbs a:hover { color: #ffb4b6; }

/* Étoiles scintillantes (reprises de l'ancienne bannière) */
.sparkles { position: absolute; top: 44px; left: calc(50% + 405px); z-index: 2; width: 145px; height: 120px; color: #fff; }
.sparkles i { position: absolute; display: block; animation: twinkle 3.4s ease-in-out infinite; }
.sparkles i:nth-child(1) { left: 0; top: 12px; width: 40px; height: 40px; animation-delay: .9s; }
.sparkles i:nth-child(2) { right: 0; top: 0; width: 60px; height: 60px; }
.sparkles i:nth-child(3) { left: 40px; bottom: 0; width: 58px; height: 58px; animation-delay: 1.7s; }
.sparkles svg { display: block; width: 100%; height: 100%; }
@keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1) rotate(0); } 50% { opacity: .4; transform: scale(.72) rotate(20deg); } }

/* Page d'un secteur */
.service-section { padding: 86px 0 80px; }
.service-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 60px; align-items: start; }
.service-aside { position: sticky; top: calc(var(--nav-h) + 24px); padding-left: 20px; }
.aside-menu { padding-top: 34px; border-top: 5px solid var(--red); }
.aside-title { margin-bottom: 26px; font-size: 22px; line-height: 29px; text-transform: uppercase; color: var(--crimson); }
.side-links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px 14px 22px; border-bottom: 2px solid var(--line-2); font-family: var(--heading); font-size: 16px; font-weight: 600; line-height: 25px; color: var(--crimson); transition: background .25s, color .25s, padding .3s var(--ease); }
.side-links li:last-child a { border-bottom: 0; }
.side-links .icon { width: 15px; height: 15px; opacity: 0; transform: translateX(-8px); transition: opacity .25s, transform .3s var(--ease); }
.side-links a:hover, .side-links a.is-active { background: var(--red-dark); color: #fff; }
.side-links a:hover { padding-left: 28px; }
.side-links a:hover .icon, .side-links a.is-active .icon { opacity: 1; transform: none; }
.aside-contact { margin-top: 26px; padding: 24px 22px; background: var(--soft); border-radius: 4px; }
.aside-contact-title { margin: 0 0 6px; font-family: var(--heading); font-size: 18px; font-weight: 700; color: var(--black); }
.aside-phone { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-family: var(--heading); font-size: 20px; font-weight: 700; color: var(--red-dark); }
.aside-phone .icon { width: 16px; height: 16px; }
.aside-contact .btn { width: 100%; }
.title-line { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; font-size: 36px; line-height: 47px; color: var(--crimson); text-transform: uppercase; }
.title-line::after { content: ""; flex: 0 0 60px; height: 2px; background: var(--red); transform-origin: left; animation: growX .9s .3s var(--ease) both; }
@keyframes growX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.prose h2 { margin: 30px 0 12px; font-size: 24px; line-height: 32px; color: var(--crimson); }
.prose h3 { margin: 22px 0 10px; font-size: 19px; line-height: 27px; color: var(--crimson); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose ul { margin: 0 0 18px; }
.prose li { position: relative; margin-bottom: 8px; padding-left: 30px; }
.prose li::before { content: ""; position: absolute; left: 0; top: 4px; width: 19px; height: 19px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat; }
.service-gallery { margin-top: 30px; }

/* Questions fréquentes */
.faq { margin-top: 56px; }
.faq-title { margin-bottom: 20px; font-size: 26px; line-height: 34px; color: var(--crimson); }
.faq details { margin-bottom: 10px; border: 1px solid var(--line); border-radius: 4px; background: #fff; transition: box-shadow .3s, border-color .3s; }
.faq details[open] { border-color: transparent; box-shadow: 0 10px 28px rgba(12, 12, 12, .09); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 20px; font-family: var(--heading); font-size: 16px; font-weight: 600; line-height: 24px; color: var(--black); list-style: none; cursor: pointer; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--red); }
.faq-sign { position: relative; flex-shrink: 0; width: 16px; height: 16px; }
.faq-sign::before, .faq-sign::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--red); transition: transform .3s var(--ease); }
.faq-sign::after { transform: rotate(90deg); }
.faq details[open] .faq-sign::after { transform: rotate(0); }
.faq-answer { padding: 0 20px 6px; }

/* Pages légales */
.view-legal .page-banner { padding-bottom: 92px; }
.legal-section { padding: 0 0 80px; background: var(--soft); }
.legal-switch { position: relative; z-index: 3; display: flex; width: fit-content; max-width: 100%; margin: -28px auto 40px; padding: 6px; background: #fff; border-radius: 40px; box-shadow: 0 14px 34px rgba(12, 12, 12, .14); }
.legal-switch a { padding: 11px 26px; border-radius: 30px; font-family: var(--heading); font-size: 14px; font-weight: 600; line-height: 20px; text-align: center; color: var(--black); transition: background .25s, color .25s; }
.legal-switch a:hover { color: var(--red); }
.legal-switch a[aria-current] { background: var(--red); color: #fff; }
.legal-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 30px; align-items: start; }
.legal-layout-single { grid-template-columns: minmax(0, 1fr); }
.legal-aside { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 16px; }
.legal-toc { padding: 18px 12px 12px; background: #fff; border-radius: 8px; box-shadow: 0 12px 34px rgba(12, 12, 12, .07); }
.legal-toc summary { display: flex; align-items: center; gap: 10px; padding: 0 12px 10px; list-style: none; font-family: var(--heading); font-size: 16px; font-weight: 700; line-height: 24px; color: var(--black); }
.legal-toc summary::-webkit-details-marker { display: none; }
.legal-toc summary .icon { width: 16px; height: 16px; color: var(--red); }
.legal-toc summary .icon:last-child { display: none; margin-left: auto; transition: transform .3s var(--ease); }
.legal-toc[open] summary .icon:last-child { transform: rotate(180deg); }
.legal-toc ol { margin: 0; padding: 0; list-style: none; }
.legal-toc a { display: flex; gap: 10px; padding: 8px 12px; border-radius: 4px; font-size: 14px; line-height: 20px; color: var(--text); transition: background .2s, color .2s; }
.legal-toc a span { flex: 0 0 18px; font-family: var(--heading); font-weight: 700; color: var(--red); transition: color .2s; }
.legal-toc a:hover { background: var(--soft); color: var(--black); }
.legal-toc a.is-active { background: var(--red-dark); color: #fff; }
.legal-toc a.is-active span { color: #fff; }
.legal-help { display: grid; gap: 6px; padding: 20px 24px; background: #000 url("../img/bg-counter.webp") right center / cover no-repeat; border-radius: 8px; color: #fff; font-size: 14px; line-height: 21px; }
.legal-help-title { margin: 0 0 4px; font-family: var(--heading); font-size: 16px; font-weight: 700; line-height: 24px; }
.legal-help a { display: flex; align-items: center; gap: 10px; color: #fff; overflow-wrap: anywhere; }
.legal-help a:hover { color: #fff; opacity: .8; }
.legal-help .icon { flex-shrink: 0; width: 14px; height: 14px; color: var(--red); }
.legal-article { min-width: 0; padding: 46px 54px 26px; background: #fff; border-radius: 8px; box-shadow: 0 24px 60px rgba(12, 12, 12, .1); }
.legal-intro { margin-bottom: 26px; font-size: 14px; line-height: 21px; color: var(--muted); }
.legal-intro > :last-child { margin-bottom: 0; }
.legal-block { padding: 30px 0; border-top: 1px solid var(--line); }
.legal-block:first-child { padding-top: 0; border-top: 0; }
.legal-intro + .legal-block { padding-top: 26px; border-top: 1px solid var(--line); }
.prose .legal-block h2 { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; font-size: 22px; line-height: 30px; }
.legal-number { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--red); font-size: 15px; font-weight: 700; line-height: 1; color: #fff; }
.legal-text { padding-left: 50px; overflow-wrap: break-word; }
.legal-text > :last-child { margin-bottom: 0; }

/* Réalisations (page) */
.realisations { padding-bottom: 80px; }
.realisations-head { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 30px; margin-bottom: 36px; }
.realisations-head .section-title { max-width: 340px; }
.realisations-head p { margin: 0; font-size: 17px; line-height: 27px; text-transform: uppercase; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter { padding: 9px 18px; border: 1px solid var(--line); border-radius: 3px; background: #fff; font-family: var(--heading); font-size: 14px; font-weight: 600; line-height: 20px; color: var(--crimson); transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.filter:hover { border-color: var(--red-dark); transform: translateY(-2px); }
.filter.is-active { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }

/* Contact */
.view-contact .page-banner { padding-bottom: 104px; }
.contact-section { padding: 0 0 90px; background: var(--soft); }
.contact-cards { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: -64px; margin-bottom: 56px; }
.contact-card { position: relative; display: flex; align-items: center; gap: 18px; padding: 24px; overflow: hidden; background: #fff; border-radius: 6px; box-shadow: 0 16px 40px rgba(12, 12, 12, .1); transition: box-shadow .35s var(--ease); }
.contact-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.contact-card:hover { box-shadow: 0 22px 50px rgba(12, 12, 12, .16); }
.contact-card:hover::after { transform: scaleX(1); }
.contact-icon { position: relative; display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 64px; height: 64px; overflow: hidden; border-radius: 50%; background: var(--soft); font-size: 30px; color: var(--red); transition: color .3s; }
.contact-icon::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--red); transform: scale(0); transition: transform .45s var(--ease); }
.contact-icon .icon { position: relative; transition: transform .45s var(--ease); }
.contact-card:hover .contact-icon { color: #fff; }
.contact-card:hover .contact-icon::before { transform: scale(1.02); }
.contact-card:hover .contact-icon .icon { transform: scale(1.06) rotate(-6deg); }
.contact-card p { margin: 0; }
.contact-card .contact-card-label { margin-bottom: 2px; font-family: var(--heading); font-size: 16px; font-weight: 700; line-height: 22px; color: var(--black); }
.contact-card-value { line-height: 24px; overflow-wrap: anywhere; }
.contact-card a { color: var(--text); }
.contact-card a:hover { color: var(--red); }

.contact-panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border-radius: 8px; background: #fff; box-shadow: 0 24px 60px rgba(12, 12, 12, .12); }
.contact-info { display: flex; flex-direction: column; padding: 48px 42px; background: #000 url("../img/bg-counter.webp") right center / cover no-repeat; border-radius: 8px 0 0 8px; color: #d0d0d0; }
.contact-title { margin-bottom: 14px; font-size: 30px; line-height: 38px; color: #fff; }
.contact-lead { margin: 0 0 32px; font-size: 16px; line-height: 26px; }
.contact-steps { display: grid; gap: 22px; margin: 0 0 36px; padding: 0; list-style: none; counter-reset: step; }
.contact-steps li { position: relative; display: grid; gap: 2px; padding-left: 54px; counter-increment: step; }
.contact-steps li::before { content: counter(step); position: absolute; left: 0; top: 2px; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--red); font-family: var(--heading); font-size: 16px; font-weight: 700; color: #fff; }
.contact-steps li:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 44px; bottom: -20px; width: 2px; background: rgba(255, 255, 255, .18); }
.contact-steps strong { font-family: var(--heading); font-size: 16px; font-weight: 600; line-height: 24px; color: #fff; }
.contact-steps span { font-size: 15px; line-height: 23px; }
.contact-call { margin: auto 0 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .18); }
.contact-call span { display: block; font-size: 14px; line-height: 22px; }
.contact-call a { display: inline-flex; align-items: center; gap: 10px; font-family: var(--heading); font-size: 24px; font-weight: 700; line-height: 34px; color: #fff; }
.contact-call a:hover { color: #fff; opacity: .85; }
.contact-call .icon { width: 20px; height: 20px; color: var(--red); }
.contact-form-wrap { min-width: 0; padding: 48px 46px 40px; }
.contact-form-title { margin-bottom: 4px; font-size: 30px; line-height: 38px; color: var(--crimson); }
.contact-form-hint { margin: 0 0 24px; font-size: 14px; line-height: 21px; color: var(--muted); }
.form-required { color: var(--red); font-weight: 700; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.form-field { min-width: 0; }
.form-field-wide { grid-column: 1 / -1; }
.form-field label { display: block; margin-bottom: 6px; font-family: var(--heading); font-size: 14px; font-weight: 600; line-height: 21px; color: var(--black); }
.form-field label small { font-size: 13px; font-weight: 400; color: var(--muted); }
.contact-form input:not([type="hidden"]), .contact-form textarea, .select-button { display: block; width: 100%; padding: 12px 16px; border: 0; border-radius: 4px; background: #f6f7f9; color: var(--text); font: inherit; font-size: 15px; line-height: 24px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, background .2s; }
.contact-form textarea { min-height: 136px; resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #6e7395; opacity: 1; }
.contact-form input:hover, .contact-form textarea:hover, .select-button:hover { box-shadow: inset 0 0 0 1px #c3c6d4; }
.contact-form input:focus, .contact-form textarea:focus, .select-button:focus-visible, .select.is-open .select-button { outline: 0; background: #fff; box-shadow: inset 0 0 0 2px var(--red); }
.contact-form [aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--red-dark); }
.field-error { margin: 5px 0 0; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--red-dark); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; }
.form-foot .btn { flex: 1 1 220px; min-height: 58px; }
.form-foot .btn .icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.form-foot .btn:hover .icon { transform: translateX(4px); }
.form-note { margin: 16px 0 0; font-size: 13px; line-height: 20px; color: var(--muted); }
.cf-turnstile { min-height: 65px; }
.contact-form-wrap .alert { background: var(--soft); }
.alert { display: flex; gap: 10px; margin-bottom: 18px; padding: 14px 18px; border-radius: 4px; background: #fff; font-weight: 500; }
.alert .icon { width: 22px; height: 22px; margin-top: 2px; }
.alert p { margin: 0; }
.alert-success { color: #067647; box-shadow: inset 4px 0 0 #12b76a; }
.alert-error { color: var(--red-dark); box-shadow: inset 4px 0 0 var(--red); }
/* Le bas de la section laisse visibles les mentions Google : le bord du pied de page y repose. */
.map-section { position: relative; padding-bottom: 48px; background: var(--soft); }
.map-section iframe { display: block; width: 100%; height: 460px; border: 0; filter: saturate(.9); }
.map-card { position: absolute; top: 40px; right: max(20px, calc(50% - 585px)); width: 300px; padding: 26px 28px 28px; background: #fff; border-radius: 6px; border-top: 4px solid var(--red); box-shadow: 0 20px 50px rgba(12, 12, 12, .22); }
.map-card-name { margin: 0 0 6px; font-family: var(--heading); font-size: 18px; font-weight: 700; line-height: 26px; color: var(--black); }
.map-card address { margin-bottom: 18px; font-style: normal; }
.map-card .btn { width: 100%; }

/* Listes déroulantes */
.select { position: relative; }
.select-native { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.select-button { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; cursor: pointer; }
.select-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select.is-placeholder .select-value { color: #6e7395; }
.select-arrow { width: 18px; height: 18px; flex-shrink: 0; transition: transform .3s var(--ease); }
.select.is-open .select-arrow { transform: rotate(180deg); }
.select-list { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 30; max-height: 320px; margin: 0; padding: 6px; overflow-y: auto; list-style: none; background: #fff; box-shadow: 0 18px 44px rgba(12, 12, 12, .18); opacity: 0; transform: translateY(-8px); transition: opacity .18s, transform .25s var(--ease); }
.select-list:focus { outline: 0; }
.select.drop-up .select-list { top: auto; bottom: calc(100% + 4px); transform: translateY(8px); }
.select.is-open .select-list { opacity: 1; transform: none; }
.select-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; font-size: 15px; line-height: 22px; color: var(--text); cursor: pointer; transition: background .15s, color .15s; }
.select-option.is-placeholder { color: #6e7395; }
.select-option.is-active { background: var(--soft); color: var(--crimson); }
.select-option[aria-selected="true"]:not(.is-placeholder) { color: var(--crimson); font-weight: 600; }
.select-option[aria-disabled="true"] { opacity: .45; cursor: default; }

/* Pages de texte et erreur */
.page-section { padding-bottom: 80px; }
.error-page { text-align: center; padding-bottom: 30px; }
.error-code { margin: 0 0 6px; font-family: var(--heading); font-size: 110px; font-weight: 700; line-height: 1; color: var(--red); }
.error-page .section-title { margin-bottom: 14px; }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.view-404 .sectors { padding-bottom: 80px; }

/* Avis clients */
.testimonials { padding-bottom: 80px; margin-top: -60px; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial { margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: 4px; }
.testimonial-stars { margin-bottom: 8px; color: var(--red); letter-spacing: 2px; }
.testimonial blockquote { margin: 0 0 14px; }
.testimonial figcaption { font-family: var(--heading); font-weight: 600; color: var(--black); }
.testimonial small { font-weight: 400; color: var(--muted); }

/* ---------------------------------------------------------------------
   Pied de page
   --------------------------------------------------------------------- */
.site-footer { position: relative; color: #fff; }
.site-footer :focus-visible { outline-color: #fff; }

/* Appel à l'action : posé sur le pied de page, le logo fait la jonction entre les deux */
.cta-band { padding: 62px 0 104px; background: #000 url("../img/bg-counter.webp") center / cover no-repeat; color: #d0d0d0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px 48px; }
.cta-band h2 { margin-bottom: 8px; font-size: 32px; line-height: 42px; color: #fff; }
.cta-band p { margin: 0; font-size: 17px; line-height: 27px; text-wrap: balance; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; flex-shrink: 0; }
.cta-actions .btn { min-height: 54px; }
.cta-actions .btn-primary .icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.cta-actions .btn-primary:hover .icon { transform: translateX(4px); }

.footer-main { position: relative; background: linear-gradient(180deg, var(--footer) 0%, #8c1023 100%); }
.footer-main::before { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(255, 255, 255, .09) 1.6px, transparent 1.7px) 0 0 / 15px 15px; -webkit-mask-image: linear-gradient(255deg, #000, transparent 52%); mask-image: linear-gradient(255deg, #000, transparent 52%); pointer-events: none; }
.footer-edge { position: absolute; left: 0; bottom: calc(100% - 1px); display: block; width: 100%; height: 48px; fill: var(--footer); pointer-events: none; }
.footer-edge-coat { fill: var(--red); }
.footer-logo { position: absolute; top: -78px; left: 50%; z-index: 3; width: 120px; height: 120px; margin-left: -60px; overflow: hidden; border-radius: 50%; background: #fff; box-shadow: 0 0 0 7px rgba(255, 255, 255, .16), 0 14px 36px rgba(0, 0, 0, .38); transition: transform .5s var(--ease); }
.footer-logo:hover { transform: rotate(-8deg) scale(1.06); }
.footer-logo img { width: 120px; height: 120px; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.45fr 1.1fr .9fr 1.25fr; gap: 30px 44px; padding: 84px 0 52px; }
.footer-heading { position: relative; margin-bottom: 26px; padding-bottom: 12px; font-size: 19px; line-height: 27px; color: #fff; }
.footer-heading::after { content: ""; position: absolute; left: 0; bottom: 0; width: 38px; height: 3px; border-radius: 3px; background: #fff; }
.footer-heading-caps { text-transform: uppercase; letter-spacing: .02em; }
.footer-brand p { margin: 0 0 22px; line-height: 27px; color: rgba(255, 255, 255, .9); }
.footer-socials { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-socials a { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .13); font-size: 16px; color: #fff; transition: background .25s, color .25s, transform .3s var(--ease); }
.footer-socials a:hover { background: #fff; color: var(--red-dark); transform: translateY(-3px); }
.footer-links { display: grid; gap: 11px; }
.footer-links a { display: inline-flex; align-items: flex-start; gap: 8px; font-family: var(--heading); font-size: 14px; font-weight: 500; line-height: 21px; color: #fff; transition: transform .3s var(--ease); }
.footer-links .icon { flex-shrink: 0; width: 13px; height: 13px; margin-top: 4px; opacity: .65; transition: opacity .25s; }
.footer-links span { background: linear-gradient(#fff, #fff) left bottom / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.footer-links a:hover { color: #fff; transform: translateX(4px); }
.footer-links a:hover .icon { opacity: 1; }
.footer-links a:hover span, .footer-links a[aria-current] span { background-size: 100% 1px; }
.footer-contact { display: grid; gap: 14px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 12px; font-family: var(--heading); font-size: 14px; font-weight: 500; line-height: 21px; }
.footer-contact-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 34px; height: 34px; margin-top: 2px; border-radius: 50%; background: rgba(255, 255, 255, .13); }
.footer-contact-icon .icon { width: 14px; height: 14px; color: #fff; }
.footer-contact-lines { display: grid; }
.footer-contact a { color: #fff; overflow-wrap: anywhere; background: linear-gradient(#fff, #fff) left bottom / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.footer-contact-lines a { justify-self: start; }
.footer-contact a:hover { color: #fff; background-size: 100% 1px; }
.footer-contact li > a, .footer-contact li > span:not(.footer-contact-icon) { margin-top: 8px; }
.footer-contact li > .footer-contact-lines { margin-top: 0; }
.footer-bottom { padding: 18px 0; background: #6f0c1c; font-family: var(--heading); font-size: 13px; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-legal a { color: #fff; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .2s; }
.footer-legal a:hover { color: #fff; text-decoration-color: #fff; }
.footer-credit .icon { width: 13px; height: 13px; margin: 0 1px; vertical-align: -1px; color: #ff5a63; }
.footer-credit:hover .icon { animation: heartbeat 1s var(--ease) infinite; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.25); } }

.to-top { position: fixed; right: 0; bottom: 60px; z-index: 90; display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; background: var(--red); color: #fff; font-size: 18px; opacity: 0; visibility: hidden; transform: translateX(100%); transition: opacity .3s, transform .35s var(--ease), visibility .3s, background .2s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red-dark); color: #fff; }
.mobile-bar { display: none; }

/* Visionneuse */
.lightbox { width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: rgba(8, 8, 10, .95); color: #fff; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; animation: lbFade .25s ease; }
.lightbox::backdrop { background: rgba(8, 8, 10, .95); }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lightbox-figure { display: flex; flex-direction: column; align-items: center; margin: 0; max-width: calc(100vw - 150px); }
.lightbox-figure img { max-width: 100%; max-height: calc(100dvh - 110px); width: auto; height: auto; animation: lbZoom .35s var(--ease); }
@keyframes lbZoom { from { opacity: .3; transform: scale(.975); } to { opacity: 1; transform: none; } }
.lightbox figcaption { padding-top: 12px; text-align: center; font-size: 15px; line-height: 22px; }
.lightbox small { margin-left: 10px; color: #b9b9c4; white-space: nowrap; }
.lightbox-close, .lightbox-nav { position: absolute; display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 24px; transition: background .2s, transform .25s var(--ease); }
.lightbox-close:hover, .lightbox-nav:hover { background: var(--red); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; margin-top: -25px; }
.lightbox-next { right: 16px; top: 50%; margin-top: -25px; }

/* ---------------------------------------------------------------------
   Apparition au défilement
   --------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s var(--ease) var(--reveal-delay, 0s), transform .75s var(--ease) var(--reveal-delay, 0s); }
.reveal-left { transform: translateX(-36px); }
.reveal-right { transform: translateX(36px); }
.reveal-zoom { transform: scale(.94); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------------------------------------------------------------------
   Adaptation aux écrans
   --------------------------------------------------------------------- */
@media (max-width: 1199px) {
    .header-infos li + li { margin-left: 16px; padding-left: 16px; }
    .header-infos strong { font-size: 16px; }
    .about-grid { grid-template-columns: 1fr 48%; }
    .service-layout { grid-template-columns: 290px minmax(0, 1fr); gap: 40px; }
    .service-aside { padding-left: 0; }
    .service-card { padding: 22px 18px; }
    .service-icon { width: 76px; height: 76px; font-size: 40px; }
    .stats { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .contact-info { padding: 40px 30px; }
    .contact-form-wrap { padding: 40px 30px 34px; }
    .sparkles { left: auto; right: 24px; }
}

@media (max-width: 1023px) {
    :root { --nav-h: 66px; }
    .header-top { display: none; }
    .nav-logo { width: auto; opacity: 1; visibility: visible; margin-right: auto; }
    .is-stuck .nav-logo { width: auto; margin-right: auto; }
    .nav-logo img { width: 186px; height: 48px; }
    .nav-socials { display: none; }
    .nav-toggle { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 6px; background: var(--red); color: #fff; transition: background .25s; }
    .nav-open .nav-toggle { background: var(--black); }
    .nav-toggle-bars { position: relative; display: block; width: 22px; height: 16px; }
    .nav-toggle-bars i { position: absolute; left: 0; right: 0; height: 2px; background: #fff; transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease); }
    .nav-toggle-bars i:nth-child(1) { top: 0; }
    .nav-toggle-bars i:nth-child(2) { top: 7px; }
    .nav-toggle-bars i:nth-child(3) { top: 14px; }
    .nav-open .nav-toggle-bars i:nth-child(1) { top: 7px; transform: rotate(45deg); }
    .nav-open .nav-toggle-bars i:nth-child(2) { opacity: 0; }
    .nav-open .nav-toggle-bars i:nth-child(3) { top: 7px; transform: rotate(-45deg); }
    /* Le menu se déroule depuis la barre du logo, comme un coup de rouleau. */
    .nav-bar::after { content: ""; position: fixed; inset: var(--nav-h) 0 0; z-index: -1; background: rgba(8, 8, 10, .55); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
    .nav-open .nav-bar::after { opacity: 1; visibility: visible; }
    .main-nav { position: absolute; top: 100%; left: 0; right: 0; z-index: 1; display: block; height: auto; max-height: calc(100vh - var(--nav-h)); max-height: calc(100dvh - var(--nav-h)); padding: 4px 20px 22px; overflow-y: auto; overscroll-behavior: contain; background: #fff; border-top: 1px solid var(--line); border-bottom: 4px solid var(--red); box-shadow: 0 24px 50px rgba(12, 12, 12, .28); clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .4s var(--ease), visibility 0s linear .4s; }
    .nav-open .main-nav { clip-path: inset(0 0 -70px 0); visibility: visible; transition: clip-path .45s var(--ease), visibility 0s; }
    .nav-list { flex-direction: column; align-items: stretch; height: auto; gap: 0; }
    .nav-list > li, .nav-mobile-extra { opacity: 0; transform: translateY(-10px); transition: opacity .3s, transform .35s var(--ease); }
    .nav-open .nav-list > li, .nav-open .nav-mobile-extra { opacity: 1; transform: none; }
    .nav-open .nav-list > li:nth-child(1) { transition-delay: .06s; }
    .nav-open .nav-list > li:nth-child(2) { transition-delay: .11s; }
    .nav-open .nav-list > li:nth-child(3) { transition-delay: .16s; }
    .nav-open .nav-list > li:nth-child(4) { transition-delay: .21s; }
    .nav-open .nav-list > li:nth-child(n+5) { transition-delay: .26s; }
    .nav-open .nav-mobile-extra { transition-delay: .28s; }
    .nav-list > li { flex-wrap: wrap; height: auto; border-bottom: 1px solid var(--line); }
    .nav-list > li > a { flex: 1; height: auto; padding: 15px 0; font-family: var(--heading); font-size: 18px; line-height: 26px; }
    .nav-list > li > a::after { display: none; }
    .nav-list > li.is-active > a { color: var(--red); }
    .nav-list > li.is-active > a::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--red); }
    .dropdown-toggle { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: var(--soft); color: var(--crimson); font-size: 16px; transition: background .25s, color .25s; }
    .dropdown-toggle .icon { transition: transform .3s var(--ease); }
    .has-dropdown.is-open .dropdown-toggle { background: var(--red); color: #fff; }
    .has-dropdown.is-open .dropdown-toggle .icon { transform: rotate(180deg); }
    .dropdown { position: static; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; flex-basis: 100%; min-width: 0; max-height: 0; padding: 0; overflow: hidden; border: 0; box-shadow: none; transform: none; transition: max-height .35s var(--ease), padding .35s var(--ease), opacity .25s, visibility .35s; }
    .has-dropdown .dropdown, .has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 0; visibility: hidden; transform: none; }
    .has-dropdown.is-open .dropdown, .has-dropdown.is-open:hover .dropdown, .has-dropdown.is-open:focus-within .dropdown { max-height: 460px; padding: 0 0 16px; opacity: 1; visibility: visible; }
    .dropdown a { display: flex; align-items: center; gap: 10px; height: 100%; min-height: 56px; padding: 10px 12px; border-radius: 6px; background: var(--soft); font-size: 14px; line-height: 19px; color: var(--black); }
    .dropdown a:hover, .dropdown a[aria-current] { padding-left: 12px; }
    .dropdown .icon { display: block; flex-shrink: 0; width: 24px; height: 24px; color: var(--red); transition: color .2s; }
    .dropdown a:hover .icon, .dropdown a[aria-current] .icon { color: #fff; }
    .nav-mobile-extra { display: block; margin-top: 18px; }
    .nav-mobile-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
    .nav-mobile-actions .btn { min-height: 52px; padding: 14px 10px; font-size: 14px; }
    .nav-mobile-socials { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
    .nav-mobile-socials a { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--soft); font-size: 16px; color: var(--black); transition: background .25s, color .25s; }
    .nav-mobile-socials a:hover { background: var(--red); color: #fff; }
    .legal-layout { grid-template-columns: minmax(0, 1fr); }
    .legal-aside { position: static; }
    .legal-toc { padding: 0; }
    .legal-toc summary { padding: 15px 20px; cursor: pointer; }
    .legal-toc summary .icon:last-child { display: block; }
    .legal-toc ol { padding: 0 8px 10px; }
    .legal-help { display: none; }
    .hero { height: 620px; }
    .hero-title { font-size: 58px; line-height: 66px; }
    .about-grid { grid-template-columns: 1fr; gap: 34px; }
    .about-text { padding-right: 0; }
    .service-layout { grid-template-columns: 1fr; }
    .service-aside { position: static; order: 2; }
    .contact-panel { grid-template-columns: 1fr; }
    .contact-info { border-radius: 8px 8px 0 0; }
    .contact-cards { gap: 16px; margin-bottom: 40px; }
    .page-banner h1 { font-size: 46px; line-height: 56px; }
    .service-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-brand, .footer-reach { grid-column: 1 / -1; }
    .footer-contact { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
    .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
    .to-top { bottom: 72px; }
    .mobile-bar { position: fixed; inset: auto 0 0; z-index: 95; display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 -4px 16px rgba(12, 12, 12, .14); }
    .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 54px; font-family: var(--heading); font-size: 15px; font-weight: 700; color: #fff; }
    .mobile-bar-call { background: var(--red); }
    .mobile-bar-quote { background: var(--black); }
    .site-footer { padding-bottom: 54px; }
}

@media (max-width: 767px) {
    .section { padding: 56px 0 50px; }
    .section-title { font-size: 28px; line-height: 37px; }
    .section-head { margin-bottom: 38px; }
    .hero { height: 540px; }
    .hero-title { font-size: 44px; line-height: 52px; }
    .hero-line::after { inset: 6px -6px 5px; }
    .hero-sub { font-size: 19px; line-height: 28px; }
    .about-badge { top: 16px; width: 142px; padding: 12px 10px 12px 16px; font-size: 14px; line-height: 19px; }
    .about-badge-value { font-size: 52px; line-height: 54px; }
    .stats-band { padding: 50px 0; }
    .stats { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
    .stat { flex-direction: column; align-items: flex-start; gap: 8px; }
    .stat-icon { font-size: 46px; }
    .stat-value { font-size: 30px; line-height: 32px; }
    .stat-label { line-height: 21px; font-size: 15px; }
    .sectors { padding: 50px 0 56px; }
    .service-grid { grid-template-columns: 1fr; gap: 14px; }
    .works-band { padding: 46px 0 160px; }
    .works-head, .realisations-head { grid-template-columns: 1fr; gap: 10px; padding-inline: 0; }
    .works-head .section-title, .realisations-head .section-title { max-width: none; }
    .works-gallery { padding-bottom: 56px; }
    .gallery { gap: 6px; }
    .gallery-3, .gallery-2 { grid-template-columns: repeat(2, 1fr); }
    .page-banner { min-height: 220px; padding: 56px 0 40px; }
    .page-banner h1 { font-size: 34px; line-height: 42px; }
    .sparkles { top: 14px; right: 8px; width: 84px; height: 70px; opacity: .85; }
    .sparkles i:nth-child(1) { width: 24px; height: 24px; }
    .sparkles i:nth-child(2) { width: 34px; height: 34px; }
    .sparkles i:nth-child(3) { left: 22px; width: 32px; height: 32px; }
    .service-section { padding: 50px 0 56px; }
    .title-line { font-size: 27px; line-height: 35px; gap: 12px; }
    .title-line::after { flex-basis: 40px; }
    .cta-band { padding: 46px 0 104px; }
    .cta-band h2 { font-size: 26px; line-height: 34px; }
    .cta-band p { font-size: 16px; line-height: 25px; }
    .cta-actions { width: 100%; }
    .cta-actions .btn { flex: 1 1 100%; }
    .realisations, .page-section { padding-bottom: 56px; }
    .view-contact .page-banner { padding-bottom: 88px; }
    .contact-section { padding-bottom: 56px; }
    .contact-cards { grid-template-columns: 1fr; gap: 12px; margin-top: -56px; }
    .contact-card { padding: 16px 18px; }
    .contact-icon { width: 54px; height: 54px; font-size: 26px; }
    .contact-info { padding: 32px 22px; }
    .contact-title, .contact-form-title { font-size: 26px; line-height: 34px; }
    .contact-form-wrap { padding: 32px 22px 28px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-foot .btn { flex-basis: 100%; }
    .map-section { padding-bottom: 64px; }
    .map-section iframe { height: 320px; }
    .map-card { position: static; width: auto; border-radius: 0; box-shadow: none; }
    .view-legal .page-banner { padding-bottom: 76px; }
    .legal-section { padding-bottom: 56px; }
    .legal-switch { display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin: -26px 0 20px; }
    .legal-switch a { padding: 10px 8px; font-size: 13px; }
    .legal-article { padding: 28px 22px 10px; }
    .prose .legal-block h2 { gap: 12px; font-size: 19px; line-height: 26px; }
    .legal-number { width: 32px; height: 32px; font-size: 14px; }
    .legal-text { padding-left: 0; }
    .footer-grid { gap: 34px 12px; padding: 74px 0 34px; }
    .footer-heading { margin-bottom: 18px; font-size: 16px; letter-spacing: -.01em; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .footer-legal { justify-content: center; }
    .testimonial-grid { grid-template-columns: 1fr; }
    .lightbox-figure { max-width: 100vw; }
    .lightbox-nav { top: auto; bottom: 14px; margin: 0; width: 46px; height: 46px; }
    .lightbox-prev { left: calc(50% - 56px); }
    .lightbox-next { right: calc(50% - 56px); }
    .lightbox-figure img { max-height: calc(100dvh - 190px); }
    .lightbox figcaption { padding: 12px 14px 74px; }
}

/* Sans marge suffisante, une entrée par le côté élargirait la page le temps de l'animation. */
@media (max-width: 1279px) {
    .reveal-left, .reveal-right { transform: translateY(28px); }
}

/* Le bouton « retour en haut » ne doit pas recouvrir les liens du bas de page. */
@media (min-width: 768px) and (max-width: 1279px) {
    .footer-bottom-inner { padding-right: 52px; }
}

/* Le widget Turnstile fait 300 px : il doit tenir sur les plus petits téléphones. */
@media (max-width: 359px) {
    .cf-turnstile { transform: scale(.82); transform-origin: left top; }
}

/* Aucun mouvement si le visiteur préfère les réduire */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
    .reveal { opacity: 1; transform: none; }
}
