/* ============================================================
   VARIABLES & BASE
   ============================================================ */
body {
    --heading-font: "Playfair Display", Georgia, serif;
    --heading-font-weight: 700;
    --heading-color: var(--bs-dark);
    --heading-line-height: 1.24;
    --swiper-theme-color: var(--bs-primary);
    --custom-easing: cubic-bezier(.17, .67, .83, .67);

    --bs-body-font-family: "Mulish", Roboto, sans-serif;
    --bs-body-font-size: 1rem;
    --bs-body-font-weight: 400;
    --bs-body-line-height: 1.7;
    --bs-body-color: #8f8f8f;
    --bs-body-color-rgb: 143, 143, 143;

    --bs-primary: #83A9AC;
    --bs-primary-dark: #5b878a;
    --bs-secondary: #EEF7F9;
    --bs-black: #111;
    --bs-light: #F1F1F0;
    --bs-dark: #095eb4;
    --bs-gray: #9aa1a7;
    --bs-gray-dark: #51565b;

    --bs-primary-rgb: 140, 144, 126;
    --bs-secondary-rgb: 238, 247, 249;
    --bs-black-rgb: 17, 17, 17;
    --bs-light-rgb: 241, 241, 240;
    --bs-dark-rgb: 33, 37, 41;

    --bs-link-color: var(--bs-dark);
    --bs-link-color-rgb: 17, 17, 17;
    --bs-link-decoration: none;
    --bs-link-hover-color: var(--bs-primary);
    --bs-link-hover-color-rgb: 17, 17, 17;

    margin: 0;
}

html, body {
    height: 100%;
    margin: 0;
}

/* ============================================================
   TYPOGRAPHIE
   ============================================================ */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6,
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
    font-family: var(--heading-font);
    font-weight: var(--heading-font-weight);
    color: var(--heading-color);
    line-height: var(--heading-line-height);
}

.display-1 {
    font-size: 40px;
    font-weight: var(--heading-font-weight);
    line-height: var(--heading-line-height);
    color: var(--heading-color);
}

@media (max-width: 768px) {
    .display-1 { font-size: 2rem; }
}

h1.display-1 {
    font-family: "Arial", sans-serif;
}

h4 {
    text-transform: none !important;
}

h4::first-letter {
    text-transform: uppercase;
}

h4.py-3 {
    font-size: 12px;
    font-family: "Arial", sans-serif;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #938e8e;
}

.poiret-one-regular {
    font-family: "Poiret One", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.logo-title {
    font-family: "Poiret One", sans-serif;
    font-size: 3.1rem;
    font-weight: 450;
    color: #777575;
    text-align: center;
    letter-spacing: 1px;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* ============================================================
   LIENS
   ============================================================ */
a {
    text-decoration: none;
    transition: all 0.3s ease-out;
}

a:hover {
    text-decoration: none;
}

/* ============================================================
   BOOTSTRAP OVERRIDES
   ============================================================ */
.container-fluid {
    max-width: 1800px;
}

.dropdown-menu {
    --bs-dropdown-border-radius: 0;
    --bs-dropdown-border-width: 0;
}

.dropdown-item {
    --bs-dropdown-item-padding-y: 0.25rem;
    --bs-dropdown-item-padding-x: 1rem;
    --bs-dropdown-link-color: var(--bs-black);
    --bs-dropdown-item-border-radius: 0;
}

.dropdown-item.active,
.dropdown-item:active {
    --bs-dropdown-link-active-color: var(--bs-light);
    --bs-dropdown-link-active-bg: var(--bs-black);
}

.list-group-item {
    --bs-list-group-item-padding-x: 0;
    --bs-list-group-border-width: 0;
}

.btn {
    --bs-btn-border-radius: 0;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--bs-primary-dark);
    --bs-btn-hover-border-color: var(--bs-primary-dark);
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--bs-secondary);
    --bs-btn-active-border-color: var(--bs-secondary);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--bs-primary);
    --bs-btn-disabled-border-color: var(--bs-primary);
}

