/* =========================
   Root theme (eucalyptus)
   ========================= */
   :root {
    --green-dark: #5f7f73;
    --green-soft: #a8c4b8;
    --green-light: #e9f2ee; /* très clair pastel vert */
    --gold-soft: #c9b37e;
    --white: #ffffff;
    --text-dark: #2f3e3a;
  
    --header-height: 220px;
    --transition: 0.35s ease;
    --font-main: "Georgia", serif;
  }
  
/* ========================================
   Images responsive auto
   ======================================== */

   /* img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  } */

  img {
    max-width: 100%;
    height: auto;
  }
  
  /* seulement pour les grandes images */
  .header-image img,
  .fun-image.polaroid img,
  .elephant-hebergement img,
  .elephant-programme img,
  .map-container img {
    display: block;
    margin: 0 auto;
  }

  /* =========================
     Reset & base
     ========================= */
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: var(--font-main);
    color: var(--text-dark);
    overflow-y: scroll;
  
    /* Fond eucalyptus subtil */
    background-color: var(--green-light);
    background-image:
      radial-gradient(circle at 15% 25%, rgba(168,196,184,0.25) 0%, transparent 40%),
      radial-gradient(circle at 85% 75%, rgba(168,196,184,0.25) 0%, transparent 40%);
    background-repeat: no-repeat;
    background-size: cover;
  }

  .centered {
    text-align: center;
    /* line-height:100px; */
  }
  
  /* =========================
     Fixed header
     ========================= */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    text-align: center;
  }
  
  /* Image dans header */
  .header-image img {
    max-width: 460px;
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
  }
  
  /* Navigation sous image */
  .main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    padding: 0;
    justify-content: center;
  }
  
  .main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    position: relative;
    transition: color var(--transition);
  }
  
  .main-nav a:hover {
    color: var(--green-dark);
  }
  
  /* Ligne dorée élégante sous menu */
  .main-nav a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gold-soft);
    transition: width var(--transition);
  }
  
  .main-nav a:hover::after {
    width: 100%;
  }
  
  /* =========================
     Pages
     ========================= */

  .page {
    position: relative;
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 40px);
    padding-left: 10vw;
    padding-right: 10vw;
    padding-bottom: 80px;
    background: transparent;
  }

  /* Alternance semi-transparente pour certaines pages */
  .page:nth-of-type(even) {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(2px);
  }

/* =========================
   Boarding pass style
   ========================= */

   #page-formulaire {
    max-width: 800px;
    margin: auto;
    padding: 50px;
  
    background: #ffffff;
    border-radius: 16px;
  
    box-shadow: 0 20px 50px rgba(95,127,115,0.15);
  
    position: relative;
  }
  
  /* Effet bordure billet avion */
  #page-formulaire::before,
  #page-formulaire::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    background: #dcebe5;
    border-radius: 50%;
    transform: translateY(-50%);
  }
  
  #page-formulaire::before {
    left: -20px;
  }
  
  #page-formulaire::after {
    right: -20px;
  }
  
  /* Titre style aéroport */
  .boarding-title {
    text-align: center;
    font-size: 2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 50px;
  }
  
  .boarding-title span {
    display: block;
    font-size: 1rem;
    letter-spacing: 4px;
    color: var(--green-dark);
    margin-top: 10px;
  }

  .flight-info {
    text-align: center;
    font-size: 0.9rem;
    color: var(--green-dark);
    margin-bottom: 40px;
    letter-spacing: 1px;
  }
  
  /* =========================
     Down arrow
     ========================= */
  .down-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--green-dark);
    cursor: pointer;
    animation: float 1.8s infinite ease-in-out;
  }
  
  @keyframes float {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 8px); }
  }
  
