/* CSS Variables */
:root {
    --DarkGray: #353c40;
    --Primary: #e3dfff;
    --Corail: #ff7070;
    --white-100: #fff;
    --text-primary: #1b1d28;
    --text-secondary: #353c40;
    --text-muted: #a1a1a1;
    --border-light: #d2d4ed;
    --bg-light: #f5f4f7;
    --bg-purple-light: #e3dfff;
    --bg-purple-lighter: #ecedf8;
    --gray-extra-light: #f3f5f6;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', -apple-system, Roboto, Helvetica, sans-serif;
    line-height: 1.6;
    color: var(--text-secondary);
    background-color: #fff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
}

p {
    margin: 0;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 1024px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 80px 0;
}

.hero-background {
    position: absolute;
    inset: 0;
    margin-top:-100px;
    width: 100%;
    height: 95%;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: -190px;
}

/* Navigation */
.navbar {
    background-color: white;
    border: 2px solid var(--bg-light);
    border-radius: 16px;
    display: flex;
    max-width: 1200px;
    width: calc(100% - 160px);
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    gap: 20px;
    flex-wrap: wrap;
    position: sticky;
    top: 20px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-top: 37px;
}

.logo {
    width: 125px;
    height: auto;
    aspect-ratio: 125/33;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 68px;
    color: #2d2e2e;
    font-size: 18px;
    font-weight: 500;
}

.nav-links a {
    color: #2d2e2e;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--Corail);
}

.nav-cta-button {
    background: linear-gradient(135deg, var(--DarkGray), rgba(53, 60, 64, 0.8));
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Merriweather', serif;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.button-icon {
    width: 18px;
    height: 18px;
}

/* Hero Main Content */
.hero-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 120px;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    color: var(--DarkGray);
    max-width: 895px;
    margin-bottom: 70px;
}

.hero-description {
    font-size: 22px;
    color: var(--text-secondary);
    max-width: 869px;
    margin-bottom: 72px;
    font-family: 'Lato', sans-serif;
}

.hero-video {
    position: relative;
    border-radius: 16px;
    box-shadow: 0px 4px 30px -6px rgba(227, 223, 255, 0.4);
    max-width: 1121px;
    width: 120%;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 6px var(--gray-extra-light) solid;
}

.hero-video-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.hero-video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    border-radius: 16px;
}

.play-button {
    position: relative;
    z-index: 2;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    border: 1px solid var(--Primary);
    background: radial-gradient(81.99% 96.25% at 50.35% 100%, #353c40 0%, rgba(53, 60, 64, 0.8) 100%);
    box-shadow: 0px 1px 3px 0px rgba(16, 24, 40, 0.1), 0px 1px 2px 0px rgba(16, 24, 40, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
}

.play-icon {
    width: 32px;
    height: 32px;
}

/* Overview Section */
.overview-section {
    padding: 180px 0 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-title {
    font-size: 48px;
    font-weight: 500;
    color: var(--DarkGray);
    margin-bottom: 44px;
}

.section-description {
    font-size: 20px;
    line-height: 36px;
    color: var(--text-secondary);
    margin-bottom: 44px;
    font-family: 'Merriweather', serif;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    gap: 36px 24px;
    margin-bottom: 44px;
}

.feature-item {
    flex: 1;
    min-width: 240px;
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.feature-icon {
    width: 24px;
    height: 24px;
}

.feature-item h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--DarkGray);
}

.feature-item p {
    font-size: 18px;
    line-height: 26px;
    color: var(--DarkGray);
    font-family: 'Merriweather', serif;
}

/* CTA Link */
.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--Corail);
    font-size: 16px;
    font-family: 'Merriweather', serif;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--Corail);
    transition: all 0.3s ease;
}

.cta-link:hover {
    gap: 12px;
}

.cta-arrow {
    width: 20px;
    height: 20px;
}

.stats-divider {
    position: relative;
    background: #f5f0ff;
    padding: 80px 20px;
    overflow: hidden;
    text-align: center;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    gap: 40px;
    z-index: 1;
    position: relative;
}

