/* Reset de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Fond avec logo en transparence */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('logo.png') no-repeat center center;
  background-size: 60vw;
  opacity: 0.2;
  z-index: -1;
  pointer-events: none;
}

/* Corps principal */
body {
  font-family: 'Lora', serif;
  color: #000;
  background: #fff;
  scroll-behavior: smooth;
  position: relative;
  z-index: 1;
  padding-top: 80px;
}

/* Header fixe */
header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 0 20px;
}

/* Branding */
.header-brand {
  flex: 1;
  display: flex;
  align-items: center;
}

.brand-link {
  text-decoration: none;
  font-family: 'Lora', serif;
  font-size: 1.8em;
  display: inline-flex;
  align-items: center;
}

.brand-link .studio {
  color: #333;
  margin-right: 5px;
}

.brand-link .contraste {
  background-color: #000;
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
}

/* Menu principal */
header nav {
  display: flex;
  gap: 2rem;
}

header nav a {
  text-decoration: none;
  color: #000;
  text-transform: uppercase;
  font-size: 1.5rem;
}

/* Bouton menu mobile */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1001;
}

/* Section hero */
/* Hero section avec image en fade-in et priorité de chargement */
#hero {
  position: relative;
  width: 100vw;
  height: 50vh;
  overflow: hidden;
  background: linear-gradient(135deg, #e0e7ef00 0%, #f8fafc00 100%); /* dégradé doux en fond */
}

#hero-img {
  opacity: 0;
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: opacity 1.2s;
  background: #e0e7ef00;
}

@keyframes fadeInOverlay {
  to { opacity: 1; }
}

.hero-overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  text-align: center;
  color: #fff;
  font-family: 'Lora', serif;
  padding: 1rem;
  background: rgba(255,255,255,0.2);
  border-radius: 12px;
  backdrop-filter: blur(1px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  opacity: 0;
  animation: fadeInOverlay 1.2s ease-out forwards;
}

.hero-overlay h1 {
  font-size: 3rem;
  font-weight: 700;
}

.hero-overlay p {
  margin-top: 0.5rem;
  font-size: 1.25rem;
  font-weight: 400;
}

/* Sections générales */
section {
  padding: 6rem 2rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}

/* Présentation & Contact */
#about h2,
#contact-form h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

#about p {
  font-size: 1.2rem;
  font-weight: 200;
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Galerie */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  justify-items: center;
}

.gallery img {
  width: 100%;
  height: auto;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding: 0.25rem;
  margin: 0.25rem;
  transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
}

.gallery img.visible {
  animation: fadeInOverlay 2s ease-out forwards;
}

.gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Galerie Portfolio */
.gallery_portfolio {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.gallery_portfolio img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  
}
.gallery_portfolio img.visible {
  animation: fadeInUp 2s ease-out forwards;
}

.gallery_portfolio img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

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

/* Bouton contact flottant */
.btn-contact {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  padding: 0.75rem 1.25rem;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 0.875rem;
  cursor: pointer;
}

/* Formulaire de contact */
#contact-form {
  background: #f5f5f5;
}

#contact-form form {
  display: flex;
  flex-direction: column;
}

#contact-form input,
#contact-form textarea {
  margin-bottom: 1rem;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

#contact-form button {
  width: 150px;
  padding: 0.75rem;
  margin-bottom: 1rem;
  background: #000;
  color: #fff;
  border: none;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
}

.success {
  margin-bottom: 1rem;
  color: green;
}

.contact-phone {
  background: #fff;
  border: 2px solid #000;
  padding: 1rem;
  margin-top: 2rem;
  border-radius: 8px;
  font-size: 1.125rem;
  text-align: center;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.contact-phone a {
  color: #0078D7;
  text-decoration: none;
  margin-left: 0.5rem;
}

.contact-phone a:hover {
  color: #005fa3;
  text-decoration: underline;
}

/* Pied de page */
footer {
  text-align: center;
  padding: 2rem 0;
  font-size: 0.875rem;
}

footer a {
  color: #000;
  text-decoration: underline;
}

/* Prestations */
#prestations {
  padding: 2rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

#prestations h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.toggle-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.toggle-buttons button {
  padding: 0.75rem 1.5rem;
  border: none;
  background: #eee;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 4px;
  transition: background 0.3s;
}

.toggle-buttons button.active {
  background: #222;
  color: #fff;
}

.tab-content {
  display: none;
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.tab-content.active {
  display: block;
}

.package {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.package:hover {
  transform: translateY(-5px);
}

.package h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.package p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.package ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.package ul li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
}

.package ul li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: #888;
}

/* Responsive mobile */
@media (max-device-width: 600px) {
  .menu-toggle {
    display: block;
  }

header {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.header-brand {
  flex: 1;
}


  header nav {
    position: absolute;
    top: 80px; left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    align-items: center;
    display: none;
    padding: 1rem 0;
  }

  .nav-open header nav {
    display: flex;
  }

  header nav a {
    margin: 1rem 0;
    font-size: 1.25rem;
  }

  #hero h1 {
    font-size: 2.25rem;
  }

  #hero p {
    font-size: 1rem;
  }

  .btn-contact {
    bottom: 1rem;
    right: 1rem;
  }

  /* Prestations – adaptations mobile */
  #prestations {
    padding: 1rem;
  }

  #prestations h1 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .toggle-buttons {
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .toggle-buttons button {
    width: 100%;
    max-width: 300px;
  }

  .tab-content {
    padding: 0 0 2rem;
  }

  .package {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .package h3 {
    font-size: 1.3rem;
  }

  .package p,
  .package ul li {
    font-size: 0.95rem;
  }
}
