/* ===== COULEURS (modifie-les ici pour changer tout le thème) ===== */
:root {
  --bg: #fdf8f5;
  --text: #2d2a32;
  --accent: #e07a9c;
  --accent-dark: #c4577c;
  --card: #ffffff;
  --will: #4caf7a;
  --wont: #d9534f;
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px; /* évite que la barre de navigation cache le titre des sections */
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 14px 16px;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--accent-dark);
}

/* Bouton burger + nom : cachés sur ordinateur, affichés sur mobile */
.nav-toggle,
.nav-brand,
.nav-overlay {
  display: none;
}

/* ===== HERO ===== */
.hero {
  text-align: center;
  padding: 80px 20px 70px;
  background: linear-gradient(135deg, #ffe3ec, #e8e0ff);
}

.badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 6px 18px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 28px;
}

.btn {
  display: inline-block;
  background: var(--accent-dark);
  color: #fff;
  padding: 12px 30px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.15s, background 0.15s;
}

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

/* ===== SECTIONS ===== */
main {
  max-width: 1400px;
  width: 92%;
  margin: 0 auto;
  padding: 20px;
}

section {
  padding: 50px 0;
}

section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  position: relative;
}

section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 4px;
  margin: 10px auto 0;
}

/* ===== TERMS ===== */
.terms-list {
  width: 100%;
  margin: 0 auto;
  background: var(--card);
  padding: 28px 28px 28px 50px;
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.terms-list li {
  margin-bottom: 10px;
}

/* ===== GALLERY ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery figure {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.2s;
}

.gallery figure:hover {
  transform: translateY(-4px);
}

.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.3s;
}

.gallery figure:hover img {
  transform: scale(1.03);
}

.gallery figcaption {
  padding: 12px 14px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

/* ===== PRICES ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

@media (max-width: 1050px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  padding-bottom: 22px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s;
}

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

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eee;
  display: block;
  margin-bottom: 16px;
  cursor: pointer;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-dark);
}

.extra {
  text-align: left;
  margin-top: 26px;
  padding: 16px;
  background: #fff0f5;
  border-right: solid #c4577c 5px;
  border-left: solid #c4577c 5px;
}

/* ===== WILL / WON'T ===== */
.two-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.col {
  background: var(--card);
  padding: 26px 26px 26px 30px;
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.col h3 {
  margin-bottom: 12px;
}

.col ul {
  padding-left: 20px;
}

.col li {
  margin-bottom: 6px;
}

.will {
  border-top: 6px solid var(--will);
}

.will h3 {
  color: var(--will);
}

.wont {
  border-top: 6px solid var(--wont);
}

.wont h3 {
  color: var(--wont);
}

/* ===== NOTES ===== */
.note {
  text-align: center;
  margin-top: 24px;
  font-style: italic;
  color: #666;
}

/* ===== CONTACT ===== */
#contact {
  text-align: center;
}

.contact-list {
  list-style: none;
  margin-top: 18px;
}

.contact-list li {
  margin-bottom: 8px;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.contact-list a {
  color: var(--accent-dark);
  font-weight: 600;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 26px 16px;
  font-size: 0.9rem;
  color: #777;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 20px;
  cursor: zoom-out;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
  transform: scale(0.95);
  transition: transform 0.25s ease;
  cursor: default;
}

.lightbox.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: background 0.2s, transform 0.2s;
}

.lightbox-close:hover {
  background: #ffffff;
  transform: scale(1.1);
}

/* =====================================================
   MOBILE (écrans de 700px et moins)
   Menu burger + textes plus aérés et moins encombrants
   ===================================================== */
@media (max-width: 700px) {

  body {
    font-size: 15px;
    line-height: 1.65;
  }

  /* --- Menu latéral (burger) --- */
  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 16px;
    background: #ffffff;
    /* backdrop-filter désactivé : il empêcherait le menu fixe de se placer correctement */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-brand {
    display: block;
    font-weight: 800;
    font-size: 1.05rem;
  }

  .nav-toggle {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  /* Le burger devient une croix quand le menu est ouvert */
  .nav.open .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav.open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav.open .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Fond sombre derrière le menu (clique dessus pour fermer) */
  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(45, 42, 50, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav.open .nav-overlay {
    opacity: 1;
    visibility: visible;
  }

  /* Panneau latéral qui glisse depuis la droite */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 3;
    width: 230px;
    max-width: 70vw;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 4px;
    padding: 76px 14px 24px;
    background: #ffffff;
    border-radius: 18px 0 0 18px;
    box-shadow: -8px 0 28px rgba(0, 0, 0, 0.12);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.35s;
  }

  .nav.open .nav-links {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
  }

  .nav-links a {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 1.02rem;
    text-align: left;
    transition: background 0.2s, color 0.2s;
  }

  .nav-links a:hover,
  .nav-links a:active {
    background: #fff0f5;
    color: var(--accent-dark);
  }

  /* Les liens apparaissent un par un à l'ouverture */
  .nav.open .nav-links a {
    animation: navLinkIn 0.35s ease both;
  }

  .nav.open .nav-links a:nth-child(1) { animation-delay: 0.10s; }
  .nav.open .nav-links a:nth-child(2) { animation-delay: 0.15s; }
  .nav.open .nav-links a:nth-child(3) { animation-delay: 0.20s; }
  .nav.open .nav-links a:nth-child(4) { animation-delay: 0.25s; }
  .nav.open .nav-links a:nth-child(5) { animation-delay: 0.30s; }

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

  /* --- Mise en page générale --- */
  main {
    width: 100%;
    padding: 8px 16px;
  }

  section {
    padding: 36px 0;
  }

  section h2 {
    font-size: 1.6rem;
    margin-bottom: 22px;
  }

  section h2::after {
    margin-top: 8px;
  }

  .hero {
    padding: 56px 20px 48px;
  }

  .badge {
    font-size: 0.8rem;
    padding: 5px 14px;
  }

  .hero p {
    font-size: 1.05rem;
    margin-bottom: 22px;
  }

  .btn {
    padding: 11px 26px;
  }

  /* --- Terms : un bloc par règle, titre au-dessus du texte --- */
  .terms-list {
    list-style: none;
    padding: 6px 20px;
  }

  .terms-list li {
    margin: 0;
    padding: 16px 0;
    border-bottom: 1px solid #f3e9ed;
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .terms-list li:last-child {
    border-bottom: none;
  }

  .terms-list li strong {
    display: block;
    margin-bottom: 3px;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent-dark);
  }

  /* --- Galerie : 2 colonnes, légendes plus petites --- */
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .gallery figcaption {
    padding: 8px 10px;
    font-size: 0.78rem;
    line-height: 1.4;
  }

  /* --- Prix : 2 colonnes compactes --- */
  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .card {
    padding-bottom: 16px;
  }

  .card img {
    margin-bottom: 12px;
  }

  .card h3 {
    font-size: 1rem;
    padding: 0 8px;
  }

  .price {
    font-size: 1.35rem;
  }

  .extra {
    margin-top: 18px;
    padding: 16px;
    font-size: 0.92rem;
    line-height: 1.7;
    border-left-width: 4px;
    border-right-width: 4px;
  }

  /* --- Will / Won't draw --- */
  .two-cols {
    gap: 16px;
  }

  .col {
    padding: 18px 20px;
  }

  .col h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
  }

  /* Liste simple et serrée, avec un petit tiret à la place des puces */
  .col ul {
    list-style: none;
    padding: 0;
  }

  .col li {
    position: relative;
    margin: 0;
    padding: 4px 0 4px 16px;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .col li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: #aaa;
  }

  .note {
    margin-top: 18px;
    font-size: 0.9rem;
  }

  /* --- Contact & footer --- */
  .contact-list li {
    font-size: 1rem;
  }

  /* Espace en bas pour que le badge "Powered by Netlify" ne cache pas le texte */
  footer {
    padding: 24px 16px 80px;
  }
}