/* 
  YW-TheBigDay — css/site.css (réorganisation thématique)
  Généré le 2026-01-09

  Objectif : rendre la feuille lisible et maintenable, SANS changer le rendu.
  - Règles réindentées (beautify) + regroupées par thématique.
  - Fusions de doublons (même sélecteur) quand il s’agissait uniquement d’ajouts
    complémentaires, en conservant les valeurs finales :
    .rsvp-card, .signoff-line, .ip-acc-body, .yw-inline-field select, .yw-navette-formwrap
  - Les blocs “PATCH/FIX” sont regroupés en fin de fichier pour rester prioritaires.

  Sommaire :
  - Tokens
  - Base
  - Accessibilité
  - Typographie
  - Utilitaires
  - Layout
  - Header & Footer
  - Formulaires & Boutons
  - Accordéons
  - Composants
  - PAGE : Invitation — template page-invitation.php
  - PAGE : Les mariés — template page-les-maries.php
  - PAGE : Programme — template page-programme.php
  - PAGE : Transport — template page-transport.php
  - PAGE : Hébergements — template page-hebergements.php
  - PAGE : Viens-tu ? (RSVP) — template page-viens-tu.php
  - PAGE : Livre d’or — template page-livre-dor.php
  - PAGE : Envie d’offrir — template page-envie-doffrir.php
  - PAGE : Dépôt photos — template page-depot-photos.php
  - PAGE : Contact — template page-contact.php
  - PAGE : Protection des données — template page-protection-des-donnees.php
  - PAGE : 404 — template 404.php
  - Patches
*/

/* =========================================================================
   Tokens
   ========================================================================= */

:root {
  --header-h-mobile: 64px;
  --navy: #0f2a48;
  --bordeaux: #7a1f2a;
  --ivory: #f4efe8;
  --text: #1d2330;
  --muted: #7a8494;
  --header-h: 72px;
  --footer-h: 64px;
  --timeline-gap: 6px;
}

/* =========================================================================
   Base
   ========================================================================= */

/* Fond visuellement fixe (compatible iOS) */
body {
  background: none !important;
}

/* Compense le header fixed */
body {
  padding-top: var(--header-h);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("../assets/img/hero-couple.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: translateZ(0);
}

html, body {
  height: 100%;
  min-height: 100%;
}

html {
  scrollbar-gutter: stable both-edges;
}

body {
  font-family: "Lato",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  color: var(--text);
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

label {
  font-weight: 700;
  margin-bottom: 6px;
  display: inline-block;
}

.yw-yn-label {
  font-weight: 700;
}

.yw-inline-field label {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.15;
  white-space: normal;
}

/* =========================================================================
   Accessibilité
   ========================================================================= */

.sr-only {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* =========================================================================
   Typographie
   ========================================================================= */

/* Évite que les titres soient masqués par le header fixe (ancres / scroll) */
h1, h2, h3, h4, h5, h6, [id] {
  scroll-margin-top: calc(var(--header-h) + 18px);
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Great Vibes",cursive;
  color: var(--navy);
  line-height: 1.05;
  margin: 0 0 10px;
}

/* Force les titres en Great Vibes (au cas où un style plus spécifique les écrase) */
h1, h2, h3, h4 {
  font-family: "Great Vibes", cursive !important;
  font-weight: 400;
}

/* =========================================================================
   Utilitaires
   ========================================================================= */

.gv {
  font-family: "Great Vibes",cursive;
}

.bordeaux {
  color: var(--bordeaux);
}

/* =========================================================================
   Layout
   ========================================================================= */

@media (max-width:700px),(max-width:930px) and (max-height:500px) {
  /* Un peu plus d’air sous le header sur mobile */
  .container {
    padding-top: calc(clamp(12px,4vw,28px) + 24px);
    margin-top: 12px;
  }
  main {
    padding-top: 12px;
  }
  h1, h2, h3, h4, h5, h6, [id] {
    scroll-margin-top: calc(var(--header-h-mobile) + 18px);
  }
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(12px,4vw,28px);
  padding-bottom: calc(var(--footer-h) + clamp(12px,4vw,28px));
}

main {
  padding-bottom: calc(max(20px,1.5rem) + var(--footer-h));
}

.card {
  background: var(--ivory);
  border: 2px solid var(--bordeaux);
  border-radius: 20px;
  padding: clamp(16px,4vw,28px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.row {
  display: grid;
  gap: 14px;
}

@media (min-width:900px) {
  .row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================================================================
   Header & Footer
   ========================================================================= */

.yw-masthead {
  left: 0;
  right: 0;
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 9999;
  height: var(--header-h);
  min-height: unset;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--navy);
  border-bottom: 4px solid var(--bordeaux);
  padding: 0 clamp(12px,4vw,32px);
  box-sizing: border-box;
}

.yw-masthead i[class^="fa-"], .yw-masthead .fa {
  display: inline-block;
  width: 1.25em;
  text-align: center;
  vertical-align: middle;
  line-height: 1;
}

.brand-title {
  font-family: "Great Vibes",cursive;
  color: #fff;
  margin: 0;
  line-height: 1;
  white-space: nowrap;
  font-size: clamp(28px,7vw,56px);
  letter-spacing: 0.2px;
}

.baseline {
  color: #fff;
  opacity: 0.9;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: clamp(10px,3vw,24px);
  font-size: clamp(12px,2.8vw,16px);
}

.baseline i {
  opacity: 0.85;
}

.mast-left {
  display: flex;
  flex-direction: column;
  gap: clamp(10px,3vw,24px);
}

.mast-right {
  display: flex;
  align-items: center;
}

.mast-right .home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.25);
  flex-shrink: 0;
}

.mast-right .home-link i {
  font-size: 22px;
  color: #fff;
}

.yw-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: var(--navy);
  border-top: 4px solid var(--bordeaux);
  color: #fff;
  text-align: center;
  /* on enlève height: 20px (ça fausse la hauteur réelle avec le padding) */
  padding: 14px 10px calc(14px + env(safe-area-inset-bottom, 0px));
}

.yw-footer p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}

.mobile-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: none;
}

