/* Variables pour personnalisation */

    :root {
        --primary-color: #F9FAF7; /* bg */
        --secondary-color: #dce3d2bd; /* bg */
        --accent-color: #B8C0AB; /* navbar active, langue active, liens et scrollbar */
        --text-color: #55655A;
        --secondary-text-color: #A47830; /* hover des liens et bg des boutons */
        --font-family: 'Butler', serif; 
        --h-font-family: 'Aston', serif;
        --font-size: 1.5rem;
        --mobile-font-size: 1.1rem;
        --greek-font: 'Goudy', serif;
        --sp-font-family: 'MillGoudy', serif;
    }

/* Déclaration des polices */

    @font-face {
        font-family: 'Butler';
        src: url('/assets/fonts/Butler_Regular.otf') format('truetype');
        font-weight: normal;
        font-style: normal;
    }
    @font-face {
        font-family: 'Aston';
        src: url('/assets/fonts/Aston Script Pro Bold.otf') format('truetype');
        font-weight: normal;
        font-style: normal;
    }
    @font-face {
        font-family: 'Goudy';
        src: url('/assets/fonts/PFGoudyOldstyle-Regular.otf') format('truetype');
        font-weight: normal;
        font-style: normal;
    }
    @font-face {
        font-family: 'MillGoudy';
        src: url('/assets/fonts/SortsMillGoudy-Regular.ttf') format('truetype');
        font-weight: normal;
        font-style: normal;
        font-display: swap;
        unicode-range: U+000-5FF;   
    }
    
/* Styles globaux */

    /* Pour l'espagnol */
    .lang-es h1, .lang-es h2, .lang-es h3 {
        font-family: var(--h-font-family);
    }
    .lang-es p, .lang-es textPath, .lang-es a, .lang-es button, .lang-es div {
        font-family: var(--sp-font-family);
    }
    
    /* Pour le grec */
    .lang-ell  h2, .lang-ell p, .lang-ell textPath, .lang-ell a, .lang-ell button, .lang-ell div  {
        font-family: var(--greek-font);
    }
  
    body {
        /* font-family: var(--font-family); */
        color: var(--text-color);
        background-color: var(--primary-color);
        letter-spacing: 2px;
    }
    html {
        scroll-behavior: smooth;
    }
    html, body {
        height: 100%;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        overflow-x: hidden;
    }
    h1, h2, h3 {
        font-family: var(--h-font-family);
        font-weight: 200;
        color: var(--secondary-text-color);
        margin: 0;
    }
    h1 {
        font-size: 3rem;
        margin: 40px 0;
        line-height: 2.2;
    }
    h2 {
        font-size: 2rem;
        line-height: 50px;
    }
    h3 {
        font-size: 1.5rem;
    }
    a {
        color: var(--text-color);
        text-decoration: none;
    }
    a:hover,
    a h1:hover,
    a p:hover {
        color: var(--accent-color); 
    }
    main {
        text-align: center;
        color: var(--text-color);
        font-size: var(--font-size);
        flex: 1; /* Prend tout l'espace disponible */
    }
    .maj {
        text-transform: uppercase;
    }
    .highlight {
        font-size: 1.7rem!important;
        margin: auto;
        color: var(--secondary-text-color);
    }
    .color {
        color: var(--secondary-text-color);
    }
    p {
        margin: 0 auto;
        padding: 0 20px;
        max-width: 900px;
    }
    .inline-elements p,
    .inline-elements h2 {
        display: inline-block;
        margin: 0 10px;
        vertical-align: middle;
    }
    .inline-elements {
        margin: 50px auto;
    }
    .inline {
        display: flex;
        align-items: center;
    }
    .maj {
        text-transform: uppercase;
    }
    .desktop {
        display: block;
    }
    .mobile {
        display: none;
    }
    button {
        outline: none;
    }
    button:focus, a:focus {
        outline: none;
        box-shadow: none;
    }  
    .navbar .active {
        color: var(--accent-color);
        font-weight: bold;
    } 
    .big-number {
        font-size: 2.5rem;
    }   

    /* Scrollbar */
    body::-webkit-scrollbar {
        width: 12px;
    }
    body::-webkit-scrollbar-track {
        background: var(--primary-color);
    }
    body::-webkit-scrollbar-thumb {
        background-color: var(--accent-color);
        border-radius: 10px;
        border: 3px solid var(--primary-color);
    }
    body::-webkit-scrollbar-thumb:hover {
        background-color: darken(var(--accent-color), 10%);
    }

