@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Roboto:wght@400;700&display=swap');

:root {
    --primary-color: #007bff;
    --primary-hover-color: #0056b3;
    --secondary-color: #6c757d;
    --accent-color: #28a745;
    --accent-hover-color: #1e7e34;
    --light-bg: #f8f9fa;
    --dark-text: #343a40;
    --light-text: #f8f9fa;
    --white: #ffffff;
    --border-color: #dee2e6;
    --font-sans-serif: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-display: 'Montserrat', sans-serif;
    
    /* Variables d'ombre modernisées pour plus de cohérence */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.16);
    
    --border-radius: 8px; /* Rayon de bordure standardisé */

    --primary-color-rgb: 0,123,255; 
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--light-bg);
}

body {
    font-family: var(--font-sans-serif);
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-bg);
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--primary-color);
    margin-bottom: 0.8em;
}

h1 { font-size: 2.8rem; line-height: 1.2; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }
p { margin-bottom: 1em; font-size: 1.05rem; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-hover-color);
    text-decoration: none;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover-color);
    transform: translateY(-2px);
    color: var(--white);
    text-decoration: none;
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-accent:hover {
    background-color: var(--accent-hover-color);
    transform: translateY(-2px);
    color: var(--white);
    text-decoration: none;
}

.main-header {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow-sm); /* Utilisation de la variable d'ombre */
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.logo span {
    color: var(--accent-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav li {
    margin-left: 25px;
}

.main-nav a {
    font-weight: bold;
    color: var(--dark-text);
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary-color);
    text-decoration: none;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: #ffffff;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50px; left: -50px;
    width: 200px; height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -70px; right: -70px;
    width: 250px; height: 250px;
    background: rgba(255,255,255,0.15);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: float 20s infinite ease-in-out reverse;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
    100% { transform: translateY(0px) rotate(360deg); }
}

.hero .hero-logo {
    max-width: 300px;
    margin-bottom: 20px;
    animation: zoomIn 0.8s ease-out 0.3s backwards;
}

.hero h1 {
    color: #ffffff;
    font-size: 3.5rem;
    margin-bottom: 0.5em;
    animation: slideInDown 1s ease-out;
}
.hero p {
    font-size: 1.3rem;
    margin-bottom: 1.5em;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: slideInUp 1s ease-out 0.3s backwards;
}
.hero .btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    animation: zoomIn 0.8s ease-out 0.6s backwards;
}

.features-section {
    padding: 80px 0;
    background-color: var(--white);
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.feature.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.feature:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin: 0 40px;
    flex-shrink: 0;
    width: 80px;
    text-align: center;
}
.feature-icon img { max-width: 100%; height: auto; }

.feature-text h3 {
    margin-top: 0;
}

.cta-section {
    background-color: var(--light-bg);
    padding: 60px 0;
    text-align: center;
}

.main-footer {
    background-color: var(--dark-text);
    color: var(--light-text);
    padding: 40px 0;
    text-align: center;
}

.main-footer a {
    color: #f8f9fa;
    margin: 0 10px;
}
.main-footer a:hover {
    color: var(--primary-color);
}
.main-footer p {
    margin-bottom: 0.5em;
}

.social-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    font-size: 1.2rem;
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.page-content {
    padding: 60px 0;
    background-color: var(--light-bg);
}
.page-content h1 { text-align: center; margin-bottom: 40px; }
.page-content h2 { margin-top: 30px; margin-bottom: 15px; }
.page-content ul { list-style-position: inside; margin-left: 20px; margin-bottom: 1em;}
.page-content li { margin-bottom: 0.5em;}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--dark-text);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-sans-serif);
}
.form-group textarea {
    min-height: 150px;
    resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}
.notification {
    margin-top: 15px;
    padding: 10px;
    border-radius: var(--border-radius);
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.95;
    transition: opacity 0.5s;
    box-shadow: var(--shadow-sm);
    color: #fff;
}
.notification.info {
    background-color: #17a2b8;
}
.notification.success {
    background-color: #28a745;
}
.notification.warning {
    background-color: #ffc107;
    color: #333;
}
.notification.error {
    background-color: #dc3545;
}
.notification .close-btn {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2em;
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
}

/* Sondage client specific styles */
#survey-root {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

#survey-loader {
    text-align: center;
    padding: 40px;
    background-color: var(--white);
    border-radius: var(--border-radius, 8px);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 500px;
}

