/* ===== PORTFOLIO FABRICE — Design professionnel ===== */
:root {
    --primary: #0f62fe;
    --primary-hover: #0043ce;
    --dark: #0c0c0c;
    --gray-900: #161616;
    --gray-700: #393939;
    --gray-500: #6f6f6f;
    --gray-300: #a8a8a8;
    --gray-100: #e8e8e8;
    --white: #ffffff;
    --bg: #fafafa;
    --font: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    --max-width: 1200px;
    --header-height: 72px;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.08);
}

/* Mobile final override : on annule la valeur header-height redéfinie ci-dessus */
@media (max-width: 768px) {
    :root { --header-height: 84px; }
}

/* ===================== Compétences (service) ===================== */
.competences-hero {
    padding: 14px 0 44px;
    position: relative;
    overflow: hidden;
}
.competences-hero::before {
    content: '';
    position: absolute;
    inset: -120px -160px auto auto;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle at center, rgba(15, 98, 254, 0.14), transparent 62%);
    pointer-events: none;
}
.competences-hero .section-head {
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}
.competences-hero-title {
    font-size: clamp(2.05rem, 4.2vw, 2.9rem);
    font-weight: 950;
    line-height: 1.08;
    color: var(--dark);
    margin: 0 auto 14px;
    max-width: 980px;
    letter-spacing: -0.03em;
}
.competences-hero-subtitle {
    font-size: 1.1rem;
    color: var(--gray-500);
    line-height: 1.75;
    margin: 0 auto;
    max-width: 760px;
}

.competences-impact {
    padding: 22px 0 66px;
    background: linear-gradient(180deg, var(--white), rgba(15, 98, 254, 0.02) 60%, var(--white));
}
.competences-impact-grid {
    margin-top: 26px !important;
}
.competences-impact-card {
    padding: 34px 28px;
    min-height: 320px;
}
.competences-impact-list {
    margin-top: 16px;
}
.competences-impact-list li {
    color: var(--gray-700);
}

.competences-method {
    padding: 30px 0 72px;
    background: var(--white);
}
.method-flow {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 18px;
    align-items: stretch;
}
.method-step {
    flex: 1 1 220px;
    min-width: 220px;
}
.competences-method .step-card {
    padding: 22px 18px;
}
.method-arrow {
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(15, 98, 254, 0.55);
    position: relative;
    min-height: 140px;
}
.method-arrow::before {
    content: '';
    position: absolute;
    left: 50%;
    right: auto;
    top: 50%;
    width: 86px;
    height: 2px;
    transform: translate(-50%, -50%);
    background: rgba(15, 98, 254, 0.18);
    border-radius: 999px;
}
.method-arrow i {
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
}

@media (max-width: 980px) {
    .method-arrow {
        flex: 0 0 100%;
        min-height: 24px;
    }
    .method-arrow::before {
        width: 72%;
        height: 2px;
    }
}

.competences-benefits {
    padding: 30px 0 72px;
    background: linear-gradient(180deg, rgba(15, 98, 254, 0.02), var(--white) 40%);
}
.benefits-grid {
    margin-top: 34px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}
@media (min-width: 992px) {
    .benefits-grid { grid-template-columns: repeat(3, 1fr); }
}
.benefit-card .icon {
    margin-bottom: 16px;
}

.competences-cta {
    padding: 10px 0 0;
    background: var(--white);
}

/* ===================== Home (portfolio) - redesign premium ===================== */
.home-hero {
    padding: calc(var(--header-height) + 56px) 0 64px;
    position: relative;
    overflow: hidden;
}
.home-hero::before {
    content: '';
    position: absolute;
    inset: -160px -120px auto auto;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle at center, rgba(15, 98, 254, 0.16), transparent 62%);
    pointer-events: none;
}

.home-hero-grid {
    display: grid;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}
@media (min-width: 992px) {
    .home-hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 60px; }
}

.hero-left { max-width: 640px; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    margin-bottom: 18px;
}
.hero-eyebrow i { font-size: 1.1rem; }

.home-hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.05;
    color: var(--dark);
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}
.home-hero-lead {
    font-size: 1.1rem;
    color: var(--gray-500);
    line-height: 1.75;
    margin-bottom: 26px;
    max-width: 560px;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.hero-cv-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
    margin-bottom: 26px;
}

