/* Thème « Summer party » inspiré d'une table tropicale :
   nappe menthe, flamants roses, ananas jaunes, feuilles de palmier, hortensias blancs */
:root {
  --menthe: #bfe6dd;
  --menthe-clair: #eaf7f3;
  --rose: #ff4f97;
  --rose-fonce: #d93277;
  --rose-pale: #ffd3e4;
  --ananas: #ffd93b;
  --feuille: #1f8a5b;
  --feuille-fonce: #17703f;
  --encre: #17433a;
  --gris: #557069;
  --rayon: 18px;
}

[hidden] { display: none !important; }
* { box-sizing: border-box; min-width: 0; }

body {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--encre);
  background: var(--menthe-clair);
  line-height: 1.6;
  overflow-x: clip;
}

h1, h2, h3 { line-height: 1.15; }
h2 {
  font-family: "Pacifico", cursive; font-weight: 400;
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  text-align: center; margin: 0 0 .6rem; color: var(--rose);
  display: flex; align-items: center; justify-content: center; gap: .5rem; flex-wrap: wrap;
}
h2 .mini { width: 1.2em; height: 1.7em; flex: none; }

/* ---------- En-tête ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, 78vh, 620px);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 35%, #e6f7f2 0%, transparent 60%),
    linear-gradient(180deg, #cdeee6, var(--menthe));
}
.hero::after { /* bord festonné façon nappe */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 22px; z-index: 5;
  background: radial-gradient(circle at 18px 26px, var(--menthe-clair) 17px, transparent 18px) 0 0 / 36px 22px repeat-x;
}
.d { position: absolute; display: block; }

.hero__texte { position: relative; z-index: 4; padding: clamp(2.5rem, 7vh, 4rem) 1.25rem 240px; }
.hero__surtitre { font-weight: 600; font-size: .9rem; color: var(--feuille-fonce); margin: 0; }
.hero__titre {
  font-family: "Pacifico", cursive; font-weight: 400;
  font-size: clamp(3.2rem, 12vw, 6.4rem); margin: .1rem 0 .1rem; color: var(--rose);
  text-shadow: 0 3px 0 #fff, 0 10px 24px rgba(217,50,119,.25);
}
.hero__chiffre {
  color: var(--ananas);
  text-shadow: -2px -2px 0 var(--feuille), 2px -2px 0 var(--feuille), -2px 2px 0 var(--feuille), 2px 2px 0 var(--feuille), 0 6px 0 var(--feuille);
}
.hero__prenoms {
  font-family: "Leckerli One", "Pacifico", cursive; font-weight: 400;
  font-size: clamp(1.6rem, 4.8vw, 2.3rem); line-height: 1.25; letter-spacing: .01em;
  margin: 0; color: var(--encre);
}
.hero__date {
  display: inline-block; margin: .9rem 0 0;
  background: var(--rose); color: #fff;
  font-weight: 600; padding: .45rem 1.2rem; border-radius: 999px;
  box-shadow: 0 5px 0 var(--rose-fonce);
}

