        :root {
            --hexadarkblue: #122b40;
            --hexalightblue: #439ad6;
            --primary: #2853af;
            --secondary: #439ad6;
            --dark: #2d3748;
            --light: #f8f9fa;
            --gray: #718096;
        }

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

        html, body {
            height: 100%;
        }

        html {
            /* Base font size for rem units - makes it responsive */
            font-size: 16px; 
        }

        body {
            min-height: 100%;
            display: block; /* plus de flex ici */
            position: relative;
            margin: 0;     
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            color: var(--dark);
            line-height: 1.6;
            padding-top: 80px;
            background-color: #f5f7fa;
        }

        /* pour fichiers .md */
        p {
            margin-bottom: 1em; 
        }

        ul, ol {
            margin-bottom: 1em;
        }

        a {
            text-decoration: none;
            color: var(--hexalightblue);
            font-weight: 500;
            position: relative;
        }

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

        /* Responsive adjustments for smaller screens */
        @media screen and (max-width: 768px) {
            html {
                font-size: 14px; /* Slightly smaller base font size on mobile */
            }
            
            body {
                padding-top: 70px; /* Adjust top padding for mobile navbar */
            }
            
            .hero h1 {
                font-size: 2rem; /* Smaller hero title */
            }
            
            .hero p {
                font-size: 1rem; /* Smaller hero paragraph */
            }
            
            .section-title {
                font-size: 1.5rem; /* Smaller section titles */
            }
            
            .service-content h3 {
                font-size: 1.2rem; /* Smaller service card titles */
            }
            
            .benefit-item h3 {
                font-size: 1.1rem; /* Smaller benefit titles */
            }
            
            .benefit-item p {
                font-size: 0.9rem; /* Smaller benefit descriptions */
            }
        }

        @media screen and (max-width: 480px) {
            html {
                font-size: 13px; /* Even smaller base font size on very small screens */
            }
            
            .hero h1 {
                font-size: 1.7rem;
            }
            
            .section-title {
                font-size: 1.3rem;
            }
            
            .service-content h3 {
                font-size: 1.1rem;
            }
        }

        main {
            min-height: calc(100vh - 200px); /* 200px = hauteur approximative du footer */
            box-sizing: border-box;
        }
        
        /* questionaire css */
