/* ===================================
   Variables & Reset
=================================== */
:root {
  --color-bg: #F8F9F3;
  --color-primary: #214F4B;
  --color-light: #fff;
  --color-accent: #56918C;
  --color-dark: #07302D;

  --font-title: "Italiana", serif;
  --font-body: "Red Hat Display", sans-serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-primary);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.BG {
  background: url(assets/Flower_BG.svg) no-repeat;
  background-size: 90vw;
}

/* ===================================
   Typography
=================================== */
h1, h2 {
  font-family: var(--font-title);
  color: var(--color-primary);
}

h1 {
  font-size: 5rem;
  color: var(--color-light);
}

h2 {
  font-size: 2rem;
  margin-bottom: 0.5em;
}

h3 {
  font-size: 1.25rem;
  margin: 1em 0 0.75em;
  font-family: var(--font-body);
}

h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1em;
  font-family: var(--font-body);
}

p {
  margin-bottom: 1em;
  font-family: var(--font-body);
}

/* ===================================
   Header
=================================== */
.site-header {
  background-color: var(--color-bg);
  padding: 1rem 0;
}

.nav-container {
  position: relative;
  height: 5vh;
}

.logo {
  height: 40px;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.nav-links {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 500;
}

.nav-links a.active,
.nav-links a:hover {
  font-weight: bold;
  border-bottom: 2px solid var(--color-primary);
}

/* ===================================
   Hero
=================================== */
.hero {
  position: relative;
  min-height: 70vh; /* plus flexible que height fixe */
  background: url('assets/Hero_BG.png') bottom/cover no-repeat, var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem; /* pour respirer sur mobile */
}

.hero-content {
  position: relative;
  top: 0; /* on enlève le décalage forcé */
}

.hero-content h1 {
  font-size: clamp(2rem, 8vw, 4rem); /* fluide */
  margin-bottom: 0.5rem;
}

.hero-content p {
  font-size: clamp(1rem, 4vw, 1.2rem);
  color: var(--color-light);
}

/* ===================================
   About Section
=================================== */
.about-section {
  display: flex;
  flex-direction: row; /* horizontal */
  gap: 4rem;
  margin: 4rem auto 4.5rem;
  align-items: center;
  text-align: left;
}

.about-img img {
  border-radius: 50%;
  max-width: 40vw;
}

.about-text {
  max-width: 600px;
}

/* ===================================
   Buttons
=================================== */
.btn-primary,
.btn-secondary {
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Primary button */
.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-light);
  border: none;
}
.btn-primary:hover { background-color: var(--color-accent); }
.btn-primary:focus { background-color: var(--color-dark); }

/* Secondary button */
.btn-secondary {
  background: var(--color-primary);
  color: var(--color-light);
  border: 2px solid var(--color-light);
}
.btn-secondary:hover {
  background-color: var(--color-light);
  color: var(--color-primary);
}
.btn-secondary:focus {
  background-color: var(--color-dark);
  color: var(--color-light);
}

/* ===================================
   Ceremonies
=================================== */
.ceremonies {
  text-align: center;
  margin: 0.5rem auto;
}

.ceremony-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 colonnes par défaut (desktop) */
  gap: 2rem;
  margin-top: 2rem;
}