.btn-wrapper {
    height: 8vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination {
    --bs-pagination-active-bg: var(--bs-black);
    --bs-pagination-border-width: 0;
    --bs-pagination-border-radius: 0;
}

.breadcrumb {
    --bs-breadcrumb-item-padding-x: 1em;
}

.form-control:focus {
    border-color: #ccc;
    box-shadow: 0 0 0 0.25rem rgba(200, 200, 200, .25);
}

/* ============================================================
   DARK MODE
   ============================================================ */
[data-bs-theme=dark] {
    color-scheme: dark;
    --heading-color: #fff;
    --bs-link-color: #CCCCCC;
    --bs-link-hover-color: var(--bs-primary);
    --bs-link-color-rgb: 204, 204, 204;
    --bs-link-hover-color-rgb: 131, 169, 172;
    --bs-body-color: #d1d1d1;
    --bs-body-bg: #111111;
    --bs-body-bg-rgb: 17, 17, 41;
}

[data-bs-theme=dark] .dropdown-item {
    --bs-dropdown-link-color: var(--bs-light);
    --bs-dropdown-link-hover-color: var(--bs-white);
}

[data-bs-theme=dark] .bg-white,
[data-bs-theme=dark] .bg-light {
    --bs-bg-opacity: 0.1;
}

/* ============================================================
   HEADER & NAVBAR
   ============================================================ */
header {
    position: relative;
    z-index: 1000;
    transition: background-color 0.3s ease-out;
}

#header .navbar {
    width: 100%;
    padding: 20px 15px;
    font-family: "Helvetica", Arial, sans-serif;
    font-weight: 100;
    font-size: 1.05rem;
    color: #111;
}

/* Conteneur principal de la navbar */
.nav-center {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* Logo */
.navbar-brand {
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    display: block;
    max-height: 55px;
    width: auto;
}

/* Bouton burger */
.navbar-toggler {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
    margin: 0;
    cursor: pointer;
}

/* Icône burger (3 traits) */
.burger-icon {
    position: relative;
    display: inline-block;
    width: 22px;
    height: 2px;
    background: #111;
    transition: background-color 0.25s ease;
}

.burger-icon::before,
.burger-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: #111;
    transition: transform 0.25s ease, top 0.25s ease;
}

.burger-icon::before { top: -7px; }
.burger-icon::after  { top:  7px; }

/* Animation burger → croix quand menu ouvert */
.navbar-toggler[aria-expanded="true"] .burger-icon {
    background-color: transparent;
}

.navbar-toggler[aria-expanded="true"] .burger-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .burger-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ============================================================
   MENU — BUREAU (≥ 992px)
   ============================================================ */
@media (min-width: 992px) {
    #mainMenu {
        display: flex !important;
        flex-grow: 0;
        position: static;
        background: transparent;
        box-shadow: none;
        padding: 0;
        margin: 0;
    }

    #mainMenu .navbar-nav {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    #mainMenu .nav-link {
        color: #111;
        padding: 0.25rem 0.5rem;
        transition: color 0.25s ease;
    }

    #mainMenu .nav-link:hover {
        color: #095eb4;
        text-decoration: none;
    }
}

/* ============================================================
   MENU — MOBILE (≤ 991px)
   ============================================================ */
@media (max-width: 991px) {
    /* Menu déroulant positionné sous le burger */
    #mainMenu {
        position: absolute;
        top: 100%;
        right: 15px;
        left: auto;
        width: min(320px, calc(100vw - 30px));
        background: #fff;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
        border-radius: 12px;
        padding: 0.75rem 1rem;
        margin-top: 8px;
        z-index: 1040;
    }

    #mainMenu .navbar-nav {
        flex-direction: column;
        gap: 0;
    }

    #mainMenu .nav-link {
        display: block;
        padding: 0.6rem 0.75rem;
        color: #111;
        border-radius: 8px;
        transition: background-color 0.2s ease, color 0.2s ease;
        text-decoration: none;
    }

    #mainMenu .nav-link:hover {
        color: #095eb4;
        text-decoration: none;
    }

    #mainMenu .dropdown-item:hover {
        text-decoration: none;
    }
}

/* ============================================================
   SECTIONS TITRES
   ============================================================ */
.section-title,
.widget-title {
    position: relative;
    margin-bottom: 55px;
}

.section-title:after,
.widget-title:after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 0;
    border-bottom: 1px solid #000;
    width: 40px;
}

#footer .widget-title:after {
    display: none;
}

.text-center .section-title:after {
    left: calc(50% - 20px);
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
#filters a {
    color: var(--bs-gray);
    text-decoration: none;
}

