/* ============================================================
   SSB SERVICES SOLUTIONS BOIS — styles.css
   Mobile-first, stylesheet unique
   ============================================================ */

/* --- RESET --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

button {
  font-family: 'Jost', sans-serif;
}

/* --- VARIABLES --- */
:root {
  --primary: #1B4D3E;
  --primary-dark: #133729;
  --primary-light: #f0f4f1;
  --primary-rgb: 27, 77, 62;
  --accent: #C8872A;
  --dark: #1a1a1a;
  --gray: #6b7280;
  --gray-bg: #f8f9fa;
  --white: #ffffff;
  --nav-h: 70px;
  --transition: 0.3s ease;
  --radius: 14px;
}

/* --- TYPOGRAPHIE --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  color: var(--dark);
}

p:not(:last-child) {
  margin-bottom: 1rem;
}

/* --- UTILITAIRES --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-family: 'Playfair Display', serif;
  margin-bottom: 1rem;
  color: var(--dark);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

section {
  padding: 80px 0;
}

/* --- FADE IN --- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAVBAR
   ============================================================ */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), transform 0.35s ease;
}

#navbar.scrolled {
  background: var(--white);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.07);
  --nav-h: 70px;
}

#navbar.scrolled .nav-brand img {
  height: 36px;
}

#navbar.nav-hidden {
  transform: translateY(-100%);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 24px;
  max-width: 1400px;
  margin: 0 auto;
  transition: height 0.3s ease;
}

.nav-brand {
  position: relative;
  z-index: 1001;
  flex-shrink: 0;
}

.nav-brand img {
  height: 56px;
  width: auto;
  transition: opacity 0.2s ease, height 0.3s ease;
}

/* Menu mobile — overlay plein écran */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 998;
}

.nav-overlay.open {
  transform: translateX(0);
}

.nav-overlay .nav-link {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition);
}

.nav-overlay .nav-link:hover {
  color: var(--white);
}

.nav-overlay .nav-cta {
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 50px;
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: background var(--transition);
}

.nav-overlay .nav-cta:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 6px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
  transform-origin: center;
}

#navbar.scrolled .hamburger span {
  background: var(--dark);
}

/* Hamburger becomes scrolled but overlay is open — keep white */
.hamburger.open span {
  background: var(--white) !important;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */

#hero {
  position: relative;
  height: 100vh;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  scroll-margin-top: 0;
}

.hero-bg {
  position: absolute;
  inset: -20% 0;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center top;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
  max-width: 840px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 5.5vw, 3.2rem);
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 4px;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white);
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: background var(--transition), transform var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.scroll-arrow {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255, 255, 255, 0.65);
  animation: bounce-arrow 2s ease-in-out infinite;
}

.scroll-arrow svg {
  width: 30px;
  height: 30px;
}

/* ============================================================
   SERVICES
   ============================================================ */

#services {
  background: var(--primary-light);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  color: var(--accent);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ============================================================
   RÉALISATIONS (aperçu index)
   ============================================================ */

#realisations {
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 40px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: var(--gray-bg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(var(--primary-rgb), 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
  background: rgba(var(--primary-rgb), 0.28);
}

.gallery-item-overlay svg {
  color: var(--white);
  width: 40px;
  height: 40px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity var(--transition), transform var(--transition);
}

.gallery-item:hover .gallery-item-overlay svg {
  opacity: 1;
  transform: scale(1);
}

.gallery-more {
  text-align: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background var(--transition), transform var(--transition);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */

#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#lightbox.active {
  opacity: 1;
  pointer-events: all;
}

#lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  user-select: none;
  -webkit-user-drag: none;
  display: block;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  flex-shrink: 0;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* ============================================================
   À PROPOS
   ============================================================ */

#apropos {
  background: var(--gray-bg);
}

.apropos-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.apropos-img-wrap {
  flex-shrink: 0;
}

.apropos-img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  max-height: 420px;
  display: block;
}

.apropos-text h2 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  margin-bottom: 8px;
}

.apropos-text .section-label {
  margin-bottom: 8px;
}

.apropos-text p {
  color: var(--gray);
  font-size: 0.93rem;
  line-height: 1.8;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid #dde5df;
}

.stat-item {
  flex: 1;
  min-width: 90px;
}

.stat-value {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--gray);
  font-weight: 300;
  line-height: 1.4;
}

/* Texte à propos repliable — global (mobile + desktop) */
.apropos-extra {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease;
}

.apropos-extra.open {
  max-height: 2000px;
}

.apropos-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  background: transparent;
  border: 1px solid #9ca3af;
  color: var(--gray);
  padding: 8px 20px;
  border-radius: 50px;
  font-family: 'Jost', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}

.apropos-toggle:hover {
  border-color: var(--dark);
  color: var(--dark);
}

.apropos-toggle-icon {
  font-size: 0.8rem;
  display: inline-block;
  transition: transform 0.35s ease;
}

.apropos-toggle.open .apropos-toggle-icon {
  transform: rotate(180deg);
}

/* ============================================================
   AVIS CLIENTS — CAROUSEL
   ============================================================ */

