/* ==========================================================================
   Document Clarity — Styles spécifiques au site
   Chargé après bootstrap.min.css et theme.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Utilitaires globaux
   -------------------------------------------------------------------------- */
html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
}

.section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--dc-primary-light);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    font-weight: 400;
    margin-bottom: 0;
}

/* Séparateur de marque */
.brand-divider {
    display: block;
    width: 3rem;
    height: 2px;
    background: var(--dc-primary);
    opacity: 0.75;
    margin: 1rem 0 2rem;
    border: none;
}

.brand-divider--center {
    margin-left: auto;
    margin-right: auto;
}

/* --------------------------------------------------------------------------
   2. Navbar
   -------------------------------------------------------------------------- */
#mainNav {
    transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

#mainNav.navbar--scrolled {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background-color: rgba(7, 25, 30, 0.95) !important;
    box-shadow: 0 4px 30px rgba(4, 51, 59, 0.7);
}

.navbar-brand-img {
    height: 44px;
    width: auto;
    transition: height 0.3s ease;
}

#mainNav.navbar--scrolled .navbar-brand-img {
    height: 36px;
}

.brand-name {
    font-size: 0.9rem;
    letter-spacing: 0.25em;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1;
}

.brand-tagline {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: var(--dc-primary);
    text-transform: uppercase;
    display: block;
    margin-top: 1px;
}

/* Masque le texte de marque uniquement en dessous de 300px */
.brand-text {
    display: block;
}

@media (max-width: 373px) {
    .brand-text {
        display: none;
    }
}

.nav-lang-btn {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    font-weight: 600;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
}

/* --------------------------------------------------------------------------
   3. Hero
   -------------------------------------------------------------------------- */
#hero {
    min-height: 100vh;
    background:
        linear-gradient(to bottom,
            rgba(11, 19, 25, 0.45) 0%,
            rgba(4, 51, 59, 0.65) 50%,
            rgba(11, 19, 25, 0.97) 100%),
        url('../images/banner.png') center 76px / 100% auto no-repeat;
    display: flex;
    align-items: flex-end;
    padding-bottom: 7rem;
    position: relative;
    overflow: hidden;
}

/* Subtle animated gradient orb in background */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 20% 30%, rgba(110, 153, 138, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 40% 50% at 80% 70%, rgba(4, 51, 59, 0.4) 0%, transparent 70%);
    pointer-events: none;
}

.hero-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--dc-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
    content: '';
    flex: 1;
    max-width: 2.5rem;
    height: 1px;
    background: var(--dc-primary);
    opacity: 0.6;
}

.hero-headline {
    font-size: clamp(2rem, 6vw, 3.75rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.hero-headline span {
    color: var(--dc-primary);
}

.hero-lead {
    font-size: clamp(0.875rem, 2vw, 1rem);
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0.05em;
    max-width: 36rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.45;
    animation: scrollBounce 2.5s ease-in-out infinite;
}

.hero-scroll-hint span {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--dc-primary-light);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(6px); }
}

/* --------------------------------------------------------------------------
   4. Hero entrance animations
   -------------------------------------------------------------------------- */

/* Aero glass card — Windows Aero-style frosted panel */
.hero-animate {
    background: rgba(7, 16, 22, 0.55);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-radius: 1.5rem;
    border: 1px solid rgba(110, 153, 138, 0.20);
    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        inset 0 -1px 0 rgba(0, 0, 0, 0.18);
    padding: 2.75rem 3rem;
    max-width: 680px;
}

@media (max-width: 575.98px) {
    .hero-animate {
        padding: 2rem 1.5rem;
        border-radius: 1rem;
    }
}

.hero-animate > * {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.7s ease forwards;
}

.hero-animate > *:nth-child(1) { animation-delay: 0.1s; }
.hero-animate > *:nth-child(2) { animation-delay: 0.25s; }
.hero-animate > *:nth-child(3) { animation-delay: 0.4s; }
.hero-animate > *:nth-child(4) { animation-delay: 0.55s; }
.hero-animate > *:nth-child(5) { animation-delay: 0.7s; }

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------------------------------------------------
   5. Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* --------------------------------------------------------------------------
   6. Services
   -------------------------------------------------------------------------- */
#services {
    background: radial-gradient(ellipse at center top, rgba(4, 51, 59, 0.35) 0%, transparent 60%);
}

.service-card {
    height: 100%;
    border-radius: 0.75rem;
    padding: 2rem 1.5rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1.25rem 2.5rem rgba(4, 51, 59, 0.6);
    border-color: rgba(110, 153, 138, 0.55);
}

