/* =========================================================
   F1 SOLUTION - STYLE PRINCIPAL
   CodeIgniter 3 + Bootstrap + jQuery
   ========================================================= */

:root {
    --red: #c90000;
    --red-dark: #950000;
    --red-light: #ff3333;

    --black: #111111;
    --dark: #1b1b1b;
    --dark-light: #252525;

    --gray: #f3f3f3;
    --gray-medium: #dddddd;
    --gray-dark: #777777;

    --white: #ffffff;

    --shadow-sm: 0 5px 20px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);

    --transition: all 0.3s ease;
}


/* =========================================================
   GLOBAL
   ========================================================= */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

::selection {
    background: var(--red);
    color: var(--white);
}


/* =========================================================
   NAVBAR
   ========================================================= */

.main-navbar {
    background: rgba(17, 17, 17, 0.97);
    padding: 15px 0;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    z-index: 9999;
}

.main-navbar.scrolled {
    padding: 9px 0;
    background: rgba(17, 17, 17, 0.99);
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 1px;
    font-weight: 800;
}

.logo-f1 {
    color: var(--red);
    font-weight: 900;
}

.logo-solution {
    color: var(--white);
}

.navbar-nav .nav-link {
    color: #fff;
    font-weight: 600;
    margin-left: 15px;
    padding: 10px 5px !important;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 5px;
    bottom: 2px;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--red-light);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: calc(100% - 10px);
}

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 7px 10px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(201, 0, 0, 0.4);
}

.navbar-toggler-icon {
    filter: brightness(0) invert(1);
}


/* =========================================================
   DROPDOWN
   ========================================================= */

.dropdown-menu {
    border: 0;
    border-radius: 0;
    padding: 8px 0;
    box-shadow: var(--shadow-lg);
    margin-top: 10px;
    min-width: 270px;
}

.dropdown-item {
    padding: 12px 18px;
    font-weight: 600;
    color: var(--dark);
    transition: var(--transition);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--red);
    color: var(--white);
}

.dropdown-divider {
    border-color: #eee;
}


/* =========================================================
   HERO
   ========================================================= */

.hero-section {
    min-height: 100vh;
    color: white;

    background:
        linear-gradient(
            110deg,
            rgba(0, 0, 0, 0.95),
            rgba(0, 0, 0, 0.78),
            rgba(120, 0, 0, 0.75)
        );

    display: flex;
    align-items: center;

    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    right: -150px;
    top: -100px;
}

.hero-section::after {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    border: 1px solid rgba(201, 0, 0, 0.2);
    border-radius: 50%;
    right: 50px;
    bottom: -180px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    color: #ff4444;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 0;
}

.hero-title span {
    color: var(--red);
}

.hero-subtitle {
    color: #ff3b3b;
    font-size: 1.7rem;
    margin-top: 20px;
    font-weight: 700;
}

.hero-text {
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 850px;
    color: #ddd;
    margin-top: 20px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn-f1 {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    padding: 13px 28px;
    border: 2px solid var(--red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.btn-f1:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(201, 0, 0, 0.3);
}

.btn-f1-outline {
    display: inline-block;
    background: transparent;
    color: var(--white);
    padding: 13px 28px;
    border: 2px solid var(--white);
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-f1-outline:hover {
    background: var(--white);
    color: var(--black);
    transform: translateY(-3px);
}


/* =========================================================
   SECTIONS
   ========================================================= */

.section-padding {
    padding: 90px 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 50px;
}

.section-heading span,
.small-title,
.map-title span {
    color: var(--red);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-heading h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--black);
    margin-top: 8px;
}

.section-heading p {
    max-width: 750px;
    margin: 15px auto 0;
    color: var(--gray-dark);
}

.heading-line {
    width: 70px;
    height: 4px;
    background: var(--red);
    margin: 20px auto 0;
}


/* =========================================================
   SERVICES
   ========================================================= */

.services-section {
    background: var(--gray);
}

.service-card {
    background: var(--white);
    padding: 45px 35px;
    height: 100%;
    border-top: 4px solid var(--red);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(201, 0, 0, 0.04);
    border-radius: 50%;
    right: -35px;
    bottom: -35px;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--black);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--red);
    transform: rotate(-5deg);
}

.service-card h3 {
    font-weight: 800;
    color: var(--black);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--gray-dark);
}

.service-link {
    color: var(--red);
    font-weight: 700;
}

.service-link:hover {
    color: var(--red-dark);
}


/* =========================================================
   QUALITE
   ========================================================= */

.quality-section {
    background: var(--white);
   
}

.quality-box {
    padding-right: 30px;
}

.quality-box h2 {
    font-weight: 800;
    font-size: 2.4rem;
    line-height: 1.2;
    color: var(--black);
    margin: 10px 0 20px;
}

.quality-box h2 span {
    color: var(--red);
}

.quality-box p {
    color: var(--gray-dark);
    margin-bottom: 18px;
}

.quality-image {
    position: relative;
}

.quality-image img {
    width: 100%;
    display: block;
    box-shadow: var(--shadow-lg);
}

.quality-image::after {
    content: "";
    position: absolute;
    width: 80%;
    height: 80%;
    right: -15px;
    bottom: -15px;
    border: 4px solid var(--red);
    z-index: -1;
}


/* =========================================================
   TECHNOLOGIES
   ========================================================= */

.technology-box {
    background: var(--gray);
    padding: 30px;
    margin-top: 30px;
    border-left: 4px solid var(--red);
}

.technology-box h4 {
    font-weight: 800;
    color: var(--black);
    margin-bottom: 10px;
}

.technology-box p {
    margin-bottom: 0;
    color: var(--gray-dark);
}


