/* 
* CD Comptabilité - Main Stylesheet
* Colors:
* - Main background: #1B1464 (deep purple-blue)
* - Accents: #B4FF00 (neon lime), #FF9671 (bright peach)
* - Background gradient: linear-gradient(to bottom right, #1B1464, #00C9A7)
* - Text: #FAFAFA (white), #CCCCCC (light gray)
*/

/* ---------- RESET & BASE STYLES ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

section[id] {
    scroll-margin-top: 80px;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #FAFAFA;
    background-color: #1B1464;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
}

a {
    color: #B4FF00;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #FF9671;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    font-family: 'Montserrat', sans-serif;
}

.btn--primary {
    background-color: #B4FF00;
    color: #1B1464;
}

.btn--primary:hover {
    background-color: #FF9671;
    color: #FAFAFA;
}

.btn--secondary {
    background-color: transparent;
    border: 2px solid #B4FF00;
    color: #B4FF00;
}

.btn--secondary:hover {
    background-color: #B4FF00;
    color: #1B1464;
}

/* ---------- HEADER & NAVIGATION ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(27, 20, 100, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #FAFAFA;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
}

.logo__icon {
    width: 40px;
    height: 40px;
}

.nav {
    display: flex;
    align-items: center;
}

.nav__list {
    display: flex;
    gap: 1.5rem;
}

.nav__link {
    color: #FAFAFA;
    font-weight: 500;
    position: relative;
}

.nav__link:hover, .nav__link.active {
    color: #B4FF00;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #B4FF00;
    transition: width 0.3s ease;
}

.nav__link:hover::after, .nav__link.active::after {
    width: 100%;
}

/* Mobile navigation toggle */
.nav-toggle {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    height: 24px;
    width: 30px;
    position: relative;
}

.nav-toggle-label span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background-color: #B4FF00;
    border-radius: 3px;
    left: 0;
    transform: rotate(0deg);
    transition: all 0.3s ease;
}

.nav-toggle-label span:nth-child(1) {
    top: 0;
}

.nav-toggle-label span:nth-child(2) {
    top: 10px;
}

.nav-toggle-label span:nth-child(3) {
    top: 20px;
}

.nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
    opacity: 0;
}

.nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

/* Mobile responsive navigation */
@media (max-width: 768px) {
    .nav-toggle-label {
        display: block;
        z-index: 1002;
    }
    
    .nav {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(to bottom right, #1B1464, #00C9A7);
        z-index: 1001;
        height: 100vh;
        padding-top: 80px;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .nav__list {
        flex-direction: column;
        gap: 0;
        text-align: center;
    }
    
    .nav__item {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .nav__link {
        font-size: 1.5rem;
    }
    
    .nav-toggle:checked ~ .nav {
        transform: translateY(0);
    }
}

/* ---------- SECTIONS GENERAL ---------- */
.section {
    padding: 5rem 0;
}

.section__title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #B4FF00, #FF9671);
    border-radius: 2px;
}

/* ---------- HERO SECTION ---------- */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    filter: brightness(0.5);
}

.hero__bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 20, 100, 0.6);
}

.hero__container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    height: 100%;
}

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto;
}

.hero__title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero__subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #CCCCCC;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- ABOUT SECTION ---------- */
.section--about {
    background: linear-gradient(to bottom right, #1B1464, #00C9A7);
}

.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about__image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.about__image img:hover {
    transform: rotate(0);
}

.about__title {
    color: #B4FF00;
    margin-bottom: 1.5rem;
}

.about__list {
    margin-top: 1.5rem;
    padding-left: 1.5rem;
}

.about__list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.about__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 10px;
    height: 10px;
    background-color: #FF9671;
    border-radius: 50%;
}

/* ---------- BENEFITS SECTION ---------- */
.section--benefits {
    background-color: #151050;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.benefit__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(180, 255, 0, 0.1);
    border-radius: 50%;
    padding: 1rem;
}

.benefit__title {
    color: #B4FF00;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* ---------- SERVICES SECTION ---------- */
.section--services {
    background: linear-gradient(to bottom, #1B1464, #151050);
}

.services {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.service {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.service:nth-child(even) {
    direction: rtl;
}

.service:nth-child(even) .service__content {
    direction: ltr;
}

.service__image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.service__image img:hover {
    transform: scale(1.03);
}

.service__title {
    color: #B4FF00;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.service__list {
    margin-top: 1rem;
}

.service__list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.5rem;
}

.service__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #FF9671;
    font-weight: bold;
}

/* ---------- WHY US SECTION ---------- */
.section--why-us {
    background-color: #151050;
}

.why-us__intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.2rem;
}

.why-us__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.why-us__item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.why-us__item:hover {
    transform: translateY(-10px);
}

.why-us__icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 150, 113, 0.1);
    border-radius: 50%;
}

.why-us__item h3 {
    color: #FF9671;
    margin-bottom: 1rem;
}

/* ---------- ORDER FORM SECTION ---------- */
.section--order {
    background: linear-gradient(to bottom right, #151050, #1B1464);
}

.order__intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.form {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 10px;
}

.form__group {
    margin-bottom: 1.5rem;
}

.form__group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form__group input,
.form__group select,
.form__group textarea {
    width: 100%;
    padding: 0.8rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: #FAFAFA;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
    border-color: #B4FF00;
    outline: none;
}

.form__checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.form__checkbox input {
    margin-right: 0.5rem;
    margin-top: 0.3rem;
}

.form__checkbox label {
    font-size: 0.9rem;
}

.form__submit {
    margin-top: 2rem;
    text-align: center;
}

/* ---------- TESTIMONIALS SECTION ---------- */
.section--testimonials {
    background-color: #151050;
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    position: relative;
}

.testimonial__content {
    position: relative;
    padding-top: 1.5rem;
}

.testimonial__content::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 4rem;
    color: rgba(180, 255, 0, 0.2);
    font-family: serif;
}

