/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a365d;
    --primary-dark: #0f2847;
    --primary-light: #2c5282;
    --accent-color: #38a169;
    --accent-light: #48bb78;
    --text-color: #2d3748;
    --text-light: #718096;
    --bg-color: #ffffff;
    --bg-light: #f7fafc;
    --bg-gray: #edf2f7;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

ul {
    list-style: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--accent-light);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Header */
.header {
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.footer-logo {
    height: 60px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-accent {
    color: var(--accent-color);
}

.nav-desktop {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--accent-color);
}

.header-actions {
    display: flex;
    gap: 12px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-mobile {
    display: none;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
}

.nav-menu-mobile {
    padding: 20px;
}

.nav-menu-mobile li {
    margin-bottom: 15px;
}

.nav-menu-mobile a {
    display: block;
    padding: 10px;
    color: var(--text-color);
    font-weight: 500;
}

/* Hero Section */
.hero {
    position: relative;
    height: 300px;
    background: url('images/header-main.png') center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 79, 159, 0.45);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero p {
    font-size: 20px;
    opacity: 0.9;
}

/* Announcement Section */
.announcement {
    padding: 40px 0;
    background-color: var(--bg-light);
}

.announcement-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background-color: var(--bg-color);
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent-color);
}

.announcement-icon {
    flex-shrink: 0;
    color: var(--accent-color);
}

.announcement-box p {
    font-size: 16px;
    line-height: 1.7;
}

.announcement-box strong {
    color: var(--primary-color);
}

/* Main Content */
.main-content {
    padding: 60px 0;
}

/* Accordion Sections */
.accordion-section {
    background-color: var(--bg-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.accordion-section.highlight {
    border: 2px solid var(--accent-color);
}

.accordion-section.highlight .section-header {
    background-color: rgba(56, 161, 105, 0.05);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    cursor: pointer;
    transition: var(--transition);
}

.section-header:hover {
    background-color: var(--bg-light);
}

.section-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    border-radius: 10px;
}

.section-header h2 {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.badge {
    background-color: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.accordion-arrow {
    flex-shrink: 0;
    color: var(--text-light);
    transition: var(--transition);
}

.section-header.active .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    border-top: 1px solid var(--border-color);
    padding: 0 25px;
}

.accordion-content.open {
    display: block;
}

/* FAQ Items */
.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

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

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question svg {
    flex-shrink: 0;
    color: var(--accent-color);
    transition: var(--transition);
}

.faq-question.active svg {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding-bottom: 18px;
}

.faq-answer.open {
    display: block;
}

.quest-title {
    color: #009ee0;
    font-size: 16px;
    font-weight: 600;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.7;
    padding-left: 5px;
}

.faq-answer ul {
    list-style: disc;
    padding-left: 24px;
    margin: 12px 0;
    color: var(--text-light);
    line-height: 1.7;
}

.faq-answer ul li {
    margin-bottom: 8px;
}

/* Prime cards */
.prime-section {
    margin-bottom: 24px;
}

.prime-section-title {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    padding-left: 0;
}

.prime-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 600px) {
    .prime-cards {
        grid-template-columns: 1fr;
    }
}

.prime-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    position: relative;
    background: #fff;
}

.prime-card--highlight {
    border-color: #009ee0;
    border-width: 2px;
}

.prime-card-label {
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
    padding-left: 0;
    line-height: 1.4;
}

.prime-card-amount {
    font-size: 26px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
    padding-left: 0;
}

.prime-badge--top {
    display: inline-block;
    font-size: 11px;
    background: #009ee0;
    color: #fff;
    border-radius: 4px;
    padding: 2px 8px;
    margin-bottom: 8px;
}

.prime-badge--precaires {
    display: inline-block;
    font-size: 11px;
    background: #e6f4ea;
    color: #2e7d32;
    border: 1px solid #81c784;
    border-radius: 4px;
    padding: 2px 8px;
}

.prime-badge--modestes {
    display: inline-block;
    font-size: 11px;
    background: #e8f4fb;
    color: #0066aa;
    border: 1px solid #0066aa;
    border-radius: 4px;
    padding: 2px 8px;
}

.prime-badge--classiques {
    display: inline-block;
    font-size: 11px;
    background: #f0f0f0;
    color: #555;
    border: 1px solid #aaa;
    border-radius: 4px;
    padding: 2px 8px;
}

/* Prime table */
.prime-table-intro {
    margin: 20px 0 10px;
    font-size: 14px;
    color: #444;
    padding-left: 0;
}

.prime-table-wrapper {
    overflow-x: auto;
}

.prime-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.prime-table thead tr {
    background: #004F9F;
    color: #fff;
}

.prime-table thead th {
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
}

.prime-table tbody tr:nth-child(even) {
    background: #f5f5f5;
}

