/* =========================================================
   Maison Stark Landing Page Styles
   Author: AI Cascade
   ========================================================= */

/* ------------------ CSS Custom Properties ------------------ */
:root {
  --color-primary: #033b83; /* Bleu nuit */
  --color-accent: #148f77; /* Vert turquoise */
  --color-light: #d1f0f8; /* Bleu clair */
  --color-white: #ffffff;
  --color-text: #14202e;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);

  --transition: 0.3s ease;
}

/* ------------------ Reset & Basics ------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
}
img {
  max-width: 100%;
  height: 100%;
  display: block;
}
ul {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Utility class to visually hide elements but keep them accessible */
.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;
}

/* ------------------ Layout Helpers ------------------ */
.container {
  width: min(90%, 1200px);
  margin-inline: auto;
}

/* ------------------ Atouts Maison Stark ------------------ */
.atouts {
  background: var(--color-light);
  color: var(--color-primary);
  padding: 3.5rem 0 3rem 0;
}
.atouts h2 {
  color: var(--color-primary);
}
.atout ul {
  color: var(--color-primary);
}
.atout ul li {
  color: var(--color-primary);
}
.atouts__grid {
  max-width: 1200px;
  margin-inline: auto;
}
.atouts__grid > h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--color-primary);
}
.atouts__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
@media (max-width: 900px) {
  .atouts__items {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
.atout {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(3, 59, 131, 0.1);
  padding: 2.2rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  min-height: 340px;
}
.atout__icon {
  margin-bottom: 1.2rem;
  display: block;
  width: 48px;
  height: 48px;
  margin-left: auto;
  margin-right: auto;
  filter: drop-shadow(0 2px 8px rgba(20, 143, 119, 0.09));
}
.atout h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 1.1rem;
  color: var(--color-primary);
  text-align: center;
  line-height: 1.3;
}
.atout ul {
  padding-left: 1.2rem;
  margin: 0;
  font-size: 1rem;
  color: #fff;
}
.atout ul li {
  margin-bottom: 0.6rem;
  line-height: 1.55;
  position: relative;
  color: var(--color-primary);
}
.atout ul li:last-child {
  margin-bottom: 0;
}
.atout ul strong {
  color: #148f77;
  font-weight: 600;
}

.atouts__grid {
  padding-top: 2rem;
}

/* ------------------ Services Overview ------------------ */
.services-overview {
  padding: 4rem 0;
}
.services-overview h2 {
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 2.5rem;
  color: var(--color-primary);
}
.cards-grid {
  display: grid;
  gap: 2.5rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  place-content: center;
}

@media (min-width: 992px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  padding: 3rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.card .icon img {
  width: 72px;
  height: 72px;
  margin-bottom: 1.5rem;
  transform: scale(1);
  opacity: 1;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.card:is(:hover, :focus-within) .icon img {
  transform: scale(1.12) rotate(3deg);
}
.card h3 {
  margin-bottom: 0.85rem;
  color: var(--color-primary);
  font-size: 1.35rem;
  font-weight: 600;
}
.card p {
  flex: 1;
  color: var(--color-text);
  margin-bottom: 1.25rem;
}
.btn-link {
  color: var(--color-accent);
  font-weight: 600;
  transition: color var(--transition);
}
.btn-link:hover {
  color: #0d5e4d;
  text-decoration: underline;
}

/* ------------------ Services (legacy) ------------------ */
.services {
  padding: 4rem 0;
}
.services__grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1200px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.service {
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.service__icon {
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}
.service h3 {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
  font-size: 1.1rem;
}

.projects {
  padding: 4rem 0;
  background: var(--color-light);
}
#projects-title {
  font-family: "Playfair Display", serif;
  text-align: center;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 3rem;
  color: var(--color-primary);
}
.projects-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  max-width: 900px;
  margin-inline: auto;
}
.project-tile {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #ccc;
  transition: transform 0.35s ease;
  opacity: 1;
}
.project-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}
.project-tile > .before,
.project-tile .after {
  position: absolute;
  inset: 0;
}
.project-tile > .before {
  z-index: 1;
}
.project-tile > .before img,
.project-tile .after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
  display: block;
}

