/* ────────────────────────────
 * 🎨 VARIABLES GLOBALES
 *──────────────────────────── */
:root {
    --primary-color: #4A5D23;
    --secondary-color: #C1AD97;
    --primary-color-hover: #5a712b;
    --primary-font-family: "Cardo", serif;
    --secondary-font-family: 'Cormorant', Georgia, "Times New Roman", serif;
    --name-font-family: "Parisienne", cursive;
}

@font-face {
    font-family: "Rubik Dirt";
    src:
        url("../fonts/RubikDirt-Regular.ttf") format("truetype"),
}

@font-face {
    font-family: "Parisienne";
    src:
        url("../fonts/Parisienne-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Amatic SC';
    src: url('../fonts/AmaticSC-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Amatic SC';
    src: url('../fonts/AmaticSC-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.main-color {
    color: var(--primary-color);
    font-weight: bold;
}

.italic {
    font-style: italic;
}

/* ────────────────────────────
 * ✨ ANIMATIONS
 *──────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ────────────────────────────
 * 🔝 BOUTON REMONTER EN HAUT
 *──────────────────────────── */
#scrollToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9990;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 20px;
    cursor: pointer;
    display: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: opacity 0.3s ease;
}

#scrollToTop:hover {
    background-color: var(--primary-color-hover);
}

/* ────────────────────────────
 * 🎵 BOUTON MUSIQUE
 *──────────────────────────── */
#musicToggle {
    position: fixed;
    bottom: 90px;
    right: 30px;
    z-index: 9990;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease;
}

#musicToggle:hover {
    background-color: var(--primary-color-hover);
}

@media (max-width: 480px) {

    #scrollToTop,
    #musicToggle {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    #musicToggle {
        bottom: 75px;
    }
}

/* ────────────────────────────
 * 🧭 NAVBAR
 *──────────────────────────── */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    font-family: var(--secondary-font-family);
}

#navbar nav {
    display: flex;
    align-items: center;
    padding: 10px 40px;
}

.nav-links {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 20px;
}

#navbar nav a {
    position: relative;
    margin: 0 15px;
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    font-size: 25px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

#navbar nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    left: 0;
    bottom: -5px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

#navbar nav a:hover,
#navbar nav a.active {
    color: var(--primary-color);
}

#navbar nav a:hover::after,
#navbar nav a.active::after {
    width: 100%;
}

#navbar.transparent {
    background-color: rgba(57, 57, 57, 0.51);
    box-shadow: none;
}

#navbar.scrolled {
    background-color: var(--secondary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 480px) {
    #navbar nav a {
        font-size: 20px;
    }
}

/* ────────────────────────────
 * 🍔 MENU HAMBURGER (MOBILE)
 *──────────────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background: currentColor;
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    #navbar nav {
        padding: 10px 25px;
        justify-content: space-between;
    }

    .hamburger {
        display: flex;
        color: white;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px 0;
        display: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    #navbar.transparent .nav-links {
        background-color: rgba(57, 57, 57, 0.51);
    }

    #navbar.scrolled .nav-links {
        background-color: var(--secondary-color);
    }

    .nav-links.active {
        display: flex;
    }
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ────────────────────────────
 * 📶 BARRE DE PROGRESSION SCROLL
 *──────────────────────────── */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background-color: var(--primary-color);
    width: 0%;
    z-index: 2000;
    transition: width 0.2s ease-out;
}

/* ────────────────────────────
 * 🖼️ LOGO
 *──────────────────────────── */
.logo {
    height: 80px;
    transition: transform 0.3s ease;
}

.logo.fade {
    opacity: 0;
}

.logo:hover {
    transform: scale(1.05);
}

.middle-logo {
    width: 160px !important;
    bottom: 20px;
    position: relative;
}

/* ────────────────────────────
 * 🌍 SÉLECTEURS DE LANGUE (MULTI)
 *──────────────────────────── */

#language-switcher {
    z-index: 10000;
    display: flex;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(6px);
    border-radius: 30px;
    padding: 8px 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#language-switcher2 {
    position: fixed;
    z-index: 10001;
    display: flex;
    gap: 10px;
    top: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 8px 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#language-switcher button,
#language-switcher2 button {
    font-family: var(--primary-font-family);
    font-size: 0.95rem;
    background: none;
    border: none;
    padding: 5px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#language-switcher button img,
