/* index.css - Cleaned version without calendar modal styles */
html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #ff9e3e;
    --secondary-color: #bd0000;
    --font-header: Arial, Helvetica, sans-serif;
    --font-body: Arial, sans-serif;
    --max-content-width: 1200px;
}

/* ==================== BASE STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: #000000;
    background-color: #ffffff;
    overflow-x: hidden;
}

.site-wrap {
    margin: 50px;
}

@media (min-width: 1200px) {
    .site-wrap {
        margin: 5px 7% 50px;
    }
}

/* ==================== GOOGLE TRANSLATE ==================== */
#google_translate_element {
    position: relative;
    z-index: 9999;
}

#google_translate_element select {
    background-color: #fff;
    border: 1px solid #ff9e3e;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.skiptranslate iframe,
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
#goog-gt-tt,
.goog-te-balloon-frame {
    display: none !important;
}

body {
    top: 0 !important;
    position: static !important;
}

.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
}

.goog-logo-link,
.goog-te-gadget span,
.goog-te-gadget > span > a {
    display: none !important;
}

.goog-te-gadget {
    color: transparent !important;
}

.goog-te-gadget .goog-te-combo {
    margin: 0px !important;
}

#google_translate_element .goog-te-gadget-simple {
    background-color: transparent !important;
    border: none !important;
}

/* ==================== HEADER STYLES ==================== */
.site-header {
    padding: 10px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-family: 'Ysabeau', serif;
    font-weight: 700;
    font-size: 28px;
    color: #111;
}

.logo-icon {
    width: 48px;
    height: 48px;
}

.main-nav {
    display: flex;
    gap: 40px;
    flex: 1;
    justify-content: center;
    margin-top: 20px;
}

.nav-link {
    font-size: 16px;
    text-decoration: none;
    color: #222;
    letter-spacing: 0.02em;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
}

.small-link {
    font-size: 15px;
    color: #000;
    text-decoration: none;
}

.lang-btn {
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    position: relative;
    top: 0; /* Valeur par défaut */
}
@media (max-width: 768px) {
    .lang-btn {
        font-size: 25px;
        top: -9px; /* Décalage pour petits écrans */
    }
}

@media (max-width: 480px) {
    .lang-btn {
        font-size: 25px;
        top: -9px; /* Décalage pour très petits écrans */
    }
}
/* ==================== MOBILE MENU (OFF-CANVAS) ==================== */
.hamburger-btn {
    display: none;
    border: none;
    background: none;
    font-size: 2em;
    cursor: pointer;
    z-index: 1002;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease-in-out;
    z-index: 1001;
    padding: 20px;
}

.main-nav-mobile {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 60px;
}

