/* POLICES */

/* Police "Pinyon Script" */
@import url('https://fonts.googleapis.com/css2?family=Pinyon+Script&display=swap');  
/* Police "Gilda Display" */
@import url('https://fonts.googleapis.com/css2?family=Gilda+Display&display=swap');
/* Police "Cormorant Garamont" */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&display=swap');
 
/* COULEUR GÉNÉRALE */ 

:root {
  --text: #0A0036;
  --bg: #fffdf6;
  --line: #eeeeee;

  --footer_bg: #0A0036;
  --footer_color: #fffdf6;
  
  --button_bg: #0A0036;
  --button_over_bg: #a73439; /* background bouton "over" */
  --button_color: #fffdf6;
  
  --link_over_color: #a73439;   /* couleur de survol d'un lien */

  --title-font-family: "Pinyon Script";
  --h1-font-size: 64px;
  --h2-font-size: 48px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.65;
}

    /* Titres */
h1, h2 {
  font-family: var(--title-font-family);
  /*letter-spacing: 0.3px;*/
  margin: 0 0 16px 0;
  text-align: center;
  color: var(--text);
}

h1 {
  margin-top: 1em;
  font-size: var(--h1-font-size);
}

h2 {
  margin-top: 1em;
  font-size: var(--h2-font-size);
}

h3 {
    font-family: 'Gilda Display', serif;
    font-size: 20px;
    margin-bottom: 12px;
    text-align: center;
    color: #0A0036;
    font-weight: 400;
}

.brand {
  font-family: 'Gilda Display', serif;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.5px;
}


/* SECTION HERO */

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  padding: 40px 0;
  margin: 40px 0;
  align-items: start;
}

.hero-col {
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.hero-photo {
  aspect-ratio: 1 / 1;
}

.hero-photo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  padding: 0;
}

.hero-logo-block {
  flex-direction: column;
  padding: 40px 20px;
  align-self: center;
  justify-self: center;
}

.hero-logo {
  max-width: 350px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {

  .hero-grid {
    grid-template-columns: 1fr;
    padding: 20px 0;
  }

  .hero-photo img {
    width: 100%;
    height: auto;
    max-height: 60vh;
  }

  .hero-logo {
    max-width: 60vw;
  }

  .hero-logo-block {
    order: 1; /* logo en premier */
    padding: 20px 10px;
  }

  .hero-photo {
    order: 2; /* photo en dessous */
    padding: 0;
  }
}


    /* TEXTE DE BIENVENUE */
.bienvenue {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 20px;
  font-family: 'Cormorant Garamond', serif;
}

.bienvenue h1 {
  font-family: 'Pinyon Script', cursive;
  text-align: center;
  margin-bottom: 40px;
  color: #0A0036;
}

.bienvenue h3 {
    font-family: 'Gilda Display', serif;
    font-size: 20px;
    margin-bottom: 12px;
    text-align: center;
    color: #0A0036;
    font-weight: 400;
}

.bienvenue p {
  margin-bottom: 20px;
  font-size: 1.25rem;
  line-height: 1.7;
  font-weight: 500;
  text-align: justify;
}

@media (max-width: 768px) {
  .bienvenue p {
    text-align: justify;
    font-size: 1.05rem;
    line-height: 1.6;
  }

  .bienvenue h1 {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
    text-align: center;
  }
}

/* IMAGES */

.deroule img {
  width: 75vh;
  max-width: 600px;
  height : auto;
  display: block;
  margin: 0 auto;
}

@media (max-width: 768px) {
    .deroule img {
      width: 85vw !important;
      max-width: 85vw !important;
      height: auto !important;
      object-fit: contain;
    }  
}

.lieu img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.bague img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.icone img {
    width: 80px !important;
    height: 80px !important;
    display: block;
    margin: 0 auto;
    object-fit: contain !important;
    flex-shrink: 0 !important;
}

/* NAVIGATION */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fffdf6;
  /*border-bottom: 1px solid #eee;*/
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Gilda Display', serif;
  text-wrap: nowrap;
  font-size: 15px;
  /*width: 100%;
  padding: 20px 40px;*/
  
}

.logo_burger {
  display: none;
}

.logo img {
  height: 80px;
  width: auto;	
}

.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text);
  background: none;
  border: none;
}

.menu-toggle:hover {
    color: color: #a73439;
}

.menu {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.menu a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.25s ease;
}

.menu a:hover {
  color: #a73439;
}

/* MENU BURGER */

@media (max-width: 1024px) {
  .menu-toggle {
	display: block;
	z-index: 1000;
	}
  .menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    gap: 18px;
    padding: 80px 20px 20px;
    border-right: 1px solid var(--line);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .menu.show { 
    transform: translateX(0);  
  }
  #menu1{
	  top: 10px;
  }
  
  #menu3{
	  top: 330px;
	  padding-top: 0;
  }
  
  #nav {
	background-color: var(--bg);  
  }
  
  .logo_burger {
    display: block;
  }
  
  .logo_burger img {
    height: 80px;
    width: auto;
  }
  
  .logo {
	display: none;
  }
}


/* Mise en page */

.container {
  flex-direction: row;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  margin-top: 8em;
  margin-bottom: 8em;
}

/* FOOTER*/

.footer {
  background: #0A0036;
  color: #fffdf6;
  padding: 40px 20px;
  margin-top: 80px;
}

