/*------------------------------------*\
    VARIABLES & GLOBAL STYLES
\*------------------------------------*/
:root {
    --primary-color: #ff5722;
    --secondary-color: #e64a19;
    --text-color: #333;
    --text-light: #f8f8f8;
    --background-gradient-start: #f5f7fa;
    --background-gradient-end: #c3cfe2;
    --white: #ffffff;
    --light-gray: #f9f9f9;
    --medium-gray: #ccc;
    --dark-gray: #575757;
    --overlay-bg: rgba(0, 0, 0, 0.6);
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-border: rgba(255, 255, 255, 0.2);
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-dark: rgba(0, 0, 0, 0.5);

    --topbar-height-desktop: 60px;
    --topbar-height-mobile: 50px;
    --current-topbar-height: var(--topbar-height-desktop); /* Default */

    --sidebar-width: 250px;
    --transition-speed: 0.3s;
}

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

html {
    scroll-padding-top: calc(var(--current-topbar-height) + 10px); /* Espace pour la topbar fixe */
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--background-gradient-start), var(--background-gradient-end));
    color: var(--text-color);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Empêche les espaces sous les images */
}

ul {
    list-style-type: none;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    color: var(--secondary-color);
}

a:focus-visible,
button:focus-visible,
input[type="text"]:focus-visible,
input[type="checkbox"]:focus-visible + .menu-icon {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.3);
}

h1, h2, h3 {
    margin-bottom: 0.8em;
}
h1 { color: var(--primary-color); font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/*------------------------------------*\
    TOPBAR & MENU BURGER
\*------------------------------------*/
#menu-toggle {
    display: none;
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--current-topbar-height);
    background-color: var(--white);
    color: var(--text-color);
    box-shadow: 0 2px 5px var(--shadow-dark);
    z-index: 1004; /* z-index le plus haut pour être au-dessus de tout */
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.topbar .menu-icon {
    font-size: 1.8rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 10px;
    display: inline-block;
}

.topbar .logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.topbar .logo img {
    height: calc(var(--current-topbar-height) - 10px);
    width: auto;
}

.topbar .search {
    margin-left: auto;
    position: relative;
}

.topbar .search input {
    width: 200px;
    padding: 8px 15px 8px 35px;
    border: 1px solid var(--medium-gray);
    border-radius: 20px;
    background-color: var(--light-gray);
    box-shadow: inset 0 1px 3px var(--shadow-light);
    transition: box-shadow var(--transition-speed) ease;
}

.topbar .search::before {
    content: "🔍";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--dark-gray);
}

.topbar .search input:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.4), inset 0 1px 3px var(--shadow-light);
}

/*------------------------------------*\
    SIDEBAR (MENU LATÉRAL)
\*------------------------------------*/
.overlay-close {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    cursor: pointer;
}

.sidebar {
    position: fixed;
    top: 0;
    left: calc(-1 * var(--sidebar-width));
    width: var(--sidebar-width);
    height: 100%;
    background-color: var(--white);
    padding-top: calc(var(--current-topbar-height) + 20px);
    transition: left var(--transition-speed) ease-in-out;
    z-index: 1000;
    border-right: 2px solid var(--medium-gray);
    box-shadow: 2px 0 5px var(--shadow-light);
    overflow-y: auto;
}

.sidebar a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.sidebar a:hover,
.sidebar a:focus-visible {
    background-color: var(--dark-gray);
    color: var(--white);
    outline: none;
}

#menu-toggle:checked ~ .sidebar { left: 0; }
#menu-toggle:checked ~ .overlay-close { display: block; }

#menu-toggle:checked ~ .main-content,
#menu-toggle:checked ~ .carousel,
#menu-toggle:checked ~ .site-footer {
    margin-left: var(--sidebar-width);
}
/*------------------------------------*\
    CARROUSEL
\*------------------------------------*/
.carousel {
    position: relative; /* Contexte pour les flèches */
    width: 100%;
    /* height: 600px; Hauteur définie par le contenu ou fixée si besoin */
    max-height: calc(100vh - var(--current-topbar-height)); /* Limite la hauteur à l'écran visible */
    overflow: hidden;
    margin-top: var(--current-topbar-height); /* Dégagement pour la topbar fixe */
    transition: margin-left var(--transition-speed) ease-in-out; /* Pour l'ouverture du menu */
}