#language-switcher2 button img {
    width: 24px;
    height: 24px;
    display: block;
    border-radius: 50%;
}

#language-switcher button:hover,
#language-switcher button.active,
#language-switcher2 button:hover,
#language-switcher2 button.active {
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
}

/* ─────────── Responsive ─────────── */
@media (max-width: 480px) {

    #language-switcher,
    #language-switcher2 {
        gap: 6px;
        padding: 6px 10px;
    }
}

/* ────────────────────────────
 * 🈯 SUPPORT LANGUES RTL
 *──────────────────────────── */
[data-lang="he"] {
    direction: rtl;
    font-family: "Rubik Dirt";
}

[data-lang="fr"] {
    direction: ltr;
}

[data-lang="he"] .fr-only {
    display: none;
}

[data-lang="fr"] .he-only {
    display: none;
}

[data-lang="he"] .names-font {
    font-family: "Rubik Dirt" !important;
}

[data-lang="he"] #placeholder_tel {
    direction: rtl;
}

[data-lang="he"] .parents {
    font-size: 30px;
    font-family: 'Amatic SC', cursive;
    font-weight: bold;
}

[data-lang="he"] .hp {
    font-size: 30px;
    font-family: 'Amatic SC', cursive;
    font-weight: bold;
}

[data-lang="he"] #formulaire h2 {
    font-family: 'Amatic SC', cursive;
    font-weight: bold;
}

#navbar {
    font-family: 'Amatic SC', cursive;
    font-weight: bold;
}

/* ────────────────────────────
 * 🎬 SECTION LANDING PAGE
 *──────────────────────────── */
#landing {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('../images/bg1.jpg') no-repeat center center/cover;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#landing .overlay {
    background: rgba(0, 0, 0, 0.4);
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

#landing .overlay-name {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-between;
    height: 45vh;
    margin-bottom: 130px;
}

#landing h1 {
    font-family: var(--name-font-family);
    font-size: 3rem;
    margin-bottom: 30px;
    color: white;
    letter-spacing: 2px;
}

.landing-button {
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: white;
    background-color: var(--primary-color);
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.landing-button:hover {
    background-color: var(--primary-color-hover);
    transform: translateY(-2px);
}

.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ─────────── Responsive ─────────── */

@media (max-width: 768px) {
    #landing h1 {
        font-size: 2.2rem;
        margin-bottom: 20px;
        text-align: center;
    }

    .landing-button {
        font-size: 0.95rem;
        padding: 12px 24px;
    }

    #landing .overlay-name {
        height: auto;
        margin-bottom: 80px;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    #landing h1 {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .landing-button {
        width: 80%;
        font-size: 1rem;
    }

    #landing .overlay-name {
        margin-bottom: 60px;
    }
}

/* ────────────────────────────
 * 🏠 SECTION ACCUEIL
 *──────────────────────────── */
#accueil {
    padding: 100px 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: url('../images/bg2.jpg') no-repeat center center/cover;
    color: white;
    position: relative;
    padding-top: 80px;
}

.names {
    font-style: italic;
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
    background-color: rgba(0, 0, 0, 0.5);
    display: inline-block;
    padding: 0.5em 1em;
    border-radius: 10px;
    font-weight: 400;
}

.names-font {
    font-family: var(--name-font-family);
}

#accueil h1 {
    font-size: 3em;
}

#accueil #compteur {
    font-size: 2em;
    margin-top: 20px;
}

.compteur {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    font-family: var(--primary-font-family);
}

.compteur-bloc {
    position: relative;
    width: 100px;
    height: 100px;
    padding: 12px 16px;
    background: rgba(74, 93, 35, 0.8);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    text-align: center;
    font-size: 25px;
    box-shadow: 0 2px 6px rgba(214, 135, 157, 0.2);
    transition: transform 0.3s ease;
    animation: pulse 1s ease infinite;
}

.compteur-bloc:hover {
    transform: scale(1.05);
}

.compteur-bloc .nombre {
    font-size: 1.5em;
    font-weight: 600;
}

.compteur-bloc .label {
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 3px;
}

/* ─────────── Responsive ─────────── */