.main-nav-mobile .nav-link {
    font-size: 1.1em;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.mobile-menu-overlay.open {
    right: 0;
}

/* ==================== HERO SECTION ==================== */
.hero {
    margin-top: 20px;
    padding: 60px 0 80px 0;
}

.hero-inner {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    justify-content: space-between;
}

.hero-title {
    font-family: var(--font-header);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    color: #000;
    text-align: justify;
}

@media (min-width: 1200px) {
    .hero-title.fn {
        width: 49%;
    }
}

.hero-subtitle {
    font-size: 2.4rem;
    font-weight: 500;
    line-height: inherit;
    color: #000;
    letter-spacing: 2px;
    word-spacing: 1px;
    text-align: center;
}

.hero-subtitle.hero-subtitle1 {
    font-size: 2.4rem !important;
    font-weight: 700;
    line-height: inherit;
    color: #000;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

@media (min-width: 1440px) {
    .hero-subtitle {
        font-size: 2.8rem;
    }
}

.hero-title .text-red {
    line-height: 0.8;
    display: inline-block;
}

.text-red {
    color: var(--secondary-color) !important;
    font-weight: bold; /* rend le texte en gras */
}
.text-red2 {
    color: var(--secondary-color) !important;
    font-weight: bold;      /* texte en gras */
    font-size: 30px;        /* taille du texte plus grande */
}
 

.lead {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.hero-p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: justify;
}

.hero-actions {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* ==================== BUTTONS STYLES ==================== */
.boz-btn-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.boz-btn {
    display: inline-block;
    width: 300px;
    height: 50px;
    line-height: 50px;
    padding: 0;
    font-weight: 700;
    font-size: 18px;
    border: 3px solid var(--primary-color);
    background: white;
    color: var(--dark);
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    box-shadow: 5px 5px 0px #000000;
    transition: all 0.2s ease;
    cursor: pointer;
}
.boz-btn-v {
    display: inline-block;
    padding: 2px 24px;
    height: 50px;
    line-height: 50px;
   
    font-weight: 700;
    font-size: 18px;
    border: 3px solid var(--primary-color);
    background: white;
    color: var(--dark);
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    box-shadow: 5px 5px 0px #000000;
    transition: all 0.2s ease;
    cursor: pointer;
}
.boz-btn-subscription {
    display: block;
    margin: 0 auto;
    margin-bottom: 6px !important;
    width: 200px;
    height: 40px;
    line-height: 30px;
    padding: 0;
    font-weight: 700;
    font-size: 18px;
    border: 3px solid var(--primary-color);
    background: white;
    color: var(--dark);
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    box-shadow: 5px 5px 0px #000000;
    transition: all 0.2s ease;
    cursor: pointer;
}

.boz-btn-tarifs {
    display: inline-block;
    margin-left: 3%;
    width: 300px;
    height: 50px;
    line-height: 50px;
    padding: 0;
    font-weight: 700;
    font-size: 18px;
    border: 3px solid var(--primary-color);
    background: white;
    color: var(--dark);
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    box-shadow: 5px 5px 0px #000000;
    transition: all 0.2s ease;
    cursor: pointer;
}

.boz-btn,
.boz-btn-v,
.boz-btn:hover,
.boz-btn:focus,
.boz-btn:active,
.boz-btn-video,
.boz-btn-video:hover,
.boz-btn-video:focus,
.boz-btn-video:active {
    text-decoration: none !important;
}

.boz-btn:hover,.boz-btn-v {
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0px #000000;
}

.boz-btn-video {
    display: inline-block;
    width: 300px;
    height: 50px;
    font-weight: 700;
    font-size: 18px;
    line-height: 50px;
    text-align: center;
    padding: 0;
    margin: 0 auto;
    border: 3px solid var(--primary-color);
    border-radius: 8px;
    background: white;
    color: var(--dark);
    box-shadow: 5px 5px 0px #000;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.boz-btn-video:hover {
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0px #000;
}

.boz-btn-subscription:hover {
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0px #000;
}

.btn {
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    padding: 7px 30px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
}

.btn.primary {
    background-image: url('../images/B_video.jpg');
    background-size: auto;
    background-repeat: no-repeat;
    background-position: center;
    color: transparent;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    min-width: 225px;
    height: 50px;
}

.btn.primary span {
    display: none !important;
}

.btn.secondary {
    background-image: url('../images/demo.png');
    background-size: auto;
    background-repeat: no-repeat;
    background-position: center;
    color: transparent;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    min-width: 302px;
    height: 50px;
}

.btn.secondary span {
    display: none !important;
}

.btn.tertiary {
    background-image: url('../images/B_Formulaire de contact.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    color: transparent;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    min-width: 260px;
    height: 60px;
}

.btn.tertiary span {
    display: none !important;
}

/* ==================== INFO BOX ==================== */
.info {
    margin: 30px 0;
}

.info-box {
    border: 2px solid #3a3a3a;
    padding: 6px 22px;
    font-size: 1.6rem;
    line-height: 1.6;
    background: #fff;
}

/* ==================== BLOCKS ==================== */
.block {
    margin: 28px 0;
    border-top: 0;
}

.block-inner {
    display: flex;
    gap: 40px;
    padding: 24px;
    border: 2px solid #3a3a3a;
    align-items: center;
}

.block .row {
    border: 2px solid #3a3a3a;
    padding: 22px 0;
    font-size: 18px;
}

.block-inner.reverse {
    flex-direction: row-reverse;
}

.block-text {
    font-size: 1.3rem !important;
    line-height: inherit;
    text-align: justify;
}

.block.container-fluid .row {
    padding: 30px 0;
}

.block.large-block .row {
    padding: 10px 0 10px !important;
}

.row .block-right,
.row .block-left {
    justify-content: center;
    display: flex;
    flex-direction: column;
}

/* ==================== FOOTER ==================== */
.site-footer {
    margin-top: 50px;
    padding: 40px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.logo-small {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-center {
    flex: 1;
    text-align: center;
    display: none !important;
}

.footer-right {
    display: flex;
    gap: 90px;
    align-items: center;
    margin-top: 52px;
}

.footer-right a {
    text-decoration: none;
    color: #000;
}

.footer-right a:hover {
    color: #ff9e3e;
}

/* ==================== CTA BOTTOM ==================== */
.cta-bottom {
    margin: 26px 0;
    text-align: center;
}

.cta-inner {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ==================== FONCTIONS PAGE ==================== */
.fonctions-hero {
    padding: 60px 0 40px;
}

.fonctions-hero h1 {
    font-family: var(--font-header);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.fonctions-hero p {
    font-size: 1.5rem;
    line-height: 1.6;
}

.fonction-section {
    margin: 60px 0;
    padding: 40px 0;
}

.fonction-title {
    font-size: 34px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #000000;
    position: relative;
    padding-left: 40px;
}

.fonction-title:before {
    content: "";
    background-size: contain;
    font-size: 15px;
    font-weight: 700;
    position: absolute;
    display: flex;
    width: 40px;
    height: 40px;
    z-index: 1;
    text-align: center;
    justify-content: center;
    align-items: center;
    top: 50%;
    transform: translateY(-50%);
    left: -10px;
}

.fonction-title1 {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #000000;
    position: relative;
    padding-right: 30px;
    text-align: right;
}

.fonction-title1:before {
    content: "";
    background-size: contain;
    font-size: 15px;
    font-weight: 700;
    position: absolute;
    display: flex;
    width: 40px;
    height: 40px;
    z-index: 1;
    text-align: center;
    justify-content: center;
    align-items: center;
    top: 50%;
    transform: translateY(-50%);
    right: -18px;
}

.fonction-content {
    font-size: 1.4rem;
    line-height: 1.7;
    margin-bottom: 25px;
    text-align: justify;


}

.fonction-actions {
    display: flex;
    gap: 15px;
    margin-top: 50px;
    justify-content: center;
}

.liste1 {
    list-style: none;
    padding: 0 !important;
}

.liste2,
.liste2 li {
    position: relative;
    list-style: none;
}

.liste2 li:before {
    content: "";
    background-size: contain;
    font-size: 15px;
    font-weight: 700;
    position: absolute;
    display: flex;
    width: 25px;
    height: 25px;
    z-index: 1;
    text-align: center;
    justify-content: center;
    align-items: center;
    top: 45%;
    transform: translateY(-50%);
    left: -35px;
}

.liste2 li {
    font-size: 18px;
    margin-bottom: 10px;
}

.numbered-list {
    counter-reset: item;
    margin-left: 20px;
}

.numbered-list li {
    font-size: 1.4rem;
    margin-bottom: 15px;
    list-style-type: none;
    position: relative;
    padding-left: 30px;
    text-align: justify;
}

.numbered-list li:before {
    content: counter(item);
    counter-increment: item;
    position: absolute;
    left: -24px;
    font-weight: bold;
    color: #b30001;
    top: -5px;
    font-size: 4rem;
}

/* ==================== UTILITY CLASSES ==================== */
.center {
    text-align: center !important;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 0 auto;
}

.left {
    text-align: left;
    margin: 0 auto 0 0;
    font-size: 15px !important;
}

.right {
    text-align: center;
    margin: 0 0 0 auto;
}

.block {
    display: block !important;
}

.inline-block {
    display: inline-block !important;
}

.gras {
    font-weight: bold !important;
}

.separation {
    width: fit-content;
}

.blocPadd {
    padding: 40px 0 0;
}

.row-interne {
    border: none !important;
}

.mt-20 {
    margin-top: 20px !important;
}

.mt-10 {
    margin-top: 10px !important;
}

.mt-0 {
    margin-top: 0px !important;
}

.mb-0 {
    margin-bottom: 0px !important;
}

.mb-10 {
    margin-bottom: 10px !important;
}

.pt-0 {
    padding-top: 0px !important;
}

.pb-0 {
    padding-bottom: 0px !important;
}

.mr-10 {
    margin-right: 11px !important;
}

.btn-vid {
    margin-left: 5px !important;
    margin-top: -10px;
}

.fn4 {
    justify-content: space-around !important;
}

.block-text.texte1,
.fonction-content.liste2 {
    font-size: 20px !important;
    line-height: inherit;
}

.container-fluid {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== LOGIN MODAL (AUTH MODAL) ==================== */
.modal-overlay#loginModal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.75) !important;
    z-index: 10000 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    right: auto !important;
}

.modal-overlay#loginModal.hidden {
    display: none !important;
}

.modal-overlay#loginModal:not(.hidden) {
    display: flex !important;
    animation: fadeIn 0.3s ease;
}

.modal-overlay#loginModal .modal-content-wrapper {
    position: relative;
    max-width: 750px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUpAuth 0.3s ease;
    margin: 0 auto;
}

@keyframes slideUpAuth {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-overlay#loginModal .close-modal-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 28px;
    cursor: pointer;
    z-index: 10001;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.modal-overlay#loginModal .close-modal-btn:hover {
    background: white;
    color: #333;
    transform: scale(1.1);
}

.modal-overlay#loginModal .auth-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-overlay#loginModal .header {
    text-align: center;
    width: 100%;
    margin-bottom: 30px;
}

.modal-overlay#loginModal #loginForm,
.modal-overlay#loginModal #signupForm,
.modal-overlay#loginModal #verifyForm {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.modal-overlay#loginModal .form-group {
    width: 100%;
    text-align: left;
}

.modal-overlay#loginModal .auth-btn,
.modal-overlay#loginModal .google-btn {
    width: 100%;
}

.modal-overlay#loginModal .divider {
    width: 100%;
    text-align: center;
}

.modal-overlay#loginModal .toggle-form {
    width: 100%;
    text-align: center;
}