.hero-metrics {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 768px) {
    .hero-metrics { grid-template-columns: repeat(3, 1fr); }
}

.hero-metric {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius);
    padding: 18px 18px;
    box-shadow: var(--shadow);
    text-align: left;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.hero-metric:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(15, 98, 254, 0.16);
}
.hero-metric strong {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.03em;
    position: relative;
}
.hero-metric strong::before {
    content: '+';
    position: static;
    opacity: 0.9;
    font-weight: 900;
}
.hero-metric span {
    display: block;
    margin-top: 8px;
    color: var(--gray-500);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.72rem;
}

.hero-right {
    display: flex;
    justify-content: center;
}

.hero-profile-card {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1 / 1;
    border-radius: 28px;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}
.hero-profile-card:hover {
    transform: translateY(-8px);
}
.hero-profile-glow {
    position: absolute;
    inset: -100px -100px auto auto;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle at center, rgba(15, 98, 254, 0.28), transparent 60%);
    pointer-events: none;
}
.hero-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.01);
    transition: transform 0.45s ease;
}
.hero-profile-card:hover .hero-profile-img {
    transform: scale(1.06);
}
.hero-profile-ring {
    position: absolute;
    inset: 16px;
    border-radius: 24px;
    border: 1px solid rgba(15, 98, 254, 0.18);
    pointer-events: none;
}

/* ===================== Team ===================== */
.team-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg), var(--white) 60%);
    position: relative;
    overflow: hidden;
}
.section-head--center { text-align: center; }

.team-cards {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 42px;
}
.team-card {
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(15, 98, 254, 0.18);
}
@media (min-width: 992px) {
    .team-card { grid-template-columns: 0.95fr 1.05fr; gap: 32px; }
    .team-card--reverse { grid-template-columns: 1.05fr 0.95fr; }
    .team-card--reverse .team-media { order: 2; }
    .team-card--reverse .team-content { order: 1; }
}

.team-media-frame {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    position: relative;
}
.team-media-img {
    width: 100%;
    height: 100%;
    max-height: 320px;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform 0.45s ease;
}
.team-card:hover .team-media-img {
    transform: scale(1.07);
}

.team-content { padding-top: 2px; }
.team-name {
    color: var(--gray-700);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.78rem;
    margin-bottom: 10px;
}
.team-title {
    font-size: 1.35rem;
    font-weight: 950;
    color: var(--dark);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.team-desc {
    color: var(--gray-500);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 18px;
}
.team-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.team-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.78rem;
    color: var(--primary);
    background: rgba(15, 98, 254, 0.1);
    border: 1px solid rgba(15, 98, 254, 0.14);
}
.team-tools {
    color: var(--gray-700);
    font-weight: 700;
    line-height: 1.5;
}

/* ===================== Concrete blocks ===================== */
.concrete-section {
    padding: 78px 0 96px;
    background: var(--white);
}
.concrete-grid {
    margin-top: 40px;
    display: grid;
    gap: 22px;
    grid-template-columns: 1fr;
}
@media (min-width: 992px) {
    .concrete-grid { grid-template-columns: repeat(3, 1fr); }
}
.concrete-card {
    background: rgba(15, 98, 254, 0.03);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    height: 100%;
}
.concrete-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(15, 98, 254, 0.18);
}
.concrete-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(15, 98, 254, 0.18), rgba(15, 98, 254, 0.06));
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 14px;
}
.concrete-card h3 {
    font-size: 1.18rem;
    font-weight: 950;
    color: var(--dark);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}
.concrete-card p {
    color: var(--gray-500);
    line-height: 1.8;
    margin: 0;
}

/* ===================== Footer home ===================== */
.site-footer--home {
    text-align: left;
}
.footer-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: 1fr;
    align-items: start;
}
@media (min-width: 992px) {
    .footer-grid { grid-template-columns: 1.3fr 0.9fr 1fr; }
}
.footer-col { }
.footer-closing {
    margin-top: 10px;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
}
.footer-label {
    color: rgba(255,255,255,0.85);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
    margin-bottom: 12px;
}
.footer-social {
    display: grid;
    gap: 10px;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    width: fit-content;
}
.footer-social a:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 98, 254, 0.35);
    color: white;
}
.footer-social a i { font-size: 1.1rem; }
.footer-cta-text {
    margin: 0 0 14px 0;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
}
.footer-btn {
    padding: 14px 22px;
}

