/* ========================================
   VARIABLES & BASE
======================================== */

:root {
    --gold: #c9a84c;
    --gold-light: #e0c068;
}

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

.cg-hero {
    position: relative;
    padding: 5rem 0;
    background: #111111;
    border-bottom: 1px solid rgba(201,168,76,0.1);
    overflow: hidden;
    text-align: center;
}

.cg-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(201,168,76,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.cg-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
}

.cg-hero-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: rgba(201,168,76,0.08);
    border: 1px solid rgba(201,168,76,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9a84c;
    font-size: 1.8rem;
}

.cg-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.cg-hero-subtitle {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.8;
    margin: 0;
}

.cg-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(201,168,76,0.06);
    border: 1px solid rgba(201,168,76,0.15);
    border-radius: 50px;
}

.cg-hero-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
}

.cg-hero-date i { color: #c9a84c; font-size: 0.7rem; }

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 991px) {
    .cg-hero { padding: 4rem 0; }
    .cg-hero-title { font-size: 2rem; }
    .cg-hero-icon { width: 60px; height: 60px; font-size: 1.5rem; }
}

@media (max-width: 767px) {
    .cg-hero { padding: 3rem 0; }
    .cg-hero-title { font-size: 1.7rem; }
    .cg-hero-subtitle { font-size: 0.82rem; }
}

@media (max-width: 575px) {
    .cg-hero { padding: 2.5rem 0; }
    .cg-hero-title { font-size: 1.4rem; }
    .cg-hero-icon { width: 52px; height: 52px; font-size: 1.3rem; border-radius: 14px; }
}

/* ========================================
   SECTION INTRO
======================================== */

.cg-intro-section {
    padding: 4rem 0 0;
    background: #0d0d0d;
}

.cg-intro-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2.5rem;
    background: #111111;
    border: 1px solid rgba(201,168,76,0.15);
    border-left: 4px solid #c9a84c;
    border-radius: 14px;
}

.cg-intro-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: rgba(201,168,76,0.08);
    border: 1px solid rgba(201,168,76,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9a84c;
    font-size: 1.1rem;
}

.cg-intro-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.cg-intro-text {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.85;
    margin: 0;
}

.cg-intro-text strong { color: rgba(255,255,255,0.85); }

/* ========================================
   SECTION ARTICLES
======================================== */

.cg-articles-section {
    padding: 3rem 0 4rem;
    background: #0d0d0d;
}

/* ========================================
   SOMMAIRE
======================================== */

