/* --- 1. VARIABLES & RESET --- */
:root {
    --couleur-cyan: #00bcd4;
    --couleur-sombre: #212529;
}

* {
    border-radius: 0 !important;
}

/* --- 2. TYPOGRAPHIES --- */
body {
    font-family: 'EB Garamond', serif;
    background-color: #f8f9fa;
    color: #333;
    margin: 0;
}

/* Titres en Arial */
h1, h2, h3, h4, h5, h6, .card-title, .text-summary {
    font-family: Arial, Helvetica, sans-serif;
}

/* Fira Code pour menus et boutons */
.main-menu, .badge, .btn {
    font-family: 'Fira Code', monospace;
}

/* --- 3. COULEURS & DESIGN SYSTEM --- */
.text-cyan { color: var(--couleur-cyan) !important; }
.bg-cyan { background-color: var(--couleur-cyan) !important; color: #000 !important; }

.btn-cyan {
    background-color: var(--couleur-cyan);
    border: 1px solid var(--couleur-cyan);
}

.btn-cyan:hover {
    background-color: #008ba3;
    color: white !important;
}

header.custom-header { background-color: var(--couleur-sombre); }

.border-info { border-color: var(--couleur-cyan) !important; }

/* --- 4. CASCADES --- */
footer p { font-family: Arial, Helvetica, sans-serif; }

/* --- 5. TA CONSTRUCTION (Celle qui marche !) --- */
.configurator-container {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    font-size: 0; /* Pour coller les colonnes */
    text-align: center;
}

.inline-column {
    display: inline-block;
    vertical-align: top;
    font-size: 1rem; /* On remet le texte visible ici */
    box-sizing: border-box;
}

.sidebar-column {
    width: 22%;
    min-height: 400px;
}

.preview-column {
    width: 52%;
    height: 70vh; 
    overflow-y: auto; 
    margin: 0 2%;
    background-color: #fff;
    text-align: left; /* Pour que le texte de l'article soit à gauche */
}
/* On s'assure que le footer a de la place pour exister */
footer {
    display: block !important;
    clear: both !important;
    position: relative !important;
    z-index: 10;
    margin-top: 50px;
}
/* --- 5. LA SOLUTION FINALE --- */
.configurator-container {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    font-size: 0; /* Pour coller les colonnes */
    text-align: center;
    position: relative;
}

/* LE HACK MAGIQUE : On force le container à englober les colonnes */
.configurator-container::after {
    content: "";
    display: table;
    clear: both;
}

.inline-column {
    display: inline-block;
    vertical-align: top;
    font-size: 1rem; 
    box-sizing: border-box;
    text-align: left;
}

.sidebar-column {
    width: 22%;
    min-height: 400px;
}

.preview-column {
    width: 52%;
    height: 70vh; 
    overflow-y: auto; 
    margin: 0 2%;
    background-color: #fff;
    border: 1px solid var(--couleur-cyan);
}

/* On s'assure que le footer est bien un bloc séparé */
/* FOOTER GLOBAL */
/* =========================
   FOOTER GLOBAL
========================= */
.custom-footer {
    background: linear-gradient(135deg, #0f2027, #00c9d8);
    color: white;
    padding-top: 50px;
    margin-top: auto;
    font-family: 'Fira Code', monospace;
}

/* =========================
   STRUCTURE
========================= */
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

/* =========================
   TITRES
========================= */
.footer-col h4 {
    color: #00ffff;
    margin-bottom: 15px;
    border-bottom: 2px solid #00ffff;
    display: inline-block;
    padding-bottom: 5px;
}

/* =========================
   LISTES
========================= */
.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #d9faff;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 6px;
}

/* =========================
   SOCIAL
========================= */
.social-icons a {
    font-size: 20px;
    margin-right: 10px;
    transition: 0.3s;
}

.social-icons a:hover {
    transform: scale(1.2);
}

/* =========================
   NEWSLETTER
========================= */
.newsletter-form input {
    border-radius: 5px;
    border: none;
}

.newsletter-form button {
    background: #00ffff;
    color: black;
    border: none;
    font-weight: bold;
    transition: 0.3s;
}

.newsletter-form button:hover {
    background: #00bcd4;
    color: white;
}

/* =========================
   BAS DU FOOTER
========================= */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 40px;
    padding: 15px 0;
    font-size: 14px;
}

/* =========================
   LIENS BAS
========================= */
.footer-bottom-links a {
    color: #b2ebf2;
    margin-left: 15px;
    text-decoration: none;
    transition: 0.3s;
}

.footer-bottom-links a:hover {
    color: white;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }

    .footer-bottom {
        text-align: center;
    }

    .footer-bottom-links {
        margin-top: 10px;
    }
}