:root {
    /* Modern Color Palette */
    --main-red: #B91C28;
    /* Plus vif/moderne que #A32226 */
    --dark-red: #a31823;
    --bg-light: #F8F9FA;
    --dark-grey: #121212;
    --text-muted: #6c757d;
    --pure-white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

body {
    font-family: 'Outfit', 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--dark-grey);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- TYPOGRAPHIE --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

h2 {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 40px;
    color: var(--dark-grey);
    text-transform: uppercase;
    font-size: 2.2rem;
}

@media (max-width: 768px) {
    h2 { font-size: 1.8rem; }
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--main-red), transparent);
    border-radius: 2px;
}

/* --- NAVBAR --- */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
    padding: 15px 0;
}

.navbar-brand img {
    height: 55px;
    /* Slightly larger */
    margin-right: 15px;
    transition: transform 0.3s;
}

.navbar-brand:hover img {
    transform: scale(1.05);
    /* Logo pop effect */
}

.nav-link {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--dark-grey) !important;
    position: relative;
    margin: 0 10px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--main-red);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--main-red) !important;
}

/* --- HERO SLIDER --- */
.carousel-item {
    height: 85vh;
    /* Full viewport height mostly */
    min-height: 600px;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
    filter: brightness(50%);
    /* Darker for better text contrast */
}

.carousel-caption {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-left: 5px solid var(--main-red);
    text-align: left;
    padding: 40px;
    bottom: 20%;
    left: 10%;
    right: auto;
    /* Left align caption */
    max-width: 600px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .carousel-caption {
        left: 5%;
        right: 5%;
        bottom: 10%;
        padding: 20px;
        max-width: none;
        text-align: center;
        border-left: none;
        border-top: 5px solid var(--main-red);
    }
}

.carousel-caption h5 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--main-red);
    margin-bottom: 15px;
    font-weight: 800;
}

.carousel-caption p {
    font-size: 2.5rem;
    /* Big headline style */
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .carousel-caption p { font-size: 1.6rem; }
    .carousel-item { min-height: 400px; height: 60vh; }
}

/* --- SERVICES --- */
.card-service {
    background: var(--pure-white);
    border: none;
    border-radius: 16px;
    padding: 40px 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy effect */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.card-service::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--main-red);
    z-index: -1;
    transition: width 0.4s ease;
}

.card-service:hover {
    transform: translateY(-15px);
    color: white;
}

.card-service:hover::before {
    width: 100%;
}

.service-icon {
    font-size: 3.5rem;
    color: var(--main-red);
    margin-bottom: 25px;
    transition: color 0.4s;
    display: inline-block;
}

.card-service:hover .service-icon {
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.card-service:hover h3,
.card-service:hover p {
    color: white !important;
}

/* --- CONTACT --- */
#contact {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
    position: relative;
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
}

.form-control {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 5px;
}

.form-control:focus {
    background: white;
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.25);
}

.btn-primary {
    background-color: var(--main-red);
    border: none;
    padding: 15px 35px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background-color: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.4);
}

/* --- FOOTER --- */
footer {
    background: var(--dark-grey);
    border-top: 5px solid var(--main-red);
}

footer a {
    transition: color 0.3s;
}

footer a:hover {
    color: var(--main-red) !important;
}

/* --- UTILS --- */
.section-heading {
    margin-bottom: 60px;
}

.text-gradient {
    background: linear-gradient(45deg, var(--main-red), #ff6b6b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- NEW SERVICES ACCORDION --- */
.services-gallery {
    display: flex;
    width: 100%;
    height: 450px;
    /* Reduced from 500px for better fit */
    overflow: hidden;
    gap: 10px;
    padding: 0 10px;
}

.service-panel {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 60px;
    /* Ensure never too small on mobile */
}

/* Gradients for each panel to distinct them */
.panel-1 {
    background: linear-gradient(135deg, #2b32b2 0%, #1488cc 100%);
}

.panel-2 {
    background: linear-gradient(135deg, #134E5E 0%, #71B280 100%);
}

.panel-3 {
    background: linear-gradient(135deg, #cc2b5e 0%, #753a88 100%);
}

.panel-4 {
    background: linear-gradient(135deg, #42275a 0%, #734b6d 100%);
}

.panel-5 {
    background: linear-gradient(135deg, #FF512F 0%, #DD2476 100%);
}

.service-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0) 100%);
    opacity: 0.8;
}

.service-panel:hover {
    flex: 5;
}

.service-panel:hover::before {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.panel-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: white;
    opacity: 0;
    /* Hidden by default when collapsed */
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease;
    transform: translateY(20px);
    white-space: normal;
}

/* Icon always visible container */
.panel-icon-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.5s ease;
    text-align: center;
    width: 100%;
    color: rgba(255, 255, 255, 0.8);
}

.panel-icon-container i {
    font-size: 2rem;
    display: block;
    margin-bottom: 5px;
}

.panel-icon-container span {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    /* Hide text on very small widths if needed, but flex handles reasonably */
    white-space: nowrap;
}

/* States on Hover */
.service-panel:hover .panel-icon-container {
    bottom: 250px;
    /* Move icon up */
    opacity: 0.2;
    /* Fade it out slightly */
    transform: translateX(-50%) scale(1.5);
    /* Make it bigger background element */
}

/* Specific adjustment: On hover, hide the bottom centered label so main content takes over? 
   Actually, let's just fade out the bottom centered default state and fade in the detailed content.
*/
.service-panel:hover .panel-icon-container {
    opacity: 0;
    /* Simplify: Hide default icon state */
    bottom: 50%;
}

.service-panel:hover .panel-content {
    opacity: 1;
    transform: translateY(0);
}

.panel-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    border-left: 4px solid var(--main-red);
    padding-left: 15px;
}

.panel-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

/* Mobile responsive fallback */
@media (max-width: 768px) {
    .services-gallery {
        flex-direction: column;
        height: auto;
    }

    .service-panel {
        height: 100px;
        flex: none;
        width: 100%;
        margin-bottom: 5px;
    }

    .service-panel:hover {
        height: 250px;
        /* Expand vertically */
        flex: none;
    }

    .panel-icon-container {
        left: 20px;
        transform: none;
        bottom: 50%;
        transform: translateY(50%);
        text-align: left;
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .panel-icon-container i {
        margin-bottom: 0;
    }

    .service-panel:hover .panel-icon-container {
        opacity: 0;
    }
}

/* --- CTA SECTION --- */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--main-red) 0%, #8E1F23 100%);
    /* Fallback */
}

.cta-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

.cta-btn {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2) !important;
    background: transparent;
    border-color: white;
    color: white;
}

@font-face {
    font-family: 'New Science';
    src: url('fonts/New_Science_SemiBold.woff2') format('woff2');
}