/* Menu */

    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 30px;
        color: var(--text-color);
        line-height: 100px;
        position: relative;
    }
    .navbar-logo img {
        height: 35px;
        width: auto;
        cursor: pointer;
    }
    .navbar-menu {
        list-style: none;
        display: flex;
        gap: 15px;
        margin: 0;
        padding: 0;
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateY(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 100;
    }
    .navbar-menu li a {
        padding: 5px 10px;
        transition: background-color 0.3s;
        font-size: 1.1rem;
    }
    header {
        color: var(--text-color);
        text-align: center;
        background: linear-gradient(to bottom, var(--secondary-color) 0%, var(--primary-color) 100%);
    }
    .navbar-menu a {
        text-decoration: none;
        color: var(--text-color);
    }
    .navbar-menu a:hover {
        color: var(--secondary-text-color);
    }
    .navbar-menu.open {
        transform: translateY(0);
        background-color: var(--accent-color);
    }
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 24px;
        width: 30px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 110;
        padding: 0;
    }
    .hamburger span {
        display: block;
        height: 2px;
        width: 100%;
        background: var(--text-color);
        border-radius: 2px;
        transition: transform 0.3s ease, background 0.3s ease, opacity 0.3s ease;
    }
    .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(10px, -10px);
    }
    .hamburger span {
        transform-origin: center; 
    }
    @media (min-width: 930px) {
        .navbar-menu {
          position: static;
          transform: none;
          flex-direction: row;
          height: auto;
          width: auto;
          justify-content: flex-end;
        }
        .hamburger {
          display: none;
        }
    }
    @media (max-width: 930px) {
        main {
            font-size: var(--mobile-font-size);
        }
        .grid-container1 p,
        .faq-question {
            font-size: inherit!important;
        }
        .boda-details {
            gap: 30px;
        }
        .img2 {
            width: 100%!important;
        }
        h1 {
            font-size: 2rem;
            margin: 0 10px 40px 10px!important;
        }
        .navbar .active,
        .lang-option.selected {
            color: var(--primary-color)!important;
        }
        .bg {
            opacity: 0.4;
        } 
    }
    @media (max-width: 650px) {
        .desktop {
            display: none;
        }
        .mobile {
            display: block;
        }        
        h1 {
            font-size: 1.7rem!important;
        }
        h2 {
            font-size: 1.5rem;
        }
        h3 {
            font-size: 1rem;
        }
        .inline-elements {
            margin: 30px auto;
        }
        .highlight {
            font-size: 1.1rem!important;
        }
        .inline-elements p {
            margin: 0 5px!important;
        }
        .big-number {
            font-size: 2rem;
            letter-spacing: 0px;
        }

    }

/* Lang selector */

    .language-selector {
        display: inline-flex;
        align-items: center;
        font-family: Arial, sans-serif;
        color: black;
        cursor: pointer;
    }
    .lang-option {
        padding: 0 10px;
        text-transform: uppercase;
        transition: color 0.3s ease;
        font-family: var(--font-family);
    }
    .lang-option.selected {
        color: var(--accent-color);
        font-weight: bold;
    }

  
/* Boutons */

    .button {
        cursor: pointer;
        text-decoration: none;
        font-size: inherit;
        border: 2px solid;
        border-radius: 4px;
        padding: 10px 20px;
        margin: 30px auto;
        display: flex;
        justify-content: center;
        width: max-content;
        font-family: var(--font-family);
        background: var(--secondary-text-color);
        color: var(--primary-color);
    }
    .button:hover {
        color: var(--secondary-text-color);
        background: var(--primary-color);
    }
    .outlined-button {
        cursor: pointer;
        text-decoration: none;
        font-size: inherit;
        border: 2px solid;
        border-radius: 4px;
        padding: 10px 30px;
        margin: 30px auto;
        display: flex;
        justify-content: center;
        width: max-content;
        font-family: var(--font-family);
        color: var(--secondary-text-color);
        background: var(--primary-color);
    }
    .outlined-button:hover {
        background: var(--secondary-text-color);
        color: var(--primary-color);
    }

