/* ==========================================================================
   Page À propos — styles dédiés (évite les conflits avec l'accueil / header)
   ========================================================================== */

body.page-apropos {
    font-family: 'Poppins', sans-serif;
    color: #333;
    overflow-x: hidden;
}

/* --- HERO / CAROUSEL --- */
body.page-apropos .hero-img {
    height: 70vh;
    min-height: 400px;
    object-fit: cover;
    object-position: center 20%;
}

body.page-apropos .hero-header {
    position: relative;
    margin-bottom: 120px;
}

body.page-apropos .hero-info-card {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    z-index: 100;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

body.page-apropos .info-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

body.page-apropos .info-title {
    font-weight: 800;
    font-size: 1.8rem;
    color: #2D2926;
    margin-bottom: 10px;
}

body.page-apropos .info-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.page-apropos .badge-item {
    background: #dae2ef;
    color: #5D4037;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

body.page-apropos .btn-contact-hero {
    background: #18789b;
    color: #fff !important;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
    transition: 0.3s;
}

body.page-apropos .carousel-control-prev-icon,
body.page-apropos .carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    background-size: 50%;
}

@media (max-width: 991px) {
    body.page-apropos .hero-img {
        height: 50vh;
    }
    body.page-apropos .info-wrapper {
        flex-direction: column;
        text-align: center;
    }
    body.page-apropos .info-badges {
        justify-content: center;
    }
    body.page-apropos .hero-info-card {
        bottom: -100px;
        width: 95%;
        padding: 20px;
    }
    body.page-apropos .info-title {
        font-size: 1.4rem;
    }
    body.page-apropos .btn-contact-hero {
        width: 100%;
        text-align: center;
    }
}

/* --- PRÉSENTATION --- */
body.page-apropos .presentation-section {
    padding: 80px 0;
    background-color: #fff;
}

body.page-apropos .image-stack-container {
    position: relative;
    height: 540px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

body.page-apropos .image-box-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    z-index: 10;
}

body.page-apropos .image-box-bottom {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 70%;
    z-index: 5;
}

body.page-apropos .presentation-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

body.page-apropos .presentation-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0B5E7E;
    margin-bottom: 25px;
}

body.page-apropos .presentation-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4a4a4a;
    text-align: justify;
    margin-bottom: 1rem;
}

body.page-apropos .presentation-text.eco-highlight {
    color: #0B5E7E;
    font-weight: 600;
    border-left: 4px solid #f4c861;
    padding-left: 16px;
}

@media (max-width: 991.98px) {
    body.page-apropos .presentation-section {
        padding: 60px 0;
    }
    body.page-apropos .image-stack-container {
        height: 440px;
        margin-bottom: 40px;
    }
    body.page-apropos .presentation-img {
        height: 260px;
        border-radius: 30px;
    }
    body.page-apropos .presentation-title {
        text-align: center;
        font-size: 1.8rem;
    }
}

@media (max-width: 575.98px) {
    body.page-apropos .image-stack-container {
        height: 320px;
        max-width: 320px;
        margin-bottom: 30px;
    }
    body.page-apropos .image-box-top,
    body.page-apropos .image-box-bottom {
        width: 72%;
    }
    body.page-apropos .presentation-img {
        height: 190px;
        border-radius: 25px;
    }
}

/* --- MÉTIERS --- */
body.page-apropos .metiers-section {
    padding: 80px 0 140px;
    background-color: #ffffff;
}

body.page-apropos .metiers-main-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 20px;
}

body.page-apropos .metiers-main-title .sub-title {
    display: block;
    font-weight: 300;
    color: #777777;
    font-size: 2.2rem;
    margin-top: 5px;
}

body.page-apropos .metiers-intro-text {
    font-size: 1.05rem;
    color: #555555;
    line-height: 1.7;
    max-width: 90%;
    margin-bottom: 40px;
}

body.page-apropos .metier-card {
    height: 480px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 40px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 30px 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

body.page-apropos .metier-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

body.page-apropos .metier-card-content {
    position: relative;
    color: #ffffff;
    z-index: 2;
}

body.page-apropos .metier-card-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #ffffff;
}

body.page-apropos .metier-card-content p {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
    margin-bottom: 0;
    color: #e5e5e5;
}

@media (min-width: 1200px) {
    body.page-apropos .metier-card.card-offset-1 { transform: translateY(25px); }
    body.page-apropos .metier-card.card-offset-2 { transform: translateY(50px); }
    body.page-apropos .metier-card.card-offset-3 { transform: translateY(75px); }
    body.page-apropos .metier-card.card-offset-1:hover,
    body.page-apropos .metier-card.card-offset-2:hover,
    body.page-apropos .metier-card.card-offset-3:hover {
        transform: translateY(20px);
    }
    body.page-apropos .metier-card.card-offset-2:hover { transform: translateY(45px); }
    body.page-apropos .metier-card.card-offset-3:hover { transform: translateY(70px); }
}

@media (max-width: 1199.98px) {
    body.page-apropos .metiers-section {
        padding: 60px 0 80px;
    }
    body.page-apropos .metier-card {
        height: 400px;
        border-radius: 30px;
    }
    body.page-apropos .metier-card.card-offset-1,
    body.page-apropos .metier-card.card-offset-2,
    body.page-apropos .metier-card.card-offset-3 {
        transform: none;
    }
}

@media (max-width: 575.98px) {
    body.page-apropos .metiers-main-title {
        font-size: 1.8rem;
    }
    body.page-apropos .metiers-main-title .sub-title {
        font-size: 1.6rem;
    }
    body.page-apropos .metiers-intro-text {
        font-size: 0.95rem;
        max-width: 100%;
    }
    body.page-apropos .metier-card {
        height: 350px;
        border-radius: 25px;
        padding: 20px;
    }
    body.page-apropos .metier-card-content h3 {
        font-size: 1.15rem;
    }
}

