/* Main Stylesheet */
@font-face {
    font-family: 'Montserrat';
    src: url('montserrat.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-color: #1E192B;
    --bg-hover:#13101E;
    --text-color: #FFFFFF;
    --accent-color: #C1AB69;
    --secondary-text: #D8D5DF;
    --radio-outer: #2d293d;
    --radio-inner: #c2b067
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    margin: 0 auto;
    position: relative;
    background-color: var(--bg-color);
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 60px;
    position: fixed; /* Changed from absolute to fixed */
    top: 0;
    left: 0;
    width: 100%;
    height: 120px; /* Added height */
    box-sizing: border-box;
    z-index: 100;
    background: linear-gradient(180deg, #13101E 30%, rgba(19, 16, 30, 0) 100%); /* Updated gradient */
}

.logo img {
    max-height: 60px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    line-height: 22px;
    font-weight: 400;
    padding: 9px 30px;
    border-radius: 20px;
    transition: background-color 0.3s;
    display: block;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

nav a.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-color);
}
.btn-primary{
    transition:0.3s;
}
.btn-primary:hover {
    background-color: #D09E55;
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 15px;
    cursor: pointer;
    z-index: 101;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Burger Menu Animation */
.burger-menu.active span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
#hero {
    position: relative;
    min-height: 800px;
    display: flex;
    align-items: center;
    padding: 0 60px;
    background: linear-gradient(180deg, #1E192B 0%, #13101E 100%);

    overflow: hidden;
}

.hero-content {
    width: 50%;
    z-index: 10;
    padding-left: 60px;
    margin-left: auto; /* Pousse le contenu vers la droite */
    max-width: 700px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 600;
    line-height: 54px;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 40px;
    max-width: 540px;
}

.cta-group {
    display: flex;
    gap: 20px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-color);
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    line-height: 23px;
    display: inline-block;
    height: 40px;
    padding: 0 30px;
    display: flex;
    align-items: center;
}

.btn-secondary {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0px 30px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    line-height: 22px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    transition:0.3s;
    &:hover{
        background-color:var(--bg-hover);
    }
}

.hero-image {
    position: absolute;
    right: 45%;
    bottom: 0;
    width: 45%;
    max-width: 650px;
    z-index: 1;
}

.hero-image img {
    display: block;
}

/* Cartouche Section */
#carte {
    background-image:url('img/back.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    padding: 100px 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.carte-content{
    width: 100%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.carte-content > div {
    max-width: 700px;
    width: 100%;
}
.cartouche-content h2 {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 20px;
}
.cartouche-content p {
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 30px;
}
.btn-outline {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 9px 30px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    line-height: 22px;
    display: inline-block;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom:30px;
}

.feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 22px;
    font-size: 14px;
    line-height: 22px;
    white-space: nowrap;
}

.section-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Fonctionnement Section */
#fonctionnement {
    position: relative;
    padding: 100px 60px;
    min-height: 1000px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    max-width: 1400px;
    gap: 90px;
    margin: auto;
}

.tech-content {
    width: 45%;
    max-width: 600px;
}

.tech-content h3 {
    font-size: 30px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
}

.tech-content p {
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 60px;
}

.interact-content {
    width: 45%;
    max-width: 500px;
    position: sticky;
    top: 140px;
}

.interact-content h3 {
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 20px;
    margin-top: 0;
}

.interact-content p {
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 60px;
}

/* TÃ©moignages Section */
#temoignages {
    padding: 100px 60px;
    text-align: center;
}

#temoignages h2 {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 60px;
}

.testimonials-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.testimonial-card {
    background-color: rgba(19, 16, 30, 0);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    width: 350px;
    text-align: left;
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    color: var(--secondary-text);
    font-size: 14px;
    line-height: 22px;
}

.testimonial-card p {
    font-size: 18px;
    font-weight: 300;
    line-height: 28px;
    color: var(--secondary-text);
}

/* Contact Form */
#contact {
    padding: 100px 60px;
    display: flex;
    justify-content: center;
}

.contact-container {
    width: 100%;
    max-width: 800px;
}

.contact-container h2 {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 20px;
}

.contact-container p {
    font-size: 14px;
    line-height: 22px;
}

.contact-form {
    margin-top: 50px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 22px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 22px;
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    box-sizing: border-box;
}