@media (max-width:700px),(max-width:930px) and (max-height:500px) {
  .yw-masthead, footer.site-footer {
    display: none !important;
  }
  .yw-footer {
    display: block !important;
  }
  .mobile-topbar {
    display: block;
    background: var(--navy);
    color: #fff;
    border-bottom: 3px solid var(--bordeaux);
    padding: 10px 14px;
  }
  .mobile-topbar .mt-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .mobile-topbar .mt-left {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .mobile-topbar .mt-title {
    font-family: "Great Vibes",cursive;
    font-size: 28px;
    color: #fff;
    margin: 0 0 4px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .mobile-topbar .mt-sub {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
  }
  .mobile-topbar .mt-sub i, .mobile-topbar .mt-right i {
    color: #fff;
  }
  .mobile-topbar .mt-right {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    min-width: 56px;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 10px;
    -webkit-tap-highlight-color: rgba(255,255,255,0.25);
    touch-action: manipulation;
  }
  .mobile-topbar .mt-right:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
  }
  .mobile-topbar .mt-right:active {
    opacity: 0.85;
  }
  body {
    padding-top: calc(var(--header-h-mobile) + 18px) !important;
  }
}

/* Optionnel mais utile : évite que la baseline soit “collée” */
.yw-masthead .mast-left {
  gap: 10px;
}

/* =========================================================================
   Formulaires & Boutons
   ========================================================================= */

.input, .select, .textarea {
  background: #fff;
  border: 1px solid #d8d8d8 !important;
  border-radius: 12px;
  padding: 12px 14px;
  width: 100%;
  font-size: 16px;
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.help {
  color: #555b61;
  font-size: 0.95rem;
}

.switch, .radios, .slider-wrap {
  display: flex;
  gap: 14px;
  align-items: center;
}

.radios {
  gap: 16px;
  flex-wrap: wrap;
}

.slider-wrap {
  gap: 10px;
}

.btn {
  display: inline-block;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  background: var(--bordeaux);
  border: none;
  color: #fff;
  font-weight: 800;
  border-radius: 12px;
  padding: 12px 18px;
}

.btn-primary {
  background: var(--bordeaux);
  color: #fff;
}

.yw-fieldset {
  border: 1px solid rgba(15,42,72,.18);
  border-radius: 16px;
  padding: 14px;
  margin: 18px 0 14px 0;
  background: rgba(250,249,246,.55);
}

.yw-fieldset legend {
  font-weight: 900;
  padding: 0 10px;
}

.yw-yn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
}

.yw-yn + .yw-yn {
  border-top: 1px dashed rgba(15,42,72,.18);
}

.yw-yn-options {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.yw-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  border: 2px solid var(--bordeaux,#7a1f2a);
  border-radius: 999px;
  padding: 8px 14px;
  user-select: none;
  background: transparent;
}

.yw-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.yw-pill span {
  color: var(--bordeaux,#7a1f2a);
  font-weight: 900;
  line-height: 1;
}

.yw-pill input:checked + span {
  color: #fff;
}

.yw-pill:has(input:checked) {
  background: var(--bordeaux,#7a1f2a);
}

.yw-alert {
  border-radius: 16px;
  padding: 12px 14px;
  margin: 12px 0 14px 0;
  border: 1px solid rgba(15,42,72,.18);
  background: rgba(250,249,246,.65);
}

.yw-alert ul {
  margin: 8px 0 0 18px;
}

.yw-alert-error {
  border-color: rgba(122,31,42,.4);
}

.yw-alert-success {
  border-color: rgba(15,42,72,.25);
}

.yw-inline-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  flex-wrap: nowrap;
}

.yw-inline-field select {
  flex: 0 0 auto;
  width: 160px;
  max-width: 160px;
}

.yw-maeliss-call a.btn, .yw-maeliss-mail .btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================================
   Accordéons
   ========================================================================= */

.ip-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ip-acc-item {
  border: 2px solid var(--bordeaux);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.ip-acc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  background: var(--bordeaux);
  color: #fff;
  font-weight: 800;
  padding: 14px 16px;
  border: 0;
  cursor: pointer;
}

.ip-acc-head:hover {
  background: #fff;
  color: var(--bordeaux);
}

.ip-acc-head i {
  transition: transform 0.2s ease;
}

.ip-acc-body[hidden] {
  display: none;
}

.ip-acc-content, .ip-acc-inner {
  padding: 16px 18px;
  line-height: 1.6;
}

@media (max-width:720px) {
  .ip-acc-content, .ip-acc-inner {
    padding: 14px 14px;
  }
}

.ip-acc-body {
  display: block;
  background: #fff;
}

.ip-acc-inner {
  padding: 14px 16px;
  background: #fff;
  color: #222;
}

/* =========================================================================
   Composants
   ========================================================================= */

.sep {
  height: 2px;
  background: var(--bordeaux);
  margin: 20px 0;
}

.notice {
  padding: 10px 12px;
  border: 1px solid #e8b1b8;
  background: #fff1f1;
  color: #7a1020;
  border-radius: 10px;
}

.fa-wylogo {
  display: inline-block;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  -webkit-mask-image: url("../assets/icons/logo-WY-clean.svg");
  mask-image: url("../assets/icons/logo-WY-clean.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 50% 50%;
  mask-position: 50% 50%;
  -webkit-mask-size: contain;
  mask-size: contain;
  vertical-align: -0.125em;
}

.hero-icons .fa-wylogo {
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.25));
}

.wylogo-img {
  height: 62px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

.signoff-line {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.signoff-line .fa-wylogo {
  font-size: 3em;
  color: var(--bordeaux,#8a1538);
  line-height: 1;
  vertical-align: middle;
  display: inline-block;
}

.signoff-hint {
  font-style: italic;
}

/* =========================================================================
   PAGE : Invitation — template page-invitation.php
   ========================================================================= */

.invitation-logos {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: clamp(12px,2vw,24px);
  align-items: center;
  justify-items: center;
  margin: 1.25rem 0 2rem;
}

.invitation-logos .invitation-logo {
  margin: 0;
}

.invitation-logos img {
  width: 100%;
  max-width: 260px;
  height: auto;
  object-fit: contain;
}

.enigme-union-ceremonie {
  font-family: "Great Vibes",cursive;
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.2;
  text-align: center;
  color: #7a1f2a;
  opacity: 0.95;
}

/* =========================================================================
   PAGE : Les mariés — template page-les-maries.php
   ========================================================================= */

.les-maries-story {
  max-width: 90ch;
  margin: 0 auto 1.75rem;
  line-height: 1.7;
}

.les-maries-story::after {
  content: "";
  display: block;
  clear: both;
}

.les-maries-logo {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0 0;
}

.les-maries-logo img {
  width: 50%;
  max-width: 140px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.portrait {
  width: 220px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
}

.portrait-willy {
  float: left;
  margin: 0.25rem 1.25rem 1rem 0;
  border: 4px solid var(--bordeaux,#8a1538);
}

.portrait-yanek {
  float: right;
  margin: 0.25rem 0 1rem 1.25rem;
  border: 4px solid var(--marine,#0a2740);
}

@media (max-width:768px) {
  .portrait-willy, .portrait-yanek {
    width: min(37.5%,160px);
    height: auto;
    display: block;
    clear: both;
    margin-top: 10px;
    margin-bottom: 18px;
  }
  .portrait-willy {
    float: left;
    margin-right: 18px;
    margin-left: 0;
  }
  .portrait-yanek {
    float: right;
    margin-left: 18px;
    margin-right: 0;
  }
  .portrait-willy + *, .portrait-yanek + * {
    margin-top: 0;
  }
}

/* =========================================================================
   PAGE : Programme — template page-programme.php
   ========================================================================= */

.programme .card {
  overflow: visible;
  border: 0;
}

.programme-intro {
  text-align: left;
}

.prog-date {
  font-size: 48px;
  line-height: 1.1;
  margin-left: 120px;
  margin-top: 50px;
  color: var(--bordeaux);
  font-family: "Great Vibes",cursive;
}

.timeline {
  position: relative;
  margin: 24px auto 40px;
  max-width: 1100px;
  padding: 0 12px;
}

.timeline__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  background: var(--bordeaux);
  border-radius: 2px;
  box-shadow: 0 0 0 2px rgba(122,31,42,0.25);
}

.timeline__line::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 14px;
  width: 3px;
  background: linear-gradient(var(--bordeaux),var(--navy));
  border-radius: 2px;
}

.tl-item {
  position: relative;
  display: flex;
  margin: 80px 0;
}

.tl-item--left {
  justify-content: flex-start;
}

.tl-item--right {
  justify-content: flex-end;
}

.tl-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--bordeaux);
  box-shadow: 0 0 0 4px #fff;
  z-index: 3;
}

.tl-card {
  position: relative;
  width: min(100%,370px);
  background: #fff;
  border: 1px solid var(--bordeaux);
  border-radius: 12px;
  padding: 16px;
}

.tl-time {
  position: absolute;
  right: -34px;
  top: -34px;
  left: auto;
}

.tl-time__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 3px solid var(--navy);
  color: var(--bordeaux);
  font-weight: 800;
  margin-right: 10px;
  background: #fff;
}

.tl-title {
  font-size: 34px;
  line-height: 1.1;
  margin: 12px 0 8px;
}

.tl-photo {
  margin: 8px 0 10px;
}

.tl-photo img {
  display: block;
  width: 300px;
  height: 210px;
  max-width: 100%;
  object-fit: cover;
  border: 1px solid #ddd;
  border-radius: 10px;
  margin: 0 auto;
}

.tl-row {
  margin: 4px 0;
}

.tl-row:first-child {
  font-weight: 700;
}

.tl-row.place {
  font-size: 20px;
  font-weight: 700;
  margin-top: 6px;
}

.tl-quote {
  margin: 8px 0 0;
  font-style: italic;
  font-weight: 700;
}

.tl-info-btn {
  display: block;
  margin: 12px auto 0;
  padding: 10px 20px;
  background: var(--bordeaux);
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.05rem;
}

.tl-info {
  margin-top: 10px;
}

@media (min-width:768px) {
  .tl-item--left .tl-card {
    margin-right: 112px;
  }
  .tl-item--right .tl-card {
    margin-left: 112px;
  }
}

@media (min-width:768px) {
  .tl-title {
    margin-left: 30px;
  }
}

@media (max-width:767.98px) {
  .timeline__line {
    left: 0;
    transform: none;
  }
  .timeline__line::before {
    left: 14px;
  }
  .tl-dot {
    left: 0;
    transform: translate(-50%,-50%);
  }
  .tl-item {
    justify-content: flex-start;
  }
  .tl-card {
    margin-left: 44px;
  }
  .tl-time {
    right: -34px;
    left: auto;
    top: -34px;
  }
  .tl-photo img {
    max-width: 325px;
    width: 100%;
    height: 200px;
  }
}

.tl-card.has-day {
  margin-top: 68px;
}

.tl-card .prog-date {
  position: absolute;
  top: -150px;
  transform: translateX(-50%);
  text-align: center;
  font-size: 48px;
  line-height: 1.1;
}

/* =========================================================
   Programme — tablette : timeline derrière les cards
   (évite que le rond/ligne passent devant les cartes)
   ========================================================= */
@media (min-width: 768px) and (max-width: 1024px) {
  body.page-template-page-programme .timeline,
  body.page-template-page-programme-php .timeline {
    position: relative;
    isolation: isolate;
    /* crée un contexte d’empilement propre */
  }
  body.page-template-page-programme .timeline__line,
  body.page-template-page-programme-php .timeline__line,
  body.page-template-page-programme .tl-dot,
  body.page-template-page-programme-php .tl-dot {
    z-index: 0 !important;
  }
  body.page-template-page-programme .tl-dot,
  body.page-template-page-programme-php .tl-dot {
    pointer-events: none;
    /* évite les clics involontaires */
  }
  body.page-template-page-programme .tl-card,
  body.page-template-page-programme-php .tl-card {
    position: relative;
    /* nécessaire pour z-index */
    z-index: 2;
  }
}

/* =========================================================================
   PAGE : Transport — template page-transport.php
   ========================================================================= */

.transport-content p {
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.transport-content em {
  font-style: italic;
  opacity: 0.95;
}

.transport-content a {
  color: var(--bordeaux,#7a1f2a);
  text-decoration: underline;
}

.transport-content a:hover {
  text-decoration: none;
}

.yw-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
}

.yw-tab {
  border: 2px solid var(--bordeaux,#7a1f2a);
  background: transparent;
  color: var(--bordeaux,#7a1f2a);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.yw-tab.is-active {
  background: var(--bordeaux,#7a1f2a);
  color: #fff;
}

.yw-panel {
  display: none;
}

.yw-panel.is-active {
  display: block;
}

.yw-divider-bordeaux {
  border-top: 1px solid var(--bordeaux);
  margin: 18px 0 18px;
}

.yw-navette-formwrap[hidden] {
  display: none;
}

.yw-navette-open {
  font-weight: 700;
  text-decoration: underline;
}

.yw-navette-formwrap {
  margin: 10px 0 0;
  padding: 12px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 16px;
  background: rgba(250,249,246,.55);
  text-align: left;
}

.yw-navette-formwrap .form-row {
  margin: 0 0 16px!important;
}

.yw-navette-formwrap .form-row:last-child {
  margin-bottom: 0!important;
}

.yw-navette-formwrap .form-row>label {
  display: block!important;
  font-weight: 800!important;
  margin: 0 0 10px!important;
  line-height: 1.25!important;
}

.yw-navette-formwrap .form-row input[type="text"],
.yw-navette-formwrap .form-row input[type="tel"] {
  width: 100%!important;
  box-sizing: border-box!important;
  padding: 12px 14px!important;
  border: 1px solid rgba(0,0,0,.18)!important;
  border-radius: 14px!important;
  background: rgba(255,255,255,.55)!important;
  margin: 0!important;
}

.yw-navette-formwrap .form-row label.yw-inline {
  display: inline-flex!important;
  align-items: center!important;
  gap: 10px!important;
  margin: 0!important;
  font-weight: 800!important;
  line-height: 1.2!important;
}

.yw-navette-formwrap .form-row label.yw-inline input[type="checkbox"] {
  width: 18px!important;
  height: 18px!important;
  margin: 0!important;
  flex: 0 0 auto!important;
}

.yw-navette-formwrap .yw-navette-alert {
  margin-top: 12px!important;
}

@media (max-width:480px) {
  .yw-navette-formwrap {
    padding: 12px!important;
  }
}

/* =========================================================================
   PAGE : Hébergements — template page-hebergements.php
   ========================================================================= */

.yw-hebergements-form {
  margin-top: 16px;
}

.yw-row {
  display: block;
  margin: 0 0 14px 0;
}

.yw-row-spaced {
  margin-top: 18px;
}

.yw-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width:720px) {
  .yw-grid-2 {
    grid-template-columns: 1fr;
  }
}

.yw-hebergements-form label {
  display: block;
  font-weight: 700;
  margin: 0 0 6px 0;
}

.yw-hebergements-form input[type="text"],
.yw-hebergements-form input[type="tel"],
.yw-hebergements-form input[type="email"],
.yw-hebergements-form select {
  width: 100%;
  border: 1px solid rgba(15,42,72,.18);
  background: rgba(250,249,246,.85);
  padding: 12px 12px;
  border-radius: 14px;
  outline: none;
}

.yw-hebergements-form input[type="text"]:focus,
.yw-hebergements-form input[type="tel"]:focus,
.yw-hebergements-form input[type="email"]:focus,
.yw-hebergements-form select:focus {
  border-color: rgba(122,31,42,.65);
  box-shadow: 0 0 0 3px rgba(122,31,42,.12);
}

.yw-hebergements-form select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-weight: 800;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%237a1f2a' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px 18px;
}

@media (min-width:721px) {
  .yw-hebergements-form .yw-row-spaced {
    display: flex;
    gap: 22px;
    align-items: center;
  }
  .yw-hebergements-form .yw-row-spaced .yw-inline-field {
    flex: 1 1 0;
    width: auto;
    margin: 0;
  }
}

@media (min-width:721px) {
  .yw-hebergements-form .yw-row:has(#yw-stay-nights) {
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .yw-hebergements-form .yw-row:has(#yw-stay-nights) label {
    margin: 0;
    flex: 1 1 auto;
  }
  .yw-hebergements-form .yw-row:has(#yw-stay-nights) #yw-stay-nights {
    flex: 0 0 240px;
    width: 240px;
    max-width: 240px;
  }
  .yw-hebergements-form label[for="yw-stay-nights"] {
    display: inline-block;
    width: calc(100% - 260px);
    margin: 0;
    vertical-align: middle;
  }
  .yw-hebergements-form #yw-stay-nights {
    display: inline-block;
    width: 240px;
    max-width: 240px;
    vertical-align: middle;
  }
}

.yw-hebergements-form .row {
  text-align: center;
}

.yw-hebergements-form .row button[type="submit"] {
  display: inline-flex;
  width: auto;
  margin: 8px auto 0;
}

.yw-hebergements-form #hebergementsMsg {
  display: block;
  margin: 10px auto 0;
  text-align: center;
}

/* =========================================================================
   PAGE : Viens-tu ? (RSVP) — template page-viens-tu.php
   ========================================================================= */

#rsvpForm .row {
  gap: clamp(16px,2.4vw,22px);
}

#rsvpForm .rsvp-counts {
  gap: 12px;
}

@media (min-width:800px) {
  #rsvpForm .rsvp-counts {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
}

#rsvpForm .rsvp-attendees-row {
  gap: 6px;
}

#rsvpForm .rsvp-attendees-help {
  line-height: 1.25;
}

