/* ====================================
   Reset & Variables
   ==================================== */

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

:root {
  --beige: #f5f0eb;
  --beige-dark: #ebe4dc;
  --sage: #7a9b8e;
  --sage-light: #a8c4b5;
  --anthracite: #3a3a3a;
  --gray: #4a4a4a;
}

/* ====================================
   Base Styles
   ==================================== */

body {
  font-family:
    "Montserrat",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: var(--gray);
  background: var(--beige);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--anthracite);
}

/* ====================================
   Navigation
   ==================================== */

nav {
  background: white;
  padding: 1rem 5%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav img {
  height: 60px;
}

/* ====================================
   Hero Section
   ==================================== */

.hero {
  position: relative;
  height: 90vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  max-width: 900px;
  padding: 2rem;
}

.hero h1 {
  font-size: clamp(2rem, 8vw, 4rem);
  margin-bottom: 1rem;
  color: white;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.hero .subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  margin-bottom: 2rem;
  font-weight: 300;
}

.baseline {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.2rem, 4vw, 2rem);
  font-style: italic;
  margin: 2rem 0;
  color: white;
  line-height: 1.4;
}

.hero-dates {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin: 2rem 0;
  font-weight: 500;
}

/* ====================================
   Buttons
   ==================================== */

.cta-primary {
  background: var(--sage);
  color: white;
  padding: 1.2rem 3rem;
  border: none;
  border-radius: 50px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  margin: 0.5rem;
  font-weight: 600;
}

.cta-primary:hover {
  background: var(--anthracite);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ====================================
   Sections
   ==================================== */

section {
  padding: 5rem 10%;
}

.section-light {
  background: white;
}

.section-title {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  text-align: center;
  margin-bottom: 1rem;
  color: var(--anthracite);
}

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--gray);
}

/* ====================================
   Cards
   ==================================== */

.points-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 3rem;
  margin: 3rem 0;
}

.point-card {
  background: var(--beige);
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  transition: all 0.3s ease;
  border-top: 5px solid var(--sage);
}

.point-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.point-card h3 {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  margin-bottom: 1rem;
  color: var(--sage);
}

.point-card p {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.7;
}

/* ====================================
   Testimonials
   ==================================== */

.temoignages-grid {
  display: grid;
  gap: 3rem;
  margin: 3rem 0;
}

.temoignage-card {
  background: var(--beige);
  padding: 2.5rem;
  border-radius: 20px;
  border-left: 6px solid var(--sage);
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  transition: all 0.3s ease;
}

.temoignage-card:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.temoignage-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--sage);
  flex-shrink: 0;
}

.temoignage-content h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  margin-bottom: 0.3rem;
  color: var(--anthracite);
}

.temoignage-content .role {
  color: var(--sage);
  font-style: italic;
  margin-bottom: 1rem;
  font-size: clamp(0.9rem, 1.8vw, 1rem);
}

.temoignage-content p {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.7;
  font-style: italic;
}

/* ====================================
   Form Section
   ==================================== */

.form-section {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  background: white;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Conteneur responsive pour iframe Google Forms */
.form-section iframe {
  width: 100%;
  min-height: 1200px;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  display: block;
  background: var(--beige);
}

.form-placeholder {
  background: var(--beige);
  padding: 3rem;
  border-radius: 15px;
  text-align: center;
  border: 2px dashed var(--sage);
}

.form-placeholder p {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--gray);
}

/* ====================================
   Modal
   ==================================== */

.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  animation: fadeIn 0.3s ease;
  padding: 1rem;
  overflow-y: auto;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: 25px;
  max-width: 500px;
  width: 100%;
  position: relative;
  animation: slideUp 0.4s ease;
  margin: auto;
}

