/* ========================================
   SOSW - Stay On Simple Ways
   Main Stylesheet
   ======================================== */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2600b0;
    --primary-light: #5009de;
    --primary-dark: #1a0080;
    --accent: #7c3aed;
    --dark: #1a0040;
    --light: #f5f3ff;
    --white: #ffffff;
    --text: #2d3748;
    --text-light: #6b7280;
    --gray: #f9fafb;
    --border-radius: 12px;
    --shadow-sm: 0 2px 8px rgba(38, 0, 176, 0.08);
    --shadow-md: 0 4px 16px rgba(38, 0, 176, 0.12);
    --shadow-lg: 0 8px 32px rgba(38, 0, 176, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 15px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== NAVIGATION ===== */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(38, 0, 176, 0.1);
    width: 100%;
    left: 0;
    right: 0;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.navbar.visible {
    transform: translateY(0);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo {
    height: 40px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ===== HERO ===== */
.hero {
    color: var(--white);
    padding: 6rem 2rem;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-bg-slide.active {
    opacity: 1;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-light) 100%);
    opacity: 0.65;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.06) 0%, transparent 50%);
    pointer-events: none;
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(5%, 5%); }
}

.hero-logo {
    max-width: 140px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-logo.visible { opacity: 1; transform: scale(1); }

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -1px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}
.hero-title.visible { opacity: 1; transform: translateY(0); }

.hero-slogan {
    font-size: 1.2rem;
    font-style: italic;
    opacity: 0;
    margin-bottom: 1.5rem;
    transition: opacity 0.8s ease 0.5s;
}
.hero-slogan.visible { opacity: 0.85; }

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.8;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.7s, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.7s;
}
.hero-subtitle.visible { opacity: 0.9; transform: translateY(0); }

/* ===== MAIN CONTENT ===== */
.main-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section { margin-bottom: 4rem; }
.section:last-child { margin-bottom: 0; }

.section-title {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-title.centered {
    text-align: center;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 3rem;
}

.section-text p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: var(--text);
    font-size: 1.05rem;
}
.section-text p:last-child { margin-bottom: 0; }

/* ===== DIVIDER ===== */
.divider {
    height: 3px;
    width: 60px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 2.5rem auto;
    border-radius: 2px;
}

/* ===== PROJECTS GRID ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(38, 0, 176, 0.08);
    transition: var(--transition);
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.project-card .project-logo {
    max-width: 100px;
    height: auto;
    margin-bottom: 1.25rem;
    transition: var(--transition);
    display: inline-block;
}

.project-card:hover .project-logo {
    transform: scale(1.1);
}

.project-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.project-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.btn-outline {
    display: inline-block;
    padding: 0.7rem 1.8rem;
    border: 2px solid var(--primary-light);
    color: var(--primary-light);
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-outline::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 ease;
}

.btn-outline:hover::before { left: 100%; }

.btn-outline:hover {
    background: var(--primary-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(80, 9, 222, 0.3);
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    color: var(--white);
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer.visible {
    opacity: 1;
    transform: translateY(0);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    list-style: none;
    margin-bottom: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--white);
    transition: width 0.3s ease;
}

.footer-links a:hover::after { width: 100%; }
.footer-links a:hover { color: var(--white); }

.footer-copyright {
    opacity: 0.7;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

.footer-copyright a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
}

.footer-copyright a:hover {
    color: var(--white);
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #5009de;
    color: #ffffff;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-consent.visible { transform: translateY(0); }

.cookie-consent-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    flex: 1;
}

.cookie-consent-message {
    flex: 1;
    min-width: 200px;
}

.cookie-consent-link {
    color: #ffffff;
    text-decoration: underline;
    white-space: nowrap;
    font-weight: 600;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.cookie-consent-link:hover { opacity: 1; }

.cookie-consent-btn {
    background: #ffffff;
    color: #5009de;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}

.cookie-consent-btn:hover {
    background: #f0f0f0;
    transform: scale(1.02);
}

.cookie-consent-btn:active {
    transform: scale(0.98);
}

@media (max-width: 600px) {
    .cookie-consent {
        flex-direction: column;
        padding: 1rem;
        text-align: center;
    }
    .cookie-consent-content {
        flex-direction: column;
        align-items: center;
    }
    .cookie-consent-btn {
        width: 100%;
    }
}

/* ===== BACK TO TOP ===== */
#backtotop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(38, 0, 176, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

