/* ATIMILOG — Custom styles — Bold & Impactful */

/* ===== COLOR SCHEME ===== */
:root {
    --bs-primary: #FF8C42;
    --bs-secondary: #0D0D0D;
    --bs-primary-rgb: 255, 140, 66;
    --bs-secondary-rgb: 13, 13, 13;
    --bs-link-color: #FF8C42;
    --bs-link-hover-color: #e07030;
    --atm-gradient: linear-gradient(135deg, #FF8C42 0%, #FFD700 100%);
    --atm-glow: 0 0 20px rgba(255, 140, 66, 0.3);
}

/* ===== GLOBAL ===== */
body {
    background-color: #0D0D0D;
    color: #f0f0f0;
}

.bg-light,
.bg-primary {
    background-color: #0D0D0D !important;
}

.text-muted {
    color: #a0a0a0 !important;
}

.text-secondary {
    color: #f0f0f0 !important;
}

.text-primary {
    color: #FF8C42 !important;
}

.lead,
p {
    color: #c0c0c0;
}

strong {
    color: #fff;
}

a {
    color: #FF8C42;
    transition: color 0.2s ease;
}

a:hover {
    color: #e07030;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: var(--atm-gradient);
    border: none;
    color: #0D0D0D;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    box-shadow: var(--atm-glow);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: linear-gradient(135deg, #e07030 0%, #e6b800 100%);
    color: #0D0D0D;
    box-shadow: 0 0 30px rgba(255, 140, 66, 0.5);
    transform: translateY(-2px);
}

.btn-xl {
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
}

.btn-outline-light {
    border: 2px solid #fff;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: #fff;
    color: #0D0D0D;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ===== NAVBAR ===== */
#mainNav {
    background-color: rgba(13, 13, 13, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 140, 66, 0.1);
}

#mainNav .navbar-brand {
    font-weight: 800;
    letter-spacing: 0.1em;
    background: var(--atm-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#mainNav .navbar-nav li.nav-item a.nav-link {
    color: #f0f0f0 !important;
    transition: color 0.2s ease;
}

#mainNav .navbar-nav li.nav-item a.nav-link:hover,
#mainNav .navbar-nav li.nav-item a.nav-link.active {
    color: #FF8C42 !important;
}

/* Mobile: neutralize base-theme active background that causes flicker */
@media (max-width: 991.98px) {
    #mainNav .navbar-nav > li.nav-item > a.nav-link.active {
        background: transparent !important;
        color: #FF8C42 !important;
    }
}

@media (min-width: 992px) {
    #mainNav .navbar-nav > li.nav-item > a.nav-link.active,
    #mainNav .navbar-nav > li.nav-item > a.nav-link.active:hover {
        background: var(--atm-gradient) !important;
        color: #0D0D0D !important;
        -webkit-text-fill-color: #0D0D0D;
    }
}

.navbar-toggler {
    background: var(--atm-gradient) !important;
    color: #0D0D0D !important;
}

/* ===== MASTHEAD ===== */
.masthead {
    background-color: #0D0D0D !important;
}

.masthead h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    background: var(--atm-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 992px) {
    .masthead h1 {
        font-size: 5rem;
    }
}

.masthead h1,
.masthead p {
    color: #fff !important;
}

.masthead .masthead-subheading {
    color: #a0a0a0 !important;
}

.masthead .btn-outline-light {
    border-color: #FF8C42;
    color: #FF8C42;
}

.masthead .btn-outline-light:hover {
    background: var(--atm-gradient);
    border-color: transparent;
    color: #0D0D0D;
}

.masthead .divider-custom-line {
    background-color: rgba(255, 140, 66, 0.3) !important;
}

.masthead .divider-custom-icon {
    color: #FF8C42 !important;
}

.masthead-icon i {
    vertical-align: middle;
    color: #FF8C42 !important;
    filter: drop-shadow(0 0 10px rgba(255, 140, 66, 0.4));
}

/* ===== DIVIDERS ===== */
.divider-custom .divider-custom-line {
    background-color: #FF8C42;
    border-color: #FF8C42;
}