.form-options {
    margin: 40px 0;
}

.option {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.option label {
    font-size: 14px;
    line-height: 22px;
}

.btn-submit {
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 12px 40px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition:0.3s;
    height: 40px;
    &:hover{
        background-color: #a8955b;
    }
}
/*Tejedor*/
.profile {
    display: flex;
    align-items: center;
    gap: 80px;
    margin:auto;
    margin-bottom: 80px;
    max-width: 900px;
    width: 100%;
    justify-content: center;
}
.profile-info {
    max-width:90%
}
.profile-pic {
    width: 320px;
    border-radius: 75px;
    object-fit: cover;
}

.profile-info h3 {
    font-size: 40px;
    font-weight: 600;
    margin: 0 0 20px 0;
}

.profile-info p {
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 25px;
}

/* Footer */
footer {
    background-color: #13101E;
    padding: 80px 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}



.btn-outline-small {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 9px 30px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    line-height: 22px;
    display: inline-block;
}

.contact-info {
    text-align: center;
    color: var(--secondary-text);
    font-size: 14px;
    line-height: 22px;
}
.custom-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.15);
}
/* On cache l'input radio natif */
.radio-item input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    user-select: none;
}

/* Le cercle extÃ©rieur personnalisÃ© */
.radio-mark {
    height: 25px;
    width: 25px;
    background-color: var(--radio-outer);
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    flex-shrink: 0; /* EmpÃªche le cercle de s'Ã©craser */
    transition: background-color 0.2s ease;
}

/* Le point intÃ©rieur (cachÃ© par dÃ©faut) */
.radio-mark:after {
    content: "";
    position: absolute;
    display: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--radio-inner);
}

/* On affiche le point quand c'est cochÃ© */
.radio-item input:checked ~ .radio-mark:after {
    display: block;
}

/* Petit effet au survol */
.radio-item:hover .radio-mark {
    background-color: #38334d;
}

/* Animation douce Ã  l'apparition du point */
.radio-mark:after {
    animation: radioPop 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes radioPop {
    from { transform: translate(-50%, -50%) scale(0); }
    to { transform: translate(-50%, -50%) scale(1); }
}
/* Fancybox custom styles */
.fancybox__content {
    background: transparent;
    padding: 0;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    /* Tablette et petits Ã©crans */
    header {
        padding: 20px 30px;
    }

    .hero-content h1 {
        font-size: 36px;
        line-height: 42px;
    }

    .hero-image {
        width: 40%;
    }

    #carte, #fonctionnement, #temoignages, #contact {
        padding: 60px 30px;
    }
}

@media (max-width: 768px) {
    /* Mobile */
    header {
        flex-direction: row; /* Changed from column to row */
        justify-content: space-between;
        align-items: center;
        gap: 0;
        height: 80px; /* Fixed height for mobile header */
        background: #13101E; /* Solid background on mobile for readability */
        padding: 0 20px;
    }
    .logo img{
        height:40px;
    }
    .burger-menu {
        display: flex; /* Show burger menu on mobile */
    }

    nav {
        position: absolute;
        top: 80px; /* Below header */
        left: 0;
        width: 100%;
        background-color: #13101E;
        padding: 20px 0;
        display: none; /* Hidden by default */
        flex-direction: column;
        align-items: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav.active {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        text-align: center;
    }

    nav a {
        display: inline-block;
    }

    #hero {
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
        padding-top: 0px; /* Espace pour le header */
    }

    .hero-content {
        width: 100%;
        padding-left: 0;
        margin-left: 0;
        margin-bottom: 40px;
    }

    .hero-image {
        width: 80%;
        margin: 0 auto;
        right: auto; /* Reset right positioning */
        bottom: 0;
        opacity: 0.4;
    }

    .cta-group {
        justify-content: center;
        flex-wrap: wrap;
    }

    .cartouche-content, .features-grid {
        margin-left: 0;
        text-align: center;
        justify-content: center;
    }

    .tech-content, .interact-content {
        width: 100%;
        text-align: center;
        margin-bottom: 40px;
        position: static;
    }

    .profile {
        flex-direction: column;
        text-align: center;
    }
    .feature-item {
        background-color: rgb(30 25 43 / 83%);
    }
}