.stat {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.stat-number {
    font-size: 58px;
    color: var(--DarkGray);
    font-weight: 300;
    font-stretch: normal;
}

.stat-label {
    font-size: 58px;
    color: var(--DarkGray);
    opacity: 0.8;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
}

.stat-number,
.stat-label {
    font-family: 'Outfit', sans-serif;
}

.stats-bg-svg {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 70%;
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
}

/* Detailed Features */
.detailed-features {
    padding: 160px 0;
}

.feature-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    margin-bottom: 160px;
}

.feature-detail:last-child {
    margin-bottom: 0;
}

.feature-detail.reverse {
    grid-template-columns: 1fr 1fr;
    direction: rtl; /* inverse l’ordre visuel */
}

.feature-detail.reverse .feature-content,
.feature-detail.reverse .feature-image {
    direction: ltr; /* rétablit l’écriture */
}


.feature-content {
    flex: 1;
}

.feature-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.feature-subtitle {
    font-size: 24px;
    font-weight: 500;
    color: var(--DarkGray);
    margin-bottom: 24px;
    line-height: 36px;
}

.feature-description {
    font-size: 20px;
    line-height: 36px;
    color: var(--DarkGray);
    margin-bottom: 24px;
    font-family: 'Merriweather', serif;
}

.feature-image {
    flex: 1;
    min-width: 240px;
    max-width: 547px;
}

.feature-image img {
    width: 100%;
    height: auto;
}

.see-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--Corail);
    font-size: 16px;
    font-family: 'Merriweather', serif;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--Corail);
    transition: all 0.3s ease;
}

.see-more-link:hover {
    gap: 12px;
}

.link-arrow {
    width: 20px;
    height: 20px;
}

/* Video Call Demo */
.video-call-demo {
    background: white;
    border-radius: 8px;
    box-shadow: 0px 4px 50px -5px rgba(0, 0, 0, 0.1);
    padding: 30px 0 30px 46px;
    position: relative;
}

.multi-user-badge {
    position: absolute;
    top: 228px;
    left: -56px;
    background: white;
    border: 2px solid rgba(228, 228, 228, 0.2);
    border-radius: 6px;
    box-shadow: 1px 5px 11px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    font-size: 16px;
    font-weight: 500;
    color: var(--DarkGray);
    z-index: 10;
}

.badge-icon {
    width: 18px;
    height: 18px;
}

.video-interface {
    display: flex;
    flex-direction: column;
    gap: 21px;
}

.video-header {
    display: flex;
    align-items: start;
    gap: 20px;
    justify-content: space-between;
    margin-right: -77px;
}

.call-icon {
    width: 24px;
    height: 24px;
}

.user-avatar {
    background: #7b7b7b;
    border-radius: 50%;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
    font-weight: 700;
    font-family: 'Lato', sans-serif;
    line-height: 0.6;
}

.live-call-badge {
    background: white;
    border: 2px solid rgba(228, 228, 228, 0.2);
    border-radius: 6px;
    box-shadow: 1px 5px 11px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    font-size: 16px;
    font-weight: 500;
    color: var(--DarkGray);
    font-family: 'Outfit', sans-serif;
}

.video-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.control-btn {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    background: var(--DarkGray);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 4px 9px;
}

.control-btn-red {
    background: var(--Corail);
}

.control-btn img {
    width: 12px;
    height: 12px;
}

/* Partners Section */

.partners-section {
    position: relative;
    background: #f5f0ff;
    padding: 80px 0;
    overflow: hidden;
    text-align: center;
}

.partners-bg-svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    opacity: 1;
    z-index: 0;
    pointer-events: none;

    -webkit-mask-image: linear-gradient(to right, black 50%, transparent 100%);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-image: linear-gradient(to right, black 50%, transparent 100%);
    mask-repeat: no-repeat;
    mask-size: 100% 100%;
}

.partners-section .container {
    position: relative;
    text-align: center;
    z-index: 10;
}

.partners-section .section-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 138px;
}

