/* ========================================================
   XServHOST — Solutions Financières
   Feuille de style principale v1.0
   ARTEX 2025 SL — CIF B21665013
   ======================================================== */

/* === Variables de marque === */
:root {
    --primary:          #1B4F8A;
    --primary-dark:     #0D2B4F;
    --primary-light:    #2D6CB0;
    --secondary:        #F0A500;
    --secondary-dark:   #C88800;
    --secondary-light:  #F7C340;
    --dark:             #1A1A2E;
    --text:             #384150;
    --text-muted:       #6B7A8D;
    --bg-white:         #FFFFFF;
    --bg-light:         #F5F8FD;
    --bg-blue:          #EAF1FB;
    --border:           #DDE3EF;
    --success:          #1E8C5F;
    --danger:           #C0392B;
    --shadow-sm:        0 2px 8px rgba(27, 79, 138, 0.08);
    --shadow-md:        0 4px 24px rgba(27, 79, 138, 0.14);
    --shadow-lg:        0 10px 48px rgba(27, 79, 138, 0.20);
    --radius:           10px;
    --radius-lg:        18px;
    --transition:       all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Inter', 'Roboto', 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg-white);
    line-height: 1.7;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
a:hover { color: var(--secondary); }
ul { list-style: none; }

/* === Typographie === */
h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--primary-dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p  { margin-bottom: 1rem; }

/* === Mise en page === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 50px 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* === En-tête & Navigation === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}
.logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
}
.logo span { color: var(--secondary); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-links a {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background: var(--bg-blue);
}
.nav-cta {
    background: var(--secondary) !important;
    color: var(--primary-dark) !important;
    font-weight: 700 !important;
    padding: 9px 20px !important;
    border-radius: 8px !important;
}
.nav-cta:hover { background: var(--secondary-dark) !important; }

/* Hamburger mobile */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* === Boutons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-secondary {
    background: var(--secondary);
    color: var(--primary-dark);
    border-color: var(--secondary);
}
.btn-secondary:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}
.btn-outline-white {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: #fff;
}
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* === Titres de section === */
.section-label {
    display: inline-block;
    background: var(--bg-blue);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}
.section-title {
    margin-bottom: 16px;
}
.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 580px;
}
.section-header { margin-bottom: 50px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin: 0 auto; }

/* === Hero section === */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #2D6CB0 100%);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/hero-home.jpg') center/cover no-repeat;
    opacity: 0.18;
}
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 700px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(240,165,0,0.2);
    border: 1px solid rgba(240,165,0,0.5);
    color: var(--secondary-light);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}
.hero h1 {
    color: #fff;
    margin-bottom: 20px;
}
.hero h1 span { color: var(--secondary-light); }
.hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 36px;
    max-width: 560px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat-item { text-align: center; }
.hero-stat-item strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary-light);
    line-height: 1;
}
.hero-stat-item span {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
}

/* Hero image side */
.hero-visual {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 46%;
    overflow: hidden;
}
.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

/* === Page hero (sous-pages) === */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/page-hero-bg.jpg') center/cover no-repeat;
    opacity: 0.1;
}
.page-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
}
.page-hero .breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 16px;
}
.page-hero .breadcrumb a { color: var(--secondary-light); }
.page-hero .breadcrumb a:hover { text-decoration: underline; }
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* === Cartes === */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.card-body { padding: 28px; }

/* Carte de produit */
.product-card .card-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: var(--bg-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.6rem;
    color: var(--primary);
    transition: var(--transition);
}
.product-card:hover .card-icon {
    background: var(--primary);
    color: #fff;
}
.product-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.product-card p { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 0; }
.product-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 16px;
}
.product-card .card-link:hover { color: var(--secondary-dark); }

/* Carte fonctionnalité */
.feature-card {
    text-align: center;
    padding: 36px 24px;
}
.feature-card .feature-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--bg-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--primary);
    transition: var(--transition);
}
.feature-card:hover .feature-icon {
    background: var(--primary);
    color: #fff;
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* Carte témoignage */
.testimonial-card {
    padding: 32px;
    position: relative;
}
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 20px;
    right: 28px;
    font-size: 5rem;
    color: var(--bg-blue);
    font-family: Georgia, serif;
    line-height: 1;
}
.testimonial-stars { color: var(--secondary); font-size: 0.9rem; margin-bottom: 14px; }
.testimonial-text {
    font-size: 0.95rem;
    color: var(--text);
    font-style: italic;
    margin-bottom: 20px;
}
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}
.testimonial-author-name { font-weight: 700; font-size: 0.95rem; }
.testimonial-author-role { font-size: 0.8rem; color: var(--text-muted); }

