
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
:root {
    --accent: #10b981;
    --accent-hover: #059669;
    --accent-glow: rgba(16, 185, 129, 0.25);
    --accent-subtle: rgba(16, 185, 129, 0.08);
    --accent-border: rgba(16, 185, 129, 0.15);

    --bg-primary: #0f172a;
    --bg-secondary: #0b111e;
    --bg-card: #162032;
    --bg-glass: rgba(255, 255, 255, 0.04);
    --bg-glass-hover: rgba(255, 255, 255, 0.06);
    --bg-glass-border: rgba(255, 255, 255, 0.08);
    --bg-elevated: #1a2236;
    --bg-header: rgba(11, 17, 30, 0.8);
    --bg-input: #0f172a;

    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --border-color: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);
    --border-input: #1e293b;

    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    --shadow-glow: none;
    --shadow-photo: none;

    --header-h: 70px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --nav-bg-mobile: rgba(11, 17, 30, 0.98);

    --font-primary: 'Inter', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* VARIABLES : LIGHT MODE */
[data-theme="light"] {
    --accent: #059669;
    --accent-hover: #047857;
    --accent-glow: rgba(5, 150, 105, 0.18);
    --accent-subtle: rgba(5, 150, 105, 0.06);
    --accent-border: rgba(5, 150, 105, 0.15);

    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-glass-hover: rgba(255, 255, 255, 0.85);
    --bg-glass-border: rgba(255, 255, 255, 0.9);
    --bg-elevated: #ffffff;
    --bg-header: rgba(248, 250, 252, 0.9);
    --bg-input: #ffffff;

    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;

    --border-color: rgba(0, 0, 0, 0.05);
    --border-light: rgba(0, 0, 0, 0.1);
    --border-input: #cbd5e1;

    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    --shadow-glow: none;
    --shadow-photo: none;

    --nav-bg-mobile: rgba(248, 250, 252, 0.98);
}

/* RESET & BASE */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    transition: background-color 0.45s ease, color 0.45s ease;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* ----- HEADER / NAVBAR ----- */
header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: var(--header-h);
    background: var(--bg-header);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.45s ease, border-color 0.3s ease;
}

/* Empêche le contenu de passer derrière le header fixe */
main {
    padding-top: var(--header-h);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ----- LOGO ----- */
.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.logo span {
    color: var(--accent);
}

/* ----- NAVIGATION ----- */
.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.35s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ----- HAMBURGER ----- */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1300;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.35s ease;
}

.hamburger.toggle span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 5px);
}

.hamburger.toggle span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.toggle span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -5px);
}

.menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
}

.menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* ----- THEME TOGGLE FIXED (bottom-left) ----- */
.theme-toggle-fixed {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle-fixed:hover {
    transform: scale(1.12);
    background: var(--accent);
    color: #0f172a;
    border-color: var(--accent);
}

.theme-toggle-fixed i {
    transition: transform 0.5s ease;
}

.theme-toggle-fixed:hover i {
    transform: rotate(360deg);
}

/* ----- SECTION HEADERS ----- */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 4px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.section-header h2 {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.divider {
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 4px;
    margin: 16px auto 0;
}

section {
    background: var(--bg-primary);
    transition: background-color 0.45s ease;
}

/* ===========================================================
   HERO SECTION
   =========================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: calc(var(--header-h) + 40px) 24px 60px;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    top: -100px;
    right: -100px;
    animation: floatShape 12s ease-in-out infinite;
}

.shape-2 {
    width: 350px;
    height: 350px;
    background: #3b82f6;
    bottom: -80px;
    left: -80px;
    animation: floatShape 15s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: floatShape 10s ease-in-out infinite;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1100px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-photo {
    flex-shrink: 0;
}

.photo-frame {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(135deg, var(--accent), #3b82f6, var(--accent));
    background-size: 200% 200%;
    animation: gradientSpin 6s ease infinite;
    /* box-shadow removed */
}

@keyframes gradientSpin {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.photo-frame img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-primary);
}

.hero-text-content {
    flex: 1;
    min-width: 0;
}

