/**
 * Layout
 * Navbar, footer, grids, structure de page
 */

/* ==========================================================================
   NAVBAR
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 15px 0;
    transition: var(--transition);
}

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

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    transition: var(--transition);
}

.navbar.scrolled .logo-text {
    color: var(--text-title);
}

/* Navigation buttons */
.nav-buttons {
    display: flex;
    gap: 15px;
}

.navbar.scrolled .btn-ghost {
    color: var(--text-title);
}

.navbar.scrolled .btn-ghost:hover {
    background: var(--bg-light);
}

.navbar.scrolled .btn-white {
    background: var(--main-color);
    color: var(--white);
}

.navbar.scrolled .btn-white:hover {
    background: var(--main-dark);
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 50%, #1D4ED8 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    color: var(--white);
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-trial-note {
    margin-top: 25px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(10px);
}

.hero-trial-note span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.section {
    padding: 100px 0;
}

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

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

.section-label {
    display: inline-block;
    padding: 8px 16px;
    background: var(--main-light);
    color: var(--text-title);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-title {
    font-size: 38px;
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 15px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-light);
}

/* ==========================================================================
   GRIDS
   ========================================================================== */

.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    text-align: center;
}

.cta h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.cta p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-size: 15px;
    font-weight: 500;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    padding: 40px 0;
    background: var(--bg-dark);
    text-align: center;
}

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

.footer-logo .logo-text {
    color: var(--white);
}

.footer-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--main-color);
}

.footer-author {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    width: 100%;
    margin-top: 10px;
}

.footer-author a {
    color: var(--main-color);
    text-decoration: underline;
    text-underline-offset: 0.15em;
    text-decoration-thickness: 0.08em;
}

/* ==========================================================================
   PAGE HEADER (App)
   ========================================================================== */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.page-title {
    font-size: 28px;
    margin-bottom: 5px;
}

.page-subtitle {
    color: var(--text-light);
    font-size: 14px;
}

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

/* ==========================================================================
   TABLES
   ========================================================================== */

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table th,
.table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-title);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    background: var(--bg-light);
}

.table-actions {
    display: flex;
    gap: 8px;
}