.slides {
    display: flex;
    width: 300%; /* 100% * nombre de slides (ici 3) */
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    position: relative; /* Pour le texte superposé */
    flex: 0 0 33.333%;
    height: auto; /* s'adapte à l'image */
    min-height: 400px; /* Hauteur minimale pour visibilité */
    max-height: calc(100vh - var(--current-topbar-height) - 40px); /* 40px pour les flèches/padding */
    display: flex; /* Pour centrer l'image si elle est plus petite */
    justify-content: center;
    align-items: center;
    background-color: var(--dark-gray); /* Fond si image transparente ou plus petite */
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Rempli l'espace, peut couper l'image */
    /* object-fit: contain; Assure que toute l'image est visible, peut laisser des espaces */
}

.carousel-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-light);
    text-align: center;
    background: var(--overlay-bg);
    padding: 25px;
    border-radius: 10px;
    max-width: 90%;
    box-shadow: 0 0 15px var(--shadow-dark);
}

.carousel-text h2 {
    margin-top: 0;
    font-size: 2.2rem;
    color: var(--white);
}
.carousel-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5em;
}

.carousel .btn, /* Styles communs pour les boutons (déjà définis plus bas) */
#cta .btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 28px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 30px;
    box-shadow: 0 2px 8px var(--shadow-dark);
    transition: background-color var(--transition-speed) ease, transform 0.2s ease;
}

.carousel .btn:hover,
#cta .btn:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

.carousel button.prev,
.carousel button.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--overlay-bg);
    border: none;
    color: var(--white);
    font-size: 2.5rem;
    padding: 8px 14px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: background-color var(--transition-speed) ease;
    line-height: 1; /* Pour un meilleur centrage vertical du chevron */
}

.carousel button:hover {
    background-color: var(--primary-color);
}

.carousel button.prev { left: 20px; }
.carousel button.next { right: 20px; }


/*------------------------------------*\
    MAIN CONTENT & SECTIONS
\*------------------------------------*/
.main-content {
    padding: 40px 20px; /* Padding haut réduit car carrousel/topbar gère l'espace */
    /* Si pas de carrousel en haut, padding-top: calc(var(--current-topbar-height) + 40px); */
    transition: margin-left var(--transition-speed) ease-in-out;
    max-width: 1200px;
    margin: 0 auto; /* Centrage du contenu */
    text-align: center;
}

.main-content section {
    padding: 40px 0;
    border-bottom: 1px solid var(--medium-gray);
}
.main-content section:last-child {
    border-bottom: none;
}

/* SECTION SERVICES */
#services .service-cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px; /* Espace entre les cartes */
    margin-top: 30px;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px); /* Pour Safari */
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 20px var(--shadow-light);
    border-radius: 15px;
    padding: 25px;
    text-align: left;
    width: calc(33.333% - 20px); /* 3 cartes par ligne, avec gap */
    min-width: 280px; /* Empêche les cartes d'être trop petites */
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    overflow: hidden; /* Pour les images qui scalent au survol */
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px var(--shadow-medium);
    border-color: var(--primary-color);
}

.card img {
    width: 100%;
    height: 200px; /* Hauteur fixe pour l'uniformité */
    object-fit: cover;
    border-radius: 10px; /* Coins arrondis pour l'image */
    margin-bottom: 20px;
    transition: transform var(--transition-speed) ease;
}

.card:hover img {
    transform: scale(1.08);
}

.card h3 {
    color: var(--primary-color);
    margin-top: 0;
}

/* SECTION AVANTAGES */
#avantages ul {
    padding: 0;
    margin: 30px auto;
    text-align: left;
    max-width: 650px; /* Largeur max pour la lisibilité */
}

#avantages li {
    font-size: 1.15rem;
    margin-bottom: 15px;
    padding-left: 30px; /* Espace pour l'icône */
    position: relative;
}

#avantages li::before {
    content: '✔️';
    position: absolute;
    left: 0;
    color: var(--primary-color); /* Icône colorée */
    font-size: 1.2em;
}

/* CALL TO ACTION (CTA) */
#cta {
    background-color: var(--light-gray); /* Léger fond pour se démarquer */
    padding: 50px 20px;
    border-radius: 10px;
    margin-top: 30px;
}
#cta h2 { margin-bottom: 25px; }

/*------------------------------------*\
    SECTION RÉASSURANCE
\*------------------------------------*/
#reassurance {
    padding: 20px 0; /* Moins de padding vertical que les autres sections */
    background-color: rgba(255, 255, 255, 0.5); /* Léger fond pour se démarquer */
    border-top: 1px solid var(--medium-gray); /* Ligne de séparation */
    border-bottom: 1px solid var(--medium-gray);
}