.hero-greeting {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.hero-text-content h1 {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 12px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.highlight {
    color: var(--accent);
}

/* ----- TYPEWRITER ----- */
.typewriter-wrapper {
    font-size: 1.4rem;
    font-weight: 600;
    min-height: 2.4rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.typewriter-text {
    color: var(--accent);
    display: inline-block;
}

.typewriter-cursor {
    color: var(--accent);
    animation: blink 0.7s step-end infinite;
    margin-left: 3px;
    font-weight: 100;
    font-size: 1.5rem;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 580px;
    margin-bottom: 28px;
    transition: color 0.3s ease;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ----- BUTTONS ----- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--accent);
    color: #0f172a;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
}

.btn-primary i {
    font-size: 1.1rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: var(--accent);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    border: 2px solid var(--accent);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-secondary:hover {
    background: var(--accent);
    color: #0f172a;
    transform: translateY(-3px);
}

/* ===========================================================
   STATS SECTION (Counters)
   =========================================================== */
.stats-section {
    padding: 80px 24px;
    background: var(--bg-secondary);
    transition: background-color 0.45s ease;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    /* box-shadow removed */
}

.stat-card i {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 12px;
    display: block;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    display: inline;
    transition: color 0.3s ease;
}

.stat-number.static {
    font-size: 2.5rem;
}

.stat-percent {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    margin-left: 2px;
    display: inline;
}

/* ----- BADGE OFFRE SPÉCIALE (sur la 3ème carte stat) ----- */
.stat-card-badge {
    position: relative;
    overflow: visible;
}

.stat-badge {
    position: absolute;
    top: -10px;
    right: -5px;
    padding: 5px 14px;
    background: linear-gradient(135deg, var(--accent), #059669);
    color: #0f172a;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 50px;
    /* box-shadow removed */
    z-index: 5;
    animation: badgePulse 1.5s ease-in-out infinite;
    white-space: nowrap;
    font-family: var(--font-primary);
}

@keyframes badgePulse {
    0%, 100% {
        /* box-shadow removed */
        transform: scale(1);
    }
    50% {
        /* box-shadow removed */
        transform: scale(1.08);
    }
}

@media (max-width: 768px) {
    .stat-badge {
        top: -8px;
        right: -4px;
        padding: 4px 10px;
        font-size: 0.6rem;
    }
}

.stat-plus {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    margin-left: 2px;
    display: inline;
}

.stat-label {
    display: block;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 8px;
    font-weight: 500;
}

/* ===========================================================
   ABOUT SECTION (Grille 2 colonnes)
   =========================================================== */
.about-section {
    padding: 100px 24px;
    background: var(--bg-primary);
    transition: background-color 0.45s ease;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}

.about-image {
    width: 75%;
    height: 100%;
}

.about-img-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid var(--border-light);
    /* box-shadow removed */
    transition: all 0.3s ease;
}

.about-img-frame:hover {
    transform: scale(1.02);
}

.about-img-frame img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.about-text {
    width: 100%;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.about-text p:last-of-type {
    margin-bottom: 0;
}

.about-cta {
    font-weight: 700;
    color: var(--accent) !important;
    border-left: 4px solid var(--accent);
    padding-left: 18px;
    background: var(--accent-subtle);
    padding: 16px 18px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ===========================================================
   SERVICES SECTION
   =========================================================== */
.services-section {
    padding: 100px 24px;
    background: var(--bg-secondary);
    transition: background-color 0.45s ease;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.service-card {
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.service-card:nth-child(-n+2) {
    background: linear-gradient(145deg, var(--accent-subtle), var(--bg-glass) 65%);
    border-color: var(--accent-border);
}

.service-card:nth-child(3) {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 540px;
    justify-self: center;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    /* box-shadow removed */
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    border-radius: var(--radius-md);
    border: 1px solid var(--accent-border);
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--accent);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.service-card > p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    transition: color 0.3s ease;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.service-features li i {
    color: var(--accent);
    font-size: 0.95rem;
}

/* PROJECTS SECTION (Cartes épurées)
   =========================================================== */
.projects-section {
    padding: 100px 24px;
    background: var(--bg-primary);
    transition: background-color 0.45s ease;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.project-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    /* box-shadow removed */
}

.project-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.project-image-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    color: inherit;
    text-align: left;
    font: inherit;
    cursor: zoom-in;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.08);
}

.project-card:nth-child(2) .project-image {
    background: var(--bg-secondary);
}

.project-card:nth-child(2) .project-image img {
    object-fit: contain;
}

.project-card:nth-child(2):hover .project-image img {
    transform: none;
}

.project-image-viewer:not([open]) {
    display: none;
}

.project-image-viewer[open] {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    padding: 64px 24px 28px;
    border: 0;
    background: transparent;
    color: var(--text-primary);
}

.project-image-viewer::backdrop {
    background: rgba(5, 10, 18, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.project-image-viewer > img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(100%, 1400px);
    max-height: calc(100vh - 130px);
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.project-image-viewer > p {
    max-width: 100%;
    color: var(--text-primary);
    text-align: center;
    font-size: 0.95rem;
}

.project-image-viewer-close {
    position: absolute;
    top: 18px;
    right: 22px;
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-primary);
    font: inherit;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.project-image-viewer-close:hover {
    background: var(--accent);
    color: #0f172a;
}

.project-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: var(--accent);
    color: #0f172a;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.project-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.project-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.project-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 4px 0 8px;
}

.project-benefits li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.project-benefits li i {
    color: var(--accent);
    font-size: 0.85rem;
}

.btn-project {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 10px;
    border: 1.5px solid var(--accent);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    margin-top: auto;
    text-decoration: none;
    width: 100%;
}

.btn-project:hover {
    background: var(--accent);
    color: #0f172a;
    transform: translateY(-2px);
}

/* ===== PROJECT ACTIONS (deux boutons côte à côte) ===== */
.project-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: auto;
}

.project-actions .btn-project {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.8rem;
    justify-content: center;
    margin-top: 0;
}

@media (max-width: 480px) {
    .project-actions {
        grid-template-columns: 1fr;
    }
}

/* ===========================================================
   MODAL SYSTEM — FLEXBOX 3 NIVEAUX (HEADER / BODY / FOOTER)
   =========================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 17, 30, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- CONTENEUR PRINCIPAL (Flexbox column) --- */
.modal-content {
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    width: min(440px, 90vw);
    overflow: hidden;
    border-radius: 16px;
    background: #162032;
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* box-shadow removed */
    animation: modalPop 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    z-index: 2001;
}

@keyframes modalPop {
    0% { opacity: 0; transform: translate(-50%, -46%) scale(0.92); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* --- EN-TÊTE FIXE --- */
.modal-header {
    padding: 1.25rem 1.5rem 0.75rem;
    flex-shrink: 0;
    background: #162032;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

/* --- CORPS DÉFILANT --- */
.modal-body {
    padding: 1rem 1.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    flex-grow: 1;
    -webkit-overflow-scrolling: touch;
}

/* SCROLLBAR FINE VERTE */
.modal-body::-webkit-scrollbar {
    width: 4px;
}
.modal-body::-webkit-scrollbar-track {
    background: transparent;
}
.modal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 230, 153, 0.3);
    border-radius: 4px;
}
.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 230, 153, 0.5);
}

/* --- PIED DE PAGE FIXE --- */
.modal-footer {
    padding: 0.75rem 1.5rem 1.25rem;
    flex-shrink: 0;
    background: #162032;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-footer .btn-primary {
    width: 100%;
    justify-content: center;
    margin: 0;
}

/* --- BOUTON FERMETURE X --- */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    z-index: 10;
}

.modal-close:hover {
    background: var(--accent);
    color: #0f172a;
    transform: rotate(90deg);
}

/* --- BADGE CATÉGORIE --- */
.modal-tag {
    display: inline-block;
    padding: 4px 14px;
    background: var(--accent-subtle);
    border: 1px solid var(--accent-border);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* --- TITRE MODALE --- */
.modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    padding-right: 32px;
}

/* --- SOUS-TITRE --- */
.modal-subtitle {
    font-size: 0.95rem;
    color: #94a3b8;
    margin-bottom: 18px;
    line-height: 1.6;
}

/* --- CORPS (TEXTE & PUCES) --- */
.modal-body p {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 12px;
}

.modal-body ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
    margin-bottom: 8px;
}

.modal-body ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.6;
}

.modal-body ul li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
}

