/* =====================================================
   NICOLAS DANSE · KINÉSITHÉRAPEUTE
   Feuille de style principale
   ===================================================== */

:root {
    --teal: #16a394;
    --teal-light: #1fc7b4;
    --teal-dark: #0e7d71;
    --ink: #0d1b22;
    --ink-soft: #16282f;
    --grey: #f4f6f6;
    --grey-line: #e3e8e8;
    --text: #2c3a40;
    --muted: #6a787e;
    --white: #ffffff;
    --wa: #25D366;
    --wa-dark: #1ebe5d;
    --font: 'Montserrat', sans-serif;
    --shadow: 0 18px 50px -20px rgba(13, 27, 34, 0.35);
    --radius: 14px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
    font-family: var(--font);
    color: var(--text);
    line-height: 1.65;
    background: var(--white);
    overflow-x: hidden;
}

img { display: block; max-width: 100%; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ============ TYPOGRAPHIE SECTIONS ============ */
.section-tag {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 14px;
}
.section-tag.light { color: var(--teal-light); }

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: var(--ink);
    line-height: 1.12;
    letter-spacing: -0.5px;
    margin-bottom: 48px;
}
.section-title.light { color: var(--white); }

/* ============ BOUTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 34px;
    border: none;
    border-radius: 999px;
    font-family: var(--font);
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
    white-space: nowrap;
}
.btn-sm { padding: 11px 24px; font-size: 0.85rem; }
.full { width: 100%; }

.btn-primary { background: var(--teal); color: var(--white); box-shadow: 0 10px 24px -10px var(--teal); }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-3px); box-shadow: 0 16px 30px -12px var(--teal); }

.btn-ghost { background: rgba(255,255,255,0.08); color: var(--white); border: 1.5px solid rgba(255,255,255,0.4); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,0.18); transform: translateY(-3px); }

.btn-white { background: var(--white); color: var(--teal-dark); }
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -14px rgba(0,0,0,0.45); }

.btn-whatsapp { background: var(--wa); color: var(--white); box-shadow: 0 10px 24px -10px var(--wa); }
.btn-whatsapp:hover { background: var(--wa-dark); transform: translateY(-3px); }

/* ============ NAVBAR ============ */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    z-index: 1000;
    padding: 22px 0;
    transition: padding 0.35s var(--ease), background 0.35s, box-shadow 0.35s;
}
.navbar.scrolled {
    padding: 12px 0;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 6px 24px -14px rgba(0,0,0,0.3);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-brand {
    font-weight: 900; font-size: 1.1rem; color: var(--white);
    line-height: 1.1; text-decoration: none; transition: color 0.35s;
}
.nav-brand span {
    display: block; font-weight: 500; font-size: 0.68rem;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--teal-light); transition: color 0.35s;
}
.navbar.scrolled .nav-brand { color: var(--ink); }
.navbar.scrolled .nav-brand span { color: var(--teal); }

.nav-links { display: flex; gap: 32px; margin-left: auto; margin-right: 8px; }
.nav-links a {
    color: rgba(255,255,255,0.85); text-decoration: none;
    font-size: 0.88rem; font-weight: 600; position: relative; transition: color 0.35s;
}
.nav-links a::after {
    content: ''; position: absolute; left: 0; bottom: -5px;
    width: 0; height: 2px; background: var(--teal); transition: width 0.3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.navbar.scrolled .nav-links a { color: var(--text); }

/* ============ HERO ============ */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center;
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 1; }
.hero-bg img {
    width: 100%; height: 100%; object-fit: cover;
    animation: heroZoom 14s ease-out forwards;
}
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }

.hero-overlay {
    position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(105deg, rgba(13,27,34,0.94) 0%, rgba(13,27,34,0.78) 42%, rgba(13,27,34,0.35) 100%);
}
.hero-content { position: relative; z-index: 3; max-width: 720px; padding-top: 60px; }
.hero-tag {
    font-size: 0.8rem; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; color: var(--teal-light); margin-bottom: 22px;
}
.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.4rem);
    font-weight: 900; color: var(--white); line-height: 1.05;
    letter-spacing: -1.5px; margin-bottom: 26px;
}
.hero h1 .accent {
    background: linear-gradient(100deg, var(--teal-light), var(--teal));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub {
    font-size: 1.15rem; color: rgba(255,255,255,0.82);
    line-height: 1.7; margin-bottom: 38px; max-width: 560px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.scroll-cue {
    position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
    z-index: 3; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.5);
    border-radius: 14px; display: flex; justify-content: center; padding-top: 8px;
}
.scroll-cue span {
    width: 4px; height: 8px; background: var(--white); border-radius: 2px;
    animation: scrollDot 1.6s infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(-4px);} 50%{opacity:1;} 100%{opacity:0; transform: translateY(10px);} }

