/* EGCOM � palette institutionnelle : marine, acier, rouge signal */
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Outfit:wght@500;600;700&display=swap");

:root {
    --ink: #0a2342;
    --ink-2: #163a66;
    --steel: #3d5a80;
    --paper: #f2f5f8;
    --paper-2: #ffffff;
    --signal: #c4161c;
    --line: rgba(10, 35, 66, 0.1);
    --primary-blue: #0a2342;
    --primary-red: #c4161c;
    --accent-red: #8e1218;
    --text-dark: #122033;
    --text-gray: #5b6b7c;
    --bg-light: #f2f5f8;
    --border-color: rgba(10, 35, 66, 0.1);
}

html { scroll-behavior: smooth; }

body {
    font-family: "Manrope", "Segoe UI", sans-serif;
    background:
        radial-gradient(900px 420px at 100% -8%, rgba(22, 58, 102, 0.08), transparent 60%),
        var(--paper);
    color: var(--text-dark);
    letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Outfit", "Segoe UI", sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.top-bar {
    background: #07182e;
    box-shadow: none;
    border-bottom: 2px solid var(--signal);
}

.company-name-animated,
.top-bar-tagline {
    font-family: "Outfit", sans-serif;
    letter-spacing: 0.16em;
    font-weight: 600;
}