.modal-content .modal-close {
  position: absolute !important;
  top: 1rem !important;
  right: 1rem !important;
  left: auto !important;
  font-size: 0.875rem;
  cursor: pointer;
  color: var(--gray);
  background: rgba(0, 0, 0, 0.05);
  border: none;
  border-radius: 50%;
  transition: all 0.3s ease;
  line-height: 1;
  padding: 0;
  width: 1.5rem;
  height: 1.5rem;
  min-width: 1.5rem;
  min-height: 1.5rem;
  max-width: 1.5rem;
  max-height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
}

.modal-close:hover {
  color: var(--anthracite);
  background: rgba(0, 0, 0, 0.1);
  transform: rotate(90deg);
}

.modal h2 {
  margin-bottom: 1rem;
  color: var(--sage);
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.modal p {
  margin-bottom: 2rem;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.modal input {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: 2px solid var(--beige-dark);
  border-radius: 10px;
  font-size: clamp(0.95rem, 2vw, 1rem);
  transition: border 0.3s ease;
}

.modal input:focus {
  outline: none;
  border-color: var(--sage);
}

.modal button {
  width: 100%;
  padding: 1.2rem;
  background: var(--sage);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: clamp(1rem, 2vw, 1.1rem);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal button:hover {
  background: var(--sage-light);
  transform: translateY(-2px);
}

/* ====================================
   Footer
   ==================================== */

footer {
  background: var(--anthracite);
  color: white;
  padding: 3rem 10%;
  text-align: center;
}

footer img {
  height: 80px;
  margin-bottom: 2rem;
}

footer a {
  color: var(--sage-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: white;
}

.legal {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: clamp(0.85rem, 1.8vw, 0.95rem);
  opacity: 0.9;
  line-height: 1.8;
}

/* ====================================
   Animations
   ==================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* ====================================
   Responsive Design
   ==================================== */

/* Tablettes et petits écrans */
@media (max-width: 768px) {
  nav {
    padding: 1rem 3%;
  }

  nav img {
    height: 50px;
  }

  .hero {
    height: 80vh;
    min-height: 500px;
  }

  section {
    padding: 3rem 5%;
  }

  .points-grid {
    gap: 2rem;
  }

  .point-card {
    padding: 2rem;
  }

  .temoignage-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }

  .temoignage-card img {
    margin: 0 auto;
  }

  .form-section {
    padding: 2rem;
    border-radius: 15px;
  }

  .form-section iframe {
    min-height: 1000px;
    border-radius: 8px;
  }

  .cta-primary {
    padding: 1rem 2rem;
    width: 100%;
    max-width: 300px;
  }

  footer {
    padding: 2rem 5%;
  }
}

/* Très petits écrans (smartphones) */
@media (max-width: 480px) {
  nav {
    padding: 0.8rem 3%;
  }

  nav img {
    height: 40px;
  }

  .hero {
    height: 70vh;
    min-height: 450px;
  }

  section {
    padding: 2rem 4%;
  }

  .points-grid {
    gap: 1.5rem;
  }

  .point-card,
  .temoignage-card {
    padding: 1.5rem;
  }

  .temoignage-card img {
    width: 100px;
    height: 100px;
  }

  .form-section {
    padding: 1rem;
    border-radius: 10px;
  }

  .form-section iframe {
    min-height: 900px;
    border-radius: 5px;
  }

  .form-placeholder {
    padding: 2rem 1rem;
  }

  .modal-content {
    width: 95%;
  }

  footer img {
    height: 60px;
  }
}

/* Très grands écrans */
@media (min-width: 1920px) {
  section {
    padding: 6rem 15%;
  }

  .hero-content {
    max-width: 1200px;
  }

  .section-intro {
    max-width: 1000px;
  }

  .points-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

/* Accessibilité - Mode paysage sur mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    height: auto;
    min-height: 400px;
    padding: 3rem 0;
  }

  .modal {
    align-items: flex-start;
  }

  .modal-content {
    margin: 2rem auto;
  }
}

/* Préférence pour le mode sombre (optionnel) */
@media (prefers-color-scheme: dark) {
  /* Vous pouvez ajouter un thème sombre ici si souhaité */
}

/* Amélioration pour les animations si l'utilisateur préfère réduire les mouvements */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
