/* Styles réservés aux pages intérieures (hors accueil) — chargé à part pour alléger home.css */

.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.expertises-hero-overlay {
    background: linear-gradient(135deg, rgba(0, 68, 134, 0.9) 0%, rgba(158, 67, 0, 0.3) 100%);
}

.sticky-contact {
    position: sticky;
    top: 120px;
}

.expertise-block {
    scroll-margin-top: 140px;
}

.timeline-line {
    background: linear-gradient(to bottom, #004486 50%, #9e4300 50%);
}

.about-timeline__node {
    aspect-ratio: 1 / 1;
}

.brand-gradient-overlay {
    background: linear-gradient(135deg, rgba(0, 68, 134, 0.85) 0%, rgba(158, 67, 0, 0.4) 100%);
}

.portfolio-card-overlay {
    background: linear-gradient(to top, rgba(19, 63, 120, 0.95) 0%, rgba(19, 63, 120, 0.4) 50%, rgba(19, 63, 120, 0) 100%);
}

.filter-btn-active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #fc8540;
}

.gradient-overlay {
    background: linear-gradient(to bottom, rgba(0, 68, 134, 0.4) 0%, rgba(200, 94, 26, 0.2) 100%);
}

.architectural-grid {
    background-image:
        linear-gradient(rgba(0, 68, 134, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 68, 134, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.construction-arc {
    border: 20px solid rgba(200, 94, 26, 0.05);
    border-radius: 50% 50% 0 0;
    position: absolute;
    bottom: 0;
    right: -100px;
    width: 600px;
    height: 300px;
    z-index: 0;
    pointer-events: none;
}

.error-page-canvas {
    min-height: calc(100dvh - var(--site-nav-height, 118px) - 12rem);
}

.hero-gradient {
    background: linear-gradient(rgba(0, 68, 134, 0.8), rgba(200, 94, 26, 0.3));
}

.internal-page-hero .signature-divider {
    max-width: 80px;
}

.internal-page-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.expertise-border {
    border-left: 4px solid #004486;
    transition: border-color 0.3s ease;
}

.expertise-border:hover {
    border-left-color: #9e4300;
}

/* Expertise — domaines d'application */
.expertise-app-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(0, 27, 60, 0.08);
    border-left: 4px solid #004486;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.expertise-app-card:hover {
    transform: translateY(-4px);
    border-left-color: #fc8540;
    box-shadow: 0 18px 36px rgba(0, 27, 60, 0.1);
}

.expertise-app-card--featured {
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .expertise-app-card--featured {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    }

    .expertise-app-card--featured .expertise-app-card__media {
        min-height: 100%;
        aspect-ratio: auto;
    }
}

.expertise-app-card__media {
    flex-shrink: 0;
}

.expertise-app-card__body {
    position: relative;
    padding: 1.5rem 1.35rem 1.75rem;
}

@media (min-width: 768px) {
    .expertise-app-card__body {
        padding: 1.75rem 1.5rem 2rem;
    }
}

.expertise-app-card__index {
    position: absolute;
    top: 0.35rem;
    right: 0.65rem;
    font-family: var(--font-headline, inherit);
    font-size: 2.25rem;
    line-height: 1;
    font-weight: 700;
    color: rgba(0, 27, 60, 0.05);
    pointer-events: none;
}

.expertise-app-card:hover .expertise-app-card__index {
    color: rgba(252, 133, 64, 0.16);
}

.expertise-app-card__icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1rem;
    background: rgba(0, 68, 134, 0.08);
    border: 1px solid rgba(0, 68, 134, 0.12);
    transition: background 0.35s ease, border-color 0.35s ease;
}

.expertise-app-card:hover .expertise-app-card__icon-wrap {
    background: rgba(252, 133, 64, 0.12);
    border-color: rgba(252, 133, 64, 0.28);
}

.expertise-app-card__icon {
    font-size: 1.35rem;
    color: #004486;
    transition: color 0.35s ease;
}

.expertise-app-card:hover .expertise-app-card__icon {
    color: #c85e1a;
}

.expertise-app-card__title {
    color: #001b3c;
}

.expertise-app-card__accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #fc8540, #004486);
    transition: width 0.45s ease;
}

