/* IMPORTATION DES POLICES */
@font-face {
    font-family: 'Montserrat';
    src: url('/assets/fonts/Montserrat/Montserrat-Regular.ttf') format('truetype'),
        url('/assets/fonts/Montserrat/Montserrat-Regular.woff2') format('woff2'),
        url('/assets/fonts/Montserrat/Montserrat-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/assets/fonts/Montserrat/Montserrat-Medium.ttf') format('truetype'),
        url('/assets/fonts/Montserrat/Montserrat-Medium.woff2') format('woff2'),
        url('/assets/fonts/Montserrat/Montserrat-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/assets/fonts/Montserrat/Montserrat-MediumItalic.ttf') format('truetype'),
        url('/assets/fonts/Montserrat/Montserrat-MediumItalic.woff2') format('woff2'),
        url('/assets/fonts/Montserrat/Montserrat-MediumItalic.woff') format('woff');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/assets/fonts/Montserrat/Montserrat-SemiBold.ttf') format('truetype'),
        url('/assets/fonts/Montserrat/Montserrat-SemiBold.woff2') format('woff2'),
        url('/assets/fonts/Montserrat/Montserrat-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/assets/fonts/Montserrat/Montserrat-SemiBoldItalic.ttf') format('truetype'),
        url('/assets/fonts/Montserrat/Montserrat-SemiBoldItalic.woff2') format('woff2'),
        url('/assets/fonts/Montserrat/Montserrat-SemiBoldItalic.woff') format('woff');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/assets/fonts/Montserrat/Montserrat-Bold.ttf') format('truetype'),
        url('/assets/fonts/Montserrat/Montserrat-Bold.woff2') format('woff2'),
        url('/assets/fonts/Montserrat/Montserrat-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/assets/fonts/Montserrat/Montserrat-BoldItalic.ttf') format('truetype'),
        url('/assets/fonts/Montserrat/Montserrat-BoldItalic.woff2') format('woff2'),
        url('/assets/fonts/Montserrat/Montserrat-BoldItalic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

/* VARIABLES CSS */
:root {
    --primary-color: #fa820e;
    --secondary-color: #ffae60;
}

/* RESET DE BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    backface-visibility: hidden;
    line-height: 25px;
}

html,
body {
    height: 100%;
    background-color: #fff;
    color: #2f2c35;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

h2 {
    margin-bottom: 10px;
    font-size: clamp(25px, 1.8vw, 26px);
}

/* CONTENEUR GÉNÉRAL */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* CONTENEUR LINEAR BACKGROUND */
.container-image-text-wrapper {
    margin: 0 auto;
    background: linear-gradient(145deg, var(--primary-color) 25%, var(--secondary-color) 75%);
}

.primary-color {
    color: var(--primary-color) !important;
}

/* HEADER PC */
.header-pc {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: transparent;
    z-index: 999;
    border-bottom: none;
    box-shadow: none;
    transition: all 0.1s ease;
    text-align: center;
}

.header-pc.scrolled {
    background: #fff;
    height: 80px;
    border-bottom: 1px solid #ddd;
    box-shadow: 0px 1px 6px #ccc;
}

.header-pc .nav.container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(10px, 4vw, 60px);
}

/* LOGO */
.logo-img {
    width: 28px !important;
}

.logo {
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    color: var(--primary-color) !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    text-decoration: none !important;
    transition: 100ms !important;
}

.logo:hover {
    cursor: pointer !important;
    filter: opacity(0.6) !important;
}

/* NAVIGATION */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    height: 100%;
}

.nav-links li {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links li a {
    font-size: 1rem;
    color: #2f2c35;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0 15px;
    transition: color 100ms ease;
    font-weight: 500;
    height: 100%;
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.nav-links li .underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--primary-color);
    transform-origin: bottom;
    transition: height 0.1s ease-in-out;
}

.nav-links li:hover .underline {
    height: 3px;
}

/* BOUTON CTA */
.btn#chat-btn-pc {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 5cm;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
    height: auto;
    transition: 200ms;
}

.btn#chat-btn-pc:hover {
    opacity: .7;
}

.box {
    padding: 0 clamp(15px, 4vw, 60px);
}

#chat-btn-pc {
    margin-left: 30px !important;
}

/* HEADER MOBILE */
.header-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0px;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #ddd;
}

.header-mobile.scrolled {
    background: #fff;
    border-bottom: 1px solid #ddd;
    box-shadow: 0px 1px 6px #ccc;
}