.divider-custom .divider-custom-icon {
    color: #FF8C42;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.divider-custom.divider-light .divider-custom-line {
    background-color: rgba(255, 255, 255, 0.3);
}

.divider-custom.divider-light .divider-custom-icon {
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .divider-custom .divider-custom-icon {
        animation: none;
    }
}

/* ===== PAGE SECTIONS ===== */
.page-section {
    background-color: #0D0D0D;
}

.page-section-heading {
    color: #fff !important;
    font-weight: 800;
    letter-spacing: 0.05em;
}

/* ===== SERVICE CARDS ===== */
.card {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #FF8C42;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 140, 66, 0.1) !important;
}

.card .fa-3x {
    filter: drop-shadow(0 0 8px rgba(255, 140, 66, 0.3));
}

.card h3 {
    color: #fff !important;
}

.card .text-muted {
    color: #999 !important;
}

/* ===== TECHNOLOGY BADGES ===== */
.badge.bg-secondary {
    background-color: #1a1a1a !important;
    border: 1px solid #FF8C42;
    color: #FF8C42 !important;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.5em 0.85em;
    transition: all 0.2s ease;
}

.badge.bg-secondary:hover {
    background-color: #FF8C42 !important;
    color: #0D0D0D !important;
}

/* ===== PROCESS STEPS ===== */
#methode .rounded-circle {
    background: var(--atm-gradient) !important;
    box-shadow: var(--atm-glow);
    transition: all 0.3s ease;
}

#methode .rounded-circle:hover {
    transform: scale(1.15);
    box-shadow: 0 0 30px rgba(255, 140, 66, 0.5);
}

#methode .rounded-circle span,
#methode .rounded-circle i {
    color: #0D0D0D !important;
}

#methode h3 {
    color: #fff !important;
}

/* ===== ENGAGEMENTS SECTION ===== */
#engagements h3 {
    color: #FF8C42 !important;
}

#engagements p {
    color: #c0c0c0 !important;
}

#engagements i {
    color: #FF8C42 !important;
    filter: drop-shadow(0 0 6px rgba(255, 140, 66, 0.3));
}

#engagements .divider-custom-line {
    background-color: rgba(255, 140, 66, 0.3) !important;
}

#engagements .divider-custom-icon {
    color: #FF8C42 !important;
}

/* ===== ABOUT SECTION ===== */
#about .h3 {
    font-weight: 800;
    color: #FF8C42 !important;
}

#about .fa-2x {
    filter: drop-shadow(0 0 6px rgba(255, 140, 66, 0.3));
}

/* ===== FAQ ACCORDION ===== */
.accordion-item {
    background-color: #1a1a1a;
    border: none;
    border-bottom: 1px solid #2a2a2a;
}

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

.accordion-button {
    background-color: #1a1a1a;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
}

.accordion-button:not(.collapsed) {
    background-color: #222;
    color: #FF8C42;
    box-shadow: none;
}

.accordion-button::after {
    filter: invert(1);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 140, 66, 0.25);
    border-color: #FF8C42;
}

.accordion-body {
    background-color: #1a1a1a;
    color: #a0a0a0;
    line-height: 1.7;
}

