/* ============================
   BASE PAGE
============================ */
body {
    margin: 0;
    padding: 10px;
    background: #000;
    color: #fff;
    text-align: center;
    font-family: 'Lato', sans-serif;
}

.title-main {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(28px, 7vw, 58px);
    margin: 10px 0 5px 0;
}

.rachel-line {
    width: 100%;
    white-space: nowrap;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 3vw;
}

.rachel-latin {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(48px, 18vw, 118px);
    color: #d11;
}

.rachel-hebrew {
    font-family: 'Noto Sans Hebrew', sans-serif;
    font-size: clamp(28px, 12vw, 80px);
    color: #d11;
}

.midrash-intro {
    font-style: italic;
    font-size: clamp(14px, 4vw, 22px);
    margin-top: 25px;
}

.midrash-he {
    font-family: 'Frank Ruhl Libre', serif;
    font-size: clamp(22px, 7vw, 38px);
    margin-top: 10px;
}

.midrash-ref {
    font-style: italic;
    font-size: clamp(12px, 3.3vw, 18px);
    text-align: center;
    margin-top: 5px;
}

.midrash-fr {
    font-size: clamp(14px, 4vw, 22px);
    margin: 25px 0;
}

.date-red {
    font-weight: 700;
    font-style: italic;
    font-size: clamp(20px, 6vw, 33px);
    color: #d11;
    margin-top: 10px;
}

.place {
    font-weight: 700;
    font-style: italic;
    font-size: clamp(16px, 5vw, 30px);
    margin: 20px 0;
}

.para,
.para-red {
    font-style: italic;
    font-size: clamp(16px, 4.7vw, 26px);
    width: 95%;
    margin: 0 auto 25px auto;
    text-align: justify;
    text-align-last: center;
}

.para-red {
    color: #d11;
}

.sig-small,
.sig-medium,
.sig-last {
    font-weight: 700;
    font-style: italic;
}

.sig-small {
    font-size: clamp(20px, 6vw, 36px);
}

.sig-medium {
    font-size: clamp(22px, 7vw, 42px);
}

.sig-rachel {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(40px, 12vw, 80px);
    color: #d11;
}

.sig-last {
    font-size: clamp(20px, 6vw, 36px);
}


/* ============================
   FORMULAIRE
============================ */
.form-section {
    margin-top: 60px;
    padding: 20px;
    border-top: 1px solid #333;
}

h2 {
    font-size: clamp(20px, 6vw, 34px);
    margin-bottom: 20px;
    color: #fff;
}

label {
    display: block;
    text-align: left;
    margin: 15px 0 5px;
    font-size: clamp(16px, 4.2vw, 22px);
}


/* ----------------------------
   STYLE UNIFORME
---------------------------- */
select,
input[type="text"],
textarea {
    width: 100%;
    padding: 15px !important;
    border-radius: 8px !important;
    border: none !important;
    background: #575757 !important;
    color: #fff !important;
    font-size: clamp(18px, 5vw, 24px) !important;
    font-weight: 600 !important;
    box-sizing: border-box;
    margin-bottom: 15px;
}


/* ============================
   BLOC INVITÉ (non utilisé mais conservé)
============================ */
.guest-row-block {
    background: #2c2c2c;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 18px;
    border: 1px solid #444;
}

.guest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.guest-title {
    font-size: 22px;
    font-weight: 700;
}


/* ============================
   BOUTON SUPPRIMER (HÉRITAGE)
============================ */
.remove-btn {
    background: #d11;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}


/* ============================
   BOUTONS
============================ */
.add-btn,
.submit-btn {
    width: 100%;
    background: #d11;
    color: #fff;
    border: none;
    padding: 15px;
    font-size: clamp(18px, 5vw, 24px);
    border-radius: 8px;
    margin-top: 15px;
    font-weight: bold;
}

.log-output {
    background: #575757;
    padding: 15px;
    margin-top: 25px;
    border-radius: 10px;
    font-family: monospace;
    white-space: pre-wrap;
    text-align: left;
    font-size: 14px;
}


/* ============================
   CHAMP TÉLÉPHONE
============================ */
#phone {
    width: 100% !important;
    padding: 15px !important;
    padding-left: 80px !important;
    border-radius: 8px !important;
    font-size: clamp(18px, 5vw, 24px) !important;
    background: #575757 !important;
    color: #fff !important;
    font-weight: 600;
    border: none !important;
    direction: ltr !important;
    text-align: left !important;
}

