/* =========================================================
   Sorn Expertise — Feuille de style principale
   ========================================================= */

:root {
    --dark: #14171c;
    --dark-2: #1c2029;
    --light: #f7f8fa;
    --white: #ffffff;
    --text-muted: #6c7280;

    --sorn-red: #dc3545;
    --sorn-red-dark: #a8121f;

    --pace-orange: #e07a2f;
    --pace-orange-dark: #c2760a;
    --pace-green: #1f8a5b;
    --pace-green-dark: #14603f;

    --radius: 14px;
    --shadow: 0 10px 30px rgba(20, 23, 28, 0.08);
    --shadow-lg: 0 20px 50px rgba(20, 23, 28, 0.15);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 96px 0; }
.section-alt { background: var(--light); }

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sorn-red);
    margin-bottom: 14px;
}

h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; margin: 0 0 16px; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 16px; color: var(--text-muted); }

.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head p { font-size: 1.05rem; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--sorn-red); color: #fff; box-shadow: 0 8px 20px rgba(220,53,69,0.3); }
.btn-primary:hover { background: var(--sorn-red-dark); }

.btn-outline-light { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }

.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #000; }

.btn-whatsapp { background: #25d366; color: #fff; box-shadow: 0 8px 20px rgba(37,211,102,0.3); }
.btn-whatsapp:hover { background: #1da851; }

.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(20,23,28,0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.15rem;
    color: #fff;
}
.brand-logo { height: 34px; width: auto; }

/* ---------- Icônes SVG génériques ---------- */
.icon { width: 22px; height: 22px; flex-shrink: 0; }
.icon-sm { width: 18px; height: 18px; }
.icon-md { width: 28px; height: 28px; }
.icon-lg { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
    color: rgba(255,255,255,0.78);
    font-weight: 600;
    font-size: 0.92rem;
    transition: color 0.2s ease;
}
.nav-links a:hover { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

@media (max-width: 860px) {
    .nav-links { position: fixed; top: 74px; left: 0; right: 0; background: var(--dark); flex-direction: column; padding: 20px 24px; gap: 18px; transform: translateY(-130%); transition: transform 0.25s ease; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .nav-links.open { transform: translateY(0); }
    .nav-toggle { display: block; }
    .nav-cta .btn span.btn-text-full { display: none; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: radial-gradient(circle at 15% 20%, #232833 0%, var(--dark) 55%);
    color: #fff;
    padding: 120px 0 100px;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    right: -120px; top: -120px;
    width: 480px; height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(220,53,69,0.25), transparent 70%);
}
.hero::before {
    content: "";
    position: absolute;
    left: -140px; bottom: -160px;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224,122,47,0.22), transparent 70%);
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; }
.hero .eyebrow { color: var(--pace-orange); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.hero h1 span { color: var(--sorn-red); }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,0.75); max-width: 600px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

.hero-stats {
    position: relative; z-index: 2;
    display: flex; gap: 40px; margin-top: 60px; flex-wrap: wrap;
}
.hero-stats .stat strong { display: block; font-size: 1.8rem; color: #fff; }
.hero-stats .stat span { color: rgba(255,255,255,0.55); font-size: 0.85rem; }

/* ---------- Cards projets ---------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}
@media (max-width: 860px) { .projects-grid { grid-template-columns: 1fr; } }

.project-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-top: 5px solid var(--sorn-red);
}
.project-card.pace { border-top-color: var(--pace-orange); }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.project-card .project-head {
    padding: 34px 34px 0;
}
.project-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(220,53,69,0.1);
    color: var(--sorn-red-dark);
    margin-bottom: 18px;
}
.project-card.pace .project-tag { background: rgba(224,122,47,0.12); color: var(--pace-orange-dark); }

.project-card .project-body { padding: 10px 34px 34px; flex: 1; display: flex; flex-direction: column; }

.feature-list { list-style: none; padding: 0; margin: 18px 0 26px; }
.feature-list li {
    display: flex; align-items: flex-start; gap: 10px;
    margin-bottom: 10px; font-size: 0.93rem; color: var(--dark);
}
.feature-list li .icon {
    flex-shrink: 0;
    width: 18px; height: 18px;
    margin-top: 2px;
    color: var(--sorn-red);
}
.project-card.pace .feature-list li .icon { color: var(--pace-orange); }

.project-link {
    margin-top: auto;
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: 0.92rem; color: var(--sorn-red-dark);
}
.project-card.pace .project-link { color: var(--pace-orange-dark); }
.project-link .icon { width: 17px; height: 17px; transition: transform 0.2s ease; }
.project-link:hover .icon { transform: translateX(3px); }

/* ---------- Visuel projet (capture d'écran) ---------- */
.project-visual {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f2f5, #e4e6eb);
}
.project-visual img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.project-visual .visual-placeholder {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px; text-align: center; padding: 20px;
    color: var(--text-muted);
}
.project-visual .visual-placeholder .icon { width: 30px; height: 30px; color: #b9bdc7; }
.project-visual .visual-placeholder strong { color: var(--dark); font-size: 0.85rem; }
.project-visual .visual-placeholder span { font-size: 0.76rem; }
.browser-chrome {
    position: absolute; top: 0; left: 0; right: 0; height: 30px;
    background: rgba(20,23,28,0.06);
    display: flex; align-items: center; gap: 6px; padding: 0 12px;
}
.browser-chrome span { width: 8px; height: 8px; border-radius: 50%; background: #c7cad2; }

/* ---------- Skills ---------- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
@media (max-width: 900px) { .skills-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .skills-grid { grid-template-columns: 1fr; } }

.skill-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}
.skill-card:hover { transform: translateY(-4px); }
.skill-icon {
    width: 56px; height: 56px; margin: 0 auto 18px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--sorn-red), var(--pace-orange));
    color: #fff;
}
.skill-icon .icon { width: 26px; height: 26px; }
.skill-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.skill-card p { font-size: 0.88rem; margin: 0; }

/* ---------- Passion sport / bio ---------- */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.about-photo-wrap { display: flex; align-items: center; gap: 20px; margin-bottom: 26px; }
.about-photo {
    width: 92px; height: 92px;
    border-radius: 50%;
    object-fit: cover;
    padding: 4px;
    background: linear-gradient(135deg, var(--sorn-red), var(--pace-orange));
    box-shadow: var(--shadow);
}
.about-photo-wrap .about-name strong { display: block; font-size: 1.05rem; color: var(--dark); }
.about-photo-wrap .about-name span { font-size: 0.85rem; color: var(--text-muted); }

.badge-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.badge-pill {
    background: var(--light);
    border: 1px solid #e7e9ee;
    border-radius: 100px;
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--dark);
}

.visual-card {
    background: linear-gradient(135deg, var(--dark), #262b35);
    border-radius: var(--radius);
    padding: 44px;
    color: #fff;
    box-shadow: var(--shadow-lg);
}
.visual-card h3 { color: #fff; }
.visual-card p { color: rgba(255,255,255,0.72); }
.visual-card .metric { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.visual-card .metric:last-child { border-bottom: none; }
.visual-card .metric strong { color: var(--pace-orange); }

/* ---------- CTA bande ---------- */
.cta-band {
    background: linear-gradient(120deg, var(--sorn-red-dark), var(--sorn-red) 55%, var(--pace-orange));
    color: #fff;
    padding: 70px 0;
    text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: flex-start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px;
}

.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

label { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 8px; color: var(--dark); }
input[type=text], input[type=email], input[type=tel], select, textarea {
    width: 100%;
    padding: 13px 16px;
    border-radius: 10px;
    border: 1.5px solid #e2e5eb;
    background: var(--light);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--dark);
    transition: border-color 0.2s ease, background 0.2s ease;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--sorn-red);
    background: #fff;
}
textarea { resize: vertical; min-height: 130px; }

.honeypot-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

.alert { padding: 14px 18px; border-radius: 10px; font-weight: 600; font-size: 0.92rem; margin-bottom: 20px; }
.alert-success { background: #e6f7ee; color: var(--pace-green-dark); border: 1px solid #b9e6cd; }
.alert-danger { background: #fdecee; color: var(--sorn-red-dark); border: 1px solid #f5c2c7; }
.alert-warning { background: #fff6e0; color: #8a6300; border: 1px solid #ffe29a; }

.contact-side .contact-item {
    display: flex; align-items: center; gap: 16px;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 20px 22px; margin-bottom: 16px; transition: transform 0.2s ease;
}
.contact-side .contact-item:hover { transform: translateY(-3px); }
.contact-icon {
    width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
}
.contact-icon .icon { width: 22px; height: 22px; }
.icon-mail { background: var(--sorn-red); }
.icon-whatsapp { background: #25d366; }
.icon-shield { background: var(--dark); }

.contact-item strong { display: block; font-size: 0.95rem; }
.contact-item span.detail { font-size: 0.82rem; color: var(--text-muted); }

/* ---------- Footer ---------- */
footer {
    background: var(--dark);
    color: rgba(255,255,255,0.65);
    padding: 60px 0 30px;
    font-size: 0.9rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo { height: 26px; width: auto; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-brand h4 { margin-bottom: 0; }
footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
footer a { color: rgba(255,255,255,0.6); display: block; margin-bottom: 10px; transition: color 0.2s ease; }
footer a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    font-size: 0.82rem; color: rgba(255,255,255,0.45);
}

/* ---------- Page header (mentions légales / contact) ---------- */
.page-header {
    background: var(--dark);
    color: #fff;
    padding: 70px 0 60px;
    text-align: center;
}
.page-header p { color: rgba(255,255,255,0.65); }

.legal-content h2 { margin-top: 42px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--dark); }
.legal-content { max-width: 840px; margin: 0 auto; }

/* ---------- Signature (nom du représentant en image, non indexable) ---------- */
.legal-signature {
    display: inline-block;
    height: 20px;
    width: auto;
    vertical-align: middle;
    margin: 0 2px;
    position: relative;
    top: -1px;
}
.footer-signature {
    height: 16px;
    filter: brightness(0) invert(1) opacity(0.65);
}

.inline-mail-link {
    color: var(--sorn-red-dark);
    font-weight: 700;
    border-bottom: 1px dotted currentColor;
}

/* ---------- WhatsApp bouton flottant ---------- */
.whatsapp-float {
    position: fixed;
    right: 24px; bottom: 24px;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 10px 26px rgba(37,211,102,0.45);
    z-index: 999;
    transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
