:root {
    /* Colors */
    --primary: #0ea5e9; /* Sky 500 - Tech Blue */
    --primary-dark: #0284c7;
    --secondary: #0f172a; /* Slate 900 - Deep Dark */
    --accent: #6366f1; /* Indigo 500 */
    --background: #f8fafc; /* Slate 50 */
    --surface: #ffffff;
    --text-main: #1e293b; /* Slate 800 */
    --text-muted: #64748b; /* Slate 500 */
    --border: #e2e8f0;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    --gradient-surface: linear-gradient(180deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.4) 100%);

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: white;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--background);
    border-color: var(--text-muted);
}

.btn-block {
    width: 100%;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: -0.02em;
}

.logo-link {
    display: flex;
    align-items: center;
    padding: 0.35rem 0.6rem;
    background: transparent;
    border-radius: 0.5rem;
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    display: block;
}

/* Language switcher – harmonised with nav buttons */
.lang-switcher {
    display: inline-flex;
    align-items: stretch;
    margin-left: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--surface);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.lang-btn + .lang-btn {
    border-left: 1px solid var(--border);
}

.lang-btn img {
    display: block;
    border-radius: 2px;
    width: 20px;
    height: 15px;
    object-fit: contain;
}

.lang-btn:hover {
    background: var(--background);
}

.lang-btn.active {
    background: rgba(14, 165, 233, 0.12);
    box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.25);
}