#survey-loader h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}
#survey-loader p {
    font-size: 1.1rem;
    color: var(--dark-text);
}

#customerSurveyLogoContainer, #previewCustomerSurveyLogoContainer {
    display: block;
    text-align: center;
    margin-bottom: 30px;
}
#customerSurveyLogoContainer img, #previewCustomerSurveyLogoContainer img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}

#surveyTitle {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--primary-color);
}

#surveyIntroPage, #customerSurveyContainer, #thankYouMessage {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    background-color: transparent;
    box-shadow: none;
    border-radius: 0;
}

#surveyIntroPage p, #thankYouMessage p {
    font-size: 1.2em;
    line-height: 1.7;
    margin-bottom: 30px;
}
#surveyIntroPage button, #thankYouMessage button, .survey-navigation-buttons button {
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: var(--border-radius, 8px);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.progress-bar-container {
    height: 8px;
    width: 100%;
    background-color: rgba(0,0,0,0.1);
    border-radius: 0;
    margin-bottom: 40px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--primary-color);
    border-radius: 0;
    text-align: right;
    line-height: 8px;
    color: transparent;
    font-size: 0.7em;
    transition: width 0.3s ease-in-out;
}

.question-page {
    padding: 20px 0;
    margin-bottom: 30px;
    min-height: 150px;
    text-align: center;
}
.question-page h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.question-page p {
    font-size: 1.3rem;
    margin-bottom: 25px;
    font-weight: 500;
}

.answer-option {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    margin: 15px auto;
    padding: 18px 25px;
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius, 8px);
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    max-width: 450px;
    background-color: var(--light-bg);
    color: var(--primary-color);
    text-align: left;
}
.answer-option:hover {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.answer-option input[type="radio"],
.answer-option input[type="checkbox"] {
    margin: 0;
    flex-shrink: 0;
    transform: scale(1.4);
    accent-color: var(--primary-color);
}
.answer-option label {
    font-size: 1.15rem;
    font-weight: 400;
    color: inherit;
    cursor: pointer;
    flex-grow: 1;
}

#otherPrestationInput {
    width: calc(100% - 40px);
    max-width: 450px;
    margin: 15px auto;
    padding: 15px;
    font-size: 1.1rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--border-radius, 8px);
    box-sizing: border-box;
    background-color: rgba(255,255,255,0.8);
    color: inherit;
}

.star-rating-container {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.star {
    font-size: 3.5em;
    cursor: pointer;
    color: rgba(0,0,0,0.2);
    transition: color 0.2s ease, transform 0.1s ease;
}
.star:hover {
    transform: scale(1.1);
}
#globalRatingMessage {
    min-height: 120px;
    width: calc(100% - 40px);
    max-width: 500px;
    margin: 15px auto 0 auto;
    font-size: 1.1rem;
    padding: 15px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--border-radius, 8px);
    box-sizing: border-box;
    background-color: rgba(255,255,255,0.8);
    color: inherit;
    resize: vertical;
}
#globalRatingMessage + label {
    display: block;
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 1.1em;
    font-weight: 500;
}

#emailCollectionSection {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.1);
    background-color: transparent;
    color: inherit;
}
#emailCollectionSection label {
    font-weight: 500;
    margin-bottom: 15px;
    display: block;
    font-size: 1.1em;
}
#customerEmail {
    padding: 15px;
    font-size: 1.1rem;
    width: calc(100% - 40px);
    max-width: 450px;
    margin: 0 auto 15px auto;
    box-sizing: border-box;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--border-radius, 8px);
    background-color: rgba(255,255,255,0.8);
    color: inherit;
}
#finalizeAndExitBtn {
    margin-top: 20px;
}

#notificationsContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    width: 320px;
}
.notification {
    padding: 12px 18px;
    margin-bottom: 12px;
    border-radius: var(--border-radius);
    color: #fff;
    opacity: 0.95;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.notification.info { background-color: #17a2b8; }
.notification.success { background-color: #28a745; }
.notification.error { background-color: #dc3545; }
.notification.warning { background-color: #ffc107; color: #333; }
.notification .close-btn {
    background: none; border: none; color: inherit;
    font-size: 1.4em; cursor: pointer; line-height: 1; padding: 0 0 0 10px;
}

.page-content .nav-tabs {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.page-content .nav-tabs button {
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 5px;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.page-content .nav-tabs button:hover { background-color: #5a6268; }
.page-content .nav-tabs button.active { background-color: var(--primary-color); }
.page-content .nav-tabs button:disabled { background-color: #ccc; cursor: not-allowed; }
.page-content .view { display: none; }
.page-content .view.active { display: block; }

.page-content label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

.page-content input[type="text"],
.page-content input[type="password"],
.page-content input[type="url"],
.page-content input[type="email"],
.page-content input[type="file"],
.page-content select,
.page-content textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-sizing: border-box;
    font-size: 1rem;
    background-color: var(--white);
    color: var(--dark-text);
}

.page-content textarea { min-height: 60px; resize: vertical; }

.page-content button {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    margin-top: 15px;
    font-size: 16px;
    transition: background-color 0.3s;
}

.page-content button:hover { background-color: var(--primary-hover-color); }
.page-content button:disabled { background-color: #ccc; cursor: not-allowed; }

.page-content .progress-bar-container { width: 100%; background-color: #e0e0e0; border-radius: var(--border-radius); margin-bottom: 20px; }
.page-content .progress-bar { width: 0%; height: 20px; background-color: var(--accent-color); border-radius: var(--border-radius); text-align: center; line-height: 20px; color: white; transition: width 0.3s ease-in-out; }
.page-content .question-page { padding: 15px; border: 1px solid #eee; border-radius: var(--border-radius); margin-bottom: 15px; min-height: 100px; }
.page-content .question-page h3, .page-content .question-page h4 { font-size: 1.4em; }
.page-content .question-page p { font-size: 1.2em; margin-bottom: 15px; }

.page-content .answer-option {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}
.page-content .answer-option:hover { background-color: #f0f0f0; }
.page-content .answer-option input[type="radio"], 
.page-content .answer-option input[type="checkbox"] {
    margin: 0;
    flex-shrink: 0;
    transform: scale(1.2);
}

.page-content #otherPrestationInput { margin-top: 8px; display: none; }
.page-content .star-rating-container { margin-bottom: 15px; display: flex; justify-content: center; }
.page-content .star { font-size: 2.5em; cursor: pointer; color: #ccc; margin: 0 3px; transition: color 0.2s; }
.page-content .star.selected, .page-content .star:hover { color: #ffc107; }
.page-content #globalRatingMessage { margin-top: 10px; min-height: 80px; }

.page-content #qrCodeDisplay {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: var(--shadow-sm);
}
.page-content #qrCodeDisplay canvas {
    width: 100%;
    max-width: 250px;
    height: auto;
    border: none;
    box-shadow: none;
}
.page-content #qrCodeDisplay #publicLinkDisplay {
    font-size: 0.9em;
    word-break: break-all;
    background-color: var(--light-bg);
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.page-content .summary-box,
.page-content #rawFeedbackDataContainer { 
    margin-top: 20px; 
    padding: 15px; 
    background-color: #f9f9f9; 
    border: 1px solid #eee; 
    border-radius: var(--border-radius);
}
.page-content .summary-box {
    white-space: pre-wrap;
    line-height: 1.7;
}
.page-content #rawFeedbackDataContainer { overflow-x: auto; }
.page-content #rawFeedbackTable { 
    width: 100%; 
    min-width: 800px;
    border-collapse: collapse; 
    margin-top: 10px; 
    table-layout: auto; 
}
.page-content #rawFeedbackTable th, .page-content #rawFeedbackTable td { border: 1px solid var(--border-color); padding: 8px; text-align: left; font-size: 0.9em; word-wrap: break-word; }
.page-content #rawFeedbackTable th { background-color: #f2f2f2; }
.page-content .feedback-filters { margin-bottom: 10px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.page-content .feedback-filters input, .page-content .feedback-filters select { padding: 8px; font-size: 0.9em; }
.page-content .feedback-filters .export-buttons { margin-left: auto; }

#notificationsContainer { position: fixed; top: 80px; right: 10px; z-index: 1001; width: 300px; }
.notification .close-btn { float: right; background: none; border: none; color: inherit; font-size: 1.2em; cursor: pointer; line-height: 1; padding: 0 5px; }

.page-content .button-group button { margin-right: 10px; }
.page-content .label-line { display: flex; justify-content: space-between; align-items: center; margin-bottom: -5px; }
.page-content .label-line label { margin-top: 0; }
.page-content .magic-fill-btn { font-size: 1.2em; padding: 0 5px; margin-left: 8px; vertical-align: middle; background: none; border: none; color: var(--primary-color); cursor: pointer; line-height: 1; }
.page-content .magic-fill-btn:hover { color: var(--primary-hover-color); }

.page-content #imagePreviewContainer { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.page-content .img-preview { position: relative; width: 100px; height: 100px; border: 1px solid var(--border-color); border-radius: var(--border-radius); overflow: hidden; }
.page-content .img-preview img { width: 100%; height: 100%; object-fit: cover; }
.page-content .img-preview .delete-img-btn { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,0.6); color: white; border: none; border-radius: 50%; width: 20px; height: 20px; cursor: pointer; line-height: 18px; text-align: center; padding: 0; font-size: 14px; }
.page-content #logoPreviewContainer { margin-top: 10px; max-width: 150px; max-height: 100px; border: 1px dashed var(--border-color); padding: 5px; }
.page-content #logoPreviewContainer img { max-width: 100%; max-height: 90px; object-fit: contain; }

.page-content #dashboardLogoContainer { margin-top: 15px; margin-bottom: 15px; max-height: 80px; text-align: center; }
.page-content #dashboardLogoContainer img { max-height: 100%; max-width: 100%; object-fit: contain; }

.page-content .editable-question-item { border: 1px solid var(--border-color); padding: 10px; margin-bottom: 10px; border-radius: var(--border-radius); background-color: #f9f9f9; }
.page-content .editable-question-item.locked-question { background-color: #f0f0f0; border-left: 4px solid var(--secondary-color); }
.page-content .editable-question-item .drag-handle.locked-handle { cursor: not-allowed; color: var(--secondary-color); }
.page-content .editable-question-item input[type="text"] { font-size: 0.95em; }

.page-content input[type="color"] {
    width: 44px;
    height: 34px;
    padding: 2px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 15px auto;
}

.survey-navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.survey-navigation-buttons .btn {
    flex: 1;
    max-width: 48%;
}

.qr-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    width: 100%;
    justify-content: center;
}

.qr-actions button {
    flex-grow: 1;
    max-width: 150px;
    padding: 8px 12px;
    font-size: 0.9rem;
}

#feedbackChartsContainer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.chart-wrapper {
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    min-height: 350px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.chart-wrapper h4 {
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--dark-text);
    flex-shrink: 0;
}

.chart-wrapper canvas {
    width: 100% !important;
    height: 300px !important;
    max-height: 300px;
}


@media (max-width: 992px) {
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1.1rem; }
    .feature { flex-direction: column !important; text-align: center; }
    .feature-icon { margin: 0 0 20px 0; }
}

@media (max-width: 768px) {
    .main-header .container { justify-content: space-between; }
    .menu-toggle { display: block; order: 2; }
    .main-nav { order: 1; }
    .main-nav ul {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 70px; 
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: var(--shadow-sm);
        padding: 10px 0;
        margin: 0;
        z-index: 999;
    }
    .main-nav ul.active { display: flex; }
    .main-nav li { margin: 10px 0; text-align: center; width: 100%; margin-left: 0; }

    .hero h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
    .hero::before, .hero::after { display: none; }

    #survey-root {
        padding: 15px;
    }
    #surveyTitle {
        font-size: 2rem;
    }
    #surveyIntroPage p, #thankYouMessage p {
        font-size: 1.1em;
    }
    .question-page h3 {
        font-size: 1.3rem;
    }
    .question-page p {
        font-size: 1.1rem;
    }
    .answer-option {
        padding: 15px 20px;
        margin: 10px auto;
    }
    .answer-option label {
        font-size: 1rem;
    }
    .star {
        font-size: 3em;
    }
    #globalRatingMessage, #otherPrestationInput, #customerEmail {
        padding: 12px;
        font-size: 1rem;
    }
    #surveyIntroPage button, #thankYouMessage button, .survey-navigation-buttons button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    .survey-navigation-buttons {
        flex-direction: row;
        gap: 15px;
    }
    .survey-navigation-buttons .btn {
        flex: 1;
        max-width: none;
    }
}

@media (max-width: 480px) {
    #feedbackChartsContainer {
        grid-template-columns: 1fr;
    }
    .chart-wrapper {
        min-height: 300px;
    }
    .chart-wrapper canvas {
        height: 250px !important;
        max-height: 250px;
    }
}

.rectangles-section {
    padding: 60px 0;
    background-color: #f4f7f6;
}

.rectangles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    width: 100%;
}

.rectangle {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 30px;
    display: flex;
    align-items: center;
    text-align: left;
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.rectangle:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.rectangle-content {
    flex-grow: 1;
    padding-right: 20px;
}

.rectangle-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
}

.rectangle-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bleu { background-color: #007bff; color: #fff; }
.bleu-turquoise { background-color: #1abc9c; color: #fff; }
.vert-turquoise-over { background-color: #2ecc71; color: #fff; }
.vert { background-color: #28a745; color: #fff; }

@media (max-width: 767px) {
    .rectangles {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .rectangle {
        padding: 20px;
        font-size: 14px;
        flex-direction: column;
        align-items: center;
    }
    .rectangle-content {
        padding-right: 0;
        margin-bottom: 15px;
        text-align: center;
    }
    .rectangle-image {
        width: 60px;
        height: 60px;
    }
}

.testimonial-section {
    padding: 80px 0;
    background-color: var(--white);
}

.testimonial-block {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    max-width: 950px;
    margin: 0 auto;
    position: relative;
}

.testimonial-content {
    flex: 1;
    padding-left: 80px;
}

.quote-icon {
    position: absolute;
    left: 0;
    top: -20px;
    font-size: 8rem;
    font-family: 'Georgia', serif;
    color: var(--dark-text);
    opacity: 0.15;
    line-height: 1;
    user-select: none;
}

.quote-text {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--dark-text);
    margin-bottom: 25px;
    line-height: 1.7;
}

.quote-author {
    font-size: 1.1rem;
    color: var(--dark-text);
    font-weight: 400;
}

.quote-author strong {
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}

.testimonial-image {
    flex: 0 0 180px;
}

.testimonial-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .testimonial-block {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }
    .testimonial-image {
        order: -1;
        flex-basis: 150px;
    }
    .testimonial-content {
        padding-left: 0;
    }
    .quote-icon {
        display: none;
    }
    .quote-text {
        font-size: 1.05rem;
    }
}

.video-section {
    padding: 80px 0;
    background-color: var(--light-bg);
    text-align: center;
}

.video-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: #000;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .video-section {
        padding: 40px 0;
    }
    .video-wrapper {
        max-width: 90%;
    }
}

.survey-footer {
    background-color: transparent;
    padding: 15px 0;
    text-align: center;
    margin-top: auto;
    width: 100%;
    font-size: 0.85em;
    color: rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s, color 0.3s;
}

.survey-footer .container {
    padding: 0 10px;
}

.survey-footer p {
    margin-bottom: 5px;
    line-height: 1.4;
}

.survey-footer a {
    color: inherit;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.survey-footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

#customerThemeStyles + .survey-footer {
    color: var(--survey-text-color-footer, rgba(0, 0, 0, 0.4));
}

#customerThemeStyles + .survey-footer a {
    color: var(--survey-text-color-footer-link, inherit);
}

body.dark-mode .survey-footer {
    color: rgba(255, 255, 255, 0.4);
}

body.dark-mode .survey-footer a {
    color: rgba(255, 255, 255, 0.6);
}

/* ================================================================== */
/* ================ NOUVEAUX STYLES AJOUTÉS ICI ===================== */
/* ================================================================== */

/* --- Style pour la page de sondage inactif --- */
#inactiveSurveyContent {
    text-align: center;
    padding: 30px;
    background-color: var(--white); /* Sera surchargé par le thème dynamique */
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 600px;
    border: 1px solid var(--border-color);
}

/* --- Style pour les fonctionnalités IA désactivées dans le dashboard --- */
.ia-feature-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.ia-feature-disabled:hover {
    transform: none; /* Empêche les effets de survol comme le déplacement */
}
.magic-fill-btn.ia-feature-disabled {
    color: #999 !important;
}

/* --- Style pour le badge "Fin d'essai" dans le panel admin --- */
/* Note: Ce style est global et peut être utilisé par admin.js */
.status-badge.status-end_of_trial {
    background-color: #ffc107; /* Jaune */
    color: #212529; /* Texte sombre pour une meilleure lisibilité */
}