* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #5b5fcc;
    --primary-dark: #4a4db3;
    --success-green: #198754;
    --info-cyan: #0dcaf0;
    --warning-yellow: #ffc107;
    --danger-red: #dc3545;
    --light-gray: #f3f4f7;
    --medium-gray: #d8dbe0;
    --dark-gray: #6c757d;
    --text-dark: #212529;
    --white: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
}

nav.scrolled .logo {
    font-size: 1rem;
}

nav.scrolled .logo img {
    height: 40px;
}

nav.scrolled .nav-container {
    padding: 0.4rem 2rem;
}

nav.scrolled .nav-links a {
    font-size: 0.9rem;
}

nav.scrolled .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: padding 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
    transition: font-size 0.3s ease;
    cursor: pointer;
}

.logo img {
    height: 80px;
    width: auto;
    transition: height 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #ffffff;
    background: var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #000000;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-primary:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 95, 204, 0.4);
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    color: #000000;
    border: 2px solid #000000;
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: #ffffff;
    border-color: var(--primary-blue);
}



/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    padding: 2rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -5%;
    left: -5%;
    right: -5%;
    bottom: -5%;
    background: url('image_fond_dojo.jpg');
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease-out;
    transform: translate(var(--mouse-x, 0px), var(--mouse-y, 0px));
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.15), rgba(10, 88, 202, 0.25));
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero .tagline {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    font-weight: 300;
    font-weight: bold;
}

.hero .subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-white {
    background: var(--white);
    color: #000000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--white);
}

.btn-white:hover {
    background: var(--primary-blue);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(91, 95, 204, 0.4);
    border-color: var(--white);
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--dark-gray);
    max-width: 700px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(13, 110, 253, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(13, 110, 253, 0.15);
}

.feature-icon {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon img {
    width: 100%;
    height: 160px;
    max-width: 160px;
    object-fit: contain;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--dark-gray);
    line-height: 1.8;
}

/* Highlight Section */
.highlight {
    background: linear-gradient(135deg, var(--light-gray), var(--white));
    padding: 6rem 2rem;
}

.highlight-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.highlight h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.highlight-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.highlight-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.highlight-item .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.highlight-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.highlight-item p {
    color: var(--dark-gray);
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--success-green), #20c997);
    color: var(--white);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(25, 135, 84, 0.3);
}

/* Before/After Section */
.before-after {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin: 3rem 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.comparison-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
}

.comparison-card:hover {
    transform: translateY(-5px);
}

.comparison-card.before {
    border: 2px solid var(--danger-red);
}

.comparison-card.after {
    border: 2px solid var(--primary-dark);
}

.comparison-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.comparison-badge.before-badge {
    background: linear-gradient(135deg, var(--danger-red), #c82333);
    color: var(--white);
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.3);
}

.comparison-badge.after-badge {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 2px 10px rgba(25, 135, 84, 0.3);
}

.comparison-illustration {
    font-size: 8rem;
    margin: 2rem 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparison-illustration img {
    width: 260px;
    height: 260px;
    object-fit: contain;
}

.comparison-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.comparison-card.before h3 {
    color: var(--danger-red);
}

.comparison-card.after h3 {
    color: var(--primary-blue);
}

/* Pricing Section */
.pricing {
    padding: 6rem 2rem;
    background: var(--white);
}

.pricing-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.pricing-card {
    background: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 320px;
    max-width: 400px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.pricing-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.pricing-card.featured {
    border: 2px solid var(--primary-blue);
    box-shadow: 0 4px 20px rgba(91, 95, 204, 0.15);
}

.pricing-card.featured:hover {
    box-shadow: 0 12px 40px rgba(91, 95, 204, 0.25);
}

.pricing-card .popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.pricing-card .card-header {
    padding: 2.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--light-gray);
}

.pricing-card .card-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.pricing-card .card-body {
    padding: 2rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pricing-card .card-price {
    margin-bottom: 2rem;
}

.pricing-card .price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.pricing-card .price-period {
    font-size: 1.25rem;
    color: var(--dark-gray);
    font-weight: 400;
}

.pricing-card .feature-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 2rem 0 !important;
    text-align: left;
    flex: 1;
}

.pricing-card .feature-list li {
    padding: 0.75rem 0 0.75rem 2rem;
    color: var(--text-dark);
    border-bottom: 1px solid var(--light-gray);
    font-size: 1rem;
    list-style: none !important;
    list-style-type: none !important;
    position: relative;
}

.pricing-card .feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-weight: bold;
    font-size: 1.25rem;
}

.pricing-card .feature-list li:last-child {
    border-bottom: none;
}

.pricing-card .feature-list li strong {
    color: var(--primary-blue);
    font-weight: 600;
}

.pricing-card .card-body .btn {
    width: 100%;
    margin-top: auto;
}

/* Responsive Pricing */
@media (max-width: 768px) {
    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .pricing-card {
        max-width: 100%;
        width: 100%;
    }
}

.comparison-card p {
    color: var(--dark-gray);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* CTA Section */
.cta {
    position: relative;
    color: var(--white);
    padding: 6rem 2rem;
    text-align: center;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -5%;
    left: -5%;
    right: -5%;
    bottom: -5%;
    background: url('bgnd_opt.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transition: transform 0.3s ease-out;
    z-index: -2;
}

.cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(91, 95, 204, 0.85), rgba(74, 77, 179, 0.85));
    z-index: -1;
}