.cg-sommaire {
    background: #111111;
    border: 1px solid rgba(201,168,76,0.12);
    border-radius: 14px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.cg-sommaire-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cg-sommaire-title i { color: #c9a84c; font-size: 1rem; }

.cg-sommaire-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.cg-sommaire-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    transition: all 0.25s ease;
}

.cg-sommaire-link:hover {
    background: rgba(201,168,76,0.08);
    border-color: rgba(201,168,76,0.25);
    color: #c9a84c;
    transform: translateX(4px);
}

.cg-sommaire-num {
    font-size: 0.65rem;
    font-weight: 700;
    color: #c9a84c;
    background: rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: 4px;
    padding: 0.15rem 0.4rem;
    flex-shrink: 0;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 991px) {
    .cg-intro-card { padding: 2rem; }
    .cg-sommaire-nav { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .cg-intro-section { padding: 3rem 0 0; }
    .cg-articles-section { padding: 2rem 0 3rem; }
    .cg-intro-card { padding: 1.5rem; }
    .cg-sommaire { padding: 1.5rem; }
    .cg-sommaire-nav { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
    .cg-intro-card { padding: 1.25rem; border-radius: 10px; }
    .cg-intro-title { font-size: 1.15rem; }
    .cg-sommaire { padding: 1.25rem; }
}

/* ========================================
   ARTICLES
======================================== */

.cg-article {
    position: relative;
    background: #111111;
    border: 1px solid rgba(201,168,76,0.1);
    border-radius: 14px;
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s ease;
}

.cg-article:hover { border-color: rgba(201,168,76,0.25); }
.cg-article:last-child { margin-bottom: 0; }

.cg-article-number {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: rgba(201,168,76,0.06);
    line-height: 1;
    user-select: none;
}

.cg-article-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(201,168,76,0.12);
}

.cg-article-title i {
    color: #c9a84c;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.cg-article-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cg-article-content p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.85;
    margin: 0;
}

.cg-article-content p strong { color: rgba(255,255,255,0.85); }

.cg-article-content a {
    color: #c9a84c;
    text-decoration: underline;
    transition: color 0.25s ease;
}

.cg-article-content a:hover { color: #e0c068; }

.cg-article-content ul, .cg-article-content ol {
    padding-left: 1.25rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cg-article-content li {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
}

.cg-article-content li strong { color: rgba(255,255,255,0.8); }

/* Info box */
.cg-info-box {
    background: rgba(201,168,76,0.04);
    border: 1px solid rgba(201,168,76,0.15);
    border-left: 3px solid #c9a84c;
    border-radius: 0 10px 10px 0;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cg-info-box h4 {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.cg-info-box p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    margin: 0;
    line-height: 1.7;
}

/* Warning box */
.cg-warning-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(255,180,0,0.04);
    border: 1px solid rgba(255,180,0,0.15);
    border-left: 3px solid rgba(255,180,0,0.5);
    border-radius: 0 10px 10px 0;
    padding: 1.25rem 1.5rem;
}

.cg-warning-box i {
    color: rgba(255,180,0,0.7);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.cg-warning-box p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
    margin: 0;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 991px) {
    .cg-article { padding: 2rem; }
    .cg-article-number { font-size: 3rem; top: 1.5rem; right: 1.5rem; }
    .cg-article-title { font-size: 1.15rem; }
}

@media (max-width: 767px) {
    .cg-article { padding: 1.5rem; }
    .cg-article-number { font-size: 2.5rem; top: 1.25rem; right: 1.25rem; }
    .cg-article-title { font-size: 1.05rem; margin-bottom: 1.25rem; }
    .cg-info-box { padding: 1rem 1.25rem; }
    .cg-warning-box { padding: 1rem 1.25rem; }
}

@media (max-width: 575px) {
    .cg-article { padding: 1.25rem; border-radius: 10px; }
    .cg-article-number { display: none; }
    .cg-article-title { font-size: 1rem; gap: 0.6rem; }
}

/* ========================================
   MÉDIATEUR BOX
======================================== */

.cg-mediateur-box {
    background: #0d0d0d;
    border: 1px solid rgba(201,168,76,0.15);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cg-mediateur-box h4 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.cg-mediateur-box h4 i { color: #c9a84c; }

.cg-mediateur-name {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

.cg-mediateur-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.cg-mediateur-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
}

.cg-mediateur-contact li i {
    color: #c9a84c;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 3px;
}

.cg-mediateur-contact li strong { color: rgba(255,255,255,0.75); }

.cg-mediateur-contact li a {
    color: #c9a84c;
    text-decoration: underline;
    transition: color 0.25s ease;
}

.cg-mediateur-contact li a:hover { color: #e0c068; }

/* ========================================
   SECTION CONTACT
======================================== */

.cg-contact-section {
    padding: 0 0 4rem;
    background: #0d0d0d;
}

.cg-contact-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem;
    background: #111111;
    border: 1px solid rgba(201,168,76,0.15);
    border-top: 3px solid #c9a84c;
    border-radius: 14px;
}

.cg-contact-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(201,168,76,0.08);
    border: 1px solid rgba(201,168,76,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9a84c;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.cg-contact-content {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex: 1;
}

.cg-contact-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.cg-contact-text {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.75;
    margin: 0;
}

.cg-contact-btns {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 0.25rem;
}

.cg-contact-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #c9a84c, #e0c068);
    color: #000;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cg-contact-btn-primary:hover {
    opacity: 0.9;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201,168,76,0.3);
}

.cg-contact-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.82rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cg-contact-btn-secondary:hover {
    border-color: rgba(201,168,76,0.35);
    color: #c9a84c;
    background: rgba(201,168,76,0.06);
}

/* ========================================
   BOUTON RETOUR EN HAUT
======================================== */

.cg-back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #c9a84c;
    color: #000;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(201,168,76,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999;
}

.cg-back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cg-back-to-top:hover {
    background: #e0c068;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201,168,76,0.4);
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 991px) {
    .cg-contact-section { padding: 0 0 3rem; }
    .cg-contact-card { gap: 1.5rem; padding: 2rem; }
    .cg-contact-title { font-size: 1.15rem; }
}

@media (max-width: 767px) {
    .cg-contact-section { padding: 0 0 2rem; }
    .cg-contact-card { flex-direction: column; gap: 1.25rem; padding: 1.5rem; }
    .cg-contact-icon { width: 52px; height: 52px; font-size: 1.3rem; border-radius: 12px; }
    .cg-back-to-top { bottom: 1.5rem; right: 1.5rem; width: 40px; height: 40px; }
}

@media (max-width: 575px) {
    .cg-contact-card { padding: 1.25rem; border-radius: 10px; }
    .cg-contact-btn-primary,
    .cg-contact-btn-secondary { width: 100%; justify-content: center; }
    .cg-back-to-top { bottom: 1rem; right: 1rem; }
}