@media (max-width: 992px) {
    #accueil h1 {
        font-size: 2.5em;
    }

    .compteur-bloc {
        width: 85px;
        height: 85px;
        font-size: 22px;
    }

    .compteur-bloc .nombre {
        font-size: 1.3em;
    }

    .compteur-bloc .label {
        font-size: 0.7em;
    }
}

@media (max-width: 768px) {
    #accueil h1 {
        font-size: 2rem;
    }

    .compteur {
        flex-wrap: wrap;
        gap: 16px;
    }

    .compteur-bloc {
        width: 70px;
        height: 70px;
        padding: 10px;
        font-size: 18px;
    }

    .compteur-bloc .nombre {
        font-size: 1.1em;
    }

    .compteur-bloc .label {
        font-size: 0.65em;
    }
}

@media (max-width: 480px) {
    #accueil {
        padding: 60px 10px;
    }

    #accueil h1 {
        font-size: 1.6rem;
    }

    .compteur-bloc {
        width: 65px;
        height: 65px;
        font-size: 16px;
    }

    .compteur-bloc .nombre {
        font-size: 1em;
    }

    .compteur-bloc .label {
        font-size: 0.6em;
    }
}

/* ────────────────────────────────
 * 🎉 SECTION HOUPPA & SOIRÉE
 *──────────────────────────────── */

/* 🖼️ Fond et structure générale */
#houppa-soiree {
    background: url('../images/bg3.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px;
    position: relative;
}

#houppa-soiree::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    pointer-events: none;
    z-index: 0;
}

#houppa-soiree .container {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
}

/* 📝 Titres principaux */
#arc-title,
#houppa_title {
    font-family: var(--primary-font-family);
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    position: relative;
}

#houppa_title {
    bottom: 25px;
    margin-top: initial;
}

#houppa_title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 12px auto 0;
    border-radius: 2px;
}

.margin-b {
    margin-bottom: 20px !important;
}

.parents {
    display: flex;
    justify-content: space-between;
    font-family: var(--secondary-font-family);
    font-size: 30px;
}

.parents-col {
    display: flex;
    flex-direction: column;
}

.heartbeat {
    display: inline-block;
    animation: beat 1s infinite ease-in-out;
    transform-origin: center;
    color: #F14E95;
    position: absolute;
    top: 5px;
}

@keyframes beat {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.2);
    }

    40% {
        transform: scale(0.95);
    }

    60% {
        transform: scale(1.05);
    }

    80% {
        transform: scale(0.98);
    }
}

/* 💬 Textes */
.hp {
    font-family: var(--secondary-font-family);
    font-size: 25px;
}

.hp2 {
    display: flex;
    flex-direction: column;
}

.hp3 {
    margin: auto;
    display: flex;
    justify-content: space-between;
    width: 55%;
}

.hp4 {
    margin-top: 20px;
    font-size: 20px;
    display: flex;
    flex-direction: column;
}

.groom {
    display: flex;
    flex-direction: column;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 70px;
}

.groom-hebrew {
    display: flex;
    justify-content: space-around;
    font-family: "Rubik Dirt";
}

#venue_address {
    font-style: italic;
    font-weight: bold;
    color: var(--primary-color);
}

.btn-houppa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: white !important;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.calendar-button {
    display: none;
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.calendar-button:hover {
    background-color: var(--primary-color-hover);
    transform: translateY(-2px);
}

.waze-button {
    background-color: #05C4FF;
    border: 2px solid #05C4FF;
}

.waze-button:hover {
    background-color: #03B0E6;
    transform: translateY(-2px);
}

.btn-event {
    justify-content: center;
}

/* ─────────── Responsive ─────────── */

@media (max-width: 992px) {

    #arc-title,
    #houppa_title {
        font-size: 2.3rem;
    }

    .groom {
        font-size: 55px;
    }

    .hp {
        font-size: 22px;
    }

    .parents {
        font-size: 18px;
    }

    .hp3 {
        width: 70%;
        gap: 19px;
    }

    .calendar-button {
        display: inherit;
    }
}

