/* public/css/style.css */
:root {
    --brand-red: #FF2D2D;
    --brand-red-hover: #CC0000;
    --bg-dark: #0B0B0B;
    --bg-card: #1A1A1A;
    --text-secondary: #BFBFBF;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: #FFFFFF;
    scroll-behavior: smooth;
    overflow-x: hidden;
    visibility: hidden;
}
body.loaded {
    visibility: visible;
}

html { opacity: 0; transition: opacity 0.2s; }
html.tw-loaded { opacity: 1; }

.heading-impact {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.handwritten {
    font-family: 'Caveat', cursive;
    color: var(--brand-red);
    display: inline-block;
    transform: rotate(-3deg);
}

.hand-underline {
    position: relative;
    white-space: nowrap;
}
.hand-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 4px;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='10' viewBox='0 0 100 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 7C20 3 50 3 97 7' stroke='%23FF2D2D' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

h1 { font-size: clamp(2.8rem, 9vw, 6rem) !important; line-height: 0.92 !important; }
h2 { font-size: clamp(2rem, 5vw, 3.8rem) !important; line-height: 1 !important; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem) !important; }

.btn-premium {
    background-color: var(--brand-red);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.1em;
    cursor: pointer;
    border: none;
}
.btn-premium:hover {
    background-color: var(--brand-red-hover);
    transform: scale(1.03);
    box-shadow: 0 0 25px rgba(255, 45, 45, 0.35);
}

.btn-outline {
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.1em;
    cursor: pointer;
    background: transparent;
}
.btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.05);
}

.card-service {
    background-color: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: all 0.4s ease;
    border: 1px solid rgba(255,255,255,0.05);
}
.card-service:hover {
    border-color: rgba(255, 45, 45, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6), 0 0 30px rgba(255, 45, 45, 0.08);
}

.form-input {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    transition: border-color 0.3s;
    color: white;
}
.form-input:focus {
    border-color: var(--brand-red);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255,45,45,0.15);
}
.form-input option {
    background-color: #1A1A1A;
    color: white;
}

.nav-glass {
    background: rgba(11, 11, 11, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-number {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1;
    color: #fff;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}
.project-card img {
    transition: transform 0.6s ease;
}
.project-card:hover img {
    transform: scale(1.08);
}
.project-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
    transition: all 0.4s ease;
}
.project-card:hover .overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(255,45,45,0.1) 100%);
}
.project-card .project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    transform: translateY(10px);
    transition: transform 0.4s ease;
}
.project-card:hover .project-info {
    transform: translateY(0);
}

.timeline-line {
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--brand-red), rgba(255,45,45,0.1));
}
@media (min-width: 768px) {
    .timeline-line {
        left: 50%;
        transform: translateX(-50%);
    }
}

.faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.open .faq-answer {
    max-height: 300px;
    padding-bottom: 1.25rem;
}
.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}
.faq-chevron {
    transition: transform 0.3s ease;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
}
.testimonial-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand-red);
    border-radius: 12px 12px 0 0;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #0B0B0B; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }

.marquee-track {
    display: flex;
    animation: marquee 30s linear infinite;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--brand-red);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.separator {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,45,45,0.3), transparent);
}

@media (max-width: 767px) {
    .hero-sub { font-size: 0.95rem !important; }
    .mobile-stack { flex-direction: column; }
}

/* Message de succès Laravel */
.alert-success {
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}
.alert-error {
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff0000;
    color: #ff0000;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

.special-elite {
    font-family: 'Special Elite', cursive;
}

#backToTop {
    position: fixed;
    bottom: 24px;
    right: 24px;

    width: 56px;
    height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 9999;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;

    transform: translateY(16px);

    will-change: transform;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

section {
    overflow-x: hidden;
}
