/* ================================
   VARIABLES GLOBALES
================================== */
:root {
    --sania-primary: #7c3aed;
    --sania-primary-dark: #5b21b6;
    --sania-accent: #a855f7;
    --sania-bg: #020617;
    --sania-bg-soft: #0b1120;
    --sania-bg-light: #f9fafb;
    --sania-text-main: #0f172a;
    --sania-text-muted: #6b7280;
    --sania-border-soft: #1e293b;
    --sania-radius-lg: 18px;
    --sania-radius-full: 999px;
    --sania-shadow-soft: 0 18px 60px rgba(15, 23, 42, 0.35);
    --sania-shadow-card: 0 16px 40px rgba(15, 23, 42, 0.28);
    --sania-transition: 0.2s ease-in-out;
}

/* ================================
   RESET SIMPLE
================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    color: var(--sania-text-main);
    background:
        radial-gradient(circle at 0% 0%, rgba(124, 58, 237, 0.25), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(15, 23, 42, 0.85), transparent 60%),
        #020617;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Containers */
.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================================
   HEADER
================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(18px);
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.82));
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 16px;
}

.logo img {
    height: 40px;
}

/* Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 26px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    position: relative;
    font-size: 0.93rem;
    color: #e5e7eb;
    letter-spacing: 0.02em;
    padding-bottom: 4px;
    transition: color var(--sania-transition);
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--sania-primary), var(--sania-accent));
    transition: width var(--sania-transition);
}

.main-nav a:hover {
    color: #ffffff;
}

.main-nav a.active {
    color: #ffffff;
}

.main-nav a.active::after {
    width: 100%;
}

.btn-nav {
    padding: 8px 16px;
    border-radius: var(--sania-radius-full);
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.5);
    font-size: 0.9rem;
}

.btn-nav.active,
.btn-nav:hover {
    border-color: transparent;
    background: linear-gradient(135deg, var(--sania-primary), var(--sania-accent));
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(88, 28, 135, 0.55);
}

/* Lang switcher */
.lang-switcher {
    display: flex;
    gap: 6px;
    font-size: 0.8rem;
}

.lang-link {
    padding: 6px 10px;
    border-radius: var(--sania-radius-full);
    border: 1px solid transparent;
    color: #e5e7eb;
    background: rgba(15, 23, 42, 0.5);
    cursor: pointer;
    transition: all var(--sania-transition);
}

.lang-link:hover {
    border-color: rgba(148, 163, 184, 0.7);
}

.lang-link.current-lang {
    border-color: transparent;
    background: linear-gradient(135deg, var(--sania-primary), var(--sania-accent));
    color: #ffffff;
}

/* ================================
   BOUTONS
================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: var(--sania-radius-full);
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--sania-transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--sania-primary), var(--sania-accent));
    color: #ffffff;
    box-shadow: 0 10px 35px rgba(88, 28, 135, 0.6);
}

.btn-primary:hover {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 18px 45px rgba(88, 28, 135, 0.85);
}

.btn-outline {
    border-color: rgba(249, 250, 251, 0.8);
    color: #f9fafb;
    background: transparent;
}

.btn-outline:hover {
    background: rgba(15, 23, 42, 0.5);
}

/* ================================
   HERO HOME
================================== */
.hero {
    position: relative;
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    padding: 40px 0 56px;
    color: #e5e7eb;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 0 0 40px 40px;
}

.hero-bg img,
.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.35) saturate(1.1);
    transform: scale(1.02);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 0% 0%, rgba(124, 58, 237, 0.6), transparent 55%),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.95));
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
    gap: 48px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.4rem, 4vw, 3.1rem);
    line-height: 1.1;
    margin: 0 0 12px;
}

.hero p {
    max-width: 580px;
    font-size: 0.98rem;
    color: #cbd5f5;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border-radius: var(--sania-radius-full);
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.6);
    font-size: 0.75rem;
    margin-bottom: 14px;
    color: #e5e7eb;
}

.hero-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.25);
}

.hero-buttons {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-subnote {
    margin-top: 12px;
    font-size: 0.78rem;
    color: #9ca3af;
}

/* Hero side panel */
.hero-side-card {
    background: radial-gradient(circle at 0% 0%, rgba(79, 70, 229, 0.45), rgba(15, 23, 42, 0.95));
    border-radius: 22px;
	height:100%;
    padding: 18px 18px 16px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: var(--sania-shadow-soft);
}

.hero-side-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.hero-side-title {
    font-size: 0.85rem;
    color: #e5e7eb;
    font-weight: 500;
}

.hero-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.hero-kpi {
    border-radius: 14px;
    padding: 10px 12px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.hero-kpi-label {
    font-size: 0.7rem;
    color: #9ca3af;
}

.hero-kpi-value {
    font-size: 1rem;
    font-weight: 600;
    color: #e5e7eb;
}

.hero-avatar-placeholder {
    margin-top: 10px;
    border-radius: 16px;
    min-height: 140px;
    background:
        radial-gradient(circle at 10% 0%, rgba(248, 250, 252, 0.2), transparent 55%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 64, 175, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e5e7eb;
    font-size: 0.9rem;
    text-align: center;
}

/* ================================
   GRID AVANTAGES (HOME)
================================== */
.features-grid {
    margin-top: 48px;
    margin-bottom: 56px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}

.feature-card {
    position: relative;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.9));
    border-radius: 18px;
    padding: 18px 18px 20px;
    box-shadow: var(--sania-shadow-card);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #e5e7eb;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    right: -25px;
    top: -25px;
    width: 70px;
    height: 70px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.26), transparent 60%);
}

