﻿/* Identite CCDD : vert olive, bleu grise et textes noirs. */
:root {
    --olive: #637238;
    --olive-dark: #455124;
    --blue: #466873;
    --blue-dark: #304c57;
    --ccdd-green: #637238;
    --ccdd-green-light: #718044;
    --ccdd-red: #466873;
    --ccdd-cream: #f3f5ee;
    --ccdd-dark: #111111;
    --ccdd-gray: #252525;
    --line: #dce1d3;
}
body { color: #111; background: #fff; }
h1,h2,h3,h4,h5,h6,p { color: inherit; }
.navbar.is-fixed-top { top: 0; left: 0; right: 0; background: #fffffff7; padding: 14px 0; border-bottom: 1px solid var(--line); }
.navbar.is-scrolled { background: #fff; box-shadow: 0 4px 20px #00000008; }
.navbar > .container { width: calc(100% - 64px); }
.logo-container { gap: 10px; }
.logo-container img { width: 62px; height: 62px; max-height: 62px; filter: none; }
.logo-text { color: #111; font-family: 'Source Sans Pro',Arial,sans-serif; font-size: 30px; letter-spacing: 2px; font-weight: 700; }
.logo-text small { color: #111; font-size: 10px; font-weight: 400; max-width: 185px; letter-spacing: .1px; line-height: 1.4; }
.navbar-item { color: #111; }
.navbar-item.is-current { color: var(--olive-dark); text-decoration-color: var(--olive); }
a.navbar-item:hover,a.navbar-item:focus { background: #f1f4eb; color: #111; }
.nav-cta { color: #fff !important; background: var(--blue); border-radius: 5px; }
.nav-cta:hover,.nav-cta:focus { background: var(--blue-dark) !important; }
.btn-primary,.btn-outline,.submit-btn { min-height: 52px; padding: 13px 23px; border-radius: 5px; }
.btn-primary,.submit-btn { background: var(--olive); border-color: var(--olive); color: white; }
.btn-primary:hover,.submit-btn:hover { background: var(--olive-dark); color: white; }
.btn-outline:hover { background: #edf1e4; color: #111; }
.section-tag { color: #111; letter-spacing: 1.6px; font-size: 10px; }
.section-tag::before { background: var(--olive); width: 24px; height: 3px; }
.section-title { font-size: clamp(32px,3.6vw,49px); color: #111; }
.section-title em,.mission-title em { color: var(--blue); font-weight: 400; }
.section-subtitle,.about-content p,.signature .signature-title { color: #111; }
.link-more { color: #111; border-color: #9fae80; }
.link-more:hover { color: var(--blue); }

/* Carrousel : texte sur panneau clair, photographie sans filtre colore. */
.home-carousel { margin-top: 91px; position: relative; background: #f3f5ee; }
.carousel-slide { display: grid; grid-template-columns: 1fr 1fr; min-height: 650px; }
.carousel-slide[hidden],.carousel-controls[hidden] { display: none; }
.slide-copy { padding: 75px 45px 115px max(40px,calc((100vw - 1280px)/2)); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.slide-copy .section-tag { margin-bottom: 22px; }
.slide-title { font-size: clamp(38px,4vw,61px); letter-spacing: -1.5px; line-height: 1.15; font-weight: 600; color: #111; margin-bottom: 24px; }
.slide-title em { color: var(--blue); font-weight: 400; }
.slide-copy > p { font-size: 17px; line-height: 1.8; max-width: 500px; color: #111; margin-bottom: 29px; }
.slide-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.slide-actions .btn-primary { font-size: 14px; gap: 14px; }
.slide-contact { color: #111; font-size: 13px; border-bottom: 1px solid #a9b38d; padding: 8px 0; }
.slide-contact:hover { color: var(--blue); }
.slide-contact span { margin-left: 8px; }
.slide-location { color: #111; font-size: 11px; margin-top: 30px; }
.slide-location i { color: var(--olive); margin-right: 6px; }
.slide-photo { position: relative; overflow: hidden; margin: 0; min-width: 0; }
.slide-photo img { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; object-position: center; }
.slide-photo figcaption { position: absolute; bottom: 25px; left: 25px; right: 25px; padding: 13px 18px; color: #111; font-size: 13px; background: #ffffffeb; border-left: 4px solid var(--olive); }
.carousel-controls { position: absolute; bottom: 28px; left: max(40px,calc((100vw - 1280px)/2)); width: calc(50% - max(40px,calc((100vw - 1280px)/2)) - 45px); display: flex; align-items: center; gap: 17px; }
.carousel-arrows { display: flex; gap: 8px; }
.carousel-arrows button,.carousel-pause { height: 40px; width: 40px; display: grid; place-items: center; border: 1px solid #a6b18d; border-radius: 50%; background: transparent; color: #111; font-size: 20px; cursor: pointer; }
.carousel-arrows button:hover,.carousel-pause:hover { background: #e0e6d3; }
.carousel-dots { display: flex; gap: 3px; margin-left: auto; }
.carousel-dots button { background: none; border: 0; padding: 12px 5px; cursor: pointer; }
.carousel-dots button span { display: block; width: 8px; height: 8px; border-radius: 50%; background: #b6bdaa; }
.carousel-dots button[aria-current='true'] span { background: var(--olive-dark); width: 23px; border-radius: 10px; }
.carousel-count { color: #111; font-size: 11px; letter-spacing: 1px; white-space: nowrap; }
.carousel-pause { font-size: 14px; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.expertise-ribbon { display: flex; justify-content: center; align-items: center; gap: clamp(15px,3vw,45px); padding: 24px; background: var(--blue); color: white; }
.expertise-ribbon span { font-size: 13px; }
.expertise-ribbon i { font-style: normal; font-size: 20px; color: #d7e0ba; }
.stats-wrap { background: white; padding: 32px 0; }
.stat-number { color: #111; font-size: 42px; }
.stat-label,.stats-heading,.stats-heading strong { color: #111; }
.stats-heading { border-left-color: var(--olive); }

/* Sections, photographies et cartes de contenu. */
.home-page .mission-highlight { padding: 80px 0; background: white; }
.home-page .mission-highlight .container { max-width: 1280px !important; }
.mission-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; text-align: left; }
.mission-title { font-size: clamp(34px,3.8vw,51px); }
.mission-copy p { color: #111; font-size: 16px; margin-bottom: 22px; }
.mission-copy > p:first-child { font: 400 23px/1.6 'Playfair Display',Georgia,serif; }
.home-page .about-section { background: #f3f5ee; padding: 70px 0; }
.home-page .about-image { overflow: visible; border-radius: 10px; margin-right: 20px; box-shadow: none; }
.home-page .about-image img { border-radius: 10px; height: 470px; }
.image-label { background: #fffffff2; color: #111; font-size: 9px; }
.experience-seal { display: flex; flex-direction: column; align-items: center; justify-content: center; position: absolute; top: 25px; right: -20px; width: 115px; height: 115px; background: #e3e9d4; color: #111; border: 6px solid white; border-radius: 50%; text-align: center; font-size: 10px; line-height: 1.3; }
.experience-seal strong { font: 600 38px/1.2 'Playfair Display',Georgia,serif; }
.home-page .about-content { padding-left: 40px; }
.services-section,.partners-section { background: white; }
.home-page .services-section .section-header,.home-page .gallery-section .section-header { text-align: left !important; }
.home-page .services-section .section-subtitle,.home-page .gallery-section .section-subtitle { margin-left: 0 !important; }
.service-card,.mvv-card,.partner-card { background: #fff; border-color: var(--line); border-radius: 8px; }
.service-card p,.mvv-card p,.partner-card p,.value-card p,.process-step p { color: #111; }
.service-icon,.mvv-icon,.partner-icon,.value-icon,.contact-icon { color: var(--olive-dark); background: #ebefdf; }
.service-icon.alt,.mvv-card.alt .mvv-icon { background: #e7eef0; color: var(--blue); }
.photo-service { padding: 0; border: 1px solid var(--line); overflow: hidden; }
.service-photo { display: block; position: relative; height: 240px; overflow: hidden; }
.service-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.photo-service:hover img { transform: scale(1.04); }
.service-number { position: absolute; top: 16px; left: 16px; background: #fffffff0; color: #111; padding: 3px 10px; font-size: 11px; }
.service-arrow { position: absolute; bottom: 16px; right: 16px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #e1e8ce; color: #111; font-size: 23px; }
.service-body { padding: 26px; }
.photo-service .service-icon { width: 40px; height: 40px; font-size: 18px; margin-bottom: 18px; }
.photo-service h4 { font-size: 25px; }
.photo-service p { font-size: 15px; }
.service-discover { margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: #111; font-size: 12px; font-weight: 600; }
.gallery-section,.home-page .gallery-section { background: #edf1f2; }
.gallery-section .section-title,.gallery-section .section-tag,.gallery-section .section-subtitle,.gallery-section .link-more { color: #111; }
.home-page .gallery-section .columns { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 235px 235px; gap: 20px; margin: 0; }
.home-page .gallery-section .column { width: auto; padding: 0; min-width: 0; }
.home-page .gallery-section .column:first-child { grid-row: span 2; }
.home-page .gallery-item.h-md { height: 100%; border-radius: 8px; }
.gallery-caption { background: #fffffff0; padding: 20px 24px; color: #111; }
.gallery-caption h4 { color: #111; font-size: 25px; }
.gallery-caption p { color: #111; }
.tag-pill { background: #e4ead8; color: #111; border: 1px solid #cbd5b6; }
.partner-pills { border: 0; gap: 14px; }
.partner-pill { background: #f3f5ee; color: #111; border: 1px solid var(--line); border-radius: 7px; }
.cta-banner { background: #e3e9d6; color: #111; padding: 70px 0; border: 0; }
.cta-banner h3 { color: #111; font-size: clamp(33px,4vw,54px); }
.cta-banner p,.cta-banner .section-tag { color: #111; }
.cta-banner em { color: var(--blue); }
.cta-banner .btn-primary { background: var(--olive); color: white; }
.cta-banner .btn-primary:hover { background: var(--olive-dark); }
.cta-decoration { display: none; }
.page-header { margin-top: 91px; min-height: 310px; background-image: none !important; background-color: #e8eef0; border-bottom: 5px solid var(--olive); }
.page-header::before { background: linear-gradient(100deg,#e7ecdf,#e6eef0); }
.page-header h1,.breadcrumb-nav,.breadcrumb-nav a,.breadcrumb-nav .current { color: #111; }
.page-header h1 { font-size: clamp(36px,4vw,56px); }
/* Paysage de l'Ennedi : photographie locale et titre noir sur voile clair. */
.page-header.page-header--landscape {
    background-image: url('../images/ennedi-acacias-tchad.jpg') !important;
    background-position: center 60%;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 190px;
}
.page-header--landscape::before {
    background: linear-gradient(90deg, #f5f7eff5 0%, #f5f7efe6 36%, #f5f7ef66 68%, #f5f7ef0d 100%);
}
.page-header--landscape .page-header-content { z-index: 1; padding-block: 15px; }
.page-header--landscape h1 { font-size: clamp(30px, 3vw, 42px); margin-bottom: 12px; }
.landscape-credit {
    position: absolute;
    right: 22px;
    bottom: 12px;
    z-index: 2;
    max-width: calc(100% - 44px);
    background: #fffffff0;
    color: #111;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10px;
    line-height: 1.5;
}
.landscape-credit a { color: #111; text-decoration: underline; text-underline-offset: 2px; }
.footer-photo-credit { font-size: 10px; margin-bottom: 8px; }
.footer-photo-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media(max-width:768px) {
    .page-header.page-header--landscape { min-height: 170px; background-position: 57% center; }
    .page-header--landscape::before { background: linear-gradient(90deg, #f5f7eff0, #f5f7ef99); }
    .landscape-credit { right: 15px; bottom: 10px; max-width: calc(100% - 30px); font-size: 9px; }
}
.landscape-strip { position: relative; min-height: 115px; display: flex; align-items: center; background: linear-gradient(90deg, #f5f7eff0, #f5f7ef33), url('../images/ennedi-acacias-tchad.jpg') center 60% / cover no-repeat; border-bottom: 3px solid var(--olive); }
.landscape-strip > .container { padding-block: 15px; }
.landscape-strip-title { color: #111; font-size: 17px; font-weight: 600; }
@media(max-width:768px) {
    .page-header--landscape .page-header-content { padding-block: 15px; }
    .landscape-strip { min-height: 115px; }
    .landscape-strip-title { font-size: 14px; }
}
.contact-section { background: #f3f5ee; }
.contact-info-card,.contact-form { background: white; border-radius: 7px; }
.contact-text p,.form-note,.form-status { color: #111; }
.contact-form .input,.contact-form .textarea { background: #fbfcf9; border-color: #c6cdbb; color: #111; }
.form-status { background: #e9eedf; }
.footer { background: #f2f4ee; border-top: 1px solid var(--line); }
.footer-logo img { background: transparent; padding: 0; width: 58px; height: 58px; filter: none; }
.footer-logo-text { color: #111; font-family: 'Source Sans Pro',Arial,sans-serif; font-size: 30px; letter-spacing: 2px; font-weight: 700; }
.footer-title,.footer-description,.footer-links a,.footer-contact-item,.footer-bottom { color: #111; }
.footer-contact-item i { color: var(--blue); }
.footer-links a:hover { color: var(--olive-dark); }
.footer-bottom { border-color: #d2d9c6; }
.social-placeholder,.social-links a { color: #111; border-color: #b6c1a3; }
.scroll-top { background: var(--blue); border-color: #a1b4b9; }

@media(max-width:1215px) {
    .slide-copy { padding-left: 36px; padding-right: 28px; }
    .slide-title { font-size: 45px; }
    .carousel-controls { left: 36px; width: calc(50% - 64px); gap: 12px; }
    .mission-layout { gap: 35px; }
}
@media(max-width:1023px) {
    .navbar.is-fixed-top { padding: 9px 0; }
    .navbar > .container { width: calc(100% - 40px); }
    .logo-container img { width: 54px; height: 54px; max-height: 54px; }
    .navbar-menu { background: #fff; max-height: calc(100svh - 95px); overflow-y: auto; }
    .home-carousel,.page-header { margin-top: 73px; }
    .carousel-slide { min-height: 660px; }
    .slide-copy { padding: 50px 24px 110px; }
    .slide-title { font-size: 39px; }
    .slide-copy > p { font-size: 15px; }
    .carousel-controls { left: 24px; width: calc(50% - 48px); gap: 7px; }
    .carousel-arrows { gap: 5px; }
    .carousel-arrows button,.carousel-pause { width: 34px; height: 34px; }
    .carousel-count { font-size: 10px; }
    .service-body { padding: 22px; }
}
@media(max-width:768px) {
    .carousel-slide { grid-template-columns: 1fr; min-height: 0; }
    .slide-copy { min-height: 490px; padding: 40px 22px 85px; }
    .slide-title { font-size: clamp(33px,7.8vw,48px); letter-spacing: -.8px; }
    .slide-copy > p { font-size: 15px; }
    .slide-actions { gap: 14px; }
    .slide-actions .btn-primary { font-size: 12px; padding: 12px 16px; }
    .slide-contact { font-size: 12px; }
    .slide-location { margin-top: 23px; }
    .slide-photo { height: 320px; }
    .slide-photo figcaption { left: 18px; right: 18px; bottom: 18px; font-size: 12px; }
    .carousel-controls { position: relative; bottom: auto; left: auto; width: auto; padding: 18px 22px; gap: 18px; background: #eef1e6; }
    .carousel-arrows button,.carousel-pause { width: 40px; height: 40px; }
    .slide-copy { padding-bottom: 35px; }
    .expertise-ribbon { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: center; padding: 20px; }
    .expertise-ribbon i { display: none; }
    .expertise-ribbon span { font-size: 11px; }
    .mission-layout { grid-template-columns: 1fr; gap: 25px; }
    .home-page .mission-highlight { padding: 50px 0; }
    .mission-title { font-size: 38px; }
    .home-page .about-section { padding: 45px 0; }
    .home-page .about-image { margin: 0 14px 12px 0; }
    .home-page .about-image img { height: 420px; }
    .home-page .about-content { padding: 20px 0 0; }
    .experience-seal { width: 100px; height: 100px; right: -16px; }
    .service-photo { height: 250px; }
    .home-page .gallery-section .columns { grid-template-columns: 1fr; grid-template-rows: 350px 300px 300px; gap: 16px; }
    .home-page .gallery-section .column:first-child { grid-row: auto; }
    .cta-banner { padding: 50px 0; }
    .cta-banner h3 { font-size: 38px; }
    .page-header { min-height: 255px; }
}
@media(prefers-reduced-motion:no-preference) {
    .carousel-slide.is-active .slide-copy { animation: slide-reveal .5s ease both; }
    @keyframes slide-reveal { from { opacity: .4; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
}

/* Logo historique conserve dans son encadre, sans recoloration. */
.logo-container img, .footer-logo img {
    width: 78px;
    height: 62px;
    max-height: 62px;
    padding: 6px 8px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #d7dfc9;
    border-radius: 10px;
    filter: none;
    box-shadow: 0 3px 10px #26351d06;
}

/* Slider panoramique : les trois vues glissent horizontalement. */
.home-carousel { overflow: hidden; touch-action: pan-y; }
.is-slider-ready .carousel-slides { display: flex; align-items: stretch; transition: transform .7s cubic-bezier(.22,.7,.25,1); }
.carousel-slide { position: relative; min-width: 0; min-height: 650px; grid-template-columns: 1fr; isolation: isolate; }
.is-slider-ready .carousel-slide { flex: 0 0 100%; min-width: 100%; }
.slide-photo { position: absolute; inset: 0; height: auto; z-index: -1; }
.slide-photo img { object-position: center 45%; }
.slide-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #1b2b2420, transparent 70%); }
.slide-copy { width: min(600px, 45%); margin: 55px 0 100px max(85px, calc((100vw - 1280px)/2)); padding: 38px; background: #fffffff2; border-top: 5px solid var(--olive); border-radius: 5px; box-shadow: 0 12px 40px #1423141a; align-self: center; }
.slide-title { font-size: clamp(35px, 3.4vw, 52px); }
.slide-copy > p { font-size: 16px; margin-bottom: 24px; }
.slide-actions { gap: 14px; }
.slide-location { margin-top: 24px; }
.slide-photo figcaption { bottom: 35px; left: auto; right: 35px; max-width: 340px; margin: 0; font-size: 12px; z-index: 1; }
.carousel-controls { position: absolute; inset: 0; width: auto; padding: 0; display: block; background: none; pointer-events: none; }
.carousel-controls button { pointer-events: auto; }
.carousel-arrows { display: contents; }
.carousel-arrows button { position: absolute; top: calc(50% - 23px); width: 46px; height: 46px; background: #fffffff2; border-color: #fff; box-shadow: 0 3px 15px #0002; font-size: 24px; }
.carousel-arrows button[data-carousel='previous'] { left: 20px; }
.carousel-arrows button[data-carousel='next'] { right: 20px; }
.carousel-arrows button:hover { background: #e5ebd8; }
.carousel-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); padding: 2px 12px; border-radius: 25px; background: #fffffff2; box-shadow: 0 3px 15px #0001; margin: 0; }
.carousel-dots button { padding: 12px 8px; }
.carousel-count { position: absolute; bottom: 40px; left: max(85px, calc((100vw - 1280px)/2)); background: #fffffff0; border-radius: 20px; padding: 6px 12px; }
.carousel-pause { position: absolute; bottom: 29px; left: calc(50% + 80px); width: 40px; height: 40px; background: #fffffff2; border-color: #fff; }
@media(max-width:1023px) {
    .logo-container img { width: 69px; height: 54px; max-height: 54px; }
    .slide-copy { margin: 40px 0 100px 75px; width: 56%; padding: 28px; }
    .slide-title { font-size: 39px; }
    .slide-photo figcaption { right: 25px; max-width: 210px; }
    .carousel-count { left: 75px; }
}
@media(max-width:768px) {
    .carousel-slide { min-height: 760px; }
    .slide-copy { width: calc(100% - 90px); margin: 30px 45px 175px; padding: 25px 22px; min-height: 0; align-self: start; }
    .slide-title { font-size: clamp(29px, 7vw, 42px); }
    .slide-copy > p { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
    .slide-actions { gap: 10px; }
    .slide-actions .btn-primary { font-size: 11px; padding-inline: 12px; }
    .slide-location { font-size: 10px; margin-top: 20px; }
    .carousel-arrows button { width: 35px; height: 42px; border-radius: 5px; top: calc(45% - 21px); }
    .carousel-arrows button[data-carousel='previous'] { left: 5px; }
    .carousel-arrows button[data-carousel='next'] { right: 5px; }
    .slide-photo figcaption { bottom: 95px; left: 25px; right: 25px; max-width: none; font-size: 11px; }
    .carousel-count { bottom: 29px; left: 20px; font-size: 10px; padding-inline: 8px; }
    .carousel-dots { bottom: 26px; }
    .carousel-pause { bottom: 25px; left: auto; right: 20px; }
}
@media(prefers-reduced-motion:reduce) {
    .is-slider-ready .carousel-slides { transition: none; }
}
