/* ============================================================================
   ATLANTIS v2 - Styles de la landing page publique
   ============================================================================ */

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

/* Ruban d'apercu d'un design non publie */
.preview-ribbon {
    position: relative;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 16px;
    background: #101828;
    color: #ec4899;
    font-size: 0.85rem;
}

.preview-ribbon strong { color: #ffffff; }

.preview-ribbon a {
    color: #f472b6;
    text-decoration: underline;
}

:root {
    --primary: #0a1628;
    --secondary: #00b4d8;
    --fond: #f8fafc;
    --font-titre: 'Inter', sans-serif;
    --font-corps: 'Inter', sans-serif;
    --text: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.1);
    --transition: 0.3s ease;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --hero-bg: var(--primary);
    --section-alt-bg: var(--white);
    --wave-fill: var(--fond);
    --input-bg: var(--fond);
}

[data-theme="dark"] {
    --fond: #0f172a;
    --card-bg: #1e293b;
    --card-border: #334155;
    --text: #e2e8f0;
    --text-light: #94a3b8;
    --border: #334155;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
    --hero-bg: #070d1a;
    --section-alt-bg: #1a2436;
    --wave-fill: #0f172a;
    --input-bg: #1e293b;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-corps);
    color: var(--text);
    background: var(--fond);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s ease, box-shadow 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .navbar {
    background: rgba(15,23,42,0.95);
}

.navbar.scrolled {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    height: 72px;
    border-bottom: none;
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(15,23,42,0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 84px;
    transition: height 0.3s ease;
}

.navbar.scrolled .nav-container { height: 72px; }

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.4rem;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--primary);
    color: var(--secondary);
    border-radius: 10px;
    font-weight: 800;
    font-size: 1.3rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-light);
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.nav-links a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
    background: var(--secondary) !important;
    color: var(--white) !important;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 600 !important;
}

.nav-cta:hover { opacity: 0.9; animation: ctaPulse 1.5s ease-in-out infinite; }

@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 180, 216, 0.4); }
    50%      { box-shadow: 0 0 0 6px rgba(0, 180, 216, 0); }
}

/* --- THEME TOGGLE --- */
.theme-toggle {
    background: none;
    border: 2px solid var(--border);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: var(--transition);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.theme-toggle:hover { border-color: var(--secondary); color: var(--secondary); }
.theme-toggle svg { width: 18px; height: 18px; }

[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun  { display: block; }
:root:not([data-theme="dark"]) .icon-sun  { display: none; }
:root:not([data-theme="dark"]) .icon-moon { display: block; }

/* --- HAMBURGER --- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger .bar {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- HERO --- */
.hero {
    position: relative;
    padding: 220px 0 150px;
    background: var(--hero-bg);
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.hero-content { position: relative; z-index: 2; }

.hero-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.7;
    pointer-events: none;
}

.hero-image-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hero-image-bg.loaded { opacity: 1; }

.hero-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(10,22,40,0.55) 0%, rgba(10,42,64,0.4) 50%, rgba(10,22,40,0.7) 100%);
    z-index: 1;
}

[data-theme="dark"] .hero-image-overlay {
    background: linear-gradient(160deg, rgba(5,12,26,0.7) 0%, rgba(8,24,44,0.5) 50%, rgba(5,12,26,0.8) 100%);
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-content.reveal {
    animation: heroFadeIn 0.8s ease-out 0.2s both;
}

.hero-content.reveal.visible {
    opacity: 1;
    transform: none;
}

.hero-badge {
    display: inline-block;
    padding: 10px 26px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
    animation: heroBadgePulse 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.hero-badge:hover { transform: scale(1.05); }

@keyframes heroBadgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 180, 216, 0.3); }
    50%      { box-shadow: 0 0 0 8px rgba(0, 180, 216, 0); }
}

.hero h1 {
    font-family: var(--font-titre);
    font-size: 6rem;
    font-weight: 800;
    letter-spacing: -3px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--white), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-family: var(--font-titre);
    font-size: var(--taille-hero-titre, 2.6rem);
    font-weight: 600;
    margin-bottom: 18px;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.7);
    max-width: 680px;
    margin: 0 auto 40px;
}

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

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 1;
}

