/* EPC Technixs — styles publics */
:root {
  --navy: #1a1f42;
  --navy-deep: #10132a;
  --red: #e2252c;
  --red-deep: #b81b21;
  --ink: #232323;
  --gray: #5c6070;
  --line: #e4e6ec;
  --bg-alt: #f6f7fa;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
}

/* Animations (portées du prototype) */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
@keyframes pulseGlow { 0%,100% { box-shadow: 0 0 0 0 rgba(226,37,44,.45); } 50% { box-shadow: 0 0 0 8px rgba(226,37,44,0); } }
@keyframes floatDot { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }
body { margin: 0; font-family: 'Manrope', Arial, sans-serif; color: var(--ink); background: #fff; scrollbar-width: none; -ms-overflow-style: none; }
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; transition: color .15s ease; }
a:hover { color: #c81e24; }
h1, h2, h3, h4 { color: var(--navy); margin: 0 0 12px; }
h1, h2 { letter-spacing: -0.02em; }
p { line-height: 1.6; margin: 0 0 16px; }
::selection { background: var(--red); color: #fff; }

/* Anneau de focus clavier cohérent (couleur de marque) sur tous les
   éléments interactifs — visible seulement en navigation clavier
   (:focus-visible), jamais au clic souris. */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 4px;
}

.section-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section-block { padding: 64px 0; }
.section-block.alt { background: var(--bg-alt); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.section-sub { color: var(--gray); font-size: 15px; margin: 4px 0 0; }
.center { text-align: center; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 15px 26px; border-radius: var(--radius-sm); font-weight: 700; font-size: 15px; cursor: pointer; border: none; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.btn-primary { background: linear-gradient(155deg, var(--red), var(--red-deep)); color: #fff; box-shadow: 0 6px 16px -6px rgba(226,37,44,.5); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px -6px rgba(226,37,44,.6); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.45); }
.btn-outline:hover { color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.7); }

/* Bouton "Nous contacter" (tél. + e-mail dans un petit panneau au clic) */
.contact-cta { position: relative; display: inline-flex; }
.contact-cta-toggle { gap: 8px; font-family: inherit; }
.contact-cta-caret { transition: transform .2s ease; flex-shrink: 0; }
.contact-cta-toggle[aria-expanded="true"] .contact-cta-caret { transform: rotate(180deg); }
.contact-cta-panel { position: absolute; top: calc(100% + 10px); left: 0; z-index: 60; background: #fff; border-radius: 10px; box-shadow: 0 14px 34px rgba(10,14,40,.22); padding: 8px; display: flex; flex-direction: column; gap: 2px; width: max-content; max-width: min(86vw, 300px); }
.contact-cta-panel[hidden] { display: none; }
.contact-cta-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 7px; color: var(--navy); font-weight: 600; font-size: 14px; text-decoration: none; }
.contact-cta-link:hover { background: #f2f3f8; }
.contact-cta-link svg { flex-shrink: 0; }
.contact-cta-link span { overflow-wrap: anywhere; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(16,20,40,.03), 0 8px 20px -14px rgba(16,20,40,.25); }
.topbar { background: var(--navy); color: #c7cae0; font-size: 13px; }
.topbar-inner { max-width: 1180px; margin: 0 auto; padding: 8px 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.nav-inner { position: relative; max-width: 1180px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-weight: 800; font-size: 22px; color: var(--navy); display: flex; align-items: baseline; gap: 4px; }
.logo .dot { color: var(--red); }
.logo-sub { font-weight: 600; font-size: 16px; color: var(--ink); }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { color: var(--ink); font-weight: 600; font-size: 15px; }
.main-nav a:hover { color: var(--red); }
.nav-lang-group { display: flex; align-items: center; gap: 2px; border: 1.5px solid var(--line); border-radius: 20px; padding: 3px; }
.nav-lang { border-radius: 16px; padding: 4px 10px; font-size: 12.5px !important; font-weight: 700 !important; color: var(--gray) !important; transition: background-color .15s ease, color .15s ease; }
.nav-lang:hover { color: var(--red) !important; }
.nav-lang.is-current { background: var(--navy); color: #fff !important; cursor: default; }
.nav-toggle { display: none; background: none; border: 2px solid var(--navy); border-radius: 8px; width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; }
.nav-toggle span { width: 20px; height: 2px; background: var(--navy); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-cta { animation: pulseGlow 2.6s ease-in-out infinite; }

/* Hero */
/* position + z-index nécessaires : .hero-copy anime transform/opacity (fadeInUp),
   ce qui lui crée son propre contexte d'empilement CSS. Sans repositionner .hero
   lui-même au-dessus de la section suivante (.trust-strip, qui n'est pas positionnée),
   le panneau "Nous contacter" (.contact-cta-panel, z-index:60) reste piégé dans ce
   contexte imbriqué et se fait recouvrir par le bandeau défilant situé juste en
   dessous quand le panneau déborde du hero. */
.hero {
  position: relative; z-index: 1; color: #fff;
  background:
    radial-gradient(60% 90% at 88% 8%, rgba(226,37,44,.16), transparent 60%),
    radial-gradient(70% 70% at 8% 100%, rgba(255,255,255,.06), transparent 55%),
    linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
}
/* Grille de points en fond de hero — évoque un circuit électrique en très
   discret, sans nuire à la lisibilité du texte au-dessus. Pas de overflow:hidden
   sur .hero : ce n'est pas nécessaire ici (le motif reste dans ses bornes via
   inset:0) et ça coupait le panneau "Nous contacter" (.contact-cta-panel) sur
   les pages qui n'ont pas la marge de réserve dédiée (ex: villes.php, dont le
   hero n'utilise pas .hero-inner). */
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 75%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 75%);
}
/* Le z-index ci-dessus garantit que le panneau "Nous contacter"
   (.contact-cta-panel, z-index:60) s'affiche bien au-dessus du bandeau
   défilant (.trust-strip) qui suit le hero. Mais le panneau (position
   absolute) ne pousse pas le contenu suivant : quand il s'ouvre, il déborde
   du hero et son texte se superpose visuellement à celui du bandeau, même si
   le panneau reste au-dessus (z-index correct) — d'où une impression de
   "collision". Un padding-bottom fixe réglerait ça, mais laisserait un grand
   vide en permanence sous les boutons, même panneau fermé. Solution : ne
   réserver de la place QUE pendant que le panneau est réellement ouvert (JS
   pose aria-expanded="true" sur le bouton à l'ouverture, voir main.js). */
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 72px 24px 40px; }
.hero:has(.contact-cta-toggle[aria-expanded="true"]) .hero-inner { padding-bottom: 210px; }
.eyebrow { display: inline-block; background: rgba(226,37,44,.18); color: #ff8b90; padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 700; }
.eyebrow-alt { background: rgba(255,255,255,.12); color: #dfe1ee; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.hero-copy { animation: fadeInUp .7s ease both; }
.hero-media { animation: fadeIn 1s ease both .2s; }
.hero-copy h1 { font-size: clamp(34px,5vw,54px); color: #fff; margin-bottom: 16px; }
.hero-copy h2 { font-size: clamp(19px,2.4vw,26px); color: #dfe1ee; font-weight: 600; margin-bottom: 20px; }
.hero-copy p { color: #c7cae0; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media img { border-radius: 14px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.hero-carousel { position: relative; width: 100%; aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; background: #0f1123; }
.hero-slide { position: absolute; inset: 0; border-radius: 14px; overflow: hidden; opacity: 0; transition: opacity .8s ease; }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 14px; display: block; }
.hero-slide.is-active { opacity: 1; }

/* Emplacement photo (avant l'ajout d'une vraie photo) */
.photo-placeholder { border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 24px; background: linear-gradient(155deg, #f6f7fa, #eceef4); color: #9a9dab; }
.photo-placeholder svg { opacity: .5; }
.photo-placeholder span { max-width: 240px; font-size: 13px; font-weight: 600; line-height: 1.4; }
.photo-placeholder-dark { background: linear-gradient(155deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); color: #c7cae0; }
.photo-placeholder-dark svg { opacity: .55; }
.hero-slide-tag { position: absolute; left: 14px; bottom: 14px; background: rgba(26,31,66,.88); color: #fff; padding: 7px 14px; border-radius: 100px; font-size: 13px; font-weight: 700; z-index: 2; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.hero-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; border: none; cursor: pointer; padding: 0; background: #d8dae4; }
.hero-dot.is-active { background: var(--red); }

/* Carte zone d'intervention */
.service-area-map { width: 100%; height: 420px; border-radius: 14px; border: 1px solid var(--line); z-index: 0; }
@media (max-width: 700px) { .service-area-map { height: 320px; } }

/* Section Patron sur chantier */
.patron-inner { max-width: 760px; }
.patron-points { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.patron-points li { position: relative; padding-left: 22px; color: var(--gray); font-size: 15px; line-height: 1.6; }
.patron-points li::before { content: ''; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

/* Avis Google */
.review-card { background: #fff; border: 1px solid #eceef4; border-radius: var(--radius-md); padding: 24px; box-shadow: 0 1px 2px rgba(16,20,40,.04); display: flex; flex-direction: column; gap: 12px; }
.review-head { display: flex; align-items: center; gap: 12px; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.review-author { margin: 0; font-weight: 700; font-size: 15px; color: var(--navy); }
.review-date { margin: 0; font-size: 13px; color: #9a9dab; }
.review-stars { margin: 0; color: #e8a33d; font-size: 15px; letter-spacing: 2px; }
.btn-outline-dark { border: 2px solid var(--navy); color: var(--navy); background: transparent; padding: 11px 20px; border-radius: var(--radius-sm); font-weight: 700; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; transition: background-color .15s ease, color .15s ease; }
.btn-outline-dark:hover { background: var(--navy); color: #fff; }
.review-text { margin: 0; color: #3a3d4d; font-size: 14px; line-height: 1.65; }
.hero-media-placeholder { aspect-ratio: 4/3; font-size: 14px; font-weight: 600; }

/* Trust marquee */
.trust-strip { background: #fff; overflow: hidden; padding: 20px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.trust-strip-track { display: flex; gap: 56px; white-space: nowrap; width: max-content; animation: marquee 20s linear infinite; }
.trust-point { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; color: var(--navy); }
.trust-point i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); display: inline-block; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Cards grid */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 20px; }
.service-card, .value-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 26px; box-shadow: 0 1px 2px rgba(16,20,40,.04); transition: box-shadow .2s, transform .2s, border-color .2s; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--red), var(--navy)); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.service-card:hover { box-shadow: 0 12px 28px rgba(26,31,66,.12); transform: translateY(-4px); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); background: linear-gradient(155deg, var(--navy), var(--navy-deep)); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 4px 10px -4px rgba(26,31,66,.5); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 16px; }
.service-card h3, .value-card h3 { font-size: 17px; margin-bottom: 8px; }
.service-card p, .value-card p { color: var(--gray); font-size: 14px; margin: 0; }
.value-card { background: #fff; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.service-tag { background: #f6f7fa; color: var(--navy); font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 20px; }
.section-block.alt .value-card { background: #fff; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.service-tag { background: #f6f7fa; color: var(--navy); font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 20px; }

/* TikTok section */
.tiktok-section { padding: 64px 0; }
.tiktok-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); gap: 18px; }
.tiktok-placeholder { aspect-ratio: 9/16; border-radius: 14px; background: linear-gradient(155deg, #f6f7fa, #eceef4); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #9a9dab; }
.tiktok-play { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.tiktok-ph-label { font-size: 13px; font-weight: 600; text-align: center; padding: 0 12px; }
.tiktok-embed { border-radius: 14px; overflow: hidden; }
.tiktok-creator-embed { display: flex; justify-content: center; }

/* CTA band */
.cta-band { background: var(--navy); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; padding: 48px 24px; }
.cta-band h2, .cta-band p { color: #fff; margin: 0 0 6px; }
.cta-band p { color: #a9adc9; }

/* Footer */
.site-footer { background: #14172f; color: #a9adc9; }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 56px 24px 32px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-inner h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer-inner a { color: #a9adc9; display: block; margin-bottom: 10px; }
.footer-logo { color: #fff; margin-bottom: 12px; }
.footer-contact { font-size: 13px; margin-top: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; max-width: 1180px; margin: 0 auto; padding: 18px 24px; font-size: 12px; color: #6d7192; }

/* Mobile sticky bar */
.mobile-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; display: none; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -2px 10px rgba(0,0,0,.06); }
.mobile-bar a, .mobile-bar-quote { flex: 1; display: flex; align-items: center; justify-content: center; padding: 16px; font-weight: 700; font-size: 15px; text-decoration: none; }
.mobile-bar-call { color: var(--navy); border-right: 1px solid var(--line); }
.mobile-bar-quote { background: var(--red); color: #fff; border: none; }

.floating-call { position: fixed; bottom: 28px; right: 28px; z-index: 55; display: flex; align-items: center; gap: 10px; background: var(--red); color: #fff; padding: 16px 22px; border-radius: 50px; font-weight: 700; font-size: 15px; text-decoration: none; box-shadow: 0 8px 24px rgba(226,37,44,.4); }
.floating-call svg { animation: floatDot 2.2s ease-in-out infinite; }
.floating-call:hover { color: #fff; transform: translateY(-3px); }
@media (max-width: 900px) { .floating-call { display: none; } }

/* Cookie banner */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: var(--navy); color: #fff; padding: 20px 24px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; justify-content: space-between; animation: slideUp .35s ease both; }
.cookie-banner[hidden] { display: none; }
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions button { padding: 11px 18px; border-radius: 6px; font-weight: 600; font-size: 13px; cursor: pointer; border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; }
.cookie-actions .btn-primary { background: var(--red); border: none; }

/* Modale des préférences cookies */
.cookie-modal-overlay { position: fixed; inset: 0; background: rgba(15,17,35,.6); z-index: 70; display: flex; align-items: center; justify-content: center; padding: 24px; }
.cookie-modal-overlay[hidden] { display: none; }
.cookie-modal { background: #fff; border-radius: 12px; padding: 32px; max-width: 440px; width: 100%; animation: scaleIn .25s ease both; }
.cookie-modal h3 { font-size: 18px; font-weight: 800; margin: 0 0 18px; }
.cookie-modal-rows { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.cookie-modal-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; color: var(--ink); }
.cookie-modal-status { font-size: 12px; color: #9a9dab; font-weight: 600; }
.cookie-modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.cookie-modal-actions button { padding: 11px 18px; border-radius: 6px; font-weight: 600; font-size: 13px; cursor: pointer; border: none; background: var(--bg-alt); color: var(--navy); }
.cookie-modal-actions .btn-primary { background: var(--red); color: #fff; font-weight: 700; }

/* Forms */
.form-grid { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--navy); }
.form-grid input, .form-grid select, .form-grid textarea { padding: 12px 14px; border: 1px solid #d8dae4; border-radius: 6px; font-size: 15px; font-family: inherit; transition: border-color .15s ease, box-shadow .15s ease; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(226,37,44,.12); }
.form-error { color: #c81e24; font-size: 14px; }
.form-success { background: var(--bg-alt); border-radius: 12px; padding: 32px; text-align: center; }

/* FAQ accordion */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 10px; transition: border-color .15s ease; }
.faq-item:hover { border-color: #c7cae0; }
.faq-question { width: 100%; text-align: left; background: #fff; border: none; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 15px; font-weight: 700; color: var(--navy); }
.faq-question span { transition: transform .2s ease; color: var(--red); }
.faq-item.open .faq-question span { transform: rotate(45deg); }
.faq-answer { padding: 0 20px 20px; color: var(--gray); font-size: 14px; line-height: 1.6; display: none; }
.faq-item.open .faq-answer { display: block; animation: fadeIn .25s ease both; }

/* Galerie de réalisations */
.realisations-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.realisation-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 3px rgba(16,20,40,.04); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.realisation-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(26,31,66,.1); border-color: rgba(26,31,66,.18); }
.realisation-media { position: relative; width: 100%; aspect-ratio: 4/3; overflow: hidden; background: #0f1123; }
.realisation-media img, .realisation-media video, .realisation-media .ba-slider { width: 100%; height: 100%; object-fit: cover; display: block; }
.realisation-media video { background: #0f1123; }
.realisation-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; justify-content: flex-start; }
.realisation-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.realisation-tag { background: #f6f7fa; color: var(--navy); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.realisation-badge-video { background: rgba(226,37,44,.1); color: var(--red); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; display: inline-flex; align-items: center; gap: 4px; }
.realisation-title { font-size: 15px; font-weight: 700; color: var(--navy); margin: 0; line-height: 1.4; }

/* Lightbox */
.lightbox-overlay { position: fixed; inset: 0; background: rgba(15,17,35,.92); z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox-overlay.open { display: flex; }
.lightbox-content { max-width: 720px; width: 100%; }
/* Pas de ratio ni de object-fit:cover imposés ici : contrairement aux
   vignettes de la grille (recadrées en 4:3, c'est voulu), le lightbox sert à
   voir la photo en entier — elle garde ses proportions naturelles, juste
   limitée en hauteur pour rester dans l'écran. */
.lightbox-frame { text-align: center; }
.lightbox-img { display: block; max-width: 100%; max-height: 80vh; width: auto; height: auto; margin: 0 auto; cursor: zoom-in; transition: transform .25s ease; transform-origin: center center; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
.lightbox-img.is-zoomed { cursor: zoom-out; transform: scale(2.2); }

/* Grilles 2 colonnes réutilisées sur devis/contact/à propos/service, avec
   repli automatique en 1 colonne sur mobile (voir media query ci-dessous). */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-2-wide { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.grid-main-aside { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; }
.grid-2-wide-uneven { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 64px; }
  .footer-inner { grid-template-columns: 1fr; }
  .grid-2, .grid-2-wide, .grid-main-aside, .grid-2-wide-uneven { grid-template-columns: 1fr; }

  /* Le menu mobile (ouvert via #navToggle, voir main.js) s'affichait en
     ligne horizontale coupée par le bord de l'écran, illisible et
     inutilisable au clic. Sur petit écran, il devient un panneau déroulant
     plein largeur sous l'en-tête, avec des liens empilés et de vraies
     zones de clic. */
  .main-nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 16px 28px rgba(10,14,40,.14);
    padding: 6px 24px 18px;
    max-height: calc(100vh - 100%);
    overflow-y: auto;
  }
  .main-nav.open a { padding: 14px 2px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .main-nav.open a.nav-cta { border-bottom: none; margin-top: 14px; justify-content: center; animation: none; }
}

@media (max-width: 480px) {
  .contact-cta { width: 100%; }
  .contact-cta-toggle { width: 100%; }
  .contact-cta-panel { left: 0; right: 0; width: auto; max-width: none; }
}