.project-tile .after {
  width: 50%;
  overflow: hidden;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  right: 0;
  left: auto;
}
.project-tile:hover .after {
  width: 0%;
}
.split-handle {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(135deg, var(--color-accent), #0ea5e9);
  cursor: ew-resize;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(20, 143, 119, 0.3);
}
.project-tile:hover .split-handle {
  left: 100%;
  transform: translateX(-2px);
  box-shadow: 0 4px 12px rgba(20, 143, 119, 0.4);
}
.split-handle::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), #0ea5e9);
  box-shadow: 0 2px 8px rgba(20, 143, 119, 0.25);
  transition: all 0.2s ease;
}
.split-handle::after {
  content: "⟷";
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-accent);
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.split-handle:hover::before {
  transform: translateY(-50%) scale(1.1);
}
.split-handle:hover::after {
  transform: translateY(-50%) scale(1.1);
  background: #fff;
}

.label {
  position: absolute;
  top: 8px;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  z-index: 4;
}
.label--before {
  left: 8px;
}
.label--after {
  right: 8px;
}

/* Mobile responsive pour les projets */
@media (max-width: 768px) {
  .projects-grid {
    gap: 1.5rem;
  }
  .project-tile {
    aspect-ratio: 3/2;
  }
  .split-handle {
    width: 3px;
  }
  .split-handle::before {
    width: 16px;
    height: 16px;
    left: -6px;
  }
  .split-handle::after {
    width: 16px;
    height: 16px;
    left: -6px;
    font-size: 8px;
  }
  .label {
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
  }
}

@media (max-width: 480px) {
  .projects {
    padding: 2rem 0;
  }
  .projects-grid {
    gap: 1rem;
  }
  .project-tile {
    aspect-ratio: 16/10;
  }
  .split-handle {
    width: 2px;
  }
  .split-handle::before {
    width: 14px;
    height: 14px;
    left: -5px;
  }
  .split-handle::after {
    width: 14px;
    height: 14px;
    left: -5px;
    font-size: 7px;
  }
}

/* ------------------ Contact Section ------------------ */
.contact-section {
  background: var(--color-light);
  padding: 4rem 0;
  text-align: center;
}
.contact-section h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 2rem;
  color: var(--color-primary);
}
.contact__form {
  margin-inline: auto;
  max-width: 600px;
}

/* WOW Logo animation */
.hero__logo-wow {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  animation: floatLogo 4s ease-in-out infinite;
}
.hero__logo-wow .hero__logo-big {
  max-width: 340px;
  width: 60vw;
  min-width: 180px;
  filter: drop-shadow(0 8px 32px rgba(3, 59, 131, 0.14));
  opacity: 0;
  transform: scale(0.8) translateY(40px);
  animation: logoIn 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0.2s forwards,
    floatLogo 4s ease-in-out infinite 1.2s;
}
@keyframes logoIn {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(40px);
  }
  80% {
    opacity: 1;
    transform: scale(1.08) translateY(-8px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@keyframes floatLogo {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}
@media (max-width: 767px) {
  .hero__logo-wow {
    min-height: 180px;
  }
  .hero__logo-wow .hero__logo-big {
    max-width: 180px;
  }
}
.footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 2rem 0;
}
.footer__grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
    align-items: start;
  }
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: flex-end;
}
.footer__brand img,
.footer-logo {
  height: 96px;
  width: auto;
  background: #fff;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-right: 0;
}
@media (max-width: 767px) {
  .footer__brand img,
  .footer-logo {
    height: 64px;
    padding: 8px;
  }
  .footer__brand {
    justify-content: center;
    gap: 1rem;
  }
}
.footer__contact a {
  display: inline-block;
  margin-top: 0.25rem;
  color: var(--color-light);
}
.footer__nav ul li {
  margin-bottom: 0.25rem;
}
.footer__nav a:hover {
  text-decoration: underline;
}
.footer p {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--color-light);
}

.atouts__grid--item {
  padding-top: 2rem;
  display: flex;
}

