:root {
    --accent: #3e5971;
    --btn-hover-bg: #2c4d6a;
    --nav-link-hover: #FFFFFF;
    --accent-light: #e8f5ee;
    --navbar-bg: #3e5971; /* Nouveau : fond bleu foncé pour la navbar */
    --navbar-text: #fff;
    --accent-soft: rgba(26, 92, 58, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Tinos', serif;
    color: #2c2c2c;
    line-height: 1.8;
    overflow-x: hidden;
    font-size: 18px;
}

.tinos-regular {
    font-family: "Tinos", serif;
    font-weight: 400;
    font-style: normal;
}

.tinos-bold {
    font-family: "Tinos", serif;
    font-weight: 700;
    font-style: normal;
}

.tinos-regular-italic {
    font-family: "Tinos", serif;
    font-weight: 400;
    font-style: italic;
}

.tinos-bold-italic {
    font-family: "Tinos", serif;
    font-weight: 700;
    font-style: italic;
}

.page {
    padding-top: 80px;
}

.navbar-toggler,
.navbar-toggler:focus,
.navbar-toggler:active {
    border: none !important;
    outline: none !important;
    box-shadow: none;
}

.navbar-toggler-icon {
}

.navbar {
    background: var(--navbar-bg); /* Fond bleu ! */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eee;
    transition: box-shadow 0.3s;
    padding: 0;
}

.navbar-brand {
    font-family: 'Tinos', serif;
    font-weight: 700;
    color: var(--accent) !important;
    letter-spacing: -0.5px;
    position: relative;
    padding: 0;
}

/*.navbar-brand::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}*/

.navbar-brand img {
    max-width: 280px;
}

.nav-link {
    color: var(--navbar-text)!important; /* Texte blanc sur fond bleu */
    font-size: 0.9rem;
    font-size: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-transform: capitalize;
    position: relative;
    padding: 0.5rem 1rem;
    transition: color 0.2s;
}

/*.nav-link:hover {
    color: var(--nav-link-hover) !important;
}*/

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: #FFFFFF;
    transition: width 0.3s;
}

.nav-link::after {
    content: ' ';
    position: absolute;
    left: 0;
    top: 40px;
    width: 100%;
    height: 1px;
    /*Transforming*/
    transform: scaleX(0);
    transition: transform 0.2s;
    transform-origin: right;
}

.nav-item.active .nav-link::after,
.nav-link:hover::after {
    transform-origin: left;
    transform: scaleX(1);
}

.hero {
    /*padding: 140px 0 100px;*/
    border-bottom: 1px solid #eee;
    position: relative;
    overflow: hidden;
    background-color: #fafafa; /* Fond clair pour faire ressortir la photo */
}

.hero-line {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin-bottom: 24px;
    position: relative;
}

.hero-line::after {
    content: '';
    position: absolute;
    left: 70px;
    top: 0;
    width: 20px;
    height: 3px;
    background: var(--accent);
    opacity: 0.4;
}

.hero-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px; /* Bords arrondis doux */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15); /* Légère ombre portée pour détacher l'image du fond */
    margin-top: 24px; /* Espace entre le texte et la photo */
}

@media (max-width: 768px) {
    .hero-content img {
        max-width: 90%; /* Un peu plus compressé sur mobile pour garder lisibilité */
        margin-top: 16px;
    }
}

.hero-content {
    padding: 60px 0 60px; /* Gardez ce padding pour garder l'espace vertical */
}

.btn-accent {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 14px 36px;
    border-radius: 2px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}

.btn-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}

.btn-accent:hover::before {
    left: 100%;
}

.btn-accent:hover {
    background: var(--btn-hover-bg);
    color: #fff;
    transform: translateY(-1px);
}

section {
    padding: 100px 0;
    position: relative;
}

.section:nth-child(odd) {
    background: #fafafa;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.section-divider .line {
    width: 40px;
    height: 1px;
    background: #ddd;
}

.section-divider .dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.section-divider .diamond {
    width: 8px;
    height: 8px;
    background: var(--accent);
    transform: rotate(45deg);
}

.section-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 12px;
    font-family: 'Helvetica Neue', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-label::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--accent);
}

.section-title {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 32px;
    color: #1a1a1a;
}

.section-title-long {
    font-size: 1.75rem;
    line-height: 1.4em;
}