.feature-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.feature-card p {
    margin: 0;
    font-size: 0.86rem;
    color: #cbd5f5;
}

/* ================================
   SECTION VIDEO
================================== */
.video-section {
    margin-bottom: 64px;
}

.video-section h2 {
    color: #e5e7eb;
    margin-bottom: 12px;
}

.video-wrapper {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: var(--sania-shadow-soft);
    background: radial-gradient(circle at 0% 0%, rgba(124, 58, 237, 0.4), rgba(15, 23, 42, 1));
}

.video-wrapper video {
    width: 100%;
    display: block;
}

/* ================================
   PAGES SECONDAIRES
================================== */
.page-wrapper {
    background: radial-gradient(circle at 0% 0%, rgba(30, 64, 175, 0.25), transparent 55%), transparent;
    color: #e5e7eb;
}

.page-section {
    padding: 48px 0;
}

.page-section h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.page-section h2 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.page-section p {
    max-width: 780px;
    font-size: 0.95rem;
    color: #cbd5f5;
}

.page-section ul {
    padding-left: 18px;
    color: #e5e7eb;
    font-size: 0.93rem;
}

.page-section li + li {
    margin-top: 4px;
}

/* Section alternative avec fond plus clair */
.section-alt {
    background: radial-gradient(circle at 0% 0%, rgba(148, 163, 184, 0.08), transparent 60%), #020617;
}

/* ================================
   CONTACT
================================== */
.contact-page {
    padding: 56px 0 72px;
}

.contact-page h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.contact-page p {
    max-width: 720px;
    color: #cbd5f5;
}

.contact-layout {
    margin-top: 32px;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 24px;
    align-items: flex-start;
}

.contact-info {
    font-size: 0.9rem;
    color: #cbd5f5;
}

.contact-info h2 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.contact-info-text {
    margin: 0 0 12px;
    color: #9ca3af;
}

.contact-info-block + .contact-info-block {
    margin-top: 14px;
}

.contact-info h3 {
    margin: 0 0 4px;
    font-size: 0.9rem;
    color: #e5e7eb;
}

.contact-info p {
    margin: 0;
    white-space: pre-line;
}

.contact-info a {
    color: #e5e7eb;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}


.contact-form {
    margin-top: 32px;
    max-width: 600px;
    background: rgba(15, 23, 42, 0.96);
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    padding: 20px 18px 22px;
    box-shadow: var(--sania-shadow-soft);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.82rem;
    color: #e5e7eb;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.65);
    padding: 8px 10px;
    font: inherit;
    font-size: 0.9rem;
    background: rgba(15, 23, 42, 0.95);
    color: #e5e7eb;
    transition: border-color var(--sania-transition), box-shadow var(--sania-transition), background var(--sania-transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--sania-primary);
    box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.85);
    background: rgba(15, 23, 42, 1);
}

/* Alerts */
.alert {
    padding: 10px 12px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 0.85rem;
}

.alert.success {
    background: #022c22;
    color: #6ee7b7;
    border: 1px solid #22c55e;
}

.alert.error {
    background: #450a0a;
    color: #fecaca;
    border: 1px solid #f97373;
}


/* ================================
   FOOTER
================================== */
.site-footer {
    background: #020617;
    border-top: 1px solid rgba(30, 41, 59, 0.9);
    color: #9ca3af;
    padding: 18px 0;
    margin-top: 40px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    font-size: 0.8rem;
}

.footer-logo {
    height: 26px;
    margin-bottom: 4px;
}

.footer-left p {
    margin: 0;
}

.footer-right p {
    margin: 0;
}

/* ================================
   RESPONSIVE
================================== */
@media (max-width: 900px) {
    .hero-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .hero-content {
        margin-top: 0;
    }

    .hero {
        padding-top: 32px;
    }

    .hero-bg {
        border-radius: 0 0 24px 24px;
    }

    .header-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding-top: 6px;
        padding-bottom: 6px;
        height: auto;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }

    .lang-switcher {
        order: -1;
    }
}

.field-error {
    margin-top: 4px;
    font-size: 0.78rem;
    color: #fca5a5;
}

.field-error-input {
    border-color: #f97373 !important;
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.6);
}

.hero-avatar-carousel {
     position: relative;
    width: 100%;
    aspect-ratio: 9 / 16; /* ou 4/3, selon tes images */
    overflow: hidden;
    border-radius: 16px;
	padding-top: 18px;
}

.hero-avatar-carousel img {
    width: 100%;
    height: 100%;
	border-radius: 16px;
    object-fit: cover;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(2, 6, 23, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: #fff;
    font-size: 24px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.15s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(124, 58, 237, 0.65);
    border-color: transparent;
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}
.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.carousel-track img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;      /* Empêche l’image de se réduire */
    min-width: 100%;     /* Chaque image prend toute la largeur */
}

.multi-carousel {
    width: 100%;
    overflow: hidden;
    padding: 8px 0;
}

.multi-carousel-track {
    display: flex;
    gap: 6px;
    animation: slide-left 20s linear infinite;
}

.carousel-item {
    width: calc((100% - (6px * 4)) / 5);
    height: 160px;
    border-radius: 20px;  /* Coins arrondis */
    overflow: hidden;      /* Coupe l’image qui dépasse */
    flex-shrink: 0;
    background: transparent;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;   /* Pour voir l’image entière */
    display: block;
}

/* Animation infinie */
@keyframes slide-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-side-card {
        max-width: 360px;
        margin: 0 auto;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-form {
        padding: 18px 14px 20px;
    }
}