/* -- RSVP : ajustements interlignes (mobile/tablette) -- */
#rsvpForm .rsvp-attendance-header {
  margin: 0;
}

#rsvpForm .rsvp-attendance-title {
  display: block;
  line-height: 1.1;
  margin: 0;
}

#rsvpForm .rsvp-attendance-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#rsvpForm .rsvp-attendance-sub {
  display: block;
  line-height: 1.1;
  margin: 0;
}


#rsvpForm .rsvp-attendance-title,
#rsvpForm .rsvp-attendance-sub,
#rsvpForm .rsvp-attendance-header {
  text-align: left !important;
}

#rsvpForm .rsvp-attendance-group {
  align-items: flex-start;
}

#rsvpForm .rsvp-attendance-radios {
  justify-content: flex-start;
  flex-wrap: nowrap;
}

#rsvpForm .rsvp-attendance-radios {
  display: flex;
  flex-wrap: nowrap; /* Oui / Non restent sur la même ligne */
  gap: 18px;
}

#rsvpForm .rsvp-attendance-choice {
  margin: 0;
}

#rsvpForm .rsvp-attendees-row label {
  line-height: 1.1;
  margin: 0;
}

#rsvpForm .rsvp-attendees-help {
  margin-top: 2px;
  line-height: 1.25;
}