.modal-overlay#loginModal .modal-content-wrapper::-webkit-scrollbar {
    width: 10px;
}

.modal-overlay#loginModal .modal-content-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-overlay#loginModal .modal-content-wrapper::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.modal-overlay#loginModal .modal-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* ==================== MEDIA QUERIES ==================== */

@media (min-width: 1440px) {
    .hero-subtitle {
        font-size: 2.8rem;
    }
}

@media (max-width: 1439px) and (min-width: 1200px) {
    .hero-title {
        font-size: 3.6rem;
        margin-top: -68px;
    }
}

@media (max-width: 1199px) and (min-width: 992px) {
    .hero-title {
        font-size: 3.69rem;
    }

    .site-footer .footer-inner {
        display: grid !important;
        grid-template-columns: 25% 25% 50%;
        place-items: center;
    }

    .site-footer .footer-inner .footer-left .logo-small img {
        width: 90%;
    }

    .site-footer .footer-inner .footer-right a {
        font-size: 12px !important;
    }
}

@media (max-width: 1040px) and (min-width: 992px) {
    .hero-subtitle.hero-subtitle1 {
        font-size: 2.2rem !important;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 4rem;
        text-align: left;
        margin-bottom: 40px;
    }

    .row .block-right .img,
    .row .block-left .img {
        padding: 25px;
    }

    .block-left img,
    .block-right img {
        margin: 0 auto;
    }
}

