/* =====================================================
   VARIABLES & RESET
===================================================== */
:root {
    --primary: #0f1822;
    /* Bleu très sombre */
    --primary-light: #1A2E44;
    /* Bleu Marine */
    --accent: #C28B5C;
    /* Bronze */
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --bg-light: #fbfcfd;
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Oswald', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-light);
    font-family: var(--font-sans);
    color: var(--text-dark);
    overflow-x: hidden;
    padding-bottom: max(80px, env(safe-area-inset-bottom));
}

/* --- UI FIXE (DOCK & LOGO) --- */
.floating-brand {
    position: fixed;
    top: max(20px, env(safe-area-inset-top));
    left: 20px;
    z-index: 1001;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: grid;
    place-items: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.floating-brand:active {
    transform: scale(0.92);
}

.floating-brand img {
    width: 40px;
    height: auto;
}

.dock {
    position: fixed;
    bottom: max(20px, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 380px;
    background: rgba(15, 24, 34, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 6px;
    display: flex;
    justify-content: space-between;
    gap: 6px;
    z-index: 1000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dock-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 10px;
    border-radius: 14px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    color: white;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
}

.dock-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.1);
}

.dock-btn.accent {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 15px rgba(194, 139, 92, 0.4);
    font-weight: 600;
}

/* --- ANIMATIONS (REVEAL) --- */
.gs-reveal {
    opacity: 0;
    transform: translateY(40px);
}

/* =====================================================
   1. HERO CINEMATIC (DEVIS)
===================================================== */
.hero-devis {
    position: relative;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15vh 5vw 10vh;
    background: var(--primary);
    color: white;
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: grayscale(50%);
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(194, 139, 92, 0.2) 0%, rgba(15, 24, 34, 0.9) 60%, var(--primary) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: #ffffff;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0 auto 40px;
    max-width: 700px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(194, 139, 92, 0.2);
    color: var(--accent);
    display: grid;
    place-items: center;
    font-size: 1.2rem;
}

.stat-text h4 {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: white;
    margin-bottom: 2px;
}

.stat-text p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        text-align: center;
    }

    .stat-item {
        flex-direction: column;
        text-align: center;
    }
}

/* =====================================================
   COURBE SVG (HÉROS DEVIS)
===================================================== */
.hero-curve-bottom {
    position: absolute;
    bottom: -1px;
    /* Pour éviter de voir une ligne de démarcation */
    left: 0;
    width: 100%;
    z-index: 0;
    line-height: 0;
}

.hero-curve-bottom svg {
    display: block;
    width: 100%;
    height: 150px;
}

.hero-curve-fill {
    fill: var(--bg-light);
    /* Le background de la section qui suit en dessous */
}

.hero-curve-stroke {
    fill: none;
    stroke: transparent;
}

/* =====================================================
   2. STICKY STORY (LE PROCESSUS EN 3 ÉTAPES)
===================================================== */
.story-section {
    background: var(--bg-light);
    padding: 10vh 5vw 15vh;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

.story-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    max-width: 1300px;
    margin: 0 auto;
}

.story-left {
    position: relative;
}

.story-sticky-img {
    position: sticky;
    top: 15vh;
    height: 70vh;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.story-sticky-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: scale(1.05);
}

.story-sticky-img img.active {
    opacity: 1;
    transform: scale(1);
}

.story-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(15, 24, 34, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 16px;
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.story-right {
    padding: 20vh 0;
}

.story-step {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0.2;
    transition: opacity 0.5s, transform 0.5s;
    transform: translateX(20px);
}

.story-step.active {
    opacity: 1;
    transform: translateX(0);
}

.step-number {
    font-family: var(--font-serif);
    font-size: clamp(4rem, 8vw, 6rem);
    color: rgba(194, 139, 92, 0.2);
    /* Bronze transparent */
    line-height: 1;
    margin-bottom: -15px;
    font-weight: 700;
}

.story-step h3 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.story-step p {
    font-size: 1.15rem;
    color: var(--text-gray);
    line-height: 1.7;
    max-width: 500px;
    margin-bottom: 20px;
}

.story-step ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.story-step ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--primary-light);
    font-weight: 500;
}

