﻿/* ========================================
   PORTFOLIO MODERNE - Design Authentique
   Palette: Doré, Beige, Noir
   ======================================== */

/* === VARIABLES CSS === */
:root {
  /* Palette moderne */
  --dore: #d4af37;
  --dore-fonce: #b8941f;
  --beige-clair: #f4ede4;
  --beige: #e8dfd5;
  --noir: #1a1a1a;
  --noir-doux: #2d2d2d;
  --blanc: #ffffff;
  --gris: #6b6b6b;
  --accent: #e6c05c;
  
  /* Typographie */
  --font-titre: ''Playfair Display'', Georgia, serif;
  --font-texte: ''Inter'', -apple-system, sans-serif;
  
  /* Espacements */
  --espace-xs: 0.5rem;
  --espace-sm: 1rem;
  --espace-md: 2rem;
  --espace-lg: 4rem;
  --espace-xl: 6rem;
  
  /* Transitions */
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-texte);
  background: var(--beige-clair);
  color: var(--noir);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
  width: 100%;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* === TYPOGRAPHIE === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-titre);
  color: var(--noir);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.03em;
  font-weight: 500;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.02em;
  font-weight: 500;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  color: var(--noir-doux);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* === NAVIGATION === */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(26, 26, 26, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  animation: slideDown 0.6s ease-out;
}

nav {
  max-width: 1300px;
  margin: 0 auto;
  padding: 1.2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav a:first-child {
  font-family: var(--font-titre);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--beige-clair);
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1001;
}

nav a:first-child::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 30%;
  height: 2px;
  background: var(--dore);
  transition: var(--transition);
}

nav a:first-child:hover {
  color: var(--dore);
}

nav a:first-child:hover::after {
  width: 100%;
}

/* Bouton menu hamburger */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background: var(--dore);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

nav ul li a {
  color: var(--beige);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.5rem 0;
  animation: fadeInUp 0.5s ease-out backwards;
}

nav ul li:nth-child(1) a { animation-delay: 0.1s; }
nav ul li:nth-child(2) a { animation-delay: 0.2s; }
nav ul li:nth-child(3) a { animation-delay: 0.3s; }

nav ul li a::after {
  content: '''';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--dore);
  transition: var(--transition);
}

nav ul li a:hover {
  color: var(--dore);
}

nav ul li a:hover::after {
  width: 100%;
}

/* === MAIN === */
main {
  padding-top: 70px;
}

/* === SECTION HERO === */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-section::before {
  content: '''';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(
      135deg,
      rgba(244, 237, 228, 0.85) 0%,
      rgba(232, 223, 213, 0.75) 50%,
      rgba(244, 237, 228, 0.85) 100%
    );
  z-index: 1;
}

.hero-section > * {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 2rem;
}

.hero-section h1 {
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out;
}

.hero-section p {
  font-size: 1.2rem;
  color: var(--noir-doux);
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-buttons a {
  padding: 1rem 2.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: var(--transition);
  font-size: 1rem;
  border-radius: 2px;
}

.btn-primary {
  background: var(--dore);
  color: var(--blanc);
  border: 2px solid var(--dore);
}

.btn-primary:hover {
  background: var(--dore-fonce);
  border-color: var(--dore-fonce);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--noir);
  border: 2px solid var(--noir);
}

.btn-secondary:hover {
  background: var(--noir);
  color: var(--blanc);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 26, 26, 0.2);
}

/* === SECTIONS === */
section {
  padding: var(--espace-xl) 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

/* === SECTION À PROPOS === */
#about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 5rem 2rem;
}

#about > div:first-of-type {
  position: relative;
  padding-right: 30px;
  padding-bottom: 30px;
}

#about img {
  width: 65%;
  max-width: 350px;
  border-radius: 2px;
  box-shadow: 
    20px 20px 0 var(--dore),
    0 0 0 1px rgba(26, 26, 26, 0.1);
}

#about h2 {
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  animation: fadeInRight 0.8s ease-out;
}