.hero-wave svg { display: block; width: 100%; height: auto; }

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 20px 44px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.25rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 180, 216, 0.35); }

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover { border-color: var(--white); }

.btn-block { width: 100%; }

.btn-sm { padding: 10px 24px; font-size: 1.05rem; }

/* --- SECTIONS --- */
.section {
    padding: 110px 0;
    transition: background-color 0.3s ease;
}

.section-alt { background: var(--section-alt-bg); }

.section-dark {
    background: var(--hero-bg);
    color: var(--white);
}

.section-head {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 180, 216, 0.1);
    color: var(--secondary);
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.section-tag:hover { transform: scale(1.08); background: rgba(0, 180, 216, 0.18); }

.tag-light {
    background: rgba(255,255,255,0.1);
    color: var(--secondary);
}

.section-title {
    font-family: var(--font-titre);
    font-size: var(--taille-titre-section, 3.4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.title-light { color: var(--white); }

.section-text {
    font-size: var(--taille-corps, 1.5rem);
    color: var(--text-light);
    line-height: 1.7;
}

/* Images porteuses des visualisations (icone ou image d'une rubrique) */
.value-icon, .service-icon, .secteur-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon-img, .service-icon-img, .secteur-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.section-dark .section-text { color: rgba(255,255,255,0.7); }

.small-text {
    font-size: 1.2rem;
    font-style: italic;
}

/* --- VALUES GRID --- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.value-card {
    background: var(--card-bg);
    padding: 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--secondary);
}

.value-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 180, 216, 0.1);
    color: var(--secondary);
    border-radius: 16px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.value-icon svg { width: 30px; height: 30px; transition: transform 0.3s ease; }

.value-card:hover .value-icon { background: rgba(0, 180, 216, 0.18); }
.value-card:hover .value-icon svg { transform: scale(1.15) rotate(6deg); }

.value-card h3 {
    font-family: var(--font-titre);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.value-card p { font-size: 1.25rem; color: var(--text-light); }

/* --- SERVICES SLIDER --- */
.services-slider {
    position: relative;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 28px;
    padding: 8px 4px 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scrollbar-color: transparent transparent;
}

.services-grid::-webkit-scrollbar,
.services-grid::-webkit-scrollbar-track,
.services-grid::-webkit-scrollbar-thumb { display: none; height: 0; }

.services-grid,
.secteurs-grid { cursor: grab; }

.services-grid.dragging,
.secteurs-grid.dragging { cursor: grabbing; user-select: none; }

.service-card {
    flex: 0 0 380px;
    scroll-snap-align: start;
    background: var(--card-bg);
    padding: 36px;
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--secondary);
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 180, 216, 0.1);
    color: var(--secondary);
    border-radius: 16px;
    margin-bottom: 18px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.service-icon svg { width: 30px; height: 30px; transition: transform 0.3s ease; }

.service-card:hover .service-icon { background: rgba(0, 180, 216, 0.18); }
.service-card:hover .service-icon svg { transform: scale(1.15) rotate(6deg); }

.service-card h3 {
    font-family: var(--font-titre);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.service-card p { font-size: 1.25rem; color: var(--text-light); }

.slider-nav {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 32px;
}

.slider-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--card-bg);
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}

.slider-btn:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 180, 216, 0.2);
}

.slider-btn svg { width: 24px; height: 24px; }

/* --- PROCESSUS --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.process-step {
    background: var(--card-bg);
    padding: 32px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.process-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.process-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--secondary);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.process-step h3 {
    font-family: var(--font-titre);
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.process-step p { font-size: 1.2rem; color: var(--text-light); }

.process-line {
    display: none;
}

@media (min-width: 1025px) {
    .process-line {
        display: block;
        position: absolute;
        top: 56px;
        left: calc(25% + 24px);
        right: calc(25% + 24px);
        height: 2px;
        background: var(--secondary);
        opacity: 0.3;
        z-index: 0;
    }
}

/* --- SECTEURS SLIDER --- */
.secteurs-slider {
    position: relative;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.secteurs-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 28px;
    padding: 8px 4px 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scrollbar-color: transparent transparent;
}

