:root {
  --brown: #603005;
  --bleu-clair: #e3f2fd;
  --bleu: #b9e2f9;
  --orange: #f57c00;
  --jaune: #fbe8b0;
  --fond-global: #ffffff;
  --texte: #333;
}

@font-face {
  font-family: "Goudy Old Style";
  src: url("goudy-old-style-italic.ttf") format("truetype"),
       url("/fonts/goudy-old-style-italic.ttf") format("truetype"),
       url("fonts/goudy-oldstyle.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Goudy Old Style', sans-serif;
  color: var(--texte);
  background-color: var(--fond-global);

  background-image: url('tournesol.jpg');
  background-size: 100% auto;
  background-repeat: repeat-y;
  background-position: top center;
  background-attachment: fixed; /* reste en place */
}

header {
  height: 100vh;
  display: flex;
  flex-direction: column;
  text-align: center;
  color: var(--brown);
  position: relative;
}

.header-texte {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-image: url('bleujaune.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(0, 0, 0, 0);
  
  font-family: "Goudy Old Style", serif;
  background-blend-mode: overlay;
}

.header-texte h1 {
  margin: 0.2em 0;
  font-size: 2.5em;
  line-height: 1.2;
  font-style: italic;
  color: #151b1e;
}

#mariage {
  margin: 0.2em 0;
  font-size: 2.5em;
  line-height: 1.2;
  font-family: "Goudy Old Style", serif;
  font-style: normal;
}

.header-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#gif-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Version mobile par défaut */
@media (max-width: 768px) {
  header {
    flex-direction: column;
  }

  .header-texte {
    flex: 1;
  }

  .header-image {
    flex: 1;
  }

  #gif-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1; /* image carrée */
  }
}

main {
  padding: 0 1em;
  max-width: 100%;
  box-sizing: border-box;
}

section,
#informationsLeft,
#informationsRight {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 1em;
  margin: 1em auto;
  max-width: 900px; /* pour ne pas déborder */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.personne {
  padding: 0 !important;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  border-bottom: 1px solid #ccc;
  margin-bottom: 1em;
  padding-bottom: 1em;
}

.personne:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

form {
  border: none !important;
}

h2 {
  color: var(--brown);
  margin-top: 0;
  text-align: center;
}

h3 {
  color: var(--brown);
  margin-top: 0;
  font-size: 1em;
}

#information p, #information ul > li {
  font-style: italic;
  font-size: 1.2em; 
  margin-bottom: 0.6em;
}

#information ul li{
  margin-top: 0.6em;
}

#information ul ul li {
  font-size: 1em; 
  margin-bottom: 0.6em;
}

label {
  display: inline-block;
  margin-right: 1em;
  margin-bottom: 0.5em;
}

input[type="text"],
textarea {
  width: 100%;
  padding: 0.5em;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 1em;
  box-sizing: border-box;
}
input, textarea, select {
  font-size: 16px;
}


textarea {
  resize: vertical;
}

button {
  background-color: var(--jaune);
  color: rgb(0, 0, 0);
  border: none;
  padding: 0.7em 1.2em;
  border-radius: 6px;
  cursor: pointer;
  font-weight: normal;
  transition: background-color 0.2s ease;
  font-size: 1em;
}

button:hover {
  background-color: var(--jaune);
}

button.supprimer {
  background-color: var(--jaune);
  margin-top: 1em;
}

button.supprimer:hover {
  background-color: var(--jaune);
}

table {
  width: 100%;
  border-collapse: collapse;
}

td {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
}

#ajouter {
  margin-top: 1em;
}

@media (min-width: 600px) {
  td {
    display: table-cell;
    vertical-align: top;
    padding: 1em;
  }

  #informationsLeft,
  #informationsRight {
    width: 50%;
  }

  .personne {
    margin: 1.5em 0;
  }
}


ul {
  list-style-position: inside; /* la puce rentre dans le flux du texte */
  padding-left: 0.8em; /* réduit le retrait global */
  margin-left: 0;      /* supprime le décalage supplémentaire */
}

ul ul {
  padding-left: 1em;   /* sous-liste un peu indentée mais pas trop */
}