:root {
    --primary-color: #BF1818;
    /* Main Red Color */
    --accent-color: #BF1818;
    /* Matched to Primary Red */
    --bg-color: #f9f9f9;
    /* Off-white background */
    --text-color: #333;
    --light-text: #666;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --transition-speed: 0.4s;
    --section-spacing: 100px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Animation Utilities */
.fade-in,
.fade-in-up,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-up {
    transform: translateY(30px);
}

.fade-in-left {
    transform: translateX(-30px);
}

.fade-in-right {
    transform: translateX(30px);
}

.visible {
    opacity: 1;
    transform: none;
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

.delay-6 {
    transition-delay: 0.6s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid transparent;
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-nav {
    background-color: var(--accent-color);
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
}

.btn-nav:hover {
    background-color: #8c1111;
}

/* Header */
.btn-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-phone:hover {
    transform: scale(1.1);
    background-color: #a01414;
    /* Slightly darker on hover */
}

.btn-phone i {
    font-size: 24px;
    color: white;
    /* Ensure icon is white */
}

header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 120px;
    /* Adjust based on actual logo */
}

nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

nav a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width var(--transition-speed);
}

nav a:not(.btn-nav):hover::after {
    width: 100%;
}

#menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

#menu-toggle span {
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s;
}

/* Hero Section */
#hero {
    position: relative;
    width: 100%;
    padding: 0;
}

.hero-bg-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Old service-icon rule removed */


.hero-content h1 {
    font-size: 1.33rem;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.1;
}

.subtitle {
    display: block;
    font-size: 1.5rem;
    font-weight: 300;
    font-family: var(--font-body);
    font-style: italic;
    color: var(--light-text);
    margin-top: 10px;
}

.role {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 20px auto 40px;
    color: var(--primary-color);
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.contact-preview {
    font-size: 0.9rem;
    color: var(--light-text);
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        top: 10px;
        opacity: 1;
    }

    100% {
        top: 30px;
        opacity: 0;
    }
}

/* Services */
section {
    padding: var(--section-spacing) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

#introduction .section-header {
    margin-bottom: 0;
}

#introduction {
    padding-top: 180px;
    padding-bottom: 30px;
}

#introduction h1 {
    font-size: 1.6rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.tagline,
.intro-situations {
    font-size: 1.2rem;
    color: var(--accent-color);
    max-width: 800px;
    margin: 0 auto;
}

.services-content {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    border-left: 5px solid var(--accent-color);
}

.service-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

/* Situations / Grid */
.situation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.situation-card {
    background: white;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-icon {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 0;
    display: block;
}

.card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.situation-card h3 {
    margin-top: 0;
}

.situation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.situation-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--accent-color);
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    letter-spacing: 0.5px;
}

/* Process Timeline (simplified vertical/responsive) */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    /* Adjust for responsiveness */
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--accent-color);
}

.timeline-item {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    position: relative;
    padding-left: 60px;
    /* Space for number */
}

.step-number {
    position: absolute;
    left: 0;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 0 0 5px white, 0 0 0 7px var(--accent-color);
    z-index: 1;
}

.step-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    flex-grow: 1;
}

/* About */
.about-flex {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-content {
    flex: 1;
}

.emphasis {
    font-size: 1.3rem;
    font-style: italic;
    font-family: var(--font-heading);
    color: var(--accent-color);
    margin: 20px 0;
    border-left: 2px solid var(--primary-color);
    padding-left: 15px;
}

.about-visual {
    max-width: 25%;
    max-height: 350px;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 15px 15px 0 var(--accent-color);
}

/* Contact */
#contact {
    background-color: var(--primary-color);
    color: white;
}

.contact-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    color: white;
    /* Override primary text color */
}

.contact-info p {
    margin-bottom: 30px;
    opacity: 0.8;
}

.contact-details li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-details a {
    color: white;
    text-decoration: underline;
}

.contact-details .phone-link {
    font-size: 1.8rem;
    /* Make it significantly bigger */
    font-weight: 800;
    /* Extra bold */
    text-decoration: none;
    /* No underline by default */
    display: block;
    /* Put on its own line if needed, or inline-block */
    margin-top: 10px;
}

.contact-details .phone-link:hover {
    text-decoration: underline;
}

.social-links {
    margin-top: 30px;
}

.social-links a {
    color: white;
    font-size: 1.1rem;
    border: 1px solid white;
    padding: 10px 20px;
    border-radius: 30px;
}

.social-links a:hover {
    background-color: white;
    color: var(--primary-color);
}

.contact-logo {
    margin-top: 30px;
    max-width: 200px;
    /* Ajuster selon le rendu souhaité */
    height: auto;
}

.contact-form-container {
    flex: 1;
    background: white;
    padding: 40px;
    border-radius: 8px;
    color: var(--text-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
}

.btn-submit {
    background-color: var(--accent-color);
    color: white;
    width: 100%;
    border: none;
}

.btn-submit:hover {
    background-color: var(--primary-color);
}

/* Footer */
footer {
    background-color: #1a252f;
    color: white;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 900px) {
    .container {
        width: 100%;
        padding: 0 20px;
    }

    .hero-content h1 {
        font-size: 1rem;
    }

    #main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        transition: right 0.3s ease;
        padding-top: 100px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    #main-nav.active {
        right: 0;
    }

    #main-nav ul {
        flex-direction: column;
        align-items: center;
    }

    #menu-toggle {
        display: flex;
        z-index: 1001;
        /* Above nav */
    }

    .about-flex,
    .contact-wrapper {
        flex-direction: column;
    }

    .about-visual {
        max-width: 50%;
        max-height: 350px;
        width: auto;
        height: auto;
        margin-top: 30px;
        align-self: center;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 10px;
        /* Reduce padding to maximize width */
    }

    .section-header h2 {
        font-size: 1.6rem;
        /* Smaller font size to fit width */
        word-wrap: break-word;
        hyphens: auto;
        /* Allow hyphenation if still too long */
    }

    .hero-content h1 {
        font-size: 0.83rem;
        /* Adjust hero title size */
    }

    #introduction h1 {
        font-size: 0.9rem;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    .hero-bg-img {
        height: 400px;
        object-fit: cover;
        object-position: 25% 50%;
    }

    .services-content {
        padding: 30px 20px;
        /* Reduce internal padding of service box */
    }
}

/* Modal Stlyes */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 40px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 6px 20px rgba(0, 0, 0, 0.19);
    animation: modalopen 0.4s;
}

@keyframes modalopen {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

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

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close-button:hover,
.close-button:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

.modal h2 {
    margin-top: 0;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.modal h3 {
    margin-top: 20px;
    font-size: 1.1rem;
    color: var(--text-color);
}

.modal p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.modal p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}