:root {
    --gold: #E8A020;
    --gold-light: #F5C542;
    --gold-dark: #C4850A;
    --orange: #F0851A;
    --dark-bg: #0D0D0D;
    --dark-card: #1A1510;
    --dark-card-alt: #221E16;
    --text-light: #F5F0E8;
    --text-muted: #B8A88A;
    --gradient-warm: linear-gradient(135deg, #1A1510 0%, #2D1F0E 50%, #0D0D0D 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-warm);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(232,160,32,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(240,133,26,0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(232,160,32,0.05) 0%, transparent 40%);
    pointer-events: none;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    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='%23E8A020' fill-opacity='1'%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");
    pointer-events: none;
}

.hero-left-image {
    position: absolute;
    left: 0;
    top: 0;
    width: 40%;
    height: 100%;
    background: url('../img/1.png') center/cover no-repeat;
    opacity: 1; /* MODIFIÉ: Images à 100% d'opacité */
    mask-image: linear-gradient(to right, rgba(0,0,0,0.5) 0%, transparent 90%); /* MODIFIÉ: Plus doux */
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.5) 0%, transparent 90%);
    z-index: 4; /* MODIFIÉ: Au-dessus de l'overlay */
}

.hero-right-image {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background: url('../img/2.png') center/cover no-repeat;
    opacity: 1; /* MODIFIÉ: Images à 100% d'opacité */
    mask-image: linear-gradient(to left, rgba(0,0,0,0.3) 0%, transparent 85%); /* MODIFIÉ: Plus doux */
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.3) 0%, transparent 85%);
    z-index: 4; /* MODIFIÉ: Au-dessus de l'overlay */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13,13,13,0.4) 0%, rgba(13,13,13,0.3) 50%, rgba(13,13,13,0.35) 100%);
    /* MODIFIÉ: Overlay beaucoup plus transparent */
    z-index: 2;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3; /* MODIFIÉ: En dessous des images */
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle 6s infinite;
}

@keyframes floatParticle {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    20% { opacity: 0.6; }
    80% { opacity: 0.3; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.8); /* MODIFIÉ: Ombre pour lisibilité */
}

/* Logo */
.logo-container {
    margin-bottom: 1.5rem;
    animation: fadeInDown 1s ease-out;
}

.logo-text {
    font-family: 'Oswald', sans-serif;
    font-size: 8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 8px;
    position: relative;
    display: inline-block;
}

.logo-text .logo-masks {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    color: var(--gold);
}

.logo-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.65rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.logo-line {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 0.8rem auto;
    opacity: 0.6;
}

/* Main Title */
.main-title {
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.main-title h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 7.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.8); /* MODIFIÉ: Ombre plus forte */
}

.main-title h1 .highlight {
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 700;
    display: block;
    font-size: 7rem;
    letter-spacing: 2px;
    text-shadow: 0 4px 30px rgba(232,160,32,0.4); /* MODIFIÉ: Ombre plus visible */
}

.hero-subtitle {
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-subtitle p {
    font-size: 1.05rem;
    color: var(--text-light); /* MODIFIÉ: Texte plus clair */
    line-height: 1.8;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8); /* MODIFIÉ: Ombre pour lisibilité */
}

.hero-subtitle p strong {
    color: var(--gold);
    font-weight: 600;
}

.subtitle-divider {
    width: 40px;
    height: 1px;
    background: var(--gold);
    margin: 1.5rem auto;
    opacity: 0.5;
}

/* ===== THREE PILLARS ===== */
.pillars-section {
    padding: 5rem 0;
    position: relative;
    background: linear-gradient(180deg, var(--dark-bg) 0%, #14100C 100%);
}

.pillars-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    opacity: 0.3;
}

.pillar-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    position: relative;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.pillar-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.pillar-card:hover {
    transform: translateY(-5px);
}

.pillar-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--gold);
    opacity: 0.3;
    transition: all 0.3s ease;
}

