/* Extracted from templates/core/qui_sommes_nous.html */
/* ==========================================
   CSS CUSTOM PROPERTIES PREMIUM
   ========================================== */
:root {
    /* Premium Color Palette */
    --primary-charcoal: #2D3748;
    --secondary-grey: #4A5568;
    --accent-red: #E53E3E;
    --success-green: #38A169;
    --warm-gold: #D69E2E;
    --light-grey: #A0AEC0;
    --very-light-grey: #F7FAFC;
    --glass-grey: #E2E8F0;
    --pure-white: #FFFFFF;
    
    /* Typography Premium (match homepage Geist stack) */
    --font-display: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
    --font-text: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
    
    /* Spacing System */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    
    /* Shadow System */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Animation Curves */
    --ease-out-cubic: cubic-bezier(0.33, 1, 0.68, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out-cubic: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ==========================================
   LAYOUT PRINCIPAL
   ========================================== */
.company-page {
    min-height: calc(100vh - 70px);
    position: relative;
    font-family: var(--font-text);
    color: #000000; /* Match homepage primary text color */
    overflow-x: hidden;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    /* Snap identique à l'accueil */
    scroll-snap-type: y mandatory;
    overscroll-behavior-y: contain;
    /* Smooth scroll between sections for a premium swipe feel */
    scroll-behavior: smooth;
    /* Ensure vertical touch scrolling behaves naturally on mobile */
    touch-action: pan-y;
}

/* Remove default padding from main-content like on homepage to avoid crops */
.main-content:has(.company-page) { padding: 0 !important; }
.main-content.no-padding-home { padding: 0 !important; }

/* Sections behave like slides on large screens, aligned with homepage */
.snap-section { scroll-snap-align: start; scroll-snap-stop: always; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }

@supports (height: 100svh) {
    .snap-section { min-height: 100svh; }
}

/* ==========================================
   ANIMATED BACKGROUND PREMIUM
   ========================================== */
.premium-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, 
        rgba(247, 250, 252, 0.95) 0%, 
        rgba(237, 242, 247, 0.9) 25%,
        rgba(226, 232, 240, 0.95) 50%,
        rgba(237, 242, 247, 0.9) 75%,
        rgba(247, 250, 252, 0.95) 100%);
}

.geometric-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.geo-shape {
    position: absolute;
    background: linear-gradient(45deg, 
        rgba(229, 62, 62, 0.08),
        rgba(56, 161, 105, 0.08));
    animation: geometricFloat 25s infinite linear;
}

.geo-shape-1 { width: 100px; height: 100px; top: 15%; left: 5%; border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; animation-delay: 0s; }
.geo-shape-2 { width: 80px; height: 80px; top: 70%; right: 10%; border-radius: 50%; animation-delay: -8s; }
.geo-shape-3 { width: 120px; height: 120px; top: 40%; left: 80%; clip-path: polygon(50% 0%, 0% 100%, 100% 100%); animation-delay: -15s; }
.geo-shape-4 { width: 90px; height: 90px; top: 25%; right: 40%; border-radius: 20% 80% 80% 20% / 20% 20% 80% 80%; animation-delay: -22s; }

@keyframes geometricFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); opacity: 0.4; }
    33% { transform: translateY(-30px) rotate(120deg) scale(1.1); opacity: 0.7; }
    66% { transform: translateY(-15px) rotate(240deg) scale(0.9); opacity: 0.5; }
}

.subtle-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(229, 62, 62, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(200, 80, 80, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(214, 158, 46, 0.03) 0%, transparent 50%);
    animation: gradientShift 30s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.8; }
    50% { transform: scale(1.05) rotate(3deg); opacity: 1; }
}

/* ==========================================
   HERO SECTION
   ========================================== */
.company-hero {
    padding: calc(var(--space-3xl) + 20px) var(--space-lg) var(--space-3xl);
    text-align: center;
    position: relative;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(247, 250, 252, 0.85) 100%);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-grey);
    scroll-margin-top: 80px; /* compense la navbar pour le premier snap */
}

.hero-content { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-lg); }
.company-icon { margin-bottom: var(--space-xl); }
.company-icon i { font-size: 4.5rem; color: var(--accent-red); animation: companyPulse 4s ease-in-out infinite; }