.top-bar-tagline .tagline-item:hover { color: #d7e4f2; }

.navbar {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(10, 35, 66, 0.04);
}

.nav-link {
    background: transparent;
    color: var(--ink);
    box-shadow: none;
    text-shadow: none;
    border: 0;
    border-radius: 0;
    font-family: "Outfit", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 6px;
    height: 2px;
    background: var(--signal);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.nav-link:hover,
.nav-link.active {
    background: transparent;
    color: var(--signal);
    transform: none;
}

.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

.logo {
    box-shadow: none;
    background: transparent;
    padding: 0;
}

.btn-primary,
.btn-hero {
    background: var(--ink);
    color: #fff;
    border: 0;
    border-radius: 4px;
    letter-spacing: 0.12em;
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(10, 35, 66, 0.16);
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover,
.btn-hero:hover {
    background: var(--signal);
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(196, 22, 28, 0.22);
    color: #fff;
}

.hero {
    height: min(78vh, 720px);
    min-height: 520px;
}

.hero-image img {
    transform: scale(1.06);
    animation: drift 26s ease-in-out infinite alternate;
}

@keyframes drift {
    to { transform: scale(1.12) translate3d(-1%, -0.6%, 0); }
}

.hero-overlay {
    background: linear-gradient(100deg, rgba(7, 24, 46, 0.9) 0%, rgba(10, 35, 66, 0.72) 52%, rgba(22, 58, 102, 0.45) 100%);
}

.hero-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
    pointer-events: none;
}

.hero-content { width: 100%; }

.hero-text { container-type: inline-size; }

.hero-title {
    font-size: clamp(32px, 8.4cqi, 68px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    padding-bottom: 0.16em;
    max-width: 100%;
    animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-title .brand-egcom,
.company-name-animated span:nth-child(-n+5) {
    color: #ff241c;
}

.hero-title .brand-hyphen,
.hero-title .brand-projets {
    color: #ffffff;
}

.hero-title .brand-egcom {
    color: #ff0705;
    text-shadow:
        0 1px 0 #d10503,
        0 2px 0 #b00402,
        0 3px 0 #8c0302,
        0 4px 0 #680201,
        0 5px 0 #450101,
        0 10px 14px rgba(0, 0, 0, 0.4);
}

.hero-title .brand-hyphen,
.hero-title .brand-projets {
    text-shadow:
        0 1px 0 #ffffff,
        0 2px 0 #e8eef6,
        0 3px 0 #c5d2e3,
        0 4px 0 #8ea4bd,
        0 5px 0 #5b728c,
        0 6px 0 #2a3f56,
        0 12px 18px rgba(0, 0, 0, 0.45);
}

.company-name-animated span:nth-child(-n+5) {
    text-shadow: 0 1px 0 #9a0402, 0 2px 5px rgba(0, 0, 0, 0.45);
}

.company-name-animated span:nth-child(n+6) {
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35), 0 2px 5px rgba(0, 0, 0, 0.4);
}

.bureaux {
    padding: 72px 0 28px;
}

.bureaux-head {
    max-width: 640px;
    margin-bottom: 28px;
}

.bureaux-kicker {
    margin: 0 0 8px;
    color: var(--signal);
    font-family: "Outfit", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.bureaux-head h2 {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: clamp(32px, 4vw, 46px);
}

.bureaux-head p {
    margin: 0;
    color: var(--text-gray);
    font-size: 16px;
    line-height: 1.6;
}

.bureaux-stage {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    grid-template-rows: 1fr 0.82fr;
    gap: 16px;
    min-height: 560px;
}

.bureau-card {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(10, 35, 66, 0.12);
}

.bureau-card--lead { grid-row: 1 / span 2; }

.bureau-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.04);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.bureau-card--lead img { animation: bureau-drift 18s ease-in-out infinite alternate; }

.bureau-card--logo { background: #f7f8fb; }
.bureau-card--logo img { object-fit: contain; padding: 28px; background: #fff; }

.bureau-card figcaption {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 16px;
    color: #fff;
    background: linear-gradient(180deg, rgba(7, 24, 46, 0.15), rgba(7, 24, 46, 0.82));
    border-left: 3px solid var(--signal);
    border-radius: 12px;
    font-size: 14px;
}

.bureau-card figcaption span {
    font-family: "Outfit", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bureau-card:hover img { transform: scale(1.1); }
.bureau-card--lead:hover img { animation: none; transform: scale(1.08); }

@keyframes bureau-drift {
    to { transform: scale(1.1) translate3d(-1.2%, -0.6%, 0); }
}

@media (max-width: 860px) {
    .bureaux { padding-top: 48px; }
    .bureaux-stage {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        min-height: 0;
    }
    .bureau-card--lead { grid-row: auto; }
    .bureau-card { min-height: 240px; }
    .bureau-card--logo { min-height: 280px; }
}

.hero-subtitle {
    font-family: "Manrope", sans-serif;
    font-size: 17px;
    font-weight: 500;
    max-width: 640px;
    text-transform: none;
    letter-spacing: 0;
    opacity: 0.92;
    animation: rise 1.1s 0.12s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.btn-hero { animation: rise 1.15s 0.22s cubic-bezier(0.16, 1, 0.3, 1) both; }

@keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

.stats-section {
    background: transparent;
    margin-top: -42px;
    position: relative;
    z-index: 4;
    padding-bottom: 20px;
}

.stats-grid {
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 28px 12px;
    box-shadow: 0 16px 40px rgba(10, 35, 66, 0.06);
}

.stat-number {
    font-family: "Outfit", sans-serif;
    color: var(--ink);
    font-weight: 650;
}

.stat-number::after {
    content: "";
    display: block;
    width: 28px;
    height: 2px;
    margin: 10px auto 0;
    background: var(--signal);
}

.services-section,
.values-section,
.projects-section { background: transparent; }

.service-card,
.value-card {
    background: var(--paper-2);
    border-radius: 8px;
    border: 1px solid var(--line);
    box-shadow: 0 8px 22px rgba(10, 35, 66, 0.04);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-card:hover,
.value-card:hover {
    transform: translateY(-6px);
    border-color: rgba(10, 35, 66, 0.22);
    box-shadow: 0 18px 36px rgba(10, 35, 66, 0.1);
}

.service-image {
    background: var(--ink);
    min-height: 120px;
    height: auto;
    padding: 36px 22px;
}

.service-content {
    background: #ffffff;
    color: var(--ink);
    text-align: left;
}

.service-content h3 {
    color: var(--steel);
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.55;
}

.quote-section {
    background: #ffffff;
    color: var(--ink);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.quote-text {
    font-family: "Outfit", sans-serif;
    font-weight: 500;
    font-style: normal;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.quote-author {
    color: var(--signal);
    letter-spacing: 0.14em;
    font-size: 12px;
}

.cta-section {
    background: var(--ink);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--signal);
}

.footer {
    background: #07182e;
    color: rgba(255, 255, 255, 0.82);
}

.footer-col h3,
.footer-col h4 { color: #fff; }

.footer-col ul li a:hover { color: #ffffff; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

html.motion .reveal {
    opacity: 0;
    transform: translateY(18px);
    animation: none;
}

html.motion .reveal.is-in {
    animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.scroll-progress {
    height: 2px;
    background: var(--signal);
    box-shadow: none;
}

@media (max-width: 900px) {
    .nav-menu { background: #ffffff; }
    .nav-link { color: var(--ink); text-align: left; }
    .stats-section { margin-top: 0; }
    .hero { min-height: 460px; height: auto; padding: 72px 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* Icones metier : trait fin, couleur heritee */
.eg-ico {
    width: 1.15em;
    height: 1.15em;
    display: inline-block;
    vertical-align: -0.2em;
    flex: 0 0 auto;
    overflow: visible;
}

.tagline-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
}

.tagline-item .eg-ico { width: 15px; height: 15px; }

.mission-icon,
.benefit-icon,
.benefit-card .icon,
.city-icon,
.flag-icon,
.formation-icon-circle,
.value-icon,
.photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
}

.mission-icon .eg-ico,
.benefit-icon .eg-ico,
.benefit-card .icon .eg-ico { width: 34px; height: 34px; }

.city-icon .eg-ico { width: 30px; height: 30px; }

.diaspora-hero .flag-icon { color: #fff; }
.diaspora-hero .flag-icon .eg-ico { width: 46px; height: 46px; }

.formation-icon-circle {
    background: var(--ink) !important;
    color: #fff;
}

.formation-icon-circle .eg-ico { width: 28px; height: 28px; }

.formation-duration,
.formation-cta,
.social-icon,
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
}

.cert-item h3,
.service-features li,
.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 0.45em;
}

.service-features { list-style: none; }
.service-features .eg-ico,
.cert-item h3 .eg-ico,
.formation-duration .eg-ico,
.whatsapp-field-hint .eg-ico { color: var(--signal); width: 16px; height: 16px; }

.footer .social-link { color: #fff; }
.social-icon { color: inherit; }
.social-icon .eg-ico { width: 16px; height: 16px; }

.team-card-social a { color: var(--ink); display: inline-flex; }
.team-card-social .eg-ico { width: 18px; height: 18px; }

.photo-placeholder .eg-ico { width: 46px; height: 46px; opacity: 0.55; }

.project-meta span { display: inline-flex; align-items: center; gap: 0.35em; }
.project-meta .eg-ico { width: 14px; height: 14px; color: var(--signal); }

.nav-link .eg-ico { width: 13px; height: 13px; }

.zone-list li::before {
    content: "";
    width: 14px;
    height: 14px;
    top: 0.25em;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c4161c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0116 0z'/><circle cx='12' cy='10' r='3'/></svg>") center / contain no-repeat;
}

.formation-details li::before,
.info-box ul li:before,
.candidature-process li::before {
    color: var(--signal) !important;
}