/* --- FORMULAIRE DANS MODALE --- */
.modal-form .form-group {
    margin-bottom: 14px;
}

.modal-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 5px;
}

.modal-form input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #1e293b;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
}

.modal-form input:focus {
    border-color: var(--accent);
    /* box-shadow removed */
}

.modal-form input[readonly] {
    opacity: 0.7;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.04);
}

.modal-form .btn-primary {
    margin-top: 6px;
}

/* ===== PROFILE SELECTOR (Particulier / Entreprise) ===== */
.profile-selector {
    margin-bottom: 20px;
}

.profile-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.profile-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.profile-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-glass);
    border: 1.5px solid var(--border-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.profile-option:hover {
    border-color: var(--accent);
    background: var(--accent-subtle);
}

.profile-option.active {
    border-color: var(--accent);
    background: var(--accent-subtle);
    /* box-shadow removed */
}

.profile-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
}

.profile-option.active .profile-radio {
    border-color: var(--accent);
}

.profile-option.active .profile-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    animation: radioPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes radioPop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.profile-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-text strong {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.profile-text small {
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

/* ===== MODAL REQUEST COMPACT STYLES ===== */
.modal-box.modal-request {
    max-width: 420px;
}
.modal-box.modal-request .form-group {
    margin-bottom: 10px;
}
.modal-box.modal-request .form-group label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    display: block;
}
.modal-box.modal-request .form-group input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-input);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    font-family: inherit;
}
.modal-box.modal-request .form-group input:focus {
    border-color: var(--accent);
}
.modal-box.modal-request .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.9rem;
}