.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}
.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(20, 143, 119, 0.08);
  transition: background 0.2s, box-shadow 0.2s;
  padding: 0.75em 2em;
  font-size: 1.1rem;
  min-width: unset;
  display: inline-block;
  margin: 1.5rem auto 0 auto;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.btn--primary:hover,
.btn--primary:focus {
  background: #11705e;
  box-shadow: 0 4px 12px rgba(20, 143, 119, 0.13);
}
.btn--secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn--secondary:hover,
.btn--secondary:focus {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ------------------ Header ------------------ */
.nav ul {
  display: flex;
  gap: 1.5rem;
}
.nav a {
  color: var(--color-primary);
  font-weight: 500;
  transition: color var(--transition);
}
.nav a:hover {
  color: var(--color-accent);
}
.whatsapp-link {
  margin-left: 1.5rem;
  display: inline-flex;
  align-items: center;
}
.whatsapp-icon {
  display: block;
}

.header {
  height: 80px;
  display: flex;
  align-items: center;
  background: var(--color-white);
  box-shadow: 0 1px 0 rgba(0, 59, 131, 0.06);
  position: sticky;
  top: 0;
  z-index: 1100; /* Above nav-overlay (1001) */
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.header__brand {
  flex: 0 0 auto;
}
.nav {
  flex: 1 1 0;
  display: flex;
  justify-content: center;
}
.nav ul {
  display: flex;
  gap: 2.5rem;
}
.whatsapp-link {
  flex: 0 0 auto;
  margin-left: 2rem;
  display: flex;
  align-items: center;
}
.logo--big {
  height: 80px;
  max-width: 160px;
}

/* ------------------ Mobile Navigation ------------------ */
.nav {
  z-index: 1002;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  cursor: pointer;
}
.nav--li {
  display: flex;
  justify-content: center;
  align-items: center;
}
.nav--a {
  text-align: center;
}
body.no-scroll {
  overflow: hidden;
}
@media (max-width: 767px) {
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 75%;
    background: var(--color-white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 100px;
    transform: translateX(100%);
    transition: transform var(--transition);
  }
  .nav ul {
    flex-direction: column;
    gap: 2rem;
  }
  .header.nav-open .nav {
    transform: translateX(0);
  }
  .whatsapp-link {
    display: none;
  }
}

/* Overlay for mobile nav */
.nav-overlay {
  display: none;
  position: fixed;
  z-index: 1001;
  inset: 0;
  background: rgba(0, 24, 48, 0.32);
  transition: opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}
.nav-open .nav-overlay {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* ------------------ Hero ------------------ */
@media (max-width: 767px) {
  .hero--banner {
    background: url("img/maison-cubique.jpg") center 22% / contain no-repeat;
    background-color: #1a2331;
  }
}
.hero--banner {
  position: relative;
  min-height: 100vh;
  background: url("img/maison-cubique.jpg") center 40% / cover no-repeat;
  background-color: #1a2331; /* fallback for letterboxing */
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero--banner::before {
  /* On retire l'assombrissement global pour laisser la photo "bluffer" */
  content: none;
}
.hero__banner {
  position: relative;
  text-align: center;
  z-index: 1;
  max-width: 650px;
  padding: 0 1rem;
}
.hero__banner::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.42);
  border-radius: 1.5rem;
  z-index: -1;
  filter: blur(2px);
}
.hero__banner > * {
  position: relative;
  z-index: 1;
}

/* ---------- Hero overlay for Menuiseries & Energies pages ---------- */
.hero-menuiseries__content {
  position: relative;
  text-align: center;
  z-index: 1;
  max-width: 800px;
  padding: 0 1rem;
}
.hero-menuiseries__content::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.42);
  border-radius: 1.5rem;
  z-index: -1;
  filter: blur(2px);
}
.hero-menuiseries__content > * {
  position: relative;
  z-index: 1;
}

.hero__banner h1 {
  margin-top: 8.5rem;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.15;
  color: var(--color-white);
}

.hero__subtitle {
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.1rem, 2.7vw, 1.55rem);
  font-weight: 400;
  color: #fff !important;
  margin: 1.1rem auto 0 auto;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.18), 0 1px 0 #000;
  letter-spacing: 0.01em;
  max-width: 32rem;
}