.lang-btn.active:hover {
    background: rgba(14, 165, 233, 0.18);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:not(.btn):hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-stat strong {
    color: var(--primary);
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Abstract Shapes */
.abstract-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    z-index: -1;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: 10%;
    right: 10%;
    animation: float 10s infinite ease-in-out;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: var(--accent);
    bottom: 10%;
    left: 10%;
    animation: float 15s infinite ease-in-out reverse;
}

.shape-3 {
    width: 180px;
    height: 180px;
    background: rgba(14, 165, 233, 0.4);
    top: 50%;
    left: 30%;
    animation: float 12s infinite ease-in-out 1s;
}

/* Glass Cards – overlap stack, fond léger pour laisser voir l’arrière-plan */
.hero-cards-marquee {
    position: absolute;
    inset: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.hero-cards-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 2rem;
    width: max-content;
    padding: 0 2rem;
    animation: hero-cards-scroll 17.5s linear infinite;
    will-change: transform;
}

.hero-cards-track:hover {
    animation-play-state: paused;
}

@keyframes hero-cards-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.hero-visual .glass-card {
    flex-shrink: 0;
    width: 280px;
    min-height: 240px;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    position: relative;
    display: flex;
    flex-direction: column;
}

.hero-visual .glass-card .card-icon {
    flex-shrink: 0;
}

.hero-visual .glass-card h3 {
    flex-shrink: 0;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.hero-visual .glass-card p {
    flex: 1;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.card-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.35rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: white;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    border-radius: 1rem;
    background: var(--background);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.feature-card .icon-box {
    width: 56px;
    height: 56px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Security Section */
.security {
    padding: 6rem 0;
    background: var(--secondary);
    color: white;
    position: relative;
    overflow: hidden;
}

.security-container {
    position: relative;
    z-index: 1;
}

.security-header {
    margin-bottom: 3rem;
}

.security-header h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.security-header p {
    color: #94a3b8;
    font-size: 1.125rem;
    margin-bottom: 0;
}

.security-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.security-visual {
    position: relative;
}

.security-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.security-list li i {
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
    width: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.security-list strong {
    display: block;
    color: white;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.security-list p {
    margin-bottom: 0;
    font-size: 1rem;
}

.shield-glow {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, transparent 70%);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: shield-glow-pulse 4s ease-in-out infinite;
}

@keyframes shield-glow-pulse {
    0%, 100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

/* Team Section */
.team {
    padding: 6rem 0;
    background: var(--background);
}

.team-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.team-row--doctors {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.team-row--others {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
    max-width: 900px;
    margin: 0 auto;
}

.team-row--others .team-card {
    height: 100%;
    min-height: 320px;
}

@media (max-width: 900px) {
    .team-row--doctors {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-row--others {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

@media (max-width: 500px) {
    .team-row--doctors {
        grid-template-columns: 1fr;
    }
}

.team-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 320px;
    width: 100%;
    min-width: 0;
}

.team-card:hover {
    box-shadow: var(--shadow-md);
}

.team-card-link {
    display: block;
    margin: 0 auto 1.5rem;
    width: 120px;
    height: 120px;
    min-width: 120px;
    min-height: 120px;
    max-width: 120px;
    max-height: 120px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: var(--background);
}

.team-avatar {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: none;
    filter: grayscale(100%);
}

.team-linkedin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
    color: #0077b5;
    font-size: 1.25rem;
}

.team-linkedin:hover {
    color: var(--primary-dark);
}

.team-card-link .avatar-placeholder {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--gradient-primary);
}

.team-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.team-card h3 a {
    color: inherit;
    text-decoration: none;
}

.team-card h3 a:hover {
    color: var(--primary);
}

.team-card .role {
    display: block;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-content p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--secondary);
}

.social-link i {
    font-size: 1.5rem;
    color: #0077b5;
}

.contact-form {
    background: var(--background);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* News / Actualités Section (homepage) */
.news-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, #e0f2fe 0%, #f0f9ff 50%, #f8fafc 100%);
    border-top: 1px solid rgba(14, 165, 233, 0.08);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.news-grid-preview {
    margin-bottom: 2.5rem;
}

.news-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.news-card-meta {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.news-card-meta time {
    font-style: normal;
}

.news-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.news-card h3 a {
    color: var(--secondary);
}

.news-card h3 a:hover {
    color: var(--primary);
}

.news-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    flex: 1;
}

.news-card-link {
    font-weight: 500;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.95rem;
}

.news-card-link:hover {
    color: var(--primary-dark);
}

.news-card-link i {
    font-size: 1rem;
}

.news-cta {
    text-align: center;
}

/* Actualités page hero */
.news-hero {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 3rem;
    background: white;
}

.news-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.news-hero p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.news-list {
    padding-bottom: 6rem;
}

/* Article single page */
.article-page {
    padding-bottom: 4rem;
}

.article-header {
    padding-top: calc(var(--header-height) + 3rem);
    padding-bottom: 2rem;
    background: white;
    border-bottom: 1px solid var(--border);
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.article-back:hover {
    color: var(--primary-dark);
}

.article-header time {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.article-header h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.article-lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.article-content {
    padding-top: 2.5rem;
    max-width: 720px;
}

.article-featured-img {
    margin: 0 0 2rem 0;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.article-featured-img img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
}

.article-content p {
    margin-bottom: 1.25rem;
}

.article-content h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.article-content ul {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

/* Article content – theme alignment (tables, callouts, lists) */
.article-content table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.article-content thead {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
}

.article-content th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
}

.article-content td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

.article-content tbody tr:nth-child(even) {
    background: var(--background);
}

.article-content tbody tr:last-child td {
    border-bottom: none;
}

.article-content .article-callout {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-radius: 0.75rem;
    padding: 1.5rem 1.75rem;
    margin: 2rem 0;
}

.article-content .article-callout h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-content .article-callout h3 i {
    color: var(--primary);
}

.article-content .article-callout ul {
    margin-bottom: 0;
    padding-left: 1.25rem;
}

.article-content .article-callout li {
    margin-bottom: 0.35rem;
}

.article-content ul.article-list-icons {
    list-style: none;
    padding-left: 0;
}

.article-content ul.article-list-icons li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.article-content ul.article-list-icons li::before {
    content: "";
    flex-shrink: 0;
    width: 0.35rem;
    height: 0.35rem;
    margin-top: 0.6rem;
    border-radius: 50%;
    background: var(--primary);
}

.article-content h2 {
    color: var(--secondary);
}

.article-content h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

/* Vidéo intégrée (Google Drive, YouTube, etc.) */
.article-video {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--secondary);
}

.article-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.article-video::before {
    content: "";
    display: block;
    padding-top: 56.25%; /* 16:9 */
}

/* Carte lien vidéo (quand l’embed est bloqué, ex. Google Drive) */
.article-video--link {
    position: relative;
    margin: 2rem 0;
}

.article-video--link::before {
    display: none;
}

.video-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--secondary) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}

.video-link-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.video-link-icon {
    font-size: 3.5rem;
    color: var(--primary);
}

.video-link-label {
    font-weight: 600;
    font-size: 1.125rem;
}

.video-link-hint {
    font-size: 0.875rem;
    opacity: 0.8;
}

.article-end {
    margin-top: 3rem;
}

/* Footer */
footer {
    background: var(--secondary);
    color: white;
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-brand p {
    color: #94a3b8;
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: white;
}

/* Badge empreinte carbone (Website Carbon) – bas du site, dans le footer */
.footer-carbon {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .footer-carbon {
        justify-content: center;
    }
}

/* Partenaires – bandeau défilant */
.partenaires {
    padding: 4rem 0;
    background: var(--background);
    border-top: 1px solid var(--border);
    overflow: hidden;
}

.partenaires-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: var(--secondary);
}

.partenaires-marquee {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.partenaires-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 2rem;
    width: max-content;
    animation: partenaires-scroll 40s linear infinite;
    will-change: transform;
}

.partenaires-track:hover {
    animation-play-state: paused;
}

@keyframes partenaires-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.partenaire-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    min-height: 80px;
    padding: 1.25rem 1.5rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.partenaire-logo:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.partenaire-logo img {
    width: 100%;
    max-height: 48px;
    object-fit: contain;
    object-position: center;
}

/* Chatbot widget */
.chatbot-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    font-family: 'Inter', sans-serif;
}

.chatbot-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-primary);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chatbot-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(14, 165, 233, 0.5);
}

.chatbot-panel {
    position: absolute;
    bottom: calc(56px + 0.75rem);
    right: 0;
    width: 380px;
    max-width: calc(100vw - 2rem);
    max-height: 480px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.96);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    overflow: hidden;
}

.chatbot-widget.is-open .chatbot-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chatbot-header {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.25rem;
}

.chatbot-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--secondary);
    width: 100%;
}