.ceremony-card {
  border: 2.5px solid var(--color-primary);
  padding: 3rem;
  border-radius: 8px;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ceremony-card img {
  max-width: 5rem;
}

/* ===================================
   Certification Section
=================================== */
.certification {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 3rem; 
  flex-wrap: wrap; 
  text-align: center;
  padding: 3rem 1rem;
  margin: 4rem auto;
}

.certification div {
  flex: 1 1 250px; 
  max-width: 300px;
}

.certification h4 {
  font-size: 1.2rem;
  color: #214F4B;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.certification img {
  max-width: 150px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.certification div:first-child img {
  max-width: 200px;
}

.certification h4 a {
  color: #214F4B;             /* vert principal */
  text-decoration: underline; /* toujours souligné */
  font-weight: 600;
  transition: color 0.3s ease;
}

.certification h4 a:hover {
  color: #56918C;             /* vert plus clair au survol */
}

.certification h4 a:active,
.certification h4 a:focus {
  color: #07302D;             /* vert plus foncé au clic ou focus */
}

.certification h4 a:visited {
  color: #3A6D68;             /* teinte légèrement différente si déjà visité */
}




/* ===================================
   Contact Section
=================================== */
.contact-section {
  margin: 3.5em auto 6em;
  text-align: center;
}

.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  font-family: inherit;
}

.contact-form button {
  background-color: var(--color-primary);
  color: var(--color-light);
  border: none;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  border-radius: 4px;
}

/* ===================================
   Footer
=================================== */
.site-footer {
  background-color: var(--color-primary);
  padding: 2rem 0;
  text-align: center;
}

.logo-footer {
  max-width: 100px;
  margin: 0 auto;
}

/* ===================================
   About Page
=================================== */
.intro-section {
  position: relative;
  background: url(assets/Rectangle_hero.png) center/cover no-repeat;
  padding: 4em 0;
}

.intro-div {
  display: flex;
  flex-direction: row; /* horizontal */
  gap: 4rem;
  justify-content: center;
  align-items: center;
  text-align: left;
  padding: 0 5vw;
}

.intro-text,
.intro-text h2 {
  color: var(--color-light);
}

.intro-img img {
  border-radius: 50%;
  max-width: 35vw;
}

.biographie {
  display: flex;
  gap: 2rem;
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
  align-items: center;
}

.biographie-img {
  flex: 1;
  display: flex; /* wrapper pour gérer la hauteur */
}

.biographie-img img {
  width: auto;
  height: 100%;       /* prend la hauteur du parent (wrapper = hauteur du texte) */
  object-fit: cover;  /* garde les proportions, crop si nécessaire */
  border-radius: 8px;
}

.biographie p {
  flex: 2;
  font-size: 1rem;
  line-height: 1.6;
  color: #214F4B;
}

.biographie.reverse {
  flex-direction: row-reverse; /* image à droite, texte à gauche */
}

/* Services alt section */
.services-section {
  background: url(assets/Green_BG.png) top/cover no-repeat;
  height: 80vh;
  color: var(--color-light);
  padding: 10rem 20rem;
  text-align: left;
  margin-top: 4em;
}

.services-section h2 { color: var(--color-light); }

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

/* Typographie fluide */
h1 { font-size: clamp(2.2rem, 6vw, 5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.25rem); }
h4 { font-size: clamp(1rem, 2vw, 1.15rem); }
p  { font-size: clamp(0.95rem, 1.8vw, 1rem); }

/* ===== Smartphones ===== */
@media (max-width: 768px) {
  .certification {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .certification div {
    max-width: 90%;
  }
}

@media (max-width: 576px) {
  .nav-container {
    height: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .logo {
    position: static;
    transform: none;
  }

  .nav-links {
    position: static;
    transform: none;
    flex-direction: column;
    gap: 1rem;
  }

  @media (max-width: 576px) {
  .hero {
    min-height: 60vh; /* un peu plus compact */
    background-position: center; /* évite de couper trop le visuel */
  }

  .hero-content {
    padding: 0 1rem;
  }

  .hero-content h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .about-section,
  .intro-div {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .about-img img,
  .intro-img img {
    max-width: 70vw;
  }
}

  .about-img img,
  .intro-img img {
    max-width: 60vw;
  }

   .ceremony-types {
    grid-template-columns: 1fr; /* 1 colonne sur mobile */
  }

  .ceremony-card {
    padding: 2rem 1rem;
  }

  .services-section {
    height: auto;
    padding: 4rem 2rem;
    text-align: center;
  }

  .services-section h2 {
    margin-bottom: 1rem;
  }

  .contact-section {
    padding: 2rem 1rem;
  }

  .biographie,
  .biographie.reverse {
    flex-direction: column;
    text-align: center;
  }

  .biographie-img,
  .biographie.reverse .biographie-img {
    width: 100%;
    height: auto;
  }

  .biographie-img img {
    height: auto; /* laisse l'image reprendre sa hauteur naturelle */
    max-width: 80vw;
  }

  .biographie p {
    width: 100%;
  }
}

/* ===== Tablettes (portrait & paysage) ===== */
@media (min-width: 577px) and (max-width: 991px) {
  .about-section {
    flex-direction: column;
    text-align: center;
  }

  .ceremony-types {
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur tablette */
  }

  .intro-div {
    flex-direction: column;
    gap: 3rem;
    text-align: center;
  }

  .services-section {
    height: auto;
    padding: 6rem 3rem;
  }
}

/* ===== Desktop large ===== */
@media (min-width: 1200px) {
  .container {
    max-width: 1300px;
  }

  .ceremony-types {
    gap: 3rem;
  }

  .hero {
    height: 90vh;
  }
}

