/* =============================================
   ASSUFINANCE — Design System
   Palette : Gris/Argent dominant + #22c5c2 accent
   Font : Poppins
   ============================================= */

:root {
    --bg-silver: #eceff3;
    --bg-silver-light: #f5f7fa;
    --surface: rgba(255, 255, 255, 0.85);
    --surface-solid: #ffffff;

    --text-dark: #0b1120;
    --text-muted: #5f708a;

    --border-soft: rgba(0, 0, 0, 0.06);
    --border-white: rgba(255, 255, 255, 0.8);

    --green-accent: #22c5c2;
    --green-glow: rgba(34, 197, 194, 0.3);

    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 100px;

    --shadow-float: 0 16px 32px -12px rgba(11, 17, 32, 0.08);
    --shadow-glass: inset 0 1px 0px rgba(255, 255, 255, 0.9), 0 12px 24px -10px rgba(11, 17, 32, 0.06);
    --shadow-hover: 0 24px 40px -12px rgba(11, 17, 32, 0.12);

    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-silver);
    background-image: radial-gradient(circle at 10% 20%, rgba(255,255,255,0.7) 0%, transparent 60%),
                      radial-gradient(circle at 90% 80%, rgba(255,255,255,0.8) 0%, transparent 60%);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =============================================
   HEADER — Glassmorphism Flottant
   ============================================= */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1300px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-white);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-glass);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 32px;
}

.logo {
    font-size: 20px;
    font-weight: 900;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background-color: var(--green-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--green-glow);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    background: rgba(240, 242, 245, 0.5);
    padding: 8px 24px;
    border-radius: var(--radius-pill);
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
}

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

.btn-subscribe {
    background: var(--text-dark);
    color: #fff;
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
}

.btn-subscribe:hover {
    background: var(--green-accent);
    box-shadow: 0 8px 20px var(--green-glow);
    transform: translateY(-2px);
}

/* =============================================
   HERO — Asymétrique avec Overlays
   ============================================= */
.hero {
    padding: 120px 0 50px;
    position: relative;
}

.hero-layout {
    display: flex;
    align-items: center;
    position: relative;
    min-height: 400px;
}

.hero-content {
    width: 55%;
    position: relative;
    z-index: 2;
    padding-right: 40px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 6px;
    background: var(--surface-solid);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-float);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 32px;
}

.hero-badge-icon {
    background: var(--green-accent);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -2px;
    color: var(--text-dark);
}

.hero-content h1 span {
    background: linear-gradient(120deg, var(--text-muted), #cad4e0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 480px;
    font-weight: 400;
}

.hero-image-wrapper {
    position: absolute;
    right: 0;
    width: 55%;
    height: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-glass);
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(15%) contrast(1.05);
}

.glass-float {
    position: absolute;
    bottom: 40px;
    left: -40px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-white);
    box-shadow: var(--shadow-glass);
    z-index: 3;
    max-width: 240px;
}

.glass-float-title {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--green-accent);
    margin-bottom: 8px;
}

.glass-float-value {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}

/* =============================================
   SECTIONS — Titres & Actions globales
   ============================================= */
.section-header {
    margin-bottom: 48px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    display: flex;
    flex-direction: column;
}

.section-title span {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--green-accent);
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.view-all-pill {
    display: inline-block;
    padding: 10px 24px;
    background: var(--surface-solid);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--shadow-float);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.view-all-pill:hover {
    border-color: var(--green-accent);
    color: var(--green-accent);
}

/* =============================================
   CATALOGUE — Bento + Liste
   ============================================= */
.catalogue {
    padding: 100px 0;
    position: relative;
}

.catalogue-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 32px;
    margin-bottom: 64px;
}

/* --- Carte principale (Featured) --- */
.card-main {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    background: var(--surface-solid);
    border-radius: var(--radius-xl);
    padding: 12px;
    box-shadow: var(--shadow-glass);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.card-main:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-main .img-wrap {
    width: 100%;
    height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    position: relative;
}

.card-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.tag-pill {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-dark);
    z-index: 2;
}