:root {
    --primary: #0f62fe;
    --primary-hover: #0043ce;
    --dark: #0c0c0c;
    --gray-900: #161616;
    --gray-700: #393939;
    --gray-500: #6f6f6f;
    --gray-300: #a8a8a8;
    --gray-100: #e8e8e8;
    --white: #ffffff;
    --bg: #fafafa;
    --font: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    --max-width: 1200px;
    --header-height: 72px;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--bg);
    overflow-x: hidden;
}

.container-custom {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ========== Focus styles (accessibilité, palette existante) ========== */
:is(a, button, input, textarea, select):focus-visible {
    outline: 2px solid rgba(15, 98, 254, 0.45);
    outline-offset: 3px;
}

/* ========== Buttons (utilisables sur toutes les pages) ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, color 0.2s, background 0.2s;
    white-space: nowrap;
}
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 8px 24px rgba(15, 98, 254, 0.35);
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(15, 98, 254, 0.4);
}
.btn-secondary {
    background: var(--white);
    color: var(--gray-900);
    border: 2px solid var(--gray-100);
}
.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* ========== HEADER ========== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease;
}
.main-header.is-scrolled { box-shadow: var(--shadow); }

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

/* Logo / Brand */
.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}
.header-logo {
    width: 42px;
    height: 42px;
    background: linear-gradient(145deg, var(--primary), #0050e6);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(15, 98, 254, 0.35);
}
.header-brand-text .name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--dark);
    line-height: 1.2;
}
.header-brand-text .role {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 1px;
}

/* Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 6px;
}
.nav-menu a {
    display: block;
    padding: 10px 18px;
    position: relative;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
    overflow: hidden;
}
.nav-menu a:hover {
    color: var(--primary);
    background: rgba(15, 98, 254, 0.08);
}
.nav-menu a.active {
    color: var(--primary);
    background: rgba(15, 98, 254, 0.1);
    font-weight: 600;
}
.nav-menu a::after {
    content: '';
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 8px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0;
}
.nav-menu a:hover::after {
    transform: scaleX(1);
    opacity: 0.65;
}
.nav-menu a.active::after {
    transform: scaleX(1);
    opacity: 1;
}
.nav-cta {
    margin-left: 8px;
    padding: 10px 20px !important;
    background: var(--primary) !important;
    color: white !important;
    font-weight: 600 !important;
}
.nav-cta:hover {
    background: var(--primary-hover) !important;
    color: white !important;
}

/* Mobile menu button */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--primary);
    font-size: 1.4rem;
    position: relative;
    z-index: 2101;
}
.nav-toggle i { color: inherit; }
.nav-toggle:hover { background: var(--gray-100); }

@media (max-width: 900px) {
    .nav-toggle { display: flex !important; }
    .nav-menu {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: auto;
        height: calc(100vh - var(--header-height));
        max-height: calc(100vh - var(--header-height));
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 18px 14px;
        gap: 4px;
        border-radius: 0;
        z-index: 2000;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: none;
        box-shadow: 0 24px 60px rgba(0,0,0,0.16);
    }
    .nav-menu.is-open {
        display: flex !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
    .nav-menu a { padding: 14px 16px; font-size: 1rem; }
    .nav-menu a { color: var(--gray-900) !important; opacity: 1 !important; }
    .nav-cta { margin-left: 0; margin-top: 12px; text-align: center; }
}

/* ========== HERO (Accueil) ========== */
.hero {
    min-height: 100vh;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(180deg, #f0f5ff 0%, var(--bg) 50%);
}
.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 0;
    width: 50%;
    max-width: 500px;
    height: 60%;
    background: radial-gradient(ellipse at center, rgba(15, 98, 254, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}
@media (min-width: 992px) {
    .hero-grid { grid-template-columns: 1fr 400px; gap: 64px; }
}

.hero-content {}
.hero-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 20px;
    padding: 6px 14px;
    background: rgba(15, 98, 254, 0.1);
    border-radius: 100px;
}
.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--dark);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}
.hero-title .highlight {
    color: var(--primary);
    position: relative;
}
.hero-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray-500);
    max-width: 480px;
    margin-bottom: 32px;
}