.partners-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colonnes égales */
    gap: 40px;
    align-items: center;
    justify-items: center;
}

.partner-logo {
    width: 100%;     /* prend toute la largeur de sa cellule */
    max-width: 100%; /* évite tout dépassement */
    height: auto;
    object-fit: contain;
}

/* L’image s’adapte à la case sans déborder */
.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ULTIMO Section */
.ultimo-section {
    padding: 160px 0;
}

.ultimo-section .section-title {
    font-weight: 500;
    color: var(--DarkGray);
    margin-bottom: 44px;
}

.ultimo-description {
    font-size: 20px;
    line-height: 36px;
    color: var(--DarkGray);
    margin-bottom: 44px;
    font-family: 'Merriweather', serif;
}

.ultimo-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes égales */
    gap: 40px;
    align-items: center;
    justify-items: center;
    margin-top: 44px;
}

.ultimo-logo {
    width: 100%;
    max-width: 250px; /* taille max identique pour tous */
    height: auto;
    object-fit: contain;
}

/* FAQ Section */
.faq-section {
    background: linear-gradient(to bottom, rgba(227, 223, 255, 0.3) 0%, rgba(227, 223, 255, 1) 100%);
    padding: 58px 36px 36px;
}

.faq-section .section-title {
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 64px;
}

.faq-container {
    background: var(--bg-purple-lighter);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: 0px 0px 50px -25px rgba(177, 178, 195, 1);
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.faq-item {
    background: white;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    gap: 16px;
    font-size: 20px;
    line-height: 1.3;
    color: #1a1a1a;
    flex-wrap: wrap;
}

.faq-question span {
    flex: 1;
}

.faq-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 32px;
    transition: max-height 0.2s ease-out, padding 0.1s ease-out; /* fermeture rapide */
}

.faq-item.active .faq-answer {
    max-height: 600px; /* assez grand pour contenir le texte */
    padding: 16px 32px 36px;
    transition: max-height 0.5s ease-in, padding 0.3s ease-in; /* ouverture plus lente */
}


.faq-answer ul {
    margin-left: 20px;
    margin-top: 10px;
}

.faq-answer li {
    margin-bottom: 15px;
    line-height: 36px;
    color: rgba(53, 60, 64, 1);
}

/* Contact Section */
.contact-section {
    padding: 160px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2px 1fr; /* gauche | barre | droite */
    gap: 32px;
    align-items: start;
}

/* séparateur vertical */
.contact-divider {
    background-color: var(--Primary);
    width: 2px;
    height: 100%;
}

.contact-title {
    font-size: 48px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 26px;
}

.contact-description {
    font-size: 20px;
    line-height: 38px;
    font-family: 'Merriweather', serif;
    margin-bottom: 44px;
}

.form-title {
    font-size: 28px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 18px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--Primary);
    border-radius: 8px;
    background: white;
    font-size: 16px;
    font-family: 'Merriweather', serif;
    color: var(--text-muted);
}

.form-group textarea {
    min-height: 208px;
    resize: vertical;
    border-color: var(--border-light);
}