@media (max-width: 991px) {
    img {
        margin: 0 auto;
        padding: 15px;
        width: fit-content;
    }

    .block-text,
    .info-box,
    .hero-p {
        font-size: 1.25rem !important;
        line-height: inherit;
        text-align: justify;
    }

    .hamburger-btn {
        display: block;
        margin: 0 0 0 auto;
    }

    .main-nav {
        display: none;
    }

    .header-right .small-link {
        display: none;
    }

    .site-header .header-inner {
        justify-content: space-between;
    }

    .site-footer .footer-inner {
        display: flex !important;
        gap: 10px;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .footer-right {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .hero-inner {
        flex-direction: column;
        gap: 30px;
        align-items: stretch;
    }

    .hero-left,
    .hero-right {
        width: 100%;
    }

    .block-inner,
    .block-inner.reverse {
        flex-direction: column;
    }

    .block-left,
    .block-right {
        width: 100%;
    }

    .block-right {
        justify-content: center;
    }

    .main-nav {
        display: none;
    }

    .footer-inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-center {
        order: 3;
    }

    .footer-right {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .fonctions-hero h1 {
        font-size: 2.5rem;
    }

    .fonction-title {
        font-size: 28px;
    }

    .fonction-content {
        font-size: 1.2rem;
    }

    .fonction-actions {
        flex-direction: column;
    }

    .btn.tertiary {
        min-width: 100%;
        margin-top: 10px;
    }

    .modal-overlay#loginModal .modal-content-wrapper {
        max-width: 95% !important;
        width: 95% !important;
        max-height: 85vh !important;
    }

    .modal-overlay#loginModal .auth-container {
        padding: 30px 25px !important;
    }
}

@media (max-width: 767px) {
    .block-left.inline-block img,
    .inline-block img {
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain;
        margin: 10px auto !important;
        display: block !important;
    }

    .inline-block {
        display: block !important;
        width: 100% !important;
        text-align: center;
        margin-bottom: 15px;
    }

    img[src*=".gif"] {
        max-width: 150px !important;
        width: auto !important;
        height: auto !important;
        margin: 15px auto !important;
        display: block !important;
    }

    .block-left img,
    .block-right img {
        width: inherit !important;
        object-fit: contain;
    }

    .hero-title {
        font-size: 3rem !important;
    }

    .block-text,
    .info-box {
        font-size: 1.25rem !important;
        line-height: normal;
    }

    .hero-actions,
    .cta-inner {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .fonction-title,
    .fonction-title1 {
        font-size: 25px;
    }

    .block-text,
    .info-box {
        font-size: 1.2rem !important;
        line-height: normal;
    }

    .fn4.fonction-actions {
        align-items: center;
        margin-bottom: 25px;
    }

    .hero-subtitle.hero-subtitle1 {
        font-size: 1.75rem !important;
    }

    #btn-tarifs {
        margin: 30px 0 !important;
    }
}

@media (max-width: 480px) {
    .modal-overlay#loginModal .modal-content-wrapper {
        max-width: 98% !important;
        width: 98% !important;
        max-height: 90vh !important;
        border-radius: 12px !important;
    }

    .modal-overlay#loginModal .auth-container {
        padding: 25px 20px !important;
    }

    .modal-overlay#loginModal .close-modal-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 24px !important;
        top: 8px !important;
        right: 8px !important;
    }

    .modal-overlay#loginModal #loginForm,
    .modal-overlay#loginModal #signupForm {
        max-width: 100% !important;
    }
}

