/* ============================================
   Smt. - Securite. Media. Technologie.
   Modern Lavender / Glassmorphism Theme
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #1a1450;
    --navy-light: #2d2575;
    --lavender: #c4b8f0;
    --lavender-light: #ddd6f3;
    --lavender-bg: #eae6f6;
    --lavender-pale: #f0edf8;
    --periwinkle: #9b8ec4;
    --text-dark: #1a1450;
    --text-body: #4a4270;
    --text-light: #7b74a0;
    --bg: #f4f1fa;
    --bg-white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px rgba(26, 20, 80, 0.08);
    --glass-blur: blur(20px);
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1340px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-body);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--navy);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--periwinkle);
}

ul, ol {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.15;
    color: var(--navy);
    letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.15rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-body);
    line-height: 1.7;
}

/* --- Glass Card --- */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--navy);
    color: #fff;
}

.btn-primary:hover {
    background: var(--navy-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 20, 80, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--navy);
}

.btn-outline:hover {
    background: var(--navy);
    color: #fff;
    transform: translateY(-2px);
}

.btn-glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    color: var(--navy);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

.btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: #fff;
    border: none;
    flex-shrink: 0;
}

/* --- Header / Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(244, 241, 250, 0.85);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 12px 0;
    box-shadow: 0 1px 20px rgba(26, 20, 80, 0.06);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
}

.nav-logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.5px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-btn-outline {
    padding: 10px 24px;
    border: 1.5px solid var(--navy);
    border-radius: 50px;
    color: var(--navy);
    font-size: 0.85rem;
    font-weight: 500;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.nav-btn-outline:hover {
    background: var(--navy);
    color: #fff;
}

.nav-btn-filled {
    padding: 10px 24px;
    border: 1.5px solid var(--navy);
    border-radius: 50px;
    color: #fff;
    background: var(--navy);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-btn-filled:hover {
    background: var(--navy-light);
}

.nav-btn-filled svg {
    width: 16px;
    height: 16px;
}

/* Mobile hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    margin-left: 12px;
}

.nav-toggle span {
    width: 28px;
    height: 2px;
    background: var(--navy);
    transition: var(--transition);
    border-radius: 2px;
}

/* Mobile nav panel */
.nav-links {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transition: right 0.4s ease;
}

.nav-links.active {
    right: 0;
    display: flex;
}

.nav-links a {
    color: var(--navy);
    font-size: 1.5rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--periwinkle);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg);
    overflow: hidden;
    padding: 100px 0 60px;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    width: 100%;
}

.hero-video-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    box-shadow: 0 20px 60px rgba(26, 20, 80, 0.12);
}

.hero-video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-glass-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-title {
    font-size: 2.8rem;
    color: var(--navy);
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 500;
    font-style: italic;
}

.hero-cta-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-cta-text {
    font-size: 0.95rem;
    color: var(--text-body);
    margin: 0;
}

.hero-brand {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-brand-text {
    font-size: clamp(8rem, 15vw, 14rem);
    font-weight: 700;
    color: var(--navy);
    line-height: 0.9;
    letter-spacing: -0.04em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.hero-scroll-indicator {
    position: absolute;
    left: 0;
    bottom: 40px;
    writing-mode: vertical-rl;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-scroll-indicator::before {
    content: '';
    display: block;
    width: 1px;
    height: 40px;
    background: var(--navy);
}

/* --- Sections --- */
.section {
    padding: 100px 0;
}

.section-lavender {
    background: var(--lavender-pale);
}

.section-white {
    background: var(--bg-white);
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-light);
}

.section-label {
    display: inline-block;
    color: var(--periwinkle);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(26, 20, 80, 0.1);
}

.service-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card-body {
    padding: 28px;
}

.service-card-body h3 {
    margin-bottom: 10px;
    font-size: 1.15rem;
    font-weight: 600;
}

.service-card-body p {
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: var(--text-light);
}

.service-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(26, 20, 80, 0.06);
    font-size: 0.8rem;
    color: var(--text-light);
}

.service-card-meta svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--navy);
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 16px;
}

.service-card-link:hover {
    gap: 10px;
    color: var(--periwinkle);
}

/* --- Stats --- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-item {
    text-align: center;
    padding: 40px 20px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.stat-item h3 {
    font-size: 2.8rem;
    color: var(--navy);
    margin-bottom: 8px;
    font-weight: 700;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* --- About section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(26, 20, 80, 0.1);
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-content .section-label {
    display: block;
}

.about-list {
    margin-top: 24px;
}

.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-body);
    font-size: 0.95rem;
}

.about-list li svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--periwinkle);
    margin-top: 2px;
}

/* --- Partners --- */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 48px;
}

.partners-grid img {
    height: 36px;
    width: auto;
    filter: grayscale(100%) opacity(0.35);
    transition: var(--transition);
}