.hero__banner .btn {
  margin-top: 3.5rem;
}
.hero__heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero__logo {
  height: 40px;
  width: auto;
  display: block;
}
.hero:not(.hero--banner) {
  background: var(--color-light);
}
.hero__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: 4rem 0;
  grid-template-columns: 1fr;
}
@media (min-width: 1200px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
  }
}
.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-left: 10vw;
}
@media (max-width: 1199px) {
  .hero__content {
    padding-left: 0;
  }
}
.hero__content h1,
.hero__content p {
  text-align: center;
  max-width: 32rem;
}

.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.hero__logo-big {
  max-width: 80%;
  height: auto;
}
.hero__form {
  margin-top: 2rem;
}
@media (max-width: 1199px) {
  .hero__visual {
    margin: 2rem 0 0 0;
  }
}
@media (max-width: 767px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__logo-big {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
    margin-bottom: 2rem;
    max-width: 70vw;
  }
}

@media (min-width: 1200px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
  }
}

.hero__content h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--color-primary);
}
.hero__content p {
  margin: 1rem 0 2rem;
  max-width: 36ch;
}

/* Hero contact form */
.form {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.form__group {
  display: flex;
  margin-bottom: 1rem;
  border-radius: 10px;
  flex-direction: column;
}
.form__set {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-left: 10px;
  margin-left: 10px;
}
.form__set label {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.form__set input {
  margin-left: 10px !important;
  margin-right: 10px !important;
}
.form__group label {
  margin-bottom: 0.25rem;
  font-weight: 500;
}
.form__group input,
.form__group textarea {
  padding: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--color-primary) 20%, #fff);
  border-radius: var(--radius-sm);
  font: inherit;
}
.form__group input:focus,
.form__group textarea:focus {
  border-color: var(--color-accent);
  outline: none;
}
.form button {
  margin-top: 0.5rem;
  width: 100%;
}

/* ------------------ Testimonials ------------------ */
.testimonials {
  padding: 4rem 0;
  background: var(--color-white);
}
#testimonials-title {
  font-family: "Playfair Display", serif;
  text-align: center;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 3rem;
  color: var(--color-primary);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(3, 59, 131, 0.08);
  border: 1px solid rgba(3, 59, 131, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(3, 59, 131, 0.12);
}

.testimonial-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.testimonial-rating .stars {
  color: var(--color-accent);
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.testimonial-author {
  text-align: right;
}

.testimonial-author strong {
  display: block;
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.testimonial-location {
  color: #666;
  font-size: 0.9rem;
}

.testimonial-text {
  font-style: italic;
  line-height: 1.6;
  color: #333;
  margin: 0 0 1.5rem 0;
  font-size: 1rem;
  position: relative;
}

.testimonial-text::before {
  content: '"';
  font-size: 3rem;
  color: var(--color-accent);
  position: absolute;
  left: -0.5rem;
  top: -0.5rem;
  opacity: 0.3;
}

.testimonial-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #666;
  border-top: 1px solid #eee;
  padding-top: 1rem;
}

.testimonial-project {
  background: var(--color-light);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  color: var(--color-primary);
  font-weight: 500;
}

/* Mobile responsive pour testimonials */
@media (max-width: 768px) {
  .testimonials {
    padding: 3rem 0;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .testimonial-card {
    padding: 1.5rem;
  }
  .testimonial-header {
    flex-direction: column;
    gap: 1rem;
  }
  .testimonial-author {
    text-align: left;
  }
  .testimonial-meta {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}

/* ------------------ Projects ------------------ */
.projects__slider {
  display: none !important;
  width: 90%;
  max-width: 1000px;
  height: 60vh;
  max-height: 680px;
  border: 6px solid var(--color-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.projects__slider .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}
.projects__slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.projects__slider .swiper-pagination-bullet {
  background: var(--color-primary);
  opacity: 0.5;
}
.projects__slider .swiper-pagination-bullet-active {
  opacity: 1;
}
.projects {
  background: var(--color-light);
  padding: 4rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.projects__grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process {
    margin-top: 10px !important;
  }
}

/* Nav arrows */
.projects__slider .swiper-button-prev,
.projects__slider .swiper-button-next {
  color: #fff;
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.projects__slider .swiper-button-prev::after,
.projects__slider .swiper-button-next::after {
  font-size: 20px;
}
.projects__slider .swiper-button-prev {
  left: 12px;
}
.projects__slider .swiper-button-next {
  right: 12px;
}
.projects__slider:hover .swiper-button-prev,
.projects__slider:hover .swiper-button-next {
  background: rgba(0, 0, 0, 0.6);
}
.project__images {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
}
.project__images img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.7s ease;
}
.project__images img.project__after {
  opacity: 0;
}
.project__images:hover img.project__after {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .testimonial:hover,
  .project__images:hover img.project__after {
    transition: none;
  }
}
.project figcaption {
  margin-top: 0.5rem;
  font-weight: 500;
  text-align: center;
}


.process {
  margin-top: 130px !important;
}

/* ------------------ Atouts Maison Stark ------------------ */
.atouts {
  background: var(--color-light);
  color: var(--color-primary);
  padding: 3.5rem 0 3rem 0;
}
.atouts h2 {
  color: var(--color-primary);
}
.atout ul {
  color: var(--color-primary);
}
.atout ul li {
  color: var(--color-primary);
}
.atouts__grid {
  max-width: 1200px;
  margin-inline: auto;
}
.atouts__grid > h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--color-primary);
}
.atouts__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
@media (max-width: 900px) {
  .atouts__items {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
.atout {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(3, 59, 131, 0.1);
  padding: 2.2rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  min-height: 340px;
}
.atout__icon {
  margin-bottom: 1.2rem;
  display: block;
  width: 48px;
  height: 48px;
  margin-left: auto;
  margin-right: auto;
  filter: drop-shadow(0 2px 8px rgba(20, 143, 119, 0.09));
}
.atout h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 1.1rem;
  color: var(--color-primary);
  text-align: center;
  line-height: 1.3;
}
.atout ul {
  padding-left: 1.2rem;
  margin: 0;
  font-size: 1rem;
  color: #fff;
}
.atout ul li {
  margin-bottom: 0.6rem;
  line-height: 1.55;
  position: relative;
  color: var(--color-primary);
}
.atout ul li:last-child {
  margin-bottom: 0;
}
.atout ul strong {
  color: #148f77;
  font-weight: 600;
}

/* ------------------ Services Overview ------------------ */
.services-overview {
  padding: 4rem 0;
}
.services-overview h2 {
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 2.5rem;
  color: var(--color-primary);
}
.cards-grid {
  display: grid;
  gap: 2.5rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  place-content: center;
}

@media (min-width: 992px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  padding: 3rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.card .icon img {
  width: 72px;
  height: 72px;
  margin-bottom: 1.5rem;
  transform: scale(1);
  opacity: 1;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.card:is(:hover, :focus-within) .icon img {
  transform: scale(1.12) rotate(3deg);
}
.card h3 {
  margin-bottom: 0.85rem;
  color: var(--color-primary);
  font-size: 1.35rem;
  font-weight: 600;
}
.card p {
  flex: 1;
  color: var(--color-text);
  margin-bottom: 1.25rem;
}
.btn-link {
  color: var(--color-accent);
  font-weight: 600;
  transition: color var(--transition);
}
.btn-link:hover {
  color: #0d5e4d;
  text-decoration: underline;
}

/* ------------------ Services (legacy) ------------------ */
.services {
  padding: 4rem 0;
}
.services__grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1200px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.service {
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.service__icon {
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}
.service h3 {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
  font-size: 1.1rem;
}

/* ------------------ Projects ------------------ */
.projects {
  padding: 4rem 0;
  background: var(--color-light);
}
#projects-title {
  font-family: "Playfair Display", serif;
  text-align: center;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 3rem;
  color: var(--color-primary);
}
.projects-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  max-width: 900px;
  margin-inline: auto;
}
.project-tile {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #ccc;
  transition: transform 0.35s ease;
  opacity: 1;
}
.project-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}
.project-tile > .before,
.project-tile .after {
  position: absolute;
  inset: 0;
}
.project-tile > .before {
  z-index: 1;
}
.project-tile > .before img,
.project-tile .after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
  display: block;
}

.project-tile .after {
  width: 50%;
  overflow: hidden;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  right: 0;
  left: auto;
}
.project-tile:hover .after {
  width: 0%;
}
.split-handle {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(135deg, var(--color-accent), #0ea5e9);
  cursor: ew-resize;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(20, 143, 119, 0.3);
}
.project-tile:hover .split-handle {
  left: 100%;
  transform: translateX(-2px);
  box-shadow: 0 4px 12px rgba(20, 143, 119, 0.4);
}
.split-handle::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), #0ea5e9);
  box-shadow: 0 2px 8px rgba(20, 143, 119, 0.25);
  transition: all 0.2s ease;
}
.split-handle::after {
  content: "⟷";
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-accent);
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.split-handle:hover::before {
  transform: translateY(-50%) scale(1.1);
}
.split-handle:hover::after {
  transform: translateY(-50%) scale(1.1);
  background: #fff;
}

.label {
  position: absolute;
  top: 8px;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  z-index: 4;
}
.label--before {
  left: 8px;
}
.label--after {
  right: 8px;
}

/* Mobile responsive pour les projets */
@media (max-width: 768px) {
  .projects-grid {
    gap: 1.5rem;
  }
  .project-tile {
    aspect-ratio: 3/2;
  }
  .split-handle {
    width: 3px;
  }
  .split-handle::before {
    width: 16px;
    height: 16px;
    left: -6px;
  }
  .split-handle::after {
    width: 16px;
    height: 16px;
    left: -6px;
    font-size: 8px;
  }
  .label {
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
  }
}

@media (max-width: 480px) {
  .projects {
    padding: 2rem 0;
  }
  .projects-grid {
    gap: 1rem;
  }
  .project-tile {
    aspect-ratio: 16/10;
  }
  .split-handle {
    width: 2px;
  }
  .split-handle::before {
    width: 14px;
    height: 14px;
    left: -5px;
  }
  .split-handle::after {
    width: 14px;
    height: 14px;
    left: -5px;
    font-size: 7px;
  }
}

/* ------------------ Contact Section ------------------ */
.contact-section {
  background: var(--color-light);
  padding: 4rem 0;
  text-align: center;
}
.contact-section h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 2rem;
  color: var(--color-primary);
}
.contact__form {
  margin-inline: auto;
  max-width: 600px;
}

/* WOW Logo animation */
.hero__logo-wow {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  animation: floatLogo 4s ease-in-out infinite;
}
.hero__logo-wow .hero__logo-big {
  max-width: 340px;
  width: 60vw;
  min-width: 180px;
  filter: drop-shadow(0 8px 32px rgba(3, 59, 131, 0.14));
  opacity: 0;
  transform: scale(0.8) translateY(40px);
  animation: logoIn 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0.2s forwards,
    floatLogo 4s ease-in-out infinite 1.2s;
}
@keyframes logoIn {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(40px);
  }
  80% {
    opacity: 1;
    transform: scale(1.08) translateY(-8px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@keyframes floatLogo {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}
@media (max-width: 767px) {
  .hero__logo-wow {
    min-height: 180px;
  }
  .hero__logo-wow .hero__logo-big {
    max-width: 180px;
  }
}
.footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 2rem 0;
}
.footer__grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
    align-items: start;
  }
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: flex-end;
}
.footer__brand img,
.footer-logo {
  height: 96px;
  width: auto;
  background: #fff;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-right: 0;
}
@media (max-width: 767px) {
  .footer__brand img,
  .footer-logo {
    height: 64px;
    padding: 8px;
  }
  .footer__brand {
    justify-content: center;
    gap: 1rem;
  }
}
.footer__contact a {
  display: inline-block;
  margin-top: 0.25rem;
  color: var(--color-light);
}
.footer__nav ul li {
  margin-bottom: 0.25rem;
}
.footer__nav a:hover {
  text-decoration: underline;
}
.footer p {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--color-light);
}