.testimonial__author {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial__name {
    font-weight: bold;
    color: #B4FF00;
}

.testimonial__position {
    font-size: 0.9rem;
    color: #CCCCCC;
}

/* ---------- FAQ SECTION ---------- */
.section--faq {
    background: linear-gradient(to bottom, #1B1464, #151050);
}

.faq {
    max-width: 800px;
    margin: 0 auto;
}

.faq__item {
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
}

.faq__toggle {
    position: absolute;
    opacity: 0;
    z-index: -1;
}

.faq__question {
    display: block;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: #FAFAFA;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: background 0.3s ease;
}

.faq__question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #B4FF00;
    transition: transform 0.3s ease;
}

.faq__toggle:checked + .faq__question {
    background: rgba(180, 255, 0, 0.1);
}

.faq__toggle:checked + .faq__question::after {
    content: '−';
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    transition: max-height 0.3s ease;
}

.faq__toggle:checked ~ .faq__answer {
    max-height: 500px;
}

.faq__answer p {
    padding: 1.5rem;
}

/* ---------- CONTACT SECTION ---------- */
.section--contact {
    background-color: #151050;
}

.contact__info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact__item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.contact__item:hover {
    transform: translateY(-10px);
}

.contact__icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(180, 255, 0, 0.1);
    border-radius: 50%;
    padding: 1rem;
}

.contact__item h3 {
    color: #B4FF00;
    margin-bottom: 1rem;
}

/* ---------- THANK YOU PAGE ---------- */
.section--thank-you {
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: linear-gradient(to bottom right, #1B1464, #151050);
}

.thank-you {
    text-align: center;
}

.thank-you__icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: rgba(180, 255, 0, 0.1);
    border-radius: 50%;
    padding: 1.5rem;
}

.thank-you__title {
    color: #B4FF00;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.thank-you__actions {
    margin-top: 2.5rem;
}

/* ---------- ERROR PAGE ---------- */
.section--error {
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: linear-gradient(to bottom right, #1B1464, #151050);
}

.error-message {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 10px;
}

.error-message ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.error-message li {
    margin-bottom: 0.5rem;
    color: #FF9671;
}

.error-actions {
    margin-top: 2rem;
    text-align: center;
}

/* ---------- FOOTER ---------- */
.footer {
    background-color: #0F0D35;
}

.footer__container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
    padding: 4rem 1.5rem;
}

.footer__info {
    padding-right: 2rem;
}

.footer__description {
    margin-top: 1.5rem;
    color: #CCCCCC;
}

.footer__heading {
    color: #B4FF00;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer__heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #FF9671;
    border-radius: 1.5px;
}

.footer__address {
    font-style: normal;
    color: #CCCCCC;
}

.footer__address p {
    margin-bottom: 0.8rem;
}

.footer__list li {
    margin-bottom: 0.8rem;
}

.footer__list a {
    color: #CCCCCC;
}

.footer__list a:hover {
    color: #B4FF00;
}

.footer__bottom {
    text-align: center;
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.2);
    color: #CCCCCC;
    font-size: 0.9rem;
}

.logo--footer {
    color: #B4FF00;
}
option {
    background-color: #3a3474;
}
/* ---------- COOKIE POPUP ---------- */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 13, 53, 0.95);
    backdrop-filter: blur(10px);
    width: 90%;
    max-width: 400px;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    text-align: center;
    transition: bottom 0.5s ease-in-out;
}

.cookie-popup.show {
    bottom: 20px;
    animation: bounce 0.5s;
}

.cookie-popup.hide {
    bottom: -100%;
}

.cookie-popup__content h3 {
    color: #B4FF00;
    margin-bottom: 1rem;
}

.cookie-popup__content p {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.cookie-popup__link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%);
    }
    40% {
        transform: translateX(-50%) translateY(-20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ---------- POLICY PAGES ---------- */
.section--policy {
    padding-top: 8rem;
    min-height: 80vh;
}

.policy {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 10px;
}

.policy__title {
    color: #B4FF00;
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
}

.policy h2 {
    color: #FF9671;
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
}

.policy p, .policy ul, .policy ol {
    margin-bottom: 1.5rem;
}

.policy ul, .policy ol {
    padding-left: 1.5rem;
}

.policy ul li, .policy ol li {
    margin-bottom: 0.5rem;
}

/* ---------- RESPONSIVE STYLES ---------- */
@media (max-width: 992px) {
    .section__title {
        font-size: 2rem;
    }
    
    .hero__title {
        font-size: 2.8rem;
    }
    
    .hero__subtitle {
        font-size: 1.3rem;
    }
    
    .about, .service {
        grid-template-columns: 1fr;
    }
    
    .service:nth-child(even) {
        direction: ltr;
    }
    
    .about__image, .service__image {
        margin-bottom: 2rem;
    }
    
    .footer__container {
        grid-template-columns: 1fr;
    }
    
    .footer__info {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }
    
    .section__title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .hero__title {
        font-size: 2.3rem;
    }
    
    .policy {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .hero__title {
        font-size: 2rem;
    }
    
    .hero__subtitle {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .form {
        padding: 1.5rem;
    }
} 