/* Carte blog */
.blog-card .blog-img {
    height: 200px;
    overflow: hidden;
}
.blog-card .blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.blog-card:hover .blog-img img { transform: scale(1.05); }
.blog-card .blog-body { padding: 24px; }
.blog-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--bg-blue);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.blog-card h3 { font-size: 1rem; margin-bottom: 10px; }
.blog-card h3 a:hover { color: var(--primary); }
.blog-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    gap: 14px;
    align-items: center;
}
.blog-meta i { font-size: 0.75rem; }

/* === Section statistiques / compteurs === */
.stats-section { background: var(--primary); padding: 60px 0; }
.stat-item { text-align: center; color: #fff; }
.stat-item .stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--secondary-light);
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}
.stat-item p { font-size: 0.9rem; color: rgba(255,255,255,0.8); margin: 0; }

/* === Bandeau d'avertissement risque === */
.risk-banner {
    background: #FFF8E7;
    border-left: 4px solid var(--secondary);
    padding: 14px 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 0.85rem;
    color: #7A5500;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
}
.risk-banner i { color: var(--secondary-dark); margin-top: 2px; flex-shrink: 0; }

.risk-strip {
    background: #FFF3CD;
    border-top: 1px solid #FFDFA0;
    padding: 10px 0;
    font-size: 0.78rem;
    color: #856404;
    text-align: center;
}

/* === Formulaire de contact === */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.93rem;
    color: var(--text);
    background: var(--bg-white);
    transition: var(--transition);
    font-family: inherit;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 79, 138, 0.12);
}
textarea.form-control { resize: vertical; min-height: 120px; }
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.87rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.form-check input { margin-top: 3px; flex-shrink: 0; accent-color: var(--primary); }
.form-check a { color: var(--primary); text-decoration: underline; }
.form-success {
    display: none;
    background: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
    border-radius: var(--radius);
    padding: 14px 20px;
    font-size: 0.93rem;
    margin-top: 16px;
}
.form-error-msg {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 4px;
    display: none;
}

/* === Info contact === */
.contact-info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;
}
.contact-info-item h4 { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 4px; }
.contact-info-item p { color: var(--text); font-weight: 500; margin: 0; }

/* === Équipe === */
.team-card { text-align: center; }
.team-card .team-photo {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.team-card .team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-card .team-body { padding: 22px; }
.team-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.team-card span { font-size: 0.85rem; color: var(--text-muted); }
.team-social { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.team-social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--primary);
}
.team-social a:hover { background: var(--primary); color: #fff; }

/* === Section "Comment ça marche" === */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps-grid::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}
.step-item { text-align: center; padding: 0 16px; position: relative; z-index: 1; }
.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 3px solid var(--bg-white);
    box-shadow: 0 0 0 3px var(--primary);
}
.step-item h4 { font-size: 1rem; margin-bottom: 8px; }
.step-item p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* === FAQ === */
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    text-align: left;
    padding: 18px 22px;
    background: var(--bg-white);
    border: none;
    cursor: pointer;
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-family: inherit;
    transition: var(--transition);
}
.faq-question:hover { background: var(--bg-light); color: var(--primary); }
.faq-question i { transition: var(--transition); color: var(--primary); flex-shrink: 0; }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.3s ease;
}
.faq-answer-inner {
    padding: 0 22px 18px;
    font-size: 0.93rem;
    color: var(--text-muted);
    line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 400px; }

/* === CTA Section === */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #2D6CB0 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 50%, rgba(255,255,255,0.06) 0%, transparent 60%);
}
.cta-section .container { position: relative; z-index: 2; }
.cta-section h2 { color: #fff; margin-bottom: 14px; }
.cta-section p { color: rgba(255,255,255,0.8); font-size: 1.05rem; max-width: 540px; margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* === Pied de page === */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.7);
    padding-top: 70px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
}
.footer-brand .logo { color: #fff; margin-bottom: 16px; }
.footer-brand .logo span { color: var(--secondary-light); }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.6); margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}
.footer-social a:hover { background: var(--secondary); color: var(--primary-dark); }
.footer-col h5 {
    color: #fff;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { font-size: 0.88rem; color: rgba(255,255,255,0.6); }
.footer-col ul a:hover { color: var(--secondary-light); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-disclaimer {
    background: rgba(0,0,0,0.2);
    padding: 18px;
    border-radius: var(--radius);
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
    margin-bottom: 24px;
}
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.55); font-size: 0.8rem; }
.footer-links a:hover { color: var(--secondary-light); }

