:root {
  --cms-green: #a7b28d;
  --cms-orange: #f57a34;
  --cms-white: #ffffff;
  --cms-dark: #1a1a1a;
  --cms-text: #333333;
  --cms-muted: #5b5b5b;
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.10);
}

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--cms-text);
  background: var(--cms-white);
  line-height: 1.6;
}

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

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

ul {
  list-style: none;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== HEADER ===== */
/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-wrapper {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* ===== LOGO ===== */
.logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-shrink: 0;
}

.logo img {
  width: auto;
  height: 46px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--cms-dark);
  letter-spacing: 0.03em;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--cms-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== NAV ===== */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  position: relative;
  color: var(--cms-dark);
  font-weight: 600;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 100%;
  height: 2px;
  background: var(--cms-orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-links a:hover {
  color: var(--cms-orange);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* ===== ACTIONS ===== */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.btn-nav {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  background: var(--cms-orange);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(245, 122, 52, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.btn-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(245, 122, 52, 0.28);
  opacity: 0.96;
}

/* ===== BURGER ===== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggle .bar {
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--cms-dark);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ===== RESPONSIVE NAV ===== */
@media (max-width: 900px) {
  .nav-wrapper {
    min-height: 76px;
    gap: 1rem;
  }

  .brand-subtitle {
    display: none;
  }

  .main-nav {
    display: none;
  }

  .btn-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

/* ===== MAIN ===== */
.main-wrapper {
  position: relative;
  min-height: calc(100vh - 160px);
  overflow: hidden;
  background: var(--cms-green);
}

/* dÃ©gradÃ© global Ã gauche pour fondre la bobine */
.main-wrapper::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 900px;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(to right, rgba(167, 178, 141, 0) 0%, rgba(167, 178, 141, 0.05) 10%, rgba(167, 178, 141, 0.15) 20%, rgba(167, 178, 141, 0.35) 35%, rgba(167, 178, 141, 0.60) 50%, rgba(167, 178, 141, 0.80) 65%, rgba(167, 178, 141, 0.95) 80%, rgba(167, 178, 141, 1) 100%);
}

/* voile lumineux doux */
.main-wrapper::after {
  content: "";
  position: absolute;
  left: 180px;
  top: 80px;
  width: 760px;
  height: 760px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.08) 28%, rgba(255, 255, 255, 0.03) 50%, rgba(255, 255, 255, 0) 72%);
  filter: blur(12px);
  z-index: 1;
  pointer-events: none;
}

/* ===== TESLA ===== */
.tesla-sidebar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 560px;
  height: 100%;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

.tesla-img {
  position: absolute;
  left: -10px;
  bottom: 0;
  width: 1750px;
  max-width: none;
  height: auto;
  opacity: 0.98;
  filter: brightness(1.05) contrast(1.1) saturate(1.05);
}

/* halo au sol */
.tesla-sidebar::before {
  content: "";
  position: absolute;
  left: 20px;
  bottom: -10px;
  width: 470px;
  height: 150px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.18) 32%, rgba(255, 255, 255, 0.05) 58%, rgba(255, 255, 255, 0) 76%);
  filter: blur(12px);
}

/* brume latÃ©rale */
.tesla-sidebar::after {
  content: "";
  position: absolute;
  right: -40px;
  top: 0;
  width: 220px;
  height: 100%;
  background: linear-gradient(to right, rgba(167, 178, 141, 0) 0%, rgba(167, 178, 141, 0.45) 55%, rgba(167, 178, 141, 0.88) 100%);
}

/* ===== LOGO DROITE ===== */
.logo-side {
  position: absolute;
  right: 60px;
  top: 200px;
  z-index: 2;
  pointer-events: none;
}

.logo-side::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 30%, rgba(255, 255, 255, 0) 70%);
  filter: blur(25px);
}

.logo-side-img {
  width: 300px;
  opacity: 0.35;
  filter: blur(0.5px) contrast(1.1);
  transform: rotate(10deg);
}

/* ===== CONTENT ===== */
.content-area {
  position: relative;
  z-index: 5;
  padding: 1.6rem 2rem 4rem;
}

.content-container {
  max-width: 920px;
  margin: 0 auto;
  padding-left: 210px;
}

.content-container section {
  margin-bottom: 3rem;
}