/* ========== Hero highlights (pills) ========== */
.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(15, 98, 254, 0.08);
    border: 1px solid rgba(15, 98, 254, 0.12);
    color: var(--gray-700);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: -0.01em;
}
.hero-pill i { color: var(--primary); font-size: 1.05rem; }
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.hero-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.hero-actions .btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 8px 24px rgba(15, 98, 254, 0.35);
}
.hero-actions .btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(15, 98, 254, 0.4);
}
.hero-actions .btn-secondary {
    background: var(--white);
    color: var(--gray-900);
    border: 2px solid var(--gray-100);
}
.hero-actions .btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Hero visual */
.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 360px;
}
.hero-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -12px;
    background: linear-gradient(145deg, var(--primary), #0050e6);
    border-radius: 24px;
    opacity: 0.15;
    z-index: 0;
}
.hero-image-wrapper img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}
.hero-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}
.hero-stat {
    background: var(--white);
    padding: 20px 24px;
    border-radius: var(--radius-sm);
    text-align: center;
    min-width: 110px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.04);
}
.hero-stat strong {
    display: block;
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 4px;
    font-weight: 700;
}
.hero-stat span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========== SECTION "Ce que je fais" ========== */
.section {
    padding: 80px 0;
    background: var(--white);
}
.section-head {
    text-align: center;
    margin-bottom: 48px;
}
.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.section-desc {
    font-size: 1.05rem;
    color: var(--gray-500);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}
.cards-row {
    display: grid;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

/* ========== Méthode (étapes) — page accueil ========== */
.steps-grid {
    display: grid;
    gap: 24px;
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .steps-grid { grid-template-columns: repeat(3, 1fr); }
}
.step-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;
    overflow: hidden;
    height: 100%;
}
.step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(15, 98, 254, 0.15);
}
.step-card::before {
    content: '';
    position: absolute;
    inset: -40px -60px auto auto;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle at center, rgba(15, 98, 254, 0.16), transparent 62%);
    pointer-events: none;
}
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: rgba(15, 98, 254, 0.08);
    border: 1px solid rgba(15, 98, 254, 0.14);
    color: var(--primary);
    font-weight: 900;
    font-size: 1.1rem;
    margin-bottom: 16px;
}
.step-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(15, 98, 254, 0.16), rgba(15, 98, 254, 0.06));
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    margin-bottom: 16px;
}
.step-card h3 {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.step-card p {
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}
@media (min-width: 768px) {
    .cards-row { grid-template-columns: repeat(3, 1fr); }
}
.card-simple {
    background: var(--bg);
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
    position: relative;
    overflow: hidden;
}
.card-simple::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, rgba(15, 98, 254, 0.75), transparent);
    opacity: 0.55;
    pointer-events: none;
}
.card-simple:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(15, 98, 254, 0.15);
}
.card-simple .icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(15, 98, 254, 0.15), rgba(15, 98, 254, 0.08));
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.card-simple h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}
.card-simple p {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin: 0;
}

/* ========== PAGES INTERNES ========== */
.page-main {
    padding: calc(var(--header-height) + 48px) 0 80px;
}
.page-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.page-intro {
    font-size: 1.05rem;
    color: var(--gray-500);
    text-align: center;
    max-width: 560px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

.about-content { max-width: 920px; margin: 0 auto; }
.about-grid {
    display: grid;
    gap: 28px;
}
.about-quote-col { align-items: start; }
@media (min-width: 992px) {
    .about-grid { grid-template-columns: 0.95fr 1.35fr; align-items: start; }
}
.quote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--gray-700);
    margin: 32px 0;
    padding: 24px 28px;
    border-left: 4px solid var(--primary);
    background: rgba(15, 98, 254, 0.05);
    border-radius: 0 12px 12px 0;
    line-height: 1.6;
}
.about-text p {
    margin-bottom: 20px;
    color: var(--gray-700);
    font-size: 1.05rem;
    line-height: 1.75;
    text-align: justify;
}
.about-text strong { color: var(--dark); }
.stats-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    margin-top: 48px;
    padding: 40px 32px;
    background: linear-gradient(135deg, var(--dark), #1a1a1a);
    color: white;
    border-radius: var(--radius);
    text-align: center;
}
.stats-row .stat strong { display: block; font-size: 2.25rem; font-weight: 800; margin-bottom: 4px; }
.stats-row .stat span { font-size: 0.9rem; opacity: 0.85; }

