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

:root {
    --primary:    #ff3b30;
    --dark:       #1d1d1f;
    --dark-2:     #3a3a3c;
    --gray:       #6e6e73;
    --border:     #d2d2d7;
    --bg:         #f5f5f7;
    --white:      #ffffff;
    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  18px;
    --shadow-sm:  0 2px 8px rgba(0,0,0,.06);
    --shadow-md:  0 8px 24px rgba(0,0,0,.08);
    --shadow-lg:  0 20px 50px rgba(0,0,0,.10);
    --shadow-red: 0 4px 16px rgba(255,59,48,.30);
    --ease:       .2s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text',
                 'Segoe UI', sans-serif;
    background: var(--white);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.locked { overflow: hidden; }

img    { display: block; max-width: 100%; }
a      { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }

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

/* ================================================
   NAVBAR
   ================================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 999;
    height: 64px;
    background: rgba(255,255,255,.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0,0,0,.08);
    transition: box-shadow var(--ease);
}
.nav.scrolled {
    box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 4px 20px rgba(0,0,0,.05);
}

.nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.nav__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}
.nav__logo-mark {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-red);
}
.nav__logo-mark svg {
    display: block;
    width: 16px;
    height: 16px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.2;
    flex-shrink: 0;
}
.nav__logo-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -.3px;
}

/* Liens centré */
.nav__links {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.nav__links a {
    display: block;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: background var(--ease), color var(--ease);
    white-space: nowrap;
}
.nav__links a:hover  { background: rgba(0,0,0,.05); }
.nav__links a.active { color: var(--primary); font-weight: 600; }

/* CTA connexion */
.nav__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 980px;
    text-decoration: none;
    flex-shrink: 0;
    transition: background var(--ease), transform var(--ease);
    white-space: nowrap;
    border: none;
    line-height: 1;
}
.nav__cta:hover { background: #e0352b; transform: scale(1.02); }
.nav__cta svg {
    display: block;
    width: 14px;
    height: 14px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

/* Burger */
.nav__burger {
    display: none;
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: rgba(0,0,0,.05);
    border: none;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4.5px;
    flex-shrink: 0;
    transition: background var(--ease);
}
.nav__burger:hover { background: rgba(0,0,0,.09); }
.nav__burger span {
    display: block;
    width: 16px;
    height: 1.5px;
    background: var(--dark);
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
    transform-origin: center;
}
.nav__burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ================================================
   DRAWER MOBILE
   ================================================ */
.drawer {
    position: fixed;
    inset: 0;
    z-index: 1000;
    /* caché par défaut */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease, visibility 0s linear .3s;
}
.drawer.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .3s ease, visibility 0s linear 0s;
}

.drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.28);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.drawer__panel {
    position: absolute;
    top: 0; right: 0;
    width: 260px;
    height: 100%;
    background: var(--white);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.4,0,.2,1);
    box-shadow: -16px 0 48px rgba(0,0,0,.10);
}
.drawer.open .drawer__panel { transform: translateX(0); }

.drawer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.drawer__close {
    width: 30px;
    height: 30px;
    background: var(--bg);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--ease);
}
.drawer__close:hover { background: var(--border); }
.drawer__close svg {
    display: block;
    width: 14px;
    height: 14px;
    stroke: var(--dark);
    fill: none;
    stroke-width: 2;
}

.drawer__links {
    flex: 1;
    padding: 12px;
    list-style: none;
}
.drawer__links a {
    display: block;
    padding: 12px 14px;
    font-size: 16px;
    font-weight: 500;
    color: var(--dark);
    text-decoration: none;
    border-radius: 10px;
    transition: background var(--ease);
}
.drawer__links a:hover { background: var(--bg); }

.drawer__foot {
    padding: 16px 20px 32px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}
.drawer__foot .nav__cta {
    width: 100%;
    justify-content: center;
    border-radius: var(--radius-md);
    padding: 13px;
}

/* ================================================
   BOUTONS GLOBAUX
   ================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    transition: all var(--ease);
    white-space: nowrap;
    font-family: inherit;
    line-height: 1;
    cursor: pointer;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-red);
}
.btn-primary:hover { background: #e0352b; transform: translateY(-1px); }

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}
.btn-secondary:hover { background: var(--primary); color: #fff; }

.btn-dark  { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #2a2a2c; transform: translateY(-1px); }

.btn-ghost {
    background: var(--bg);
    color: var(--dark);
    border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: var(--border); }

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }

/* ================================================
   SECTIONS
   ================================================ */
.section    { padding: 100px 0; }
.section-sm { padding:  60px 0; }
.section-lg { padding: 140px 0; }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 56px;
    gap: 24px;
}

.section-label {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(255,59,48,.08);
    color: var(--primary);
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 38px;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -.8px;
    line-height: 1.2;
}
.section-title span { color: var(--primary); }

.section-subtitle {
    font-size: 17px;
    color: var(--gray);
    line-height: 1.7;
    max-width: 540px;
}

/* ================================================
   CARDS
   ================================================ */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all var(--ease);
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

/* ================================================
   BADGES
   ================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.badge-green  { background: #d1fae5; color: #065f46; }
.badge-red    { background: #fee2e2; color: #991b1b; }
.badge-blue   { background: #dbeafe; color: #1e40af; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-gray   { background: var(--bg); color: var(--gray); }

/* ================================================
   FOOTER
   ================================================ */
.footer {
    background: #111;
    color: rgba(255,255,255,.8);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr repeat(3,1fr);
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand .nav__logo  { margin-bottom: 16px; }
.footer-brand .nav__logo-name { color: #fff; }

.footer-brand p {
    font-size: 14px;
    color: rgba(255,255,255,.45);
    line-height: 1.7;
    max-width: 260px;
    margin-bottom: 24px;
}

.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 36px; height: 36px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.6);
    transition: all var(--ease);
}
.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}
.footer-social a svg { width: 15px; height: 15px; }

.footer-col h4 {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,.45);
    font-weight: 400;
    transition: all var(--ease);
    display: inline-block;
}
.footer-links a:hover { color: #fff; transform: translateX(3px); }

.footer-bottom {
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.3); }
.footer-bottom-links { display: flex; gap: 22px; }
.footer-bottom-links a {
    font-size: 13px;
    color: rgba(255,255,255,.3);
    transition: color var(--ease);
}
.footer-bottom-links a:hover { color: rgba(255,255,255,.7); }

/* ================================================
   UTILITAIRES
   ================================================ */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-primary { color: var(--primary); }
.text-gray    { color: var(--gray); }

.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

.mt-8  { margin-top: 8px;  } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px;  } .mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

.d-flex          { display: flex; }
.align-center    { align-items: center; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap       { flex-wrap: wrap; }
.gap-8  { gap: 8px;  }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 860px) {
    .nav__links { display: none; }
    .nav__cta:not(.drawer__foot .nav__cta) { display: none; }
    .nav__burger { display: flex; }
}

@media (max-width: 768px) {
    .container    { padding: 0 20px; }
    .nav__inner   { padding: 0 20px; }
    .section      { padding: 70px 0; }
    .section-title { font-size: 28px; }
    .section-header { flex-direction: column; align-items: flex-start; }
    .footer-grid  { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-bottom-links { justify-content: center; flex-wrap: wrap; gap: 16px; }
}

@media (max-width: 480px) {
    .drawer__panel { width: 100%; }
    .footer-grid   { grid-template-columns: 1fr; gap: 32px; }
    .btn-lg        { padding: 14px 24px; font-size: 15px; }
}