.content-container h2 {
  font-size: 2.2rem;
  color: var(--cms-dark);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.content-container h3 {
  font-size: 1.6rem;
  color: var(--cms-dark);
  margin-bottom: 0.8rem;
}

.content-container p {
  color: var(--cms-muted);
}

/* ===== HERO ===== */
.hero {
  background: rgba(112, 123, 96, 0.30);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  padding: 3.2rem 2.5rem;
  border-radius: 24px;
  text-align: center;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-soft);
}

.hero h2 {
  color: #fff;
  font-size: clamp(2.8rem, 4.8vw, 4.4rem);
  line-height: 1.08;
  margin-bottom: 1.1rem;
  font-weight: 800;
}

.hero p {
  color: rgba(255, 255, 255, 0.95);
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.btn {
  display: inline-block;
  margin-top: 1.6rem;
  background: var(--cms-orange);
  color: white;
  padding: 1rem 2.1rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(245, 122, 52, 0.28);
}

/* ===== ARTICLES ===== */
article,
.card {
  background: rgba(255, 255, 255, 0.96);
  padding: 2rem;
  border-left: 5px solid var(--cms-orange);
  border-radius: 16px;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

article h3,
.card h3 {
  margin-bottom: 0.8rem;
}

article ul,
.content-container ul {
  margin-top: 1rem;
  padding-left: 1.2rem;
  list-style: disc;
}

article li,
.content-container li {
  margin-bottom: 0.7rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* ===== FOOTER ===== */
/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(180deg, #121212 0%, #0b0b0b 100%);
  color: #ffffff;
  padding: 60px 20px 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto 30px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
}

/* TITRES */
.footer-section h3 {
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 15px;
  color: #ffd700;
}

/* TEXTE */
.footer-section p {
  color: #cfcfcf;
  margin-bottom: 12px;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* LIENS */
.footer-section a {
  color: #f2f2f2;
  transition: color 0.25s ease;
}

.footer-section a:hover {
  color: var(--cms-orange);
}

/* BOUTON */
.footer-cta {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 22px;
  background: var(--cms-orange);
  color: white !important;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(245, 122, 52, 0.25);
}

.footer-cta:hover {
  opacity: 0.9;
}

/* BAS FOOTER */
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: #9e9e9e;
}

/* LIENS LÃ‰GAUX */
.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 0.85rem;
  color: #9e9e9e;
}

.footer-legal a:hover {
  color: var(--cms-orange);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 800px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .tesla-sidebar {
    width: 500px;
  }

  .tesla-img {
    width: 1550px;
  }

  .content-container {
    padding-left: 170px;
  }

  .main-wrapper::before {
    width: 760px;
  }

  .logo-side {
    right: 30px;
  }

  .logo-side-img {
    width: 240px;
  }
}

@media (max-width: 980px) {

  .tesla-sidebar,
  .main-wrapper::before,
  .main-wrapper::after,
  .logo-side {
    display: none;
  }

  .content-area {
    padding: 2rem 1rem 3rem;
  }

  .content-container {
    padding-left: 0;
  }

  .hero {
    padding: 2.4rem 1.4rem;
  }

  .hero h2 {
    font-size: 2.3rem;
  }

  .nav-wrapper {
    flex-wrap: wrap;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

:root {
  --cms-green: #a7b28d;
  --cms-orange: #f57a34;
  --cms-white: #ffffff;
  --cms-dark: #1a1a1a;
  --cms-text: #333333;
  --cms-muted: #5b5b5b;
}

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  color: var(--cms-text);
}

/* ===== HEADER ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
}

.logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.btn-nav {
  background: var(--cms-orange);
  color: white;
  padding: 8px 18px;
  border-radius: 20px;
}

/* ===== MAIN ===== */
.main-wrapper {
  position: relative;
  min-height: 100vh;
  background: var(--cms-green);
  overflow: hidden;
}

/* ===== TESLA ===== */
.tesla-sidebar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 640px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  /* MASQUE ULTRA IMPORTANT */
  mask-image: linear-gradient(to right, black 0%, black 60%, rgba(0, 0, 0, 0.8) 70%, rgba(0, 0, 0, 0.4) 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 0%, black 60%, rgba(0, 0, 0, 0.8) 70%, rgba(0, 0, 0, 0.4) 85%, transparent 100%);
}

.tesla-img {
  position: absolute;
  left: -20px;
  bottom: 0;
  width: 1800px;
  max-width: none;
  opacity: 0.98;
  filter: brightness(1.05) contrast(1.08);
}

/* ===== FONDU GLOBAL ===== */
.main-wrapper::before {
  content: "";
  position: absolute;
  left: 250px;
  top: 0;
  width: 600px;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(to right, rgba(167, 178, 141, 0) 0%, rgba(167, 178, 141, 0.1) 20%, rgba(167, 178, 141, 0.3) 40%, rgba(167, 178, 141, 0.6) 60%, rgba(167, 178, 141, 0.9) 80%, rgba(167, 178, 141, 1) 100%);
  filter: blur(18px);
}

/* ===== LOGO DROITE ===== */
.logo-side {
  position: absolute;
  right: 60px;
  top: 200px;
  z-index: 2;
  pointer-events: none;
}

.logo-side::before {
  content: "";
  position: absolute;
  top: -30px;
  left: -30px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(25px);
}

.logo-side-img {
  width: 280px;
  opacity: 0.4;
  transform: rotate(8deg);
}

/* ===== CONTENT ===== */
.content-area {
  position: relative;
  z-index: 5;
  padding: 40px;
}

.content-container {
  max-width: 900px;
  margin: 0 auto;
  padding-left: 240px;
}

/* ===== HERO ===== */
.hero {
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(6px);
  padding: 50px;
  border-radius: 20px;
  text-align: center;
  color: white;
  margin-bottom: 40px;
}

.hero h2 {
  font-size: 3rem;
}

.btn {
  margin-top: 20px;
  display: inline-block;
  background: var(--cms-orange);
  padding: 12px 25px;
  border-radius: 30px;
  color: white;
}

/* ===== ARTICLES ===== */
article {
  background: white;
  padding: 25px;
  border-left: 5px solid var(--cms-orange);
  border-radius: 12px;
  margin-bottom: 20px;
}

/* ===== FOOTER ===== */
.footer {
  background: #111;
  color: white;
  padding: 40px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) {

  .tesla-sidebar,
  .logo-side,
  .main-wrapper::before {
    display: none;
  }

  .content-container {
    padding-left: 0;
  }
}

/* ===== PAGE CONTACT ===== */
.contact-page {
  min-height: 100vh;
  padding: 140px 20px 80px;
  background: linear-gradient(180deg, rgba(167, 178, 141, 0.18) 0%, rgba(167, 178, 141, 0.08) 100%), #f7f7f4;
}

.contact-shell {
  max-width: 1100px;
  margin: 0 auto;
}

.contact-intro {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.contact-kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--cms-orange);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-intro h1 {
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1.08;
  color: var(--cms-dark);
}

.contact-intro p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--cms-muted);
}