.expertise-app-card:hover .expertise-app-card__accent {
    width: 100%;
}

.arch-dot-pattern {
    background-image: radial-gradient(rgba(0, 68, 134, 0.1) 1px, transparent 1px);
    background-size: 24px 24px;
}

.metric-item {
    border-bottom: 1px solid #e5e8ee;
    padding: 2rem 0;
}

.technical-grid {
    background-image: linear-gradient(#e5e8ee 1px, transparent 1px), linear-gradient(90deg, #e5e8ee 1px, transparent 1px);
    background-size: 40px 40px;
}

.news-card-overlay {
    background: linear-gradient(0deg, rgba(0,27,60,0.8) 0%, rgba(0,27,60,0) 100%);
}

.news-card a:focus-visible {
    outline: 2px solid #004486;
    outline-offset: 3px;
}

.map-container {
    filter: grayscale(1) contrast(1.1) brightness(0.9);
    transition: filter 0.5s ease;
}

.map-container:hover {
    filter: grayscale(0.2) contrast(1) brightness(1);
}

.leadership-card__panel {
    border-left: 4px solid transparent;
    z-index: 2;
}

.leadership-card__shade {
    z-index: 1;
}

.leadership-card__media {
    aspect-ratio: 3 / 4;
    min-height: clamp(26rem, 72vw, 30rem);
}

@media (min-width: 768px) {
    .leadership-card__media {
        min-height: clamp(28rem, 44vw, 32rem);
    }
}

@media (min-width: 1024px) {
    .leadership-card__media {
        min-height: clamp(30rem, 36vw, 34rem);
    }
}

.leadership-card__img {
    filter: grayscale(1);
    transition: transform 0.85s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.7s ease;
    transform: scale(1);
}

.leadership-card:hover .leadership-card__img,
.leadership-card:focus-within .leadership-card__img {
    filter: grayscale(0);
    transform: scale(1.08);
}

.leadership-card:hover .leadership-card__panel,
.leadership-card:focus-within .leadership-card__panel {
    background: rgba(0, 68, 134, 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-left-color: #fc8540;
}

.leadership-contact__link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: inherit;
}

.leadership-contact__link--overlay {
    position: relative;
    z-index: 2;
}

.leadership-contact__icon {
    font-size: 1.125rem;
    color: #fc8540;
}

.leadership-contact__icon--overlay {
    font-size: 1rem;
}

.leadership-contact--overlay .leadership-contact__value {
    font-size: 0.8125rem;
    line-height: 1.35;
}

.leadership-contact__label {
    display: block;
}

.leadership-contact__value {
    flex: 1;
    min-width: 0;
}

.value-card--light {
    background: #fff;
    border: 1px solid rgba(0, 27, 60, 0.08);
    box-shadow: 0 4px 24px rgba(0, 27, 60, 0.06);
}

.value-card--light:hover {
    transform: translateY(-6px);
    border-color: rgba(252, 133, 64, 0.35);
    box-shadow: 0 20px 40px rgba(0, 27, 60, 0.12);
}

.value-card--light .value-card__index {
    color: rgba(0, 27, 60, 0.06);
}

.value-card--light:hover .value-card__index {
    color: rgba(252, 133, 64, 0.2);
}

.value-card--light .value-card__icon-wrap {
    background: rgba(0, 68, 134, 0.06);
    border: 1px solid rgba(0, 68, 134, 0.1);
}

.value-card--light:hover .value-card__icon-wrap {
    background: #004486;
    transform: scale(1.05);
}

.value-card--light .value-card__icon {
    color: #004486;
}

.value-card--light:hover .value-card__icon {
    color: #fff;
}

.value-card--light .value-card__title {
    color: #001b3c;
}

.value-card--light .value-card__text {
    color: #5a6478;
}

/* À propos — mission & vision */
.about-mv-section__grid-bg {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
}

.about-mv-card {
    position: relative;
    padding: 2rem 1.75rem 2.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left-width: 4px;
    overflow: hidden;
    transition: transform 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

@media (min-width: 768px) {
    .about-mv-card {
        padding: 2.5rem 2.25rem 2.75rem;
    }
}

.about-mv-card--mission {
    border-left-color: #fc8540;
}

.about-mv-card--vision {
    border-left-color: #1A5CA8;
}

.about-mv-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.about-mv-card .wcas-geo-corner {
    opacity: 0.35;
}

.about-mv-card__index {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    font-family: var(--font-headline, inherit);
    font-size: clamp(3.5rem, 8vw, 5rem);
    line-height: 1;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.06);
    pointer-events: none;
    user-select: none;
}

.about-mv-card:hover .about-mv-card__index {
    color: rgba(252, 133, 64, 0.14);
}

.about-mv-card--vision:hover .about-mv-card__index {
    color: rgba(26, 92, 168, 0.22);
}

.about-mv-card__icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.35s ease, border-color 0.35s ease;
}