/* Effects on images */

    .hover-effect {
        transition: transform 0.5s ease;
        transform-style: preserve-3d;
    }
    .hover-effect:hover {
        transform: rotateY(15deg) rotateX(10deg);
    }

    .hover-effect1 {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .hover-effect1:hover {
        transform: scale(1.1) rotate(25deg);
    }

    .lovers-container {
        position: relative;
        display: flex;
        justify-content: center;
        width: 100%;
    }
    .lovers-container .heart {
        position: absolute;
        width: 30px; 
        height: auto;
        opacity: 0; 
        animation: fly 2s ease-in-out forwards; 
        pointer-events: none; 
    }
    @keyframes fly {
        0% {
            transform: translate(0, 0) scale(1); 
            opacity: 1;
        }
        50% {
            transform: translate(-20px, -80px) scale(1.2);
        }
        100% {
            transform: translate(20px, -150px) scale(0.8);
            opacity: 0;
        }
    }  

    .spin {
        transition: transform 0.3s ease;
        animation: spin 25s linear infinite;
    }
    @keyframes spin {
        from {
            transform: rotate(0deg);
        }
        to {
            transform: rotate(360deg);
        }
    }

    .sparkle-container {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .sparkles {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 2; /* Place les étincelles au-dessus de l'image */
    }
    .sparkle {
        position: absolute;
        background: radial-gradient(circle, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 80%);
        clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
        opacity: 0;
        animation: sparkleAnimation 3s ease-in-out infinite;
    }   
    /* Animation des étoiles */
    @keyframes sparkleAnimation {
        0% {
            transform: scale(0.5);
            opacity: 0;
        }
        50% {
            transform: scale(1.5);
            opacity: 1;
        }
        100% {
            transform: scale(0);
            opacity: 0;
        }
    }

    .flower-container {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 30px 0;
    }
    @keyframes pulse {
        0% {
            transform: scale(0.9);
        }
        50% {
            transform: scale(1.1);
        }
        100% {
            transform: scale(0.9);
        }
    }
    @keyframes pulse1 {
        0% {
            transform: scale(0.95);
        }
        50% {
            transform: scale(1);
        }
        100% {
            transform: scale(0.95);
        }
    }

    .food-container {
        position: relative;
        width: 400px;
        height: 325px;
        margin: 0 auto 50px auto;   
        padding-top: 20px; 
        scale: 1.1;
        overflow: hidden;
    }
    .bounce-animation {
        display: inline-block; 
        animation: bounce 9s ease-in-out infinite; 
        animation-delay: 2s;
    }

    @keyframes bounce {
        0% {
            transform: translateY(0) rotate(0deg); /* Position initiale */
        }
        10% {
            transform: translateY(-20px) rotate(6deg); /* Monter avec rotation vers la droite */
        }
        20% {
            transform: translateY(0) rotate(0deg); /* Retour à la position initiale */
        }
        50% {
            transform: translateY(0) rotate(0deg); /* Pause avant le saut suivant */
        }
        60% {
            transform: translateY(-20px) rotate(-4deg); /* Monter avec rotation vers la gauche */
        }
        70% {
            transform: translateY(0) rotate(0deg); /* Retour à la position initiale */
        }
        100% {
            transform: translateY(0) rotate(0deg); /* Pause avant le saut suivant */
        }
    }

    @keyframes swingLeftRight {
        0% {
            transform: rotate(-20deg); /* Inclinaison à gauche */
        }
        50% {
            transform: rotate(20deg); /* Inclinaison à droite */
        }
        100% {
            transform: rotate(-20deg); /* Retour à gauche */
        }
    }
    @keyframes swingRightLeft {
        0% {
            transform: rotate(20deg); /* Inclinaison à droite */
        }
        50% {
            transform: rotate(-20deg); /* Inclinaison à gauche */
        }
        100% {
            transform: rotate(20deg); /* Retour à droite */
        }
    }

    @keyframes moveBus {
        0% {
            left: -30%; 
        }
        100% {
            left: 110%; 
        }
    }

    .scene {
        position: relative;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        perspective: 1000px;
        margin-top: 50px;
    }
    @keyframes driveAway {
        0% {
            transform: scale(1) translateZ(0); /* Taille initiale, pas de translation */
            opacity: 0; /* Complètement invisible */
        }
        10% {
            opacity: 1; /* Apparition progressive */
        }
        30% {
            transform: scale(1) translateZ(0); /* Reste à sa taille initiale */
            opacity: 1; /* Complètement visible */
        }
        100% {
            transform: scale(0) translateZ(-1000px); /* Rétrécit et recule dans le plan Z */
            opacity: 0; /* Disparaît doucement */
        }
    }


/* Page d'accueil */
  
    text {
        text-transform: uppercase;
    }
    .link {
        text-decoration: underline;
        text-decoration-thickness: 1px;
    }
    .hero img {
        margin: auto;
        display: block;
    }
    .img1 {
        width: 8vw; 
        max-width: 150px;
        min-width: 70px;
    }
    .pulse {
        animation: pulse 10s ease-in-out infinite;
    }
    .pulse1 {
        animation: pulse1 7s ease-in-out infinite;
    }
    .intro-container,
    .invitation-container {
        position: relative;
    }  
    .invitation-container {
        margin: 50px auto;
    }  
    .img2-0 {
        position: absolute;
        width: 18vw;
        max-width: 225px;
        min-width: 100px;
        top: -50%;
        left: 0;
        z-index: -10;
    }
    .img2-2 {
        margin: 40px auto!important;
        width: 35px;
        animation: swingLeftRight 8s ease-in-out infinite;
    }
    .img2-2-0 {
        margin: 40px auto!important;
        width: 35px;
        animation: swingRightLeft 8.5s ease-in-out infinite;
    }
    .img2-3 {
        position: absolute;
        right: 0;
        width: 15vw;
        top: 0%;
        max-width: 170px;
        min-width: 85px;
        z-index: -10;
    }
    .img2-3-0 {
        position: absolute;
        right: 0;
        width: 14vw;
        top: 32%;
        max-width: 170px;
        min-width: 75px;
        z-index: -10;
    }
    .img2-4 {
        width: 55px;
        animation: swingRightLeft 4.5s ease-in-out infinite;
    }
    .img2-4-0 {
        margin: 0 auto 40px auto!important;
        width: 55px;
        animation: swingLeftRight 4.5s ease-in-out infinite;
    }
    .img2-5 {
        width: 14vw;
        max-width: 215px;
        min-width: 135px;
    }
    .img2 {
        width: 70%;
        margin: 30px 0 !important;
        max-width: 850px;
        min-width: 350px;
    }
    .img10 {
        width: 50vw;
        margin: 30px 0 !important;
        max-width: 700px;
        min-width: 300px;
        border-radius: 10px;
    }
    .img3 {
        width: 50vw;
        position: relative;
        z-index: 1;
        max-width: 700px;
        min-width: 320px;
    }
    .envelope-container {
        position: relative;
        width: 320px;
        height: 220px;
        margin: 0 auto 20px auto;    
    }
    .img4 {
        width: 6vw;
        max-width: 90px;
        min-width: 50px;
    }
    .img5 {
        position: absolute;
        right: 0;
        width: 11vw;
        top: 0%;
        max-width: 170px;
        min-width: 75px;
        z-index: -10;
    }
    .img5-0 {
        position: absolute;
        right: 0;
        width: 14vw;
        top: 90%;
        max-width: 170px;
        min-width: 75px;
        z-index: -10;
    }
    .img6 {
        position: absolute;
        left: 0;
        width: 10vw;
        top: 32%;
        max-width: 150px;
        min-width: 75px;
        z-index: -10;
    }
    .img7 {
        position: absolute;
        width: 13vw;
        max-width: 185px;
        min-width: 95px;
        top: -5%;
        right: 0;
        z-index: -10;
    }
    .img8 {
        position: absolute;
        left: 0;
        width: 9vw;
        top: 110%;
        max-width: 170px;
        min-width: 75px;
        z-index: -10;
    }
    .img8-1 {
        width: 180px;
        z-index: 10;
        left: 60%;
        bottom: 25px;
    }
    .img8-2 {
        width: 400px;
        z-index: 30;
        left: 45%;
        transform: translateX(-50%);
        top: 25px;
    }
    .img11 {
        width: 22vw;
        max-width: 320px;
        min-width: 250px;
        transform: translateX(-10px);
    }
    .img12 {
        width: 33vw;
        max-width: 525px;
        min-width: 365px;
    }    
    .scroll-image-container {
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        height: 130px; 
    }
    .scroll-image {
        position: relative;
        transform: translateX(50vw);
        transition: transform 2s ease-in-out;
        opacity: 0;
    }
    .scroll-image.visible {
        transform: translateX(0);
        opacity: 1;
    }
    .scroll-image1 {
        position: relative;
        transform: translateX(-50vw);
        transition: transform 2s ease-in-out;
        opacity: 0;
    }
    .scroll-image1.visible {
        transform: translateX(0);
        opacity: 1;
    }
    .img13 {
        width: 145px;
    }
    .bus-container {
        position: relative;
        width: 100%;
        height: 135px;
        backface-visibility: hidden;
        margin: 50px auto;    
        overflow: hidden;
    }
    .food-container img {
        transition: opacity 3s ease-in-out; 
    }
    .fade-out {
        opacity: 0; 
    }
    .bus-container img {
        position: absolute; 
        object-fit: contain;
    }
    .img9 {
        width: 5%;
        min-width: 90px;
    }
    .margin {
        margin: 50px;
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
    }
    .margin1 {
        margin: 40px auto;
    }
    .margin2 {
        margin: 45px;
    }
    .margin3 {
        margin: 20px auto 60px auto;
    }
    .margin4 {
        margin: 60px auto 20px auto!important;
    }
    .delayed-image {
        opacity: 0;
        transition: opacity 1s ease-in-out; 
        transition-delay: 0.5s;
    }
    .delayed-image.visible {
        opacity: 1; 
    }
    .scrolling-wave {
        width: 100%;
        height: 150px;
        overflow: hidden;
        margin: 40px auto;
    }
    .boda-details {
        display: flex;
        justify-content: center;
        gap: 100px;
    }
    .boda-ceremonia > .inline-elements, 
    .boda-celebracion > .inline-elements {
        margin: 30px auto 10px auto;
    }
    .faq {
        max-width: 600px;
        margin: 20px auto 70px auto;
    } 
    .faq-item {
        border-bottom: 1px solid var(--accent-color);
    }   
    .faq-question {
        font-family: var(--font-family);
        color: var(--text-color);
        text-transform: uppercase;
        background: inherit;
        width: 100%;
        border: none;
        padding: 20px;
        font-size: 1.3rem;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        transition: background-color 0.3s ease;
        font-weight: 600;
    }   
    .faq-question:hover {
        color: var(--secondary-text-color);
    }   
    button:hover {
        background: none;
    }
    .faq-icon {
        font-size: 30px;
        color: var(--text-color);
        transition: transform 0.3s ease;
        display: inline-block;
        transform-origin: center center; 
        width: 40px;
        height: 40px;
        cursor: pointer;
    }
    .faq-icon.active {
        transform: rotate(135deg);
    }
    .faq-answer {
        font-family: var(--font-family);
        text-align: center;
        max-height: 0; 
        overflow: hidden; 
        opacity: 0;
        transition: max-height 0.5s ease, opacity 0.5s ease; 
    }
    .map-section {
        text-align: center;
        padding: 20px;
    }
    .map-section h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    .map-section p {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .map-container iframe {
        border: none;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
    textPath {
        text-transform: uppercase;
    }
    #countdown {
        padding: 0 20px;
    }
    @media (max-width: 520px) {
        .envelope-container,
        .food-container,
        .drinks-container,
        .img8,
        .img8-1, .img8-2 {
            scale: 0.8;
        }
        .img8-2 {
            left: 34%;
        }
        .img8 {
            animation: moveBus 17s linear infinite;
        }
        .food-container {
            margin: 0 auto;
            width: auto;
        }
        .boda-details {
            display: block;
        }
        .sparkle {
            scale: 0.5;
        }
    }
    @media screen and (max-width: 1340px) {
        text {
            transform: scale(1.1);
        }
    }
    @media (max-width: 800px) {
        .food-container {
            margin: 0 auto;
        }
    }
    @media screen and (max-width: 1340px) {
        text {
            transform: scale(1.1); 
        }
    }
    @media screen and (max-width: 1150px) {
        text {
            transform: scale(1.3);
        }
    }
    @media screen and (max-width: 950px) {
        text {
            transform: scale(1.6);
        }
    }
    @media screen and (max-width: 800px) {
        text {
            transform: scale(1.8); 
        }
    }
    @media screen and (max-width: 650px) {
        text {
            transform: scale(2); 
        }
        .faq {
            max-width: 315px!important;
        }
    }
    @media screen and (max-width: 520px) {
        text {
            transform: scale(2.5); 
        }
    }
    @media screen and (max-width: 450px) {
        text {
            transform: scale(2.9); 
        }
    }

    

/* Formulaire */

    .form-container {
        width: 650px;
        margin: 0 auto;
        z-index: 1;
    }
    textarea {
        resize: vertical;
    }
    form {
        margin: 50px auto;
        padding: 50px 50px 20px 50px;
        border: 1px solid var(--text-color);
        border-radius: 20px;
        background: var(--primary-color);
    }
    form input, form select, form button, textarea {
        width: 100%;
        padding: 15px;
        margin-bottom: 15px;
        background: var(--secondary-color);
        border: none;
        border-radius: 20px;
        font-family: var(--font-family);
        box-sizing: border-box;
        font-size: 1.2rem;
    }
    fieldset {
        border: 1px solid var(--text-color);
        border-radius: 20px;
        margin-bottom: 15px;
    }
    fieldset legend {
        font-weight: bold;
        text-align: left;
        font-size: 1.1rem;
    }
    .radio-group {
        display: flex;
        flex-direction: column; 
        align-items: flex-start; 
    }
    .radio-group label {
        display: flex;
        align-items: center;
        gap: 10px; 
        font-size: 16px;
    }  
    input[type="radio"] {
        margin: 0;
    }
    form label {
        display: block;
        margin-bottom: 5px;
        font-weight: bold;
        text-align: left;
        font-size: 1.1rem;
    }
    form input:focus, form select:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 5px var(--primary-color);
    }
    #message {
        display: none;
        padding: 10px;
        margin-top: 15px;
        border-radius: 5px;
        font-weight: 600;
    }
    #message.success {
        background-color: var(--primary-color);
        color: #fff;
    }
    #message.error {
        background-color: #ff6f61;
        color: #fff;
    }
    #background-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
    }
    .background-element {
        position: absolute;
        background-image: url('../images/img5-4.png');
        background-size: contain; 
        background-repeat: no-repeat;
        animation: float 20s linear infinite; 
        scale: 2;
    }
    @keyframes float {
        0% {
            transform: translateY(0) rotate(0deg);
        }
        50% {
            transform: translateY(-50px) rotate(180deg);
        }
        100% {
            transform: translateY(0) rotate(360deg); 
        }
    }
    #confirmation-message {
        text-align: center;
        margin-top: 20px;
        background: var(--primary-color);
        border: 1px solid var(--text-color);
        border-radius: 20px;
        padding: 20px
    }
    #confirmation-message>h2 {
        margin: 50px 0;
    }
    @media screen and (max-width: 800px) {
        .form-container {
            width: 550px;
        }
        form {
            padding: 35px;
        }
        .grid-container1 {
            grid-template-columns: unset!important;
        }
        .grid-container1 .grid-item {
            text-align: center!important;
            align-items: center!important;
        }
        .img11 {
            min-width: 150px!important;
            padding: 20px 0;
        }
        .img12 {
            min-width: 250px!important;
        }
    }
    @media screen and (max-width: 650px) {
        .form-container {
            width: 450px;
        }
    }
    @media screen and (max-width: 520px) {
        .form-container {
            width: 90%;
            margin-top: 30px;
        }
        form, #blog-form {
            padding: 25px;
        }
    }
 
    