.form-submit-btn {
    background: linear-gradient(135deg, var(--DarkGray), rgba(53, 60, 64, 0.8));
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Merriweather', serif;
    font-size: 16px;
    cursor: pointer;
    align-self: flex-start;
    margin-top: 32px;
    transition: all 0.3s ease;
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.form-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form Messages */
.form-messages {
    margin-bottom: 20px;
}

.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.success-message p,
.error-message p {
    margin: 0;
    font-size: 14px;
}

/* Loading state */
.form-submit-btn.loading .button-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
.footer {
    position: relative;
    overflow: hidden;
    padding: 80px 20px 20px;
    color: var(--text-secondary);

    background: linear-gradient(
            to bottom,
            rgba(227, 223, 255, 0) 0%,
            rgba(227, 223, 255, 1) 100%
    );
}

.footer-bg-svg {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    opacity: 1;
    z-index: 0;
    pointer-events: none;
}
.footer-top,
.footer-bottom {
    position: relative; /* pour être au-dessus du bg */
    z-index: 1;
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 20px;
}

.footer-logo img {
    max-width: 140px;
    height: auto;
    margin: 0 auto;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--Corail);
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.footer-bottom a {
    color: var(--text-muted);
}

.footer-bottom a:hover {
    color: var(--Corail);
}

.footer .text-align-center {
    display: flex;
    flex-direction: row;
    gap:20px;
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-main {
        margin-top: 20px;
    }

    .hero-background {
        height: 85%;
    }

    .hero-section {
        padding: 0 20px;
        min-height: 550px;
    }

    .hero-content {
        margin-bottom: 10px;
    }

    .hero-title {
        font-size: 40px;
        margin-bottom: 40px;
        margin-top: 40px;
    }

    .hero-description {
        margin-bottom: 40px;
    }

    .hero-video {
        margin: 0 20px;
        aspect-ratio: 16/9;
        width: 100%;
    }

    .navbar {
        gap: 10px;
        width: calc(100% - 40px);
        margin-top: 20px;
    }

    .nav-links {
        gap: 20px;
        flex-wrap: wrap;
    }

    .section-title {
        font-size: 32px;
    }

    .contact-title {
        font-size:32px;
    }

    .contact-description {
        font-size:18px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .feature-detail {
        margin-bottom: 100px;
    }

    .feature-detail,
    .feature-detail.reverse {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .feature-detail:last-child {
        margin-bottom: 50px;
    }

    .feature-image {
        margin: 0 auto;   /* au cas où */
    }

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

    .feature-subtitle {
        font-size: 20px;
    }

    .feature-description {
        font-size: 18px;
    }

    .overview-section {
        padding: 50px 0;
    }

    .detailed-features {
        padding: 60px 0 0;
    }

    .ultimo-section {
        padding: 80px 0;
    }

    .ultimo-section .ultimo-description {
        font-size: 18px;
    }

    .faq-question {
        font-size: 18px;
    }

    .form-submit-btn {
        margin-top: 20px;
    }

    .multi-user-badge {
        position: static;
        margin-bottom: 20px;
    }

    .video-call-demo {
        padding: 20px;
    }

    .user-avatar {
        width: 100px;
        height: 100px;
        font-size: 30px;
        padding: 0 20px;
    }

    .partners-section {
        padding: 60px 0;
    }

    .partners-bg-svg {
        bottom: 0;
        left: 0;
        width: 100%;
    }

    .partners-section .section-title {
        margin-bottom: 80px;
    }

}

@media (max-width: 640px) {
    .hero-background {
        height: 100%;
    }

    .stats-container {
        grid-template-columns: repeat(1, minmax(200px, 1fr));
        gap: 40px;
    }

    .navbar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .nav-links {
        justify-content: center;
        gap: 15px;
        font-size: 16px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 18px;
    }

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

    .feature-title {
        font-size: 24px;
    }

    .feature-item h3 {
        font-size: 18px;
    }

    .feature-item p {
        font-size: 16px;
    }


    .partners-section .section-title {
        margin-bottom: 80px;
    }

    .partners-logos {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-description {
        font-size: 16px;
    }

    .stats-bg-svg {
        bottom: 0;
        right: -25%;
        width: 300%;
    }

    .stat-label, .stat-number{
        font-size: 30px;
    }

    .ultimo-section {
       margin: 0;
    }

    .partners-bg-svg {
        bottom: 0;
        left: 0;
        width: 150%;
        height: 100%;
        opacity: 1;
    }

    .ultimo-logos {
        grid-template-columns: repeat(1, 1fr); /* 3 colonnes égales */
    }

    .contact-content {
        grid-template-columns: 1fr; /* une seule colonne */
    }

    .contact-divider {
        display: none; /* on cache la barre sur mobile */
    }

    .faq-section {
        padding: 58px 0 36px;
    }

    .contact-section {
        padding-bottom: 100px;
    }

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

    .form-title {
        font-size: 18px;
    }

    .footer-bottom {
        padding-bottom: 20px;
    }

    .footer-logos {
        gap: 30px;
    }
}