#rsvpForm fieldset.field legend {
  margin-bottom: 4px !important;
  line-height: 1.1;
}

#rsvpForm fieldset.field small {
  margin-top: 2px !important;
  line-height: 1.25;
}

#rsvpForm label[for="rsvp-notes"] {
  line-height: 1.1;
  margin: 0 0 4px;
}

@media (max-width: 1024px) {
  /* Override des margin-top inline présents dans le template (sécurité affichage mobile/tablette) */
  #rsvpForm .rsvp-attendees-row {
    margin-top: 10px !important;
  }
  #rsvpForm fieldset.field {
    margin-top: 10px !important;
  }
}

@media (min-width:700px) {
  #rsvpForm .row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

#rsvpForm .row-2>* {
  min-width: 0;
  justify-self: stretch;
}

#rsvpForm .input, #rsvpForm .select, #rsvpForm .textarea {
  max-width: 100%;
  border: 1px solid #ddd !important;
  padding: 12px 4px !important;
}

#rsvpForm {
  text-align: initial !important;
}

#rsvpForm .radios, #rsvpForm .slider-wrap, #rsvpForm .switch {
  justify-content: flex-start !important;
}

#rsvpForm button[type="submit"] {
  display: inline-flex;
  width: auto;
  margin: 8px auto 0;
}