#avis {
  background: var(--white);
}

.carousel-wrapper {
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  will-change: transform;
}

.review-card {
  flex-shrink: 0;
  width: 100%;
  padding: 0 8px;
  box-sizing: border-box;
}

.review-inner {
  background: var(--gray-bg);
  border-radius: var(--radius);
  padding: 28px 24px;
  border-left: 3px solid var(--accent);
  height: 100%;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-stars {
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.review-text {
  font-style: italic;
  color: var(--dark);
  font-size: 0.93rem;
  line-height: 1.72;
  flex-grow: 1;
  margin-bottom: 16px;
}

.review-author {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary);
}

.review-meta {
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 2px;
}

.review-placeholder {
  display: none;
}

.review-placeholder .review-inner {
  justify-content: center;
  align-items: center;
  text-align: center;
  border-left: none;
  border: 2px dashed #dde5df;
  background: transparent;
}

.review-placeholder-text {
  color: var(--gray);
  font-style: italic;
  font-size: 0.88rem;
}

.avis-cta {
  text-align: center;
  margin-top: 28px;
}

.btn-google-review {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
  padding: 11px 24px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background var(--transition), color var(--transition);
}

.btn-google-review:hover {
  background: var(--primary);
  color: var(--white);
}

/* ============================================================
   CONTACT
   ============================================================ */

#contact {
  background:
    linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    url('images/contact-bg.jpg') center / cover no-repeat;
  color: var(--white);
  padding-bottom: 80px;
}

#contact .section-label {
  color: rgba(255, 255, 255, 0.55);
}

#contact .section-title {
  color: var(--white);
}

.contact-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  letter-spacing: 1px;
  margin-top: -4px;
  margin-bottom: 40px;
}

.contact-btns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 440px;
  margin: 0 auto 56px;
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 14px 12px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background var(--transition), transform var(--transition);
  cursor: pointer;
  text-align: center;
}

.contact-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

/* Formulaire */
#formulaire {
  max-width: 540px;
  margin: 0 auto;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

.form-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 24px;
  text-align: center;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  color: var(--white);
  font-family: 'Jost', sans-serif;
  font-size: 0.93rem;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
}

.form-group select option {
  background: var(--primary-dark);
  color: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.botcheck {
  display: none;
}

.form-submit {
  width: 100%;
  padding: 14px 24px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  margin-top: 8px;
}

.form-submit:hover {
  background: #b0771f;
  transform: translateY(-2px);
}

.form-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.form-success {
  text-align: center;
  padding: 40px 24px;
  font-size: 1rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  line-height: 1.6;
}

.form-error {
  text-align: center;
  padding: 16px;
  font-size: 0.9rem;
  color: #fca5a5;
  background: rgba(255, 0, 0, 0.1);
  border-radius: 10px;
  margin-top: 12px;
  border: 1px solid rgba(255, 100, 100, 0.2);
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  background: #111;
  color: rgba(255, 255, 255, 0.55);
  padding: 52px 24px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-logo {
  margin-bottom: 0;
}

.footer-logo img {
  height: 68px;
  width: auto;
  opacity: 0.78;
}

.footer-tagline {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.28);
  text-transform: uppercase;
  margin-top: 10px;
  line-height: 1.5;
}

.footer-col-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 4px;
}

.footer-col-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition);
}

.footer-contact-link:hover {
  color: var(--white);
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 8px 0 0;
}

.footer-bottom-wrap {
  max-width: 1200px;
  margin: 20px auto 0;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.77rem;
  color: rgba(255, 255, 255, 0.32);
  text-align: center;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.45);
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* ============================================================
   BOUTONS FLOTTANTS
   ============================================================ */

#float-mobile {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--primary);
  color: var(--white);
  padding: 13px 20px;
  border-radius: 30px;
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  animation: pulse-cta 2.2s ease-in-out infinite;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

#float-mobile.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

#float-desktop-wrap {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 900;
  align-items: center;
  gap: 6px;
  opacity: 1;
  transition: opacity 0.35s ease;
}

#float-desktop-wrap.contact-visible {
  opacity: 0;
  pointer-events: none;
}

.float-desktop-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white);
  padding: 13px 22px;
  border-radius: 30px;
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  animation: pulse-cta 2.2s ease-in-out infinite;
  transition: background var(--transition);
}

.float-desktop-btn:hover {
  background: var(--primary-dark);
}

.float-close-btn {
  background: rgba(0, 0, 0, 0.12);
  border: none;
  color: var(--dark);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  flex-shrink: 0;
}

.float-close-btn:hover {
  background: rgba(0, 0, 0, 0.22);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes pulse-cta {
  0%, 100% {
    box-shadow: 0 4px 18px rgba(var(--primary-rgb), 0.35), 0 0 0 0 rgba(var(--primary-rgb), 0.45);
  }
  50% {
    box-shadow: 0 4px 18px rgba(var(--primary-rgb), 0.35), 0 0 0 10px rgba(var(--primary-rgb), 0);
  }
}

@keyframes bounce-arrow {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(9px); }
}

/* ============================================================
   PAGE RÉALISATIONS — SPÉCIFIQUE
   ============================================================ */