.contact-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 34px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-field label {
  color: var(--cms-dark);
  font-size: 0.95rem;
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 14px;
  background: #fff;
  color: var(--cms-text);
  font: inherit;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #8d8d8d;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(245, 122, 52, 0.65);
  box-shadow: 0 0 0 4px rgba(245, 122, 52, 0.12);
}

.form-field textarea {
  resize: vertical;
  min-height: 180px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--cms-muted);
  font-size: 0.95rem;
}

.form-check input {
  margin-top: 4px;
  accent-color: var(--cms-orange);
}

.form-actions {
  padding-top: 6px;
}

.btn-submit {
  border: 0;
  cursor: pointer;
  display: inline-block;
  padding: 14px 24px;
  background: var(--cms-orange);
  color: #fff;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(245, 122, 52, 0.24);
  transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
}

.btn-submit:hover {
  transform: translateY(-1px);
  opacity: 0.97;
  box-shadow: 0 14px 28px rgba(245, 122, 52, 0.28);
}

/* ===== RESPONSIVE CONTACT ===== */
@media (max-width: 820px) {
  .contact-page {
    padding: 120px 16px 60px;
  }

  .contact-card {
    padding: 22px;
    border-radius: 18px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-intro h1 {
    font-size: 2.2rem;
  }
}

/* Conteneur Flex pour mettre côte à côte */
.about-flex {
  display: flex;
  align-items: center;
  /* Aligne verticalement le texte et l'image */
  gap: 3rem;
  /* Espace entre le texte et l'image */
  margin-top: 2rem;
}

/* Le bloc de texte */
.about-flex article {
  flex: 1;
  /* Prend l'espace disponible */
  margin-bottom: 0;
  /* Enlève la marge du bas pour l'alignement */
}

/* Le bloc de l'image */
.about-image {
  flex: 1;
  /* Prend autant de place que le texte */
  text-align: right;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  /* Optionnel : pour adoucir les angles */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Version Mobile : on remet l'un sur l'autre si l'écran est petit */
@media (max-width: 768px) {
  .about-flex {
    flex-direction: column;
    gap: 2rem;
  }
}

/* ===== HERO MODELS ONLY ===== */
.models-page .hero {
  background: radial-gradient(circle at center, rgba(245, 122, 52, 0.25), transparent 70%), linear-gradient(135deg, #1a1a1a, #2b2b2b);
  color: #fff;
  padding: 5rem 2rem;
  margin-bottom: 4rem;
}

/* GRID */
.models-page .models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

/* CARD */
.models-page .model-card {
  background: linear-gradient(145deg, #ffffff, #f5f5f5);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.models-page .model-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(245, 122, 52, 0.25), transparent 70%);
  opacity: 0;
  transition: 0.4s;
}

.models-page .model-card:hover {
  transform: translateY(-10px) scale(1.02);
}

.models-page .model-card:hover::before {
  opacity: 1;
}

/* CTA */
.models-page .contact-quick {
  margin-top: 5rem;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #f57a34, #ff9a5c);
  color: #fff;
  border-radius: 20px;
}

.models-page .contact-quick .btn {
  background: #fff;
  color: #f57a34;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 20px;
  max-width: 700px;
  width: 90%;
  position: relative;
  text-align: center;
}

.close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  cursor: pointer;
}

/* GALLERY */
.modal-gallery {
  margin-top: 1rem;
}

#mainImage {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.thumbnails {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.thumbnails img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.7;
  transition: 0.3s;
}

.thumbnails img:hover {
  opacity: 1;
  transform: scale(1.1);
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  font-size: 24px;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  transition: 0.3s;
}

.arrow:hover {
  background: #f57a34;
}

.arrow.left {
  left: 10px;
}

.arrow.right {
  right: 10px;
}

.modal-gallery {
  position: relative;
}

/* ========================= PAGE PROJECTS ========================= */
.projects-page {
  background: #f5f5f5;
}

/* HERO */
.projects-page .hero {
  margin: 20px;
  padding: 80px 20px;
  border-radius: 20px;
  text-align: center;
  color: white;
  background: linear-gradient(135deg, #0f0f0f, #f57a34);
}

.projects-page .hero h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.projects-page .hero p {
  opacity: 0.85;
  font-size: 1.05rem;
}

/* GRID */
.projects-page .models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

/* CARD */
.projects-page .model-card {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  cursor: pointer;
  transition: 0.35s ease;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.projects-page .model-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
}

/* IMAGE */
.projects-page .model-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

/* TITRE */
.projects-page .model-card h2 {
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: #1a1a1a;
}

/* TEXTE */
.projects-page .model-card p {
  font-size: 0.95rem;
  color: #666;
}

/* EFFET GLOW */
.projects-page .model-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(245, 122, 52, 0.15), transparent);
  opacity: 0;
  transition: 0.4s;
}

.projects-page .model-card:hover::after {
  opacity: 1;
}

/* ========================= MODAL (GALERIE) ========================= */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background: #fff;
  padding: 25px;
  border-radius: 18px;
  max-width: 700px;
  width: 90%;
  text-align: center;
  position: relative;
}