.rsvp-card .input, .rsvp-card textarea {
  padding: 12px 2px !important;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.rsvp-card input, .rsvp-card textarea, .rsvp-card select, .rsvp-card button {
  max-width: 100%;
  box-sizing: border-box;
}

.rsvp-card {
  opacity: 0.95;
  border: 1px solid #ddd !important;
}

#rsvpForm input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: min(100%,360px);
  height: 4px;
  background: rgba(122,31,42,0.25);
  border-radius: 999px;
}

#rsvpForm input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bordeaux);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--bordeaux);
  cursor: pointer;
}

#rsvpForm input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bordeaux);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--bordeaux);
  cursor: pointer;
}

#rsvpForm input[type="range"]::-ms-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bordeaux);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--bordeaux);
  cursor: pointer;
}

#rsvpForm select {
  width: 100%;
  border: 1px solid rgba(15,42,72,.18);
  background: rgba(250,249,246,.85);
  padding: 12px 12px;
  border-radius: 14px;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-weight: 800;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%237a1f2a' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px 18px;
}

#rsvpForm select:focus {
  border-color: rgba(122,31,42,.65);
  box-shadow: 0 0 0 3px rgba(122,31,42,.12);
}

#rsvpForm .yw-select-compact {
  width: 160px;
  max-width: 160px;
  min-width: 120px;
}