.stat-block {
    position: relative;
    padding-top: 16px;
}

.stat-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 40px 40px;
    border-color: transparent transparent var(--accent-soft) transparent;
    transition: width 0.3s;
}

.stat-bar {
    width: 100%;
    height: 3px;
    background: #eee;
    margin-top: 12px;
    border-radius: 2px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.3s;
}

#contact {
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(26, 92, 58, 0.03) 10px,
            rgba(26, 92, 58, 0.03) 11px
    );
    transform: rotate(-15deg);
}

.contact-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 20px;
}

.contact-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--accent);
    transition: height 0.3s;
}

.contact-item:hover::before {
    height: 60%;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-label {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 0.7rem;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    margin-bottom: 4px;
}

.contact-link {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 1.05rem;
    font-size: 18px;
    transition: color 0.2s;
}

.contact-link:hover {
    color: var(--accent);
}

footer {
    padding: 40px 0;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: #999;
    position: relative;
}

/*footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
}*/

footer a {
    color: #999;
    text-decoration: none;
}

@media (max-width: 991px) {
    .nav-item {
        text-align: center;
        border-bottom: 1px solid var(--btn-hover-bg);
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    /*.hero { padding: 100px 0 70px; }*/
    .hero::before { width: 300px; height: 300px; right: -50px; }
    .hero::after { width: 300px; height: 300px; top: -100px; right: -100px; }
    section { padding: 70px 0; }
    .floating-shape { display: none; }
    .timeline-item::before { width: 34px; height: 34px; font-size: 0.6rem; }
    .timeline-item { padding-left: 48px; }
    .timeline::before { left: 17px; }
}

.dropdown-toggle::after {
    border-top: 0;
}

.dropdown-item {
    background: transparent;
    font-size: 15px;
}

@media (min-width: 992px) {

    .dropdown-menu {
        min-width: 200px;
        background-color: transparent !important;
        /*border: 1px solid #eee;*/
        border-radius: 6px !important;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
        top: 42px;
        padding-top: 0;
        padding-bottom: 0;
    }

    .dropdown-item-li {
        display: block;
        padding: 5px 16px;
        text-decoration: none;
        color: #555;
        transition: background-color 0.2s;
        background-color: #fff;
    }

    .dropdown-menu > .dropdown-item-li:first-child {
        border-radius: 6px 6px 0 0;
    }

    .dropdown-menu > .dropdown-item-li:last-child {
        border-radius: 0 0 6px 6px;
    }

    .dropdown-item-li:hover {
        background-color: var(--accent);
    }

    .dropdown-item-li:hover .dropdown-item {
        color: var(--accent-light);
        background: transparent;
    }

    .dropdown:hover > .dropdown-menu {
        display: block;
    }

}

@media (max-width: 991px) {

    /*.navbar-nav {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-link {
        font-size: 0.8rem;
        margin: 8px 0;
    }*/
    .dropdown-menu {
        position: relative;
        display: block;
        background-color: rgba(255,255,255,.02);
        /*border: 1px solid #eee;*/
        border-radius: 0px;
        border: none;
        padding: 0;
        max-height: calc(120vh - 160px); /* Empêche l'explosion verticale sur mobile */
        overflow-y: auto;
        text-align: center;
    }
    .dropdown-item {
        color: var(--accent-light) !important;
        background: transparent !important;
    }
}

/*
*
* ToTop
*/
.ui-to-top {
    position: fixed;
    right: 15px;
    bottom: 15px;
    z-index: 100;
    width: 52px;
    height: 52px;
    font-size: 30px;
    line-height: 48px;
    color: #ffffff;
    overflow: hidden;
    background: var(--accent);
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    transition: .45s all ease-in-out;
    transform: translate3d(0, 100px, 0);
    cursor: pointer;
}

.ui-to-top:hover {
    color: #ffffff;
    background: #2c2c2c;
    text-decoration: none;
}

.ui-to-top:focus {
    color: #ffffff;
}

.ui-to-top.active {
    transform: translate3d(0, 0, 0);
}

html.mobile .ui-to-top,
html.tablet .ui-to-top {
    display: none !important;
}

@media (min-width: 576px) {
    .ui-to-top {
        right: 40px;
        bottom: 40px;
    }
}
