/*style section about*/
.about-img:hover {
    transform: scale(1.07) rotate(-2deg);
    box-shadow: 0 8px 32px rgba(76,175,80,0.18);
}

/*Section Domaines d'Intervention*/
/* spécifique à la section Domaines d'Intervention */
.domains-section .section-title {
    color: #ffffff !important;
}
.domains-section .section-title::before {
    /* ajuster la barre décorative pour mieux contraste */
    background: rgba(255,255,255,0.18);
}
.domains-section .section-detail {
    background: rgba(255,255,255,0.12);
    color: #fff;
    box-shadow: none;
}

/* Cartes : couleur différente (clair) pour contrast avec le fond vert */
.domain-card {
    background: linear-gradient(180deg,#ffffff 0%,#f3fff3 100%) !important;
    color: #114d22; /* texte vert foncé */
    transition: transform .18s, box-shadow .18s;
    border: 1px solid rgba(17,77,34,0.08);
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

/* Titres et paragraphes sur carte claire */
.domain-card h5 {
    color: #133e20;
}
.domain-card p {
    color: #2e5b3a;
}

/* Icône cercle : utiliser ton vert profond pour cohérence */
.domain-icon {
    width:56px;
    height:56px;
    font-size:1.25rem;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background: linear-gradient(180deg,#256029 0%,#388e3c 100%);
    color: #fff;
    box-shadow: 0 6px 18px rgba(37,96,41,0.18);
}

/* Hover */
.domain-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(20,80,30,0.12);
}

/* Responsive tweaks */
@media (min-width: 992px) {
    .domain-card { padding-top: 2.2rem; padding-bottom: 2.2rem; }
}
@media (max-width: 767.98px) {
    .domain-icon { width:48px; height:48px; }
    .domain-card { padding-top: 1rem; padding-bottom: 1rem; }
}


/*Section Section Projet*/
.editorial-section {
    background: linear-gradient(180deg, rgba(255,255,255,0.82) 0%, rgba(236,248,242,0.92) 100%);
}
.home-card-shell {
    height: 100%;
    border-radius: 1.5rem;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #fbfffd 100%);
    border: 1px solid rgba(56, 142, 60, 0.12);
    box-shadow: 0 14px 38px rgba(31, 111, 67, 0.08);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.home-card-shell:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 46px rgba(31, 111, 67, 0.16);
    border-color: rgba(31, 111, 67, 0.22);
}
.home-card-media {
    position: relative;
    overflow: hidden;
}
.home-card-media img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition: transform .3s ease;
}
.home-card-shell:hover .home-card-media img {
    transform: scale(1.06);
}
.home-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: rgba(17, 77, 34, 0.78);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    backdrop-filter: blur(10px);
}
.home-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    padding: 1.35rem;
}
.home-card-meta {
    display: flex;
    align-items: center;
}
.home-card-date {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #5b6c62;
    font-size: 0.88rem;
    font-weight: 600;
}
.home-card-title {
    margin: 0;
    color: #16482b;
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.4;
}
.home-card-copy {
    margin: 0;
    color: #5b6c62;
    font-size: 0.96rem;
    line-height: 1.7;
}
.home-card-footer {
    margin-top: auto;
}
.home-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.72rem 1rem;
    border-radius: 999px;
    background: rgba(31, 111, 67, 0.08);
    color: #1f6f43;
    font-weight: 700;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.home-card-link:hover {
    background: #1f6f43;
    color: #fff;
    transform: translateX(4px);
}
.home-projects-section {
    margin: 1rem 0 2rem;
    border-radius: 2.1rem;
    background: linear-gradient(140deg, #d6e6ee 0%, #e7f1f6 100%);
    border: 1px solid rgba(21, 71, 122, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.projects-grid > [class*="col-"] {
    display: flex;
}
.project-card {
    border-radius: 1.8rem;
    overflow: hidden;
    background: #f7f9fc;
    box-shadow: 0 16px 34px rgba(16, 41, 67, 0.10);
    transition: transform .22s ease, box-shadow .22s ease;
}
.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 44px rgba(16, 41, 67, 0.14);
}
.project-card-media {
    position: relative;
    height: 230px;
    background: #d8e1ea;
}
.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .3s ease;
}
.project-card:hover .project-img {
    transform: scale(1.04);
}
.project-card-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.55rem;
}
.project-card-meta {
    display: flex;
    align-items: center;
}
.project-card-date {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #2a66a3;
    font-size: 1rem;
    font-weight: 700;
}
.project-card-title {
    margin: 0;
    color: #1f3a57;
    font-size: 2.02rem;
    font-weight: 700;
    line-height: 1.32;
    min-height: 2.64em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.project-card-copy {
    margin: 0;
    color: #607487;
    line-height: 1.62;
    font-size: 1.08rem;
    min-height: 4.86em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.project-card-bottom {
    margin-top: auto;
    display: grid;
    gap: 1rem;
}
.project-card-admin {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #5f6d7d;
    font-weight: 700;
    font-size: 1.08rem;
}
.project-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: fit-content;
    padding: 0.82rem 1.6rem;
    border-radius: 999px;
    background: #193a5b;
    color: #fff;
    font-weight: 700;
    font-size: 1.02rem;
    text-decoration: none;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.project-btn:hover {
    background: #102d49;
    color: #fff;
    box-shadow: 0 10px 20px rgba(16, 45, 73, 0.24);
    transform: translateY(-1px);
}
.partners-showcase-section {
    background: linear-gradient(180deg,#edf7f0 0%,#f8fbf9 100%);
}
.partner-grid-panel {
    padding: 1.4rem;
    border-radius: 2rem;
    background: rgba(255,255,255,0.62);
    border: 1px solid rgba(56, 142, 60, 0.12);
    box-shadow: 0 14px 34px rgba(31, 111, 67, 0.07);
}
.partner-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    padding: 1.3rem 1rem;
    border-radius: 1.35rem;
    background: linear-gradient(180deg,#ffffff 0%,#fbfffd 100%);
    border: 1px solid rgba(17,77,34,0.08);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    transition: transform .22s ease, box-shadow .22s ease;
}
.partner-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(31, 111, 67, 0.12);
}
.partner-img-simple {
    transition: transform .22s;
    object-fit: contain;
    filter: drop-shadow(0 2px 12px rgba(76,175,80,0.10));
    max-height: 84px;
    max-width: 100%;
}
.partner-card:hover .partner-img-simple {
    transform: scale(1.08);
    filter: drop-shadow(0 8px 32px rgba(76,175,80,0.18));
}
.partner-label {
    text-align: center;
    color: #33536b;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.4;
}

/** galerie photos */
.home-gallery-section {
    background: linear-gradient(180deg, rgba(255,255,255,0.88) 0%, rgba(239,247,242,0.9) 100%);
}
.home-gallery-detail {
    color: #145236;
    background: rgba(231,155,47,0.22);
    border: 1px solid rgba(231,155,47,0.34);
}
.home-gallery-shell {
    padding: 1rem;
    border-radius: 1.35rem;
    border: 1px solid rgba(31,111,67,0.12);
    background: rgba(255,255,255,0.7);
    box-shadow: 0 14px 34px rgba(31,111,67,0.08);
}
.home-gallery-card {
    position: relative;
    display: flex;
    width: 100%;
    height: 280px;
    border-radius: 1.2rem;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: 0 10px 30px rgba(15,23,42,0.15);
    isolation: isolate;
}
.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.home-gallery-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 0.95rem 0.9rem 0.85rem;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(8,19,15,0.72) 68%, rgba(8,19,15,0.84) 100%);
    color: #f8fffb;
}
.home-gallery-counter {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.45rem;
    padding: 0.26rem 0.62rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(231,155,47,0.92);
    color: #17324d;
}
.home-gallery-caption {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.45;
    color: rgba(248,255,251,0.94);
}
.home-gallery-card:hover .gallery-img {
    transform: scale(1.06);
}

