/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #F8F9FC;
    color: #1A2332;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

/* ===== TYPOGRAPHIE ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    color: #0B1E3A;
}

h1 {
    font-size: 2.8rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.2rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #C9A84C;
    background: rgba(201, 168, 76, 0.10);
    padding: 4px 14px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.section-title {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 700;
    color: #0B1E3A;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #5A6A7E;
    max-width: 640px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

/* ===== HEADER ===== */
header {
    background: #0B1E3A;
    color: #fff;
    padding: 16px 0;
    border-bottom: 2px solid #C9A84C;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.02em;
}

.logo h1 span {
    color: #C9A84C;
}

.logo p {
    font-size: 0.8rem;
    opacity: 0.7;
    font-weight: 400;
    letter-spacing: 0.06em;
    margin-top: 2px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
}

nav ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.25s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: #fff;
    border-bottom-color: #C9A84C;
}

/* ===== BOUTONS ===== */
.btn {
    display: inline-block;
    background: #C9A84C;
    color: #0B1E3A;
    padding: 14px 36px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.btn:hover {
    background: #B8973A;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(201, 168, 76, 0.30);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #C9A84C;
    color: #C9A84C;
    box-shadow: none;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #0B1E3A 0%, #162D50 100%);
    color: #fff;
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #C9A84C, #F5E6B8, #C9A84C);
}

.hero h2 {
    font-size: 3.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    font-family: 'Playfair Display', serif;
}

.hero h2 span {
    color: #C9A84C;
}

.hero p {
    font-size: 1.2rem;
    max-width: 680px;
    margin: 0 auto 32px;
    opacity: 0.85;
    font-weight: 300;
    line-height: 1.7;
}

.hero .btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== SECTIONS ===== */
section {
    padding: 80px 0;
}

section.alt-bg {
    background: #F0F3F8;
}

/* ===== FEATURES ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #fff;
    padding: 32px 24px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.07);
    border-bottom-color: #C9A84C;
}

.feature-card .icon {
    font-size: 2.4rem;
    margin-bottom: 12px;
    display: block;
    color: #C9A84C;
}

.feature-card h3 {
    font-size: 1.2rem;
    color: #0B1E3A;
    margin-bottom: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.feature-card p {
    font-size: 0.95rem;
    color: #5A6A7E;
}

/* ===== PARTENAIRES SLIDER ===== */
.partenaires-section {
    background: #F8F9FC;
    padding: 60px 0;
    overflow: hidden;
}

.partenaires-wrapper {
    position: relative;
    width: 100%;
}

.partenaires-slider {
    display: flex;
    gap: 40px;
    animation: defilement 20s linear infinite;
    width: max-content;
}

.partenaires-slider:hover {
    animation-play-state: paused;
}

.partenaire-item {
    flex: 0 0 auto;
    background: #fff;
    border-radius: 8px;
    padding: 20px 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #E9EDF4;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    min-height: 80px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partenaire-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.partenaire-item img {
    max-height: 50px;
    width: auto;
    filter: grayscale(20%);
    opacity: 0.8;
    transition: filter 0.3s, opacity 0.3s;
}

.partenaire-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Fallback text (si image manquante) */
.partenaire-item .logo-placeholder {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0B1E3A;
    letter-spacing: 0.04em;
    text-align: center;
}

.partenaire-item .logo-placeholder span {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: #5A6A7E;
    margin-top: 4px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.partenaire-item .logo-placeholder .fmi {
    color: #C9A84C;
}

/* Animation de défilement */
@keyframes defilement {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Arrêt du défilement sur petits écrans */
@media (max-width: 768px) {
    .partenaires-slider {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    .partenaire-item {
        min-width: 120px;
        padding: 16px 20px;
        min-height: 60px;
    }
    .partenaire-item img {
        max-height: 35px;
    }
}

/* ===== PLANS ===== */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.plan-card {
    background: #fff;
    border-radius: 8px;
    padding: 40px 28px 36px;
    text-align: center;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #E9EDF4;
    position: relative;
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.plan-card.popular {
    border: 2px solid #C9A84C;
}

.plan-card .badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #C9A84C;
    color: #0B1E3A;
    padding: 4px 20px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.plan-card .plan-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0B1E3A;
    font-family: 'Playfair Display', serif;
}

.plan-card .plan-rate {
    font-size: 2.8rem;
    font-weight: 700;
    color: #C9A84C;
    margin: 12px 0 4px;
    font-family: 'Playfair Display', serif;
}

.plan-card .plan-rate small {
    font-size: 1rem;
    font-weight: 400;
    color: #5A6A7E;
}

.plan-card .plan-details {
    list-style: none;
    margin: 24px 0 28px;
    text-align: left;
    padding: 0 8px;
}

.plan-card .plan-details li {
    padding: 8px 0;
    border-bottom: 1px solid #F0F2F5;
    font-size: 0.95rem;
    color: #1A2332;
}

.plan-card .plan-details li:last-child {
    border-bottom: none;
}

.plan-card .plan-details li strong {
    color: #0B1E3A;
}

/* ===== SOLUTIONS ===== */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.solution-item {
    background: #fff;
    padding: 28px 24px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border-left: 4px solid #C9A84C;
}

.solution-item h4 {
    font-size: 1.1rem;
    color: #0B1E3A;
    margin-bottom: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.solution-item p {
    color: #5A6A7E;
    font-size: 0.95rem;
}

/* ===== TÉMOIGNAGES ===== */
.temoignage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.temoignage-card {
    background: #fff;
    border-radius: 8px;
    padding: 28px 24px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    border: 1px solid #E9EDF4;
}

.temoignage-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.temoignage-card .avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    float: left;
    margin-right: 16px;
    border: 2px solid #C9A84C;
}

.temoignage-card .nom {
    font-weight: 700;
    color: #0B1E3A;
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.temoignage-card .fonction {
    color: #5A6A7E;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.temoignage-card .texte {
    font-style: italic;
    clear: both;
    color: #1A2332;
    font-size: 0.95rem;
    line-height: 1.6;
}

.temoignage-card .texte::before {
    content: '"';
    color: #C9A84C;
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
    margin-right: 2px;
}

.temoignage-card .texte::after {
    content: '"';
    color: #C9A84C;
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
    margin-left: 2px;
}

/* ===== FAQ ===== */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
}

.faq-item {
    background: #fff;
    padding: 24px 28px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid #E9EDF4;
}

.faq-item h4 {
    color: #0B1E3A;
    font-size: 1.05rem;
    margin-bottom: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.faq-item p {
    color: #5A6A7E;
    font-size: 0.95rem;
}

/* ===== CONTACT ===== */
.contact-form {
    background: #fff;
    padding: 48px;
    border-radius: 8px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.05);
    max-width: 720px;
    margin: 0 auto;
}

.contact-form .form-group {
    margin-bottom: 24px;
}

.contact-form label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: #0B1E3A;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #DCE1E8;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.25s ease;
    background: #FCFCFD;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #C9A84C;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
    background: #fff;
}

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

.contact-form .btn {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
}

/* ===== FOOTER ===== */
footer {
    background: #0B1E3A;
    color: rgba(255, 255, 255, 0.7);
    padding: 48px 0 24px;
    margin-top: 40px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 14px;
    font-family: 'Playfair Display', serif;
}

.footer-col p,
.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: #C9A84C;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    margin-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero h2 {
        font-size: 2.6rem;
    }
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
        margin-top: 12px;
    }
    .hero {
        padding: 60px 0 50px;
    }
    .hero h2 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .faq-grid {
        grid-template-columns: 1fr;
    }
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .contact-form {
        padding: 28px 20px;
    }
    .temoignage-card .avatar {
        float: none;
        margin: 0 auto 12px;
        display: block;
    }
    .temoignage-card .nom,
    .temoignage-card .fonction {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.6rem;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .plans-grid {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
}