@keyframes companyPulse {
    0%, 100% { text-shadow: 0 0 20px rgba(229, 62, 62, 0.3); transform: scale(1); }
    50% { text-shadow: 0 0 40px rgba(229, 62, 62, 0.6); transform: scale(1.05); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    font-weight: 700;
    color: var(--primary-charcoal);
    margin-bottom: var(--space-lg);
    line-height: 1.1;
    background: linear-gradient(135deg, var(--primary-charcoal), var(--accent-red));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* Keep the hero title typography as before (not switched to Geist) */
.hero-title { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif; }

.hero-subtitle { font-size: 1.3rem; color: var(--secondary-grey); margin-bottom: var(--space-2xl); font-weight: 400; max-width: 700px; margin-left: auto; margin-right: auto; line-height: 1.6; }

/* Scroll hint (même style que l'accueil) */
.scroll-hint { position:absolute; bottom:24px; left:50%; transform:translateX(-50%); color: #2D3748; opacity: .85; text-decoration:none; display:flex; flex-direction:column; align-items:center; gap:6px; transition: opacity .3s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.scroll-hint { bottom: calc(16px + env(safe-area-inset-bottom, 0)); }
.scroll-hint:hover { opacity:1; }
.scroll-hint-text { font-size:.9rem; color: #4A5568; }
.scroll-hint .chevron { width:24px; height:24px; color: #2D3748; animation: chevronBounce 1.6s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.scroll-hint .chevron + .chevron { animation-delay: .25s; }
@keyframes chevronBounce { 0%{ transform: translateY(0); opacity:.8 } 50%{ transform: translateY(6px); opacity:1 } 100%{ transform: translateY(0); opacity:.8 } }

/* ==========================================
   SECTION WRAPPER
   ========================================== */
.section-wrapper { max-width: 1400px; margin: 0 auto; padding: var(--space-3xl) var(--space-lg); }
.section-header { text-align: center; margin-bottom: var(--space-3xl); }
.section-title { font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 700; color: #000; margin-bottom: var(--space-md); position: relative; letter-spacing: -0.02em; }
.section-title::after { content: ''; display: block; width: 60px; height: 4px; background: linear-gradient(90deg, var(--accent-red), #C53030); margin: var(--space-lg) auto; border-radius: 2px; }
.section-subtitle { font-size: 1.25rem; color: #000; max-width: 700px; margin: 0 auto; line-height: 1.7; }

/* ==========================================
   HISTOIRE & FONDATEURS
   ========================================== */
.story-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: var(--space-2xl); margin-top: var(--space-2xl); }
.story-card { background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(247, 250, 252, 0.9)); backdrop-filter: blur(15px); border: 2px solid var(--glass-grey); border-radius: var(--radius-2xl); padding: var(--space-2xl); position: relative; overflow: hidden; transition: all 0.4s var(--ease-out-quart); }
.story-card::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(229, 62, 62, 0.08), transparent); transition: left 0.7s ease-in-out; }
.story-card:hover::before { left: 100%; }
.story-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-xl); border-color: var(--accent-red); }
.story-icon { display: inline-flex; align-items: center; justify-content: center; width: 70px; height: 70px; background: linear-gradient(135deg, var(--accent-red), #C53030); color: white; border-radius: 50%; font-size: 1.8rem; margin-bottom: var(--space-lg); transition: all 0.3s var(--ease-out-quart); }
.story-card:hover .story-icon { transform: scale(1.1) rotateY(180deg); }
.story-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; color: var(--primary-charcoal); margin-bottom: var(--space-lg); }
.story-card p { color: #000; line-height: 1.7; margin-bottom: var(--space-lg); font-size: 1.1rem; }
.story-highlight { background: linear-gradient(135deg, rgba(229, 62, 62, 0.08), rgba(200, 80, 80, 0.08)); border-left: 4px solid var(--accent-red); padding: var(--space-lg); margin: var(--space-lg) 0; border-radius: var(--radius-md); font-style: italic; font-weight: 500; position: relative; }
.story-highlight::before { content: '"'; font-size: 3rem; color: var(--accent-red); position: absolute; top: -10px; left: 10px; font-family: serif; }

/* ==========================================
    TWEAK: Fit "Notre Métier" cards into the viewport
    - Slightly reduce paddings/margins and element sizes only for this section
    ========================================== */
#about-metier.section-wrapper { padding-top: var(--space-xl); padding-bottom: var(--space-lg); }
#about-metier.snap-section { justify-content: center; transform: translateY(-24px); }
#about-metier .section-header { margin-bottom: var(--space-xl); }
#about-metier .story-grid { margin-top: var(--space-lg); gap: var(--space-xl); }
#about-metier .story-card { padding: var(--space-xl); }
#about-metier .story-icon { width: 60px; height: 60px; font-size: 1.6rem; }
#about-metier .story-card h3 { font-size: 1.5rem; }
#about-metier .story-card p { font-size: 1rem; margin-bottom: var(--space-md); }
#about-metier .founders-value-proposition,
#about-metier .expertise-process { padding: var(--space-lg); }
#about-metier .process-steps { gap: var(--space-sm); }
#about-metier .process-step { padding: var(--space-sm); }
#about-metier .process-duration { padding: var(--space-sm) var(--space-md); }

/* Make the expertise block much more compact on desktop */
#about-metier .expertise-process { margin-top: var(--space-lg); }
#about-metier .expertise-process h4 { margin-bottom: var(--space-md); }
#about-metier .expertise-process .step-number { width: 28px; height: 28px; font-size: .95rem; }
#about-metier .expertise-process .step-content strong { font-size: .95rem; margin-bottom: 2px; }
#about-metier .expertise-process .step-content p { font-size: .85rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#about-metier .process-duration { font-size: .95rem; background: rgba(229,62,62,.08); border-left-width: 3px; }

@media (min-width: 992px) {
    /* Two-column grid for steps to halve the height */
    #about-metier .process-steps { grid-template-columns: 1fr 1fr; }
}

/* ==========================================
   FOUNDERS VALUE PROPOSITION
   ========================================== */
.founders-value-proposition { background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(247, 250, 252, 0.9)); border: 2px solid var(--glass-grey); border-radius: var(--radius-lg); padding: var(--space-xl); margin: var(--space-lg) 0; backdrop-filter: blur(10px); box-shadow: var(--shadow-md); }
.value-item { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-md) 0; border-bottom: 1px solid rgba(226, 232, 240, 0.6); transition: all 0.3s var(--ease-out-cubic); }
.value-item:last-child { border-bottom: none; }
.value-item:hover { background: rgba(229, 62, 62, 0.05); border-radius: var(--radius-sm); transform: translateX(5px); }
.value-item i { color: var(--accent-red); font-size: 1.2rem; width: 24px; text-align: center; flex-shrink: 0; }
.value-item span { color: var(--primary-charcoal); font-size: 1rem; line-height: 1.5; }
.value-item strong { color: var(--accent-red); font-weight: 600; }
.value-item.contact-info a { color: var(--accent-red); text-decoration: none; font-weight: 600; transition: all 0.3s var(--ease-out-cubic); border-bottom: 1px solid transparent; }
.value-item.contact-info a:hover { color: var(--primary-charcoal); border-bottom-color: var(--accent-red); transform: translateY(-1px); }

/* ==========================================
   EXPERTISE PROCESS
   ========================================== */
.expertise-process { margin-top: var(--space-xl); background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(247, 250, 252, 0.9)); border: 2px solid var(--glass-grey); border-radius: var(--radius-lg); padding: var(--space-xl); backdrop-filter: blur(10px); }
.expertise-process h4 { color: var(--primary-charcoal); font-size: 1.2rem; margin-bottom: var(--space-lg); display: flex; align-items: center; gap: var(--space-sm); }
.expertise-process h4 i { color: var(--accent-red); }
.process-steps { display: grid; gap: var(--space-md); margin-bottom: var(--space-lg); }
.process-step { display: flex; align-items: flex-start; gap: var(--space-md); padding: var(--space-md); background: rgba(255, 255, 255, 0.7); border-radius: var(--radius-md); transition: all 0.3s var(--ease-out-cubic); }
.process-step:hover { background: rgba(229, 62, 62, 0.05); transform: translateX(5px); }
.step-number { background: var(--accent-red); color: white; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 1rem; flex-shrink: 0; }
.step-content strong { color: var(--primary-charcoal); font-size: 1rem; display: block; margin-bottom: var(--space-xs); }
.step-content p { color: var(--secondary-grey); font-size: 0.9rem; line-height: 1.5; margin: 0; }
.process-duration { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-md); background: rgba(229, 62, 62, 0.1); border-radius: var(--radius-md); border-left: 4px solid var(--accent-red); }
.process-duration i { color: var(--accent-red); font-size: 1.1rem; }
.process-duration span { color: var(--primary-charcoal); font-size: 1rem; }

/* ==========================================
   VALEURS GRID
   ========================================== */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-xl); margin-top: var(--space-2xl); }