.reassurance-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    /* Crée 4 colonnes sur grand écran, et s'adapte automatiquement sur plus petit */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.reassurance-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.reassurance-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 15px;
    /* Pour colorer les SVG en orange si besoin */
    /* Assurez-vous que vos SVGs sont monochromes pour que ça marche bien */
    filter: invert(48%) sepia(87%) saturate(2972%) hue-rotate(359deg) brightness(101%) contrast(101%);
}

.reassurance-item h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

.reassurance-item p {
    font-size: 0.9rem;
    color: var(--dark-gray);
    line-height: 1.5;
}



/*------------------------------------*\
    FOOTER
\*------------------------------------*/
.site-footer {
    background-color: var(--dark-gray);
    color: var(--light-gray);
    padding: 40px 20px;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    text-align: left;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-copyright p {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
}
.footer-link {
    color: var(--light-gray);
    text-decoration: underline;
}
.footer-link:hover {
    color: var(--white);
}

.social-icons,
.payment-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-icons img,
.payment-icons img {
    height: 28px;
    width: auto;
    transition: transform 0.2s ease;
}

.social-icons img[src$=".svg"],
.payment-icons img[src$=".svg"] {
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(150%) contrast(100%);
}

.social-icons a:hover img {
    transform: scale(1.1);
}
/*------------------------------------*\
    ENHANCED SERVICES SECTION (Common Faults lists)
\*------------------------------------*/
.card .common-faults {
    list-style-type: '✓ '; /* Utilise un check unicode comme puce */
    margin-top: 15px;
    padding-left: 5px; /* Ajuster pour l'alignement de la puce */
    font-size: 0.9rem;
    color: var(--dark-gray);
    text-align: left; /* S'assurer que le texte de la liste est aligné à gauche */
}

.card .common-faults li {
    margin-bottom: 8px;
    padding-left: 8px; /* Espace après la puce personnalisée */
}

/*------------------------------------*\
    PROCESSUS SECTION
\*------------------------------------*/
#processus {
    background-color: var(--light-gray);
    border-radius: 10px;
    padding-top: 50px;
    padding-bottom: 50px;
}

#processus h2 {
    margin-bottom: 45px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Responsive par défaut */
    gap: 25px;
}

.step {
    background-color: var(--white);
    padding: 30px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow-light);
    text-align: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.step:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px var(--shadow-medium);
}

.step-icon {
    width: 55px;
    height: 55px;
    margin-bottom: 20px;
    /* Pour colorer des SVGs avec CSS : fill: var(--primary-color); */
    /* Assurez-vous que vos SVGs sont conçus pour cela */
}

.step h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.step p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--dark-gray);
}

/*------------------------------------*\
    TESTIMONIALS SECTION
\*------------------------------------*/
#temoignages {
    padding-top: 50px;
    padding-bottom: 50px;
}
#temoignages h2 {
    margin-bottom: 45px;
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--card-bg);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 20px var(--shadow-light);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.testimonial-card::before { /* On garde la grande apostrophe pour le style */
    content: '“';
    font-family: Georgia, serif;
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.15;
    position: absolute;
    top: 10px;
    left: 15px;
    line-height: 1;
    z-index: 0;
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    position: relative; /* Pour être au-dessus de l'apostrophe */
    z-index: 1;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    margin-right: 15px;
    object-fit: cover;
}

.testimonial-author-info {
    display: flex;
    flex-direction: column;
}

.testimonial-author {
    font-weight: bold;
    color: var(--text-color);
    font-size: 1.1rem;
}

.testimonial-device {
    font-size: 0.9rem;
    color: var(--dark-gray);
    font-style: italic;
}

.testimonial-rating {
    color: #fdd835; /* Jaune/Or pour les étoiles */
    font-size: 1.2rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.testimonial-text {
    font-style: italic;
    color: var(--dark-gray);
    line-height: 1.7;
    flex-grow: 1; /* S'assure que le texte pousse le reste vers le bas */
    margin: 0;
    position: relative;
    z-index: 1;
}
/*------------------------------------*\
    ENGAGEMENTS SECTION
\*------------------------------------*/
#engagements {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    padding: 60px 20px;
    border-radius: 10px;
    margin-top: 40px;
    text-align: center;
}

#engagements h2 {
    color: var(--white);
    margin-bottom: 40px;
    text-align: center;
}