/* Liste des logements */

    .accommodations {
        list-style: none;
        padding: 0;
    }
    .accommodations li {
        margin-bottom: 15px;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 5px;
        transition: all 0.3s ease;
    }
    .accommodations li:hover {
        background-color: var(--text-color);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    .accommodations a {
        display: inline-block;
        margin-top: 5px;
        color: var(--accent-color);
        font-weight: bold;
    }
    .accommodations-page h1 {
        font-size: 2.5rem;
        text-align: center;
        margin-bottom: 20px;
    } 
    .grid-container {
        display: grid;
        grid-template-columns: repeat(1, 370px);
        justify-content: center; 
        margin-bottom: 40px;
    }
    .grid-container .grid-item {
        padding: 20px;
        text-align: center;
    }
    .grid-container1 .grid-item {
        padding: 0 20px;
        text-align: center;
    }
    .grid-item p {
        margin: 0 auto!important;
    }
    .grid-container1 {
        display: grid;
        grid-template-columns: 235px 320px 235px;
        justify-content: center; 
        margin-bottom: 40px;
    }
    .grid-container1 .grid-item {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .grid-container1 .grid-item:first-child {
        text-align: right;   
        align-items: flex-end; 
    }
    .grid-container1 .grid-item:last-child {
        text-align: left;
        align-items: flex-start;
    }    
    .grid-container1 p,
    .inline-elements p {
        font-size: 1.2rem;
        padding: 0!important;
    }      
    .img5-2-1 {
        width: 4vw;
        min-width: 40px;
        max-width: 60px;
        margin: 50px 0;
        animation: swingRightLeft 2.5s ease-in-out infinite;
    }
    .img5-2-2 {
        width: 4vw;
        min-width: 40px;
        max-width: 60px;
        margin: 50px 0;
        animation: swingLeftRight 3s ease-in-out infinite;
    }
    .img9-1 {
        width: 5%; 
        min-width: 90px;
        margin: 50px 0 0 0;
    }
    @media screen and (max-width: 600px) {
        .grid-container {
            grid-template-columns: repeat(1, 270px);
        }
    }
    

/* Admin */

    .responses-container {
        text-align: center;
        width: 100%;
    }
    .table-container {
        overflow-x: auto;
        white-space: nowrap;
        margin: 20px auto;
        display: flex;
        justify-content: center;
    }
    table {
        table-layout: auto; 
        border-collapse: collapse;
    }
    th, td {
        padding: 5px;
        border: 1px solid #ddd;
        text-align: left;
        box-sizing: border-box;
        line-height: 20px;
        font-size: 1.1rem;
    }
    td > .button {
        padding : 1px 10px;
        border: none;
    }
    th {
        background-color: var(--secondary-color);
        font-weight: bold;
    } 
    tbody tr:nth-child(even) {
        background-color: #f9f9f9;
    }
    .table-container::-webkit-scrollbar {
        height: 8px; 
    }
    .table-container::-webkit-scrollbar-thumb {
        background: var(--accent-color);
        border-radius: 4px;
    }  
    .table-container::-webkit-scrollbar-thumb:hover {
        background: var(--text-color);
    }
    .total-invites-container {
        margin: 50px 0;
    }
    td .button {
        margin: 0;
    }
    #char-count {
        text-align: end;
        font-size: 1.1rem;
        transform: translateY(-22px);
    }
    #spinner {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 1000;
    }
    #spinner1 {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 50px;
        z-index: 1000;
    }
    .loader {
        border: 5px solid #f3f3f3; 
        border-top: 5px solid var(--secondary-text-color);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        animation: spin 2s linear infinite;
    }
    .loader1 {
        border: 5px solid #f3f3f3; 
        border-top: 5px solid var(--secondary-text-color);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        animation: spin 2s linear infinite;
        position: absolute;
        left: 50%;
        top: 35vh;
        z-index: 1000;
    }
    @keyframes spin {
        0% {
          transform: rotate(0deg);
        }
        100% {
          transform: rotate(360deg);
        }
    }
      