/*         body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px;
        } */

        a.btn {
            text-decoration: none !important;
        }

        /* Navbar styles */
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background: white;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            z-index: 1000;
            padding: 15px 5%;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
        display: flex;
        align-items: center;
        gap: 10px;
        font-family: 'Poppins', sans-serif;
        font-size: 1.8rem;
        font-weight: 600;
        color: var(--hexalightblue);
        }

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

        .nav-links li {
            margin-left: 30px;
        }

        .nav-links a {
            text-decoration: none;
            color: var(--hexadarkblue);
            font-weight: 500;
            transition: color 0.3s;
            position: relative;
        }

        .nav-links a:hover {
            color: var(--hexalightblue);
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--hexalightblue);
            transition: width 0.3s;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

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

        .burger div {
            width: 25px;
            height: 3px;
            background: var(--dark);
            margin: 5px;
            transition: all 0.3s;
        }

        /* Main content */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px 20px;
        }

        .hero {
            text-align: center;
            padding: 60px 20px;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            color: white;
            border-radius: 10px;
            margin-bottom: 50px;
        }

        .hero h1 {
            font-size: 2.5rem;
            margin-bottom: 20px;
            font-weight: 600;
        }

        .hero p {
            font-size: 1.2rem;
            max-width: 800px;
            margin: 0 auto;
        }

        .services {
            margin: 50px 0;
        }

        .section-title {
            text-align: center;
            font-size: 2rem;
            margin-bottom: 40px;
            color: var(--hexadarkblue);
            position: relative;
        }

        .section-title::after {
            content: '';
            display: block;
            width: 80px;
            height: 4px;
            background: var(--secondary);
            margin: 10px auto;
            border-radius: 2px;
        }

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

        /* .service-card {
            background: white;
            border-radius: 10px;
            overflow: visible;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            transition: transform 0.3s;
        } */

        .service-card {
            background: white;
            /* border-radius: 10px; */
            overflow: hidden; /* Pour éviter que le bouton dépasse */
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            transition: transform 0.3s;

            padding-bottom: 1.5em; /* Ajoute de l’espace intérieur */
            /* display: flex; */
            flex-direction: column;
            justify-content: space-between;
            height: 100%;
        }

        .-card {
            background: white;
            border-radius: 10px;
            overflow: hidden;
            height: auto;
            /* padding-bottom: 2em; */
            position: relative;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            transition: transform 0.3s;
        }
        /* .service-card:hover {
            transform: translateY(-10px);
        } */

        .service-icon {
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            color: white;
            font-size: 2.5rem;
            padding: 25px;
            text-align: center;
        }

        .service-content {
            padding: 20px 60px;
            /* min-height: 600px; */
            /* height: 600px; */
        }

        .service-image-center {
            text-align: center;
        }

        .service-content h3 {
            font-size: 1.4rem;
            margin-bottom: 15px;
            color: var(--dark);
        }

        .benefits {
            background: white;
            padding: 60px 20px;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        }

        .benefits-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            margin-top: 40px;
        }

        .benefit-item {
            display: flex;
            align-items: flex-start;
        }

        .benefit-icon {
            color: var(--secondary);
            font-size: 1.5rem;
            margin-right: 15px;
            flex-shrink: 0;
        }

        .contact-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0px 0px;
        }
        
        .contact-card {
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            transition: transform 0.3s;
        }

        .contact-center {
            color: var(--secondary);
            font-size: 2.1rem;
            text-align: center;
        }

        .disclaimer {
            color: #666;
            font-style: italic;
            font-size: smaller; /* pour garder l'effet <small> */
        }

        footer {
            position: relative; /* normal par défaut */
            bottom: 0;
            width: 100%;
            background: var(--dark);
            color: white;
            text-align: center;
            padding: 30px 20px;
            margin-top: 50px;
        }

        .footer-whiteline {
        border: none;
        border-top: 1px solid white;
        width: 50px;
        margin: 10px auto;
        }

        #show-legal-info,
        #show-credit-info {
            color: var(--hexalightblue);
            text-decoration: none;
            font-weight: 500;
            cursor: pointer;
        }

        #show-legal-info:hover,
        #show-credit-info:hover {
            text-decoration: underline;
        }

        a[data-open-popup] {
            color: var(--hexalightblue);
            text-decoration: none;
            font-weight: 500;
            cursor: pointer;
        }

        a[data-open-popup]:hover {
            text-decoration: underline; 
        }

        /* Responsive styles */
        @media screen and (max-width: 768px) {
            .nav-links {
                position: absolute;
                right: 0;
                top: 80px;
                background: white;
                width: 100%;
                flex-direction: column;
                align-items: center;
                padding: 20px 0;
                box-shadow: 0 5px 10px rgba(0,0,0,0.1);
                transform: translateX(100%);
                transition: transform 0.5s ease-in;
            }

            .nav-links.active {
                transform: translateX(0);
            }

            .nav-links li {
                margin: 15px 0;
            }

            .burger {
                display: block;
            }

            .hero h1 {
                font-size: 2rem;
            }
        }
        /* Logos section styles */
        .logos {
            display: flex;
            justify-content: center;
            align-items: center;
            margin: -30px 30px 0;
        }

        .logo-img {
            max-height: 80px;
            height: auto;
            margin: 50px 10px 25px;
        }

        /* questionnaire styles */

        .questionnaire-container {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr 400px;
            gap: 30px;
            align-items: start;
            padding: 20px 20px;
        }
        
        @media (max-width: 768px) {
            .questionnaire-container {
                grid-template-columns: 1fr;
            }
        }
        
        .questionnaire-card, .summary-card {
            background: white;
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 15px 35px rgba(0,0,0,0.1);
            backdrop-filter: blur(10px);
        }
        
        .questionnaire-card {
            min-height: 500px;
            position: relative;
        }
        
        .progress-bar {
            width: 100%;
            height: 8px;
            background: #e0e0e0;
            border-radius: 4px;
            margin-bottom: 30px;
            overflow: hidden;
        }
        
        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #667eea, #764ba2);
            border-radius: 4px;
            transition: width 0.3s ease;
            width: 0%;
        }
        
        .question-container {
            display: none;
            animation: fadeIn 0.3s ease;
        }
        
        .question-container.active {
            display: block;
        }
        