.card-main h3 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 16px 16px;
    letter-spacing: -0.5px;
}

.card-main .meta {
    margin: 0 16px 16px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- Cartes latérales --- */
.card-side {
    background: var(--bg-silver-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    gap: 24px;
    align-items: center;
    border: 1px solid var(--border-soft);
    transition: var(--transition-smooth);
}

.card-side:hover {
    background: var(--surface-solid);
    box-shadow: var(--shadow-float);
}

.card-side .img-wrap {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.card-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
}

.card-side:hover img {
    filter: grayscale(0%);
}

.card-side h4 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
}

.card-side .side-meta {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 4px;
}

/* --- Liste d'articles avec vignettes --- */
.catalogue-list {
    background: var(--surface-solid);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-glass);
    column-count: 2;
    column-gap: 60px;
}

.list-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-soft);
    break-inside: avoid;
    transition: var(--transition-smooth);
}

.list-row:hover {
    border-bottom-color: var(--green-accent);
}

.list-img-wrap {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.list-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: var(--transition-smooth);
}

.list-row:hover .list-img-wrap img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.list-content {
    flex-grow: 1;
}

.list-meta {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.list-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    transition: var(--transition-smooth);
}

.list-row:hover .list-title {
    color: var(--green-accent);
}

/* =============================================
   EQUIPE
   ============================================= */
.team-section {
    padding: 20px 0 80px;
}

.team-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    background: var(--surface-solid);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-glass);
    border: 1px solid var(--border-white);
}

.team-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-float);
}

.team-text {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* =============================================
   CATEGORIES — Cartes flottantes
   ============================================= */
.cat-group {
    padding: 60px 0 100px;
}

.bg-gradient {
    background: linear-gradient(to bottom, transparent, var(--bg-silver-light), transparent);
}

.grids-cat {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.styled-card {
    background: var(--surface);
    backdrop-filter: blur(10px);
    padding: 12px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-white);
    box-shadow: var(--shadow-float);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.styled-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.styled-card .img-container {
    width: 100%;
    height: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay-cat {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--bg-silver);
    color: var(--text-dark);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
}

.styled-card h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 12px 12px;
}

.styled-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 12px 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =============================================
   ARTICLE — Hero & Content
   ============================================= */
.hero-article {
    padding: 180px 0 60px;
}

.hero-article-layout {
    display: flex;
    gap: 80px;
    align-items: center;
}

.hero-article-content {
    width: 60%;
}

.hero-article-content h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
    color: var(--text-dark);
}

.hero-article-image {
    width: 40%;
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-glass);
    height: 480px;
}

.hero-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 40px;
    line-height: 1.6;
}

.article-meta-box {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: var(--surface-solid);
    padding: 12px 24px 12px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-float);
}

.meta-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-silver);
}

.article-layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 80px;
    padding-bottom: 80px;
}

.article-content {
    background: var(--surface-solid);
    padding: 60px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-glass);
    border: 1px solid var(--border-white);
    font-size: 17px;
    line-height: 1.8;
    color: #4b5563;
}

.article-content h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 48px 0 24px;
    letter-spacing: -0.5px;
}

.article-content p { margin-bottom: 24px; }
.article-content ul, .article-content ol { margin: 0 0 24px 24px; }
.article-content li { margin-bottom: 12px; }

.article-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 32px 0 16px;
    letter-spacing: -0.3px;
}