/* ===================== À PROPOS — Modernisation (scopée) ===================== */
.apropos-page .about-content { max-width: 980px; }

.apropos-page .about-grid {
    align-items: start;
}

.apropos-page .about-quote-card {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.apropos-page .about-quote-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.apropos-page .about-quote-marks {
    font-size: 2.15rem;
    line-height: 1;
    color: rgba(15, 98, 254, 0.35);
    position: absolute;
    top: 18px;
    right: 18px;
    pointer-events: none;
}

.apropos-page .about-quote-body {
    padding-right: 52px;
}

.apropos-page .about-text {
    padding-top: 8px;
}

.apropos-page .about-text-block {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius);
    padding: 18px 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
    margin-bottom: 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.apropos-page .about-text-block:last-child { margin-bottom: 0; }

.apropos-page .about-text-block:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(15, 98, 254, 0.16);
}

.apropos-page .about-text-block-icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(15, 98, 254, 0.16), rgba(15, 98, 254, 0.06));
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 10px 26px rgba(15, 98, 254, 0.14);
}

.apropos-page .about-text-block p {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .apropos-page .about-text-block {
        flex-direction: column;
        gap: 10px;
    }
}

/* Stats en cartes + compteur */
.apropos-page .stats-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 40px;
    padding: 34px 20px;
}

@media (min-width: 768px) {
    .apropos-page .stats-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.apropos-page .stats-row .stat {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.apropos-page .stats-row .stat:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(15, 98, 254, 0.25);
}

.apropos-page .about-stat-icon {
    font-size: 1.35rem;
    opacity: 0.95;
}

/* Section "Approche" */
.apropos-page .about-approach {
    margin-top: 56px;
}

.apropos-page .about-approach-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 26px;
}

@media (min-width: 992px) {
    .apropos-page .about-approach-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.apropos-page .about-approach-card {
    background: rgba(15, 98, 254, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius);
    padding: 26px 22px;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    height: 100%;
}

.apropos-page .about-approach-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(15, 98, 254, 0.18);
}

.apropos-page .about-approach-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(15, 98, 254, 0.16), rgba(15, 98, 254, 0.06));
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 14px;
}

.apropos-page .about-approach-card h3 {
    margin: 0 0 10px 0;
    letter-spacing: -0.02em;
}

.apropos-page .about-approach-card p {
    margin: 0;
    color: var(--gray-500);
    line-height: 1.8;
}

.skills-grid {
    display: grid;
    gap: 16px;
}
@media (min-width: 600px) { .skills-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .skills-grid { grid-template-columns: repeat(3, 1fr); } }

/* ========== Offres (compétences) ========== */
.offers-grid {
    display: grid;
    gap: 24px;
    margin-top: 28px;
}
@media (min-width: 992px) { .offers-grid { grid-template-columns: repeat(3, 1fr); } }
.offer-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    height: 100%;
}
.offer-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(15, 98, 254, 0.15);
}
.offer-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(15, 98, 254, 0.16), rgba(15, 98, 254, 0.06));
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    margin-bottom: 14px;
}
.offer-card h3 {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}
.offer-card p {
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 14px;
}
.offer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}
.offer-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--gray-700);
    font-weight: 650;
    line-height: 1.5;
}
.offer-list li i {
    color: var(--primary);
    margin-top: 2px;
    font-size: 1.1rem;
}
.skill-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}
.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.skill-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.skill-card p { font-size: 0.9rem; color: var(--gray-500); line-height: 1.5; margin: 0; }