.story-step ul li i {
    color: var(--accent);
}

@media (max-width: 900px) {
    .story-wrapper {
        grid-template-columns: 1fr;
    }

    .story-sticky-img {
        position: relative;
        top: 0;
        height: 50vh;
        margin-bottom: 40px;
    }

    .story-right {
        padding: 0;
    }

    .story-step {
        min-height: auto;
        margin-bottom: 80px;
        opacity: 1;
        transform: translateX(0);
    }

    .step-number {
        opacity: 0.1;
    }
}

/* =====================================================
   3. FORMULAIRE PREMIUM (BENTO STYLE)
===================================================== */
.form-section {
    padding: 10vh 5vw;
    background: var(--primary);
    color: white;
    position: relative;
}

.form-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    background: #152230;
    /* Fond carte sombre */
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-sidebar {
    padding: 50px 40px;
    background: radial-gradient(circle at top left, rgba(194, 139, 92, 0.15), transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-sidebar h3 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1.1;
    color: #ffffff;
}

.form-sidebar p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 30px;
}

.trust-badges {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-badge i {
    font-size: 1.5rem;
    color: var(--accent);
}

.trust-badge span {
    font-weight: 500;
    font-size: 0.95rem;
}

/* Le Formulaire en lui-même */
.form-content {
    padding: 50px 40px;
    background: white;
    /* Fond clair pour accessibilité parfaite */
    color: var(--primary);
}

.form-content h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary);
}

.quote-form {
    display: grid;
    gap: 20px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 8px;
}

/* Champs ultra lisibles */
.quote-form input,
.quote-form select,
.quote-form textarea {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: var(--primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
    outline: none;
    background: white;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(194, 139, 92, 0.15);
}

.quote-form input::placeholder,
.quote-form textarea::placeholder {
    color: #94a3b8;
}

.quote-form textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 100px;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(194, 139, 92, 0.3);
    margin-top: 10px;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(194, 139, 92, 0.4);
    background: var(--primary);
}

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

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

    .form-sidebar {
        padding: 40px 20px;
        text-align: center;
    }

    .form-content {
        padding: 40px 20px;
    }

    .trust-badge {
        justify-content: center;
    }
}

/* =====================================================
   4. BENTO GRID (NOS GARANTIES)
===================================================== */
.bento-section {
    padding: 10vh 5vw;
    background-color: var(--bg-light);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 300px;
    gap: 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.bento-card {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    background: #111;
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-wide {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-square {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: all 0.8s ease;
}

.bento-card:hover .bento-img {
    transform: scale(1.08);
    opacity: 0.8;
}

.bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 24, 34, 0.95) 0%, rgba(15, 24, 34, 0.1) 70%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: white;
}

.bento-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 15px;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.4s ease;
}

.bento-card:hover .bento-icon {
    transform: translateY(0);
    opacity: 1;
}

.bento-overlay h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    color: #ffffff;
}

.bento-overlay p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-large,
    .bento-wide {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 280px;
    }

    .bento-large,
    .bento-wide,
    .bento-square {
        grid-column: span 1;
        grid-row: span 1;
    }

    .bento-icon {
        transform: translateY(0);
        opacity: 1;
    }
}

/* =====================================================
   FOOTER
===================================================== */
.main-footer {
    background-color: var(--primary);
    color: white;
    padding: 80px 5vw 120px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.footer-grid p,
.footer-grid a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    line-height: 1.8;
}

.footer-grid a:hover {
    color: var(--accent);
}
/* =========================================================
   GLOBAL MOBILE & IOS OPTIMIZATIONS (ADDED FOR SMOOTHNESS)
   ========================================================= */
html, body {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip !important;
}

/* Enable hardware acceleration for scroll animations to prevent iOS stutter */
[data-reveal], .reveal, .bento-card, .metric-card, .image-card, .team-card, .step-card, .portal-card {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform, opacity;
}

/* Ensure mobile dock adapts perfectly to iOS home indicator */
.dock {
  margin-bottom: env(safe-area-inset-bottom, 10px) !important;
}
\n