.pillar-card:hover::after {
    width: 80px;
    opacity: 0.7;
}

.pillar-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: var(--gold);
    background: rgba(232,160,32,0.05);
    transition: all 0.4s ease;
}

.pillar-card:hover .pillar-icon {
    background: rgba(232,160,32,0.15);
    box-shadow: 0 0 30px rgba(232,160,32,0.2);
    transform: scale(1.1);
}

.pillar-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.1rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.pillar-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== PLATFORM SECTION ===== */
.platform-section {
    padding: 4rem 0;
    position: relative;
    background: linear-gradient(180deg, #14100C 0%, var(--dark-card) 50%, #14100C 100%);
}

.platform-card {
    background: var(--dark-card-alt);
    border: 1px solid rgba(232,160,32,0.15);
    border-radius: 16px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--gold-dark), var(--gold), var(--gold-dark));
}

.platform-left {
    position: relative;
    padding-right: 2rem;
}

.hard-hat-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 10px rgba(232,160,32,0.3));
}

.platform-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.platform-title {
    font-family: 'Oswald', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.platform-title span {
    color: var(--gold);
    display: block;
    font-size: 3.5rem;
}

.platform-divider {
    width: 2px;
    background: rgba(232,160,32,0.2);
    align-self: stretch;
}

.platform-right h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.feature-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: var(--gold);
    flex-shrink: 0;
    background: rgba(232,160,32,0.08);
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 3rem 0;
    background: linear-gradient(180deg, #14100C 0%, var(--dark-bg) 100%);
}

.cta-box {
    background: linear-gradient(135deg, rgba(232,160,32,0.08) 0%, rgba(232,160,32,0.02) 100%);
    border: 5px solid rgba(232,160,32,0.2);
    border-radius: 16px;
    padding: 2.5rem 3rem;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(232,160,32,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.cta-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--gold);
    margin-right: 1.5rem;
    background: rgba(232,160,32,0.08);
}

.cta-text h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.cta-text h3 strong {
    color: var(--gold);
}

.cta-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.cta-btn {
    background: linear-gradient(135deg, var(--gold) 0%, var(--orange) 100%);
    color: var(--dark-bg);
    border: none;
    padding: 0.9rem 2rem;
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    white-space: nowrap;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(232,160,32,0.3);
    color: var(--dark-bg);
}

.cta-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.8rem;
}

/* ===== STATS SECTION ===== */
.stats-section {
    padding: 3rem 0;
    border-top: 1px solid rgba(232,160,32,0.1);
    border-bottom: 1px solid rgba(232,160,32,0.1);
    background: var(--dark-bg);
}

.stat-item {
    text-align: center;
    padding: 1rem;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
}

.stat-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(232,160,32,0.15);
}

.stat-icon {
    font-size: 3.5rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.stat-number {
    font-family: 'Oswald', sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.stat-number .infinity {
    font-size: 3.5rem;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.3rem;
    font-weight: 600;
}

/* ===== FOOTER ===== */
.footer-section {
    padding: 3rem 0 2rem;
    background: linear-gradient(180deg, var(--dark-bg) 0%, #0A0806 100%);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-contact-item i {
    color: var(--gold);
    width: 16px;
    text-align: center;
}

.footer-contact-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact-item a:hover {
    color: var(--gold);
}

.footer-slogan {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.8rem;
    color: var(--text-light);
    text-align: center;
    position: relative;
}

.footer-slogan::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 0.8rem auto 0;
    opacity: 0.6;
}

.footer-social-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-align: right;
}

.social-icons {
    display: flex;
    gap: 0.8rem;
    justify-content: flex-end;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(232,160,32,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-bg);
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    background: rgba(232,160,32,1);
}

.social-icon:hover {
    background: var(--gold);
    color: var(--dark-bg);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(232,160,32,0.3);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== GLOW EFFECTS ===== */
.glow-gold {
    box-shadow: 0 0 40px rgba(232,160,32,0.1);
}

/* ===== MODAL CUSTOM STYLES ===== */
.modal-content {
    background: var(--dark-card-alt);
    border: 1px solid rgba(232,160,32,0.3);
    border-radius: 16px;
    color: var(--text-light);
}

.modal-header {
    border-bottom: 1px solid rgba(232,160,32,0.2);
    background: linear-gradient(135deg, rgba(232,160,32,0.1) 0%, transparent 100%);
}

.modal-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.7;
}

.btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 2rem;
}

