/* ===================== ROOTS + DARK MODE ===================== */
:root {
  /* Mode Clair */
  --root-primary: #0f2044;
  --root-primary-light: #1e3a6e;
  --root-accent: #f97316;
  --root-accent-hover: #ea6b0a;

  --root-bg-white: #fff;
  --root-bg-light: #f8fafc;
  --root-bg-card: #fff;
  --root-bg-footer: #07142b;
  --root-bg-nav: #0f2044;
  --root-bg-zone: #0f2044;
  --root-bg-stats: #f97316;

  --root-text-main: #1a1a1a;
  --root-text-dark: #0f2044;
  --root-text-light: #fff;
  --root-text-muted: #64748b;
  --root-text-soft: #94a3b8;
  --root-text-slate: #cbd5e1;
  --root-text-footer: #475569;

  --root-border: #e2e8f0;
  --root-bg-soft: #fff7ed;
  --root-bg-badge: rgba(249, 115, 22, 0.15);
  --root-border-badge: rgba(249, 115, 22, 0.4);
  --root-shadow: rgba(15, 32, 68, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --root-primary: #0a182f;
    --root-primary-light: #1a3159;
    --root-bg-white: #0f172a;
    --root-bg-light: #1e2937;
    --root-bg-card: #1e2937;
    --root-bg-footer: #02060f;
    --root-bg-nav: #0a182f;
    --root-bg-zone: #0a182f;
    --root-bg-stats: #f97316;

    --root-text-main: #f1f5f9;
    --root-text-dark: #e2e8f0;
    --root-text-light: #fff;
    --root-text-muted: #94a3b8;
    --root-text-soft: #cbd5e1;
    --root-text-slate: #e2e8f0;
    --root-text-footer: #94a3b8;

    --root-border: #334155;
    --root-bg-soft: #431f12;
    --root-bg-badge: rgba(249, 115, 22, 0.2);
    --root-border-badge: rgba(249, 115, 22, 0.5);
    --root-shadow: rgba(0, 0, 0, 0.5);
  }
}

/* ===================== RESET MODERNE ===================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--root-text-main);
    background: var(--root-bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===================== NAV ===================== */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--root-bg-nav);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    height: 64px;
}

.nav span {
    color: var(--root-text-light);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: .5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--root-text-slate);
    font-size: .9rem;
    transition: color .2s;
}

.nav-links a:hover {
    color: var(--root-accent);
}

/* ===================== HERO ===================== */
.hero {
    background: linear-gradient(135deg, var(--root-primary) 60%, var(--root-primary-light) 100%);
    padding: 80px 5% 70px;
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 280px;
}

.hero-badge {
    display: inline-block;
    background: var(--root-accent);
    color: var(--root-text-light);
    font-size: .75rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 1px;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 2.6rem;
    color: var(--root-text-light);
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero h1 span {
    color: var(--root-accent);
}

.hero p {
    color: var(--root-text-soft);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 480px;
}

.btn-primary {
    background: var(--root-accent);
    color: var(--root-text-light);
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    display: inline-block;
    transition: background .2s;
}

.btn-primary:hover {
    background: var(--root-accent-hover);
}

.btn-outline {
    border: 2px solid var(--root-text-light);
    color: var(--root-text-light);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
    margin-left: 12px;
    transition: all .2s;
}

.btn-outline:hover {
    background: var(--root-text-light);
    color: var(--root-primary);
}

.hero-img img {
    width: 220px;
    height: 220px;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,.4));
}

/* ===================== STATS ===================== */
.stats {
    background: var(--root-bg-stats);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.stat {
    flex: 1;
    min-width: 140px;
    text-align: center;
    padding: 24px 20px;
    border-right: 1px solid rgba(255,255,255,.25);
}

.stat:last-child {
    border-right: none;
}

.stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--root-text-light);
}

.stat-label {
    font-size: .8rem;
    color: rgba(255,255,255,.85);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ===================== SERVICES ===================== */
.section {
    padding: 80px 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--root-text-dark);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--root-text-muted);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.accent {
    color: var(--root-accent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--root-bg-card);
    border: 1px solid var(--root-border);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: transform .2s, box-shadow .2s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--root-accent);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px var(--root-shadow);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--root-bg-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--root-text-dark);
    margin-bottom: 10px;
}

.service-card p {
    color: var(--root-text-muted);
    font-size: .9rem;
    line-height: 1.6;
}

/* ===================== ZONE ===================== */
.zone {
    background: var(--root-bg-zone);
    padding: 60px 5%;
    text-align: center;
}

.zone h2 {
    color: var(--root-text-light);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.zone p {
    color: var(--root-text-soft);
    margin-bottom: 32px;
    font-size: 1rem;
}

.zone-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 700px;
    margin: 0 auto;
}

.zone-badge {
    background: var(--root-bg-badge);
    border: 1px solid var(--root-border-badge);
    color: var(--root-accent);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: .9rem;
    font-weight: 600;
}

/* ===================== CONTACT ===================== */
.contact-section {
    padding: 80px 5%;
    background: var(--root-bg-white);
}

.contact-box {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-box h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--root-text-dark);
    margin-bottom: 12px;
}

.contact-box p {
    color: var(--root-text-muted);
    margin-bottom: 48px;
}

.contact-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}

.contact-card {
    background: var(--root-bg-light);
    border: 1px solid var(--root-border);
    border-radius: 16px;
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 200px;
    margin-bottom: 2rem;
}

.contact-card-icon {
    width: 56px;
    height: 56px;
    background: var(--root-bg-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.contact-card h4 {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--root-text-soft);
    font-weight: 600;
}

.contact-card span {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--root-text-dark);
}

.contact-card a {
    color: var(--root-accent);
    font-size: .9rem;
    font-weight: 600;
    margin-top: 4px;
}

/* ===================== FOOTER ===================== */
footer {
    background: var(--root-bg-footer);
    padding: 32px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

footer p {
    color: var(--root-text-footer);
    font-size: .85rem;
}

/* Conteneur pour le nom + icône Facebook */
.footer-logo-social {
    display: flex;
    align-items: center;
    gap: 12px;           /* Marge courte entre le texte et le logo */
}

.footer-logo-social .footer-name {
    color: var(--root-text-soft);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Style de l'icône Facebook */
.facebook-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1877F2;
    transition: all 0.3s ease;
}

.facebook-icon:hover {
    color: #0d6efd;
    transform: scale(1.18);
}

.facebook-icon svg {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
    .hero {
        padding: 60px 5% 50px;
        text-align: center;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero a.btn-outline {
        margin-left: 0 auto;
        margin-top: 12px;
    }
    .hero-img {
        margin: 0 auto;
    }
    .nav-links {
        display: none;
    }
}