:root {
    --primary-color: #004A89;
    --secondary-color: #1f2936;
    --background-color: #f8f9fa;
    --text-color: #1F2937;
    --text-secondary: #4B5563;
    --white: #fff;
    --red: #da201f;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9fafb;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

img {
    pointer-events: none; /* Désactive les interactions (clic, drag, etc.) */
}


#hero p {
    color: var(--text-secondary);
}

#hero .cta-button {
    width: fit-content;
}

.google-button {
    display: flex;
    width: fit-content;
}

.google-button img {
    width: 150px;
    height: 150px;
}

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

/* Carousel Styles */
.carousel {
    width: 100%; /* Prend toute la largeur du conteneur */
    max-width: 600px; /* Limite la largeur maximale */
    margin: 0 auto;
    overflow: hidden;
    position: relative; /* Nécessaire pour les indicateurs */
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    transition: opacity 0.5s ease-in-out;
}

.carousel-item img {
    width: 100%; /* Adapte la largeur de l'image au conteneur */
    height: auto; /* Garde les proportions */
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.indicator {
    width: 12px;
    height: 12px;
    background-color: var(--white);
    border: 2px solid var(--red);
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.indicator.active {
    background-color: var(--red);
    opacity: 1;
}


sup {
    color: var(--red);
}

.bg-red {
    background-color: var(--red);
}

.bg-red .container {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

/* Bouton Appeler */
#callButton {
    position: fixed;
    bottom: 70px; /* Positionné au-dessus du bouton toTop */
    right: 16px;
    z-index: 1000;
    background-color: #08d669;
    color: var(--white);
    border: none;
    border-radius: 50%; /* Rond */
    width: 50px;
    height: 50px;
    display: none; /* Caché par défaut */
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s, transform 0.3s;
}
#callButton:hover {
    transform: scale(1.1);
}
#callButton:active {
    transform: scale(0.95);
}

/* BTN TO TOP */
#toTop {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 1000;
    background-color: #000;
    color: var(--white);
    border: none;
    border-radius: 8px;
    width: 30px;
    height: 30px;
    display: none; /* Caché par défaut */
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s, transform 0.3s;
}
#toTop:hover {
    transform: scale(1.1);
}
#toTop:active {
    transform: scale(0.95);
}


/* NAV */

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    padding-bottom: 25px;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: baseline;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
}

nav .cta-button {
    background-color: var(--red);
    color: var(--white);
}

.burger-menu {
    display: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: 0.4s;
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 16px 25px;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: bold;
}

.cta-button-outline {
    background-color: transparent;
    color: var(--white);
    padding: 16px 25px;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid var(--white);
}

.group {
    display: inline-flex;
    flex-direction: row;
    gap: 25px;
}

main {
    padding-top: 80px;
}

section {
    padding: 100px 0;
}

/* HERO */

#hero {
    position: relative;
    padding: 100px 0;
    border-bottom: 1px solid #E5E7EB;
}
#hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Deux colonnes égales */
    align-items: center; /* Centre verticalement le contenu */
    gap: 32px; /* Espacement entre les colonnes */
    text-align: left; /* Alignement par défaut du texte */
}
#hero .txt-hero {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
#hero .txt-hero #google-review {
    color: var(--primary-color);
}
#hero .hero-image {
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px; /* Limite la largeur de l'image */
    justify-self: center; /* Centre horizontalement l'image */
}


/* ABOUT */

#a-propos {
    border-bottom: 1px solid #E5E7EB;
}

#a-propos .container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 600px;
}

#a-propos .container {
    display: flex;
    flex-direction: column;
    max-width: 600px;
}

#a-propos .container p {
    color: var(--text-secondary)
}

#a-propos .container a {
    color: var(--primary-color);
}

/* FAQ */

#faq .read-more {
    margin-left: auto;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 16px 25px;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: bold;
}
#faq .container {
    display: flex;
    flex-direction: column;
    max-width: 600px;
}
.faq-list {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.faq-item {
    background: var(--white);
    border-radius: 8px;
    border: 1px solid #E5E7EB;
}
.faq-question {
    background: none;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    border: none;
    color: var(--text-color);
    font-size: 18px;
    font-weight: bold;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 25px;
    display: flex;
    padding: 25px;
    flex-direction: row;
    gap: 25px;
}
.faq-question .chevron {
    transition: transform 0.3s ease;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}
.faq-answer p {
    color: var(--text-secondary);
    padding-left: 25px;
    padding-right: 25px;
    padding-bottom: 25px;
}
.faq-item.active .faq-answer {
    max-height: 500px; /* Ajustez selon vos besoins */
    opacity: 1;
}
.faq-item.active .chevron {
    transform: rotate(180deg); /* Inverse la flèche */
}

.hidden-faq {
    display: none;
}

.hidden-faq.visible {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

h1 {
    font-size: 32px;
}
h2 {
    font-size: 24px;
}

/* SERVICES */

#services {
    border-bottom: 1px solid #E5E7EB;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(378.67px, 1fr));
    gap: 32px;
}
.service {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.service a {
    text-decoration: none;
    margin-left: auto;
}

#s1 {
    background-color: #0b9fc5;
    color: var(--white);
}
#s1 a {
    color: var(--white);
    text-decoration: underline;
}