.header-mobile .nav.container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-mobile .logo:hover {
    color: #c96709;
    fill: #c96709;
}

/* MENU MOBILE */
#header-menu {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: #fff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

#header-menu.toggler-element-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    border-bottom: 1px solid #ddd;
}

#header-menu .header-menu-trigger {
    text-align: center;
    color: #2f2c35;
    font-size: 1rem;
    text-decoration: none;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    transition: background-color 0.2s ease, color 0.2s ease;
}

#header-menu .header-menu-trigger:last-child {
    border-bottom: none;
}

#header-menu .header-menu-trigger:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
}

/* BOUTON MENU TRIGGER */
#menu-trigger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}

#menu-trigger svg {
    height: 44px;
    fill: #2f2c35;
}

#menu-trigger-menu-icon {
    display: block;
}

#menu-trigger-cross-icon {
    display: none;
}

#menu-trigger.header-menu-actived #menu-trigger-menu-icon {
    display: none;
}

#menu-trigger.header-menu-actived #menu-trigger-cross-icon {
    display: block;
}

/* OVERLAY MOBILE */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 9997;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* BOUTON GÉNÉRAL */
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 11px 19px !important;
    border-radius: 50px;
    font-weight: bold;
    transition: 200ms;
    text-decoration: none;
}

.btn:hover {
    opacity: .7;
}

/* SECTION HERO (APPLICATIONS) */
.hero {
    color: #2f2c35;
    margin-top: 120px;
}

.apps-grid {
    display: flex;
    gap: 20px;
    justify-items: center;
    max-width: 700px;
    margin: auto;
    justify-content: center;
}

.app-item {
    position: relative;
    width: 100%;
    max-width: 250px;
}

.app-item img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    transition: filter 0.3s ease;
}

.app-item:hover img {
    filter: brightness(0.7);
}

/* SECTION IMAGE-TEXT-STYLE (À PROPOS) */
.image-text-style {
    background-color: #fff;
    color: #2f2c35;
}

.image-text-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 20px 0px;
    max-width: 1000px;
    margin: auto;
}

.image-box {
    flex: 1;
    max-width: 40%;
}

.image-box img {
    width: 100%;
    height: auto;
    border-radius: 15%;
}

.text-box {
    flex: 1;
    max-width: 60%;
    padding: 10px 20px;
}

.text-box>* {
    color: #fff !important;
}

.text-box p {
    line-height: 1.5;
    margin-bottom: 20px;
    color: #555;
}

.img-image-text-style {
    justify-content: center;
    display: flex;
    margin: auto;
    max-width: 250px;
}

/* SECTION FAQ */
.faq {
    background-color: #fff;
    color: #2f2c35;
}

.faq h3.section-title {
    margin-top: 30px;
    margin-bottom: 30px;
}

/* SECTION CONTACT */
.contact-section {
    background-color: #fff;
    color: #2f2c35;
    text-align: center;
}

.contact-links {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}

.contact-links a {
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.1s ease;
}

.contact-links a:hover {
    color: #c96709;
}

/* SECTION TITRE PRINCIPAL */
.main-title {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #2f2c35;
    margin-top: 60px;
}

.main-title-overlay {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: clamp(5rem, 9vw, 7rem);
    padding-bottom: clamp(3rem, 5vw, 4rem);
}

.main-title-content {
    z-index: 2;
}

.main-title-h1 {
    font-size: 2rem;
    color: var(--primary-color);
}

/* SECTION PAGES LÉGALES */
.legal-section {
    padding: 50px 20px;
    line-height: 1.6;
    background-color: #fff;
    color: #2f2c35;
}

.legal-section h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
    font-weight: bold;
}

.legal-section h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
    font-weight: bold;
}


.legal-section p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #555;
}

.legal-section ul {
    list-style: none;
    padding-left: 40px;
    margin-bottom: 20px;
}

.legal-section ul li {
    position: relative;
    padding-left: 20px;
    font-size: 1rem;
    margin-bottom: 10px;
}

.legal-section ul li::before {
    content: "•";
    color: var(--primary-color);
    font-size: 3.2em;
    position: absolute;
    left: -7px;
    top: -32px;
}

.legal-section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-section a:hover {
    text-decoration: underline;
    color: #c96709;
}

/* FOOTER */
.footer {
    background-color: #F9FAFF;
    color: #2f2c35;
    border-top: 1px solid #ddd;
    padding-top: 30px;
}