/* === Section bg alternée === */
.bg-light-section { background: var(--bg-light); }
.bg-blue-section  { background: var(--bg-blue);  }
.bg-dark-section  { background: var(--primary-dark); color: #fff; }

/* === Badges & Tags === */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}
.badge-primary { background: var(--bg-blue); color: var(--primary); }
.badge-gold    { background: #FFF3CD;       color: #856404; }

/* === Chez nous / valeurs === */
.value-item { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 30px; }
.value-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--bg-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
    flex-shrink: 0;
}
.value-item h4 { font-size: 1rem; margin-bottom: 6px; }
.value-item p  { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* === Image illustrative avec overlay === */
.img-block { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.img-block img { width: 100%; height: 100%; object-fit: cover; }
.img-block-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: #fff;
    border-radius: var(--radius);
    padding: 14px 18px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 12px;
}
.img-block-badge .badge-icon {
    width: 42px;
    height: 42px;
    background: var(--bg-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
}
.img-block-badge strong { display: block; font-size: 1.1rem; color: var(--primary-dark); }
.img-block-badge span { font-size: 0.78rem; color: var(--text-muted); }

/* === Politique de confidentialité === */
.legal-content h2 { font-size: 1.4rem; margin: 36px 0 14px; color: var(--primary); }
.legal-content h3 { font-size: 1.1rem; margin: 24px 0 10px; color: var(--primary-dark); }
.legal-content p, .legal-content li { font-size: 0.95rem; color: var(--text); }
.legal-content ul { padding-left: 20px; margin-bottom: 16px; }
.legal-content ul li { list-style: disc; margin-bottom: 6px; }
.legal-content a { color: var(--primary); text-decoration: underline; }
.legal-toc {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 36px;
}
.legal-toc h4 { margin-bottom: 14px; font-size: 0.95rem; color: var(--primary); }
.legal-toc ol { padding-left: 20px; }
.legal-toc li { margin-bottom: 6px; font-size: 0.9rem; }
.legal-toc li a { color: var(--primary); text-decoration: none; }
.legal-toc li a:hover { text-decoration: underline; }

/* === Articles de blog (page blog) === */
.blog-featured { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.blog-featured .featured-img { height: 380px; border-radius: var(--radius-lg); overflow: hidden; }
.blog-featured .featured-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-featured .featured-content .blog-category { margin-bottom: 16px; }
.blog-featured .featured-content h2 { font-size: 1.7rem; margin-bottom: 14px; }
.blog-featured .featured-content p { color: var(--text-muted); margin-bottom: 20px; }

/* === Sidebar blog === */
.blog-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.sidebar-widget { margin-bottom: 32px; padding: 24px; background: var(--bg-light); border-radius: var(--radius-lg); }
.sidebar-widget h4 { font-size: 1rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--primary); }
.sidebar-widget ul li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.sidebar-widget ul li:last-child { border-bottom: none; }
.sidebar-widget ul a { color: var(--text); }
.sidebar-widget ul a:hover { color: var(--primary); }
.sidebar-recent-post { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.sidebar-recent-post:last-child { border-bottom: none; }
.sidebar-recent-post img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.sidebar-recent-post a { font-size: 0.85rem; font-weight: 600; color: var(--text); line-height: 1.4; }
.sidebar-recent-post a:hover { color: var(--primary); }
.sidebar-recent-post span { font-size: 0.75rem; color: var(--text-muted); }

/* === Certification/logos partenaires === */
.certif-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 36px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.certif-item {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.certif-item i { font-size: 2rem; color: var(--primary); }

/* === Responsive === */
@media (max-width: 1024px) {
    .grid-4  { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .steps-grid::before { display: none; }
    .blog-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .section-pad { padding: 56px 0; }
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr; }
    .hero { min-height: 70vh; }
    .hero-visual { display: none; }
    .hero-stats { gap: 24px; }
    .hero-stat-item strong { font-size: 1.5rem; }
    .blog-featured { grid-template-columns: 1fr; }
    .blog-featured .featured-img { height: 240px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
    .cta-actions { flex-direction: column; align-items: center; }
    .hero-actions { flex-direction: column; }

    /* Navigation mobile */
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(13, 27, 79, 0.97);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        gap: 6px;
        z-index: 999;
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        color: rgba(255,255,255,0.85) !important;
        font-size: 1.1rem;
        padding: 12px 24px;
        width: 100%;
        text-align: center;
    }
    .nav-links a:hover,
    .nav-links a.active { background: rgba(255,255,255,0.1); color: var(--secondary-light) !important; }
    .nav-cta { margin-top: 10px; background: var(--secondary) !important; color: var(--primary-dark) !important; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    .btn-lg { padding: 13px 24px; }
    .steps-grid { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 16px; align-items: center; }
}

/* === Animations === */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.animate-fade-up { animation: fadeUp 0.6s ease forwards; }
.animate-fade-in { animation: fadeIn 0.5s ease forwards; }

/* === Utilitaires === */
.text-center  { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary-dark); }
.text-muted   { color: var(--text-muted); }
.text-white   { color: #fff; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.w-full { width: 100%; }

/* Séparateur décoratif */
.divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    margin: 16px 0 24px;
}
.divider.centered { margin: 16px auto 24px; }