#about h2::after {
  content: '''';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--dore);
}

#about p {
  margin-bottom: 1.2rem;
  line-height: 1.8;
  animation: fadeInRight 0.8s ease-out 0.2s backwards;
}

#about > div:last-child > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

#about > div:last-child > div > div {
  text-align: left;
  padding: 2rem;
  background: var(--blanc);
  border-left: 4px solid var(--dore);
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  animation: scaleIn 0.6s ease-out backwards;
}

#about > div:last-child > div > div:nth-child(1) { animation-delay: 0.4s; }
#about > div:last-child > div > div:nth-child(2) { animation-delay: 0.5s; }

#about > div:last-child > div > div:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

#about > div:last-child > div > div h3 {
  font-size: 2.5rem;
  margin-bottom: 0.3rem;
  color: var(--dore);
  font-weight: 700;
  font-family: var(--font-texte);
}

#about > div:last-child > div > div p {
  margin: 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gris);
  font-weight: 600;
}

/* === SECTION GALERIE === */
#galerie {
  background: var(--blanc);
  padding: 5rem 2rem;
  max-width: 100%;
}

#galerie > * {
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
}

#galerie h2 {
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  animation: fadeInUp 0.8s ease-out;
}

#galerie h2::after {
  content: '''';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--dore);
}

#galerie > p {
  text-align: center;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 3rem;
  color: var(--gris);
}

.galerie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* Pour la page galerie complète, garder le comportement auto-fit */
body:has(main > section#galerie:only-child) .galerie-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.galerie-item {
  background: var(--beige-clair);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  border-radius: 2px;
  animation: fadeInUp 0.6s ease-out backwards;
}

/* Effet de bordure dorée au hover */
.galerie-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 3px solid var(--dore);
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 2;
}

/* Effet de brillance qui traverse l'image */
.galerie-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  transform: skewX(-25deg);
  transition: left 0.6s ease;
  pointer-events: none;
  z-index: 1;
}

.galerie-item:nth-child(1) { animation-delay: 0.1s; }
.galerie-item:nth-child(2) { animation-delay: 0.2s; }
.galerie-item:nth-child(3) { animation-delay: 0.3s; }
.galerie-item:nth-child(4) { animation-delay: 0.4s; }
.galerie-item:nth-child(5) { animation-delay: 0.5s; }
.galerie-item:nth-child(6) { animation-delay: 0.6s; }

.galerie-item:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(212, 175, 55, 0.1),
    0 5px 20px rgba(212, 175, 55, 0.15);
}

.galerie-item:hover::before {
  opacity: 1;
  transform: scale(1);
}

.galerie-item:hover::after {
  left: 150%;
}

.galerie-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(1) contrast(1) saturate(1);
}

.galerie-item:hover img {
  transform: scale(1.02);
  filter: brightness(1.1) contrast(1.05);
}

#galerie > a {
  display: inline-block;
  margin: 2rem auto 0;
  padding: 1rem 2.5rem;
  background: var(--dore);
  color: var(--blanc);
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 2px solid var(--dore);
  transition: var(--transition);
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

#galerie > a:hover {
  background: var(--dore-fonce);
  border-color: var(--dore-fonce);
  transform: translateX(-50%) translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

/* === FOOTER === */
footer {
  background: var(--noir);
  color: var(--beige);
  padding: 3rem 2rem;
  text-align: center;
}

footer p {
  margin: 0.5rem 0;
  color: var(--beige);
  font-size: 0.95rem;
}

footer a {
  color: var(--dore);
  font-weight: 600;
  transition: var(--transition);
}

footer a:hover {
  color: var(--accent);
}

/* === LIGHTBOX === */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(10px);
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  animation: zoomIn 0.3s ease-out;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
  border: 3px solid var(--dore);
}

/* Bouton de fermeture */
.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: var(--dore);
  color: var(--blanc);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.lightbox-close:hover {
  background: var(--dore-fonce);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

/* Boutons de navigation */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(212, 175, 55, 0.9);
  color: var(--blanc);
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--dore);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.lightbox-prev:active,
.lightbox-next:active {
  transform: translateY(-50%) scale(0.95);
}