.footer-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-logo-contact,
.footer-links,
.footer-legal,
.footer-about {
    display: flex;
    flex-direction: column;
    flex: 25%;
    margin: 0 auto;
    text-align: left;
}

.footer-logo-contact>*,
.footer-links>*,
.footer-legal>*,
.footer-about>* {
    width: fit-content;
}

.footer-links h4,
.footer-legal h4,
.footer-about h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #6E6E73;
}

.footer-logo-contact a,
.footer-links a,
.footer-legal a {
    color: #6e6e73;
    transition: color 0.1s ease;
    margin-top: 6px;
    margin-bottom: 5px;
}

.footer-logo-contact a:hover,
.footer-links a:hover,
.footer-legal a:hover {
    color: var(--primary-color);
}

.footer-about p {
    line-height: 1.5;
    color: #555;
}

.footer-bottom {
    text-align: center;
    margin: 45px 0px 30px 0px;
    color: #888;
}

.contact-links-footer-1 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-links-footer-1:hover path {
    fill: var(--primary-color);
    transition: fill 0.1s ease;
}

.contact-links-footer-2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-links-footer-2:hover path {
    fill: var(--primary-color);
    transition: fill 0.1s ease;
}

.footer-links-content,
.footer-legal-content {
    display: flex;
    flex-direction: column;
}

.footer-box-span {
    font-weight: 600;
    color: #6E6E73 !important;
    font-size: 18px;
    margin-bottom: 6px;
    display: flex;
}

.contact-links-footer-1>a,
.contact-links-footer-2>a {
    display: flex;
    align-items: center;
}

.contact-links-footer-1>a {
    gap: 6px;
}

/* Styles ajoutés pour l'accordéon sur mobile */
.footer-toggle-btn {
    display: none;
    /* Caché sur desktop */
    background: none;
    border: none;
    font-weight: 500;
    color: #6E6E73;
    font-size: 18px;
    text-align: left;
    padding: 10px 0;
    cursor: pointer;
}

.footer-toggle-content {
    transition: height 0.2s ease;
}

/* PREMAIN */
.svg-shape {
    position: absolute;
}

/* TITRES DE SECTION */
.section-title {
    margin-bottom: 30px;
    text-align: center;
}

/* MEDIA QUERIES */
@media screen and (min-width: 769px) {
    .header-pc {
        display: block;
    }

    .header-mobile {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .header-pc {
        display: none;
    }

    .header-mobile {
        display: flex;
    }

    #chat-btn-mobile,
    #menu-trigger {
        display: inline-flex;
    }

    #chat-btn-mobile {
        margin-left: auto;
        margin-right: 20px;
    }

    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .image-text-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .image-box,
    .text-box {
        max-width: 100%;
    }

    .footer-wrapper {
        flex-direction: column;
        gap: 0px;
        text-align: center;
    }

    .footer-links ul,
    .footer-legal ul {
        text-align: left;
        margin: 0 auto;
    }

    .legal-section {
        padding: 30px 10px;
    }

    .legal-section h2 {
        font-size: 1.5rem;
    }

    .legal-section p {
        font-size: 0.95rem;
    }

    /* Styles footer mobile */
    .footer-links,
    .footer-legal,
    .footer-about {
        width: 100%;
        border-top: 1px solid #ddd;
    }

    .footer-toggle-btn {
        display: flex;
        /* Visible sur mobile */
        padding: 10px clamp(10px, 4vw, 60px) !important;
        min-width: 100%;
        align-items: center;
        /* Optionnel : pour centrer l'icône verticalement */
    }

    .footer-toggle-btn #svg_9378_12 {
        transition: transform 0.1s ease;
        /* Transition pour la rotation */
    }

    .footer-toggle-btn.active #svg_9378_12 {
        transform: rotate(180deg);
        /* Rotation de 180° quand actif */
    }

    .footer-box-span {
        display: none;
        /* Caché sur mobile */
    }

    .footer-toggle-content {
        height: 0;
        overflow: hidden;
        transition: height 0.2s ease;
        /* Ajoute la transition ici directement */
    }

    .footer-toggle-btn.active+.footer-box-span+.footer-toggle-content {
        height: auto;
        /* Ouvre quand actif */
    }

    .footer>.container {
        padding: 0px !important;
    }

    .footer-logo-contact {
        margin: auto auto 20px auto !important;
    }

    .footer-logo-contact>a {
        margin: auto auto 10px auto;
    }

    #svg_9378_12 {
        margin: auto 0 auto auto;
    }

    .footer-toggle-content {
        padding: 0 clamp(10px, 4vw, 60px) !important;
    }

    .footer-bottom {
        margin: 5px auto 25px 0px;
    }
}

