/* ============================================
   RAJEUNIR.FR — Style principal
   Palette : doré #C9A96E, crème #FDF8F0, anthracite #2D2D2D
   Typo : Playfair Display (titres), Inter (corps)
   ============================================ */

:root {
    --gold: #C9A96E;
    --gold-light: #E8D5A8;
    --cream: #FDF8F0;
    --cream-dark: #F5EDE0;
    --anthracite: #2D2D2D;
    --anthracite-light: #4A4A4A;
    --white: #FFFFFF;
    --gray-light: #F0EBE3;
    --gray-medium: #9A9A9A;
    --shadow: 0 2px 20px rgba(0,0,0,0.06);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.10);
    --radius: 12px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--anthracite);
    background-color: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

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

a:hover {
    color: var(--anthracite);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--cream-dark);
    box-shadow: 0 1px 10px rgba(0,0,0,0.03);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--anthracite);
}

.logo span {
    color: var(--gold);
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.main-nav a {
    color: var(--anthracite);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    position: relative;
    padding: 4px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--anthracite);
    margin: 5px 0;
    transition: var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1.2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 span {
    color: var(--gold);
}

.hero .subtitle {
    font-size: 1.15rem;
    color: var(--anthracite-light);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--gold);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--anthracite);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--white);
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* ============================================
   SECTIONS
   ============================================ */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 12px auto 0;
    border-radius: 2px;
}

.section-title p {
    color: var(--anthracite-light);
    margin-top: 0.75rem;
    font-size: 1.05rem;
}

/* ============================================
   CARDS
   ============================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.card-image {
    width: 100%;
    height: 220px;
    background: var(--cream-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-medium);
    font-size: 0.85rem;
}

.card-body {
    padding: 28px;
}

.card-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 10px;
}

.card-body h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.card-body h3 a {
    color: var(--anthracite);
}

.card-body h3 a:hover {
    color: var(--gold);
}

.card-body p {
    color: var(--anthracite-light);
    font-size: 0.92rem;
    line-height: 1.7;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--cream-dark);
    font-size: 0.8rem;
    color: var(--gray-medium);
}

/* ============================================
   RUBRIQUE GRID (categories on homepage)
   ============================================ */
.rubrique-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.rubrique-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}

.rubrique-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
}

.rubrique-card .icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.rubrique-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.rubrique-card p {
    font-size: 0.85rem;
    color: var(--anthracite-light);
    margin-bottom: 0;
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--shadow);
    max-width: 700px;
    margin: 0 auto;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 24px auto 0;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid var(--cream-dark);
    border-radius: 50px;
    font-size: 0.95rem;
    background: var(--cream);
    outline: none;
    transition: var(--transition);
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--gold);
}

.newsletter-form button {
    white-space: nowrap;
}

/* ============================================
   ARTICLE PAGE
   ============================================ */
.article-header {
    padding: 60px 0 40px;
    text-align: center;
    background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
}

.article-header .category-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 16px;
}

.article-header h1 {
    font-size: 2.4rem;
    max-width: 800px;
    margin: 0 auto 16px;
}

.article-header .meta {
    color: var(--gray-medium);
    font-size: 0.9rem;
}

.article-content {
    max-width: 780px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

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

.article-content h3 {
    margin-top: 2rem;
    font-size: 1.3rem;
}

.article-content p {
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--anthracite-light);
}

.article-content ul, .article-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--anthracite-light);
}

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

.article-content blockquote {
    border-left: 3px solid var(--gold);
    padding: 16px 24px;
    margin: 1.5rem 0;
    background: var(--white);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--anthracite-light);
}

/* Disclaimer box */
.disclaimer {
    background: var(--cream-dark);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 2rem 0;
    font-size: 0.88rem;
    color: var(--anthracite-light);
    border-left: 3px solid var(--gold);
}

/* ============================================
   COMPARISON TABLE
   ============================================ */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.comparison-table thead {
    background: var(--anthracite);
    color: var(--white);
}