.modal-content h2 {
  margin-bottom: 10px;
}

.modal-content p {
  margin-bottom: 20px;
  color: #555;
}

/* IMAGE PRINCIPALE */
.modal-gallery {
  position: relative;
}

#mainImage {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 10px;
}

/* MINIATURES */
.thumbnails {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.thumbnails img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.7;
  transition: 0.3s;
}

.thumbnails img:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* BOUTON FERMER */
.close {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

/* FLÈCHES */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  font-size: 22px;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 50%;
  transition: 0.3s;
}

.arrow:hover {
  background: #f57a34;
}

.arrow.left {
  left: 10px;
}

.arrow.right {
  right: 10px;
}

/* ========================= CTA ========================= */
.projects-page .contact-quick {
  margin-top: 80px;
  padding: 60px 20px;
  text-align: center;
  color: white;
  background: linear-gradient(135deg, #f57a34, #ff9a50);
  border-radius: 20px;
}

.projects-page .contact-quick h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.projects-page .contact-quick p {
  margin-bottom: 20px;
  opacity: 0.9;
}

.projects-page .contact-quick .btn {
  background: white;
  color: #f57a34;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: bold;
  transition: 0.3s;
}

.projects-page .contact-quick .btn:hover {
  transform: scale(1.05);
}







/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================
   BODY
========================= */
body {
    font-family: "Zapfino", "Brush Script MT", cursive;
}

/* =========================
   HERO FULLSCREEN
========================= */
.home .hero {
    position: relative;
    height: 100vh;
    width: 100%;
    background: url('../images/background.png') no-repeat center center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* AJOUTE CECI */
    overflow: hidden; 
    vertical-align: bottom;
}

/* =========================
   OVERLAY (lisibilité)
========================= */
.home .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

/* =========================
   CONTENU (Ajusté)
========================= */
.home .hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    
    /* Aligne les éléments les uns sous les autres à partir de la gauche */
    align-items: flex-start; 
    justify-content: flex-end; 

    /* RÉGLAGE ICI : Diminuez le padding-left pour tout envoyer à gauche */
    padding-left: 0%;    /* Passage de 10% à 5% pour rapprocher du bord gauche */
    padding-bottom: 8%;  /* Réglage de la hauteur par rapport au bas */
    
    height: 100%;        
    width: 100%;
    text-align: left;
    color: white;

    animation: fadeIn 1.5s ease forwards;
}