/* Blog de los novios */

    #blog-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
        gap: 20px;
        justify-content: center;
        align-items: start;
        padding: 20px; 
        margin: 0 auto;
        max-width: 1200px;
    }
    .blog-item {
        display: flex;
        flex-direction: column;
        align-items: center; 
        justify-content: center; 
        text-align: center;
        padding: 10px;
        border-radius: 8px;
    }
    .blog-item img {
        width: 100%;
        max-width: 300px;
        aspect-ratio: 1;
        object-fit: cover; 
        border-radius: 8px; 
        margin-bottom: 10px; 
    }
    .blog-item p {
        color: var(--text-color);
        line-height: 1.3;
        max-width: 300px;
        text-align: left;
        font-size: 1rem;
    }
    #blog-form {
        max-width: 650px;
    }
    #login-form {
        max-width: 275px;
    }
    .login {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    /* Likes */
    .like-container {
        text-align: center;
        width: 100%;
        display: flex;
        max-width: 300px;
        align-items: center;
        gap: 10px;
    }
    .like-container span {
        font-size: 1.1rem;
    }
    .like-button img {
        width: 25px;
        height: 25px;
        cursor: pointer;
        transition: transform 0.2s ease;
        object-fit: contain;
    }
    .like-button img:hover {
        transform: scale(1.1); 
    }
    .like-button {
        all: unset; 
        cursor: pointer; 
        height: 25px;
    }

/* 404 */
    .error {
        text-align: center;
    }
    .marginauto {
        margin: 50px auto;
    }
  
/* Footer */

    .footer {
        color: var(--text-color);
        text-align: center;
        padding: 20px 0;
        font-size: 1rem; 
        margin-top: 20px;
        background: linear-gradient(to bottom, var(--primary-color) 0%, var(--secondary-color) 100%);
        letter-spacing: normal;
        padding: 20px;
    }
    .footer p {
        padding: 0!important;
    }
    .footer a {
        text-decoration: none; 
        font-size: 1rem; 
    }
    .footer a:hover {
        color: var(--secondary-text-color); 
        text-decoration: underline; 
    }
      



/* Email blast (blog look) */
.email-blast.blog-container {
  margin: 0 auto;
}

.email-blast__form {
  max-width: 650px;
  margin: 50px auto;
  padding: 50px 50px 24px 50px;
  border: 1px solid var(--text-color);
  border-radius: 20px;
  background: var(--primary-color);
}

.email-blast__form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  text-align: left;
  font-size: 1.1rem;
}

