:root {
    --bg: #f8fafc;
    --bg-gradient: radial-gradient(circle at top, #eef2ff, #f8fafc 60%);
    --text: #0f172a;
    --text-soft: #64748b;

    --primary: #4f46e5;
    --primary-soft: #eef2ff;

    --border: #e2e8f0;
    --card-bg: rgba(255, 255, 255, 0.7);

    --radius: 16px;
    --container: 1100px;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-gradient);
    color: var(--text);
}

/* LAYOUT */
.container {
    width: min(92%, var(--container));
    margin: 0 auto;
}

.nav a {
    margin-left: 24px;
    color: var(--text-soft);
}

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

/* HERO */
.hero {
    padding: 90px 0 50px;
    text-align: center;
}

.hero h1 {
    font-size: 2.6rem;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero p {
    color: var(--text-soft);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* SECTION */
.entities {
    padding: 60px 0;
}

.section-header {
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-soft);
}

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

.entity-card > * {
    transform: translateZ(8px);
}

.entity-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 16px 40px rgba(79, 70, 229, 0.12);
}

.entity-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;

    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.entity-location {
    font-size: 0.8rem;
    color: var(--text-soft);
}

/* TEXT */
.entity-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.entity-description {
    font-size: 0.95rem;
    color: var(--text-soft);
    margin-bottom: 15px;
}

/* DOMAINS */
.domain-badge {
    background: var(--primary-soft);
    color: var(--primary);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    margin-right: 6px;
    margin-bottom: 6px;
    display: inline-block;
}

/* LINK */
.entity-link {
    margin-top: 10px;
    display: inline-block;
    font-weight: 500;
    color: var(--primary);
}

.entity-link:hover {
    text-decoration: underline;
}

/* FOOTER */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
    color: var(--text-soft);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .entity-grid {
        grid-template-columns: 1fr;
    }
}

.entity-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.site-header.scrolled {
    background: rgba(255,255,255,0.9);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

/* Apparition au scroll */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Cartes plus vivantes */
.entity-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.entity-card:hover {
    transform: translateY(-8px);
    border-color: #c7d2fe;
    box-shadow: 0 16px 40px rgba(79, 70, 229, 0.12);
}

/* Boutons / liens */
.entity-link {
    margin-top: 10px;
    display: inline-block;
    font-weight: 500;
    color: var(--primary);
    transition: transform 0.2s ease, color 0.2s ease;
}

.entity-link:hover {
    transform: translateX(4px);
    color: #3730a3;
}

/* Logo */
.entity-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 12px;
    background: white;
    padding: 4px;
    border: 1px solid #e5e7eb;
}

.hero h1,
.hero p {
    animation: fadeUp 0.8s ease both;
}

.hero p {
    animation-delay: 0.15s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-gradient);
    color: var(--text);
    position: relative;
    overflow-x: hidden;
}

/* Fond animé premium discret */
.animated-background {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(80px);
    opacity: 0.35;
    animation: floatOrb 16s ease-in-out infinite;
}

.orb-1 {
    width: 320px;
    height: 320px;
    background: rgba(99, 102, 241, 0.20);
    top: -60px;
    left: -40px;
    animation-delay: 0s;
}

.orb-2 {
    width: 280px;
    height: 280px;
    background: rgba(14, 165, 233, 0.16);
    top: 30%;
    right: -60px;
    animation-delay: 3s;
}

.orb-3 {
    width: 260px;
    height: 260px;
    background: rgba(168, 85, 247, 0.14);
    bottom: -40px;
    left: 25%;
    animation-delay: 6s;
}

@keyframes floatOrb {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    25% {
        transform: translate3d(20px, -18px, 0) scale(1.04);
    }
    50% {
        transform: translate3d(-12px, 16px, 0) scale(0.98);
    }
    75% {
        transform: translate3d(14px, 10px, 0) scale(1.02);
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
}

.entity-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s ease;
}

.entity-link:hover {
    transform: translateX(4px);
}

/* Entity detail */
.entity-hero {
    position: relative;
    z-index: 1;
    padding: 92px 0 48px;
}

.entity-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: start;
}

.entity-hero-content,
.entity-contact-card,
.content-panel,
.gallery-card,
.empty-gallery {
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.74));
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.entity-hero-content {
    border-radius: 32px;
    padding: 34px;
}

.entity-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.entity-hero-logo,
.entity-hero-avatar {
    width: 74px;
    height: 74px;
    border-radius: 22px;
}

.entity-hero-logo {
    object-fit: cover;
    background: white;
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.entity-hero-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 14px 28px rgba(79, 70, 229, 0.20);
}

.entity-hero-location {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    color: #475569;
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.entity-hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
}

.entity-hero-description {
    color: var(--text-soft);
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 22px;
}