.comparison-table th {
    padding: 16px 18px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.comparison-table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--cream-dark);
    font-size: 0.9rem;
    vertical-align: top;
}

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

.comparison-table tr:hover td {
    background: var(--cream);
}

.comparison-table .cta-cell {
    text-align: center;
}

.table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
}

/* ============================================
   LISTING PAGE
   ============================================ */
.listing-header {
    padding: 60px 0 40px;
    text-align: center;
    background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
}

.listing-header h1 {
    font-size: 2.4rem;
    margin-bottom: 12px;
}

.listing-header p {
    color: var(--anthracite-light);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--anthracite);
    color: var(--cream);
    padding: 60px 0 30px;
}

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

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--gray-medium);
    font-size: 0.9rem;
    line-height: 1.7;
}

.site-footer h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 16px;
}

.site-footer ul {
    list-style: none;
}

.site-footer ul li {
    margin-bottom: 10px;
}

.site-footer ul a {
    color: var(--gray-medium);
    font-size: 0.9rem;
}

.site-footer ul a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.82rem;
    color: var(--gray-medium);
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 24px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 9999;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-inner p {
    font-size: 0.88rem;
    margin: 0;
    color: var(--anthracite-light);
}

.cookie-inner a {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
    padding: 16px 0;
    font-size: 0.82rem;
    color: var(--gray-medium);
}

.breadcrumb a {
    color: var(--gray-medium);
}

.breadcrumb a:hover {
    color: var(--gold);
}

.breadcrumb span {
    margin: 0 8px;
}

/* ============================================
   PAGE CONTENT (à propos, mentions, etc.)
   ============================================ */
.page-content {
    max-width: 780px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.page-content h2 {
    margin-top: 2.5rem;
}

.page-content h3 {
    margin-top: 1.5rem;
}

.page-content p, .page-content li {
    font-size: 0.98rem;
    line-height: 1.8;
    color: var(--anthracite-light);
}

.page-content ul {
    margin: 1rem 0 1.5rem 1.5rem;
}

.page-content li {
    margin-bottom: 0.4rem;
}

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

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }

    .hero { padding: 60px 0 50px; }
    .hero h1 { font-size: 2.2rem; }

    section { padding: 50px 0; }

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

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

    .newsletter-form {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .article-header h1 {
        font-size: 1.8rem;
    }

    /* Mobile nav */
    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 24px;
        box-shadow: var(--shadow-hover);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 16px;
    }

    .menu-toggle {
        display: block;
    }

    .cookie-inner {
        flex-direction: column;
        text-align: center;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px 10px;
        font-size: 0.82rem;
    }
}

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

    .hero h1 {
        font-size: 1.8rem;
    }
}

/* ============================================================
   UPGRADE CSS — rajeunir.fr
   Ameliorations CTA, tables, transitions
   Date: 2026-04-29
   ============================================================ */

/* --- Transitions globales --- */
.btn-primary,
.btn-small,
.comparison-table tr,
.card,
a {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Bouton principal : glow dore + scale au hover --- */
.btn-primary:hover {
  box-shadow: 0 4px 20px rgba(201, 169, 110, 0.4), 0 8px 30px rgba(0, 0, 0, 0.10);
  transform: translateY(-2px) scale(1.02);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

/* --- Boutons dans les cellules CTA : padding augmente --- */
.cta-cell .btn-small {
  padding: 10px 22px;
  font-size: 0.95rem;
}

.cta-cell .btn-small:hover {
  box-shadow: 0 4px 15px rgba(201, 169, 110, 0.35);
  transform: translateY(-2px);
}

/* --- Table de comparaison : highlight creme au hover --- */
.comparison-table tbody tr:hover {
  background-color: rgba(253, 248, 240, 0.7);
  box-shadow: 0 2px 8px rgba(201, 169, 110, 0.08);
}

.comparison-table tbody tr {
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
