/* ═══════════════════════════════════════════
   SOUFIANE.TO — Portfolio
   Light mode premium · agence française
   ═══════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #f8f6f1;
    --bg-subtle: #f1ede4;
    --bg-card: #ffffff;
    --bg-card-hover: #fbfaf6;
    --border: rgba(20, 20, 20, 0.08);
    --border-hover: rgba(20, 20, 20, 0.18);
    --text: #0e0e0e;
    --text-secondary: #5c5c58;
    --text-muted: #8a8a85;
    --accent: #1f3a2e;
    --accent-light: #2e5a47;
    --accent-soft: rgba(31, 58, 46, 0.06);
    --accent-glow: rgba(31, 58, 46, 0.12);
    --green: #1f3a2e;
    --shadow-sm: 0 1px 2px rgba(20, 20, 20, 0.04);
    --shadow-md: 0 4px 16px rgba(20, 20, 20, 0.06);
    --shadow-lg: 0 12px 40px rgba(20, 20, 20, 0.08);
    --radius: 14px;
    --radius-sm: 10px;
    --container: 1140px;
    --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    font-feature-settings: "ss01", "cv11";
}

.serif {
    font-family: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
    font-feature-settings: "ss01";
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
}

/* ── NAV ── */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(248, 246, 241, 0.85);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    height: 4.25rem;
}
.nav-inner {
    max-width: var(--container); margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
    height: 100%;
}
.logo {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600; font-size: 1.35rem; letter-spacing: -0.02em;
    color: var(--text); text-decoration: none;
}
.logo span { color: var(--accent); }
.nav-links {
    display: flex; gap: 2rem; list-style: none; align-items: center;
}
.nav-links a {
    color: var(--text-secondary); text-decoration: none; font-size: 0.875rem;
    font-weight: 500; transition: color var(--transition); padding: 0.5rem 0;
    position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
    background: var(--accent); color: white; border: none;
    padding: 0.625rem 1.35rem; border-radius: var(--radius-sm);
    font-weight: 500; font-size: 0.85rem; cursor: pointer;
    text-decoration: none; transition: all var(--transition);
    display: inline-flex; align-items: center; gap: 0.375rem;
    letter-spacing: 0.01em;
}
.nav-cta:hover {
    background: var(--accent-light);
    box-shadow: 0 6px 20px var(--accent-glow);
}
.menu-toggle {
    display: none; background: none; border: 1px solid var(--border);
    color: var(--text); padding: 0.5rem; border-radius: 10px; cursor: pointer;
    background: var(--bg-card);
}
.menu-toggle svg { width: 20px; height: 20px; display: block; }

/* ── HERO ── */
.hero {
    min-height: 92vh; display: flex; align-items: center;
    padding: 8rem 0 5rem; position: relative;
}
.hero-grid { text-align: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--bg-card); border: 1px solid var(--border);
    padding: 0.45rem 1rem; border-radius: 100px; font-size: 0.8rem;
    color: var(--text-secondary); margin-bottom: 1.75rem;
    width: -webkit-fit-content; width: fit-content;
    margin-left: auto; margin-right: auto;
    box-shadow: var(--shadow-sm);
}
.hero-dot {
    width: 7px; height: 7px; background: #22c55e;
    border-radius: 50%; animation: pulse 2.4s infinite;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.hero h1 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 400;
    line-height: 1.04; letter-spacing: -0.035em; margin-bottom: 1.5rem;
    font-feature-settings: "ss01";
}
.hero h1 .accent {
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
}
.hero-desc {
    font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); color: var(--text-secondary);
    max-width: 620px; margin: 0 auto 2.75rem; line-height: 1.65;
    font-weight: 400;
}
.hero-actions {
    display: flex; gap: 0.875rem; justify-content: center; flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: inherit; font-weight: 500; font-size: 0.95rem;
    padding: 0.95rem 1.85rem; border-radius: var(--radius-sm);
    text-decoration: none; cursor: pointer; transition: all var(--transition);
    border: none; letter-spacing: 0.005em;
}
.btn-primary {
    background: var(--accent); color: white;
    box-shadow: 0 2px 12px var(--accent-glow);
}
.btn-primary:hover {
    background: var(--accent-light); transform: translateY(-1px);
    box-shadow: 0 8px 28px var(--accent-glow);
}
.btn-ghost {
    background: var(--bg-card); color: var(--text);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
    border-color: var(--border-hover); background: var(--bg-card-hover);
    transform: translateY(-1px);
}