.entity-hero-domains {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.entity-contact-card {
    border-radius: 28px;
    padding: 28px;
}

.entity-contact-card h2 {
    font-size: 1.35rem;
    margin-bottom: 18px;
}

.contact-list {
    display: grid;
    gap: 18px;
}

.contact-item {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.contact-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.contact-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contact-item p,
.contact-item a {
    color: var(--text-soft);
}

.contact-item a:hover {
    color: var(--primary);
}

.entity-content-section {
    position: relative;
    z-index: 1;
    padding: 14px 0 44px;
}

.entity-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.entity-main {
    display: grid;
    gap: 28px;
}

.content-panel {
    border-radius: 30px;
    padding: 32px;
}

.content-panel h2 {
    font-size: 1.8rem;
    margin-bottom: 14px;
    letter-spacing: -0.03em;
}

.rich-text,
.rich-text p,
.domain-card p,
.empty-text {
    color: var(--text-soft);
    line-height: 1.85;
}

.domain-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 18px;
}

.domain-card {
    padding: 22px;
    border-radius: 22px;
    background: rgba(248, 250, 252, 0.88);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.domain-card h3 {
    margin-bottom: 8px;
    font-size: 1.08rem;
}

.entity-gallery-section {
    position: relative;
    z-index: 1;
    padding: 24px 0 100px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.gallery-card {
    overflow: hidden;
    border-radius: 26px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.10);
}

.gallery-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.gallery-card-body {
    padding: 18px 20px 22px;
}

.gallery-card-body h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.gallery-card-body p {
    color: var(--text-soft);
    line-height: 1.7;
}

.empty-gallery {
    grid-column: 1 / -1;
    text-align: center;
    border-radius: 28px;
    padding: 38px;
}

.empty-gallery h3 {
    margin-bottom: 8px;
}

.empty-gallery p {
    color: var(--text-soft);
}

@media (max-width: 1100px) {
    .entity-hero-grid,
    .domain-list,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .entity-hero {
        padding-top: 76px;
    }

    .entity-hero-content,
    .entity-contact-card,
    .content-panel {
        padding: 24px;
    }

    .entity-hero-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .entity-hero-content h1 {
        font-size: 2.2rem;
    }

    .gallery-image {
        height: 220px;
    }
}

.entity-cover-wrapper {
    margin-top: 30px;
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 16 / 6; /* 👈 clé */
}

.entity-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.4s ease;
}

.entity-cover-wrapper:hover .entity-cover {
    transform: scale(1.05);
}

/* léger overlay premium */
.entity-cover-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15,23,42,0.05),
        rgba(15,23,42,0.25)
    );
}

/* Hero premium entity detail */
.entity-hero-premium {
    position: relative;
    z-index: 1;
    padding: 72px 0 26px;
}

.entity-hero-shell {
    position: relative;
    min-height: 420px;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
    background: linear-gradient(135deg, #334155, #0f172a);
}

.entity-hero-background {
    position: absolute;
    inset: 0;
}

.entity-hero-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
}

.entity-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(15, 23, 42, 0.82) 0%, rgba(15, 23, 42, 0.55) 45%, rgba(15, 23, 42, 0.28) 100%),
        linear-gradient(to top, rgba(15, 23, 42, 0.45), rgba(15, 23, 42, 0.08));
}

.entity-hero-body {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 42px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 420px;
}

.entity-hero-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.entity-hero-logo,
.entity-hero-avatar {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    flex-shrink: 0;
}

.entity-hero-logo {
    object-fit: cover;
    background: white;
    border: 1px solid rgba(255,255,255,0.35);
}

.entity-hero-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 1.45rem;
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(79, 70, 229, 0.28);
}

.entity-hero-location {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.84rem;
    color: white;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255,255,255,0.16);
    backdrop-filter: blur(10px);
}

.section-tag.light {
    color: #c4b5fd;
}

.entity-hero-body h1 {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
}

.entity-hero-description.light {
    color: rgba(255,255,255,0.82);
    font-size: 1.05rem;
    line-height: 1.85;
    max-width: 680px;
    margin-bottom: 22px;
}

.domain-badge.light {
    background: rgba(255,255,255,0.12);
    color: white;
    border: 1px solid rgba(255,255,255,0.14);
}

.domain-badge.light.muted {
    color: rgba(255,255,255,0.78);
}

.entity-contact-floating {
    max-width: 420px;
    margin: -56px 0 0 auto;
    position: relative;
    z-index: 3;
    padding: 28px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.82));
    border: 1px solid rgba(255,255,255,0.82);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.10);
    backdrop-filter: blur(16px);
}

.entity-contact-floating h2 {
    font-size: 1.3rem;
    margin-bottom: 18px;
}

/* responsive */
@media (max-width: 900px) {
    .entity-hero-shell {
        min-height: auto;
    }

    .entity-hero-body {
        min-height: auto;
        padding: 28px;
    }

    .entity-contact-floating {
        max-width: 100%;
        margin: 18px 0 0 0;
    }

    .entity-hero-topline {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .entity-hero-premium {
        padding-top: 56px;
    }

    .entity-hero-body h1 {
        font-size: 2.2rem;
    }

    .entity-hero-logo,
    .entity-hero-avatar {
        width: 64px;
        height: 64px;
        border-radius: 18px;
    }
}

/* Generic pages */
.page-hero {
    position: relative;
    z-index: 1;
    padding: 88px 0 36px;
}

.page-hero-inner {
    max-width: 820px;
}

.page-hero h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
}