.projects-grid {
    display: grid;
    gap: 24px;
    align-items: stretch;
}
@media (min-width: 768px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }
.project-card {
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}
.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.project-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
    background: rgba(15, 98, 254, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
}
.project-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.project-card p { font-size: 0.9rem; color: var(--gray-500); line-height: 1.5; margin-bottom: 12px; }
.project-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.project-link:hover { text-decoration: underline; }
.project-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(15, 98, 254, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    margin-right: 6px;
}

/* ===================== Projets — Carrousel (Swiper) ===================== */
.projects-hero {
    text-align: center;
    margin-bottom: 28px;
}
.projects-hero-title {
    font-size: clamp(2.05rem, 4.6vw, 3.0rem);
    font-weight: 950;
    line-height: 1.08;
    color: var(--dark);
    letter-spacing: -0.03em;
    margin: 0 auto 14px;
    max-width: 980px;
}
.projects-hero-subtitle {
    font-size: 1.08rem;
    color: var(--gray-500);
    line-height: 1.75;
    margin: 0 auto;
    max-width: 820px;
}

.projects-carousel-wrap {
    position: relative;
    padding: 8px 0 6px;
}

.projects-carousel {
    position: relative;
    margin: 0 auto;
}

.projects-carousel .swiper {
    padding: 6px 0 44px;
}

.projects-carousel .swiper-wrapper {
    align-items: stretch;
}

/* Chaque slide = 1 carte projet */
.projects-carousel .swiper-slide {
    display: flex;
    height: 100%;
}

.projects-slide-card {
    width: 100%;
}

/* Carte “premium” (hover) */
.projects-carousel .project-card.has-thumb {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s ease,
                border-color 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 460px; /* Même dimension pour chaque slide */
}

.projects-carousel .project-thumb-wrap {
    height: 170px;
    background: linear-gradient(180deg, rgba(15, 98, 254, 0.05), rgba(255,255,255,0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.projects-carousel .project-thumb {
    width: 88%;
    height: 88%;
    object-fit: contain;
    border-radius: 14px;
    transition: transform 0.5s ease;
    transform: scale(1.0);
}

.projects-carousel .project-card.has-thumb:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(15, 98, 254, 0.18);
}

.projects-carousel .project-card.has-thumb:hover .project-thumb {
    transform: scale(1.06);
}

.projects-carousel .project-body {
    padding: 22px 22px 20px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.projects-carousel .project-badge {
    margin-bottom: 10px;
}

.projects-carousel .project-card h3 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.projects-carousel .project-card p {
    margin-bottom: 14px;
}

.project-result {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(15, 98, 254, 0.08);
    border: 1px solid rgba(15, 98, 254, 0.16);
    width: fit-content;
    max-width: 100%;
}

.project-result i {
    color: var(--primary);
    font-size: 1.05rem;
}

.project-result span {
    font-weight: 900;
    color: var(--dark);
    letter-spacing: -0.02em;
}

/* Pagination (dots) */
.projects-swiper-pagination .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(15, 98, 254, 0.25);
    opacity: 0.95;
}
.projects-swiper-pagination .swiper-pagination-bullet-active {
    background: var(--primary);
    width: 24px;
    border-radius: 999px;
}

/* Parallax / motion léger : image “réagit” au survol */
.projects-carousel .project-card.has-thumb {
    --mx: 50%;
    --my: 50%;
}
.projects-carousel .project-card.has-thumb:hover .project-thumb {
    transform: scale(1.06) translate3d(calc((var(--mx) - 50%) / 120), calc((var(--my) - 50%) / 120), 0);
}

/* Tactile / mobile : pas de “hover parallax” (évite les bugs et rend le slide plus stable) */
@media (hover: none) and (pointer: coarse) {
    .projects-carousel .project-card.has-thumb:hover {
        transform: none;
        box-shadow: var(--shadow);
    }
    .projects-carousel .project-card.has-thumb:hover .project-thumb {
        transform: none;
    }
}

@media (max-width: 700px) {
    .projects-carousel .swiper {
        padding-bottom: 38px;
    }
    .projects-carousel .project-body {
        padding: 18px 18px 16px;
    }
    .projects-carousel .project-thumb-wrap {
        height: 150px;
    }
    .projects-carousel .project-card.has-thumb {
        min-height: 420px;
    }
}

/* ========== Portfolio previews (miniatures + contenu) ========== */
.section-head--left { text-align: left; }

.section-kicker {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    background: rgba(15, 98, 254, 0.1);
    padding: 8px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.section-actions {
    margin-top: 28px;
    display: flex;
    justify-content: center;
}

.section-portfolio {
    background: linear-gradient(180deg, var(--bg) 0%, var(--white) 60%);
    position: relative;
    overflow: hidden;
}
.section-portfolio::after {
    content: '';
    position: absolute;
    right: -180px;
    top: 40px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle at center, rgba(15, 98, 254, 0.14), transparent 60%);
    pointer-events: none;
}

.project-card.has-thumb {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.project-thumb-wrap {
    width: 100%;
    height: 190px;
    background: rgba(0,0,0,0.02);
}
.project-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.project-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.project-body .project-link { margin-top: auto; }

.cta-card {
    margin-top: 64px;
    background: rgba(15, 98, 254, 0.06);
    border: 1px solid rgba(15, 98, 254, 0.15);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}
.cta-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}
.cta-desc {
    color: var(--gray-500);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 640px;
}
.cta-actions {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 700px) {
    .section-head--left { text-align: center; }
}

.contact-wrap { max-width: 720px; margin: 0 auto; }
.contact-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.04);
}
.contact-card-inner { display: grid; gap: 32px; }
@media (min-width: 640px) {
    .contact-card-inner { grid-template-columns: 1fr 1.5fr; }
}
.contact-info a {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--gray-900);
    text-decoration: none;
    padding: 12px 0;
    transition: color 0.2s;
}
.contact-info a:hover { color: var(--primary); }
.contact-info .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(15, 98, 254, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.contact-card .form-label { font-weight: 600; color: var(--dark); display: block; margin-bottom: 6px; }
.contact-subtitle {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
}
.contact-card .form-control {
    width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-100);
    padding: 12px 16px;
    font-size: 1rem;
    font-family: inherit;
    margin-bottom: 16px;
}
.contact-card .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 98, 254, 0.15);
}