/* ── METRICS ── */
.metrics {
    display: flex; justify-content: center; gap: clamp(2rem, 6vw, 5rem);
    padding: 3rem 0 0; margin-top: 3rem;
    border-top: 1px solid var(--border);
}
.metric { text-align: center; }
.metric-value {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.85rem; font-weight: 500; color: var(--text);
    letter-spacing: -0.02em;
}
.metric-value span { color: var(--accent); font-style: italic; }
.metric-label {
    font-size: 0.825rem; color: var(--text-muted); margin-top: 0.35rem;
    letter-spacing: 0.01em;
}

/* ── SECTIONS ── */
section { padding: clamp(4.5rem, 9vw, 7rem) 0; }
.section-header { margin-bottom: 4rem; max-width: 680px; }
.section-tag {
    font-family: 'JetBrains Mono', monospace; font-size: 0.72rem;
    color: var(--accent); text-transform: uppercase; letter-spacing: 0.18em;
    font-weight: 500; margin-bottom: 1rem;
    display: inline-flex; align-items: center; gap: 0.5rem;
}
.section-tag::before {
    content: ''; width: 24px; height: 1px; background: var(--accent);
    display: inline-block;
}
.section-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(2rem, 4vw, 2.85rem); font-weight: 400;
    letter-spacing: -0.025em; margin-bottom: 1rem; line-height: 1.1;
}
.section-title .accent {
    font-style: italic; color: var(--accent); font-weight: 400;
}
.section-desc {
    color: var(--text-secondary); font-size: clamp(1rem, 1.2vw, 1.0625rem);
    max-width: 580px; line-height: 1.7;
}

/* ── SERVICES ── */
.services-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.service-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: clamp(1.75rem, 3vw, 2.25rem);
    transition: all var(--transition); position: relative; overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.service-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.service-icon {
    width: 46px; height: 46px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem;
}
.service-icon svg { width: 22px; height: 22px; stroke-width: 1.4; }
.service-icon.i-purple { background: var(--accent-soft); color: var(--accent); }
.service-icon.i-green { background: var(--accent-soft); color: var(--accent); }
.service-icon.i-orange { background: var(--accent-soft); color: var(--accent); }
.service-card h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.25rem; font-weight: 500; margin-bottom: 0.625rem;
    letter-spacing: -0.01em;
}
.service-card p { color: var(--text-secondary); font-size: 0.925rem; line-height: 1.65; }

/* ── PORTFOLIO ── */
#portfolio { background: var(--bg-subtle); }
.portfolio-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}
.portfolio-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}
.project-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; transition: all var(--transition);
    text-decoration: none; color: inherit;
    display: flex; flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-sm);
}
.project-card:hover {
    border-color: var(--border-hover); transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.project-card.featured { grid-column: 1 / -1; }
.project-card.featured .project-thumb { aspect-ratio: 21/9; }
.project-thumb {
    width: 100%; aspect-ratio: 16/10;
    position: relative; overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-subtle);
}
@supports not (aspect-ratio: 16/10) {
    .project-thumb { padding-bottom: 62.5%; height: 0; }
    .project-card.featured .project-thumb { padding-bottom: 42.86%; }
    .project-thumb img { position: absolute; top: 0; left: 0; }
}
.project-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.project-card:hover .project-thumb img { transform: scale(1.04); }
.project-thumb .overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(20,20,20,0.25) 100%);
}
.project-badge {
    position: absolute; top: 1rem; left: 1rem; z-index: 2;
    font-family: 'JetBrains Mono', monospace; font-size: 0.66rem;
    text-transform: uppercase; letter-spacing: 0.12em;
    padding: 0.3rem 0.75rem; border-radius: 100px;
    background: rgba(255, 255, 255, 0.95); color: var(--text);
    backdrop-filter: blur(8px); font-weight: 500;
    box-shadow: var(--shadow-sm);
}
.project-badge.live { background: var(--accent); color: #fff; }
.project-info { padding: 1.5rem 1.5rem 1.75rem; flex: 1; display: flex; flex-direction: column; }
.project-info p { flex: 1; }
.project-tags { display: flex; gap: 0.4rem; margin-bottom: 0.875rem; flex-wrap: wrap; }
.tag {
    font-family: 'JetBrains Mono', monospace; font-size: 0.68rem;
    padding: 0.22rem 0.625rem; border-radius: 6px;
    background: var(--accent-soft); color: var(--accent); font-weight: 500;
    letter-spacing: 0.02em;
}
.project-info h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.2rem; font-weight: 500; margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}
.project-info p { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.6; }