.page-hero p {
    color: var(--text-soft);
    font-size: 1.06rem;
    line-height: 1.85;
    max-width: 760px;
}

.page-section {
    position: relative;
    z-index: 1;
    padding: 10px 0 90px;
}

.content-layout {
    display: grid;
    gap: 24px;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 18px;
}

.value-card {
    padding: 22px;
    border-radius: 22px;
    background: rgba(248, 250, 252, 0.88);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.value-card h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.value-card p {
    color: var(--text-soft);
    line-height: 1.75;
}

@media (max-width: 900px) {
    .value-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact page */
.contact-section {
    position: relative;
    z-index: 1;
    padding: 12px 0 90px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
    align-items: start;
}

.contact-side {
    display: grid;
    gap: 24px;
}

.contact-form {
    margin-top: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.form-group {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(79, 70, 229, 0.35);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.08);
    background: rgba(255, 255, 255, 0.96);
}

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

.contact-info-list {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.contact-info-item {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.contact-info-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.contact-info-item p,
.contact-info-item a {
    color: var(--text-soft);
}

.contact-info-item a:hover {
    color: var(--primary);
}

.contact-highlight p {
    color: var(--text-soft);
    line-height: 1.8;
    margin: 10px 0 16px;
}

@media (max-width: 980px) {
    .contact-grid,
    .form-row {
        grid-template-columns: 1fr;
    }
}

.messages-wrapper {
    margin-bottom: 20px;
}

.alert {
    padding: 16px 18px;
    border-radius: 16px;
    font-weight: 600;
}

.alert-success {
    background: rgba(16, 185, 129, 0.10);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.18);
}

.alert-error {
    background: rgba(239, 68, 68, 0.10);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.18);
}

.form-error {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #b91c1c;
}

.alert-error {
    background: rgba(239, 68, 68, 0.10);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.18);
}

.hp-field {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.home-showcase {
    width: 100%;
    background: #ffffff;
    overflow: hidden;
}

.showcase-images {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    height: 380px;
}

.showcase-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* HEADER PREMIUM */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    transition: all 0.25s ease;

    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    padding: 10px 0;
}

/* LOGO */
.logo-brand {
    display: flex;
    align-items: center;
    gap: 10px;

    font-weight: 700;
    font-size: 1.2rem;
    color: #0f172a;
}

.logo-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #0ea5e9);
}

/* NAV LINKS */
.nav {
    display: flex;
    gap: 28px;
}

.nav-link {
    position: relative;
    color: #64748b;
    font-weight: 500;
    transition: color 0.25s ease;
}

.nav-link:hover {
    color: #0f172a;
}

