* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    overflow-x: hidden;
}

/* ===== BACKGROUND VIDEO ===== */
#video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

#video-container iframe {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110vw;
    height: 110vh;
    min-width: 110vw;
    min-height: 110vh;
    border: none;
    pointer-events: none;
    z-index: -2;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

/* ===== CONTENEUR PRINCIPAL ===== */
.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 20px;
}

/* ===== SECTION HÉRO / TITRE ===== */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    animation: fadeInDown 1s ease-out;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    animation: titleFadeInScale 1.2s ease-out;
    will-change: transform;
}

.hero-title {
    display: inline-block;
    transition: opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

.hero-title.fade-in {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    will-change: auto;
}

.hero-title.fade-out {
    opacity: 0;
    transform: translateY(-6px);
    filter: blur(8px);
    will-change: opacity, transform, filter;
}

.hero-content p {
    font-size: 1.3rem;
    color: #fff;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 300;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.bg-refresh {
    margin: 28px auto 0 auto;
    padding: 25px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 153, 255, 0.35);
    color: #fff;
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: 0px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.3;
}

.bg-refresh:hover {
    transform: translateY(-2px);
    background: rgba(0, 212, 255, 0.45);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.bg-refresh:active {
    transform: translateY(0);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.hand-icon {
    width: 32px;
    height: 32px;
    margin-top: 8px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    transition: all 0.3s ease;
}

.bg-refresh:hover .hand-icon {
    transform: scale(1.15) translateY(-3px);
}

.bg-refresh:hover .hand-icon {
    transform: scale(1.15) translateY(3px);
    filter: drop-shadow(0 3px 8px rgba(255, 255, 255, 0.4));
}

.hand-emoji {
    display: block;
    font-size: 2.2rem;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.bg-refresh:hover .hand-emoji {
    transform: scale(1.2) translateY(3px);
}

.click-text {
    display: block;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 6px;
    letter-spacing: 0.5px;
    text-transform: capitalize;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.bg-refresh:hover .click-text {
    opacity: 1;
    transform: translateY(2px);
}

/* ===== PORTFOLIO ===== */
.portfolio {
    margin: 120px 0 80px 0;
    animation: fadeInUp 1.2s ease-out;
    content-visibility: auto;
    contain-intrinsic-size: auto 800px;
}

.portfolio h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    animation: titleFadeInScale 1s ease-out;
    will-change: transform;
}

.section-baseline {
    font-size: 1.3rem;
    color: #fff;
    max-width: 600px;
    margin: 0 auto 50px;
    line-height: 1.8;
    font-weight: 300;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.portfolio-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.portfolio-card:hover::before {
    left: 100%;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.portfolio-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
    font-weight: 700;
}

.project-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 15px auto;
    display: block;
    color: #00d4ff;
    stroke-width: 2;
    filter: drop-shadow(0 3px 6px rgba(0, 212, 255, 0.3));
    transition: all 0.3s ease;
}

.portfolio-card:hover .project-icon {
    transform: scale(1.08);
    color: #00ffff;
    filter: drop-shadow(0 5px 10px rgba(0, 255, 255, 0.5));
}

.portfolio-card p {
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
    flex: 1;
}

.portfolio-card a {
    display: inline-block;
    background: linear-gradient(135deg, #00d4ff, #0099ff);
    color: #fff;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.portfolio-card a:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

/* ===== PRESTATIONS BUTTONS ===== */
.btn-savoir-plus {
    display: inline-block;
    background: linear-gradient(135deg, #00d4ff, #0099ff);
    color: #fff !important;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    margin-top: 15px;
    border: 2px solid transparent;
}

.btn-savoir-plus:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5);
    background: linear-gradient(135deg, #00ffff, #00b3ff);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ===== FOOTER / CONTACT ===== */
.contact-section {
    margin-top: 80px;
    padding: 60px 20px;
    animation: fadeInUp 1.4s ease-out;
    content-visibility: auto;
    contain-intrinsic-size: auto 900px;
}

.contact-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: titleFadeInScale 1s ease-out;
    will-change: transform;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #00d4ff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item .icon {
    width: 24px;
    height: 24px;
    color: #00d4ff;
    transition: all 0.3s ease;
}

.contact-item:hover .icon {
    transform: scale(1.2) rotate(5deg);
    color: #fff;
}

.contact-item p, .contact-item a {
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #00d4ff;
}

/* ===== FORMULAIRE DE CONTACT ===== */
.contact-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-radius: 8px;
    font-family: inherit;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: linear-gradient(135deg, #00d4ff, #0099ff);
    color: #fff;
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* ===== ANIMATIONS ===== */
@keyframes titleFadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

@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);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .section-baseline {
        font-size: 1.1rem;
    }

    .portfolio h2,
    .contact-section h2 {
        font-size: 2rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-baseline {
        font-size: 1rem;
    }

    .portfolio h2,
    .contact-section h2 {
        font-size: 1.5rem;
    }

    .container {
        padding: 20px 15px;
    }
}

/* ===== FOOTER ===== */
.footer {
    margin-top: 60px;
    padding: 30px 20px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-content p {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #00d4ff;
}

.footer-links span {
    color: rgba(255, 255, 255, 0.4);
}

/* ===== SERVICE PAGES ===== */
.legal-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 30px 60px;
    position: relative;
    z-index: 1;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 30px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
}

.legal-section {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.legal-section h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 3px solid rgba(0, 212, 255, 0.6);
    padding-bottom: 15px;
}

.legal-section h2 {
    font-size: 1.8rem;
    color: #00d4ff;
    margin-top: 40px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-section h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.legal-section p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.legal-section ul {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.legal-section ul li {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    font-size: 1.02rem;
}

.legal-section ul li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: #00d4ff;
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1;
}

.legal-section ul li strong {
    color: #00ffff;
    font-weight: 600;
}

.legal-section a {
    color: #00d4ff;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.legal-section a:hover {
    color: #00ffff;
    border-bottom-color: #00ffff;
}

.section-icon {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    display: inline-block;
    color: #00d4ff;
    stroke-width: 2;
    filter: drop-shadow(0 2px 4px rgba(0, 212, 255, 0.3));
    transition: all 0.3s ease;
    vertical-align: middle;
}

.legal-section h2:hover .section-icon {
    color: #00ffff;
    filter: drop-shadow(0 3px 8px rgba(0, 255, 255, 0.5));
    transform: scale(1.1);
}

.highlight-box {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 153, 255, 0.1));
    border-left: 4px solid #00d4ff;
    border-radius: 12px;
    padding: 25px 30px;
    margin: 25px 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.15);
}

.highlight-box p {
    margin-bottom: 15px;
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

.highlight-box ul {
    margin-top: 15px;
}

.highlight-box strong {
    color: #fff;
    font-size: 1.15rem;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #00d4ff, #0099ff);
    color: #fff;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 35px rgba(0, 212, 255, 0.5);
    background: linear-gradient(135deg, #00ffff, #00b3ff);
}

@media (max-width: 768px) {
    .legal-wrapper {
        padding: 80px 20px 40px;
    }
    
    .legal-section {
        padding: 30px 25px;
    }
    
    .legal-section h1 {
        font-size: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-section h3 {
        font-size: 1.2rem;
    }
    
    .highlight-box {
        padding: 20px;
    }
}