.contact-card textarea.form-control {
    resize: vertical;
}
.contact-card .btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
}
.contact-card .btn-primary:hover { background: var(--primary-hover); }

.collab-note {
    margin: 0 0 16px 0;
    color: var(--gray-500);
    line-height: 1.7;
}

.collab-note a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.collab-note a:hover {
    text-decoration: underline;
}

.sensitive-form {
    display: block;
}

.sensitive-form .form-control {
    margin-bottom: 14px;
}

.sensitive-form select.form-control {
    appearance: none;
    background-color: var(--white);
}

.sensitive-form .btn {
    margin-top: 10px;
}

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.thankyou-card {
    text-align: center;
}

.thankyou-title {
    margin-bottom: 10px;
}

.thankyou-intro {
    margin-bottom: 24px;
}

.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    padding: 24px 0;
    margin-top: 0;
    text-align: center;
    font-size: 0.9rem;
}

/* ========== ANIMATIONS — Portfolio Community Manager & Créateur de contenu ========== */

/* Entrée au chargement (hero, etc.) */
.fadeup {
    opacity: 0;
    transform: translateY(28px);
    animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.fadeup.delay-1 { animation-delay: 0.1s; }
.fadeup.delay-2 { animation-delay: 0.2s; }
.fadeup.delay-3 { animation-delay: 0.3s; }
.fadeup.delay-4 { animation-delay: 0.4s; }
.fadeup.delay-5 { animation-delay: 0.5s; }
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Apparition au scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
.animate-on-scroll[data-delay="1"] { transition-delay: 0.1s; }
.animate-on-scroll[data-delay="2"] { transition-delay: 0.15s; }
.animate-on-scroll[data-delay="3"] { transition-delay: 0.2s; }
.animate-on-scroll[data-delay="4"] { transition-delay: 0.25s; }
.animate-on-scroll[data-delay="5"] { transition-delay: 0.3s; }
.animate-on-scroll[data-delay="6"] { transition-delay: 0.35s; }
.animate-on-scroll[data-delay="7"] { transition-delay: 0.4s; }

/* Variante : slide depuis la gauche */
.animate-from-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.animate-from-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Variante : scale + fade (cartes, stats) */
.animate-scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.animate-scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Flottement léger (hero image, décor) */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.hero-image-wrapper {
    animation: float 5s ease-in-out infinite;
}

/* Brillant sur le titre hero (créateur de contenu) */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.hero-title .highlight {
    background: linear-gradient(90deg, var(--primary), #4589ff, var(--primary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
}

/* Header : logo et liens animés */
.header-logo {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.header-brand:hover .header-logo {
    transform: scale(1.05) rotate(-3deg);
    box-shadow: 0 6px 20px rgba(15, 98, 254, 0.45);
}
.nav-menu a {
    transition: color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}
.nav-menu a:hover {
    transform: translateY(-1px);
}
.nav-cta {
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.nav-cta:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(15, 98, 254, 0.4) !important;
}

/* Cartes : icône qui rebondit au survol */
.card-simple .icon {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.card-simple:hover .icon {
    transform: scale(1.1);
}
.skill-card, .project-card {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s ease,
                border-color 0.3s ease;
}
.hero-stat {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}
.contact-info .icon-box {
    transition: transform 0.3s ease, background 0.3s ease;
}
.contact-info a:hover .icon-box {
    transform: scale(1.08);
}
.contact-info a {
    transition: color 0.25s ease, transform 0.2s ease;
}
.contact-info a:hover {
    transform: translateX(4px);
}
.site-footer {
    transition: opacity 0.3s ease;
}
.site-footer:hover {
    opacity: 0.95;
}

@media (max-width: 768px) {
    .hero { min-height: auto; padding: 80px 0 60px; }
    .section { padding: 56px 0; }
    .page-main { padding: calc(var(--header-height) + 32px) 0 56px; }
}

/* ========== Responsive global (mobile/tablette) ========== */
@media (max-width: 1024px) {
    .container-custom {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero-grid {
        gap: 36px;
    }

    .stats-row {
        gap: 20px;
        padding: 28px 20px;
    }

    .contact-card {
        padding: 28px;
    }
}

@media (max-width: 768px) {
    /* Le header est fixed : on augmente la hauteur pour éviter de couper la 2e ligne */
    :root { --header-height: 84px; }

    .header-inner {
        gap: 10px;
        align-items: flex-start;
        padding-top: 8px;
    }

    /* Le hero doit laisser plus d'espace au-dessus du header */
    .home-hero {
        padding-top: calc(var(--header-height) + 92px);
    }

    .header-brand {
        min-width: 0;
        max-width: calc(100% - 56px);
    }

    .header-brand-text .name {
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-brand-text .role {
        font-size: 0.64rem;
        line-height: 1.2;
    }

    .team-section,
    .concrete-section,
    .section {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .page-title {
        font-size: 1.7rem;
    }

    .page-intro {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .hero-ctas,
    .cta-actions {
        width: 100%;
    }

    .hero-ctas .btn,
    .hero-cv-actions .btn,
    .cta-actions .btn {
        width: 100%;
    }

    .contact-card {
        padding: 22px 18px;
    }

    .contact-card .btn-primary,
    .sensitive-form .btn {
        width: 100%;
    }

    .project-body,
    .offer-card,
    .project-card,
    .step-card,
    .card-simple {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .container-custom {
        padding-left: 14px;
        padding-right: 14px;
    }

    .home-hero-title,
    .hero-title,
    .projects-hero-title,
    .competences-hero-title {
        font-size: 1.9rem;
        line-height: 1.12;
    }

    .section-title {
        font-size: 1.45rem;
    }

    .hero-metric strong {
        font-size: 1.6rem;
    }

    .team-card,
    .contact-card,
    .cta-card {
        border-radius: 12px;
    }
}

/* Définition de secours des variables CSS */
:root {
    --primary: #0f62fe;
    --primary-hover: #0043ce;
    --dark: #0c0c0c;
    --gray-900: #161616;
    --gray-700: #393939;
    --gray-500: #6f6f6f;
    --gray-300: #a8a8a8;
    --gray-100: #e8e8e8;
    --white: #ffffff;
    --bg: #fafafa;
    --font: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    --max-width: 1200px;
    --header-height: 72px;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.08);
}