/* ============ STATS ============ */
.stats { background: var(--ink); padding: 0; }
.stats-inner {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 20px; padding: 46px 28px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.stat { text-align: center; }
.stat-num {
    display: block; font-size: 2.6rem; font-weight: 900;
    color: var(--teal-light); line-height: 1; letter-spacing: -1px;
}
.stat-label { font-size: 0.84rem; color: rgba(255,255,255,0.6); margin-top: 8px; display: block; }

/* ============ SERVICES ============ */
.services { padding: 110px 0; background: var(--white); text-align: center; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
    background: var(--white); padding: 48px 34px;
    border-radius: var(--radius); border: 1px solid var(--grey-line);
    text-align: left; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon {
    width: 58px; height: 58px; border-radius: 14px;
    background: linear-gradient(135deg, var(--teal), var(--teal-light));
    display: flex; align-items: center; justify-content: center; margin-bottom: 24px;
}
.card-icon svg { width: 28px; height: 28px; color: var(--white); }
.card h3 { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* ============ PROCESS ============ */
.process { padding: 110px 0; background: var(--grey); text-align: center; }
.steps {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
    counter-reset: step; position: relative;
}
.step {
    background: var(--white); padding: 44px 30px; border-radius: var(--radius);
    text-align: center; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.step:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.step-num {
    width: 60px; height: 60px; margin: 0 auto 22px;
    background: linear-gradient(135deg, var(--teal-dark), var(--teal));
    color: var(--white); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 1.5rem; box-shadow: 0 10px 22px -10px var(--teal);
}
.step h3 { font-weight: 700; color: var(--ink); margin-bottom: 10px; font-size: 1.08rem; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* ============ ABOUT ============ */
.about { padding: 110px 0; background: var(--white); }
.about-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; align-items: center; }
.about-photo { position: relative; }
.about-photo img {
    width: 100%; height: 560px; object-fit: cover;
    border-radius: var(--radius); box-shadow: var(--shadow);
}
.about-badge {
    position: absolute; bottom: 26px; left: -22px;
    background: var(--white); color: var(--ink);
    padding: 16px 26px; border-radius: 999px;
    font-weight: 700; font-size: 0.86rem; box-shadow: var(--shadow);
}
.about-text p { color: var(--muted); margin-bottom: 16px; }
.about-meta { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; }
.about-meta span { font-weight: 600; color: var(--ink); font-size: 0.95rem; }

/* ============ UNIVERS / GALERIE ============ */
.univers { padding: 110px 0; background: var(--grey); text-align: center; }
.gallery {
    display: grid; grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 240px; gap: 22px;
}
.gallery-item {
    position: relative; overflow: hidden; border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.gallery-item.large { grid-row: span 2; }
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.7s var(--ease);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item figcaption {
    position: absolute; left: 0; bottom: 0; right: 0;
    padding: 26px 22px 18px; text-align: left;
    color: var(--white); font-weight: 600; font-size: 0.92rem;
    background: linear-gradient(transparent, rgba(13,27,34,0.85));
}

/* ============ RDV CTA ============ */
.rdv {
    padding: 100px 0;
    background: linear-gradient(120deg, var(--teal-dark), var(--teal));
    text-align: center;
}
.rdv-inner { max-width: 620px; margin: 0 auto; }
.rdv h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; color: var(--white); margin-bottom: 16px; }
.rdv p { color: rgba(255,255,255,0.9); font-size: 1.08rem; margin-bottom: 36px; }

/* ============ URGENCES ============ */
.urgences { padding: 110px 0; background: var(--ink); }
.urgences-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.urgences-intro p { color: rgba(255,255,255,0.72); margin-bottom: 14px; }
.urgences-note {
    font-size: 0.82rem !important; color: rgba(255,255,255,0.42) !important;
    border-left: 3px solid var(--teal); padding-left: 14px; margin-top: 22px;
}

.urgences-form {
    background: var(--white); padding: 38px; border-radius: 18px; box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 0.84rem; color: var(--ink); margin-bottom: 7px; }
.field .opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
    width: 100%; padding: 13px 16px; font-family: var(--font); font-size: 0.92rem;
    color: var(--text); background: var(--grey); border: 1.5px solid transparent;
    border-radius: 10px; transition: border-color 0.25s, background 0.25s; resize: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--teal); background: var(--white);
}
.form-hint { text-align: center; font-size: 0.78rem; color: var(--muted); margin-top: 14px; }

/* ============ FOOTER ============ */
.footer { background: #07121a; padding: 64px 0 26px; color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; margin-bottom: 44px; }
.footer p { margin-bottom: 7px; }
.footer strong { color: var(--white); }
.footer-name { font-weight: 900; font-size: 1.15rem; color: var(--white); margin-bottom: 4px !important; }
.footer-spec { color: var(--teal-light) !important; font-size: 0.82rem; margin-top: 8px; }
.footer a { color: var(--teal-light); text-decoration: none; font-weight: 700; display: inline-block; margin-top: 8px; }
.footer a:hover { text-decoration: underline; }
.footer-copy { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 22px; text-align: center; font-size: 0.78rem; }

/* ============ WHATSAPP FLOAT ============ */
.wa-float {
    position: fixed; bottom: 26px; right: 26px; z-index: 900;
    width: 58px; height: 58px; border-radius: 50%;
    background: var(--wa); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 30px -8px rgba(37,211,102,0.6);
    transition: transform 0.3s var(--ease);
    animation: waPulse 2.4s infinite;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.12); }
@keyframes waPulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
    70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ============ ANIMATIONS REVEAL ============ */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 0; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-up.in, .reveal-left.in, .reveal-right.in { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 920px) {
    .nav-links { display: none; }
    .about-inner, .urgences-grid { grid-template-columns: 1fr; gap: 44px; }
    .about-badge { left: 16px; }
    .cards, .steps { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
    .gallery-item.large { grid-row: span 1; }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .stats-inner { grid-template-columns: 1fr; gap: 28px; }
    .hero { min-height: 92vh; }
}

@media (max-width: 520px) {
    .container { padding: 0 20px; }
    .hero-btns { flex-direction: column; }
    .hero-btns .btn { width: 100%; }
    .services, .process, .about, .univers, .urgences, .rdv { padding: 70px 0; }
    .urgences-form { padding: 26px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal-up, .reveal-left, .reveal-right { opacity: 1; transform: none; }
}
