/* =========================================================
   Athmosfeeric - nouveau look (novembre 2026)
   Charge apres style.css. Couleurs reprises du logo.
   ========================================================= */
:root {
    --teal: #36b5ac;
    --teal-dark: #2a948c;
    --green: #90c03d;
    --ink: #14222e;
    --muted: #5f6b76;
    --soft: #f3f8f7;
    --radius: 18px;
    --shadow: 0 10px 35px rgba(20, 34, 46, .08);
    --shadow-hover: 0 18px 45px rgba(20, 34, 46, .14);
    --gradient: linear-gradient(135deg, var(--teal) 0%, var(--green) 100%);
}

html { scroll-behavior: smooth; }

body {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.75;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-4, .display-5, .display-6,
.navbar, .btn, .section-title {
    font-family: "Montserrat", "Open Sans", sans-serif;
}

h1, h2, h3, h4, h5, h6, .display-5, .display-6 {
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -.01em;
}

.display-6 { font-size: calc(1.4rem + 1.3vw); line-height: 1.2; }
@media (min-width: 1200px) { .display-6 { font-size: 2.4rem; } }

a { transition: color .25s; }

/* ---------- Boutons ---------- */
.btn { border-radius: 50px; font-weight: 600; letter-spacing: .02em; }

.btn-primary {
    background: var(--gradient);
    border: 0;
    box-shadow: 0 8px 22px rgba(54, 181, 172, .35);
}
.btn-primary:hover,
.btn-primary:focus {
    background: var(--gradient);
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(54, 181, 172, .45);
}

.btn-outline-light-hero {
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .85);
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(4px);
}
.btn-outline-light-hero:hover { color: var(--ink); background: #fff; }

/* ---------- En-tete & menu ---------- */
.top-bar .btn-lg-square {
    background: var(--soft);
    border: 0 !important;
}
.top-bar p { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }

.navbar.bg-primary {
    background: var(--gradient) !important;
    box-shadow: 0 6px 24px rgba(20, 34, 46, .12);
}
.navbar .navbar-nav .nav-link {
    position: relative;
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .02em;
}
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active { color: #fff; }
@media (min-width: 992px) {
    .navbar .navbar-nav .nav-link::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 14px;
        width: 0;
        height: 2px;
        background: #fff;
        border-radius: 2px;
        transition: width .3s;
    }
    .navbar .navbar-nav .nav-link:hover::after,
    .navbar .navbar-nav .nav-link.active::after { width: 100%; }
}
.navbar .btn-light { color: var(--teal-dark); font-weight: 700; }

/* ---------- Grande image d'accueil ---------- */
#header-carousel .carousel-item { height: min(86vh, 760px); min-height: 520px; }
#header-carousel .carousel-item > img {
    height: 100%;
    object-fit: cover;
    animation: hero-zoom 14s ease-out both;
}
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }

#header-carousel .carousel-caption {
    background:
        linear-gradient(180deg, rgba(10, 22, 30, .5) 0%, rgba(10, 22, 30, .62) 55%, rgba(10, 22, 30, .88) 100%);
    padding-bottom: 70px;
}
#header-carousel .carousel-caption h4 {
    display: inline-block;
    padding: .45rem 1.2rem;
    font-size: .85rem;
    letter-spacing: .25em;
    border-radius: 50px;
    background: rgba(144, 192, 61, .9);
    margin-bottom: 1.5rem !important;
}
#header-carousel .carousel-caption .display-1 {
    font-weight: 800;
    font-size: calc(2.2rem + 3.6vw);
    line-height: 1.05;
    text-shadow: 0 6px 30px rgba(0, 0, 0, .35);
}
@media (min-width: 1200px) { #header-carousel .carousel-caption .display-1 { font-size: 5.2rem; } }
#header-carousel .hero-sub {
    color: rgba(255, 255, 255, .9);
    font-size: 1.15rem;
    max-width: 620px;
    margin: 1.4rem auto 2rem;
}
#header-carousel .carousel-indicators [data-bs-target] {
    width: 54px;
    height: 54px;
    opacity: .7;
    transition: opacity .3s, transform .3s;
}
#header-carousel .carousel-indicators .active { opacity: 1; transform: scale(1.12); border-color: var(--green); }