/* ===== FORM GROUP COMPANY (Animé) ===== */
.form-group-company,
.form-group-function {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s ease,
                margin 0.35s ease,
                padding 0.35s ease;
}

.form-group-company.visible,
.form-group-function.visible {
    max-height: 120px;
    opacity: 1;
    margin-bottom: 16px;
}

.form-group-company.visible input,
.form-group-function.visible input {
    animation: slideDown 0.35s ease;
}

@keyframes slideDown {
    0% {
        transform: translateY(-8px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .profile-options {
        grid-template-columns: 1fr;
    }
}

.projects-cta {
    text-align: center;
    margin-top: 40px;
}

/* ===========================================================
   CONTACT SECTION
   =========================================================== */
.contact-section {
    padding: 100px 24px;
    background: var(--bg-secondary);
    transition: background-color 0.45s ease;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info-card {
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.contact-info-card > p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    transition: color 0.3s ease;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.6rem;
    color: var(--accent);
    min-width: 36px;
    margin-top: 2px;
}

.contact-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.contact-item a {
    color: var(--text-secondary);
    transition: color 0.25s ease;
    font-size: 0.95rem;
}

.contact-item a:hover {
    color: var(--accent);
}

.contact-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ----- BOUTONS SOCIAUX AVEC COULEURS OFFICIELLES ----- */
.contact-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-primary);
    color: #ffffff !important;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    flex: 1;
    min-width: 0;
    justify-content: center;
}

.social-btn i {
    font-size: 1.1rem;
}

/* Facebook */
.social-btn-fb {
    background: #1877F2;
    /* box-shadow removed */
}
.social-btn-fb:hover {
    background: #166fe5;
    transform: translateY(-3px);
    /* box-shadow removed */
}

/* WhatsApp */
.social-btn-wa {
    background: #25D366;
    /* box-shadow removed */
}
.social-btn-wa:hover {
    background: #20bd5a;
    transform: translateY(-3px);
    /* box-shadow removed */
}

/* Email (Gmail style) */
.social-btn-em {
    background: #EA4335;
    /* box-shadow removed */
}
.social-btn-em:hover {
    background: #d33426;
    transform: translateY(-3px);
    /* box-shadow removed */
}

/* TikTok */
.social-btn-tt {
    background: #000000;
}
.social-btn-tt:hover {
    background: #1a1a1a;
    transform: translateY(-3px);
}

/* GitHub */
.social-btn-gh {
    background: #333333;
}
.social-btn-gh:hover {
    background: #242424;
    transform: translateY(-3px);
}

/* LinkedIn */
.social-btn-li {
    background: #0A66C2;
}
.social-btn-li:hover {
    background: #0959a8;
    transform: translateY(-3px);
}

/* ----- FORMULAIRE DE CONTACT ----- */
.contact-form-card {
    padding: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-input);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    /* box-shadow removed */
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.form-submit {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

/* ===========================================================
   FOOTER (Structure 3 colonnes) — Toujours sombre
   =========================================================== */
.footer {
    padding: 60px 24px 0;
    background: #0b111e;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    transition: background-color 0.45s ease, border-color 0.3s ease;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

/* --- Colonne Marque --- */
.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--text-primary);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.footer-logo span {
    color: var(--accent);
}

.footer-tagline {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
}

.footer-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* --- Colonne Navigation --- */
.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav ul li a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.footer-nav ul li a:hover {
    color: var(--accent);
    padding-left: 6px;
}

/* --- Colonne Réseaux Sociaux --- */
.footer-social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background: var(--accent);
    color: #0f172a;
    transform: translateY(-3px);
    border-color: var(--accent);
    /* box-shadow removed */
}

/* --- Barre inférieure --- */
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

#year {
    font-weight: 700;
}