@media (max-width: 768px) {
    #houppa-soiree {
        padding: 80px 15px;
    }

    #arc-title,
    #houppa_title {
        font-size: 2rem;
    }

    .middle-logo {
        width: 100px;
    }

    .parents {
        gap: 20px;
        text-align: center;
    }

    .groom {
        font-size: 45px;
    }

    .hp {
        font-size: 20px;
    }

    .btn-event {
        width: 80%;
    }

    .calendar-button,
    .waze-button {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {

    #houppa_title {
        font-size: 1.6rem;
    }

    #arc-title {
        font-size: 1.4rem;
    }

    .groom {
        font-size: 35px;
    }

    .hp {
        font-size: 18px;
    }

    .hp4 {
        font-size: 16px;
    }

    .btn-event {
        flex-direction: column;
        align-items: center;
        gap: inherit;
    }

    .calendar-button img,
    .waze-button img {
        height: 25px;
        width: 25px;
    }
}

/* ────────────────────────────────
 * 📩 SECTION FORMULAIRE RSVP
 *──────────────────────────────── */

/* 🖼️ Fond et layout */
#formulaire {
    padding: 100px 20px;
    background: linear-gradient(135deg, rgba(193, 173, 151, 0.95), rgba(217, 200, 178, 0.8), rgba(237, 227, 214, 0.7));
    background-attachment: fixed;
}

#formulaire::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

#formulaire .form-container {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* 📝 Titre du formulaire */
#formulaire h2 {
    font-family: var(--primary-font-family);
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

/* 🧾 Champs */
#formulaire form input,
#formulaire form select,
#formulaire form textarea {
    width: 100%;
    margin-bottom: 20px;
    padding: 14px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
}

#formulaire form textarea {
    height: 120px;
    resize: vertical;
}

/* 🔽 Select stylisé */
.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: "▼";
    position: absolute;
    top: 26px;
    right: 20px;
    transform: translateY(-50%);
    pointer-events: none;
    color: #999;
    font-size: 0.8rem;
}

#formulaire form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: white;
    padding-right: 40px;
    cursor: pointer;
}

/* 👥 Wrapper nombre de personnes (si visible) */
#nombre-wrapper {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

/* 📤 Bouton d'envoi */
.submit-button {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    padding: 14px 28px;
    font-size: 1rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: var(--primary-color-hover);
}

/* ✅ Message de confirmation */
.message {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border-radius: 0.25rem;
}

.success-message {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.radio-group {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.form-hint {
    font-size: 0.85rem;
    color: #777;
    margin-top: -12px;
    margin-bottom: 20px;
    display: block;
}

.input-name {
    display: flex;
    justify-content: space-between;
}

.input-name #placeholder_first_name,
.input-name #placeholder_last_name {
    width: 40%;
}

/* ─────────── Responsive ─────────── */

@media (max-width: 992px) {
    #formulaire h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    #formulaire {
        padding: 80px 15px;
    }

    #formulaire h2 {
        font-size: 1.9rem;
        margin-bottom: 20px;
    }

    #formulaire form input,
    #formulaire form select,
    #formulaire form textarea {
        font-size: 0.95rem;
        padding: 12px;
    }

    .select-wrapper::after {
        top: 22px;
        right: 16px;
    }
}

@media (max-width: 480px) {
    #formulaire h2 {
        font-size: 1.6rem;
    }

    #formulaire form input,
    #formulaire form select,
    #formulaire form textarea {
        font-size: 0.9rem;
        padding: 10px;
    }

    .submit-button {
        font-size: 0.9rem;
        padding: 10px 18px;
    }

    .select-wrapper::after {
        top: 20px;
        right: 14px;
        font-size: 0.7rem;
    }
}


/* ────────────────────────────
 * 💼 FOOTER SIGNATURE DÉVELOPPEUR
 *──────────────────────────── */
.footer-invitation {
    background-color: #fdf9f3;
    padding: 20px 20px;
    text-align: center;
    font-family: var(--secondary-font-family);
    font-size: 1rem;
    color: #6b5b4a;
    border-top: 1px solid #e3d4c0;
    box-shadow: inset 0 1px 0 #e3d4c0;
}

[data-lang="he"] .footer-invitation {
    font-family: var(--primary-font-family);
    font-size: 20px;
}

.footer-invitation .footer-content p {
    margin: 10px 0;
    line-height: 1.6;
}

.footer-invitation a {
    color: #b8996e;
    text-decoration: none;
    font-weight: 600;
}

.footer-invitation a:hover {
    text-decoration: underline;
}

#footer_name {
    font-weight: bold;
}

/* Responsive */
@media (max-width: 600px) {
    .footer-invitation {
        font-size: 0.9rem;
        padding: 20px 10px;
    }
}