.prime-table tbody tr.region-header td {
    background: #e8f0fb;
    color: #004F9F;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 14px;
    border-bottom: 2px solid #004F9F;
}

.prime-table tbody td {
    padding: 9px 14px;
    color: #333;
    border-bottom: 1px solid #e8e8e8;
}

.prime-table-note {
    font-size: 12px;
    color: #666;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 10px 14px;
    margin-top: 8px;
    padding-left: 14px;
}

.checkmark-list {
    list-style: none;
    padding-left: 8px;
}

.checkmark-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 6px;
}

.checkmark-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #004F9F;
    font-weight: 700;
}

.fiche-link {
    color: #004F9F;
    text-decoration: underline;
}

.fiche-link:hover {
    color: #003070;
}

.section-intro {
    padding: 16px 0 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e8e8e8;
}

.section-intro p {
    margin-bottom: 10px;
}

.flamme-verte-box {
    background: #f0faf2;
    border: 1px solid #5cb87a;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 16px 0;
    color: #2d6a3f;
    font-size: 14px;
}

.flamme-verte-box p {
    margin: 0;
}

/* Bonification section */
.bonification-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.bonification-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.bonification-table thead tr {
    background: #f0f4f8;
    color: #333;
}

.bonification-table thead th {
    padding: 10px 14px;
    text-align: left;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid #d0d8e4;
}

.bonification-table tbody tr {
    border-bottom: 1px solid #e8e8e8;
    vertical-align: top;
}

.bonification-table tbody td {
    padding: 14px;
    color: #333;
    font-size: 14px;
}

.bonification-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.cee-fiche {
    display: inline-block;
    background: #e8effc;
    color: #2a5cbf;
    border: 1px solid #b8ccf0;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.formula-box {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 13px;
    font-family: monospace;
    margin-bottom: 4px;
    color: #333;
}

.equip-subtitle {
    color: #888;
    font-size: 12px;
    display: block;
    margin-top: 3px;
}

/* Header CTA button */
.header-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #004F9F;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
}

.header-cta:hover {
    background: #003070;
    transform: translateY(-1px);
}

.header-cta--phone {
    background: #1a8a3c;
}

.header-cta--phone:hover {
    background: #136b2e;
}

.header-cta svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .header-actions {
        display: none;
    }
}

.nav-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 20px 20px;
}

.nav-mobile-actions .header-cta {
    justify-content: center;
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    font-size: 15px;
}

/* Floating CTA button */
.floating-cta {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #004F9F;
    color: #fff;
    text-decoration: none;
    padding: 14px 22px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 18px rgba(0, 79, 159, 0.45);
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    white-space: nowrap;
}

.floating-cta:hover {
    background: #003070;
    box-shadow: 0 6px 24px rgba(0, 79, 159, 0.55);
    transform: translateY(-2px);
}

.floating-cta--phone {
    bottom: 100px;
    background: #1a8a3c;
    box-shadow: 0 4px 18px rgba(26, 138, 60, 0.45);
}

.floating-cta--phone:hover {
    background: #136b2e;
    box-shadow: 0 6px 24px rgba(26, 138, 60, 0.55);
}

.floating-cta svg {
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .floating-cta {
        bottom: 20px;
        right: 16px;
        padding: 12px 18px;
        font-size: 13px;
    }

    .floating-cta--phone {
        bottom: 84px;
    }
}

/* Footer */
.footer {
    background-color: #666;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo-text {
    color: white;
}

.footer-brand .logo-accent {
    color: var(--accent-light);
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.footer-brand .logo {
    flex-shrink: 0;
    flex-direction: column;
    align-items: flex-start;
}

.footer-description {
    margin-top: 0;
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.9;
}

.footer-links h4,
.footer-legal h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--accent-light);
}

.footer-links ul,
.footer-legal ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a,
.footer-legal a {
    font-size: 14px;
    opacity: 0.8;
}

.footer-links a:hover,
.footer-legal a:hover {
    opacity: 1;
    color: var(--accent-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-desktop {
        display: none;
    }

    .header-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-mobile.open {
        display: block;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 250px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .announcement-box {
        flex-direction: column;
        text-align: center;
    }

    .section-header {
        flex-wrap: wrap;
    }

    .section-header h2 {
        font-size: 16px;
    }

    .accordion-content {
        padding: 0 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .section-icon {
        width: 40px;
        height: 40px;
    }

    .section-icon svg {
        width: 20px;
        height: 20px;
    }

    .section-header h2 {
        font-size: 14px;
    }

    .badge {
        font-size: 10px;
        padding: 3px 8px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.accordion-content.open {
    animation: fadeIn 0.3s ease;
}

.faq-answer.open {
    animation: fadeIn 0.3s ease;
}
