/* ============================================================
   AGOUDATECH — Design System (inspiré Udemy)
   ============================================================ */

/* ---- Variables ---- */
:root {
    --primary:        #2563eb;
    --primary-dark:   #1d4ed8;
    --primary-light:  #eff6ff;
    --dark:           #1c1d1f;
    --text:           #1c1d1f;
    --text-muted:     #6a6f73;
    --border:         #d1d7dc;
    --bg:             #ffffff;
    --bg-light:       #f7f9fa;
    --gold:           #f4c430;
    --font:           'Inter', system-ui, -apple-system, sans-serif;
    --radius:         4px;
    --radius-md:      8px;
    --transition:     0.2s ease;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    padding-top: 64px;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font); font-weight: 700; color: var(--dark); line-height: 1.25; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }

/* ---- Utilities ---- */
.py-6 { padding-top: 5rem; padding-bottom: 5rem; }
.px-6 { padding-left: 3rem; padding-right: 3rem; }
.text-gradient { color: var(--primary); }
.text-highlight { color: var(--primary); }

/* ---- Buttons ---- */
.btn { border-radius: var(--radius); font-weight: 600; font-size: 0.925rem; transition: all var(--transition); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-outline-primary { border-color: var(--primary); color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-dark { background: var(--dark); border-color: var(--dark); color: #fff; }
.btn-dark:hover { background: #2d2f31; border-color: #2d2f31; color: #fff; }
.btn-outline-dark { border-color: var(--dark); color: var(--dark); background: transparent; }
.btn-outline-dark:hover { background: var(--dark); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,0.6); color: #fff; background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: #fff; }
.btn-outline-secondary { border-color: var(--border); color: var(--text-muted); }
.btn-outline-secondary:hover { background: var(--bg-light); color: var(--dark); border-color: #9a9fab; }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }

/* ---- Section Common ---- */
.section-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 0.75rem;
}
.section-badge span { display: inline; }
.section-badge.light { background: rgba(255,255,255,0.15); color: #fff; }
.section-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
    line-height: 1.25;
}
.value-badge {
    display: inline-block;
    background: var(--bg-light);
    border: 1px solid var(--border);
    color: var(--dark);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: var(--radius);
}

/* ============================================================
   NAVBAR
   ============================================================ */
#mainNavbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0;
    z-index: 1050;
    transition: box-shadow var(--transition);
}
#mainNavbar.scrolled { box-shadow: 0 2px 8px rgba(0,0,0,0.10); }

.navbar-brand-text { font-size: 1.15rem; font-weight: 800; color: var(--dark) !important; letter-spacing: -0.3px; }

.navbar-nav .nav-link {
    color: var(--dark) !important;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 20px 14px !important;
    border-bottom: 3px solid transparent;
    transition: color var(--transition), border-color var(--transition);
    border-radius: 0;
}
.navbar-nav .nav-link:hover { color: var(--primary) !important; border-bottom-color: var(--primary); background: none; }
.navbar-nav .nav-link.active { color: var(--primary) !important; border-bottom-color: var(--primary); font-weight: 600; background: none; }

.btn-nav-cta {
    background: var(--primary);
    color: #fff !important;
    border: 1px solid var(--primary);
    padding: 9px 20px !important;
    font-weight: 600;
    border-radius: var(--radius);
    font-size: 0.875rem;
    border-bottom: none !important;
    margin-left: 6px;
    transition: background var(--transition), border-color var(--transition);
}
.btn-nav-cta:hover { background: var(--primary-dark) !important; border-color: var(--primary-dark) !important; color: #fff !important; }

@media (max-width: 991.98px) {
    body { padding-top: 60px; }
    .navbar-nav .nav-link { padding: 12px 0 !important; border-bottom: 1px solid var(--border) !important; }
    .navbar-nav .nav-link.active { border-bottom-color: var(--border) !important; color: var(--primary) !important; }
    .btn-nav-cta { margin: 12px 0 0 0 !important; width: 100%; text-align: center; border-bottom: 1px solid transparent !important; display: block; }
    #navbarNav { padding: 8px 0 16px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
    background: #fff;
    padding: 4.5rem 0 5rem;
    border-bottom: 1px solid var(--border);
}
.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--dark);
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 1.25rem;
}
.hero-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 2rem;
}
.hero-img-wrap {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}
.hero-img-wrap img { width: 100%; height: 420px; object-fit: cover; display: block; }
.hero-placeholder {
    width: 100%; height: 420px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #dbeafe 100%);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 5rem; color: var(--primary);
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2rem; }
.hero-tag {
    background: var(--bg-light);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 2px;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    padding: 2rem 0;
}
.stat-item { text-align: center; padding: 0.5rem 1rem; }
.stat-number { font-size: 2.25rem; font-weight: 800; color: var(--dark); line-height: 1; display: block; }
.stat-label { color: var(--text-muted); font-size: 0.875rem; margin-top: 4px; display: block; }
.stat-sep { width: 1px; background: var(--border); }
@media (max-width: 767.98px) { .stat-sep { display: none; } }

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.service-card {
    background: #fff;
    border: 1px solid var(--border);
    padding: 1.75rem;
    height: 100%;
    transition: box-shadow var(--transition), border-color var(--transition);
    border-radius: 0;
}
.service-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.10); border-color: #9a9fab; }
.service-card-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}
.icon-primary   { background: var(--primary-light); color: var(--primary); }
.icon-success   { background: #d1fae5; color: #065f46; }
.icon-warning   { background: #fef3c7; color: #92400e; }
.icon-info      { background: #dbeafe; color: #1e40af; }
.icon-danger    { background: #fee2e2; color: #991b1b; }
.icon-secondary { background: #f1f5f9; color: #475569; }
.service-card-title { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.625rem; }
.service-card-desc  { color: var(--text-muted); font-size: 0.875rem; line-height: 1.55; margin-bottom: 0; }

/* ============================================================
   SOFTWARE CARDS
   ============================================================ */
.software-card {
    background: #fff;
    border: 1px solid var(--border);
    transition: box-shadow var(--transition), border-color var(--transition);
    height: 100%;
    display: flex; flex-direction: column;
}
.software-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.12); border-color: #9a9fab; }
.software-card-img {
    height: 160px;
    overflow: hidden;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
}
.software-card-illustration, .software-card-img img {
    max-height: 110px; max-width: 75%; object-fit: contain;
}
.software-card-body { padding: 1rem 1.25rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.software-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.7rem; font-weight: 700;
    padding: 2px 8px; border-radius: 2px;
    text-transform: uppercase; letter-spacing: 0.3px;
    margin-bottom: 0.5rem;
}
.software-cat-badge {
    display: inline-block;
    background: var(--primary-light); color: var(--primary-dark);
    font-size: 0.7rem; font-weight: 700;
    padding: 2px 8px; border-radius: 2px; text-transform: uppercase; letter-spacing: 0.3px;
}
.software-card-name { font-size: 0.95rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.software-card-desc { color: var(--text-muted); font-size: 0.8rem; line-height: 1.5; flex: 1; }

/* Software detail cards */
.software-detail-card {
    background: #fff;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
    transition: box-shadow var(--transition);
}
.software-detail-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.software-detail-visual { background: var(--dark); min-height: 240px; }

/* ============================================================
   WHY SECTION
   ============================================================ */
.section-why { background: var(--dark); }
.why-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    padding: 2rem; height: 100%;
    transition: background var(--transition);
}
.why-card:hover { background: rgba(255,255,255,0.07); }
.why-card-icon { font-size: 2rem; color: var(--primary-light); margin-bottom: 1rem; display: block; }
.why-card-title { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.why-card-desc  { color: rgba(255,255,255,0.58); font-size: 0.875rem; line-height: 1.6; margin-bottom: 0; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-card {
    background: #fff;
    border: 1px solid var(--border);
    padding: 2rem; height: 100%;
    transition: box-shadow var(--transition);
}
.testimonial-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.testimonial-text { color: var(--text); font-size: 0.9375rem; line-height: 1.7; }
.testimonial-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    font-size: 0.85rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.testimonial-name { font-weight: 700; color: var(--dark); font-size: 0.875rem; }
.testimonial-poste { color: var(--text-muted); font-size: 0.8rem; }

/* ============================================================
   CTA BLOCK
   ============================================================ */
.cta-block { background: var(--dark); padding: 5rem 2rem; text-align: center; }
.cta-block h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; }
.cta-block p  { color: rgba(255,255,255,0.65); }
.cta-icon { font-size: 3rem; color: var(--primary-light); margin-bottom: 1.5rem; display: block; }

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 0 2rem;
}
.page-header-title    { color: var(--dark); font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; margin-bottom: 0.375rem; }
.page-header-subtitle { color: var(--text-muted); font-size: 1rem; margin-top: 0; }
.breadcrumb { margin-bottom: 0.625rem; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }
.breadcrumb-item a { color: var(--primary); font-size: 0.875rem; }
.breadcrumb-item.active { color: var(--text-muted); font-size: 0.875rem; }
.breadcrumb-light {}

/* ============================================================
   ABOUT — MISSION/VISION/VALUES
   ============================================================ */
.mvv-card {
    background: #fff; border: 1px solid var(--border);
    padding: 2rem; height: 100%; transition: box-shadow var(--transition);
}
.mvv-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.mvv-icon {
    width: 52px; height: 52px; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 1.25rem;
}
.mvv-mission .mvv-icon { background: #dbeafe; color: #1e40af; }
.mvv-vision  .mvv-icon { background: #d1fae5; color: #065f46; }
.mvv-values  .mvv-icon { background: var(--primary-light); color: var(--primary); }

/* ============================================================
   TIMELINE (About)
   ============================================================ */
.timeline-vertical { position: relative; padding-left: 2rem; }
.timeline-vertical::before {
    content: ''; position: absolute;
    left: 8px; top: 8px; bottom: 8px;
    width: 2px; background: var(--border);
}
.timeline-item { position: relative; padding-bottom: 2rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
    position: absolute; left: -1.6rem; top: 4px;
    width: 14px; height: 14px; border-radius: 50%;
    border: 2px solid #fff; box-shadow: 0 0 0 2px var(--border);
}
.timeline-content h6 { font-size: 0.9rem; font-weight: 700; color: var(--dark); }
.timeline-content p  { font-size: 0.825rem; color: var(--text-muted); margin-bottom: 0; }

/* ============================================================
   ABOUT STATS
   ============================================================ */
.stat-counter-box { padding: 0.5rem; }
.stat-counter-number { font-size: 2rem; font-weight: 800; line-height: 1; }

/* ============================================================
   EXPERTISE & TECH ITEMS
   ============================================================ */
.expertise-item {
    display: flex; align-items: center;
    background: #fff; border: 1px solid var(--border);
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem; font-weight: 500; color: var(--dark);
    transition: border-color var(--transition), background var(--transition);
}
.expertise-item:hover { border-color: var(--primary); background: var(--primary-light); }
.expertise-item i { color: var(--primary); }

.tech-badge-card {
    display: flex; align-items: center; gap: 10px;
    background: #fff; border: 1px solid var(--border);
    padding: 0.875rem 1rem;
    font-size: 0.875rem; font-weight: 600; color: var(--dark);
    transition: all var(--transition);
}
.tech-badge-card:hover { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.tech-badge-card i { font-size: 1.25rem; color: var(--primary); }

/* ============================================================
   MISSION CARDS (home brief section)
   ============================================================ */
.mission-card { background: var(--bg-light); border: 1px solid var(--border); padding: 1.25rem; }
.mission-card-icon { font-size: 1.5rem; color: var(--primary); margin-bottom: 0.75rem; }

/* ============================================================
   SERVICES DETAIL (page services)
   ============================================================ */
.service-detail-visual { padding: 2rem 0; }
.service-detail-icon-lg {
    width: 120px; height: 120px; border-radius: var(--radius-md);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 3.5rem;
}
.icon-primary-lg   { background: var(--primary-light); color: var(--primary); }
.icon-success-lg   { background: #d1fae5; color: #065f46; }
.icon-warning-lg   { background: #fef3c7; color: #92400e; }
.icon-info-lg      { background: #dbeafe; color: #1e40af; }
.icon-danger-lg    { background: #fee2e2; color: #991b1b; }
.icon-secondary-lg { background: #f1f5f9; color: #475569; }
.service-number { font-size: 3rem; font-weight: 800; color: var(--border); display: block; line-height: 1; margin-bottom: 0.5rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-form-card { background: #fff; border: 1px solid var(--border); padding: 2rem; }
.contact-info-item {
    display: flex; align-items: flex-start; gap: 1rem;
    padding: 1rem 0; border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon {
    width: 44px; height: 44px; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}
.bg-primary-soft { background: var(--primary-light); }
.bg-success-soft { background: #d1fae5; }
.bg-warning-soft { background: #fef3c7; }
.bg-info-soft    { background: #dbeafe; }
.contact-social-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; border: 1px solid var(--border);
    color: var(--dark); font-size: 0.875rem; font-weight: 600;
    padding: 8px 16px; border-radius: var(--radius);
    text-decoration: none; transition: all var(--transition);
}
.contact-social-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* ============================================================
   FORM
   ============================================================ */
.form-control, .form-select {
    border-color: var(--border); border-radius: var(--radius);
    font-size: 0.9rem; color: var(--text);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.form-label { font-size: 0.875rem; font-weight: 500; color: var(--dark); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer-main { background: var(--dark); color: rgba(255,255,255,0.72); }
.footer-desc { font-size: 0.875rem; color: rgba(255,255,255,0.58); line-height: 1.65; }
.footer-heading {
    color: #fff; font-weight: 700; font-size: 0.8125rem;
    text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 1rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.62); font-size: 0.875rem; text-decoration: none; transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 0.75rem; font-size: 0.875rem; color: rgba(255,255,255,0.62); }
.footer-contact li i { color: var(--primary-light); margin-top: 2px; flex-shrink: 0; }
.footer-contact a { color: rgba(255,255,255,0.62); text-decoration: none; }
.footer-contact a:hover { color: #fff; }
.footer-social {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.7); font-size: 1rem;
    text-decoration: none; transition: all var(--transition); border-radius: var(--radius);
}
.footer-social:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.09); background: rgba(0,0,0,0.2); }
.footer-legal-link { color: rgba(255,255,255,0.45); font-size: 0.8rem; text-decoration: none; }
.footer-legal-link:hover { color: #fff; }

/* ============================================================
   AOS ANIMATIONS
   ============================================================ */
[data-aos] { opacity: 0; transition: opacity 0.5s ease, transform 0.5s ease; }
[data-aos="fade-up"]    { transform: translateY(24px); }
[data-aos="fade-right"] { transform: translateX(-24px); }
[data-aos="fade-left"]  { transform: translateX(24px); }
[data-aos="fade-in"]    { transform: none; }
[data-aos="zoom-in"]    { transform: scale(0.96); }
[data-aos].aos-animate  { opacity: 1; transform: none; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
#backToTop {
    position: fixed; bottom: 2rem; right: 2rem;
    width: 44px; height: 44px;
    background: var(--primary); color: #fff;
    border: none; border-radius: var(--radius);
    font-size: 1.1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(37,99,235,0.4);
    opacity: 0; pointer-events: none;
    transition: all var(--transition); z-index: 999;
}
#backToTop.visible { opacity: 1; pointer-events: auto; }
#backToTop:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ============================================================
   ABOUT HERO
   ============================================================ */
.about-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    background: var(--dark);
    overflow: hidden;
}
.about-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.18;
}
.about-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(28,29,31,0.97) 40%, rgba(37,99,235,0.55) 100%);
}
.about-hero-content {
    position: relative;
    z-index: 2;
    padding: 5rem 0;
}
.about-hero-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 1.25rem;
}
.about-hero-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.68);
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 2rem;
}
.about-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.75rem; }
.about-hero-tag {
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.16);
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: var(--radius);
}

/* ============================================================
   ABOUT STATS BAND
   ============================================================ */
.about-stats-band {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
}
.about-stat-item {
    padding: 2.25rem 1rem;
    border-right: 1px solid var(--border);
    text-align: center;
}
.about-stat-item:last-child { border-right: none; }

/* ============================================================
   ABOUT HISTOIRE — IMAGE FRAME
   ============================================================ */
.about-img-frame {
    position: relative;
    margin-bottom: 0;
}
.about-img-frame img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-md);
    display: block;
}
.about-img-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: var(--primary);
    color: #fff;
    padding: 1.25rem 1.75rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 8px 24px rgba(37,99,235,0.35);
}
.about-img-badge-number {
    display: block;
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
}
.about-img-badge-text {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.85;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================
   ABOUT QUOTE
   ============================================================ */
.about-quote {
    border-left: 3px solid var(--primary);
    background: var(--bg-light);
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}
.about-quote p {
    font-style: italic;
    color: var(--dark);
    font-size: 0.975rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}
.about-quote cite {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: normal;
    font-weight: 500;
}

/* ============================================================
   ABOUT MISSION & VISION CARDS
   ============================================================ */
.about-mv-card {
    padding: 2.5rem;
    border: 1px solid var(--border);
    background: #fff;
    height: 100%;
    transition: box-shadow var(--transition);
}
.about-mv-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.about-mv-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* ============================================================
   ABOUT VALUES (dark section)
   ============================================================ */
.section-values { background: var(--dark); }
.value-card {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 2rem 1.5rem;
    height: 100%;
}
.value-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255,255,255,0.05);
    line-height: 1;
    margin-bottom: 0.75rem;
}
.value-card-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.value-card-desc {
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
    line-height: 1.65;
    margin: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
    .hero-section { padding: 3rem 0; }
    .hero-img-wrap, .hero-placeholder { display: none; }
}
@media (max-width: 767.98px) {
    .py-6 { padding-top: 3rem; padding-bottom: 3rem; }
    .hero-sub { max-width: 100%; }
    .cta-block { padding: 3.5rem 1rem; }
    .about-stat-item { border-right: none; border-bottom: 1px solid var(--border); }
    .about-stat-item:last-child { border-bottom: none; }
    .about-img-frame img { height: 300px; }
    .about-img-badge { display: none; }
    .about-mv-card { padding: 1.75rem; }
    .about-hero-content { padding: 3.5rem 0; }
}

/* ============================================================
   MOBILE XS — évite que les textes touchent les bords
   ============================================================ */
@media (max-width: 575.98px) {
    /* Augmente le padding du container Bootstrap (défaut 12px → 20px) */
    .container {
        padding-right: 1.25rem;
        padding-left: 1.25rem;
    }

    /* Hero */
    .hero-section { padding: 2.5rem 0 3rem; }
    .hero-title { font-size: 1.85rem; letter-spacing: -0.5px; }
    .hero-sub { font-size: 0.95rem; }
    .hero-actions { gap: 0.75rem; }
    .hero-actions .btn { width: 100%; justify-content: center; }

    /* Stats bar (home) */
    .stats-bar { padding: 1.5rem 0; }
    .stat-item { padding: 0.75rem 0.5rem; }
    .stat-number { font-size: 1.75rem; }

    /* Service cards (row g-0 → ajout d'espace intérieur) */
    .service-card { padding: 1.25rem; border-radius: 0; }

    /* About hero */
    .about-hero-title { font-size: 1.75rem; letter-spacing: -0.5px; }
    .about-hero-content { padding: 2.75rem 0; }

    /* Stats band (about) */
    .about-stat-item { padding: 1.5rem 0.75rem; }
    .about-stat-item .stat-number { font-size: 1.75rem; }

    /* Section titres */
    .section-title { font-size: 1.5rem; letter-spacing: -0.3px; }
    .section-desc { font-size: 0.9rem; }

    /* Page header */
    .page-header { padding: 1.75rem 0 1.25rem; }
    .page-header-title { font-size: 1.4rem; }

    /* Notre histoire — timeline */
    .timeline-vertical { padding-left: 1.5rem; }

    /* Mission/Vision cards */
    .about-mv-card { padding: 1.5rem 1.25rem; }

    /* Values section (dark, row g-0) */
    .value-card { padding: 1.5rem 1.25rem; }
    .value-number { font-size: 2.25rem; }

    /* Expertise / tech badges */
    .expertise-item { padding: 1.25rem 1rem; }
    .tech-badge-card { padding: 1rem 0.75rem; }

    /* Software detail card */
    .software-detail-visual { padding: 2rem 1.25rem; min-height: 160px; }
    .software-detail-body { padding: 1.5rem 1.25rem; }

    /* Contact form */
    .contact-form-card { padding: 1.5rem 1.25rem; }

    /* CTA block */
    .cta-block { padding: 3rem 1.25rem; }

    /* About quote */
    .about-quote { padding: 1rem 1.25rem; margin-left: 0; }

    /* Footer */
    .footer-top { padding-top: 2.5rem; padding-bottom: 2rem; }

    /* Buttons — pleine largeur sur XS si côte à côte */
    .about-hero-content .btn { width: 100%; }
    .cta-block .d-flex.gap-3 { flex-direction: column; gap: 0.75rem !important; }
    .cta-block .d-flex.gap-3 .btn { width: 100%; }
}
