html {
  min-height: 100%;
  background: linear-gradient(#DCE3FC, #DCFAF1);
}

body {
  margin: 0;
  font-family: 'Amiri', serif;
  text-align: center;
  min-height: 100vh;
  background: transparent;
}

img {
  max-width: 100%;
  display: block;
}

/* CONTAINER GÉNÉRAL */
.container {
  max-width: 900px;
  margin: auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* PAGE D'ACCUEIL */
.home-landing {
  min-height: auto;
  padding-top: 70px;
  padding-bottom: 20px;
}

.home-choice {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  flex-wrap: wrap;
  margin-top: 50px;
}

.home-card {
  width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-card h2 {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 0;
  margin-bottom: 20px;
}

.home-img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-img:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.home-footer {
  padding: 10px 20px 30px;
  font-size: 14px;
  opacity: 0.7;
}

.home-footer p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

/* IMAGE RONDE DES AUTRES PAGES */
.hero-image img {
  width: 160px;
  height: 160px;
  margin: 0 auto 25px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 40px rgba(255, 220, 120, 0.8);
}

/* TITRES */
h1 {
  font-family: 'Dancing Script', cursive;
  font-size: 62px;
  margin-top: 0;
  margin-bottom: 8px;
}

h2 {
  font-family: 'Dancing Script', cursive;
  font-size: 26px;
  margin-top: 25px;
  margin-bottom: 15px;
}

/* TEXTE */
p {
  font-size: 18px;
  line-height: 1.7;
}

/* INTRO */
.intro {
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 20px;
}

/* BOUTONS */
.buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.btn {
  background: #D5F2E8;
  border: none;
  border-radius: 40px;
  padding: 14px 24px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  transition: 0.2s;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn.primary {
  background: #C8E6D8;
  font-weight: bold;
}

/* FOOTER GÉNÉRAL */
footer {
  margin-top: 60px;
  padding: 20px;
  font-size: 0.9rem;
}

/* MODALES */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  overflow-y: auto;
  z-index: 9999;
}

.modal-content {
  background: linear-gradient(#eef0dd, #f8e7f5);
  margin: 5% auto;
  padding: 20px;
  width: 90%;
  max-width: 520px;
  border-radius: 16px;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
}

.modal-content strong {
  font-family: 'Dancing Script', cursive;
  font-size: 22px;
  display: block;
  margin-bottom: 5px;
}

.close {
  float: right;
  font-size: 30px;
  cursor: pointer;
}

.modal-content p {
  margin: 10px 0;
}

/* PAGE LÉGALE */
.legal {
  text-align: left;
  max-width: 800px;
}

.legal h1 {
  text-align: center;
  margin-bottom: 30px;
}

.legal h2 {
  margin-top: 30px;
  font-size: 24px;
}

.legal p {
  margin-top: 10px;
  line-height: 1.7;
}

.legal-note {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 10px;
}

/* LIENS */
a {
  color: #0b0b0c;
  text-decoration: underline;
  cursor: pointer;
}

a:hover {
  opacity: 0.7;
}

/* CONTACT */
.contact-box {
  margin-top: 20px;
}

.btn.contact {
  display: inline-block;
  margin: 10px;
  background: #C8E6D8;
  font-weight: bold;
}

.btn.contact.secondary {
  background: #DCE3FC;
  font-weight: bold;
}

.email-fallback {
  margin-top: 15px;
  font-size: 0.95rem;
  opacity: 0.8;
}

#modal-who .modal-content {
  padding: 20px;
}

#modal-who .modal-content p {
  margin: 6px 0;
  font-size: 17px;
  line-height: 1.4;
}

/* MODALE LARGE */
.modal-large .modal-content {
  max-width: 850px;
  width: 95%;
  padding: 20px;
  margin-top: 10px;
}

.modal-large h2 {
  text-align: center;
  margin-bottom: 10px;
}

.modal-large h3 {
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 20px;
}

.modal-large p {
  font-size: 16px;
  margin: 6px 0;
  line-height: 1.5;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .container {
    max-width: 100%;
    padding: 30px 16px;
  }

  .home-landing {
    padding-top: 40px;
  }

  .home-choice {
    gap: 35px;
    margin-top: 35px;
  }

  .home-card {
    width: 100%;
    max-width: 320px;
  }

  .home-card h2 {
    min-height: auto;
  }

  .home-img {
    width: 240px;
    height: 240px;
  }

  h1 {
    font-size: 50px;
  }

  h2 {
    font-size: 24px;
  }

  .intro {
    font-size: 18px;
  }
}

.btn.primary.btn-yellow {
  background: #eee9cb; /* jaune pâle */
  color: black;
}

/* ===== ESPACEMENT GLOBAL ===== */

/* espace entre chaque bloc principal */
.container > * {
  margin-bottom: 25px;
}

/* espace spécifique titres */
h2 {
  margin-top: 50px;
  margin-bottom: 20px;
}

/* bouton "Pourquoi je propose ce service" */
.btn-yellow {
  margin-top: 25px;
  margin-bottom: 35px;
}

/* groupes de boutons */
.buttons {
  margin-top: 20px;
  margin-bottom: 40px;
  gap: 20px; /* espace entre boutons */
}

/* boutons individuels */
.btn {
  margin: 5px;
}

/* paragraphe légal */
.legal-note {
  margin-top: 20px;
  margin-bottom: 40px;
}

/* section contact */
.contact-box {
  margin-top: 25px;
}

/* espace avant footer */
footer {
  margin-top: 60px;
}
.modal-content li::before {
  content: "✔ ";
  color: #4CAF50;
  font-weight: bold;
}
.modal-content ul {
  list-style: none; /* enlève les points */
  padding: 0;
  margin: 15px 0;
}

.modal-content li {
  margin: 8px 0;
  text-align: center;
}

#modal-process .modal-content li::before {
  content: none;
}
#modal-process .modal-content li {
  text-align: left;
}



/* GALERIE APERÇUS */
.preview-gallery {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.preview-img {
  width: 220px;
  height: 140px;
  object-fit: contain;   /* montre toute l’image */
  background: rgba(255,255,255,0.35);
  border-radius: 16px;
  padding: 8px;
  box-sizing: border-box;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.preview-img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

/* MODALE IMAGE */
.image-modal-content {
  max-width: 760px;
  width: 92%;
  padding: 15px;
  text-align: center;
}

.image-modal-content img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 12px;
  margin: 10px auto 0;
}


/* RESPONSIVE */


@media (max-width: 768px) {
  .preview-img {
    width: 170px;
    height: 110px;
  }
}

  .image-modal-content {
    width: 95%;
    padding: 12px;
  }

  .intro + h2 {
  margin-top: 10px; /* réduit l’espace au-dessus du titre */
}

/* BOUTONS SAV SUR UNE LIGNE + PLUS PETITS */
.buttons.sav {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap; /* passe à la ligne si écran petit */
}

.buttons.sav .btn {
  padding: 10px 18px; /* réduit la taille */
  font-size: 0.9rem; /* texte un peu plus petit */
  white-space: nowrap; /* évite retour à la ligne dans le bouton */
}

.home-card-text {
  margin-top: 22px;
  font-size: 17px;
  line-height: 1.7;
  text-align: center;
  max-width: 280px;
}

.home-card {
  width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}