.article-content blockquote {
    border-left: 4px solid var(--green-accent);
    margin: 32px 0;
    padding: 20px 28px;
    background: var(--bg-silver-light);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.article-content blockquote p {
    font-size: 18px;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.7;
}
.article-content blockquote cite {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    font-style: normal;
}

.article-content .insight-box {
    background: linear-gradient(135deg, rgba(34,197,194,0.08) 0%, rgba(34,197,194,0.03) 100%);
    border: 1px solid rgba(34,197,194,0.25);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin: 32px 0;
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.7;
}
.article-content .insight-box strong {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--green-accent);
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.article-content .alert-box {
    background: var(--bg-silver-light);
    border-left: 4px solid var(--text-dark);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 20px 28px;
    margin: 32px 0;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}
.article-content .alert-box strong {
    color: var(--text-dark);
    font-weight: 700;
}

.article-sidebar {
    position: relative;
}

.sidebar-sticky {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-box {
    background: var(--surface-solid);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
    border: 1px solid var(--border-white);
}

.sidebar-box h4 {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-box h4::before {
    content: "";
    display: block;
    width: 6px;
    height: 6px;
    background: var(--green-accent);
    border-radius: 50%;
}

.sidebar-box ul {
    list-style: none;
    margin: 0;
}

.sidebar-box li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-muted);
}

.sidebar-box li::before {
    content: "•";
    color: var(--green-accent);
    position: absolute;
    left: 0;
    font-size: 18px;
    top: -2px;
}

.toc-list a {
    color: var(--text-muted);
    transition: var(--transition-smooth);
}
.toc-list a:hover {
    color: var(--green-accent);
}

@media (max-width: 1024px) {
    .hero-article-layout { flex-direction: column; }
    .hero-article-content { width: 100%; }
    .hero-article-image { width: 100%; height: 350px; }
    .article-layout { grid-template-columns: 1fr; }
    .sidebar-sticky { position: relative; top: 0; }
}

@media (max-width: 768px) {
    .hero-article { padding-top: 120px; }
    .article-content { padding: 32px 24px; }
    .hero-article-content h1 { font-size: 32px; }
}

/* =============================================
   FOOTER
   ============================================= */
footer {
    background: var(--text-dark);
    color: var(--surface-solid);
    padding: 80px 0 40px;
    border-radius: 40px 40px 0 0;
}

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

.footer-logo {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 32px;
    width: auto;
}

.footer-text {
    color: #94a3b8;
    font-size: 15px;
    max-width: 360px;
    line-height: 1.6;
}

.f-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    color: #fff;
}

.f-links {
    list-style: none;
}

.f-links li {
    margin-bottom: 12px;
}

.f-links a {
    color: #94a3b8;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.f-links a:hover {
    color: var(--green-accent);
    padding-left: 6px;
}

.footer-bottom {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

/* =============================================
   CONTACT
   ============================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    background: var(--surface-solid);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-glass);
    border: 1px solid var(--border-white);
}

.contact-method {
    margin-bottom: 24px;
}

.contact-method-title {
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.contact-method-detail {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-muted);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    background: var(--bg-silver-light);
    font-family: inherit;
    font-size: 15px;
    color: var(--text-dark);
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--green-accent);
    background: var(--surface-solid);
    box-shadow: 0 0 0 4px var(--green-glow);
}

.btn-submit {
    background: var(--text-dark);
    color: #fff;
    padding: 16px 32px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    align-self: flex-start;
    margin-top: 10px;
}

.btn-submit:hover {
    background: var(--green-accent);
    box-shadow: 0 8px 20px var(--green-glow);
    transform: translateY(-2px);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .hero-layout {
        flex-direction: column;
        text-align: center;
        margin-top: 60px;
    }
    .hero-content {
        width: 100%;
        padding-right: 0;
        margin-bottom: 40px;
    }
    .hero-content p {
        margin: 0 auto 40px;
    }
    .hero-image-wrapper {
        position: relative;
        width: 100%;
        height: 400px;
    }
    .catalogue-top {
        grid-template-columns: 1fr;
    }
    .glass-float {
        left: 20px;
    }
    .card-main {
        grid-row: auto;
    }
    .catalogue-list {
        column-count: 1;
    }
    .grids-cat {
        grid-template-columns: repeat(2, 1fr);
    }
    .team-grid {
        grid-template-columns: 1fr;
        padding: 32px;
        gap: 40px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        padding: 32px;
        gap: 40px;
    }
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero-content h1 {
        font-size: 44px;
    }
    .grids-cat {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
