* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f5f5f5; /* Un gris clair doux */
    color: #333;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

#main-header {
    position: relative;
    background: url('img/header-background.jpg') center/cover no-repeat;
    color: white;
    padding: 4rem 2rem 6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;

    /* Masque de fondu vers transparent */
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

/* Dégradé fondu en bas */
#main-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, white 100%);
    pointer-events: none;
    z-index: 1;
}

#main-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 0;
}

#main-header > * {
    position: relative;
    z-index: 1;
}

/* Pour que le contenu reste au-dessus du fondu */
#header-left,
nav {
    position: relative;
    z-index: 2;
}

#header-left{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
}

#main-header h1 {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #4a90e2;
}


/* Sections principales */
.section {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section.reverse {
    flex-direction: row-reverse;
}

.section-content {
    flex: 1;
}

.section img {
    width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

h2 {
    font-size: 2rem;
    color: #222;
}

#footer-content {
    display: flex;
    justify-content: space-between;
    position: relative;
    background: url('img/footer-background.jpg') center top -650px / cover no-repeat;
    color: white;
    padding: 4rem 2rem 2rem;
    margin-top: 2rem;
    overflow: hidden;
    z-index: 2;
}

#footer-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to top, rgba(0,0,0,0) 0%, white 100%);
    pointer-events: none;
    z-index: 1;
}

.cta-button {
    margin-top: auto;
    align-self: center;
}

.cta-button {
    display: inline-block;
    background-color: #333;
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #808080;
}

/* Styles pour la pop-up de contact */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Effet brumeux */
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.popup-container {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: popupFadeIn 0.3s ease;
}

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

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.popup-header h3 {
    margin: 0;
    color: #333;
}

.close-popup {
    font-size: 1.5rem;
    cursor: pointer;
    color: #777;
    transition: color 0.3s;
}

.close-popup:hover {
    color: #333;
}

#contactForm {
    padding: 1.5rem;
    justify-content: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #888;
    box-shadow: 0 0 0 2px rgba(51,51,51,0.1);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-cancel,
.btn-submit {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-cancel {
    background-color: #f1f1f1;
    color: #333;
}

.btn-cancel:hover {
    background-color: #e0e0e0;
}

.btn-submit {
    background-color: #333;
    color: white;
}

.btn-submit:hover {
    background-color: #555;
}

body {
    display: flex;
    flex-direction: column;
}

.swip-arrow {
    visibility: hidden;
    text-align: center;
    font-size: 3rem;
}

#sticky-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px;
    z-index: 1000;
}

.common {
    background-color: #f9f9f9;
    padding-top: 2em;
}

.common h2 {
    text-align: center;
}

.common-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    justify-content: center;
}

.common-card {
    flex: 0 0 auto;
    scroll-snap-align: center;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1em;
}

.common-card-stats {
    width: 20%;
}

.common-card-services {
    width: 30%;
}

.common-card-suivis {
    width: 30%;
}

.common-card-testimony {
    width: 20%;
}

.common-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid #f0f0f0;
}

.common-title {
    color: #444;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.common-text {
    margin-bottom: 1rem;
    font-style: italic;
}

.common-footer {
    font-weight: bold;
    color: #666;
    align-self: flex-end;
    margin-top: auto;
    text-align: right;
}

#contactForm {
    padding: 1.5rem;
    justify-content: center;
}

.pricing-features li.valid::before {
    content: "✓";
    color: #4a90e2;
}

.pricing-features li.invalid::before {
    content: "✗";
    color: #e94f4f;
}

.pricing-features li {
    list-style: none;
}

.scroll-indicator {
    text-align: center;
    margin-top: 10px;
    color: #666;
    font-size: 0.9em;
}

.common-card-carrousel{
    width: 20%;
}

.common-img-carrousel{
    width: 25em;
}

.dots-container {
    display: none; /* Affiché seulement en mobile */
    justify-content: center;
    margin-top: 1rem;
    gap: 0.5rem;
}

.dots-container .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    transition: background-color 0.3s ease;
}

.dots-container .dot.active {
    background-color: #333;
}

.no-bullet-point{
    list-style:none;
}




.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-submit.loading::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.dots-loader {
    display: inline-block;
}

.dots-loader::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

@media (max-width: 768px) {
    #sticky-banner.right-position {
        right: 20px;
        transform: none;
    }

    #main-title{
        text-align: center;
    }

    .dots-container {
        display: flex;
    }

    #main-header {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    nav {
        margin-top: 1rem;
    }

    .section {
        flex-direction: column;
        padding: 2rem 1rem;
        gap: 2rem;
    }

    .section.reverse {
        flex-direction: column;
    }

    .section img {
        width: 100%;
        height: auto;
    }

    .testimonial-card {
        min-width: 250px;
    }

    .faq-section {
        padding: 2rem 1rem;
    }

    /* Responsive pour les prix */
    .pricing-grid {
        flex-direction: column;
    }

    .pricing-box {
        width: 100%;
        margin-bottom: 20px;
    }

    .common{
        padding: 0;
    }

    .swip-arrow{
        visibility: visible;
    }

    #footer-content {
        background: url('img/footer-background.jpg') center top -100px / cover no-repeat;
        padding-bottom: 1rem;
    }

    .common-container {
        /* Activation du scroll horizontal */
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;

        /* Scroll fluide */
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;

        /* Centrage de la première carte */
        padding-left: calc(50vw - 175px);
        padding-right: calc(50vw - 175px);

        /* Alignement pour le scroll */
        justify-content: flex-start;
    }

    .common-card-testimony,
    .common-card-stats,
    .common-card-services,
    .common-card-suivis {
        flex: 0 0 350px;
        width: 350px;
        min-width: 350px;
    }

    .common-img-carrousel{
        width: 20em;
    }
}