.engagements-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 40px auto;
    max-width: 900px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.engagements-list li {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 8px;
    font-size: 1.05rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: background-color var(--transition-speed);
}
.engagements-list li:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.engagement-icon {
    width: 35px;
    height: 35px;
    margin-right: 20px;
    flex-shrink: 0; /* Empêche l'icône de rétrécir */
    /* Pour colorer des SVGs blancs (si vos SVGs sont noirs) : */
    /* filter: brightness(0) invert(1); */
}

.alma-payment-feature {
    background-color: rgba(255, 255, 255, 0.1); /* Un fond légèrement différent, ou gardez transparent */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 30px 25px;
    margin: 40px auto 0 auto; /* Espace par rapport à la liste des engagements */
    max-width: 700px; /* Ajustez la largeur maximale */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.alma-logo-header {
    margin-bottom: 25px;
}

.alma-logo-header img { /* Pour la bannière visuelle complète */
    max-width: 100%;
    height: auto;
    max-height: 120px; /* Limite la hauteur de la bannière si elle est trop grande */
    border-radius: 6px; /* Optionnel */
}

/* Styles alternatifs si vous composez l'en-tête avec du HTML */
.alma-logo-header h3 {
    font-size: 1.8rem; /* Ajustez */
    color: var(--white);
    margin-bottom: 5px;
    font-weight: 700;
}
.alma-times {
    background-color: var(--text-color); /* Fond noir comme sur l'image */
    color: var(--white);
    padding: 5px 12px;
    border-radius: 6px;
    margin: 0 3px;
    font-size: 1.5rem; /* Ajustez */
    display: inline-block;
}
.with-alma {
    font-size: 1rem;
    color: var(--white);
    display: flex; /* Pour aligner "avec" et le logo Alma */
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}
.alma-inline-logo {
    height: 25px; /* Ajustez */
    width: auto;
}

.alma-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: var(--text-light); /* Assurez-vous que c'est lisible */
}

.payment-methods-accepted {
    list-style: none;
    padding: 0;
    margin: 0 auto 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Espace entre les moyens de paiement */
    font-size: 0.95rem;
}

.payment-methods-accepted li {
    display: flex;
    align-items: center;
    gap: 6px; /* Espace entre icône et texte */
    color: var(--text-light);
}

.payment-methods-accepted img {
    height: 24px; /* Taille des icônes espèces/cb */
    width: auto;
}

.alma-conditions {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8); /* Texte un peu moins visible */
    font-style: italic;
    line-height: 1.4;
    max-width: 550px;
    margin: 0 auto;
}


/*------------------------------------*\
    FAQ SECTION
\*------------------------------------*/
#faq {
    padding-top: 50px;
    padding-bottom: 50px;
}

#faq h2 {
    margin-bottom: 40px;
}

.faq-container {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--medium-gray);
    margin-bottom: 10px;
}
.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-question {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.15rem;
    font-weight: 600;
    padding: 18px 0;
    width: 100%;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color var(--transition-speed);
}

.faq-question:hover,
.faq-question:focus-visible {
    color: var(--primary-color);
    outline: none;
}

.faq-icon {
    font-size: 1.6rem;
    font-weight: 300; /* Plus fin pour + et - */
    color: var(--primary-color);
    transition: transform 0.2s ease;
    margin-left: 15px;
}

/* .faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(135deg); Géré par JS qui change le contenu +/-
} */

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-in-out, margin-top 0.35s ease-in-out, opacity 0.3s ease-in-out;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--dark-gray);
    opacity: 0;
}
.faq-answer.open {
    opacity: 1;
}

.faq-answer p {
    padding-bottom: 20px;
    margin:0;
}


/*------------------------------------*\
    CONTACT FORM SECTION
\*------------------------------------*/
#contact {
    padding-top: 50px;
    padding-bottom: 50px;
    background-color: var(--background-gradient-start); /* Un fond légèrement différent */
    border-radius: 10px;
}

#contact h2 {
    margin-bottom: 40px;
}

#contact-form {
    max-width: 750px;
    margin: 0 auto 40px auto;
    background-color: var(--white);
    padding: 35px 40px;
    border-radius: 10px;
    box-shadow: 0 8px 25px var(--shadow-medium);
    text-align: left;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid #d1d1d1; /* Bordure un peu plus douce */
    border-radius: 6px;
    font-size: 1rem;
    background-color: #fdfdfd; /* Fond très légèrement grisé pour les champs */
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder,
.form-group input[type="tel"]::placeholder,
.form-group textarea::placeholder {
    color: #999;
    font-size: 0.95rem;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.2), inset 0 1px 2px rgba(0,0,0,0.05);
    background-color: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