.form-label {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    color: var(--gold);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    background: rgba(13, 13, 13, 0.6);
    border: 1px solid rgba(232,160,32,0.3);
    color: var(--text-light);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
}

.form-control:focus, .form-select:focus {
    background: rgba(13, 13, 13, 0.8);
    border-color: var(--gold);
    color: var(--text-light);
    box-shadow: 0 0 0 0.2rem rgba(232,160,32,0.25);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.form-select option {
    background: var(--dark-card-alt);
    color: var(--text-light);
}

.modal-footer {
    border-top: 1px solid rgba(232,160,32,0.2);
    background: rgba(232,160,32,0.03);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-light);
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
    color: var(--text-light);
}

.btn-warning {
    background: linear-gradient(135deg, var(--gold) 0%, var(--orange) 100%);
    border: none;
    color: var(--dark-bg);
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    padding: 0.6rem 1.5rem;
}

.btn-warning:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    color: var(--dark-bg);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(232,160,32,0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .logo-text {
        font-size: 5.5rem;
        letter-spacing: 5px;
    }

    .main-title h1 {
        font-size: 8rem;
    }

    .main-title h1 .highlight {
        font-size: 7.8rem;
    }

    .platform-card {
        padding: 2rem;
    }

    .platform-left {
        padding-right: 0;
        margin-bottom: 2rem;
        text-align: center;
    }

    .platform-divider {
        display: none;
    }

    .platform-right h4 {
        text-align: center;
    }

    .feature-item {
        justify-content: center;
    }

    .hero-left-image,
    .hero-right-image {
        opacity: 0.8;
    }

    .cta-box {
        padding: 2rem;
        text-align: center;
    }

    .cta-box .d-flex {
        flex-direction: column;
        align-items: center;
    }

    .cta-icon {
        margin-right: 0;
        margin-bottom: 1rem;
        font-size: 2.8rem;
    }

    .stat-item:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 767px) {
    .logo-text {
        font-size: 8.8rem;
        letter-spacing: 3px;
    }

    .main-title h1 {
        font-size: 5.2rem;
        letter-spacing: 1px;
    }

    .main-title h1 .highlight {
        font-size: 5rem;
    }

    .platform-title {
        font-size: 8.8rem;
    }

    .platform-title span {
        font-size: 8.5rem;
    }

    .footer-slogan {
        font-size: 3.4rem;
        margin-bottom: 2rem;
    }

    .footer-social-title {
        text-align: center;
        margin-top: 1.5rem;
    }

    .social-icons {
        justify-content: center;
    }

    .hero-content {
        padding: 1rem;
    }

    .modal-dialog {
        margin: 1rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .hero-left-image,
    .hero-right-image {
        opacity: 0.8;
    }
}

@media (max-width: 576px) {
    .logo-text {
        font-size: 5.2rem;
    }

    .main-title h1 {
        font-size: 3.8rem;
    }

    .main-title h1 .highlight {
        font-size: 2.6rem;
    }

    .platform-title {
        font-size: 3.2rem;
    }

    .platform-title span {
        font-size: 3rem;
    }

    .modal-title {
        font-size: 2.1rem;
    }

    .hero-left-image,
    .hero-right-image {
        display: none;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(232,160,32,0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(232,160,32,0.5);
}

/* Selection */
::selection {
    background: rgba(232,160,32,0.3);
    color: #fff;
}

/* Counter animation */
.counter {
    display: inline-block;
}