/* ===== VARIABLES ET RESET ===== */
:root {
    --primary-bg: #1B1F3B;
    --accent-yellow: #FFD447;
    --white: #FFFFFF;
    --green-accent: #2E8B57;
    --text-light: #F8F9FA;
    --shadow: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--primary-bg);
    overflow-x: hidden;
}

/* ===== ANIMATIONS CSS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-scaleIn {
    animation: scaleIn 0.6s ease-out forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 0.7s ease-out forwards;
}

/* ===== LAYOUT GLOBAL ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-yellow);
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-yellow), var(--green-accent));
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* ===== HEADER ===== */
.header {
    background: rgba(27, 31, 59, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 2px solid var(--accent-yellow);
}

.header.scrolled {
    background: rgba(27, 31, 59, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-yellow);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    margin-right: 10px;
    animation: pulse 2s infinite;
}

.nav {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px 15px;
    border-radius: 25px;
}

.nav a:hover {
    color: var(--accent-yellow);
    background: rgba(255, 212, 71, 0.1);
    transform: translateY(-2px);
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-bg) 0%, #2C4A7B 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255, 212, 71, 0.1) 0%, transparent 50%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text .highlight {
    color: var(--accent-yellow);
}

.hero-text p {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--accent-yellow), #FFA500);
    color: var(--primary-bg);
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 212, 71, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 212, 71, 0.4);
}

/* ===== IMAGES ET VISUELS ===== */
.hero-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: translateY(-10px);
}

.hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(27, 31, 59, 0.3), rgba(255, 212, 71, 0.2));
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

.hero-badge {
    background: rgba(255, 212, 71, 0.95);
    color: var(--primary-bg);
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    animation: pulse 2s infinite;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.about-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 20px;
}

.about-stats {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-around;
    background: rgba(27, 31, 59, 0.9);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.stat-item {
    text-align: center;
    color: var(--white);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-yellow);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.service-card {
    overflow: hidden;
}

.service-image {
    position: relative;
    margin: -30px -30px 20px -30px;
    overflow: hidden;
    height: 200px;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(27, 31, 59, 0.7), rgba(255, 212, 71, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-img {
    transform: scale(1.1);
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-overlay .card-icon {
    font-size: 4rem;
    margin-bottom: 0;
}

/* ===== CARDS ET GRILLES ===== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 212, 71, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-yellow), var(--green-accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.card-icon {
    font-size: 3rem;
    color: var(--accent-yellow);
    margin-bottom: 20px;
    display: block;
}

.card h3 {
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 15px;
}

.card p {
    color: var(--text-light);
    opacity: 0.8;
}

/* ===== FORMS ===== */
.form-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 212, 71, 0.2);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    color: var(--accent-yellow);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255, 212, 71, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-yellow);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(255, 212, 71, 0.2);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.radio-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.radio-item:hover {
    background: rgba(255, 212, 71, 0.1);
    border-color: rgba(255, 212, 71, 0.3);
}

.radio-item input[type="radio"] {
    margin-right: 15px;
    transform: scale(1.5);
    accent-color: var(--accent-yellow);
}

.checkbox-group {
    margin: 30px 0;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 2px;
    transform: scale(1.3);
    accent-color: var(--accent-yellow);
}

.submit-button {
    width: 100%;
    background: linear-gradient(45deg, var(--accent-yellow), var(--green-accent));
    color: var(--primary-bg);
    padding: 18px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 212, 71, 0.3);
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, #1a1e3a, var(--primary-bg));
    padding: 60px 0 30px;
    border-top: 3px solid var(--accent-yellow);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--accent-yellow);
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.footer-section p,
.footer-section a {
    color: var(--text-light);
    line-height: 1.8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-yellow);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 212, 71, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

/* ===== COOKIE POPUP ===== */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(27, 31, 59, 0.95);
    backdrop-filter: blur(10px);
    border-top: 3px solid var(--accent-yellow);
    padding: 25px;
    z-index: 10000;
    transform: translateY(100%);
    transition: all 0.4s ease;
}

.cookie-popup.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cookie-text {
    color: var(--white);
    flex: 1;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
}

.cookie-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-accept {
    background: var(--accent-yellow);
    color: var(--primary-bg);
}

.cookie-decline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cookie-accept:hover {
    background: #e6c043;
    transform: translateY(-2px);
}

.cookie-decline:hover {
    background: var(--white);
    color: var(--primary-bg);
}

/* ===== RESPONSIVE ===== */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-content {
        gap: 40px;
    }
    
    .hero-img, .about-img {
        height: 300px;
    }
    
    .service-image {
        height: 180px;
    }
    
    .grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

/* Large mobile and small tablets */
@media (max-width: 640px) {
    .hero {
        padding-top: 135px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
        padding: 10px 0;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .nav a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .hero {
        min-height: 80vh;
        padding-top: 160px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
        line-height: 1.3;
    }
    
    .hero-text p {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .hero-img {
        height: 300px;
    }
    
    .about-img {
        height: 280px;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .service-image {
        height: 200px;
        margin: -30px -20px 20px -20px;
    }
    
    .card {
        padding: 30px 20px;
    }
    
    .form-container {
        padding: 30px 25px;
        margin: 0 20px;
    }
    
    .radio-group {
        gap: 12px;
    }
    
    .radio-item {
        padding: 12px;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Large mobile phones */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .header-content {
        padding: 8px 0;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .nav {
        gap: 10px;
    }
    
    .nav a {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    .hero {
        min-height: 70vh;
        padding-top: 150px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-text p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .cta-button {
        padding: 15px 25px;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }
    
    .hero-img, .about-img {
        height: 250px;
    }
    
    .hero-overlay {
        padding: 20px;
    }
    
    .hero-badge {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .about-stats {
        padding: 12px;
        bottom: 15px;
        left: 15px;
        right: 15px;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .card {
        padding: 25px 15px;
    }
    
    .service-image {
        height: 180px;
        margin: -25px -15px 15px -15px;
    }
    
    .service-overlay .card-icon {
        font-size: 3rem;
    }
    
    .form-container {
        padding: 25px 15px;
        margin: 0 15px;
    }
    
    .form-input {
        padding: 12px 15px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .radio-item {
        padding: 10px;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .radio-item input[type="radio"] {
        margin-bottom: 8px;
        margin-right: 0;
    }
    
    .checkbox-item {
        align-items: flex-start;
    }
    
    .submit-button {
        padding: 15px;
        font-size: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .cookie-popup {
        padding: 20px 15px;
    }
    
    .cookie-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Small mobile phones */
@media (max-width: 360px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .hero-img, .about-img {
        height: 220px;
    }
    
    .service-image {
        height: 160px;
    }
    
    .form-container {
        margin: 0 10px;
        padding: 20px 10px;
    }
    
    .about-stats {
        padding: 10px;
        gap: 10px;
    }
    
    .stat-number {
        font-size: 1.1rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }

.hidden { display: none; }
.visible { display: block; }

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.slide-in {
    opacity: 0;
    animation: slideInLeft 0.7s ease-out 0.4s forwards;
}

.scale-in {
    opacity: 0;
    animation: scaleIn 0.6s ease-out 0.6s forwards;
} 