/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Palette institutionnelle Waterfall */
    --primary-dark: #2c3e50;      /* Bleu foncé institutionnel (footer) */
    --primary-light: #34495e;     /* Bleu moyen */
    --accent-blue: #3498db;       /* Bleu accent pour touches de couleur */
    --text-dark: #2c3e50;        /* Texte principal */
    --text-medium: #34495e;       /* Texte secondaire */
    --text-light: #7f8c8d;       /* Texte subtil */
    --background-white: #ffffff;  /* Fond blanc */
    --background-light: #f8f9fa;  /* Fond gris très clair */
    --background-medium: #ecf0f1; /* Fond gris clair */
    --border-light: #bdc3c7;     /* Bordures subtiles */
    --success-green: #27ae60;     /* Vert pour les points positifs */
    --alert-red: #e74c3c;        /* Rouge pour les alertes */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-white);
}

/* Language Switcher */
.language-switcher {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 100;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
    font-weight: 600;
}

/* Hero section */
.hero {
    background: var(--primary-dark);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo {
    margin-bottom: 2rem;
}

.logo-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1); /* Rend le logo blanc */
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.hero-subtitle p {
    margin-bottom: 1rem;
}

.hero-tagline {
    font-style: italic;
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 1rem !important;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

/* Sections principales */
.section {
    padding: 4rem 2rem;
}

.section-content {
    max-width: 1000px;
    margin: 0 auto;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    line-height: 1.3;
    color: var(--text-dark);
}

.section-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-medium);
}

.section-text p {
    margin-bottom: 1.5rem;
}

/* Section problème */
.section-problem {
    background-color: var(--background-light);
}

/* Section solution */
.section-solution {
    background-color: var(--background-white);
}

.solution-features {
    list-style: none;
    margin: 2rem 0;
}

.solution-features li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.solution-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-weight: bold;
}

.solution-tagline {
    font-weight: 600;
    color: var(--primary-light);
    font-size: 1.2rem;
}

/* Section comparaison */
.section-comparison {
    background-color: var(--background-white);
}

.comparison-table {
    background: var(--background-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid var(--border-light);
    margin-top: 2rem;
}

.comparison-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--primary-dark);
    color: white;
}

.comparison-header h3 {
    padding: 1.5rem;
    text-align: center;
    font-size: 1.1rem;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--border-light);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-col {
    padding: 1.25rem 1.5rem;
}

.comparison-col-left {
    background-color: var(--background-light);
    color: var(--text-medium);
    border-right: 1px solid var(--border-light);
}

.comparison-col-right {
    background-color: var(--background-white);
    color: var(--text-dark);
    font-weight: 600;
}

/* Section Contact */
.section-contact {
    background-color: var(--background-light);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-text {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-form {
    background: var(--background-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid var(--border-light);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-form input:not([type="checkbox"]),
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-light);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    margin-bottom: 1rem;
    transition: border-color 0.2s ease;
}

.contact-form input:not([type="checkbox"]):focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
}

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

.contact-form button {
    width: 100%;
    margin-top: 0.5rem;
}

/* Privacy notice */
.privacy-notice {
    margin: 1rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    margin-top: 0.1rem;
    flex-shrink: 0;
    width: auto;
}

.checkbox-label small {
    color: var(--text-light);
    line-height: 1.4;
}

/* CAPTCHA */
.captcha-container {
    background: var(--background-light);
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid var(--border-light);
    margin-bottom: 1rem;
}

.captcha-label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.captcha-question {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.captcha-question span {
    font-weight: bold;
    color: var(--primary-dark);
    min-width: 150px;
}

.captcha-input {
    max-width: 100px;
    margin-bottom: 0 !important;
}

/* Messages de statut */
.status-message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-align: center;
}

.status-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo-image {
    max-width: 200px;
    width: 100%;
    height: auto;
    opacity: 0.7;
    filter: brightness(0) invert(1); /* Rend le logo blanc */
}

/* Section reste à faire */
.section-reste-a-faire {
    background: var(--background-light);
    border-left: 4px solid var(--accent-blue);
}

.reste-a-faire-list {
    list-style: none;
    margin: 1.5rem 0;
}

.reste-a-faire-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.reste-a-faire-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

.reste-a-faire-tagline {
    font-style: italic;
    color: var(--text-dark);
    background: var(--background-medium);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    border-left: 3px solid var(--accent-blue);
}

/* Section exigences */
.section-exigences {
    background-color: var(--background-white);
}

.exigences-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.exigences-feature {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-light);
}

.exigences-feature h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.exigences-tagline {
    font-style: italic;
    color: var(--text-dark);
    background: var(--background-medium);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    border-left: 3px solid var(--primary-light);
}

/* Section secteurs */
.section-secteurs {
    background-color: var(--background-light);
}

.secteurs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.secteur-card {
    background: var(--background-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-top: 4px solid var(--accent-blue);
    border: 1px solid var(--border-light);
}

.secteur-card h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Section positionnement */
.section-positionnement {
    background-color: var(--background-white);
}

.positionnement-intro {
    font-size: 1.2rem;
    text-align: center;
    color: var(--text-medium);
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--background-light);
    border-radius: 8px;
    border-left: 4px solid var(--accent-blue);
}

.concurrents-comparison {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.concurrent-item {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--border-light);
}

.concurrent-item.waterfall-item {
    background: var(--primary-dark);
    color: white;
    border-left: 4px solid var(--accent-blue);
}

.concurrent-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.concurrent-item.waterfall-item h4 {
    color: white;
}

.concurrent-label {
    font-weight: 600;
    color: var(--text-light);
}

.concurrent-item.waterfall-item .concurrent-label {
    color: rgba(255,255,255,0.9);
}

.concurrent-desc p {
    margin: 0.5rem 0 0 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section h2 {
        font-size: 1.5rem;
    }
    
    .comparison-header,
    .comparison-row {
        grid-template-columns: 1fr;
    }
    
    .comparison-col-left {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    
    .exigences-features {
        grid-template-columns: 1fr;
    }
    
    .secteurs-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-image {
        max-width: 280px;
    }
    
    .footer-logo-image {
        max-width: 150px;
    }
    
    .language-switcher {
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .lang-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .captcha-question {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .captcha-question span {
        min-width: auto;
    }
}

/* Modal de consentement RGPD */
#consent-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

#consent-banner .consent-modal {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative;
    animation: slideIn 0.4s ease-out;
}

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

.consent-content {
    text-align: center;
}

.consent-text h3 {
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    color: var(--primary-dark);
    font-weight: 600;
}

.consent-text p {
    margin: 0 0 2rem 0;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-medium);
}

.consent-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.consent-actions .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    min-width: 120px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.consent-actions .btn-secondary {
    background: var(--background-light);
    border: 2px solid var(--border-light);
    color: var(--text-medium);
}

.consent-actions .btn-secondary:hover {
    background: var(--border-light);
    transform: translateY(-1px);
}

.consent-actions .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.consent-actions .btn-link {
    background: none;
    border: none;
    color: var(--accent-blue);
    text-decoration: underline;
    padding: 0.5rem;
    font-size: 0.9rem;
}

.consent-actions .btn-link:hover {
    color: var(--primary-dark);
}

/* Responsive pour modal consentement */
@media (max-width: 768px) {
    #consent-banner {
        padding: 1rem;
    }
    
    #consent-banner .consent-modal {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .consent-text h3 {
        font-size: 1.2rem;
    }
    
    .consent-text p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .consent-actions .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        min-width: 100px;
    }
}