.partners-grid img:hover {
    filter: grayscale(0%) opacity(1);
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    background: rgba(155, 142, 196, 0.12);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon svg {
    width: 20px;
    height: 20px;
    color: var(--periwinkle);
}

.contact-info-item h4 {
    margin-bottom: 4px;
}

.contact-info-item p {
    margin: 0;
    font-size: 0.9rem;
}

/* --- Forms --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(26, 20, 80, 0.1);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--periwinkle);
    box-shadow: 0 0 0 3px rgba(155, 142, 196, 0.15);
    background: rgba(255, 255, 255, 0.9);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* --- Footer --- */
.footer {
    background: var(--bg);
    color: var(--text-body);
    padding: 60px 0 40px;
    border-top: 1px solid rgba(26, 20, 80, 0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    font-size: 0.8rem;
    color: var(--periwinkle);
    font-weight: 500;
}

.footer-col h4 {
    display: none;
}

.footer-col a {
    display: block;
    color: var(--text-body);
    font-size: 0.9rem;
    padding: 3px 0;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--navy);
}

.footer-col p {
    font-size: 0.9rem;
    margin: 0;
    padding: 3px 0;
    color: var(--text-body);
}

.footer-bottom {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-light);
    padding-top: 20px;
    border-top: 1px solid rgba(26, 20, 80, 0.06);
}

/* --- Page Header (inner pages) --- */
.page-header {
    position: relative;
    background: var(--bg);
    padding: 140px 0 60px;
    overflow: hidden;
}

.page-header-video {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    border-radius: 0 0 0 var(--radius-xl);
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    color: var(--navy);
    font-size: 3rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.page-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.8rem;
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb a:hover {
    color: var(--navy);
}

.breadcrumb span {
    color: var(--text-light);
}

/* --- Service Detail --- */
.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.service-detail-img {
    border-radius: var(--radius-xl);
    width: 100%;
    box-shadow: 0 20px 60px rgba(26, 20, 80, 0.1);
}

.service-detail-info h2 {
    margin-bottom: 16px;
}

.service-detail-info p {
    font-size: 0.95rem;
    line-height: 1.8;
}

.service-detail-meta {
    display: flex;
    gap: 20px;
    margin: 24px 0;
    padding: 20px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
}

.service-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.service-detail-meta-item svg {
    color: var(--periwinkle);
}

/* --- Blog --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-empty {
    text-align: center;
    padding: 80px 20px;
    grid-column: 1 / -1;
}

.blog-empty svg {
    width: 64px;
    height: 64px;
    color: var(--lavender);
    margin-bottom: 20px;
}

/* --- Legal pages --- */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px;
}

.legal-content h2 {
    font-size: 1.4rem;
    margin: 40px 0 16px;
}

.legal-content h3 {
    font-size: 1.15rem;
    margin: 28px 0 12px;
}

.legal-content p,
.legal-content li {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-body);
}

.legal-content ul,
.legal-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal-content ul li { list-style: disc; margin-bottom: 8px; }
.legal-content ol li { list-style: decimal; margin-bottom: 8px; }

/* --- Map --- */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(26, 20, 80, 0.08);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Alerts --- */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(134, 239, 172, 0.15);
    color: #166534;
    border: 1px solid rgba(134, 239, 172, 0.3);
}

.alert-error {
    background: rgba(252, 165, 165, 0.15);
    color: #991b1b;
    border: 1px solid rgba(252, 165, 165, 0.3);
}

/* --- Video Section --- */
.video-section {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    margin: 0 40px;
    aspect-ratio: 21 / 9;
}

.video-section video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-section .glass-overlay-big {
    position: absolute;
    bottom: 40px;
    left: 40px;
    padding: 40px 50px;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
}

.video-section .glass-overlay-big h2 {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-brand-text { font-size: 8rem; }
    .hero-title { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.75rem; }

    .container { padding: 0 20px; }

    .nav-right .nav-btn-outline,
    .nav-right .nav-btn-filled { display: none; }

    .nav-toggle { display: flex; }

    .hero { min-height: auto; padding: 120px 0 60px; }
    .hero-layout { grid-template-columns: 1fr; }
    .hero-brand { display: none; }
    .hero-title { font-size: 2rem; }
    .hero-scroll-indicator { display: none; }

    .section { padding: 60px 0; }

    .about-grid,
    .contact-grid,
    .service-detail { grid-template-columns: 1fr; gap: 40px; }

    .services-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr 1fr; gap: 16px; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

    .form-row { grid-template-columns: 1fr; }

    .service-detail-meta { flex-direction: column; gap: 12px; }

    .video-section { margin: 0 20px; aspect-ratio: 16/9; }
    .video-section .glass-overlay-big { padding: 24px; bottom: 20px; left: 20px; }
    .video-section .glass-overlay-big h2 { font-size: 2.5rem; }

    .page-header h1 { font-size: 2.2rem; }
    .page-header-video { width: 100%; opacity: 0.15; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.6rem; }
    .stats-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