/* FAQ Styles */
.faq-question-container {
    box-shadow: 0px 1px 3px 1px #00000033;
    border-radius: 10px;
    overflow: hidden;
    max-width: 800px;
    margin: 20px auto auto auto;
}

.faq-question {
    width: 100%;
    color: #393939;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background-color: #fff;
    cursor: pointer;
    transition: 200ms;
    border: none;
}

.faq-question svg {
    height: 17px;
}

.faq-plus {
    margin-left: auto;
    opacity: 1;
    transition: .1s;
    padding-left: 7px;
    display: flex;
}

.faq-menos {
    margin-left: auto;
    opacity: 0;
    position: absolute;
    right: 17px;
    transition: .1s;
    display: flex;
}

.faq-trigger-actived .faq-question {
    background: linear-gradient(162deg, var(--primary-color), var(--secondary-color));
    color: #fff;
}

.faq-trigger-actived .faq-plus {
    opacity: 0;
}

.faq-trigger-actived .faq-menos {
    opacity: 1;
}

.faq-answer {
    height: 0;
    overflow: hidden;
    transition: 200ms;
    background-color: #fff;
}

.faq-answer p {
    margin: 14px 16px;
}

.app-name {
    display: flex;
    justify-content: center;
    text-align: center;
}

/* Ajustement natif des ancres avec scroll-margin-top */
#apps,
#about,
#faq,
#contact {
    scroll-margin-top: 120px;
    /* Ajuste le point de scroll pour desktop (header 100px + marge) */
}

/* Ajustement spécifique pour mobile */
@media screen and (max-width: 768px) {

    #apps,
    #about,
    #faq,
    #contact {
        scroll-margin-top: 80px;
        /* Ajuste pour mobile (header 60px + marge) */
    }
}

.privacy-policy-app {
    border-left: none !important;
}

.screenshots-section {
    background-color: #fff;
}

.screenshots-section .app-item img {
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.inherit-legal-section {
    padding-bottom: 0px !important;
    padding-top: 0px !important;
}

/* Overlay pour le plein écran */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    z-index: 1000;
}

.fullscreen-overlay.active {
    opacity: 1;
    visibility: visible;
}

.fullscreen-content {
    position: relative;
    max-width: 90%;
    max-height: 80vh;
}

#fullscreen-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    transition: transform 0.2s ease;
    border-radius: 20px !important;
}

.close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    /* Assumes primary-color is defined in your CSS */
    color: white;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease;
}

.close-btn:hover {
    background: #d9534f;
    /* Couleur au survol pour feedback */
}

/* Style des captures d’écran */
.screenshots-section {
    background-color: #fff;
}

.screenshot {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.app-description {
    padding: 0px 15px 30px;
}

.error-section {
    margin: auto;
}

.error-content-p {
    margin: 20px 0px;
}

.box-language {
    border-radius: 15px;
    box-shadow: 0px 1px 6px #ccc;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    text-align: center;
    transition: 200ms;
}

.box-language:hover {
    opacity: .7;
}

.languages-grid {
    margin: auto;
    display: flex;
    justify-content: center;
    gap: 50px;
}

.language-name {
    font-size: 20px;
    font-weight: 500;
}

.flag-emoji {
    font-size: 30px;
}

#language {
    margin-top: 20%;
}

.error-content>a {
    margin: auto;
    display: flex;
    width: fit-content;
}

.footer-logo-contact>.logo {
    margin-top: -2px !important;
}


/* Styles pour la FAQ */
.faq-question {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 15px;
    border: none;
    cursor: pointer;
}

.faq-plus,
.faq-minus {
    position: absolute;
    right: 15px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.faq-plus {
    opacity: 1;
}

.faq-minus {
    opacity: 0;
}

.faq-question.active .faq-plus {
    opacity: 0;
    transform: rotate(180deg);
}

.faq-question.active .faq-minus {
    opacity: 1;
    transform: rotate(0deg);
}

.faq-question.active {
    background-color: var(--primary-color);
    color: #fff;
}

.faq-minus>svg>path {
    fill: #fff;
}

.app-icon {
    border-radius: 3.5rem !important;
}

#fullscreen-image {
    border-radius: 20px;
}