.secteurs-grid::-webkit-scrollbar,
.secteurs-grid::-webkit-scrollbar-track,
.secteurs-grid::-webkit-scrollbar-thumb { display: none; height: 0; }

.secteur-card {
    flex: 0 0 340px;
    scroll-snap-align: start;
    background: var(--card-bg);
    padding: 36px;
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.secteur-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--secondary);
}

.secteur-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 180, 216, 0.1);
    color: var(--secondary);
    border-radius: 16px;
    margin-bottom: 18px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.secteur-icon svg { width: 30px; height: 30px; transition: transform 0.3s ease; }

.secteur-card:hover .secteur-icon { background: rgba(0, 180, 216, 0.18); }
.secteur-card:hover .secteur-icon svg { transform: scale(1.15) rotate(-6deg); }

.secteur-card h3 {
    font-family: var(--font-titre);
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.secteur-card p { font-size: 1.2rem; color: var(--text-light); }

/* --- WHY GRID --- */
#pourquoi { position: relative; overflow: hidden; }
#pourquoi .container { position: relative; z-index: 1; }

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.why-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.why-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    opacity: 0.55;
    filter: saturate(0.75) contrast(1.05) brightness(0.95);
}

.why-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10,22,40,1) 0%, rgba(10,22,40,0.82) 26%, rgba(10,22,40,0.32) 58%, rgba(10,22,40,0) 82%),
        linear-gradient(0deg, rgba(10,22,40,0.9) 0%, rgba(10,22,40,0) 30%, rgba(10,22,40,0) 70%, rgba(10,22,40,0.9) 100%);
}

[data-theme="dark"] .why-bg::after {
    background:
        linear-gradient(90deg, rgba(7,13,26,1) 0%, rgba(7,13,26,0.85) 26%, rgba(7,13,26,0.4) 58%, rgba(7,13,26,0) 82%),
        linear-gradient(0deg, rgba(7,13,26,0.92) 0%, rgba(7,13,26,0) 30%, rgba(7,13,26,0) 70%, rgba(7,13,26,0.92) 100%);
}

.why-card {
    background: rgba(255,255,255,0.05);
    padding: 36px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 180, 216, 0.15);
    border-color: rgba(0, 180, 216, 0.4);
}

.why-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 16px;
    opacity: 0.6;
}

.why-card h3 {
    font-family: var(--font-titre);
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.why-card p { font-size: 1.25rem; color: rgba(255,255,255,0.6); }

/* --- CONTACT --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.contact-info .section-title { text-align: left; }
.contact-info .section-text { text-align: left; margin-bottom: 16px; }

.contact-form-wrap {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: background-color 0.3s ease;
}

.contact-form { display: flex; flex-direction: column; gap: 16px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row-single {
    grid-template-columns: 1fr;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.req { color: #ef4444; }

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: var(--font-corps);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    background: var(--input-bg);
    color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
}

.field-error {
    font-size: 0.8rem;
    color: #ef4444;
    min-height: 1em;
}

.form-feedback {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-feedback.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.form-feedback.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* --- UPLOAD DOSSIER DE CANDIDATURE --- */
.upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 28px 20px;
    border: 2px dashed var(--card-border);
    border-radius: 10px;
    background: var(--input-bg);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}
.upload-zone:hover,
.upload-zone:focus-visible {
    border-color: var(--secondary);
    background: var(--card-bg);
    outline: none;
}
.upload-zone.dragover {
    border-color: var(--secondary);
    background: rgba(0, 180, 216, 0.08);
}
.upload-zone-icon {
    width: 30px;
    height: 30px;
    color: var(--secondary);
    margin-bottom: 4px;
}
.upload-zone-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}
.upload-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    max-width: 380px;
}