@media (max-width:720px) {
  #rsvpForm .yw-select-compact {
    width: 140px;
    max-width: 140px;
    min-width: 110px;
  }
}

/* =========================================================================
   PAGE : Livre d’or — template page-livre-dor.php
   ========================================================================= */

.page-livredor .gb-form {
  align-items: end;
  gap: clamp(12px,2.4vw,18px);
}

.page-livredor .gb-form .gb-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-livredor .gb-form .textarea {
  min-height: 140px;
  resize: vertical;
}

.page-livredor .gb-actions {
  grid-column: 1 / -1;
}

.page-livredor .gb-actions .btn {
  background: var(--bordeaux);
  color: #fff;
  font-weight: 800;
  padding: 12px 18px;
  border-radius: 12px;
  border: 0;
}

#guestbook-messages {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 12px;
}

@media (min-width:900px) {
  #guestbook-messages {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

#guestbook-messages .gb-card {
  background: #fff;
  border: 0;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  line-height: 1.6;
}

#guestbook-messages .gb-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

#guestbook-messages .author {
  font-weight: 800;
  color: var(--bordeaux);
  font-size: 1.05rem;
}

#guestbook-messages .date {
  font-size: 0.9rem;
  color: var(--muted);
}

#guestbook-messages .message {
  color: var(--text);
}