/* underline animé */
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;

    width: 0%;
    height: 2px;

    background: linear-gradient(90deg, #4f46e5, #0ea5e9);
    transition: width 0.25s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* CTA bouton */
.nav-cta {
    padding: 10px 18px;
    border-radius: 999px;

    font-weight: 600;
    color: white;

    background: linear-gradient(135deg, #4f46e5, #6366f1);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);

    transition: all 0.25s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(79, 70, 229, 0.3);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .nav {
        display: none;
    }
}

.news-section {
    position: relative;
    z-index: 1;
    padding: 80px 0;
}

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

.news-card {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.news-cover {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.news-body {
    padding: 22px;
}

.news-body h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.news-body p {
    color: var(--text-soft);
    line-height: 1.75;
    margin-bottom: 18px;
}

.news-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.news-actions a {
    color: var(--primary);
    font-weight: 700;
}

.news-actions a:hover {
    color: #3730a3;
}

@media (max-width: 980px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

.clients-section {
    position: relative;
    z-index: 1;
    padding: 70px 0;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.client-card {
    min-height: 130px;
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
}

.client-logo {
    max-width: 120px;
    max-height: 56px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.82;
    transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.client-card:hover .client-logo {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.04);
}

.client-card span {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-soft);
}

@media (max-width: 1100px) {
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.85);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #0f172a;
    border-radius: 999px;
    transition: 0.25s ease;
}

.mobile-cta {
    display: none;
}

@media (max-width: 980px) {
    .navbar {
        position: relative;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .desktop-cta {
        display: none;
    }

    .nav {
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;

        display: grid;
        gap: 8px;

        padding: 16px;
        border-radius: 22px;

        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(226, 232, 240, 0.9);
        box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
        backdrop-filter: blur(16px);

        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: 0.25s ease;
    }

    .nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-link {
        padding: 13px 14px;
        border-radius: 14px;
    }

    .nav-link:hover {
        background: #eef2ff;
    }

    .mobile-cta {
        display: inline-flex;
        margin-top: 6px;
        justify-content: center;
    }

    .menu-toggle.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

.section-actions {
    margin-top: 22px;
    display: flex;
    justify-content: center;
}

/* HERO */
.news-detail-hero {
    padding: 100px 0 40px;
}

.news-detail-header {
    max-width: 820px;
    margin: 0 auto 40px;
    text-align: center;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--accent);
    transition: all 0.2s ease;
}

.back-link:hover {
    transform: translateX(-3px);
    color: var(--primary);
}

/* TAG COLORÉ */
.section-tag.gradient {
    display: inline-block;
    margin-bottom: 18px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: white;
    background: linear-gradient(135deg, #6366f1, #0ea5e9);
}

.news-detail-header h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 14px;
}

.news-date {
    color: var(--text-soft);
    font-size: 0.95rem;
}

/* COVER */
.news-detail-cover {
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.12);
}

.news-detail-cover img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

/* SECTION */
.news-detail-section {
    padding: 60px 0 100px;
}

/* CARD PRINCIPALE */
.news-detail-card {
    max-width: 820px;
    margin: 0 auto;
    padding: 40px;

    border-radius: 30px;

    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.9);

    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

/* TEXTE */
.rich-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-soft);
}

/* ACTIONS */
.news-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 36px;
}

/* BOUTONS */
.btn-primary {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(14, 165, 233, 0.1);
    color: #0369a1;
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: 700;
}

.btn-secondary:hover {
    background: rgba(14, 165, 233, 0.2);
}

/* RESPONSIVE */
@media (max-width: 700px) {
    .news-detail-hero {
        padding: 80px 0 30px;
    }

    .news-detail-cover img {
        height: 260px;
    }

    .news-detail-card {
        padding: 26px;
    }

    .news-detail-actions {
        flex-direction: column;
    }
}

.news-back-bottom {
    margin-top: 40px;
    text-align: center;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 12px 18px;
    border-radius: 999px;

    font-weight: 700;

    color: #0f172a;
    background: rgba(241, 245, 249, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.9);

    transition: all 0.25s ease;
}

.back-button:hover {
    background: #eef2ff;
    color: var(--primary);
    transform: translateX(-4px);
}

.site-footer {
    margin-top: 80px;
    padding: 40px 0;

    background: rgba(15, 23, 42, 0.96);
    color: rgba(255, 255, 255, 0.75);
}

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

.footer-left strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.05rem;
    color: white;
}

.footer-left p {
    font-size: 0.85rem;
}

.footer-right {
    display: flex;
    gap: 20px;
}

.footer-right a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

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

/* responsive */
@media (max-width: 700px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

.entity-clean-hero {
    position: relative;
    z-index: 1;
    padding: 86px 0 54px;
}

.entity-clean-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 48px;
    align-items: center;
}

.breadcrumb-link {
    display: inline-flex;
    margin-bottom: 28px;
    color: var(--primary);
    font-weight: 700;
}

.entity-clean-logo-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.entity-clean-logo,
.entity-clean-avatar {
    width: 68px;
    height: 68px;
    border-radius: 20px;
}