#gallery-owl .owl-nav {
    margin-top: 0.9rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.45rem;
}
#gallery-owl .owl-stage {
    display: flex;
    align-items: stretch;
}
#gallery-owl .owl-item {
    display: flex;
    height: auto;
}
#gallery-owl .item {
    display: flex;
    width: 100%;
}
#gallery-owl .owl-nav button.owl-prev,
#gallery-owl .owl-nav button.owl-next {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(31,111,67,0.16) !important;
    background: rgba(255,255,255,0.92) !important;
    color: #145236 !important;
    font-size: 1rem !important;
    line-height: 1 !important;
    transition: transform .18s ease, background .18s ease, color .18s ease;
}
#gallery-owl .owl-nav button.owl-prev:hover,
#gallery-owl .owl-nav button.owl-next:hover {
    background: #1f6f43 !important;
    color: #fff !important;
    transform: translateY(-1px);
}
#gallery-owl .owl-dots {
    margin-top: 0.5rem;
}
#gallery-owl .owl-dot span {
    background: rgba(31,111,67,0.28) !important;
}
#gallery-owl .owl-dot.active span {
    background: #e79b2f !important;
}

.home-gallery-more {
    border: none;
    background: linear-gradient(120deg,#1f6f43 0%, #2f8b54 70%, #e79b2f 100%);
}
.home-gallery-more:hover {
    filter: brightness(1.05);
}

/** Section all */

body {
    background: linear-gradient(120deg, #f1f8e9 0%, #e3f2fd 100%);
}
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #388e3c;
    text-align: left;
    position: relative;
    margin-bottom: 2rem;
    padding-left: 1.2rem;
    letter-spacing: 1px;
}
.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 7px;
    height: 2.2rem;
    background: linear-gradient(180deg,#43a047 0%,#81c784 100%);
    border-radius: 8px;
}
.section-detail {
    font-size: 1.05rem;
    color: #1976d2;
    background: #e3f2fd;
    padding: 0.25em 1em;
    border-radius: 1em;
    font-weight: 500;
    margin-left: 1rem;
    white-space: nowrap;
}
@media (max-width: 767.98px) {
  .section-title {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.4rem !important;
    display: flex !important;
    font-size: 1.15rem !important;
    padding-left: 0 !important;
    margin-bottom: 1.2rem !important;
    text-align: center !important;
  }
  .section-title::before {
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    margin-left: 0;
    height: 1.1rem;
  }
  .section-detail {
    margin-left: 0 !important;
    font-size: 0.98rem !important;
    padding: 0.18em 0.7em !important;
    white-space: normal !important;
    text-align: center !important;
  }
}
@media (max-width: 767.98px) {
  .section-title,
  .section-detail {
    text-align: center !important;
    justify-content: center !important;
    margin-bottom: 1.2rem !important;
    padding-left: 0 !important;
  }
  .section-title::before {
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    margin-left: 0;
  }
  .lead,
  .card-title,
  .card-text {
    font-size: 0.98rem !important;
    word-break: break-word;
  }
  .bg-white {
    max-width: 100% !important;
  }
  .home-card-shell,
  .project-card,
  .partner-card {
    border-radius: 1rem !important;
    max-width: 100% !important;
  }
  .btn {
    width: 100% !important;
    margin-bottom: 0.8rem !important;
  }
}
@media (max-width: 767.98px) {
  .home-gallery-card { height: 230px !important; }
  .partner-img-simple { max-height: 80px !important; }
  .project-img,
  .home-card-media img { height: 200px !important; }
  .about-img { max-width: 140px !important; }
  .card { margin-bottom: 1.2rem; }
  .btn { width: 100%; margin-bottom: 0.8rem; }
  .home-card-body,
  .project-card-body,
  .partner-grid-panel {
    padding: 1rem !important;
  }
  .project-card-bottom {
    gap: 0.8rem;
  }
  .home-card-link,
  .project-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Optionnel: augmenter encore pour très petits écrans */
@media (max-width: 480px) {
  .home-gallery-card { height: 205px !important; }
}
@media (max-width: 767.98px) {
    .section-title { font-size: 1.3rem; padding-left: 0.8rem; }
    .section-title::before { height: 1.3rem; }
    .section-detail {
        font-size: 0.95rem;
        padding: 0.18em 0.7em;
        margin-left: 0.5rem;
    } 
}
@media (max-width: 767.98px) {
  .partner-img-simple {
    max-height: 80px !important;
  }
  .partner-card {
    padding: 1rem 0.85rem !important;
  }
}
@media (max-width: 767.98px) {
  .section-title::before {
    display: none !important;
  }
}

/* Small UX polish: smooth native scrolling */
html { scroll-behavior: smooth; }

/* Optional: reduce flicker on resize */
[data-aos] { will-change: transform, opacity; }



/* Styles projet (archive style) */
.archive-projects-wrap {
    border-radius: 1.4rem;
    background: linear-gradient(150deg, #d9e9f1 0%, #e8f2f7 100%);
    border: 1px solid rgba(20, 54, 87, 0.09);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}
.archive-projects-grid > [class*="col-"] { display: flex; }
.archive-project-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 1.9rem;
    overflow: hidden;
    background: #f8fbff;
    box-shadow: 0 14px 30px rgba(16, 41, 67, 0.10);
    transition: transform .2s ease, box-shadow .2s ease;
}
.archive-project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 40px rgba(16, 41, 67, 0.14);
}
.archive-project-media { height: 240px; overflow: hidden; background: #dbe5ef; }
.archive-project-image { width:100%; height:100%; object-fit:cover; object-position:center; display:block; }
.archive-project-content { display:flex; flex-direction:column; gap:1rem; padding:1.55rem 1.5rem 1.6rem; flex:1; }
.archive-project-date { display:inline-flex; align-items:center; gap:0.45rem; color:#2b66a2; font-size:1.02rem; font-weight:700; }
.archive-project-title { margin:0; color:#1f3a57; font-size:2rem; font-weight:700; line-height:1.3; min-height:2.6em; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.archive-project-excerpt { margin:0; color:#5d7186; font-size:1.08rem; line-height:1.6; min-height:4.8em; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.archive-project-admin { display:inline-flex; align-items:center; gap:0.5rem; color:#5f6d7c; font-size:1.08rem; font-weight:700; }
.archive-project-btn { margin-top:auto; display:inline-flex; align-items:center; justify-content:center; gap:0.55rem; width:fit-content; padding:0.8rem 1.55rem; border-radius:999px; background:#193a5b; color:#fff; font-size:1.02rem; font-weight:700; text-decoration:none; transition:background .18s ease, transform .18s ease, box-shadow .18s ease; }
.archive-project-btn:hover { background:#102d49; color:#fff; transform:translateY(-1px); box-shadow:0 10px 18px rgba(16,45,73,0.24); }

@media (max-width: 991.98px) {
    .archive-project-media { height:200px; }
    .archive-project-title { font-size:1.55rem; min-height:auto; }
    .archive-project-excerpt { font-size:1rem; min-height:auto; }
}
