/* =========================================================
   Couleurs et typographie reprises du portfolio
   (myportfolio-147.pages.dev) : fond marine, bleu ciel, violet.
   Heebo remplace Inter pour l'hébreu (Inter n'a pas de glyphes hébreux).
   ========================================================= */
:root {
    --bg: #0b1220;
    --bg-soft: #111a2d;
    --surface: #172238;
    --surface-2: #1d2b45;
    --text: #e8eef8;
    --muted: #9eb0ca;
    --primary: #38bdf8;
    --primary-strong: #0ea5e9;
    --accent: #8b5cf6;
    --wa: #25d366;
    --wa-strong: #1ebe5a;
    --wa-text: #052e16;
    --border: rgba(148, 163, 184, 0.18);
    --shadow: 0 22px 55px rgba(0, 0, 0, 0.28);
    --radius: 18px;
    --font-body: 'Heebo', 'Inter', system-ui, sans-serif;
    --font-heading: 'Outfit', 'Heebo', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    line-height: 1.7;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.25; font-weight: 800; }

a:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.skip-link {
    position: fixed;
    inset-inline-start: 16px;
    top: -100px;
    z-index: 100;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--primary);
    color: #03111c;
    font-weight: 700;
}
.skip-link:focus { top: 16px; }

/* Mobile d'abord : 16px de marge de chaque côté à 360px */
.container { width: min(1100px, calc(100% - 32px)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 18, 32, 0.92);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}
@supports (backdrop-filter: blur(8px)) {
    .site-header { background: rgba(11, 18, 32, 0.78); backdrop-filter: blur(8px); }
}
.site-header.scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { flex: none; border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: .98rem; }
.brand-text small { color: var(--muted); font-size: .78rem; }
.nav { display: none; }
.header-wa {
    flex: none;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--wa);
    color: var(--wa-text);
    font-weight: 700;
    font-size: .9rem;
}

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.02rem;
    border: 1px solid transparent;
    transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.btn-wa { background: var(--wa); color: var(--wa-text); box-shadow: 0 12px 28px rgba(37, 211, 102, .18); }
.btn-wa:hover { background: var(--wa-strong); transform: translateY(-1px); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--primary); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.08rem; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.icon .fill { fill: currentColor; stroke: none; }

/* ---------- Hero ---------- */
.hero {
    padding: 48px 0 56px;
    background:
        radial-gradient(circle at 85% 10%, rgba(56, 189, 248, .16), transparent 45%),
        radial-gradient(circle at 10% 70%, rgba(139, 92, 246, .16), transparent 45%);
}
.kicker {
    color: var(--primary);
    font-weight: 700;
    font-size: .88rem;
    margin-bottom: 8px;
}
.hero h1 {
    font-size: clamp(1.9rem, 7.5vw, 3.2rem);
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text) 40%, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-sub { color: var(--muted); font-size: 1.06rem; max-width: 640px; margin-bottom: 26px; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; }
.hero-actions .btn { width: 100%; }
.hero-note { margin-top: 14px; color: var(--muted); font-size: .9rem; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-soft); }
.section h2 { font-size: clamp(1.5rem, 6vw, 2.3rem); margin-bottom: 22px; }
.section-lead { color: var(--muted); margin: -10px 0 24px; max-width: 640px; }

/* ---------- Services ---------- */
.service-family {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 18px;
    box-shadow: var(--shadow);
}
.service-family + .service-family { margin-top: 20px; }
.family-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.family-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}
.family-icon svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.family-head h3 { font-size: 1.25rem; margin-bottom: 4px; }
.family-lead { color: var(--muted); font-size: .96rem; }
.service-list { list-style: none; display: grid; gap: 10px; }
.service-list li {
    position: relative;
    padding: 12px 14px;
    padding-inline-start: 34px;
    background: var(--surface-2);
    border-radius: 12px;
    border: 1px solid var(--border);
}
.service-list li::before {
    content: '';
    position: absolute;
    inset-inline-start: 14px;
    top: 21px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}
.service-list strong { display: block; font-size: 1rem; }
.service-list span { color: var(--muted); font-size: .94rem; }
.note {
    margin-top: 16px;
    padding: 12px 14px;
    border-inline-start: 3px solid var(--accent);
    background: rgba(139, 92, 246, .1);
    border-radius: 10px;
    font-size: .94rem;
    color: var(--muted);
}
.note strong { color: var(--text); }

/* ---------- Pourquoi moi ---------- */
.why-grid { display: grid; gap: 14px; }
.why-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 18px;
}
.why-card h3 { font-size: 1.1rem; margin-bottom: 6px; color: var(--primary); }
.why-card p { color: var(--muted); font-size: .96rem; }

/* ---------- Tarifs ---------- */
.price-grid { display: grid; gap: 14px; }
.price-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 18px;
}
.price-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.price { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800; line-height: 1.3; }
.price-unit { color: var(--muted); font-size: .9rem; margin-bottom: 10px; }
.price-desc { color: var(--muted); font-size: .95rem; }
.price-footnote { margin-top: 16px; font-size: .9rem; color: var(--muted); }

/* Texte provisoire à remplacer : bien visible exprès */
.placeholder {
    display: inline-block;
    padding: 0 6px;
    border: 1px dashed #fbbf24;
    border-radius: 6px;
    background: rgba(251, 191, 36, .1);
    color: #fbbf24;
    font-size: .9em;
    font-weight: 600;
}

/* ---------- Contact ---------- */
.contact {
    background:
        radial-gradient(circle at 50% 0%, rgba(56, 189, 248, .14), transparent 60%),
        var(--bg-soft);
    text-align: center;
}
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact h2 { margin-bottom: 10px; }
.contact p { color: var(--muted); max-width: 520px; margin-bottom: 24px; }
.contact .btn { width: 100%; max-width: 360px; }
.contact-phone { margin-top: 14px; margin-bottom: 0 !important; font-weight: 600; letter-spacing: .03em; }

/* ---------- Footer ---------- */
.site-footer { padding: 22px 0 28px; border-top: 1px solid var(--border); text-align: center; color: var(--muted); font-size: .85rem; }

/* =========================================================
   Tablette et bureau
   ========================================================= */
@media (min-width: 640px) {
    .hero-actions { flex-direction: row; }
    .hero-actions .btn { width: auto; }
    .service-list { grid-template-columns: 1fr 1fr; }
    .why-grid { grid-template-columns: 1fr 1fr; }
    .service-family { padding: 28px; }
}

@media (min-width: 900px) {
    .nav { display: flex; gap: 24px; font-size: .95rem; color: var(--muted); }
    .nav a:hover { color: var(--text); }
    .header-inner { min-height: 68px; }
    .hero { padding: 96px 0 104px; }
    .hero-sub { font-size: 1.15rem; }
    .section { padding: 88px 0; }
    .service-list { grid-template-columns: repeat(3, 1fr); }
    .service-list-4 { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(4, 1fr); }
    .price-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