.footer-content {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section h4 {
  font-family: 'Gilda Display', serif;
  font-size: 20px;
  margin-bottom: 12px;
}

.footer-section h5 {
  font-family: 'Pinyon Script', cursive;
  font-size: 30px;
  margin-bottom: 12px;
}

.footer-section p {
  margin: 4px 0;
  font-size: 20px;
  opacity: 0.85;
  font-family: 'Cormorant Garamond', serif;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  opacity: 0.6;
}

@media (min-width: 900px) {
  .footer-content {
    max-width: 480px;   /* largeur élégante */
    margin: 0 auto;     /* centre le bloc */
    text-align: center; /* centre le texte */
    line-height: 1.6;
  }
}
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}


/*AUTRE*/
/* Sections */
.section {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 24px;
  border-bottom: 1px solid var(--line);
}

/* Formulaires */
form {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  /* background: #fff; */
  /* border: 1px solid var(--line); */
  /* box-shadow: 0 2px 6px rgba(0,0,0,0.05); */
}

label {
  font-weight: 600;
  display: block;
  margin: 1rem 0 0.5rem;
  font-family: 'Gilda Display', serif;
}

input[type="radio"], input[type="checkbox"] {
  margin-right: 0.5rem;
}

button {
  display: block;
  width: 100%;
  background-color: var(--button_bg);
  color: var(--button_color);
  padding: 0.75rem;
  border: none;
  font-family: 'Gilda Display', serif;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 2rem;
  transition: background 0.3s ease;
}
button:hover { 
    background: var(--button_over_bg);
}

.confirmation {
  text-align: center;
  margin: 2rem auto;
  padding: 1rem;
  background: #fafafa;
  border: 1px solid var(--line);
  font-size: 1.2rem;
  font-family: 'Playfair Display', serif;
}

form label {
    display: inline-block;
    width: 6em;
}

/* Bazard */

.mariage .bienvenue {
    padding-top: 20px;
    padding-bottom: 10px;
}

.mariage section {
  margin-bottom: 40px;
}

.hero-photo iframe {
  width: 100%;
  height: 100%;
}

/* Boutons RSVP*/

.cta-container {
  text-align: center;
  margin-top: 60px;
}

.cta-rsvp {
  display: inline-block;
  background-color: #0A0036; /* bleu marine */
  color: #fffdf6; /* beige */
  padding: 12px 28px;
  border-radius: 30px;
  font-family: 'Gilda Display', serif;
  font-size: 18px;
  text-decoration: none;
  transition: 0.3s ease;
}

.cta-rsvp:hover {
  opacity: 0.85;
}

/* Email form */
.email-form {
  margin: 20px 0;
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: centrer !important;
  gap: 12px !important;
  width: 100%;
  flex-wrap: wrap;
  /*border: 2px solid red;*/
}

.bienvenue .email-form {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.bienvenue .email-form input,
.bienvenue .email-form button {
  display: inline-block;
}

.email-form * {
  display: inline-block !important;
}

.email-form input {
  flex: 0 0 auto !important;
  width: 260px;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  font-family: 'Gilda Display', serif;
  margin-right: 10px;
}

.email-form button {
      flex: 0 0 auto !important;
      background-color: #0A0036; /* bleu marine */
      color: #fffdf6; /* beige */
      padding: 10px 20px;
      border: none;
      border-radius: 30px;
      font-size: 16px;
      font-family: 'Gilda Display', serif;
      cursor: pointer;
      transition: 0.3s ease;
}

.email-form button:hover {
  opacity: 0.85;
}

.form-row {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
}

.form-row label {
  font-family: 'Gilda Display', serif;
  margin-bottom: 4px;
}

.form-row input {
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: 'Gilda Display', serif;
  font-size: 16px;
}

/* Mise en page */
.hero-grid > .droite {
  align-self: center;
}

.droite {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.droite form {
  width: 100%;
  max-width: 300px;
}

/* RSVP*/
.rsvp2-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 20px;
}

.invite-header {
  text-align: center;
  margin-bottom: 40px;
}

.invite-header p {
  font-size: 18px;
  margin-bottom: 10px;
  font-family: 'Cormorant Garamond', serif;
}

.invite-header h2 {
  font-family: 'Pinyon Script', serif;
  font-size: 32px;
  margin: 0;
}

.event-block {
  background: #fffdf6;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.event-block label:first-child {
  display: block;
  font-weight: 400;
  margin-bottom: 10px;
  font-family: 'Gilda Display', serif;
  font-size: 18px;
}

.event-block input[type="radio"] {
  margin-right: 6px;
}

.event-block .options {
  display: flex;
  gap: 20px; /* espace entre Présent et Absent */
  align-items: center;
}

.event-block .options label {
  font-family: 'Cormorant Garamond', serif; /* ou ce que tu veux */
  font-size: 18px;
  font-weight: 400;
}

.event-block label:first-child {
  white-space: nowrap;
  max-width: 100%;
  display: inline-block;
}

.rsvp2-container p {
  margin-top: 20px;
  font-size: 18px;
  font-family: 'Cormorant Garamond';
}

.rsvp2-container label {
  display: block;
  margin-bottom: 8px;
  white-space: nowrap;
}

.rsvp2-container .error {
  font-family: 'Cormorant Garamond', serif;
  color: #b30000;
  font-size: 18px;
  margin: 20px 0;
}

.confirmation {
  margin-top: 40px;
  padding: 20px;
  background: #e8f5e9;
  border-left: 4px solid #4caf50;
  border-radius: 8px;
  font-size: 18px;
  text-align: center;
  font-family: 'Cormorant Garamond';
}

/*Fade-In*/
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