/* ── PROCESS ── */
.process-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
}
.process-step {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 2rem 1.75rem;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}
.process-step:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.step-num {
    font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
    font-weight: 500; color: var(--accent);
    margin-bottom: 1rem; letter-spacing: 0.1em;
}
.process-step h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.15rem; font-weight: 500; margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}
.process-step p { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.6; }

/* ── PRICING ── */
#pricing { background: var(--bg-subtle); }
.pricing-grid {
    display: grid; grid-template-columns: 1fr;
    gap: 1.5rem; max-width: 560px; margin: 0 auto;
}
.price-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 2.75rem; position: relative;
    transition: all var(--transition);
    box-shadow: var(--shadow-md);
    text-align: center;
}
.price-card:hover { border-color: var(--border-hover); }
.price-card.featured { border-color: var(--accent); }
.price-card.featured::after {
    content: 'Sur-mesure'; position: absolute; top: -0.85rem; left: 50%;
    transform: translateX(-50%); background: var(--accent); color: white;
    font-size: 0.72rem; font-weight: 500; padding: 0.3rem 1rem;
    border-radius: 100px; letter-spacing: 0.04em;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
}
.price-card h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.35rem; font-weight: 500; margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}
.price-card .desc { color: var(--text-secondary); font-size: 0.925rem; margin-bottom: 1.75rem; }
.price-amount {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 3rem; font-weight: 400; margin-bottom: 0.25rem;
    letter-spacing: -0.03em; line-height: 1;
}
.price-amount .from {
    display: block;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.price-amount span { font-size: 0.95rem; color: var(--text-muted); font-weight: 400; font-family: 'Inter', sans-serif; }
.price-amount.quote {
    font-size: 2.4rem;
    color: var(--text);
    line-height: 1.05;
    margin-bottom: 0.5rem;
}
.price-amount.quote .italic {
    font-style: italic;
    color: var(--accent);
    font-family: 'Fraunces', Georgia, serif;
    font-size: inherit;
    font-weight: 400;
}
.price-note { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; font-style: italic; }
.features {
    list-style: none; margin-bottom: 2rem;
    text-align: left;
    display: inline-block;
}
.features li {
    padding: 0.55rem 0; font-size: 0.925rem; color: var(--text-secondary);
    display: flex; align-items: center; gap: 0.7rem;
}
.features li::before {
    content: ''; display: inline-block; width: 16px; height: 16px; flex-shrink: 0;
    background: var(--accent); border-radius: 50%;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.price-btn {
    display: block; width: 100%; text-align: center; padding: 1rem;
    border-radius: var(--radius-sm); font-weight: 500; text-decoration: none;
    font-size: 0.95rem; transition: all var(--transition); cursor: pointer;
    font-family: inherit;
}
.price-btn.primary { background: var(--accent); color: white; border: none; }
.price-btn.primary:hover { background: var(--accent-light); box-shadow: 0 6px 20px var(--accent-glow); }
.price-btn.outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.price-btn.outline:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }

/* ── AUDIENCE ── */
.audience-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
    margin-top: 2rem;
}
.audience-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.5rem;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
    text-align: center;
}
.audience-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.audience-icon {
    width: 38px; height: 38px; margin: 0 auto 0.875rem;
    color: var(--accent);
}
.audience-card h4 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.05rem; font-weight: 500; margin-bottom: 0.35rem;
}
.audience-card p { color: var(--text-secondary); font-size: 0.825rem; line-height: 1.55; }