/* --- HISTOIRE (fond aligné sur la section avis clients) --- */
body.page-apropos .histoire-section {
    padding: 100px 0;
    background: linear-gradient(165deg, #0B5E7E 0%, #0a4a63 45%, #0d1b2a 100%);
    position: relative;
    overflow: hidden;
}

body.page-apropos .histoire-section::before {
    content: "";
    position: absolute;
    top: -100px;
    left: -60px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(255, 228, 132, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

body.page-apropos .histoire-section .container {
    position: relative;
    z-index: 1;
}

body.page-apropos .histoire-stack-container {
    position: relative;
    height: 540px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

body.page-apropos .histoire-box-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    z-index: 10;
}

body.page-apropos .histoire-box-bottom {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 70%;
    z-index: 5;
}

body.page-apropos .histoire-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 40px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    border: 3px solid rgba(255, 255, 255, 0.12);
}

body.page-apropos .carte-blanche-histoire {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 24px;
    padding: 42px 40px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 4px solid #FFE484;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

body.page-apropos .histoire-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 25px;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

body.page-apropos .histoire-title::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    background: linear-gradient(90deg, #FFE484, #f4c861);
    border-radius: 2px;
    margin-top: 14px;
}

body.page-apropos .histoire-text {
    font-size: 1.06rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.9);
    text-align: justify;
    margin-bottom: 0;
    font-weight: 400;
}

@media (max-width: 991.98px) {
    body.page-apropos .histoire-section {
        padding: 60px 0;
    }
    body.page-apropos .histoire-stack-container {
        height: 440px;
        margin-bottom: 40px;
    }
    body.page-apropos .histoire-img {
        height: 260px;
        border-radius: 30px;
    }
    body.page-apropos .histoire-title {
        text-align: center;
        font-size: 1.8rem;
    }
    body.page-apropos .histoire-title::after {
        margin-left: auto;
        margin-right: auto;
    }
    body.page-apropos .histoire-text {
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    body.page-apropos .histoire-stack-container {
        height: 320px;
        max-width: 320px;
        margin-bottom: 30px;
    }
    body.page-apropos .histoire-box-top,
    body.page-apropos .histoire-box-bottom {
        width: 72%;
    }
    body.page-apropos .histoire-img {
        height: 190px;
        border-radius: 25px;
    }
    body.page-apropos .carte-blanche-histoire {
        padding: 28px;
    }
}

/* --- PARTENAIRES & DÉVELOPPEMENTS --- */
body.page-apropos .section-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #0B5E7E;
    background: rgba(11, 94, 126, 0.08);
    padding: 0.45rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

body.page-apropos .section-main-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 1rem;
}

body.page-apropos .section-lead {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #555;
}

body.page-apropos .partners-section {
    padding: 90px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #f0f7fa 100%);
}

body.page-apropos .partners-section .section-head {
    margin-bottom: 3rem;
}

body.page-apropos .stat-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(11, 94, 126, 0.08);
    border: 1px solid rgba(11, 94, 126, 0.08);
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.page-apropos .stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(11, 94, 126, 0.12);
}

body.page-apropos .stat-value {
    display: block;
    font-size: clamp(1.75rem, 4vw, 2.4rem);
    font-weight: 800;
    color: #0B5E7E;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    min-height: 1.1em;
}

body.page-apropos .stat-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.88rem;
    color: #666;
    font-weight: 500;
}

body.page-apropos .developments-stats {
    margin-bottom: 2.5rem;
}

body.page-apropos .partners-marquee {
    overflow: hidden;
    margin: 2rem 0 2.5rem;
    padding: 1.25rem 0;
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(11, 94, 126, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

body.page-apropos .partners-track {
    display: flex;
    gap: 2.5rem;
    width: max-content;
    animation: partners-scroll 28s linear infinite;
}

body.page-apropos .partners-track:hover {
    animation-play-state: paused;
}

@keyframes partners-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

body.page-apropos .partner-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.5rem;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #e8eef3;
    white-space: nowrap;
}

body.page-apropos .partner-logo i,
body.page-apropos .partner-logo .partner-emoji {
    font-size: 1.35rem;
    color: #0B5E7E;
    line-height: 1;
}

body.page-apropos .partner-logo span {
    font-weight: 600;
    font-size: 0.92rem;
    color: #333;
}

body.page-apropos .dev-card {
    background: #fff;
    border-radius: 24px;
    padding: 2rem 1.75rem;
    height: 100%;
    border: 1px solid rgba(11, 94, 126, 0.08);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.page-apropos .dev-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 42px rgba(11, 94, 126, 0.12);
}

body.page-apropos .dev-card-featured {
    background: linear-gradient(145deg, #0B5E7E 0%, #1A7F9E 100%);
    border: none;
    color: #fff;
}

body.page-apropos .dev-card-featured h3,
body.page-apropos .dev-card-featured p {
    color: #fff;
}

body.page-apropos .dev-card-featured .dev-year {
    background: rgba(255, 228, 132, 0.25);
    color: #FFE484;
}

body.page-apropos .dev-year {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #0B5E7E;
    background: rgba(11, 94, 126, 0.1);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

body.page-apropos .dev-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

body.page-apropos .dev-card p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #555;
    margin: 0;
}

@media (max-width: 991.98px) {
    body.page-apropos .partners-section {
        padding: 60px 0;
    }
}

@media (max-width: 575.98px) {
    body.page-apropos .partners-marquee {
        mask-image: none;
        -webkit-mask-image: none;
    }
    body.page-apropos .partners-track {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        animation: none;
        gap: 0.75rem;
        padding: 0 1rem;
    }
}