/*         @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        } */
        
        .question-title {
            font-size: 1.5rem; /* Use rem for scalable fonts */
            font-weight: 600;
            color: #333;
            margin-bottom: 20px;
        }
        
        .question-description {
            font-size: 1rem; /* Use rem for scalable fonts */
            color: #666;
            margin-bottom: 25px;
            line-height: 1.6;
        }
        
        .options {
            display: flex;
            flex-direction: column;
            gap: 15px;
            margin-bottom: 30px;
        }
        
        .option {
            display: flex;
            align-items: center;
            padding: 15px;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            background: #fafafa;
        }
        
        .option:hover {
            border-color: #667eea;
            background: #f0f4ff;
        }
        
        .option.selected {
            border-color: #667eea;
            background: linear-gradient(135deg, #667eea20, #764ba220);
        }
        
        .option input[type="checkbox"] {
            margin-right: 15px;
            transform: scale(1.3);
        }
        
        .option input[type="radio"] {
            margin-right: 15px;
            transform: scale(1.3);
        }
        
        .option-label {
            font-weight: 500;
            color: #333;
        }
        
        .option-price {
            margin-left: auto;
            font-weight: 600;
            color: #667eea;
        }
        
        .input-field {
            width: 100%;
            padding: 15px;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            font-size: 1rem; /* Use rem for scalable fonts */
            margin-bottom: 20px;
            transition: border-color 0.3s ease;
        }
        
        .input-field:focus {
            outline: none;
            border-color: #667eea;
        }
        
        .navigation {
            display: flex;
            justify-content: space-between;
            margin-top: 30px;
        }
        
        .btn {
            padding: 12px 25px;
            border: none;
            border-radius: 8px;
            font-size: 1rem; /* Use rem for scalable fonts */
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .btn-primary {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
        }
        
        .btn-primary:hover {
            /* transform: translateY(-2px); */
            color: white;
            box-shadow: 0 4px 4px rgba(102, 126, 234, 0.3);
        }
        
        .btn-secondary {
            background: #f0f0f0;
            color: #666;
        }
        
        .btn-secondary:hover {
            background: #e0e0e0;
        }

        .btn-final {
            background: #2db80e;
            color: white;
        }
        
        .btn-final:hover {
            transform: translateY(-2px);
            background: #2db80e;
        }
        
        .btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }
        
        .summary-card {
            position: sticky;
            top: 20px;
        }
        
        .summary-title {
            font-size: 1.25rem; /* Use rem for scalable fonts */
            font-weight: 600;
            color: #333;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
        }
        
        .summary-icon {
            width: 24px;
            height: 24px;
            margin-right: 10px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 12px;
        }
        
        .summary-content {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        .summary-item {
            padding: 15px;
            background: #f8f9ff;
            border-radius: 10px;
            border-left: 4px solid #667eea;
        }
        
        .summary-item-title {
            font-weight: 600;
            color: #333;
            margin-bottom: 5px;
            font-size: 1rem; /* Use rem for scalable fonts */
        }
        
        .summary-item-value {
            color: #666;
            font-size: 0.875rem; /* Use rem for scalable fonts */
        }
        
        .summary-item-price {
            color: #667eea;
            font-weight: 600;
            font-size: 1rem; /* Use rem for scalable fonts */
            margin-top: 5px;
        }
        
        .total-price {
            margin-top: 20px;
            padding: 20px;
            background: linear-gradient(135deg, #667eea20, #764ba220);
            border-radius: 12px;
            text-align: center;
        }
        
        .total-label {
            font-size: 1rem; /* Use rem for scalable fonts */
            color: #666;
            margin-bottom: 5px;
        }
        
        .total-amount {
            font-size: 1.5rem; /* Use rem for scalable fonts */
            font-weight: 700;
            color: #333;
        }
        
        .completion-screen {
            text-align: center;
            display: none;
        }
        
        .completion-screen.active {
            display: block;
        }
        
        .completion-icon {
            width: 80px;
            height: 80px;
            margin: 0 auto 20px;
            background: linear-gradient(135deg, #4CAF50, #45a049);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 40px;
        }

        .legal-popup {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.3); /* fond semi-transparent */
            display: none;
            justify-content: center;
            align-items: flex-start;
            z-index: 9999;
        }

        .legal-popup.show {
            display: flex;
        }

        .legal-content {
            background: #fff;
            margin-top: -300px;
            border-radius: 8px; /* Ce border-radius sera maintenant visible */
            padding: 20px;
            width: 90%;
            max-width: 600px;
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
            animation: slideDown 0.4s ease-out forwards;
            position: relative;
            display: flex;
            flex-direction: column;
            box-sizing: border-box;
        }

        /* Nouveau conteneur pour le contenu défilant */
        .legal-content .scrollable-area {
            max-height: calc(80vh - 40px); /* Ajustez si vous changez le padding */
            overflow-y: auto;
            box-sizing: border-box;
            padding: 20px;
            padding-bottom: 100px;
            flex-grow: 1;
        }

        .legal-content h3,
        .legal-content p,
        .legal-content h4,
        .legal-content a {
            flex-shrink: 0;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }

        @keyframes slideDown {
            to {
                margin-top: 60px;
            }
        }

        .close-btn {
            position: absolute;
            flex-shrink: 0;
            top: 10px;
            right: 45px;
            font-size: 22px;
            cursor: pointer;
        }