/* ===== CONTACT FORM ===== */
.form-control,
.form-floating input,
.form-floating textarea {
    background-color: #1a1a1a !important;
    border-color: #333 !important;
    color: #f0f0f0 !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.form-control:focus,
.form-floating input:focus,
.form-floating textarea:focus {
    border-color: #FF8C42 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 140, 66, 0.15) !important;
}

.form-floating label {
    color: #888 !important;
    padding-left: 1rem !important;
}

/* ===== CONTACT INFO ===== */
.contact-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-info-item i {
    filter: drop-shadow(0 0 6px rgba(255, 140, 66, 0.3));
}

/* ===== FOOTER ===== */
.footer {
    background-color: #0D0D0D !important;
}

.footer h3 {
    color: #FF8C42;
}

.btn-social {
    border-color: #333;
    color: #f0f0f0;
    transition: all 0.3s ease;
}

.btn-social:hover {
    border-color: #FF8C42;
    color: #FF8C42;
    box-shadow: 0 0 15px rgba(255, 140, 66, 0.3);
    transform: translateY(-3px);
}

.copyright {
    background-color: #0D0D0D !important;
    border-top: 1px solid #1a1a1a;
    color: #666;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0D0D0D;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FF8C42;
}

/* ===== MASTHEAD ENTRANCE ===== */
@keyframes mastheadFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.masthead .container > * {
    animation: mastheadFadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

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

@media (prefers-reduced-motion: reduce) {
    .masthead .container > * {
        animation: none;
    }
}

/* ===== UTILITIES ===== */
html {
    scroll-behavior: smooth;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #FF8C42;
    outline-offset: 2px;
}

::selection {
    background-color: rgba(255, 140, 66, 0.3);
    color: #fff;
}

/* ===== LUCIDE ICONS ===== */
[data-lucide] {
    display: inline-block;
    vertical-align: middle;
}

.owl-icon {
    display: inline-block;
    vertical-align: middle;
}

#mainNav .owl-icon {
    stroke: #FF8C42;
}

/* ===== IMAGE PLACEHOLDER ===== */
.img-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #1a1a1a;
    border: 2px dashed #333;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.875rem;
}

/* ===== SECTION DIVIDERS ===== */
.section-divider {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin: 0;
    padding: 0;
    background-color: #0D0D0D;
}

.section-divider svg {
    display: block;
    width: 100%;
    height: 60px;
}

@media (min-width: 768px) {
    .section-divider svg {
        height: 80px;
    }
}

@media (min-width: 1200px) {
    .section-divider svg {
        height: 100px;
    }
}

.section-divider svg path[stroke] {
    filter: drop-shadow(0 0 4px rgba(255, 140, 66, 0.6)) drop-shadow(0 0 10px rgba(255, 140, 66, 0.3));
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-divider.is-visible svg path[stroke] {
    stroke-dashoffset: 0;
}

/* Neon pulse animation on drawn lines */
@keyframes neonPulse {
    0%, 100% {
        filter: drop-shadow(0 0 4px rgba(255, 140, 66, 0.6)) drop-shadow(0 0 10px rgba(255, 140, 66, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(255, 140, 66, 0.9)) drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
    }
}

.section-divider.is-visible svg path[stroke] {
    animation: neonPulse 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.reveal.reveal-left {
    transform: translateX(-40px);
}

.reveal.reveal-right {
    transform: translateX(40px);
}

.reveal.reveal-scale {
    transform: scale(0.9);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Stagger delays for grid children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 0.5s; }
.reveal-stagger > .reveal:nth-child(7) { transition-delay: 0.6s; }
.reveal-stagger > .reveal:nth-child(8) { transition-delay: 0.7s; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .section-divider svg path[stroke] {
        stroke-dasharray: none;
        stroke-dashoffset: 0;
        transition: none;
        animation: none;
    }
    .section-divider.is-visible svg path[stroke] {
        animation: none;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    body {
        background: #fff !important;
        color: #000 !important;
    }

    .masthead,
    .page-section,
    .footer,
    .copyright {
        background: #fff !important;
        color: #000 !important;
    }

    .text-muted,
    .lead,
    p,
    .accordion-body,
    .card .text-muted {
        color: #333 !important;
    }

    .text-secondary,
    .page-section-heading,
    .card h3,
    #methode h3,
    #engagements h3,
    .footer h3 {
        color: #000 !important;
    }

    .text-primary {
        color: #FF8C42 !important;
    }

    .navbar,
    .section-divider,
    .btn,
    .navbar-toggler {
        display: none !important;
    }

    .card {
        background: #fff !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }

    .badge.bg-secondary {
        background: #fff !important;
        border: 1px solid #333 !important;
        color: #333 !important;
    }

    .accordion-item,
    .accordion-button {
        background: #fff !important;
        color: #000 !important;
    }

    .form-control,
    .form-floating input,
    .form-floating textarea {
        background: #fff !important;
        border-color: #ccc !important;
        color: #000 !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    a.navbar-brand[href]::after,
    a.nav-link[href]::after {
        content: none;
    }
}