.iti,
.iti * {
    direction: ltr !important;
    text-align: left !important;
}

.iti {
    width: 100% !important;
}

.iti__flag-container {
    left: 0 !important;
    right: auto !important;
    height: 100%;
    display: flex;
    align-items: center;
}

.iti__selected-flag .iti__flag {
    transform: scale(1.15);
}

.iti__country-list {
    background: #000 !important;
    width: 100vw !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border-radius: 0 !important;
    border: 1px solid #333 !important;
}

.iti__country {
    padding: 15px 20px !important;
}

.iti__country-name {
    color: #fff !important;
    font-size: clamp(18px, 5vw, 24px);
    font-weight: 500;
}

.iti__dial-code {
    color: #d11 !important;
    font-size: clamp(18px, 5vw, 24px);
    font-weight: bold;
}

.iti__country:hover {
    background: #222 !important;
}

.iti__divider {
    border-bottom: 1px solid #d11 !important;
}


/* ============================
   COMPTE À REBOURS
============================ */
.countdown {
    margin-top: 10px;
    font-size: clamp(18px, 5vw, 30px);
    color: #fff;
    font-weight: 700;
}


/* ============================
   SELECTEUR DE LANGUE
============================ */
.lang-selector {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 9999;
}

.lang-selector img {
    width: clamp(34px, 9vw, 48px);
    height: auto;
    border-radius: 50%;
    cursor: pointer;
}

#lang-dropdown {
    position: absolute;
    top: 55px;
    right: 0;
    background: #000;
    padding: 8px 12px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid #444;
}

#lang-dropdown.hidden {
    display: none;
}

#lang-dropdown img {
    width: clamp(32px, 8vw, 45px);
}


/* ============================
   Liens blancs
============================ */
a {
    color: white !important;
    text-decoration: none !important;
}

a:visited {
    color: white !important;
}


/* ============================
   RTL GLOBAL
============================ */
.rtl-form label {
    text-align: right !important;
    direction: rtl !important;
}

.rtl-form select,
.rtl-form input[type="text"],
.rtl-form textarea {
    direction: rtl !important;
    text-align: right !important;
}


/* ============================
   LIGNE INVITÉ — VERSION FINALE
============================ */
.guest-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    width: 100%;
}

.guest-row input {
    flex: 1;
    height: 50px;
    padding: 0 15px !important;
    border-radius: 8px !important;
    background: #575757 !important;
    color: #fff !important;
    border: none !important;
    font-size: clamp(18px, 5vw, 24px) !important;
    font-weight: 600 !important;
    box-sizing: border-box;
}

/* BOUTON SUPPRIMER — VERSION ALIGNÉE */
.remove-btn {
    width: 40px;      /* largeur FIXE */
    height: 40px;     /* hauteur FIXE */
    min-width: 30px; */ /* empêche le shrink */
    min-height: 30px;*/
    padding: 0;       /* supprime le décalage interne */
    border-radius: 8px;
    background: black;
    color: #d11;
    border: none;
    font-size: 26px;   /* légèrement + gros */
    font-weight: bold;
    cursor: pointer;

    display: flex;
    justify-content: center;
    align-items: top;
}


/* ============================
   RTL — INVITÉS
============================ */
.rtl-form .guest-row {
    direction: rtl;
    flex-direction: row-reverse;
}

.rtl-form .guest-row .fname {
    order: 2;
}

.rtl-form .guest-row .lname {
    order: 1;
}

.rtl-form .guest-row .remove-btn {
    order: 3;
}









/* Safari iPhone autofill fix (désactive le fond jaune dégueulasse) */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0px 1000px #111 inset !important; /* même fond que front */
    box-shadow: 0 0 0px 1000px #111 inset !important;
    -webkit-text-fill-color: #fff !important; /* texte blanc */
    caret-color: #fff !important;
}

/* Pour que le préfixe +972 reste blanc même si Safari essaie de modifier */
.iti__selected-dial-code {
    color: #fff !important;
}

/* Le placeholder doit rester visible */
input::placeholder {
    color: #bbb !important;
}

.form-error{
  margin-top:6px;
  font-size:0.9rem;
  color:#b00020;       /* clean red, not neon */
  font-weight:600;
  line-height:1.2;
  text-align:center;  /* matches your centered layout */
}