#guestbook-messages .message p {
  margin: 0 0 8px;
}

#guestbook-messages .message p:last-child {
  margin-bottom: 0;
}

.yw-navette-formwrap .gb-actions {
  margin-top: 8px!important;
  text-align: left!important;
}

.yw-navette-formwrap .gb-actions .btn {
  border-radius: 999px!important;
  padding: 10px 18px!important;
  font-weight: 800!important;
}

/* =========================================================================
   PAGE : Envie d’offrir — template page-envie-doffrir.php
   ========================================================================= */

body.page-template-page-envie-doffrir .yw-cagnotte-visual {
  margin-top: 14px;
  display: grid;
  gap: 14px;
}

body.page-template-page-envie-doffrir .yw-cagnotte-link {
  display: block;
  border: 2px solid var(--bordeaux);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  transition: transform .15s ease,box-shadow .15s ease;
}

body.page-template-page-envie-doffrir .yw-cagnotte-link img {
  width: 100%;
  height: auto;
  display: block;
}

body.page-template-page-envie-doffrir .yw-cagnotte-link:hover {
  transform: translateY(-1px);
}

body.page-template-page-envie-doffrir .yw-cagnotte-link:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 4px;
}

body.page-template-page-envie-doffrir .yw-cagnotte-direct {
  margin: 0;
  line-height: 1.45;
  font-size: 0.98rem;
}

body.page-template-page-envie-doffrir .yw-cagnotte-direct a {
  color: var(--bordeaux);
  text-decoration: underline;
}

body.page-template-page-envie-doffrir .yw-cagnotte-direct a:hover {
  text-decoration: none;
}

/* =========================================================================
   PAGE : Dépôt photos — template page-depot-photos.php
   ========================================================================= */

.page-template-page-depot-photos .card.rsvp-card a.btn,
.page-template-page-depot-photos .card.rsvp-card .btn,
.page-template-page-depot-photos .card.rsvp-card button,
.page-template-page-depot-photos .card.rsvp-card input[type="submit"],
.page-template-page-depot-photos .card.rsvp-card input[type="button"] {
  display: block;
  width: auto;
  margin: 8px auto 0;
  text-align: center;
}

/* =========================================
   PATCH – Image invinee-cta responsive
   Tablette + mobile
   ========================================= */
/* Règle générale : l’image ne dépasse jamais son conteneur */
.page-template-page-depot-photos img[src*="invinee-cta"] {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

/* Tablette */
@media (max-width: 1024px) {
  .page-template-page-depot-photos img[src*="invinee-cta"] {
    max-height: 55vh;
    /* limite la hauteur visible */
    width: auto;
  }
}

/* Mobile */
@media (max-width: 700px) {
  .page-template-page-depot-photos img[src*="invinee-cta"] {
    max-height: 45vh;
    width: 100%;
  }
}

/* =========================================================================
   PAGE : Contact — template page-contact.php
   ========================================================================= */

.page-template-page-contact .card.rsvp-card input[type="text"],
.page-template-page-contact .card.rsvp-card input[type="email"],
.page-template-page-contact .card.rsvp-card input[type="tel"],
.page-template-page-contact .card.rsvp-card input[type="url"],
.page-template-page-contact .card.rsvp-card input[type="number"],
.page-template-page-contact .card.rsvp-card input[type="password"],
.page-template-page-contact .card.rsvp-card input[type="search"],
.page-template-page-contact .card.rsvp-card input[type="date"],
.page-template-page-contact .card.rsvp-card input[type="time"],
.page-template-page-contact .card.rsvp-card select,
.page-template-page-contact .card.rsvp-card textarea,
.page-template-page-livre-dor .card.rsvp-card input[type="text"],
.page-template-page-livre-dor .card.rsvp-card input[type="email"],
.page-template-page-livre-dor .card.rsvp-card input[type="tel"],
.page-template-page-livre-dor .card.rsvp-card input[type="url"],
.page-template-page-livre-dor .card.rsvp-card input[type="number"],
.page-template-page-livre-dor .card.rsvp-card input[type="password"],
.page-template-page-livre-dor .card.rsvp-card input[type="search"],
.page-template-page-livre-dor .card.rsvp-card input[type="date"],
.page-template-page-livre-dor .card.rsvp-card input[type="time"],
.page-template-page-livre-dor .card.rsvp-card select,
.page-template-page-livre-dor .card.rsvp-card textarea {
  border: 1px solid #d8d8d8 !important;
  box-shadow: none !important;
}

/* =========================================================================
   PAGE : Protection des données — template page-protection-des-donnees.php
   ========================================================================= */

/* Titres RGPD (1 à 11) – FORCER Lato gras 700 (ne touche QUE la page du template) */
body.page-template-page-protection-des-donnees-php .card.rsvp-card h3.wp-block-heading,
body.page-template-page-protection-des-donnees-php .card.rsvp-card h3.wp-block-heading * {
  font-family: 'Lato','Lato-Regular',Arial,sans-serif !important;
  font-weight: 700 !important;
  font-style: normal !important;
}

/* =========================================================================
   PAGE : 404 — template 404.php
   ========================================================================= */

.page-404-card .page-actions {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

/* =========================================================================
   Patches
   ========================================================================= */

/* ================================
   PATCH: header plus haut (ordi + tablette)
   ================================ */
/* Base (tablette + petit desktop) */
:root {
  --header-h: 104px;
  /* augmente la hauteur du header */
}

/* Grand desktop : un poil plus haut si besoin */
@media (min-width: 1100px) {
  :root {
    --header-h: 112px;
  }
}

/* Sécurité : le header suit bien la variable */
.yw-masthead {
  height: var(--header-h);
}

/* ============================================================
   PATCH – RSVP (page-viens-tu) : resserrer les espaces (flèches)
   - Label sur une ligne, radios en dessous
   - Oui/Non restent sur la même ligne
   - Réduit davantage les marges/espaces verticaux
   ============================================================ */

#rsvpForm .rsvp-attendance-title{
  line-height:1.02 !important;
  margin:0 0 0 !important;
}

#rsvpForm .rsvp-attendance-group{
  gap:2px !important;
  margin-top:0 !important;
}