/* =========================================================
   VALEURS
   ========================================================= */

.values-section {
    background: var(--black);
    color: var(--white);
}

.values-section .section-heading h2 {
    color: var(--white);
}

.values-section .section-heading p {
    color: #bbb;
}

.value-card {
    background: var(--dark);
    padding: 35px 25px;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-7px);
    border-color: var(--red);
    background: #202020;
}

.value-number {
    font-size: 2.5rem;
    color: var(--red);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
}

.value-card h4 {
    color: var(--white);
    font-weight: 800;
    margin-bottom: 12px;
}

.value-card p {
    color: #aaa;
    margin: 0;
}


/* =========================================================
   ABOUT / PRESENTATION
   ========================================================= */

.about-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #555;
}

.about-text strong {
    color: var(--black);
}

.about-highlight {
    color: var(--red);
    font-weight: 700;
}


/* =========================================================
   CTA
   ========================================================= */

.cta-section {
    background:
        linear-gradient(
            120deg,
            var(--red-dark),
            var(--red)
        );
    color: var(--white);
    padding: 70px 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 15px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.cta-section .btn-f1-outline {
    border-color: var(--white);
}


/* =========================================================
   MAP / LOCALISATION
   ========================================================= */

.map-section {
    background: var(--gray);
}

.map-title {
    margin-bottom: 25px;
}

.map-title h2 {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--black);
    margin-top: 5px;
}

.map-title p {
    color: var(--gray-dark);
}

.map-container {
    width: 100%;
    height: 450px;
    overflow: hidden;
    background: #ddd;
    box-shadow: var(--shadow-md);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact-section {
    background: var(--white);
}

.contact-info {
    padding-right: 30px;
}

.contact-info h2 {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--black);
}

.contact-info h2 span {
    color: var(--red);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: var(--black);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 20px;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    background: var(--red);
}

.contact-item h5 {
    margin: 0 0 4px;
    font-weight: 800;
    color: var(--black);
}

.contact-item p {
    margin: 0;
    color: var(--gray-dark);
}

.contact-form {
    background: var(--gray);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.form-control,
.form-select {
    border: 1px solid #ddd;
    border-radius: 0;
    padding: 13px 15px;
    background: var(--white);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 0.2rem rgba(201, 0, 0, 0.12);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-label {
    font-weight: 700;
    color: var(--black);
}


/* =========================================================
   FOOTER
   ========================================================= */

.main-footer {
    background: var(--black);
    color: #aaa;
    padding: 65px 0 25px;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 15px;
}

.footer-text {
    color: #999;
    line-height: 1.8;
}

.footer-title {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 3px;
    background: var(--red);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaa;
}

.footer-links a:hover {
    color: var(--red-light);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--red);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 50px;
    padding-top: 20px;
    color: #777;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--red-light);
}


/* =========================================================
   ALERT / MESSAGES
   ========================================================= */

.alert-f1 {
    border-radius: 0;
    border-left: 4px solid var(--red);
}


/* =========================================================
   BACK TO TOP
   ========================================================= */

.back-to-top {
    position: fixed;
    right: 25px;
    bottom: 25px;

    width: 45px;
    height: 45px;

    background: var(--red);
    color: var(--white);

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

    opacity: 0;
    visibility: hidden;

    cursor: pointer;
    z-index: 999;

    transition: var(--transition);
}

.quality-box h2 {
    font-weight: 800;
    font-size: 2.4rem;
    line-height: 1.2;
    color: var(--black);
    margin: 10px 0 20px;
}


.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--red-dark);
    transform: translateY(-4px);
}


/* =========================================================
   ANIMATIONS
   ========================================================= */

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s ease;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

.fade-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.7s ease;
}

.fade-left.show {
    opacity: 1;
    transform: translateX(0);
}

.fade-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.7s ease;
}

.fade-right.show {
    opacity: 1;
    transform: translateX(0);
}

/* TEST - rendre les éléments visibles */
.fade-up,
.fade-left,
.fade-right {
    opacity: 1;
    transform: none;
}



/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 991.98px) {

    .main-navbar {
        padding: 12px 0;
    }

    .navbar-nav {
        padding-top: 15px;
    }

    .navbar-nav .nav-link {
        margin-left: 0;
        padding: 10px 0 !important;
    }

    .navbar-nav .nav-link::after {
        display: none;
    }

    .dropdown-menu {
        box-shadow: none;
        background: var(--dark);
        margin-top: 0;
    }

    .dropdown-item {
        color: #ddd;
    }

    .hero-section {
        min-height: 850px;
        padding: 120px 0 80px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .quality-box {
        padding-right: 0;
        margin-bottom: 50px;
    }

    .contact-info {
        padding-right: 0;
        margin-bottom: 40px;
    }
}


/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .section-padding {
        padding: 65px 0;
    }

    .hero-section {
        min-height: auto;
        padding: 130px 0 80px;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .hero-section .btn-f1,
    .hero-section .btn-f1-outline {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 12px;
    }

    .section-heading h2 {
        font-size: 2rem;
    }

    .quality-box h2,
    .contact-info h2,
    .map-title h2 {
        font-size: 2rem;
    }

    .service-card {
        padding: 35px 25px;
    }

    .contact-form {
        padding: 25px 20px;
    }

    .map-container {
        height: 350px;
    }

    .cta-section {
        padding: 55px 0;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .back-to-top {
        right: 15px;
        bottom: 15px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 575.98px) {

    .navbar-brand {
        font-size: 1.25rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .section-heading h2 {
        font-size: 1.8rem;
    }

    .section-padding {
        padding: 55px 0;
    }

    .map-container {
        height: 300px;
    }

    .value-card {
        padding: 28px 20px;
    }
}
