:root {
    --primary-color: #FFFFFF;
    --secondary-color: #010101;
    --accent-color: #441014;    
    --font-primary: 'Poppins', monospace;
    --font-secondary: 'Inter', sans-serif;
    --transition: all 0.3s ease;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-heavy: 0 10px 30px rgba(0,0,0,0.3);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--secondary-color);
    overflow-x: hidden;
}
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}
.loader-content {
    text-align: center;
    color: var(--primary-color);
}
.loader-logo {
    max-width: 90px; /* avant: width: 90px */
    max-height: 90px; /* avant: height: 90px */
    background: var(--secondary-color);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 24px;
    animation: pulse 2s infinite; 
}
.loader-logo img {
    width: 140px;
    height: 140px;
    object-fit: contain;
}
.loader-text {
    font-family: var(--font-primary);
    font-size: 14px;
    margin-top: 0.6px;
    opacity: 0.8;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
header {
    background: var(--primary-color);
    box-shadow: var(--shadow-light);
    position: fixed;
    top: 0;
    width: 100%;
    height: 100px;
    z-index: 1000;
    transition: var(--transition);
}
.header-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 1rem;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 50px; 
}
.header-left {
    display: flex;
    align-items: center;
    max-width: 430px;
    gap: 0.8rem;
    font-size: 1rem;
    font-weight: 600;
}
.header-left i {
    color: var(--accent-color);
}
.header-left a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
}
.header-left a:hover {
    color: var(--accent-color);
}
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.9px;
}
.logo img {
    width: auto;
    max-height: 95px;
    object-fit: contain;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 1.4rem;
    justify-self: end;
}
.nav-links a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}
.nav-links a:hover, .nav-links a.active  {
    color: var(--accent-color);
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--secondary-color);
    transition: var(--transition);
}
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #f8f9fa 100%);
    padding: 120px 0 60px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: minmax(300px, 1fr) 400px;
    gap: 4rem;
    align-items: center;
}
.hero-content {
    max-width: 700px;
}
.hero-content h1 {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}
.hero-content .highlight {
    color: var(--accent-color);
}
.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #444;
    line-height: 1.6;
    font-weight: 500;
}
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), #661018);
    color: var(--primary-color);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}
.carousel-container {
    position: relative;
    height: 540px;
    width: 400px;
    padding: 0;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
}
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.carousel-slide.active {
    opacity: 1;
}
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    backface-visibility: hidden;
    image-rendering: -webkit-optimize-contrast;
}
.value-prop {
    padding: 80px 0;
    background: var(--secondary-color);
    color: var(--primary-color);
}
.value-prop-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}
.value-prop h2 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}
.value-items {
    display: grid;
    grid-template-columns: repeat(4, minmax(230px, 1fr));
    gap: 1.5rem;
}
.value-item {
    background: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}