#rsvpForm .rsvp-attendance-sub{
  line-height:1.02 !important;
}

#rsvpForm .rsvp-attendance-radios{
  gap:12px;
  margin-top:0 !important;
}

/* Espace entre cérémonie et repas (plus compact) */
#rsvpForm .rsvp-attendance-meal{
  margin-top:6px !important;
}

/* Personnes présentes : label/help/textarea plus compacts */
#rsvpForm .rsvp-attendees-row{
  margin-top:8px !important;
  gap:4px !important;
}
#rsvpForm .rsvp-attendees-row label{
  line-height:1.04 !important;
  margin:0 !important;
}
#rsvpForm .rsvp-attendees-help{
  margin-top:0 !important;
  line-height:1.18 !important;
}

/* Baby-sitting : resserrer légende + aide + radios */
#rsvpForm fieldset.field{
  margin-top:8px !important;
}
#rsvpForm fieldset.field legend{
  margin-bottom:4px !important;
  line-height:1.04 !important;
}
#rsvpForm fieldset.field small{
  margin-top:2px !important;
  margin-bottom:2px !important;
  line-height:1.12 !important;
}

/* Réduire les margin-top inline du template (sans casser la mise en page) */
#rsvpForm .row[style*="margin-top:14px"]{ margin-top:8px !important; }
#rsvpForm .row[style*="margin-top:16px"]{ margin-top:10px !important; }
#rsvpForm .row[style*="margin-top:10px"]{ margin-top:8px !important; }

/* Mobile + tablette : conserver radios sur une ligne */
@media (max-width:1024px){
  #rsvpForm .rsvp-attendance-radios{
    flex-wrap:nowrap;
  }
}

/* =========================================================================
   PATCH 2026-03-03 - Hébergements : listes compactes + labels collés à droite
   Neutralise le flex-basis vertical du style inline du template sur mobile.
   ========================================================================= */

main.container .card.rsvp-card .yw-hebergements-form .yw-row-spaced{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px 18px;
}

main.container .card.rsvp-card .yw-hebergements-form .yw-row-spaced .yw-inline-field{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  flex:1 1 320px;
  min-width:0;
  width:auto;
  margin:0;
}

main.container .card.rsvp-card .yw-hebergements-form .yw-row-spaced .yw-inline-field .yw-select-compact{
  width:190px !important;
  min-width:190px !important;
  max-width:190px !important;
  flex:0 0 190px !important;
}

main.container .card.rsvp-card .yw-hebergements-form .yw-row-spaced .yw-inline-field > label{
  display:inline-block !important;
  width:auto !important;
  margin:0 !important;
  line-height:1.2;
  white-space:nowrap !important;
  flex:0 1 auto !important;
  min-width:0;
}

@media (max-width:700px){
  main.container .card.rsvp-card .yw-hebergements-form .yw-row-spaced{
    flex-direction:column !important;
    align-items:stretch !important;
    gap:10px !important;
  }

  main.container .card.rsvp-card .yw-hebergements-form .yw-row-spaced .yw-inline-field{
    flex:0 0 auto !important;
    width:100% !important;
    min-height:0 !important;
    justify-content:flex-start !important;
    gap:8px !important;
  }

  main.container .card.rsvp-card .yw-hebergements-form .yw-row-spaced .yw-inline-field .yw-select-compact{
    width:160px !important;
    min-width:160px !important;
    max-width:160px !important;
    flex:0 0 160px !important;
  }
}