#backtotop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backtotop:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(38, 0, 176, 0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0.75rem 1rem;
    }
    .nav-menu {
        gap: 1.25rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero {
        padding: 4rem 1.5rem;
        min-height: 50vh;
    }
    .hero-title { font-size: 2.2rem; }
    .hero-logo { max-width: 100px; }
    .main-content { padding: 2.5rem 1.25rem; }
    .projects-grid { grid-template-columns: 1fr; }
    .footer-links {
        gap: 1.25rem;
        flex-direction: column;
        align-items: center;
    }
    #backtotop {
        bottom: 20px;
        right: 20px;
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }
    .section-title { font-size: 1.5rem; }
}

/* ===== RGPD PAGE STYLES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header for RGPD page */
.header-section {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(38, 0, 176, 0.1);
}

.header-section.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-inner .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-inner .logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.logo-text span {
    color: var(--primary-light);
}

.header-inner .nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.header-inner .nav-menu a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.header-inner .nav-menu a:hover {
    color: var(--primary);
}

.header-inner .nav-menu a i {
    font-size: 1.1rem;
}

/* Content Section for RGPD page */
.content-section {
    padding: 4rem 0;
}

.content-section-alt {
    background-color: var(--gray);
}

/* RGPD Banner */
.rgpd-banner {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    background-size: 200% 200%;
    animation: heroGradient 8s ease infinite;
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

@keyframes heroGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.rgpd-banner h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.rgpd-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* RGPD Content */
.rgpd-content {
    max-width: 900px;
    margin: 0 auto;
}

.rgpd-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    color: var(--primary);
}

.rgpd-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
    color: var(--primary);
}

.rgpd-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.rgpd-content ul,
.rgpd-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.rgpd-content ul li,
.rgpd-content ol li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.rgpd-content a {
    color: var(--primary-light);
    text-decoration: underline;
}

.rgpd-content a:hover {
    color: var(--primary);
}

.rgpd-divider {
    height: 3px;
    width: 60px;
    background: var(--primary-light);
    margin: 2rem 0;
}

.rgpd-section {
    padding: 0.5rem 0;
}

/* Browser Links */
.browser-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.browser-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--light);
    color: var(--primary);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid rgba(38, 0, 176, 0.1);
}

.browser-link:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    text-decoration: none;
}

.browser-link i {
    font-size: 1.1rem;
}

/* Info Box */
.info-box {
    background: #f8f7ff;
    border-left: 4px solid var(--primary-light);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* Footer for RGPD page */
.footer-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 3rem 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-brand img {
    height: 50px;
    width: auto;
}

.footer-brand span {
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-section .footer-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-bottom: 0;
}

.footer-section .footer-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.footer-section .footer-links a:hover {
    color: var(--white);
}

.footer-section .footer-links a.active {
    color: var(--white);
    font-weight: 600;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Copyright Section */
.copyright-section {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
}

.copyright-section small {
    margin: 0 0.5rem;
}

.copyright-section a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
}

.copyright-section a:hover {
    color: var(--white);
}

/* RGPD Page Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 1rem;
        padding: 0.75rem 1rem;
    }
    .header-inner .nav-menu {
        gap: 1.25rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .rgpd-banner h1 {
        font-size: 1.8rem;
    }
    .browser-links {
        flex-direction: column;
    }
    .browser-link {
        width: 100%;
        justify-content: center;
    }
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    .footer-section .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}