.value-item:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.1);
}
.value-item i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}
.value-item h3 {
    font-family: var(--font-primary);
    margin-bottom: 1rem;
    color: var(--primary-color);
}
.services-preview, .formation-preview {
    padding: 80px 0;
    background: var(--primary-color);
}
.formation-preview {
    background: #f8f9fa;
}
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.section-content {
    order: 1;
}
.formation-preview .section-content {
    order: 2;
}
.formation-preview .section-image {
    order: 1;
}
.section-image {
    order: 2;
    width: 100%;
    max-width: 450px; 
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
}
.section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    backface-visibility: hidden;
    image-rendering: -webkit-optimize-contrast;
}
.section-content h2 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}
.section-content p {
    margin-bottom: 2rem;
    color: #444;
    font-size: 1.1rem;
    font-weight: 500;
}
.section-image:hover img {
    transform: scale(1.05);
}
.equipment {
    background: var(--secondary-color);
}
.equipment-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 0;
    background: var(--secondary-color);
    color: var(--primary-color);
    position: relative;
    overflow: hidden;
}
.equipment h2 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}
.equipment-scroll {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: scroll 60s linear infinite;
    will-change: transform;
}
.equipment-item {
    min-width: 200px;
    text-align: center;
    background: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.equipment-item:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.1);
}
.equipment-item i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: block;
}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 1.5rem)); }
}
.equipment-scroll:hover {
    animation-play-state: paused;
}
.cta-final {
    padding: 60px 0;
    background-color: #441014;
    background-image: url("data:image/svg+xml,%3Csvg width='42' height='44' viewBox='0 0 42 44' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='Page-1' fill='none' fill-rule='evenodd'%3E%3Cg id='brick-wall' fill='%23ffffff' fill-opacity='0.14'%3E%3Cpath d='M0 0h42v44H0V0zm1 1h40v20H1V1zM0 23h20v20H0V23zm22 0h20v20H22V23z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-size: 60px 63px;
    color: var(--primary-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-final-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}
.cta-final h2 {
    font-family: var(--font-primary);
    font-size: 3rem; /* A revoir  */
    margin-bottom: 1rem;
    line-height: 1.2;
}
.cta-final p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}
.cta-final .cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--accent-color);
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.cta-final .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
footer {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 70px 0 0;
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.9;
    position: relative;
}
.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}
.footer-section {
    margin-bottom: 1rem;
}
.footer-logo {
    margin-bottom: 1.5rem;
}
.footer-logo img {
    max-height: 95px;
    width: auto;
}
.footer-section h3 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    margin-bottom: 1.8rem;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 0.5rem;
}
.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-color);
}
.footer-section p {
    color: var(--secondary-color);
    line-height: 1.5;
    margin-bottom: 1rem;
}
.footer-contact-item {
    display: flex;
    gap: 0.1rem;
    margin-bottom: 0.5rem;
    align-items: flex-start;
}
.footer-contact-item i {
    color: var(--accent-color);
    min-width: 20px;
}
.footer-contact-item a {
    text-decoration: none;
    color: var(--secondary-color);
}
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.footer-nav a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.3rem 0;
    position: relative;
}
.footer-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}
.footer-nav a:hover {
    color: var(--secondary-color);
    padding-left: 8px;
}
.footer-nav a:hover::before {
    width: 15px;
}
.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}
.social-icons a {
    width: 40px;
    height: 40px;
    text-decoration: none;
    border-radius: 50%;
    display: flex;
    display: inline-flex; 
    line-height: 1;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: var(--accent-color);
    color: var(--primary-color);
}
.social-icons a:hover {
    transform: translateY(-3px);
}
.footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding: 1.5rem 0;
    margin-top: 1rem;
}
.footer-legal {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.8rem;
    color: rgba(0,0,0,0.6);
}
.footer-legal a {
    text-decoration: none;
    color: rgba(0,0,0,0.6);
}
@media (min-width: 1600px) {
    
    .hero {
        min-height: 70vh;
    }
} 
@media (max-width: 1100px) {
    .value-items {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 992px) {
    .header-left {
        display: none;
    }
    .header-container {
        grid-template-columns: auto 1fr;
        padding: 0 2rem;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 270px;
        height: 100vh;
        background: var(--primary-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition);
        z-index: 999;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    .nav-links.active {
        right: 0;
    }
    .nav-links a {
        font-size: 1.2rem;
    }
    .hamburger {
        display: flex;
        justify-self: end;
        z-index: 1000;
    }
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    .hero {
        padding: 140px 0 60px;
        min-height: auto;
    } 
    .hero-container {
        grid-template-columns: 1fr;
        height: 100%;
        gap: 0.5rem;
        padding: 0 1.5rem;
    }
    .hero-content {
        text-align: center;
        margin: 0 auto;
        padding-bottom: 1rem;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .carousel-container {
        order: 2;
        width: 100%;
        max-width: 400px;
        height: 600px;
        margin: 2rem auto 0;
    }
    .value-prop-container h2 {
        font-size: 2.2rem;
    }
    .section-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .section-content, 
    .formation-preview .section-content {
        order: 1;
        text-align: center;
    }
    .section-image, 
    .formation-preview .section-image {
        order: 2;
        height: 500px;
        max-width: 500px; 
        margin: 0 auto;
    }
    .section-content h2 {
        font-size: 2.2rem;
    }
    .equipment h2 {
        font-size: 2.2rem;
    }
    .cta-final {
        padding: 50px 0;
    }
    .cta-final h2 {
        font-size: 2.2rem;
    }
    .cta-final p {
        font-size: 1.1rem;
    }
    .footer-container {
        gap: 2.5rem;
    }
    .footer-section h3 {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
}
@media (max-width: 768px) {
    .services-preview, .formation-preview {
        padding: 60px 0;
    }
    .section-content h2 {
        font-size: 2rem;
    }
    .equipment-scroll {
        gap: 1.5rem;
    }
    .equipment-item {
        min-width: 160px;
        padding: 1.5rem;
    }
    .equipment h2 {
        font-size: 2rem;
    }
    .section-content p {
        font-size: 1rem;
    }
    .cta-final {
        padding: 40px 0;
        background-size: 40px 42px;
    }
    .cta-final-content {
        padding: 0 1.5rem;
    }
    .cta-final h2 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    .cta-final .cta-button {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
    footer {
        padding: 50px 0 0;
    }
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 2rem;
        gap: 2rem;
    }
    .footer-section {
        margin-bottom: 2rem;
    }
    .social-icons a {
        width: 38px;
        height: 38px;
    }
}
@media (max-width: 600px) {
    .value-items {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
@media (max-width: 576px) {
    header {
        height: 85px;
    }
    .logo img {
        max-height: 80px;
    }
    .hero {
        padding: 120px 0 60px; 
        min-height: auto;
    } 
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1.2rem;
    }
    .carousel-container {
        max-width: 350px;
        height: 550px;
    }
    .cta-button {
        padding: 0.8rem 1.5rem;
    }
    .value-prop-container h2 {
        font-size: 1.5rem;
    }
    .value-item {
        padding: 0.8rem;
    }
    .value-item i {
        font-size: 2.5rem;
    }
    .section-container {
        padding: 0 1.5rem;
    }
    .section-content h2 {
        font-size: 1.5rem;
    }
    .section-image, 
    .formation-preview .section-image {
        order: 2;
        height: 350px; 
        max-width: 350px;
        margin: 0 auto;
    }
    .equipment h2 {
        font-size: 1.5rem;
    }
    .cta-final {
        padding: 30px 0;
    }
    .cta-final h2 {
        font-size: 1.6rem;
    }
    .cta-final p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    .cta-final .cta-button {
        padding: 0.8rem 1.8rem;
        font-size: 0.9rem;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .footer-section {
        text-align: center;
    }
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-contact-item {
        justify-content: center;
    }
    .footer-nav {
        align-items: center;
    }
    .footer-nav a:hover {
        padding-left: 0;
    }
    .social-icons {
        justify-content: center;
    }
    .footer-legal {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }
    .footer-logo {
        display: flex;
        justify-content: center;
    }
    .footer-logo img {
        max-height: 85px;
    }
}
@media (max-width: 340px) {
    .section-image, 
    .formation-preview .section-image {
        order: 2;
        height: 250px;
        max-width: 250px;
        margin: 0 auto;
    }
    footer {
        font-size: 0.85rem;
    }
    .footer-container {
        gap: 1.5rem;
    }
    .footer-section {
        margin-bottom: 1rem
    }
    .footer-section h3 {
        font-size: 1rem;
    }
}