/* Compteur de photos */
.lightbox-counter {
  position: absolute;
  top: -50px;
  left: 0;
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(10px);
  color: var(--dore);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

/* Curseur pour indiquer que c'est cliquable */
.galerie-item {
  cursor: pointer;
}

.galerie-item img {
  cursor: zoom-in;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* === ANIMATIONS AU SCROLL === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* === FORMULAIRE DE CONTACT === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

[class*="col-"] {
  padding: 0 15px;
}

.col-lg-8 {
  width: 66.666667%;
}

.col-md-6 {
  width: 50%;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

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

.mb-3 {
  margin-bottom: 1rem;
}

.mt-5 {
  margin-top: 3rem;
}

.contact-form {
  background: var(--blanc);
  padding: 3rem;
  border-radius: 2px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.form-control {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 2px solid var(--beige);
  border-radius: 2px;
  font-size: 1rem;
  font-family: var(--font-texte);
  color: var(--noir);
  background: var(--beige-clair);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--dore);
  background: var(--blanc);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-control::placeholder {
  color: var(--gris);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: var(--transition);
  font-size: 1rem;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  font-family: var(--font-texte);
}

.btn-primary {
  background: var(--dore);
  color: var(--blanc);
  border: 2px solid var(--dore);
}

.btn-primary:hover {
  background: var(--dore-fonce);
  border-color: var(--dore-fonce);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.btn-lg {
  padding: 1.2rem 3rem;
  font-size: 1.05rem;
}

/* Alertes */
.alert {
  padding: 1.2rem 1.5rem;
  border-radius: 2px;
  margin-bottom: 2rem;
  position: relative;
  border-left: 4px solid;
  animation: slideDown 0.5s ease-out;
}

.alert-success {
  background: rgba(212, 175, 55, 0.1);
  border-left-color: var(--dore);
  color: var(--dore-fonce);
}

.alert-danger {
  background: rgba(220, 53, 69, 0.1);
  border-left-color: #dc3545;
  color: #b02a37;
}

.btn-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 1.5rem;
  height: 1.5rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.btn-close:hover {
  opacity: 1;
}

.btn-close::before {
  content: "×";
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gris);
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* === RESPONSIVE === */

/* Très grands écrans - 1920px et plus */
@media (min-width: 1920px) {
  section {
    max-width: 1600px;
  }
  
  .galerie-grid {
    gap: 3rem;
  }
  
  body:has(main > section#galerie:only-child) .galerie-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  #about {
    max-width: 1500px;
    margin: 0 auto;
  }
}

/* Tablettes en mode paysage - 1024px à 1199px */
@media (max-width: 1199px) {
  h1 {
    font-size: 3.5rem;
  }
  
  h2 {
    font-size: 2.5rem;
  }
  
  .galerie-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  body:has(main > section#galerie:only-child) .galerie-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  #about {
    gap: 3rem;
  }
}

/* Tablettes en mode portrait - 768px à 1023px */
@media (max-width: 1023px) {
  nav {
    padding: 1rem 2rem;
  }
  
  nav ul {
    gap: 2rem;
  }
  
  .hero-section {
    min-height: 75vh;
    padding: 4rem 2rem;
  }
  
  #about {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    padding: 4rem 2rem;
  }
  
  #about img {
    margin: 0 auto;
    width: 70%;
    max-width: 400px;
  }
  
  #about > div:last-child > div {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .galerie-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  body:has(main > section#galerie:only-child) .galerie-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  section {
    padding: 4rem 2rem;
  }
  
  .col-lg-8 {
    width: 90%;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
}

/* Mobile large et tablettes - 768px et moins */
@media (max-width: 768px) {
  nav {
    padding: 1rem 1.5rem;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  nav ul {
    position: fixed;
    top: -100vh;
    left: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(
      135deg,
      rgba(26, 26, 26, 0.98) 0%,
      rgba(45, 45, 45, 0.95) 100%
    );
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    transition: top 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    visibility: hidden;
    opacity: 0;
  }
  
  nav ul.active {
    top: 0;
    visibility: visible;
    opacity: 1;
  }
  
  /* Overlay pour fermer le menu */
  nav ul::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: -1;
  }
  
  nav ul.active::before {
    opacity: 1;
    visibility: visible;
  }
  
  nav ul li {
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
  }
  
  nav ul.active li {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }
  
  nav ul.active li:nth-child(1) { transition-delay: 0.2s; }
  nav ul.active li:nth-child(2) { transition-delay: 0.3s; }
  nav ul.active li:nth-child(3) { transition-delay: 0.4s; }
  
  nav ul li a {
    color: var(--beige-clair);
    font-size: 1.3rem;
    font-weight: 600;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    min-width: 180px;
    display: block;
    position: relative;
    overflow: hidden;
  }
  
  nav ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.6s ease;
  }
  
  nav ul li a:hover::before {
    left: 100%;
  }
  
  nav ul li a:hover,
  nav ul li a.active {
    color: var(--dore);
    background: rgba(212, 175, 55, 0.15);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.3);
  }
  
  .hero-section {
    min-height: 70vh;
    padding: 3rem 1.5rem;
  }
  
  .hero-section > * {
    padding: 0 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .hero-buttons a {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
  
  #about {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem 1.5rem;
  }
  
  #about img {
    width: 60%;
    max-width: 250px;
    margin: 0 auto;
    box-shadow: 
      15px 15px 0 var(--dore),
      0 0 0 1px rgba(26, 26, 26, 0.1);
  }
  
  #about > div:last-child > div {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  #about > div:last-child > div > div {
    padding: 1.5rem;
  }
  
  .galerie-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .galerie-item img {
    height: 280px;
  }
  
  section {
    padding: 3rem 1.5rem;
  }
  
  #galerie {
    padding: 3rem 1.5rem;
  }
  
  footer {
    padding: 2.5rem 1.5rem;
  }
  
  /* Bootstrap responsive */
  .col-lg-8,
  .col-md-6 {
    width: 100%;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
  
  /* Lightbox responsive */
  .lightbox-content {
    max-width: 95%;
    max-height: 85vh;
  }
  
  .lightbox-prev {
    left: 10px;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .lightbox-next {
    right: 10px;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
  
  .lightbox-counter {
    top: 10px;
    left: 10px;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }

}

/* Mobile moyen - 481px à 767px */
@media (max-width: 767px) {
  body {
    font-size: 15px;
  }
  
  nav a:first-child {
    font-size: 1.4rem;
  }
  
  .hero-section p {
    font-size: 1.1rem;
  }
  
  #about > div:last-child > div > div h3 {
    font-size: 2.2rem;
  }
  
  #about > div:last-child > div > div p {
    font-size: 1rem;
  }
  
  .galerie-item img {
    height: 260px;
  }
}