.service-icon-wrap {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.5rem;
    background: rgba(110, 153, 138, 0.15);
    border: 1px solid rgba(110, 153, 138, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--dc-primary);
    margin-bottom: 1.25rem;
    flex-shrink: 0;
    transition: background 0.25s ease, color 0.25s ease;
}

.service-card:hover .service-icon-wrap {
    background: rgba(110, 153, 138, 0.28);
    color: var(--dc-primary-light);
}

.service-title {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.service-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.75;
    flex-grow: 1;
}

/* --------------------------------------------------------------------------
   7. À propos / About
   -------------------------------------------------------------------------- */
#about {
    position: relative;
}

#about::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 85% 50%, rgba(4, 51, 59, 0.4) 0%, transparent 70%);
    pointer-events: none;
}

.about-logo-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.about-logo-ring {
    width: clamp(200px, 30vw, 280px);
    height: clamp(200px, 30vw, 280px);
    border-radius: 50%;
    border: 1px solid rgba(110, 153, 138, 0.35);
    background: rgba(11, 19, 25, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 0 6px rgba(110, 153, 138, 0.08),
        0 1.5rem 3rem rgba(4, 51, 59, 0.5);
}

.about-logo-ring img {
    width: 75%;
    height: auto;
    object-fit: contain;
}

.about-values {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
}

.about-value-tag {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    background: rgba(110, 153, 138, 0.15);
    border: 1px solid rgba(110, 153, 138, 0.35);
    color: var(--dc-primary-light);
}

/* --------------------------------------------------------------------------
   8. Contact
   -------------------------------------------------------------------------- */
#contact {
    position: relative;
}

#contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 15% 60%, rgba(4, 51, 59, 0.45) 0%, transparent 65%);
    pointer-events: none;
}

.contact-card {
    border-radius: 1rem;
    padding: 3rem 2.5rem;
    max-width: 640px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(110, 153, 138, 0.15);
}

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

.contact-item-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: rgba(110, 153, 138, 0.12);
    border: 1px solid rgba(110, 153, 138, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--dc-primary);
    flex-shrink: 0;
}

.contact-item-label {
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--dc-primary);
    font-weight: 600;
    display: block;
    margin-bottom: 0.15rem;
}

.contact-item-value {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.88);
    word-break: break-all;
}

.contact-item-value a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item-value a:hover {
    color: var(--dc-primary-light);
}

.contact-cta {
    margin-top: 2.5rem;
    text-align: center;
}

.btn-facebook {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #1877f2;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 0.65rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-facebook:hover {
    background: #1565d8;
    color: #ffffff;
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
#footer {
    background: rgba(7, 25, 30, 0.8);
    border-top: 1px solid rgba(110, 153, 138, 0.15);
    padding: 2.5rem 0;
}

.footer-logo-img {
    height: 36px;
    width: auto;
    opacity: 0.85;
}

.footer-brand-name {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
}

.footer-tagline {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: var(--dc-primary);
    text-transform: uppercase;
}

.footer-copyright {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.05em;
}

.footer-credit {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.04em;
    margin-top: 0.25rem;
}

.footer-credit a {
    color: rgba(110, 153, 138, 0.55);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-credit a:hover {
    color: var(--dc-primary-light);
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    border: 1px solid rgba(110, 153, 138, 0.3);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.footer-social-link:hover {
    border-color: #1877f2;
    color: #1877f2;
    background: rgba(24, 119, 242, 0.1);
}

/* --------------------------------------------------------------------------
   10. Bouton "retour en haut"
   -------------------------------------------------------------------------- */
#backToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: rgba(110, 153, 138, 0.85);
    border: 1px solid rgba(110, 153, 138, 0.5);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease;
    z-index: 1000;
    text-decoration: none;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

#backToTop:hover {
    background: var(--dc-primary);
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   11. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .section-padding {
        padding-top: 4.5rem;
        padding-bottom: 4.5rem;
    }

    .hero-lead {
        max-width: 100%;
    }

    .navbar-collapse {
        padding: 1rem 0;
        border-top: 1px solid rgba(110, 153, 138, 0.15);
        margin-top: 0.75rem;
    }

    .navbar-nav .nav-item + .nav-item {
        border-top: 1px solid rgba(110, 153, 138, 0.08);
    }

    .nav-lang-btn {
        display: inline-block;
        margin-top: 0.5rem;
    }

    .contact-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .section-padding {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .hero-cta-group .btn {
        width: 100%;
    }

    #backToTop {
        bottom: 1.25rem;
        right: 1.25rem;
    }
}

/* --------------------------------------------------------------------------
   12. Mise en valeur des liens d'ancre actifs dans la navbar mobile
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link.active {
        color: var(--dc-primary) !important;
        padding-left: 0.75rem;
        border-left: 2px solid var(--dc-primary);
    }
}