#filters a.is-checked {
    color: var(--bs-dark);
}

.button-group {
    flex-wrap: wrap;
    gap: 10px;
}

.button-group a {
    padding: 2px 24px;
    text-decoration: none;
    border: 2px solid #333;
    border-radius: 30px;
    font-weight: 100;
    transition: all 0.3s;
    color: #333;
}

.button-group a:hover,
.button-group a.is-checked {
    background: #333;
    color: white !important;
    text-decoration: none;
}

#portfolio-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

#portfolio-grid .isotope-item {
    float: left;
    width: 20%;
    padding: 0 7.5px 30px;
    box-sizing: border-box;
}

#portfolio-grid .isotope-item a {
    display: block;
}

#portfolio-grid .isotope-item img {
    width: 100%;
    height: auto;
    transition: opacity 0.3s ease-out;
}

#portfolio-grid .isotope-item:hover img {
    opacity: 0.4;
}

#portfolio-grid .isotope-hidden {
    visibility: hidden;
}

@media (max-width: 991px) {
    #portfolio-grid .isotope-item { width: 33.333%; }
}

@media (max-width: 767px) {
    #portfolio-grid .isotope-item { width: 50%; }
}

@media (max-width: 576px) {
    #portfolio-grid .isotope-item { width: 100%; }
}

/* ============================================================
   BILLBOARD
   ============================================================ */
#billboard .text-content {
    position: absolute;
    left: calc(-40vw / 2);
    top: 25vh;
    max-width: 520px;
    z-index: 2;
}

@media screen and (max-width: 767px) {
    #billboard .text-content {
        position: relative;
        left: 0;
        top: 0;
        margin-top: 130px;
        margin-bottom: 40px;
    }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
    margin-top: 200px;
}

.contact-image {
    margin-bottom: 0;
    margin-top: -200px;
    text-align: right;
}

@media screen and (max-width: 767px) {
    .contact-detail { overflow: hidden; }
    .contact-image { margin-top: 0; }
}

@media (max-width: 768px) {
    .contact-section { padding-top: 120px; }
}

/* ============================================================
   PUBLICATION BOX
   ============================================================ */
.publication-box {
    padding: 15px 0;
    border-top: 1px solid #111112;
    text-transform: capitalize;
}

.publication-box h5 {
    font-weight: 600;
    text-transform: lowercase;
    letter-spacing: 1px;
}

.publication-box a {
    text-decoration: none;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    color: #5c5b59;
    font-weight: 500;
}

.publication-box a:hover {
    text-decoration: underline;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

footer a {
    color: #555;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

#footer {
    background: none;
    text-align: center;
    padding: 40px 20px 20px;
    font-size: 0.9rem;
}

#footer .footer-menu {
    margin-bottom: 25px;
    text-align: left;
}

#footer .footer-menu ul {
    margin-top: 0 !important;
}

#footer .widget-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #095eb4;
    text-align: left !important;
}

#footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left !important;
}

#footer ul li {
    margin-bottom: 8px;
    color: #666;
}

#footer ul li a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

#footer ul li a:hover {
    color: #095eb4;
}

#footer p {
    color: #666;
    margin: 0 0 10px;
    text-align: left !important;
}

#footer .social-links ul {
    display: flex;
    gap: 15px;
    padding-left: 0;
}

#footer .social-links ul li a i {
    font-size: 1.5rem;
    color: #666;
    transition: color 0.3s ease;
}

#footer .social-links ul li a:hover i.fa-instagram { color: #E4405F; }
#footer .social-links ul li a:hover i.fa-facebook  { color: #1877F2; }
#footer .social-links ul li a:hover i.fa-pinterest { color: #BD081C; }
#footer .social-links ul li a:hover i.fa-vimeo     { color: #1AB7EA; }

.footer-bottom {
    text-align: center;
    padding: 20px 15px;
    border-top: 1px solid #ccc;
}

.footer-bottom p,
.footer-bottom a {
    color: #666;
    text-decoration: none;
    margin: 0 5px;
}

.footer-bottom a:hover {
    color: #095eb4;
}

.btn-agenda-overlay {
    position: absolute;
    top: 1px;
    right: 1px;
    z-index: 10;
    padding: 10px 20px;
    font-size: 0.85rem;
    letter-spacing: 1px;
}