/* Pages interieures */
.page-header {
    background:
        linear-gradient(135deg, rgba(20, 34, 46, .82) 0%, rgba(42, 148, 140, .7) 100%),
        url(../img/carousel-1.jpg) center center / cover no-repeat;
    padding-top: 7rem !important;
    padding-bottom: 7rem !important;
}
.page-header .display-4 { font-weight: 800; }

/* ---------- Titres de section ---------- */
.section-title {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .22em;
    color: var(--teal) !important;
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 1rem;
}
.section-title::after { display: none; }
.section-title::before {
    position: static;
    display: inline-block;
    width: 34px;
    height: 3px;
    margin-right: 12px;
    vertical-align: middle;
    border-radius: 3px;
    background: var(--gradient);
}
.text-center > .section-title::after,
.section-title.text-center::after {
    display: inline-block;
    content: "";
    position: static;
    width: 34px;
    height: 3px;
    margin-left: 12px;
    vertical-align: middle;
    border-radius: 3px;
    background: var(--gradient);
}

.container-xxl.py-5 { padding-top: 5.5rem !important; padding-bottom: 5.5rem !important; }

/* ---------- Chiffres cles ---------- */
.fact-item {
    background: #fff !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow);
    border-bottom: 4px solid transparent;
    border-image: var(--gradient) 1;
    border-image-slice: 0 0 1 0;
    transition: transform .35s, box-shadow .35s;
}
.fact-item:hover { margin-top: 0; transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.fact-item i { font-size: 2.6rem !important; color: var(--teal) !important; }
.fact-item h5 { font-size: .85rem; letter-spacing: .12em; color: var(--muted); }
.fact-item .display-5 {
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Photos encadrees ---------- */
.img-border::before {
    border: 0;
    border-radius: var(--radius);
    background: var(--gradient);
    opacity: .9;
}
.img-border img { border-radius: var(--radius); box-shadow: var(--shadow-hover); }

/* ---------- Cartes services ---------- */
.service-item {
    position: relative;
    background: #fff;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow);
    padding: 2.5rem 2rem !important;
    overflow: hidden;
    transition: transform .35s, box-shadow .35s;
}
.service-item::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s;
}
.service-item:hover { margin-top: 0; transform: translateY(-8px); border-color: transparent; box-shadow: var(--shadow-hover); }
.service-item:hover::before { transform: scaleX(1); }
.service-item > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    font-size: 38px !important;
    border-radius: 24px;
    background: var(--soft);
    transition: transform .35s;
}
.service-item:hover > i { transform: rotate(-6deg) scale(1.06); }
.service-item h4 { font-size: 1.15rem; margin: 1.4rem 0 .8rem !important; }
.service-item p { color: var(--muted); margin-bottom: 0; }

/* ---------- Liste "Pourquoi nous choisir" ---------- */
.fa-check-circle.text-primary { color: var(--green) !important; }

/* ---------- Realisations ---------- */
.project-item {
    background: #fff;
    border: 0 !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow);
    margin: 10px 6px 20px;
}
.project-item > div:first-child {
    height: 150px !important;
    margin: 0 auto 1.5rem !important;
    width: 150px;
    border-radius: 50%;
    background: var(--soft);
}
.project-item > div:first-child i { font-size: 3.5rem; }
.project-item h6 { font-size: 1.05rem; color: var(--ink); }
.project-carousel .owl-dot { font-family: "Montserrat", sans-serif; font-weight: 600; }

/* ---------- Galerie ---------- */
.gallery-item { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.gallery-item img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 0 !important;
    transition: transform .6s;
}
.gallery-item a {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 34, 46, 0) 30%, rgba(20, 34, 46, .75) 100%);
    opacity: 0;
    transition: opacity .4s;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover a { opacity: 1; }

/* ---------- Logos clients ---------- */
.client-logo-wrapper {
    background: #fff;
    border-radius: 14px;
    height: 120px;
    padding: 1rem;
    box-shadow: 0 4px 18px rgba(20, 34, 46, .05);
}
.client-logo { filter: grayscale(100%); opacity: .9; transition: filter .3s, opacity .3s; }
.client-logo-wrapper:hover .client-logo { filter: none; opacity: 1; }
.bg-light { background: var(--soft) !important; }
.container-xxl h5.mb-4 {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--teal-dark);
    text-align: center;
}