.piece-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}
.piece-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background: var(--input-bg);
}
.piece-icon {
    width: 32px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.piece-icon.icon-pdf {
    background: #fee2e2;
    color: #b91c1c;
}
.piece-icon.icon-img {
    background: #dcfce7;
    color: #166534;
}
.piece-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.piece-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.piece-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.piece-progress {
    height: 6px;
    border-radius: 999px;
    background: var(--card-border);
    overflow: hidden;
}
.piece-progress .piece-progress-bar {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: var(--secondary);
    transition: width 0.15s ease;
}
.piece-progress.indeterminate .piece-progress-bar {
    width: 40%;
    animation: pieceIndeterminate 1.2s ease-in-out infinite;
}
@keyframes pieceIndeterminate {
    0% { margin-left: -40%; }
    100% { margin-left: 100%; }
}
.piece-state {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    flex-shrink: 0;
}
.piece-state.waiting {
    color: var(--text-muted);
}
.piece-state.loading {
    color: var(--secondary);
}
.piece-state.ready {
    color: #16a34a;
}
.piece-state.error {
    color: #ef4444;
}
.piece-state-spin {
    width: 14px;
    height: 14px;
    border: 2px solid var(--card-border);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: pieceSpin 0.8s linear infinite;
}
@keyframes pieceSpin {
    to { transform: rotate(360deg); }
}
.piece-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1;
    padding: 4px;
    flex-shrink: 0;
    border-radius: 6px;
    transition: color 0.3s ease, background-color 0.3s ease;
}
.piece-remove:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}
.piece-remove:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* --- FOOTER --- */
.footer {
    background: var(--hero-bg);
    color: rgba(255,255,255,0.7);
    padding: 48px 0 0;
    transition: background-color 0.3s ease;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p { margin-top: 12px; font-size: 1.05rem; }

.logo-footer .logo-mark {
    background: rgba(255,255,255,0.1);
    color: var(--secondary);
}

.footer-links h4,
.footer-address h4 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    padding: 4px 0;
    font-size: 1.05rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-links a:hover { color: var(--secondary); transform: translateX(4px); }

.footer-address p { font-size: 1.05rem; line-height: 1.7; }

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 1rem;
}

.legal-mention {
    margin-top: 8px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.4);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- BACK TO TOP --- */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 999;
    box-shadow: var(--shadow);
}

.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-2px); }
.back-to-top svg { width: 20px; height: 20px; }

/* --- NOTIFICATIONS --- */
.notification-area {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 16px 24px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    font-size: 1rem;
    font-weight: 500;
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 3.7s forwards;
    border-left: 4px solid var(--secondary);
    max-width: 400px;
    transition: background-color 0.3s ease;
}

.toast.error { border-left-color: #ef4444; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; transform: translateX(50px); }
}

/* --- REVEAL ANIMATION --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .process-line { display: none !important; }
}

@media (max-width: 1024px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 84px;
        left: 0;
        right: 0;
        background: var(--card-bg);
        padding: 24px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        gap: 16px;
    }
    .hamburger { display: flex; }

    .hero h1 { font-size: 4.8rem; }
    .hero-title { font-size: 2.1rem; }
    .hero-subtitle { font-size: 1.3rem; }
    .section-title { font-size: 2.9rem; }

    .contact-container { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 900px) {
    .contact-container { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hero { padding: 170px 0 100px; }
    .hero h1 { font-size: 3.6rem; }
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1.25rem; }
    .section { padding: 85px 0; }
    .form-row { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr; }
    .service-card { flex: 0 0 300px; }
    .secteur-card { flex: 0 0 300px; }
    .section-title { font-size: 2.5rem; }
    .why-bg img { opacity: 0.4; object-position: center center; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.9rem; }
    .hero-title { font-size: 1.6rem; }
    .hero-subtitle { font-size: 1.15rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .contact-form-wrap { padding: 24px; }
    .service-card { flex: 0 0 280px; }
    .secteur-card { flex: 0 0 280px; }
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-content.reveal { animation: none; }
    .hero-badge { animation: none; }
    * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