#contact-form .btn {
    display: block;
    width: 100%;
    margin-top: 15px;
    padding: 16px;
    font-size: 1.15rem;
    font-weight: 600;
}

.contact-direct {
    text-align: center;
    margin-top: 40px;
    padding: 0 20px;
}
.contact-direct h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: var(--primary-color);
}
.contact-direct p {
    margin-bottom: 10px;
    font-size: 1.1rem;
    line-height: 1.6;
}
.contact-direct a {
    color: var(--secondary-color); /* Utiliser la couleur secondaire pour les liens ici */
    font-weight: 500;
}
.contact-direct a:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

/*------------------------------------*\
    FOOTER ENHANCEMENTS
\*------------------------------------*/
.footer-link { /* Style spécifique pour les liens du footer si besoin */
    color: var(--light-gray);
    text-decoration: underline;
}
.footer-link:hover {
    color: var(--white);
    text-decoration: none;
}

/*------------------------------------*\
    STYLES POUR PAGES LÉGALES
\*------------------------------------*/
.legal-page {
    padding-top: calc(var(--current-topbar-height) + 40px) !important;
    text-align: left;
    background-color: var(--white);
}

.legal-page h1, .legal-page h2 {
    text-align: center;
}

.legal-page h2 {
    margin-top: 2em;
    font-size: 1.5rem;
}

.legal-page p, .legal-page li {
    line-height: 1.8;
    margin-bottom: 1em;
}

.legal-page ul {
    list-style-type: disc;
    padding-left: 40px;
}

.back-home-link {
    font-size: 1.5rem;
    padding: 0 20px;
    color: var(--text-color);
    text-decoration: none;
    line-height: var(--current-topbar-height);
}
/*------------------------------------*\
    RESPONSIVE DESIGN (FIN DU FICHIER)
\*------------------------------------*/
@media (max-width: 992px) {
    #services .service-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        /* Sur tablette, on peut passer à 2 colonnes explicitement si le grid-auto-fit ne convient pas */
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }

    .carousel-text h2 { font-size: 1.8rem; }
    .carousel-text p { font-size: 1rem; }

    #services .service-cards,
    .process-steps,
    .testimonials-container,
    .engagements-list {
        grid-template-columns: 1fr;
    }
    
    .card, .step, .testimonial-card, .engagements-list li {
        margin-bottom: 25px;
    }
    
    .engagements-list li {
        flex-direction: column;
        text-align: center;
    }
    .engagement-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }

    #avantages ul {
        padding: 0 15px;
    }
    
    /* Footer sur mobile */
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-column {
        text-align: center;
    }
    .social-icons,
    .payment-icons {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    :root {
        --current-topbar-height: var(--topbar-height-mobile);
    }
    
    #menu-toggle:checked ~ .main-content,
    #menu-toggle:checked ~ .carousel,
    #menu-toggle:checked ~ footer {
        margin-left: 0;
    }
    .sidebar {
         z-index: 1003;
    }
    body::after {
        content: '';
        position: fixed;
        top: var(--current-topbar-height);
        left: 0;
        width: 100%;
        height: calc(100% - var(--current-topbar-height));
        background-color: rgba(0,0,0,0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
    }
    #menu-toggle:checked ~ body::after {
        opacity: 1;
        visibility: visible;
    }
    
    .topbar {
        padding: 0 10px;
    }
    .topbar .logo img {
        height: calc(var(--current-topbar-height) - 15px);
    }
    .topbar .search input {
        width: 150px;
        font-size: 14px;
        padding: 6px 10px 6px 30px;
    }
    .topbar .search::before { font-size: 14px; left: 8px; }

    .main-content { padding: 20px 10px; }
    .carousel-slide { min-height: 300px; }
    .carousel button.prev { left: 10px; font-size: 2rem; padding: 5px 10px; }
    .carousel button.next { right: 10px; font-size: 2rem; padding: 5px 10px; }
    .carousel-text { padding: 15px; }
    .carousel-text h2 { font-size: 1.5rem; }
    .carousel-text p { font-size: 0.9rem; margin-bottom: 1em; }
    .carousel .btn, #cta .btn { font-size: 1rem; padding: 10px 20px; }
}