.cta .container {
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 2rem 1.5rem;
    position: relative;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-tagline {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.copyright {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* RGPD Banner */
.rgpd-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: rgba(33, 37, 41, 0.98);
    color: var(--white);
    padding: 1.5rem 2rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: bottom 0.4s ease;
}

.rgpd-banner.visible {
    bottom: 0;
}

.rgpd-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.rgpd-text {
    flex: 1;
    min-width: 300px;
}

.rgpd-text p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.rgpd-text a {
    color: var(--info-cyan);
    text-decoration: underline;
}

.rgpd-text a:hover {
    color: var(--white);
}

.rgpd-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.rgpd-actions .btn {
    white-space: nowrap;
    color: white !important;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .tagline {
        font-size: 1.25rem;
    }
    
    .hero .subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .highlight-features {
        grid-template-columns: 1fr;
    }
    
    .rgpd-content {
        flex-direction: column;
        text-align: center;
    }
    
    .rgpd-actions {
        justify-content: center;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Contact Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    margin: auto;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid var(--medium-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    color: var(--white);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
}

.close-modal {
    color: var(--white);
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    transition: transform 0.2s ease;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group .required {
    color: var(--danger-red);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--medium-gray);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select {
    cursor: pointer;
    background-color: var(--white);
}

.checkbox-group {
    margin-top: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-blue);
}

.checkbox-label span {
    flex: 1;
}

.error-message {
    display: none;
    color: var(--danger-red);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--danger-red);
}

.form-group.error .error-message {
    display: block;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--medium-gray);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    display: block;
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.form-message.error {
    display: block;
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* ===== Page Synchronisation FFJDA ===== */

/* Sommaire */
.table-of-contents {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.table-of-contents h2 {
    font-size: 1.5rem;
    margin-top: 0 !important;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.table-of-contents ul {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.table-of-contents li {
    margin-bottom: 0.75rem;
}

.table-of-contents a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-of-contents a:hover {
    color: var(--text-dark);
    padding-left: 0.5rem;
}

.table-of-contents a::before {
    content: "→";
    font-weight: bold;
}

/* Accordéon */
.accordion {
    margin: 1.5rem 0;
}

.accordion-item {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-header {
    background: #f8f9fa;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
    user-select: none;
}

.accordion-header:hover {
    background: #e9ecef;
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-dark);
}

.accordion-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue);
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content-inner {
    padding: 1.5rem;
}

.accordion-item.active .accordion-content {
    max-height: 5000px;
}

/* Options de synchronisation */
.sync-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.sync-option {
    background: var(--white);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.sync-option:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.sync-option-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.sync-option h3 {
    margin-top: 0;
    color: var(--primary-blue);
}

.sync-option h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.sync-option ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.sync-option ol li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.sync-option-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.badge-automation {
    background: #d1e7dd;
    color: #0f5132;
}

.badge-push {
    background: #cfe2ff;
    color: #084298;
}

.badge-pull {
    background: #fff3cd;
    color: #856404;
}

.info-box {
    background: #cfe2ff;
    border-left: 4px solid #0d6efd;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.info-box p {
    margin-bottom: 0;
    color: #084298;
}

/* Responsive pour la page de synchronisation */
@media (max-width: 768px) {
    .sync-options {
        grid-template-columns: 1fr;
    }
    
    .table-of-contents {
        padding: 1.5rem;
    }
}

/* ===== Pages Légales (Mentions légales, Politique de confidentialité, Info FFJDA) ===== */

.legal-page {
    padding: 8rem 2rem 4rem;
    background: var(--white);
    min-height: 100vh;
}

.legal-container {
    max-width: 1400px;
    margin: 0 auto;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
}

.legal-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.legal-header p {
    color: var(--dark-gray);
    font-size: 1.1rem;
}

.legal-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.legal-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    scroll-margin-top: 100px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.legal-content p {
    color: var(--dark-gray);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-content li {
    color: var(--dark-gray);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.legal-content strong {
    color: var(--text-dark);
    font-weight: 600;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    gap: 0.75rem;
}

/* Info Boxes pour page FFJDA */
.highlight-box,
.warning-box,
.success-box {
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.highlight-box {
    background: #e3f2fd;
    border-left: 4px solid var(--primary-blue);
}

.warning-box {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
}

.success-box {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
}

.highlight-box p,
.warning-box p,
.success-box p {
    margin-bottom: 0.5rem;
}

.highlight-box p:last-child,
.warning-box p:last-child,
.success-box p:last-child {
    margin-bottom: 0;
}

/* Step Numbers */
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

/* Sync Options - Grid 3 colonnes */
.sync-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

@media (max-width: 1200px) {
    .sync-options {
        grid-template-columns: 1fr;
    }
}

/* Responsive Pages Légales */
@media (max-width: 768px) {
    .legal-page {
        padding: 6rem 1rem 2rem;
    }
    
    .legal-content {
        padding: 1.5rem;
    }
    
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .legal-content h2 {
        font-size: 1.5rem;
    }
    
    .legal-content h3 {
        font-size: 1.25rem;
    }
}