.chatbot-subtitle {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
    width: 100%;
}

.chatbot-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: color 0.2s ease, background 0.2s ease;
}

.chatbot-close:hover {
    color: var(--text-main);
    background: rgba(0, 0, 0, 0.06);
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 200px;
    max-height: 320px;
}

.chatbot-msg {
    display: flex;
    align-items: flex-end;
    max-width: 85%;
}

.chatbot-msg--user {
    align-self: flex-end;
}

.chatbot-msg--bot {
    align-self: flex-start;
}

.chatbot-msg-bubble {
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    font-size: 0.9375rem;
    line-height: 1.45;
}

.chatbot-msg--user .chatbot-msg-bubble {
    background: var(--gradient-primary);
    color: white;
    border-bottom-right-radius: 0.25rem;
}

.chatbot-msg--bot .chatbot-msg-bubble {
    background: var(--background);
    color: var(--text-main);
    border: 1px solid var(--border);
    border-bottom-left-radius: 0.25rem;
}

.chatbot-form {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.6);
}

.chatbot-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.9375rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chatbot-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.chatbot-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.chatbot-send:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .chatbot-widget {
        bottom: 1rem;
        right: 1rem;
    }

    .chatbot-panel {
        bottom: calc(56px + 0.5rem);
        right: 0;
        left: 0;
        width: calc(100vw - 2rem);
        margin: 0 1rem;
        max-height: 70vh;
    }

    .chatbot-messages {
        max-height: 40vh;
    }
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}


/* Responsive */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-content,
    .security-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-visual {
        height: 300px;
        order: -1;
    }

    .hero-visual .glass-card {
        width: 260px;
        min-height: 200px;
        padding: 1.5rem;
    }

    .hero-cards-track {
        gap: 1.5rem;
        padding: 0 1rem;
        animation-duration: 22.5s;
    }

    .nav-links {
        display: none; /* Hidden on mobile for now */
    }

    .mobile-menu-btn {
        display: block;
    }

    .lang-switcher {
        margin-left: 0.5rem;
    }

    .lang-btn {
        width: 36px;
        height: 36px;
    }

    .lang-btn img {
        width: 18px;
        height: 14px;
    }

    .partenaires-track {
        gap: 1.25rem;
        animation-duration: 35s;
    }

    .partenaire-logo {
        width: 130px;
        min-height: 72px;
        padding: 1rem 1.25rem;
    }

    .partenaire-logo img {
        max-height: 40px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-hero h1,
    .article-header h1 {
        font-size: 1.75rem;
    }

    .article-lead {
        font-size: 1.05rem;
    }
}