.entity-clean-logo {
    object-fit: contain;
    padding: 8px;
    background: white;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.entity-clean-avatar {
    display: grid;
    place-items: center;
    color: white;
    font-weight: 900;
    font-size: 1.4rem;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.entity-clean-location {
    padding: 9px 14px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 0.86rem;
    font-weight: 800;
}

.entity-clean-content h1 {
    max-width: 680px;
    margin: 14px 0 20px;
    font-size: clamp(2.6rem, 5vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.entity-clean-lead {
    max-width: 620px;

    margin: 30px 0 36px;
    padding-left: 22px;

    border-left: 5px solid #4f46e5;

    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-weight: 500;
    line-height: 1.6;

    color: #334155;
}

.entity-clean-domains {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.entity-clean-media {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.entity-clean-media img {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.entity-clean-placeholder {
    height: 470px;
    display: grid;
    place-items: center;
    color: #4338ca;
    font-weight: 900;
    font-size: 1.4rem;
}

.entity-clean-info {
    position: relative;
    z-index: 1;
    padding: 32px 0 76px;
}

.entity-info-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 26px;
    align-items: start;
}

.entity-panel {
    padding: 34px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
}

.entity-panel h2 {
    margin-bottom: 18px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    letter-spacing: -0.04em;
}

.contact-list-clean {
    display: grid;
    gap: 18px;
}

.contact-list-clean div {
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.contact-list-clean div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.contact-list-clean strong {
    display: block;
    margin-bottom: 6px;
    color: #2563eb;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contact-list-clean p,
.contact-list-clean a {
    color: var(--text-soft);
}

.contact-list-clean a:hover {
    color: var(--primary);
}

.entity-expertise-section {
    position: relative;
    z-index: 1;
    padding: 28px 0 80px;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.expertise-card {
    padding: 28px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.72));
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
}

.expertise-card span {
    display: inline-flex;
    margin-bottom: 18px;
    color: #7c3aed;
    font-weight: 900;
}

.expertise-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.expertise-card p {
    color: var(--text-soft);
    line-height: 1.75;
}

.clean-gallery {
    padding-top: 10px;
}

@media (max-width: 1050px) {
    .entity-clean-grid,
    .entity-info-grid,
    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .entity-clean-media,
    .entity-clean-media img,
    .entity-clean-placeholder {
        min-height: 330px;
        height: 330px;
    }
}

@media (max-width: 640px) {
    .entity-clean-hero {
        padding: 62px 0 36px;
    }

    .entity-panel,
    .expertise-card {
        padding: 24px;
    }

    .entity-clean-content h1 {
        font-size: 2.5rem;
    }

    .entity-clean-logo-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

.news-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* BASE */
.btn-news {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 16px;
    border-radius: 999px;

    font-size: 0.85rem;
    font-weight: 700;

    text-decoration: none;
    transition: all 0.25s ease;
}

/* BOUTON PRINCIPAL */
.btn-news.primary {
    color: white;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.25);
}

.btn-news.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(79, 70, 229, 0.35);
}

/* BOUTON OUTLINE */
.btn-news.outline {
    color: #0f172a;
    background: rgba(241, 245, 249, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.btn-news.outline:hover {
    background: #eef2ff;
    color: #4f46e5;
}

/* LINKEDIN */
.btn-news.linkedin {
    color: white;
    background: #0a66c2;
    box-shadow: 0 8px 20px rgba(10, 102, 194, 0.25);
}

.btn-news.linkedin:hover {
    background: #084c94;
    transform: translateY(-2px);
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

/* TEXTE */
.logo-text {
    font-weight: 700;
    font-size: 1.05rem;
    color: #0f172a;
}

.logo-brand:hover .logo-img {
    transform: scale(1.05);
    transition: 0.25s ease;
}

.chatbot-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999;
}

.chatbot-toggle {
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 50%;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.35);
}

.chatbot-panel {
    position: absolute;
    right: 0;
    bottom: 76px;
    width: 360px;
    height: 480px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border-radius: 26px;
    background: white;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
    display: none;
}

.chatbot-panel.is-open {
    display: flex;
}

.chatbot-header {
    padding: 18px;
    color: white;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header span {
    display: block;
    font-size: 0.8rem;
    opacity: 0.85;
}

.chatbot-close {
    border: 0;
    background: transparent;
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
}

.chatbot-messages {
    flex: 1;
    padding: 18px;
    overflow-y: auto;
    background: #f8fafc;
}

.chatbot-message {
    max-width: 82%;
    padding: 11px 14px;
    border-radius: 16px;
    margin-bottom: 10px;
    font-size: 0.92rem;
    line-height: 1.5;
}

.chatbot-message.bot {
    background: white;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}

.chatbot-message.user {
    margin-left: auto;
    color: white;
    background: #2563eb;
}

.chatbot-form {
    display: flex;
    gap: 8px;
    padding: 14px;
    border-top: 1px solid #e2e8f0;
}

.chatbot-form input {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 11px 14px;
    outline: none;
}

.chatbot-form button {
    border: 0;
    border-radius: 999px;
    padding: 0 14px;
    color: white;
    font-weight: 700;
    background: #2563eb;
    cursor: pointer;
}

@media (max-width: 480px) {
    .chatbot-panel {
        width: calc(100vw - 32px);
        right: -8px;
        height: 460px;
    }
}

.chatbot-suggestions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 14px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.chatbot-suggestion {
    border: 1px solid #dbeafe;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.chatbot-suggestion:hover {
    background: #dbeafe;
}

.chatbot-message a {
    color: #2563eb;
    font-weight: 800;
    text-decoration: underline;
}

.chatbot-message.typing {
    color: #64748b;
    font-style: italic;
}

.chatbot-result-title {
    font-weight: 800;
    margin-bottom: 10px;
}

.chatbot-entity-card {
    display: grid;
    gap: 6px;
    padding: 12px;
    margin-top: 10px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #dbeafe;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.chatbot-entity-card strong {
    color: #0f172a;
    font-size: 0.95rem;
}

.chatbot-entity-card span {
    color: #64748b;
    font-size: 0.82rem;
}

.chatbot-entity-card a {
    display: inline-flex;
    width: fit-content;
    margin-top: 4px;
    padding: 7px 11px;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
}

  .news-date {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 15px;
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.navbar {
    height: 72px;
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    height: 95px;
    width: auto;
    max-height: none;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.site-header .navbar .logo-brand img.logo-img {
    height: 95px !important;
    width: auto !important;
    max-height: none !important;
    max-width: none !important;
    display: block !important;
}

.entity-top {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    width: 100%;
    margin-bottom: 20px;
}

.entity-logo {
    display: block;
    width: 85%;
    height: 160px;
    object-fit: contain;
    margin: 0 auto;
}

.gallery-open {
    width: 100%;
    border: 0;
    padding: 0;
    background: none;
    cursor: pointer;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 30, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.gallery-lightbox.active {
    display: flex;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 18px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    border: 0;
    background: rgba(255,255,255,0.15);
    color: #fff;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-close {
    top: 25px;
    right: 30px;
    font-size: 42px;
    background: none;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 44px;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

/* App Simulator */ 
.simulation-section,
.simulation-result-section {
    padding: 80px 0;
}

.simulation-header {
    text-align: center;
    margin-bottom: 30px;
}

.simulation-header p {
    color: #64748b;
    font-weight: 600;
}

.simulation-form,
.result-card {
    max-width: 720px;
    margin: 0 auto;
    background: #ffffff;
    padding: 35px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.simulation-form p {
    margin-bottom: 20px;
}

.simulation-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

.simulation-form input,
.simulation-form select,
.simulation-form textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    font-size: 15px;
}

.progress {
    max-width: 720px;
    height: 10px;
    background: #e5e7eb;
    border-radius: 999px;
    margin: 0 auto 25px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #22c55e);
    border-radius: 999px;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

.result-card h2 {
    margin-bottom: 20px;
}

.result-card p {
    font-size: 17px;
    line-height: 1.6;
}




.simulation-hero {
    padding: 100px 0 60px;
    text-align: center;
}

.simulation-hero h1 {
    font-size: 3rem;
    margin: 20px 0;
}

.simulation-hero p {
    max-width: 700px;
    margin: auto;
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.8;
}

.simulation-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 50px;
    background: #e0f2fe;
    color: #0284c7;
    font-weight: 600;
}

.simulation-result-section {
    padding: 40px 0 100px;
}

.result-card {
    background: white;
    border-radius: 24px;
    padding: 50px;
    max-width: 1100px;
    margin: auto;
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
}

.result-header {
    text-align: center;
    margin-bottom: 40px;
}

.result-header h2 {
    font-size: 2rem;
}

.result-estimation {
    background: #f8fafc;
    padding: 35px;
    border-radius: 20px;
    margin-bottom: 40px;
}

.result-estimation h3 {
    margin-bottom: 20px;
}

.result-estimation p {
    line-height: 1.8;
    font-size: 1.05rem;
}

.result-details {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
    gap: 25px;
}

.detail-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 25px;
    transition: .3s;
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

.detail-label {
    display: block;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.cta-card {
    margin: 50px auto 0;
    max-width: 900px;
    text-align: center;
    padding: 50px;
    background: linear-gradient(
        135deg,
        rgba(37,99,235,.05),
        rgba(34,197,94,.05)
    );
    border-radius: 24px;
}

.cta-card h3 {
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.cta-card p {
    color: #64748b;
    margin-bottom: 30px;
}

.form-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-outline {
    padding: 14px 24px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    text-decoration: none;
    color: #0f172a;
    transition: .3s;
}

.btn-outline:hover {
    background: #f8fafc;
}


.simulator-page {
    min-height: 100vh;
    padding: 90px 20px;
    background:
        radial-gradient(circle at top left, rgba(34,197,94,.18), transparent 35%),
        radial-gradient(circle at bottom right, rgba(37,99,235,.18), transparent 35%),
        #f8fafc;
}

.simulator-shell {
    max-width: 980px;
    margin: 0 auto;
}

.simulator-card {
    background: #fff;
    border-radius: 32px;
    padding: 42px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .12);
}

.simulator-progress {
    margin-bottom: 45px;
}

.simulator-progress-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
    color: #64748b;
}

.simulator-progress-top strong {
    color: #0f172a;
}

.progress-track {
    height: 12px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #22c55e, #2563eb);
}

.simulator-content {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.simulator-content h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 16px;
    color: #0f172a;
}

.simulator-intro {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 42px;
}

.simulator-form {
    text-align: left;
}

.simulator-field {
    margin-bottom: 26px;
}

.simulator-field label {
    display: block;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.simulator-field input,
.simulator-field select,
.simulator-field textarea {
    width: 100%;
    border: 1px solid #dbe3ef;
    border-radius: 18px;
    padding: 16px 18px;
    font-size: 16px;
    background: #f8fafc;
    transition: .25s ease;
}

.simulator-field input:focus,
.simulator-field select:focus,
.simulator-field textarea:focus {
    outline: none;
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

.simulator-field input[type="checkbox"] {
    width: auto;
    transform: scale(1.2);
    margin-right: 10px;
}

.field-error {
    margin-top: 8px;
    color: #dc2626;
    font-size: .9rem;
}

.simulator-actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 40px;
}

.sim-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: .25s ease;
}

.sim-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #22c55e, #2563eb);
    box-shadow: 0 16px 35px rgba(37,99,235,.25);
}

.sim-btn-primary:hover {
    transform: translateY(-2px);
}

.sim-btn-light {
    color: #0f172a;
    background: #f1f5f9;
}

.sim-btn-light:hover {
    background: #e2e8f0;
}

@media (max-width: 700px) {
    .simulator-card {
        padding: 28px 20px;
        border-radius: 24px;
    }

    .simulator-progress-top,
    .simulator-actions {
        flex-direction: column;
    }

    .sim-btn {
        width: 100%;
    }
}

.choice-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.choice-card {
    cursor: pointer;
}

.choice-card input {
    display: none;
}

.choice-card-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 150px;
    padding: 28px;
    border: 2px solid #e2e8f0;
    border-radius: 24px;
    background: #f8fafc;
    transition: .25s ease;
}

.choice-icon {
    font-size: 2.4rem;
}

.choice-label {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
}

.choice-card:hover .choice-card-content {
    transform: translateY(-4px);
    border-color: #93c5fd;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .10);
}

.choice-card input:checked + .choice-card-content {
    border-color: #2563eb;
    background: linear-gradient(135deg, #eff6ff, #ecfdf5);
    box-shadow: 0 18px 45px rgba(37, 99, 235, .18);
}

/* Tableau de bord des simulations */
.simulation-dashboard {
    padding: 90px 0;
    background: #f8fafc;
    min-height: 100vh;
}

.dashboard-header {
    margin-bottom: 35px;
}

.dashboard-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0284c7;
    font-weight: 700;
    margin-bottom: 15px;
}

.dashboard-header h1 {
    font-size: 2.6rem;
    margin-bottom: 10px;
}

.dashboard-header p {
    color: #64748b;
    font-size: 1.05rem;
}

.dashboard-filters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    align-items: end;
    background: #ffffff;
    padding: 24px;
    border-radius: 22px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, .07);
    margin-bottom: 30px;
}

.filter-group label {
    display: block;
    font-weight: 800;
    margin-bottom: 8px;
    color: #0f172a;
}

.filter-group select {
    width: 100%;
    padding: 13px 15px;
    border-radius: 14px;
    border: 1px solid #dbe3ef;
    background: #f8fafc;
}

.dashboard-table-wrapper {
    overflow-x: auto;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1050px;
}

.dashboard-table th,
.dashboard-table td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

.dashboard-table th {
    background: #f1f5f9;
    color: #334155;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.dashboard-table tr:hover td {
    background: #f8fafc;
}

.status-badge {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: .85rem;
}

.status-badge.untreated {
    background: #fee2e2;
    color: #b91c1c;
}

.status-badge.treated {
    background: #dcfce7;
    color: #15803d;
}

.result-cell {
    max-width: 280px;
    color: #475569;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #64748b;
}

@media (max-width: 900px) {
    .dashboard-filters {
        grid-template-columns: 1fr;
    }
}

/* Simulation détails */ 
.simulation-detail-section {
    padding: 90px 0;
    background: #f8fafc;
    min-height: 100vh;
}

.detail-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.back-link {
    text-decoration: none;
    color: #2563eb;
    font-weight: 800;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: flex-start;
    background: #ffffff;
    padding: 35px;
    border-radius: 26px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
    margin-bottom: 30px;
}

.detail-header h1 {
    font-size: 2.4rem;
    margin: 12px 0;
}

.detail-header p {
    color: #64748b;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.detail-panel {
    background: #ffffff;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, .07);
}

.detail-panel.full {
    grid-column: 1 / -1;
}

.detail-panel h2 {
    margin-bottom: 22px;
    font-size: 1.35rem;
}

.info-list p,
.info-grid p {
    margin-bottom: 14px;
    line-height: 1.6;
    color: #334155;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 30px;
}

.estimation-text {
    line-height: 1.8;
    font-size: 1.05rem;
    color: #334155;
}

.clickable-row {
    cursor: pointer;
}

.clickable-row:hover td {
    background: #eef6ff;
}

.client-link {
    text-decoration: none;
    color: #0f172a;
}

.client-link:hover {
    color: #2563eb;
}

@media (max-width: 900px) {
    .detail-header,
    .detail-topbar {
        flex-direction: column;
    }

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

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

.dashboard-subtitle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.dashboard-subtitle p {
    margin: 0;
    color: #64748b;
    font-size: 1.05rem;
}

.untreated-counter {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff7ed, #fee2e2);
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(234, 88, 12, .12);
}

.counter-icon {
    font-size: 1.1rem;
}

.counter-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: #ea580c;
    color: #ffffff;
    font-size: .95rem;
}

.counter-text {
    font-size: .95rem;
}

.equipment-badge {
    display: inline-block;
    padding: 8px 14px;
    margin: 4px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
    font-size: .9rem;
}

/* Bouton Simulation flottant */ 
.floating-simulation-btn {
    position: fixed;
    left: 30px;
    bottom: 30px;
    right: auto;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 16px 24px;

    border-radius: 999px;

    background: linear-gradient(
        135deg,
        #22c55e,
        #2563eb
    );

    color: white;
    text-decoration: none;
    font-weight: 700;

    box-shadow:
        0 15px 35px rgba(37,99,235,.25);

    transition: all .3s ease;
}

.floating-simulation-btn:hover {
    transform: translateY(-4px);
    box-shadow:
        0 25px 45px rgba(37,99,235,.35);
}

.floating-icon {
    font-size: 1.3rem;
}

.floating-simulation-btn small {
    display: block;
    font-size: .75rem;
    opacity: .85;
}

.floating-simulation-btn strong {
    display: block;
    font-size: .95rem;
}


/* Sous menu */ 
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
}

.dropdown-menu {
    position: absolute;
    top: 120%;
    right: 0;
    min-width: 230px;
    padding: 10px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .16);
    border: 1px solid rgba(226, 232, 240, .9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: .25s ease;
    z-index: 9999;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: #0f172a;
    text-decoration: none;
    font-weight: 700;
}

.dropdown-menu a:hover {
    background: #f1f5f9;
    color: #2563eb;
}

@media (max-width: 900px) {
    .nav-dropdown {
        width: 100%;
        display: block;
    }

    .dropdown-toggle {
        width: 100%;
        text-align: left;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 5px 0 0 12px;
    }

    .dropdown-menu a {
        padding: 10px 0;
    }
}

.dropdown-divider {
    height: 1px;
    margin: 8px 0;
    background: #e2e8f0;
}

.logout-link {
    color: #dc2626 !important;
}

.logout-link:hover {
    background: #fef2f2 !important;
    color: #b91c1c !important;
}

.logout-form {
    margin: 0;
}

.logout-button {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font: inherit;
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
}

.simulation-preview-section {
    padding: 90px 20px;
    background: linear-gradient(180deg, #f5f7fb 0%, #ffffff 100%);
}

.simulation-preview-container {
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}

.simulation-step-badge {
    display: inline-block;
    margin-bottom: 22px;
    padding: 9px 18px;
    border-radius: 999px;
    background: #e1f3ff;
    color: #0077c8;
    font-weight: 700;
    font-size: 0.95rem;
}

.simulation-preview-container h1 {
    margin-bottom: 16px;
    color: #101828;
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 800;
}

.simulation-preview-intro {
    max-width: 720px;
    margin: 0 auto 45px;
    color: #667085;
    font-size: 1.1rem;
    line-height: 1.7;
}

.simulation-summary-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 35px;
    box-shadow: 0 20px 60px rgba(16, 24, 40, 0.08);
    text-align: left;
    border: 1px solid #edf0f5;
}

.simulation-summary-card h2 {
    margin-bottom: 28px;
    color: #101828;
    font-size: 1.5rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.summary-item {
    padding: 18px 20px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #eef2f6;
}

.summary-label {
    display: block;
    margin-bottom: 6px;
    color: #667085;
    font-size: 0.9rem;
    font-weight: 600;
}

.summary-value {
    display: block;
    color: #101828;
    font-size: 1.02rem;
    font-weight: 700;
    word-break: break-word;
}

.simulation-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.btn-primary-custom,
.btn-secondary-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary-custom {
    background: #0077c8;
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(0, 119, 200, 0.25);
}

.btn-secondary-custom {
    background: #ffffff;
    color: #101828;
    border: 1px solid #d0d5dd;
}

.btn-primary-custom:hover {
    background: #005fa3;
}

.btn-secondary-custom:hover {
    background: #f8fafc;
}

@media (max-width: 720px) {
    .simulation-preview-section {
        padding: 60px 16px;
    }

    .simulation-summary-card {
        padding: 24px;
        border-radius: 22px;
    }

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

    .simulation-actions {
        flex-direction: column;
    }

    .btn-primary-custom,
    .btn-secondary-custom {
        width: 100%;
    }
}

.subsidiary-final-contact {
    position: relative;
    z-index: 1;
    padding: 20px 0 100px;
}

.final-contact-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    padding: 38px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
}

.final-contact-card h2 {
    margin-bottom: 10px;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    letter-spacing: -0.04em;
}

.final-contact-card p {
    color: var(--text-soft);
}

@media (max-width: 700px) {
    .final-contact-card {
        padding: 26px;
    }

    .final-contact-card {
        align-items: flex-start;
        flex-direction: column;
    }

}





.error-page {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 260px);
    padding: 90px 0;
    display: flex;
    align-items: center;
}

.error-container {
    display: flex;
    justify-content: center;
}

.error-card {
    width: 100%;
    max-width: 640px;
    padding: 48px;
    text-align: center;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 26px 80px rgba(15, 23, 42, 0.10);
}

.error-code {
    display: inline-block;
    margin-bottom: 18px;
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.08em;
    color: transparent;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
}

.error-card h1 {
    margin-bottom: 14px;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.04em;
}

.error-card p {
    max-width: 460px;
    margin: 0 auto 28px;
    color: var(--text-soft);
    line-height: 1.8;
}

@media (max-width: 640px) {
    .error-page {
        padding: 60px 0;
    }

    .error-card {
        padding: 34px 24px;
        border-radius: 28px;
    }
}