@media (max-width: 399px) {
    .site-wrap {
        margin: 50px 5px;
        width: min-content;
        overflow-x: hidden;
    }
}


/*=================== LISTE DÉROULANTE DES LANGUES ==================== */ 
.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 200px;
    max-height: 400px;
    overflow-y: auto;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lang-item {
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.lang-item:last-child {
    border-bottom: none;
}

.lang-item:hover {
    background-color: #fff3e6;
}

.lang-item.active {
    background-color: #faa046;
    color: white;
}

.lang-item.active .lang-code,
.lang-item.active .lang-name {
    color: white;
}

.lang-code {
    font-weight: bold;
    font-size: 12px;
    color: #666;
    min-width: 30px;
}

.lang-name {
    font-size: 14px;
    color: #333;
    flex: 1;
}

/* Rendre le bouton de langue positionné */
.header-right {
    position: relative;
}

/* Scrollbar personnalisée pour la liste */
.lang-dropdown::-webkit-scrollbar {
    width: 4px;
}

.lang-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.lang-dropdown::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.lang-dropdown::-webkit-scrollbar-thumb:hover {
    background: #000;
}

/* Responsive */
@media (max-width: 768px) {
    .lang-dropdown {
        right: -10px;
        min-width: 180px;
    }
    
    .lang-item {
        padding: 10px 14px;
    }
}

@media (max-width: 480px) {
    .lang-dropdown {
        position: fixed;
        top: 70px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-height: 300px;
    }
}


/* ==================== TOOLTIPS HEADER (NOUVEAU SYSTÈME) ==================== */

/* Supprimez ou commentez l'ancien code tooltip si vous en avez un */

.small-link {
    position: relative;
    display: inline-block;
}

.header-tooltip {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ed5252 0%, #ed5252 100%);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 10001;
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Flèche du tooltip */
.header-tooltip::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid #333;
}

/* Affichage au survol */
.small-link:hover .header-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(3px);
}