#s2 {
    background-color: #e6802e;
    color: var(--white);
}
#s2 a {
    color: var(--white);
    text-decoration: underline;
}

#s3 {
    background-color: #86a039;
    color: var(--white);
}
#s3 a {
    color: var(--white);
    text-decoration: underline;
}

.sd {
    background-color: var(--white);
}
.sd p {
    color: var(--text-secondary);
}

.sd a {
    color: var(--primary-color);
    text-decoration: underline;
}

.t-block span {
    color: var(--primary-color);
    font-weight: bold;
}

/* FREE QUOTE */

.radio-group {
    display: flex;
    align-items: center;
    gap: 12px; /* Espacement entre chaque radio */
}

.radio-wrapper {
    display: flex;
    align-items: center;
    gap: 8px; /* Espacement entre la radio et le label */
}

.radio-wrapper input[type="radio"] {
    width: auto !important; /* Rétablit la largeur par défaut */
    margin: 0 !important; /* Supprime les marges par défaut */
    padding: 0;
    accent-color: var(--red); /* Ajoute une couleur personnalisée si besoin */
}

.radio-wrapper label {
    margin: 0 !important; /* Supprime les marges par défaut */
    font-size: 16px; /* Taille de police uniforme */
    color: var(--text-color);
    cursor: pointer; /* Améliore l'expérience utilisateur */
}


.radio-wrapper label,
.checkbox-wrapper label {
    margin: 0;
    font-size: 16px;
    color: var(--text-color);
}

#isEntreprise-group {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

#isEntreprise-group label {
    margin-bottom: 0;
}

input[type="checkbox"] {
    width: auto !important;
    margin: 0 !important;
    padding: 0;
    accent-color: var(--red);
}

.card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quote {
    background-color: var(--red);
    color: var(--white);
}
.quote a {
    width: fit-content;
    margin-left: auto;
}

#devis h1,
p {
    color: var(--white);
}

#devis-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
}

#devis-form h3 {
    font-size: 24px;
}

label {
    display: block;
    margin-bottom: 0.5rem;
}

input,
select,
textarea {
    font-size: 16px;
    width: 100%;
    padding: 16px;
    border: 1px solid #ddd;
}

.form-nav {
    display: flex;
    gap: 1rem;
    margin-left: auto;
}

#step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
}
.step {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--white);
    opacity: 0.5;
    margin: 0 5px;
}
.step.active {
    background-color: var(--white);
    opacity: 1;
}

#prev-step, #next-step {
    color: var(--red);
    padding: 16px 25px;
    border-radius: 9999px;
    border: none;
    text-decoration: none;
    font-weight: bold;
}

/* FOOTER */

footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 50px;
    padding-bottom: 50px;
}
footer p {
    font-size: 16px;
    font-weight: 300;
    opacity: 0.7;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 50px;
}
.footer-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.footer-content h4 {
    font-size: 18px;
    font-weight: bold;
}
.footer-content ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.footer-content a {
    font-size: 16px;
    color: var(--white);
    font-weight: 300;
    text-decoration: none;
    opacity: 0.7;
}
.footer-content a:hover {
    opacity: 1;
    transition: 0.3s;
}
.footer-bottom-copy {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        padding: 2rem;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        margin: 1rem 0;
    }

    .burger-menu {
        display: block;
    }

    nav {
        padding: 25px;
    }
    nav ul {
        margin-top: 3rem;
    }

    /* HERO */
    #hero .container {
        grid-template-columns: 1fr;
        text-align: left;
    }
    #hero .hero-image {
        order: -1;
        max-width: 100%;
    }
    #hero .txt-hero {
        align-items: left;
        gap: 20px;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /*inputs*/
    .radio-group {
        gap: 16px; /* Augmente l'espacement vertical pour une meilleure lisibilité */
    }

    .radio-wrapper {
        display: flex;
        flex-direction: row;
        gap: 1rem; /* Espacement entre la radio et le label */
    }
}

.hidden-content {
    display: none;
}

.hidden-content.visible {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.read-more {
    display: inline-block;
    margin-top: 16px;
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: underline;
    font-weight: bold;
}