/* ---------- Formulaire ---------- */
.form-control { border-radius: 12px; border-color: #dde5e8; }
.form-control:focus { border-color: var(--teal); box-shadow: 0 0 0 .2rem rgba(54, 181, 172, .2); }

/* ---------- Pied de page ---------- */
.footer.bg-dark {
    background: var(--ink) !important;
    position: relative;
    margin-top: 4rem !important;
}
.footer.bg-dark::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient);
}
.footer h5 { color: #fff !important; font-size: 1rem; letter-spacing: .05em; }
.footer p, .footer .btn.btn-link, .footer .text-body { color: rgba(255, 255, 255, .7) !important; }
.footer .btn.btn-link:hover, .footer a.text-body:hover { color: var(--green) !important; }
.footer .col-4 img { aspect-ratio: 1; object-fit: cover; }

/* ---------- Boutons flottants ---------- */
.back-to-top { background: var(--ink) !important; border: 0; }

/* ---------- Mobile ---------- */
@media (max-width: 767.98px) {
    #header-carousel .carousel-item { height: 78vh; min-height: 480px; }
    #header-carousel .carousel-item img { position: static; }
    #header-carousel .carousel-indicators,
    #header-carousel .carousel-control-prev,
    #header-carousel .carousel-control-next { display: none; }
    #header-carousel .carousel-caption .p-3 { padding: 0 1.25rem !important; }
    #header-carousel .hero-sub { font-size: 1rem; }
    .container-xxl.py-5 { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
    .img-border { min-height: 320px; }
}

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

/* ---------- Selecteur de langue ---------- */
.lang-switch { display: flex; align-items: center; gap: 4px; margin: 0 1rem; }
.lang-switch a {
    color: #fff;
    font-family: "Montserrat", "Tajawal", sans-serif;
    font-weight: 700;
    font-size: .8rem;
    line-height: 1;
    padding: .45rem .6rem;
    border-radius: 50px;
    opacity: .85;
    transition: background .25s, opacity .25s;
}
.lang-switch a:hover { opacity: 1; background: rgba(255, 255, 255, .18); }
.lang-switch a.active { background: #fff; color: var(--teal-dark); opacity: 1; }
.lang-switch a[lang="ar"] { font-family: "Tajawal", sans-serif; font-size: .95rem; }
@media (max-width: 991.98px) { .lang-switch { margin: 0 0 1rem 1rem; } }
.footer .legal { color: rgba(255, 255, 255, .45); font-size: .8rem; }

/* ---------- Arabe (droite a gauche) ---------- */
[dir="rtl"] body,
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6,
[dir="rtl"] .display-1, [dir="rtl"] .display-4, [dir="rtl"] .display-5, [dir="rtl"] .display-6,
[dir="rtl"] .navbar, [dir="rtl"] .btn, [dir="rtl"] .section-title, [dir="rtl"] p, [dir="rtl"] a, [dir="rtl"] label {
    font-family: "Tajawal", "Montserrat", sans-serif;
}
/* L'espacement des lettres casse la liaison des lettres arabes */
[dir="rtl"] *, [dir="rtl"] *::before, [dir="rtl"] *::after { letter-spacing: 0 !important; }
[dir="rtl"] .text-uppercase, [dir="rtl"] .section-title, [dir="rtl"] .top-bar p { text-transform: none !important; }
[dir="rtl"] body { line-height: 1.9; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] .display-1, [dir="rtl"] .display-6 { line-height: 1.35; }
[dir="rtl"] .section-title { font-size: .95rem; }
[dir="rtl"] .section-title::before { margin-right: 0; margin-left: 12px; }
[dir="rtl"] .text-center > .section-title::after,
[dir="rtl"] .section-title.text-center::after { margin-left: 0; margin-right: 12px; }
[dir="rtl"] .navbar .navbar-nav .nav-link { margin-right: 0; margin-left: 30px; }
[dir="rtl"] .navbar .navbar-nav .nav-link::after { left: auto; right: 0; }
[dir="rtl"] .img-border::before { right: 0; left: 3rem; }
[dir="rtl"] .img-border img { left: auto; right: 3rem; }
[dir="rtl"] .service-item::before { transform-origin: right; }
[dir="rtl"] .footer .btn.btn-link { text-align: right; }
[dir="rtl"] .footer .btn.btn-link::before { content: "\f104"; margin-right: 0; margin-left: 10px; }
[dir="rtl"] .footer .btn.btn-link:hover { letter-spacing: 0; }
[dir="rtl"] .lang-switch { direction: ltr; }
[dir="rtl"] .top-bar h6 a, [dir="rtl"] a[href^="tel:"], [dir="rtl"] a[href^="mailto:"] { direction: ltr; unicode-bidi: embed; }
@media (max-width: 991.98px) {
    [dir="rtl"] .navbar .navbar-nav .nav-link { margin-left: 0; }
    [dir="rtl"] .lang-switch { margin: 0 1rem 1rem 0; justify-content: flex-end; }
}
/* Bootstrap RTL (CDN) utilise le bleu par defaut : on remet les couleurs de la marque */
[dir="rtl"] a { color: var(--teal); }
[dir="rtl"] .text-primary { color: var(--teal) !important; }
[dir="rtl"] .bg-primary { background-color: var(--teal) !important; }
[dir="rtl"] .border-primary { border-color: var(--teal) !important; }
[dir="rtl"] .progress-bar { background-color: var(--teal); }
[dir="rtl"] .btn-light { color: var(--teal-dark); }
[dir="rtl"] .navbar-dark .navbar-nav .nav-link, [dir="rtl"] .lang-switch a:not(.active) { color: #fff; }
[dir="rtl"] .footer .text-primary, [dir="rtl"] .footer .copyright a { color: var(--green) !important; }
[dir="rtl"] .breadcrumb-item a { color: #fff; }
/* ---------- Photos "En images" ---------- */
.photo-card { position: relative; display: block; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.photo-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s; }
.photo-card .photo-caption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 2.2rem 1.2rem .9rem;
    color: #fff; font-weight: 600; font-size: .98rem;
    background: linear-gradient(180deg, rgba(20, 34, 46, 0) 0%, rgba(20, 34, 46, .82) 100%);
}
.photo-card:hover img { transform: scale(1.06); }

/* ---------- Evenements a l'international ---------- */
.intl-item {
    display: flex; align-items: center; gap: 1rem; height: 100%;
    padding: 1.1rem 1.3rem; background: #fff;
    border-radius: 14px; box-shadow: var(--shadow);
    border-inline-start: 4px solid var(--teal);
    transition: transform .3s, box-shadow .3s;
}
.intl-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.intl-item i { font-size: 1.6rem; color: var(--green); flex-shrink: 0; }
.intl-item h5 { margin: 0 0 .15rem; font-size: 1.02rem; }
.intl-item span { color: var(--muted); font-size: .92rem; }
/* ---------- Corrections version arabe ---------- */
/* Bootstrap RTL souligne les liens : on garde le style du site */
[dir="rtl"] a, [dir="rtl"] a:hover, [dir="rtl"] a:focus { text-decoration: none; }
[dir="rtl"] .service-item, [dir="rtl"] .service-item p { color: var(--muted); }
[dir="rtl"] .service-item h4 { color: var(--ink); }
[dir="rtl"] .container-xxl p > a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }
[dir="rtl"] .breadcrumb-item.active { color: var(--green); }
/* Texte du pied de page lisible (le conteneur porte la classe text-body) */
.footer.text-body, .footer .copyright { color: rgba(255, 255, 255, .7) !important; }
/* ---------- En-tete : coordonnees sans chevauchement (copie dans theme.css) ---------- */
.top-bar .col-lg-8 > .row { justify-content: flex-end; row-gap: .75rem; flex-wrap: wrap; }
.top-bar .col-lg-8 > .row > .col-4 { flex: 0 0 auto; width: auto; max-width: none; }
.top-bar h6 { white-space: nowrap; }
@media (max-width: 1199.98px) { .top-bar .col-lg-8 > .row > .col-4:first-child { display: none; } }