/* On s'assure que le titre et le logo ne sont pas bloqués par une marge interne */
.home .hero-title {
    display: flex;
    align-items: center; 
    gap: 20px;
}


/* LOGO (agrandi) */
.home .hero-title img {
    width: 200px;
}

/* TITRE */
.home .hero-title h2 {
    font-size: 70px;
    font-weight: normal;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* BASELINE */
.home .hero-content p {
    margin-top: 20px;
    font-size: 26px;
    letter-spacing: 2px;
}

/* =========================
   LISIBILITÉ (ombre texte)
========================= */
.home .hero-title h2,
.home .hero-content p {
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

/* =========================
   ANIMATION
========================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {

    .hero-title {
        flex-direction: column;
        gap: 10px;
    }

    .hero-title img {
        width: 70px;
    }

    .hero-title h2 {
        font-size: 38px;
        text-align: center;
    }

    .hero-content p {
        font-size: 16px;
    }
}

/* PAGE */
.presentation-page {
  background: var(--cms-green);
}

/* WRAPPER GLOBAL */
.presentation-wrapper {
  position: relative;
  min-height: calc(100vh - 120px); /* évite chevauchement header/footer */
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 80px 60px;
  overflow: hidden;
}

/* IMAGE TESLA */
.presentation-wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 80px 60px;
  overflow: hidden;

  /* IMAGE FULL SCREEN */
  background: url('../images/tesla.png') no-repeat center center;
  background-size: cover;
}



/* CONTENU */
.presentation-content {
  position: relative;
  z-index: 3;
  max-width: 500px;
}

/* TEXTE */
.presentation-text {
  color: #1a1a1a;
  font-family: "Brush Script MT", cursive;
}

/* TITRE */
.presentation-text h1 {
  font-size: 42px;
  margin-bottom: 15px;
}

/* TEXTE */
.presentation-text p {
  font-size: 18px;
  color: #444;
  line-height: 1.6;
}

/* COLIBRI */
.presentation-text h2 {
  margin-top: 25px;
  font-size: 26px;
  color: var(--cms-orange);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .presentation-wrapper {
    justify-content: center;
    padding: 60px 20px;
  }

  .presentation-wrapper::before {
    width: 100%;
    opacity: 0.2;
  }

  .presentation-wrapper::after {
    display: none;
  }
}