/* Petits mobiles - 480px et moins */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  nav {
    padding: 0.8rem 1rem;
  }
  
  nav a:first-child {
    font-size: 1.3rem;
  }
  
  nav ul {
    gap: 1rem;
  }
  
  nav ul li a {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
  
  .hero-section {
    min-height: 65vh;
    padding: 2.5rem 1rem;
  }
  
  .hero-section p {
    font-size: 1rem;
  }
  
  .hero-buttons a {
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
    max-width: 250px;
  }
  
  section {
    padding: 2.5rem 1rem;
  }
  
  #about {
    gap: 2.5rem;
    padding: 2.5rem 1rem;
  }
  
  #about img {
    width: 70%;
    box-shadow: 
      10px 10px 0 var(--dore),
      0 0 0 1px rgba(26, 26, 26, 0.1);
  }
  
  #about > div:last-child > div > div {
    padding: 1.2rem;
  }
  
  #about > div:last-child > div > div h3 {
    font-size: 1.8rem;
  }
  
  #about > div:last-child > div > div p {
    font-size: 0.9rem;
  }
  
  #galerie {
    padding: 2.5rem 1rem;
  }
  
  .galerie-grid {
    gap: 1.5rem;
  }
  
  .galerie-item img {
    height: 240px;
  }
  
  #galerie > a {
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
  }
  
  footer {
    padding: 2rem 1rem;
  }
  
  footer p {
    font-size: 0.9rem;
  }
  
  .contact-form {
    padding: 1.5rem 1rem;
  }
  
  .form-control {
    padding: 0.9rem 1.2rem;
    font-size: 0.95rem;
  }
  
  .btn {
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
  }
  
  .btn-lg {
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
  }
  
  .alert {
    padding: 1rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .lightbox-prev,
  .lightbox-next {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
  
  .lightbox-close {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .lightbox-counter {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
}

/* Très petits mobiles - 360px et moins */
@media (max-width: 360px) {
  h1 {
    font-size: 1.9rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  nav a:first-child {
    font-size: 1.2rem;
  }
  
  nav ul {
    gap: 0.8rem;
  }
  
  nav ul li a {
    font-size: 0.85rem;
  }
  
  .hero-section {
    padding: 2rem 0.8rem;
  }
  
  .hero-buttons a {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
  
  section {
    padding: 2rem 0.8rem;
  }
  
  #about img {
    width: 65%;
    box-shadow: 
      8px 8px 0 var(--dore),
      0 0 0 1px rgba(26, 26, 26, 0.1);
  }
  
  #about > div:last-child > div > div {
    padding: 1rem;
  }
  
  .galerie-item img {
    height: 220px;
  }
  
  .contact-form {
    padding: 1.2rem 0.8rem;
  }
  
  .form-control {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }
  
  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .btn-lg {
    padding: 0.8rem 1.8rem;
    font-size: 0.9rem;
  }
}