/* ===========================================================
   KEYFRAMES — Animations d'apparition fluides
   =========================================================== */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(25px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ===========================================================
   ANIMATIONS APPLIQUÉES PAR COMPOSANT
   =========================================================== */

/* --- HEADER / NAVBAR & LOGO --- */
header {
    animation: fadeInUp 0.6s ease forwards;
}
.logo {
    animation: fadeInUp 0.6s ease 0.1s forwards;
    opacity: 0;
}

/* --- HERO SECTION --- */
.hero-photo {
    animation: fadeInUp 0.7s ease 0.15s forwards;
    opacity: 0;
}
.hero-greeting {
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}
.hero-text-content h1 {
    animation: fadeInUp 0.6s ease 0.25s forwards;
    opacity: 0;
}
.typewriter-wrapper {
    animation: fadeInUp 0.6s ease 0.3s forwards;
    opacity: 0;
}
.hero-description {
    animation: fadeInUp 0.6s ease 0.35s forwards;
    opacity: 0;
}
.hero-actions {
    animation: fadeInUp 0.6s ease 0.4s forwards;
    opacity: 0;
}

/* --- ABOUT SECTION --- */
.about-image {
    animation: fadeInUp 0.7s ease forwards;
}
.about-text p {
    animation: fadeInUp 0.6s ease forwards;
}
.about-text p:nth-child(1) { animation-delay: 0.1s; }
.about-text p:nth-child(2) { animation-delay: 0.2s; }
.about-text p:nth-child(3) { animation-delay: 0.3s; }

/* --- SERVICES CARDS --- */
.service-card:nth-child(1) { animation: fadeInUp 0.6s ease 0.05s forwards; opacity: 0; }
.service-card:nth-child(2) { animation: fadeInUp 0.6s ease 0.15s forwards; opacity: 0; }
.service-card:nth-child(3) { animation: fadeInUp 0.6s ease 0.25s forwards; opacity: 0; }

/* --- STATS CARDS --- */
.stat-card:nth-child(1) { animation: fadeInUp 0.6s ease 0.05s forwards; opacity: 0; }
.stat-card:nth-child(2) { animation: fadeInUp 0.6s ease 0.1s forwards; opacity: 0; }
.stat-card:nth-child(3) { animation: fadeInUp 0.6s ease 0.15s forwards; opacity: 0; }
.stat-card:nth-child(4) { animation: fadeInUp 0.6s ease 0.2s forwards; opacity: 0; }

/* --- PROJECTS CARDS --- */
.project-card:nth-child(1) { animation: fadeInUp 0.6s ease 0.05s forwards; opacity: 0; }
.project-card:nth-child(2) { animation: fadeInUp 0.6s ease 0.15s forwards; opacity: 0; }
.project-card:nth-child(3) { animation: fadeInUp 0.6s ease 0.25s forwards; opacity: 0; }

/* --- CONTACT SECTION --- */
.contact-info-card {
    animation: fadeInUp 0.6s ease 0.1s forwards;
    opacity: 0;
}
.contact-form-card {
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}
.contact-form-card .form-group {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}
.contact-form-card .form-group:nth-child(1) { animation-delay: 0.25s; }
.contact-form-card .form-group:nth-child(2) { animation-delay: 0.3s; }
.contact-form-card .form-group:nth-child(3) { animation-delay: 0.35s; }
.contact-form-card .form-group:nth-child(4) { animation-delay: 0.4s; }
.contact-form-card .form-submit {
    animation: fadeInUp 0.5s ease 0.45s forwards;
    opacity: 0;
}

/* --- SECTION HEADERS --- */
.section-header {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===========================================================
   ANIMATIONS AU SCROLL (IntersectionObserver)
   =========================================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================================================
   HOVER AMÉLIORÉ — Cartes & Boutons
   =========================================================== */
.card-hover:hover {
    transform: translateY(-6px);
    transition: all 0.3s ease;
    /* box-shadow removed */
}

.btn-hover:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* ===========================================================
   RESPONSIVE : Max 1024px (Tablettes paysage)
   =========================================================== */
@media (max-width: 1024px) {
    .hero-content {
        gap: 50px;
    }

    .photo-frame {
        width: 260px;
        height: 260px;
    }

    .hero-text-content h1 {
        font-size: 2.4rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===========================================================
   RESPONSIVE : Max 768px (Mobile & Petites tablettes)
   =========================================================== */
@media (max-width: 768px) {
    /* --- NAVBAR COMPACTE --- */
    .header-container {
        padding: 0 16px;
    }

    .logo {
        font-size: 1.4rem;
    }

    .nav-links {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(100vh - var(--header-h));
        width: 100%;
        background: var(--nav-bg-mobile);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 16px 0 40px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        gap: 0;
        z-index: 1200;
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        opacity: 0;
        animation: slideIn 0.4s ease forwards;
    }

    .nav-links.active li:nth-child(1) { animation-delay: 0.06s; }
    .nav-links.active li:nth-child(2) { animation-delay: 0.1s; }
    .nav-links.active li:nth-child(3) { animation-delay: 0.14s; }
    .nav-links.active li:nth-child(4) { animation-delay: 0.18s; }
    .nav-links.active li:nth-child(5) { animation-delay: 0.22s; }

    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateY(12px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links a {
        display: block;
        padding: 18px 24px;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--border-color);
        text-align: center;
    }

    .nav-links a:hover {
        background: var(--accent-subtle);
        padding-left: 32px;
    }

    .nav-links a::after {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .menu-backdrop {
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }

    /* --- THEME TOGGLE --- */
    .theme-toggle-fixed {
        bottom: 16px;
        left: 16px;
        width: 46px;
        height: 46px;
        font-size: 1.2rem;
    }

    /* --- HERO : 1 COLONNE CENTRÉE --- */
    .hero {
        padding: calc(var(--header-h) + 30px) 16px 40px;
        min-height: auto;
    }

    .hero-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .hero-photo {
        order: -1; /* Photo au-dessus du texte */
    }

    .photo-frame {
        width: 200px;
        height: 200px;
    }

    .hero-text-content h1 {
        font-size: 2rem;
        word-break: break-word;
    }

    .hero-greeting {
        font-size: 1rem;
    }

    .typewriter-wrapper {
        justify-content: center;
        font-size: 1.1rem;
        min-height: 2.2rem;
    }

    .typewriter-cursor {
        font-size: 1.3rem;
    }

    .hero-description {
        margin: 0 auto 24px;
        font-size: 0.95rem;
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    /* --- SECTION HEADERS --- */
    .section-header {
        margin-bottom: 32px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.8rem;
        letter-spacing: 3px;
    }

    /* --- ABOUT : 1 COLONNE --- */
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-image {
        max-width: 100%;
        margin: 0 auto;
    }

    .about-img-frame img {
        height: 240px;
        width: 100%;
        object-fit: cover;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    .about-cta {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    /* --- SERVICES : 1 COLONNE --- */
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .service-card {
        padding: 28px 24px;
    }

    .service-card h3 {
        font-size: 1.15rem;
    }

    /* --- PROJECTS : 1 COLONNE --- */
    .projects-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .project-info h3 {
        font-size: 1.05rem;
    }

    .project-info {
        padding: 20px;
    }

    /* Boutons empilés */
    .project-actions {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .project-actions .btn-project {
        font-size: 0.85rem;
        padding: 12px 16px;
    }

/* --- MODALES SUR MOBILE --- */
    .modal-overlay .modal-content,
    .audit-modal-overlay .audit-modal-content {
        width: 95vw !important;
        max-width: 95vw !important;
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, -50%) scale(0.95) !important;
    }

    .modal-overlay.active .modal-content,
    .audit-modal-overlay.active .audit-modal-content {
        transform: translate(-50%, -50%) scale(1) !important;
    }

    .modal-box {
        width: 95vw;
        max-width: 95vw;
        max-height: 88vh;
        padding: 1.25rem;
        border-radius: 16px;
        overflow: hidden;
    }

    .modal-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        z-index: 10;
    }

    .modal-title {
        font-size: 1.1rem;
        padding-right: 36px;
        margin-bottom: 10px;
    }

    .modal-subtitle {
        font-size: 0.85rem;
        margin-bottom: 14px;
    }

    .modal-body p {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }

    .modal-body ul li {
        font-size: 0.85rem;
    }

    .modal-form .form-group {
        margin-bottom: 10px;
    }

    .modal-form label {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }

    .modal-form input {
        font-size: 16px;
        padding: 0.6rem;
    }

    .modal-form .btn-primary {
        padding: 0.6rem;
        font-size: 0.85rem;
        margin-top: 4px;
    }

    /* Profile selector empilé */
    .profile-options {
        grid-template-columns: 1fr;
    }

    .profile-option {
        padding: 10px 12px;
    }

    .profile-text strong {
        font-size: 0.85rem;
    }

    .profile-text small {
        font-size: 0.7rem;
    }

    /* --- STATS --- */
    .stats-section {
        padding: 50px 16px;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 20px 12px;
    }

    .stat-card i {
        font-size: 1.8rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    /* --- CONTACT : 1 COLONNE --- */
    .contact-section {
        padding: 60px 16px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 24px;
    }

    .contact-info-card > p {
        font-size: 0.95rem;
    }

    .contact-item i {
        font-size: 1.3rem;
        min-width: 28px;
    }

    .contact-item h4 {
        font-size: 0.9rem;
    }

    .contact-item a,
    .contact-item p {
        font-size: 0.9rem;
    }

    /* Inputs anti-zoom iPhone */
    .form-group input,
    .form-group textarea {
        font-size: 16px;
        padding: 14px;
    }

    .form-group label {
        font-size: 0.85rem;
    }

    .form-submit {
        font-size: 0.95rem;
        padding: 14px 20px;
    }

    /* --- FOOTER --- */
    .footer {
        padding: 36px 16px;
    }

    .footer-logo {
        font-size: 1.5rem;
    }
}

/* ===========================================================
   RESPONSIVE : Max 640px (Petites tablettes / Grands mobiles)
   =========================================================== */
@media (max-width: 640px) {
    .hero-text-content h1 {
        font-size: 1.8rem;
    }

    .photo-frame {
        width: 180px;
        height: 180px;
    }

    .typewriter-wrapper {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .services-grid {
        max-width: 380px;
    }

    .projects-grid {
        max-width: 380px;
    }
}

/* ===========================================================
   CTA SERVICES — AUDIT GRATUIT
   =========================================================== */
.services-cta {
    text-align: center;
    max-width: 650px;
    margin: 60px auto 0;
    padding: 40px 32px;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.services-cta:hover {
    border-color: var(--accent);
    /* box-shadow removed */
}

.services-cta h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

/* ----- BOUTON AUDIT (avec animation d'attirance) ----- */
.btn-audit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: var(--accent);
    color: #0f172a;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    /* box-shadow removed */
    transition: all 0.3s ease;
    animation: auditPulse 2.5s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.btn-audit::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent), #3b82f6, var(--accent));
    background-size: 200% 200%;
    animation: auditGlow 3s ease infinite;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn-audit:hover {
    transform: translateY(-4px) scale(1.03);
    /* box-shadow removed */
    animation-play-state: paused;
}

.btn-audit:hover::before {
    opacity: 1;
}

.btn-audit:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-audit i {
    font-size: 1.2rem;
}

@keyframes auditPulse {
    0%, 100% {
        transform: scale(1);
        /* box-shadow removed */
    }
    50% {
        transform: scale(1.04);
        /* box-shadow removed */
    }
}

@keyframes auditGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ===========================================================
   MODAL AUDIT GRATUIT
   =========================================================== */
.audit-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 17, 30, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.audit-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.audit-modal-content {
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    width: min(460px, 90vw);
    overflow: hidden;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    /* box-shadow removed */
    animation: modalPop 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    z-index: 2001;
}

.audit-modal-header {
    padding: 1.25rem 1.5rem 0.75rem;
    flex-shrink: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.audit-modal-body {
    padding: 1rem 1.5rem 1.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    flex-grow: 1;
    -webkit-overflow-scrolling: touch;
}

.audit-modal-body::-webkit-scrollbar {
    width: 4px;
}
.audit-modal-body::-webkit-scrollbar-track {
    background: transparent;
}
.audit-modal-body::-webkit-scrollbar-thumb {
    background: var(--accent-glow);
    border-radius: 4px;
}

.audit-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    z-index: 10;
    font-family: inherit;
}

.audit-modal-close:hover {
    background: var(--accent);
    color: #0f172a;
    transform: rotate(90deg);
}

.audit-form .form-group {
    margin-bottom: 16px;
}

.audit-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.audit-form input,
.audit-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-input);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
}

.audit-form input::placeholder,
.audit-form textarea::placeholder {
    color: var(--text-muted);
}

.audit-form input:focus,
.audit-form textarea:focus {
    border-color: var(--accent);
    /* box-shadow removed */
}

.audit-form textarea {
    resize: vertical;
    min-height: 90px;
}

.audit-form .form-submit {
    margin-top: 8px;
}

/* ===== AUDIT TYPE SELECTOR (Particulier / Entreprise) ===== */
.audit-type-selector {
    margin-bottom: 20px;
}

.audit-type-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.audit-type-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.audit-type-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-glass);
    border: 1.5px solid var(--border-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.audit-type-option:hover {
    border-color: var(--accent);
    background: var(--accent-subtle);
}

.audit-type-option.active {
    border-color: var(--accent);
    background: var(--accent-subtle);
    /* box-shadow removed */
}

.audit-type-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
}

.audit-type-option.active .audit-type-radio {
    border-color: var(--accent);
}

.audit-type-option.active .audit-type-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    animation: radioPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.audit-type-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.audit-type-text strong {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.audit-type-text small {
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

/* ===== AUDIT GROUP TRANSITIONS ===== */
.audit-group-particulier,
.audit-group-entreprise {
    transition: opacity 0.35s ease, max-height 0.35s ease, margin 0.35s ease;
    overflow: hidden;
}

@media (max-width: 480px) {
    .audit-type-options {
        grid-template-columns: 1fr;
    }
}

/* ===== AUDIT TYPE SELECTOR (Particulier / Entreprise) ===== */
.audit-type-selector {
    margin-bottom: 20px;
}

.audit-type-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.audit-type-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.audit-type-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-glass);
    border: 1.5px solid var(--border-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.audit-type-option:hover {
    border-color: var(--accent);
    background: var(--accent-subtle);
}

.audit-type-option.active {
    border-color: var(--accent);
    background: var(--accent-subtle);
    /* box-shadow removed */
}

.audit-type-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
}

.audit-type-option.active .audit-type-radio {
    border-color: var(--accent);
}

.audit-type-option.active .audit-type-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    animation: radioPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.audit-type-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.audit-type-text strong {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.audit-type-text small {
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

@media (max-width: 480px) {
    .audit-type-options {
        grid-template-columns: 1fr;
    }
}

/* ===== AUDIT FUNCTION GROUP (conditionnel) ===== */
.audit-function-group {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s ease,
                margin 0.35s ease,
                padding 0.35s ease;
}

.audit-function-group.visible {
    max-height: 120px;
    opacity: 1;
    margin-bottom: 16px;
}

.audit-function-group.visible input {
    animation: slideDown 0.35s ease;
}

@keyframes slideDown {
    0% {
        transform: translateY(-8px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===========================================================
   TOAST NOTIFICATION
   =========================================================== */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

.toast-notification.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: #059669;
    color: #ffffff;
    border-radius: 12px;
    /* box-shadow removed */
    font-size: 0.95rem;
    font-weight: 500;
    font-family: var(--font-primary);
    min-width: 280px;
    max-width: 420px;
    line-height: 1.5;
}

.toast-content i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* ===========================================================
   RESPONSIVE : Max 480px (Petits mobiles)
   =========================================================== */
@media (max-width: 480px) {
    .hero-text-content h1 {
        font-size: 1.5rem;
    }

    .hero-greeting {
        font-size: 0.9rem;
    }

    .typewriter-wrapper {
        font-size: 0.9rem;
        min-height: 1.8rem;
    }

    .typewriter-cursor {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 0.88rem;
    }

    .photo-frame {
        width: 160px;
        height: 160px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 20px;
        font-size: 0.88rem;
        border-radius: 10px;
    }

    .section-header {
        margin-bottom: 24px;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }

    .section-subtitle {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .stat-plus {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .stat-card {
        padding: 16px 10px;
    }

    .service-card {
        padding: 24px 18px;
    }

    .project-info {
        padding: 16px;
    }

    .project-info h3 {
        font-size: 1rem;
    }

    .project-benefits li {
        font-size: 0.82rem;
    }

    .project-actions .btn-project {
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 20px 16px;
    }

    .form-group {
        margin-bottom: 14px;
    }

    .form-group label {
        font-size: 0.82rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 16px; /* Anti-zoom iPhone */
    }

    .theme-toggle-fixed {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 12px;
        left: 12px;
    }

    .logo {
        font-size: 1.2rem;
        letter-spacing: 3px;
    }

    .nav-links a {
        padding: 14px 20px;
        font-size: 1rem;
    }

    .modal-box {
        padding: 24px 16px;
        border-radius: 16px;
        max-width: 95%;
    }

    .modal-close {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
        top: 10px;
        right: 10px;
    }

    .modal-title {
        font-size: 1.15rem;
    }

    .footer {
        padding: 28px 16px;
    }

    .footer-logo {
        font-size: 1.3rem;
    }

    .footer-desc {
        font-size: 0.85rem;
    }

    /* --- TOAST SUR MOBILE --- */
    .toast-notification {
        bottom: 16px;
        right: 16px;
        left: 16px;
    }

    .toast-content {
        min-width: 0;
        max-width: 100%;
        padding: 14px 18px;
        font-size: 0.88rem;
    }
}