/* ── CTA SECTION ── */
.cta-band {
    text-align: center; padding: clamp(4.5rem, 8vw, 6.5rem) 0;
    position: relative;
    background: var(--accent);
    color: white;
}
.cta-band h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(2rem, 4vw, 2.85rem); font-weight: 400;
    letter-spacing: -0.025em; margin-bottom: 1rem; position: relative;
    line-height: 1.1;
}
.cta-band h2 .accent { font-style: italic; color: #c8d4cd; }
.cta-band p {
    color: rgba(255, 255, 255, 0.75); font-size: 1.0625rem;
    margin-bottom: 2.25rem; position: relative; max-width: 520px;
    margin-left: auto; margin-right: auto;
}
.cta-band .btn-primary {
    background: white; color: var(--accent);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.cta-band .btn-primary:hover {
    background: #f0ede5;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

/* ── CONTACT ── */
#contact { background: var(--bg-subtle); }
.contact-grid {
    display: grid; grid-template-columns: 1fr 1.2fr;
    gap: 4rem; align-items: start;
}
.contact-info h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.5rem; font-weight: 500; margin-bottom: 1rem;
    letter-spacing: -0.01em;
}
.contact-info > p {
    color: var(--text-secondary); font-size: 0.975rem;
    margin-bottom: 2.25rem; line-height: 1.7;
}
.contact-detail {
    display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem;
    color: var(--text-secondary); font-size: 0.9rem;
}
.contact-detail svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent); }
.contact-form { display: flex; flex-direction: column; gap: 1.1rem;
    background: var(--bg-card); padding: 2.25rem; border-radius: var(--radius);
    border: 1px solid var(--border); box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group label {
    display: block; font-size: 0.8rem; font-weight: 500;
    margin-bottom: 0.45rem; color: var(--text-secondary);
    letter-spacing: 0.01em;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 0.85rem 1rem; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--bg);
    color: var(--text); font-family: inherit; font-size: 0.925rem;
    transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select {
    -webkit-appearance: none; appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238a8a85' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 1rem center;
}

/* ── FOOTER ── */
footer {
    border-top: 1px solid var(--border); padding: 2.5rem 0;
    text-align: center; color: var(--text-muted); font-size: 0.825rem;
    background: var(--bg);
}

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
    .services-grid { grid-template-columns: 1fr 1fr; }
    .process-grid { grid-template-columns: 1fr 1fr; }
    .portfolio-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .audience-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .nav-links {
        display: none; position: fixed; top: 4.25rem; left: 0; right: 0; bottom: 0;
        flex-direction: column; background: var(--bg); padding: 2rem 1.5rem; gap: 0;
        border-top: 1px solid var(--border); z-index: 99;
    }
    .nav-links.open { display: flex; }
    .nav-links li { border-bottom: 1px solid var(--border); width: 100%; }
    .nav-links a { display: block; padding: 1rem 0; font-size: 1rem; }
    .menu-toggle { display: flex; align-items: center; justify-content: center; }
    .hero { min-height: auto; padding: 7rem 0 4rem; }
    .services-grid { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .portfolio-grid-3 { grid-template-columns: 1fr; }
    .project-card.featured { grid-column: auto; }
    .project-card.featured .project-thumb { aspect-ratio: 16/10; }
    .process-grid { grid-template-columns: 1fr 1fr; }
    .audience-grid { grid-template-columns: 1fr 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 460px; }
    .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .form-row { grid-template-columns: 1fr; }
    .metrics { flex-wrap: wrap; gap: 1.5rem; }
    .contact-form { padding: 1.75rem; }
}

@media (max-width: 479px) {
    .process-grid { grid-template-columns: 1fr; }
    .audience-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ── ANIMATIONS ── */
.reveal {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ── SELECTION ── */
::selection {
    background: var(--accent);
    color: #fff;
}