/* Animation d'apparition automatique */
.header-tooltip.auto-show {
    opacity: 1;
    visibility: visible;
    animation: tooltipPulse 6s ease-in-out;
}

@keyframes tooltipPulse {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-5px) scale(0.9);
    }
    10% {
        opacity: 1;
        transform: translateX(-50%) translateY(3px) scale(1.05);
    }
    15% {
        transform: translateX(-50%) translateY(3px) scale(1);
    }
    85% {
        opacity: 1;
        transform: translateX(-50%) translateY(3px) scale(1);
    }


}

/* Animation de disparition */
.header-tooltip.fade-out {
    animation: tooltipFadeOut 0.5s ease-out forwards;
}

@keyframes tooltipFadeOut {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(3px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-8px) scale(0.9);
        visibility: hidden;
    }
}

/* ==================== RESPONSIVE TOOLTIPS ==================== */
@media (max-width: 768px) {
    .header-tooltip {
        font-size: 0.75rem;
        padding: 8px 12px;
        bottom: -45px;
        max-width: 200px;
        white-space: normal;
        text-align: center;
    }
    
    .header-tooltip::before {
        border-width: 6px;
    }
}

@media (max-width: 480px) {
    .header-tooltip {
        font-size: 0.7rem;
        padding: 6px 10px;
        bottom: -42px;
        max-width: 180px;
    }
    
    .header-tooltip::before {
        border-width: 5px;
    }
}


/* Style pour le conteneur du parchemin */
.scroll-container {
    position: relative;
    width: 370px;
    height: 436px;
    margin: 0 auto;
}

.scroll-background {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.scroll-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%;
}

.scroll-text p {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 28px;
    line-height: 1.4;
    color: #2c2416;
    margin: 0;
    padding: 0;
        font-weight: bold; /* ← texte en gras */

    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .scroll-container {
        width: 100%;
        max-width: 370px;
        height: auto;
        aspect-ratio: 370/436;
    }
    .scroll-text p {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .scroll-text p {
        font-size: 20px;
    }
}