/* =========================
   Formulaire élégant mariage
   ========================= */

  form {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  label {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--green-dark);
    gap: 8px;
  }
  
  input,
  textarea {
    border: none;
    border-bottom: 1px solid #b7c9c2;
    padding: 8px 4px;
    font-size: 1rem;
    background: transparent;
    transition: all 0.3s ease;
  }
  
  input:focus,
  textarea:focus {
    outline: none;
    border-bottom: 2px solid var(--green-dark);
    transform: scale(1.01);
  }
  
  textarea {
    resize: none;
    min-height: 80px;
  }
  
  fieldset {
    border: 1px solid #dcebe5;
    border-radius: 12px;
    margin-top: 15px;
    padding: 20px;
  }

  legend {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--green-dark);
    padding: 0 10px;
  }
  
  label {
    text-transform: none;
    font-size: 0.95rem;
    flex-direction: column;
    gap: 10px;
  }

  fieldset label:has(input[type="radio"]),
  label:has(input[type="checkbox"]) {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  input[type="number"] {
    margin-top: 8px;
    width: 80px;
    text-align: center;
  }

  label:has(input[type="checkbox"]) {
    margin-top: 20px;
    padding: 10px 0;
  }
  
  button {
    align-self: center;
    margin-top: 40px;
    padding: 12px 40px;
    border-radius: 50px;
    border: 1px solid var(--green-dark);
    background: transparent;
    color: var(--green-dark);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  button:hover {
    background: var(--green-dark);
    color: white;
    transform: translateY(-2px);
  }
  
  .hidden {
    display: none;
  }

  .logement-info {
    margin-top: 15px;
    padding: 18px 20px;
    border-left: 3px solid var(--green-dark);
    background: rgba(95,127,115,0.08);
    font-size: 0.9rem;
    line-height: 1.6;
    border-radius: 6px;
  }

/* =========================
   Cérémonie page
   ========================= */

   .ceremonie-title {
    text-align: center;
    font-size: 2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 60px;
  }
  
  .ceremonie-title span {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 3px;
    margin-top: 15px;
    color: var(--green-dark);
  }
  
  .ceremonie-card {
    max-width: 900px;
    margin: auto;
    padding: 50px;
    background: rgba(255,255,255,0.85);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(95,127,115,0.15);
    position: relative;
  }
  
  .ceremonie-card h2 {
    text-align: center;
    margin-bottom: 20px;
  }
  
  .ceremonie-details {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 40px;
  }
  
  .map-container {
    margin-bottom: 50px;
    border-radius: 12px;
    overflow: hidden;
  }
  
  .info-section {
    margin-top: 30px;
  }
  
  .info-section h3 {
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: var(--green-dark);
  }
  
  .info-section ul {
    list-style: none;
    padding: 0;
  }
  
  .info-section li {
    margin-bottom: 10px;
    line-height: 1.6;
  }

  /* =========================
    Hebergement page
    ========================= */

  .hebergement-intro {
    max-width: 850px;
    margin: 0 auto 50px auto;
    padding: 25px 30px;
  
    background: rgba(255,255,255,0.85);
    border-left: 4px solid var(--green-dark);
  
    border-radius: 8px;
  
    font-size: 0.95rem;
    line-height: 1.7;

    position: relative;
  }

  .elephant-hebergement {
    position: absolute;
    bottom: -40px;
    right: -170px;
  
    background: white;
    padding: 8px 8px 20px 8px;
    border-radius: 6px;
  
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
  
    transform: rotate(8deg);
    z-index: 2;
  
    text-align: center;
    text-decoration: none;
    color: inherit;
    /* cursor: pointer; */
  }
  
  .elephant-hebergement img {
    width: 150px;
    display: block;
  }

  .elephant-hebergement span {
    font-size: 0.65rem;
    margin-top: 5px;
    display: block;
    color: #555;
    font-style: italic;
    text-decoration: none;
  }

  .elephant-hebergement:hover {
    transform: rotate(0deg) scale(1.18);
  }

  /* @media (max-width: 768px) {
    .elephant-hebergement {
      position: static;
      transform: none;
      margin: 15px auto;
    }
  } */

  /* =========================
    Contact page
    ========================= */

    #page-contact {
      max-width: 700px;
      margin: auto;
      text-align: center;
    }
    
    .contact-intro {
      margin-bottom: 30px;
    }
    
    .contact-info {
      display: flex;
      justify-content: center;
      gap: 40px;
      margin-bottom: 40px;
      flex-wrap: wrap;
    }
    
    .contact-person {
      background: #f8f8f8;
      padding: 20px 30px;
      border-radius: 10px;
      min-width: 200px;
    }
    
    .contact-form {
      display: flex;
      flex-direction: column;
      gap: 10px;
      text-align: left;
    }
    
    .contact-form label {
      margin-top: 10px;
    }
    
    .contact-form input,
    .contact-form textarea {
      padding: 10px;
      border-radius: 6px;
      border: 1px solid #ccc;
    }
    
    .contact-form button {
      margin-top: 20px;
      padding: 12px;
      border: none;
      border-radius: 6px;
      background: #3b6e52;
      color: white;
      cursor: pointer;
    }
    
    .contact-form button:hover {
      background: #2f5741;
    }

    .boarding-pass{
      max-width:500px;
      margin:40px auto;
      border-radius:12px;
      overflow:hidden;
      box-shadow:0 10px 25px rgba(0,0,0,0.15);
      background:white;
      border:2px dashed #8fae9e;
      animation: ticketAppear 0.6s ease;
    }
    
    .ticket-header{
      background:#8fae9e;
      color:white;
      font-weight:bold;
      text-align:center;
      padding:15px;
      font-size:1.3rem;
      letter-spacing:2px;
    }

    .ticket-header::after{
      content:"BOARDING CONFIRMED";
      display:block;
      margin-top:10px;
      font-size:0.8rem;
      letter-spacing:2px;
      color:#f80606;
      opacity:0.8;
    }
    
    .ticket-body{
      padding:30px;
      text-align:center;
    }
    
    .ticket-body h2{
      margin-bottom:10px;
    }
    
    .ticket-route{
      font-size:1.2rem;
      font-weight:bold;
      margin-bottom:15px;
    }
    
    .ticket-text{
      margin-bottom:10px;
      line-height:1.5;
    }
    
    .ticket-footer{
      font-style:italic;
      opacity:0.8;
    }
    
    @keyframes ticketAppear{
      from{
        transform:translateY(30px);
        opacity:0;
      }
      to{
        transform:translateY(0);
        opacity:1;
      }
    }
  
  /* =========================
    Programme page
    ========================= */

/* Timeline programme */

.timeline {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  border-left: 2px solid #c9b37e;
  padding-left: 20px;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 5px;
  width: 12px;
  height: 12px;
  background: #c9b37e;
  border-radius: 50%;
}

.time {
  min-width: 70px;
  font-weight: bold;
  color: var(--green-dark);
}

.content h3 {
  margin-bottom: 5px;
}

.content p {
  margin-bottom: 5px;
  font-size: 0.95rem;
}

.emoji-icon {
  width: 1em;
  vertical-align: -2px;
  margin-right: 5px;
}

/* Image elephant de mer */

.elephant-programme {
  position: absolute;
  top: -20px;
  right: -20px;

  background: white;
  padding: 8px 8px 15px 8px;
  border-radius: 6px;

  box-shadow: 0 12px 25px rgba(0,0,0,0.2);

  transform: rotate(8deg);
  z-index: 2;
  text-align: center;
}

.elephant-programme img {
  width: 140px;
  display: block;
}

.elephant-programme span {
  font-size: 0.65rem;
  margin-top: 5px;
  display: block;
  color: #555;
  font-style: italic;
  text-decoration: none;
}

.elephant-programme:hover {
  transform: rotate(0deg) scale(1.18);
}

/* =========================
   Departure board
   ========================= */

.departure-board {
  max-width: 800px;
  margin: 80px auto;
  text-align: center;
}

.board {
  /* background: #1e2a26; */
  background: #315c4e;
  color: #e8f1ed;
  border-radius: 12px;
  font-size: 1.1rem;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  font-family: "Courier New", monospace;
  position: relative;
}

.board-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.label {
  opacity: 0.7;
  letter-spacing: 2px;
  font-size: 0.8rem;
}

.value {
  font-weight: bold;
}

.countdown-row {
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Flip boxes */

#countdown {
  display: flex;
  gap: 15px;
}

.flip-box {
  background: #111;
  padding: 20px 15px;
  border-radius: 6px;
  text-align: center;
  min-width: 80px;
  position: relative;
  perspective: 1000px;
}

.flip-box span {
  font-size: 2.4rem;
  display: block;
  transition: transform 0.4s;
}

.flip-box.flip span {
  transform: rotateX(180deg);
}

.flip-box small {
  font-size: 0.8rem;
  opacity: 0.6;
}

/* Phrase principale */
.intro-voyage {
  text-align: center;
  font-size: 1.3rem;
  font-style: italic;
  margin-top: 30px;
  margin-bottom: 10px;
}

/* Alerte rouge */
.alert-deadline {
  text-align: center;
  color: #c0392b;
  font-weight: bold;
  text-decoration: underline;
  margin-bottom: 30px;
}

/* Image polaroid */
.fun-image.polaroid {
  position: absolute;
  bottom: -40px;
  right: -20px;
  z-index: 2;

  background: white;
  padding: 8px 8px 20px 8px;
  border-radius: 6px;

  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
  transform: rotate(9deg) translateZ(0);
  /* transform: rotate(9deg); */
  will-change: transform;

  text-decoration: none;
  color: inherit;
  /* cursor: pointer; */

  text-align: center;
}

.fun-image.polaroid img {
  width: 140px;
  display: block;
}

.fun-image.polaroid span {
  font-size: 0.65rem;
  margin-top: 5px;
  display: block;
  color: #555;
  font-style: italic;
  text-decoration: none;
}

/* petit hover sympa */
.fun-image.polaroid:hover {
  /* transform: rotate(0deg) scale(1.18); */
  transform: scale(1.18);
  box-shadow: 0 18px 35px rgba(0,0,0,0.3);
}

/* Tampon */
.passport-stamp {
  position: absolute;
  top: -20px;
  left: -20px;
  z-index: 1;

  border: 2px dashed #c0392b;
  color: #c0392b;
  padding: 10px 14px;
  font-size: 0.7rem;
  font-weight: bold;
  text-align: center;

  transform: rotate(-15deg);
  opacity: 0.6;

  background: transparent;
}

/* Badge */
.vip-badge {
  position: absolute;
  top: 100px;
  left: 40px;

  background: linear-gradient(135deg, #c9b37e, #e6d3a3);
  color: #2f3e3a;

  padding: 8px 14px;
  border-radius: 20px;

  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 1px;

  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* @media (max-width: 768px) {
  .fun-image.polaroid,
  .passport-stamp,
  .vip-badge {
    position: static;
    transform: none;
    margin: 15px auto;
    display: block;
    text-align: center;
  }
} */
    
  /* =========================
     Botanical SVG dividers
     ========================= */

  .botanical-divider {
    width: 100%;
    max-width: 600px;
    margin: 4rem auto;
    display: block;
    color: var(--green-soft);
    opacity: 0.85;
  }
  
  .botanical-divider.gold {
    color: var(--gold-soft);
  }
  
  .botanical-divider.flip {
    transform: scaleY(-1);
  }
  
  /* =========================
     Mobile fine tuning
     ========================= */
  /* @media (max-width: 900px) {
    :root {
      --header-height: 260px;
    }
  
    .main-nav ul {
      flex-wrap: wrap;
      gap: 1rem;
      justify-content: center;
    }
  
    .header-image img {
      max-width: 280px;
    }
  
    .page {
      padding-left: 6vw;
      padding-right: 6vw;
      padding-top: calc(var(--header-height) + 20px);
      padding-bottom: 100px;
    }
  } */
  
  /* @media (max-width: 400px) {
    .header-image img {
      max-width: 220px;
    }
  
    .main-nav a {
      font-size: 0.9rem;
    }
  } */

  /* ========================================
   VERSION MOBILE — téléphone optimisée
   ======================================== */

@media (max-width: 768px) {

  :root {
    --header-height: 320px;
  }

  /* Header */
  .site-header {
    padding: 15px 10px;
    height: auto;
  }

  .header-image img {
    max-width: 240px;
    margin-bottom: 15px;
  }

  /* Navigation */
  .main-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 0 10px;
  }

  .main-nav a {
    font-size: 0.85rem;
    letter-spacing: 0.03em;
  }

  /* Structure générale */
  .page {
    padding-top: calc(var(--header-height) + 30px);
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 80px;
  }

  /* Intro accueil */
  .intro-voyage {
    font-size: 1.05rem;
    line-height: 1.5;
    margin-top: 10px;
  }

  .alert-deadline {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  /* Departure board */
  .departure-board {
    margin: 40px auto;
  }

  .board {
    padding: 25px 18px;
    font-size: 0.95rem;
  }

  .board-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
  }

  .countdown-row {
    align-items: center;
  }

  #countdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 280px;
  }

  .flip-box {
    min-width: auto;
    padding: 15px 10px;
  }

  .flip-box span {
    font-size: 1.8rem;
  }

  /* Polaroid image */
  .fun-image.polaroid {
    position: static;
    transform: none;
    margin: 30px auto 0;
    display: block;
    width: fit-content;
  }

  .fun-image.polaroid:hover {
    transform: scale(1.05);
  }

  /* Hébergement elephant */
  .elephant-hebergement {
    position: static;
    transform: none;
    margin: 25px auto 0;
    display: block;
    width: fit-content;
  }

  .elephant-hebergement:hover {
    transform: scale(1.05);
  }

  /* Programme elephant */
  .elephant-programme {
    position: static;
    transform: none;
    margin: 25px auto;
    display: block;
    width: fit-content;
  }

  .elephant-programme:hover {
    transform: scale(1.05);
  }

  /* Timeline */
  .timeline-item {
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
  }

  .time {
    min-width: auto;
    font-size: 0.95rem;
  }

  /* Cards */
  .ceremonie-card,
  #page-formulaire,
  #page-contact {
    padding: 25px 20px;
    border-radius: 14px;
  }

  /* Boarding title */
  .boarding-title,
  .ceremonie-title {
    font-size: 1.5rem;
    line-height: 1.4;
  }

  /* Formulaire */
  input,
  textarea {
    font-size: 16px; /* évite le zoom iPhone */
  }

  button {
    width: 100%;
    max-width: 300px;
  }

  /* Contact cards */
  .contact-info {
    flex-direction: column;
    gap: 20px;
  }

  .contact-person {
    width: 100%;
  }

  /* Boarding pass */
  .boarding-pass {
    margin: 30px auto;
  }

}


/* Très petits téléphones */
@media (max-width: 480px) {

  :root {
    --header-height: 360px;
  }

  .header-image img {
    max-width: 200px;
  }

  .main-nav a {
    font-size: 0.8rem;
  }

  .boarding-title,
  .ceremonie-title {
    font-size: 1.3rem;
  }

  .flip-box span {
    font-size: 1.5rem;
  }

  .label {
    font-size: 0.7rem;
  }

  .value {
    font-size: 0.9rem;
  }
}