/* Photo façon polaroid */
.polaroid {
  position: relative; z-index: 6;
  width: clamp(220px, 26vw, 290px);
  margin: 1.6rem auto 0;
  padding: 12px 12px 0;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 14px 30px rgba(23,67,58,.25);
  transform: rotate(-3deg);
  transition: transform .3s ease;
}
.polaroid:hover { transform: rotate(0deg) scale(1.03); }
.polaroid img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.polaroid figcaption {
  font-family: "Caveat", cursive; font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 1.7rem); color: var(--encre);
  padding: .45rem 0 .7rem; line-height: 1.2;
}
.polaroid__scotch {
  position: absolute; top: -14px; left: 50%; width: 96px; height: 28px;
  translate: -50% 0; rotate: 4deg;
  background: rgba(255, 217, 59, .55);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

/* Décors — ordinateur */
.cocotier-g, .cocotier-d { bottom: 0; width: 230px; height: 480px; z-index: 0; opacity: .95; }
.cocotier-g { left: -70px; }
.cocotier-d { right: -70px; transform: scaleX(-1); }

.palme { z-index: 1; width: 200px; height: 300px; filter: drop-shadow(0 6px 8px rgba(23,67,58,.15)); }
.palme-g1 { bottom: -70px; left: -40px; transform: rotate(-40deg); }
.palme-g2 { bottom: -90px; left: 90px; transform: rotate(-12deg); width: 170px; height: 260px; }
.palme-d1 { bottom: -70px; right: -40px; transform: scaleX(-1) rotate(-40deg); }
.palme-d2 { bottom: -90px; right: 90px; transform: scaleX(-1) rotate(-12deg); width: 170px; height: 260px; }
.palme-h1 { top: -110px; left: 14%; transform: rotate(200deg); width: 150px; height: 230px; opacity: .9; }
.palme-h2 { top: -110px; right: 14%; transform: scaleX(-1) rotate(200deg); width: 150px; height: 230px; opacity: .9; }

.hortensia { z-index: 2; width: 120px; height: 120px; filter: drop-shadow(0 6px 8px rgba(23,67,58,.18)); }
.hortensia-g { bottom: 10px; left: 30%; }
.hortensia-d { bottom: 20px; right: 29%; width: 100px; height: 100px; }

.flamant { z-index: 3; width: 140px; height: 270px; bottom: 6px; filter: drop-shadow(0 8px 10px rgba(217,50,119,.2)); }
.flamant-g { left: 15%; }
.flamant-d { right: 15%; transform: scaleX(-1); }

.ananas { z-index: 3; width: 80px; height: 136px; bottom: 12px; filter: drop-shadow(0 6px 8px rgba(160,120,0,.25)); }
.ananas-g { left: 25%; }
.ananas-d { right: 25%; width: 70px; height: 120px; }

.ananas-c { left: 50%; translate: -50% 0; width: 110px; height: 188px; bottom: 14px; z-index: 3; }
.hortensia-c1, .hortensia-c2 { bottom: 8px; width: 96px; height: 96px; z-index: 4; }
.hortensia-c1 { left: calc(50% - 125px); }
.hortensia-c2 { left: calc(50% + 35px); width: 84px; height: 84px; }

.hibiscus { z-index: 2; width: 70px; height: 70px; }
.hibiscus-g { top: 30%; left: 9%; transform: rotate(-15deg); }
.hibiscus-d { top: 40%; right: 9%; transform: rotate(20deg) scale(.85); }

.flamant-g { animation: balance 5s ease-in-out infinite alternate; transform-origin: 50% 100%; }
@keyframes balance { from { rotate: -2deg; } to { rotate: 2deg; } }

/* Décors — tablette */
@media (max-width: 1000px) {
  .flamant-g { left: 8%; } .flamant-d { right: 8%; }
  .ananas-g { left: 21%; } .ananas-d { right: 21%; }
  .hortensia-g { left: 30%; } .hortensia-d { right: 30%; }
  .hibiscus, .ananas-c, .hortensia-c1, .hortensia-c2 { display: none; }
}

/* Décors — mobile */
@media (max-width: 640px) {
  .hero { min-height: 490px; }
  .cocotier-g, .cocotier-d { width: 140px; height: 300px; }
  .cocotier-g { left: -62px; } .cocotier-d { right: -62px; }
  .palme { width: 130px; height: 200px; }
  .palme-g1 { bottom: -50px; left: -40px; } .palme-d1 { bottom: -50px; right: -40px; }
  .palme-g2 { left: 40px; bottom: -70px; width: 110px; height: 170px; }
  .palme-d2 { right: 40px; bottom: -70px; width: 110px; height: 170px; }
  .palme-h1, .palme-h2 { width: 80px; height: 130px; top: -62px; }
  .palme-h1 { left: 4%; } .palme-h2 { right: 4%; }
  .flamant { width: 86px; height: 166px; bottom: 8px; }
  .flamant-g { left: 6%; } .flamant-d { right: 6%; }
  .ananas { width: 50px; height: 86px; }
  .ananas-g { left: 33%; } .ananas-d { right: 33%; width: 44px; height: 76px; }
  .hortensia { width: 70px; height: 70px; }
  .hortensia-g { left: 22%; bottom: 6px; } .hortensia-d { right: 20%; bottom: 10px; width: 60px; height: 60px; }
  .hero__surtitre { font-size: .8rem; }
}

/* ---------- Onglets ---------- */
.onglets {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: center; gap: .3rem;
  background: var(--feuille);
  padding: .5rem;
  box-shadow: 0 4px 14px rgba(23,112,63,.3);
}
.onglet {
  border: 0; background: transparent; cursor: pointer;
  font: inherit; font-weight: 600; color: #eafff5;
  padding: .7rem 1.15rem; border-radius: 999px; min-height: 44px;
  white-space: nowrap; transition: background .2s, color .2s;
}
.onglet:hover { background: rgba(255,255,255,.14); }
.onglet[aria-selected="true"] { background: var(--ananas); color: var(--encre); }
.onglet:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

@media (max-width: 520px) {
  .onglets { justify-content: space-between; gap: .1rem; padding: .4rem .3rem; }
  .onglet { flex: 1 1 auto; padding: .55rem .35rem; font-size: .8rem; }
}

/* ---------- Contenu ---------- */
main { max-width: 780px; margin: 0 auto; padding: 2.5rem 1.25rem 3.5rem; min-height: 100vh; }
.panneau { animation: apparition .35s ease; text-align: center; }
@keyframes apparition { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.message { font-size: 1.1rem; max-width: 580px; margin: 0 auto 2rem; }
.note { color: var(--gris); font-size: .9rem; margin: 0 0 1.5rem; }

.compte { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; max-width: 480px; margin: 0 auto 2rem; }
.compte div { border-radius: var(--rayon); padding: .9rem .3rem; box-shadow: 0 6px 16px rgba(23,67,58,.08); }
.compte div:nth-child(1) { background: var(--rose); color: #fff; }
.compte div:nth-child(2) { background: var(--ananas); color: var(--encre); }
.compte div:nth-child(3) { background: var(--feuille); color: #fff; }
.compte div:nth-child(4) { background: var(--rose-pale); color: var(--rose-fonce); }
.compte span { display: block; font-weight: 700; font-size: clamp(1.5rem, 6vw, 2.2rem); line-height: 1.2; }
.compte small { font-size: .75rem; opacity: .9; }

.carte {
  background: #fff; border-radius: var(--rayon);
  box-shadow: 0 8px 24px rgba(23,67,58,.08);
  border-top: 6px solid var(--rose);
}
.carte-lieu { padding: 1.5rem; margin: 0 auto 2rem; }
.carte-lieu h2 { font-size: 1.6rem; }

.bouton {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  font: inherit; font-weight: 700; min-height: 44px;
  background: var(--rose); color: #fff;
  padding: .85rem 1.9rem; border-radius: 999px;
  box-shadow: 0 6px 0 var(--rose-fonce), 0 10px 20px rgba(255,79,151,.3);
  transition: transform .15s, box-shadow .15s;
}
.bouton:hover { transform: translateY(-2px); }
.bouton:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--rose-fonce); }
.bouton:focus-visible { outline: 3px solid var(--ananas); outline-offset: 3px; }
.bouton--secondaire { background: var(--ananas); color: var(--encre); box-shadow: 0 4px 0 #d9b21a; padding: .55rem 1.3rem; font-size: .9rem; }

/* ---------- Programme ---------- */
.timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 580px; text-align: left; position: relative; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 4px; border-radius: 4px; background: repeating-linear-gradient(var(--feuille) 0 10px, transparent 10px 18px); }
.jour {
  position: relative; z-index: 1; display: inline-block;
  margin: .5rem 0 1rem; padding: .35rem 1rem; border-radius: 999px;
  background: var(--feuille); color: #fff; font-weight: 700;
}
.jour ~ .jour { margin-top: 1.25rem; }
.etape { display: flex; gap: 1rem; margin-bottom: 1.25rem; position: relative; }
.etape__icone {
  flex: 0 0 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.6rem;
  background: var(--ananas); border: 4px solid #fff; z-index: 1;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.etape:nth-child(even) .etape__icone { background: var(--rose-pale); }
.etape__contenu { background: #fff; border-radius: var(--rayon); padding: 1rem 1.2rem; flex: 1; box-shadow: 0 8px 24px rgba(23,67,58,.08); }
.etape__heure { font-weight: 700; color: var(--rose); font-size: .95rem; white-space: nowrap; }
.etape h3 { margin: .15rem 0 .25rem; font-size: 1.15rem; }
.etape p { margin: 0; color: var(--gris); font-size: .95rem; }

/* ---------- Infos ---------- */
.grille-infos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.info { background: #fff; border-radius: var(--rayon); padding: 1.4rem; box-shadow: 0 8px 24px rgba(23,67,58,.08); border-top: 6px solid var(--rose); }
.info:nth-child(4n+2) { border-color: var(--ananas); }
.info:nth-child(4n+3) { border-color: var(--feuille); }
.info:nth-child(4n+4) { border-color: var(--rose-pale); }
.info--large { grid-column: 1 / -1; }
.info.info--large p { max-width: 560px; margin-inline: auto; }
#liste-infos { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.info__icone { font-size: 2rem; }
.info h3 { margin: .4rem 0; }
.info p { margin: 0; color: var(--gris); font-size: .95rem; }
.info p + p { margin-top: .5rem; }
#liste-venir { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 0; }
#liste-venir .info { text-align: left; }
#liste-venir .info__icone, #liste-venir h3 { text-align: center; }
/* Petites cartes : icône à gauche, texte à droite */
#liste-venir .info--compact {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; align-items: start; align-content: start;
  padding: 1.1rem 1.3rem;
}
#liste-venir .info--compact .info__icone { grid-row: span 3; font-size: 1.8rem; line-height: 1; padding-top: .15rem; }
#liste-venir .info--compact h3 { text-align: left; margin: 0 0 .2rem; }
#venir .carte-lieu { margin-bottom: 1rem; }
.precision { font-weight: 400; color: var(--gris); font-size: .9rem; }
.info__lien { display: inline-block; margin-top: .7rem; padding: .5rem 0; font-weight: 700; color: var(--rose); text-decoration: none; }
.info__lien:hover { text-decoration: underline; }

/* ---------- Formulaire ---------- */
.formulaire { text-align: left; background: #fff; border-radius: var(--rayon); padding: 1.5rem; box-shadow: 0 8px 24px rgba(23,67,58,.08); border-top: 6px solid var(--rose); display: grid; gap: 1rem; }
.formulaire label { display: grid; gap: .3rem; font-weight: 600; font-size: .95rem; }
.formulaire input[type="text"], .formulaire input[type="number"], .formulaire textarea {
  font: inherit; font-size: 16px; font-weight: 400; padding: .7rem .9rem; border: 2px solid #d3ebe4; border-radius: 12px; width: 100%; background: #fbfffd;
}
.formulaire input:focus, .formulaire textarea:focus { outline: none; border-color: var(--rose); }
.formulaire fieldset { border: 0; padding: 0; margin: 0; }
.formulaire legend { font-weight: 600; font-size: .95rem; margin-bottom: .3rem; }
.formulaire .choix { display: flex; align-items: center; gap: .5rem; font-weight: 400; min-height: 36px; }
.formulaire input[type="radio"] { accent-color: var(--rose); width: 18px; height: 18px; }
.formulaire .bouton { justify-self: center; }
.formulaire .note { text-align: center; margin: 0; }
.formulaire input[type="email"] {
  font: inherit; font-size: 16px; font-weight: 400; padding: .7rem .9rem; border: 2px solid #d3ebe4; border-radius: 12px; width: 100%; background: #fbfffd;
}
.formulaire .bouton:disabled { opacity: .7; cursor: wait; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.captcha { background: var(--menthe-clair); border-radius: 14px; padding: 1rem; display: grid; gap: .4rem; }
.captcha label { font-weight: 600; }
.captcha__question { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; font-size: 1.05rem; }
.captcha__autre { border: 0; background: none; color: var(--feuille); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; padding: .4rem 0; min-height: 36px; }
.captcha__autre:hover { text-decoration: underline; }
.captcha input { font: inherit; font-size: 16px; padding: .7rem .9rem; border: 2px solid #d3ebe4; border-radius: 12px; width: 100%; max-width: 180px; background: #fff; }
.captcha input:focus { outline: none; border-color: var(--rose); }
.statut { margin: 0; text-align: center; font-weight: 600; min-height: 1em; }
.statut--erreur { color: var(--rose-fonce); background: var(--rose-pale); padding: .8rem 1rem; border-radius: 12px; }
.merci { padding: 2rem 1.5rem; text-align: center; }
.merci__flamant { width: 70px; height: 134px; }
.merci h3 { font-family: "Pacifico", cursive; font-weight: 400; color: var(--rose); font-size: 1.8rem; margin: .5rem 0; }
.merci p { margin: 0 0 1.25rem; }

/* ---------- Pied de page ---------- */
.pied {
  position: relative; text-align: center; padding: 3.5rem 1rem 2rem;
  background: var(--feuille); color: #eafff5; font-size: .95rem;
}
.pied::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 28px;
  background: radial-gradient(circle at 20px -6px, var(--menthe-clair) 22px, transparent 23px) 0 0 / 40px 28px repeat-x;
}
.pied p { margin: 0; }
.pied__prenoms { font-family: "Leckerli One", "Pacifico", cursive; font-size: clamp(1.5rem, 4vw, 1.9rem); line-height: 1.3; color: #fff; }

@media (max-width: 640px) {
  .hero__texte { padding-bottom: 165px; }
}

@media (prefers-reduced-motion: reduce) {
  .flamant-g, .panneau { animation: none; }
  .polaroid { transition: none; }
}