.about-mv-card--mission .about-mv-card__icon-wrap {
    border-color: rgba(252, 133, 64, 0.35);
    background: rgba(252, 133, 64, 0.12);
}

.about-mv-card--vision .about-mv-card__icon-wrap {
    border-color: rgba(26, 92, 168, 0.45);
    background: rgba(26, 92, 168, 0.18);
}

.about-mv-card__icon {
    font-size: 1.75rem;
    color: #fc8540;
}

.about-mv-card--vision .about-mv-card__icon {
    color: #7eb8ff;
}

.about-mv-card__rule {
    width: 3rem;
    height: 3px;
    margin-bottom: 1.25rem;
    background: linear-gradient(90deg, #fc8540, transparent);
}

.about-mv-card--vision .about-mv-card__rule {
    background: linear-gradient(90deg, #1A5CA8, transparent);
}

/* À propos — pourquoi nous choisir */
.about-why-section__grid-bg {
    background-image:
        linear-gradient(rgba(0, 68, 134, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 68, 134, 0.045) 1px, transparent 1px);
    background-size: 48px 48px;
}

.about-why-card {
    position: relative;
    padding: 1.75rem 1.5rem 2rem;
    background: #fff;
    border: 1px solid rgba(0, 27, 60, 0.08);
    border-left: 4px solid #004486;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

@media (min-width: 768px) {
    .about-why-card {
        padding: 2rem 1.75rem 2.25rem;
    }
}

.about-why-card:hover {
    transform: translateY(-5px);
    border-left-color: #fc8540;
    box-shadow: 0 20px 40px rgba(0, 27, 60, 0.1);
}

.about-why-card__index {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    font-family: var(--font-headline, inherit);
    font-size: 2.75rem;
    line-height: 1;
    font-weight: 700;
    color: rgba(0, 27, 60, 0.05);
    pointer-events: none;
}

.about-why-card:hover .about-why-card__index {
    color: rgba(252, 133, 64, 0.18);
}

.about-why-card__icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 1.25rem;
    background: rgba(0, 68, 134, 0.08);
    border: 1px solid rgba(0, 68, 134, 0.12);
    transition: background 0.35s ease, border-color 0.35s ease;
}

.about-why-card:hover .about-why-card__icon-wrap {
    background: rgba(252, 133, 64, 0.12);
    border-color: rgba(252, 133, 64, 0.3);
}

.about-why-card__icon {
    font-size: 1.5rem;
    color: #004486;
    transition: color 0.35s ease;
}

.about-why-card:hover .about-why-card__icon {
    color: #c85e1a;
}

.about-why-card__title {
    color: #001b3c;
}

.about-why-card__accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #fc8540, #004486);
    transition: width 0.45s ease;
}

.about-why-card:hover .about-why-card__accent {
    width: 100%;
}

@media (max-width: 767px) {
    .parallax-bg {
        background-attachment: scroll;
    }
}