.page-hero {
  padding: calc(var(--nav-h) + 60px) 24px 60px;
  background: var(--primary-light);
  text-align: center;
}

.page-hero .contact-subtitle {
  color: var(--gray);
}

.page-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.88rem;
  margin-bottom: 20px;
  transition: gap var(--transition);
}

.page-back:hover {
  gap: 10px;
}

.realisations-section {
  padding: 60px 0 80px;
  background: var(--white);
}

.realisations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

/* ============================================================
   PAGE MENTIONS LÉGALES — SPÉCIFIQUE
   ============================================================ */

.legal-wrap {
  padding: calc(var(--nav-h) + 60px) 24px 80px;
  max-width: 820px;
  margin: 0 auto;
}

.legal-wrap h1 {
  margin-bottom: 40px;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.legal-block {
  margin-bottom: 40px;
}

.legal-block h2 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 10px;
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.legal-block p {
  color: var(--gray);
  font-size: 0.92rem;
  line-height: 1.75;
}

.legal-block a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   RESPONSIVE — TABLETTE (≥ 600px)
   ============================================================ */

@media (min-width: 600px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    gap: 14px;
  }

  .realisations-grid {
    gap: 14px;
  }
}

/* ============================================================
   RESPONSIVE — DESKTOP (≥ 769px)
   ============================================================ */

@media (min-width: 769px) {
  :root {
    --nav-h: 94px;
  }

  .nav-brand img {
    height: 85px;
  }

  /* Navbar */
  .nav-overlay {
    position: static;
    background: transparent;
    flex-direction: row;
    transform: none !important;
    transition: none;
    gap: 1.6rem;
    z-index: auto;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
  }

  .nav-overlay .nav-link {
    font-family: 'Jost', sans-serif;
    font-size: 0.92rem;
    font-style: normal;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
  }

  #navbar.scrolled .nav-overlay .nav-link {
    color: var(--dark);
  }

  .nav-overlay .nav-cta {
    background: var(--primary);
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.88rem;
    margin-top: 0;
    color: var(--white) !important;
  }

  #navbar.scrolled .nav-overlay .nav-cta {
    background: var(--primary);
  }

  #navbar.scrolled .nav-brand img {
    height: 52px;
  }

  .hamburger {
    display: none;
  }

  /* Hero */
  .hero-title {
    letter-spacing: 6px;
  }

  /* Services */
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .realisations-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  /* À propos */
  .apropos-layout {
    flex-direction: row;
    gap: 64px;
    align-items: flex-start;
  }

  .apropos-img-wrap {
    width: 44%;
    flex-shrink: 0;
  }

  .apropos-img {
    max-height: none;
    height: 600px;
  }

  /* Carousel */
  .review-card {
    width: calc(100% / 3);
  }

  /* Contact */
  .contact-btns {
    grid-template-columns: repeat(4, 1fr);
    max-width: 680px;
  }

  /* Footer */
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: start;
    gap: 0;
  }

  .footer-col {
    padding: 0;
  }

  .footer-col:nth-child(2) {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-col:nth-child(2) .footer-contacts {
    align-items: center;
  }

  .footer-col:last-child {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
  }

  .footer-bottom-wrap {
    margin-top: 24px;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  /* Floating buttons */
  #float-mobile {
    display: none !important;
  }

  #float-desktop-wrap {
    display: flex;
  }
}

/* ============================================================
   RESPONSIVE — GRAND ÉCRAN (≥ 1024px)
   ============================================================ */

@media (min-width: 1024px) {
  section {
    padding: 100px 0;
  }

  .services-grid {
    gap: 28px;
  }
}

/* ============================================================
   MOBILE UNIQUEMENT (≤ 768px)
   ============================================================ */

@media (max-width: 768px) {

  /* 1. Hero : ancrer sur le haut de la photo sans débord parallax */
  .hero-bg {
    inset: 0;
    background-position: center top;
  }

  /* 2. Services — accordéon */
  .service-card {
    cursor: pointer;
  }

  .service-card .service-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
  }

  .service-card h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
  }

  .service-card h3::after {
    content: '+';
    font-family: 'Jost', sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--accent);
    line-height: 1;
    flex-shrink: 0;
    margin-left: 12px;
    transition: transform 0.3s ease;
  }

  .service-card.open h3::after {
    transform: rotate(45deg);
  }

  .service-card p {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    margin-bottom: 0;
  }

  .service-card.open p {
    max-height: 300px;
    opacity: 1;
    margin-bottom: 0;
  }

  /* 3. Carrousel avis — carte unique centrée */
  .carousel-track.single-review {
    justify-content: center;
  }

  .carousel-track.single-review .review-card {
    width: 100%;
  }

  /* 4. À propos — sur mobile, p3 aussi caché par défaut */
  .apropos-p3 {
    display: none;
  }

  .apropos-p3.open {
    display: block;
  }

}

@media (max-width: 768px) {
  #hero {
    align-items: stretch;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 70vh;
    padding: 15vh 24px 60px;
  }

  .hero-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .hero-btn {
    align-self: center;
  }
}