.value-card { background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(247, 250, 252, 0.85)); backdrop-filter: blur(10px); border: 2px solid var(--glass-grey); border-radius: var(--radius-xl); padding: var(--space-xl); text-align: center; transition: all 0.4s var(--ease-out-quart); position: relative; overflow: hidden; }
.value-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, transparent, rgba(229, 62, 62, 0.05), transparent); opacity: 0; transition: opacity 0.3s ease; }
.value-card:hover::after { opacity: 1; }
.value-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: var(--shadow-xl); border-color: var(--accent-red); }
.value-icon { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; background: linear-gradient(135deg, var(--accent-red), #C53030); color: white; border-radius: 50%; font-size: 1.5rem; margin-bottom: var(--space-lg); transition: all 0.3s var(--ease-out-quart); position: relative; z-index: 1; }
.value-card:hover .value-icon { transform: scale(1.15) rotateZ(360deg); }
.value-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; color: var(--primary-charcoal); margin-bottom: var(--space-md); position: relative; z-index: 1; }
.value-card p { color: var(--secondary-grey); line-height: 1.6; position: relative; z-index: 1; }

/* ==========================================
   SPÉCIALITÉS & CERTIFICATIONS
   ========================================== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--space-lg); margin-top: var(--space-2xl); }
.feature-item { background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(247, 250, 252, 0.8)); backdrop-filter: blur(10px); border: 1px solid var(--glass-grey); border-radius: var(--radius-lg); padding: var(--space-lg); display: flex; align-items: center; transition: all 0.3s var(--ease-out-quart); }
.feature-item:hover { transform: translateX(8px); box-shadow: var(--shadow-md); border-color: var(--accent-red); }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; background: linear-gradient(135deg, var(--accent-red), #C53030); color: white; border-radius: 50%; font-size: 1.2rem; margin-right: var(--space-lg); flex-shrink: 0; transition: all 0.3s var(--ease-out-quart); }
.feature-item:hover .feature-icon { transform: scale(1.1) rotateZ(360deg); }
.feature-text { font-weight: 500; color: #000; font-size: 1.1rem; }

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-section { background: linear-gradient(135deg, rgba(229, 62, 62, 0.05) 0%, rgba(200, 80, 80, 0.05) 100%); border-radius: var(--radius-2xl); padding: var(--space-3xl); margin-top: var(--space-3xl); text-align: center; position: relative; overflow: hidden; }
.contact-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent); animation: contactShimmer 3s ease-in-out infinite; }
@keyframes contactShimmer { 0% { transform: translateX(-100%) skewX(-15deg); } 100% { transform: translateX(200%) skewX(-15deg); } }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--space-xl); margin: var(--space-2xl) 0; position: relative; z-index: 1; }
.contact-item { text-align: center; }
.contact-item-icon { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; background: linear-gradient(135deg, var(--accent-red), #C53030); color: white; border-radius: 50%; font-size: 1.5rem; margin-bottom: var(--space-lg); transition: all 0.3s var(--ease-out-quart); }
.contact-item:hover .contact-item-icon { transform: scale(1.15) rotateY(180deg); }
.contact-item h3 { font-family: var(--font-display); font-weight: 600; color: var(--primary-charcoal); margin-bottom: var(--space-sm); font-size: 1.3rem; }
.contact-item p { color: var(--secondary-grey); font-weight: 500; }
.cta-buttons { display: flex; gap: var(--space-lg); justify-content: center; margin-top: var(--space-2xl); position: relative; z-index: 1; }
/* Button system aligned with homepage variants */
.btn-premium { position:relative; display:inline-flex; align-items:center; justify-content:center; padding: var(--space-lg) var(--space-xl); border-radius: 16px; text-decoration:none; font-weight: 600; font-size:1.1rem; overflow:hidden; transition: all .3s cubic-bezier(0.25, 0.46, 0.45, 0.94); border:2px solid transparent; min-width:200px; }
.btn-premium.primary { background: linear-gradient(135deg, var(--primary-charcoal), var(--secondary-grey)); color: #fff; box-shadow: var(--shadow-lg); }
.btn-premium.secondary { background: transparent; color: var(--primary-charcoal); border-color: var(--primary-charcoal); }
.btn-premium.tertiary { background: linear-gradient(135deg, var(--accent-red), #C53030); color: #fff; box-shadow: 0 8px 32px rgba(229,62,62,.3); }
.btn-premium:hover { transform: translateY(-4px) scale(1.02); box-shadow: var(--shadow-xl); }
.btn-premium.primary:hover { box-shadow: 0 20px 40px rgba(45,55,72,.35); }
.btn-premium.secondary:hover { background: rgba(45,55,72,.08); border-color: #1A202C; }
.btn-premium.tertiary:hover { box-shadow: 0 20px 40px rgba(229,62,62,.45); background: linear-gradient(135deg, #C53030, #9C1D1D); }
.btn-bg { position:absolute; inset:0; background: inherit; transition: all .3s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.btn-content { position:relative; z-index:2; display:flex; align-items:center; gap: var(--space-sm); }
.btn-shine { position:absolute; top:0; left:-100%; width:100%; height:100%; background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.2) 50%, transparent 100%); transition: left .6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.btn-premium:hover .btn-shine { left:100%; }

/* ==========================================
   ENGAGEMENT FINAL
   ========================================== */
.engagement-section { background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 250, 252, 0.9) 100%); backdrop-filter: blur(15px); border: 2px solid var(--glass-grey); border-radius: var(--radius-2xl); padding: var(--space-3xl); margin-top: var(--space-3xl); text-align: center; position: relative; overflow: hidden; }
.engagement-icon { display: inline-flex; align-items: center; justify-content: center; width: 80px; height: 80px; background: linear-gradient(135deg, #E53E3E, #C53030); color: white; border-radius: 50%; font-size: 2.5rem; margin-bottom: var(--space-xl); animation: heartBeat 2s ease-in-out infinite; }
@keyframes heartBeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.engagement-section h2 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; color: var(--primary-charcoal); margin-bottom: var(--space-lg); }
.engagement-section p { font-size: 1.2rem; line-height: 1.7; color: var(--secondary-grey); margin-bottom: var(--space-lg); max-width: 800px; margin-left: auto; margin-right: auto; }
.guarantee-badge { display: inline-flex; align-items: center; gap: var(--space-md); background: linear-gradient(135deg, rgba(229, 62, 62, 0.1), rgba(200, 80, 80, 0.1)); border: 2px solid var(--accent-red); border-radius: var(--radius-xl); padding: var(--space-lg) var(--space-2xl); margin-top: var(--space-xl); transition: all 0.3s var(--ease-out-quart); }
.guarantee-badge:hover { transform: scale(1.05); box-shadow: var(--shadow-lg); }
.guarantee-badge i { font-size: 1.8rem; color: var(--accent-red); }
.guarantee-badge span { font-weight: 600; color: var(--primary-charcoal); font-family: var(--font-display); }

/* ==========================================
   INFORMATIONS LÉGALES
   ========================================== */
.legal-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-xl); margin-top: var(--space-2xl); }
.legal-card { background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(247, 250, 252, 0.9)); backdrop-filter: blur(15px); border: 2px solid var(--glass-grey); border-radius: var(--radius-xl); padding: var(--space-xl); position: relative; overflow: hidden; transition: all 0.4s var(--ease-out-quart); text-align: center; }
.legal-card::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(229, 62, 62, 0.06), transparent); transition: left 0.7s ease-in-out; }
.legal-card:hover::before { left: 100%; }
.legal-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); border-color: var(--accent-red); }
.legal-icon { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; background: linear-gradient(135deg, var(--secondary-grey), var(--primary-charcoal)); color: white; border-radius: 50%; font-size: 1.5rem; margin-bottom: var(--space-lg); transition: all 0.3s var(--ease-out-quart); position: relative; z-index: 1; }
.legal-card:hover .legal-icon { transform: scale(1.1) rotateY(180deg); background: linear-gradient(135deg, var(--accent-red), #C53030); }
.legal-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; color: var(--primary-charcoal); margin-bottom: var(--space-lg); position: relative; z-index: 1; }
.legal-details { text-align: left; position: relative; z-index: 1; }
.legal-details p { color: var(--secondary-grey); line-height: 1.6; margin-bottom: var(--space-sm); font-size: 0.95rem; }
.legal-details strong { color: var(--primary-charcoal); font-weight: 600; }
.zone-link { display: inline-flex; align-items: center; gap: var(--space-sm); color: var(--accent-red); text-decoration: none; font-weight: 600; padding: var(--space-sm) var(--space-md); background: linear-gradient(135deg, rgba(229, 62, 62, 0.1), rgba(200, 80, 80, 0.1)); border-radius: var(--radius-md); transition: all 0.3s var(--ease-out-quart); border: 1px solid rgba(229, 62, 62, 0.2); }
.zone-link:hover { color: white; background: linear-gradient(135deg, var(--accent-red), #C53030); text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.zone-link i { font-size: 1.1rem; }

/* Remove focus/tap highlight capsule for the legal CTA button */
.legal-card .btn-premium { -webkit-tap-highlight-color: transparent; outline: none; }
.legal-card .btn-premium:focus,
.legal-card .btn-premium:focus-visible { outline: none !important; box-shadow: none !important; }
/* Extra guard: remove any highlight on the wrapper too */
.legal-card .story-action,
.legal-card .story-action:focus,
.legal-card .story-action:focus-within { outline: none !important; box-shadow: none !important; }
.legal-card .story-action a { -webkit-tap-highlight-color: transparent; outline: none !important; box-shadow: none !important; }

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 768px) {
    .company-page { scroll-snap-type: none; }
    .snap-section { min-height: auto; padding-block: var(--space-2xl); scroll-snap-stop: normal; }
    .section-wrapper { padding: var(--space-2xl) var(--space-md); }
    /* Hero adjustments */
    .company-hero { padding: var(--space-2xl) var(--space-md) var(--space-2xl); }
    .company-icon i { font-size: 3.8rem; }
    .hero-title { font-size: clamp(2.1rem, 7vw, 2.6rem); }
    .hero-subtitle { font-size: 1.05rem; margin-bottom: var(--space-xl); max-width: 90vw; }
    .scroll-hint { gap: 4px; }
    .scroll-hint, .scroll-hint .chevron { display: none !important; }
    .scroll-hint-text { font-size: .85rem; }

    /* Reset custom desktop offsets for this section on mobile */
    #about-metier.snap-section { transform: none; }
    #about-metier.section-wrapper { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }

    /* Cards and grids */
    .story-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
    .story-card { padding: var(--space-lg); }
    .founders-value-proposition, .expertise-process { padding: var(--space-md); }
    .process-steps { grid-template-columns: 1fr; gap: var(--space-sm); }
    .process-step { padding: var(--space-sm); }
    .story-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
    .values-grid, .features-grid, .legal-info-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
    .cta-buttons { flex-direction: column; align-items: center; }
    .btn-premium { width: 100%; max-width: 300px; justify-content: center; }
    .story-card, .engagement-section { padding: var(--space-xl); }
}

@media (max-width: 480px) {
    .company-page { scroll-snap-type: none; }
    .snap-section { min-height: auto; padding-block: var(--space-2xl); scroll-snap-stop: normal; }
    .section-wrapper { padding: var(--space-2xl) var(--space-md); }
    /* Hero adjustments for phones */
        .company-hero { padding: calc(var(--space-2xl) + 72px + env(safe-area-inset-top, 0)) var(--space-md) var(--space-2xl); }
    .hero-title { font-size: clamp(2rem, 7vw, 2.6rem); }
    .hero-subtitle { font-size: 1.05rem; margin-bottom: var(--space-xl); }
        .scroll-hint { display: none !important; }
    /* Reset desktop nudge */
    #about-metier.snap-section { transform: none; }
    #about-metier.section-wrapper { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
    /* Cards */
    .story-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
    .story-card { padding: var(--space-lg); }
    .founders-value-proposition, .expertise-process { padding: var(--space-md); }
    .process-steps { grid-template-columns: 1fr; gap: var(--space-sm); }
    .process-step { padding: var(--space-sm); }
    /* End cards */
    .section-subtitle { font-size: 1rem; }
    .section-wrapper { padding: var(--space-xl) var(--space-sm); }
    .features-grid, .legal-info-grid { grid-template-columns: 1fr; }
    .feature-item { flex-direction: column; text-align: center; }
    .feature-icon { margin-right: 0; margin-bottom: var(--space-md); }
}