.email-blast__form .input,
.email-blast__form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 15px;
  background: #f7f7f7;
  border: none;
  border-radius: 20px;
  font-family: var(--font-family);
  box-sizing: border-box;
}

.email-blast__editor {
  background: #fff;
  border: 1px solid var(--text-color);
  border-radius: 20px;
  overflow: hidden;
  min-height: 200px;
  margin-bottom: 15px;
}
.email-blast__editor .ql-toolbar {
  border: none;
  border-bottom: 1px solid var(--text-color);
  background: var(--primary-color);
}
.ql-toolbar.ql-snow + .ql-container.ql-snow {
    border-top: 1px solid #ccc!important;
}
.ql-toolbar.ql-snow {
    border: none!important; 
}
.email-blast__editor .ql-container {
  border: none;
  min-height: 150px;
}

.email-blast__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin: 10px 0 0;
}

.email-blast__preview {
  margin-top: 16px;
  border: 1px dashed var(--text-color);
  border-radius: 20px;
  padding: 16px;
  background: #fff;
  text-align: left;
}
.email-blast__status {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff7f7;
  color: var(--secondary-text-color);
  border: 1px solid var(--secondary-text-color);
  font-weight: 600;
  text-align: center;
}

@media screen and (max-width: 800px) {
  .email-blast__form {
    padding: 35px;
  }
}
@media screen and (max-width: 520px) {
  .email-blast__form {
    padding: 25px;
  }
}
