/* ==========================================================================
   Conseil Seduction - CSS Centralise 2026
   Feuille de style unifiee pour l'ensemble du site
   ========================================================================== */

/* ==========================================================================
   1. RESET & BASE
   ========================================================================== */

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    background-color: #f5f5f5;
}

/* ==========================================================================
   2. LAYOUT - Structure principale
   ========================================================================== */

/* --- Layout "ancien" (pages avec #bg, #container, #center, #right) --- */

#wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

#bg {
    background: #fff;
    max-width: 1200px;
    margin: 0 auto;
}

#container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 30px 40px;
    overflow: hidden;
}

/* --- Layout "nouveau" (index.html - flex #page > #content + #sidebar) --- */

#page {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    gap: 30px;
    background: #f5f5f5;
}

#content {
    flex: 1;
    min-width: 0;
}

/* When #content contains #center (old layout), use flex for sidebar */
#content:has(#center) {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    width: 100%;
}

#center {
    flex: 1;
    min-width: 0;
    padding-left: 25px;
    padding-right: 20px;
}

/* Handle nested #center (legacy structure) */
#center #center {
    flex: none;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

#welcome {
    margin-bottom: 20px;
}

/* Right sidebar column (old layout) */
#right {
    width: 280px;
    flex-shrink: 0;
}

/* ==========================================================================
   3. HEADER
   ========================================================================== */

#header {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

/* Header with background image (old layout) */
#header[style*="background"],
#header:has(img) {
    padding: 0;
}

/* Fallback: empty header shows site name */
#header:empty {
    background: url('../images/header-bg.jpg') center center no-repeat;
    background-size: cover;
    height: 180px;
}

#header:empty::before {
    content: 'Conseil-Seduction.fr';
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#header h1 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    padding: 0;
}

#header a {
    color: #fff;
    text-decoration: none;
}

#header a:hover {
    color: #fff3cd;
    text-decoration: none;
}

/* ==========================================================================
   4. NAVIGATION
   ========================================================================== */

#nav1 {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    padding: 0;
}

#nav1 ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#nav1 ul li {
    margin: 0;
}

#nav1 ul li a {
    display: block;
    padding: 15px 25px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

#nav1 ul li a:hover {
    background: #e74c3c;
    text-decoration: none;
}

/* ==========================================================================
   5. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    color: #2c3e50;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 700;
}

h1 {
    font-size: 1.8rem;
    color: #e74c3c;
    border-bottom: 3px solid #e74c3c;
    padding-bottom: 10px;
    margin-top: 0;
}

h2 {
    font-size: 1.4rem;
    color: #2c3e50;
    border-left: 4px solid #e74c3c;
    padding-left: 15px;
    margin-top: 30px;
}

h3 {
    font-size: 1.2rem;
    color: #e74c3c;
}

h4 {
    font-size: 1.1rem;
    color: #555;
}

p {
    margin-bottom: 1rem;
    text-align: justify;
}

a {
    color: #2980b9;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #e74c3c;
    text-decoration: underline;
}

a:visited {
    color: #7b1fa2;
}

strong, b {
    font-weight: 600;
    color: #2c3e50;
}

i, em {
    font-style: italic;
}

u {
    text-decoration-color: #e74c3c;
}

/* ==========================================================================
   6. IMAGES
   ========================================================================== */

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#center img {
    margin: 20px 0;
}

/* Float classes */
.float-left {
    float: left;
    max-width: 120px;
    margin: 0 15px 10px 0;
    border-radius: 8px;
}

/* Images with align/style float attributes */
img[align="left"],
img[style*="float:left"],
img[style*="float: left"] {
    float: left;
    margin: 0 20px 15px 0;
    max-width: 200px;
}

img[align="right"],
img[style*="float:right"],
img[style*="float: right"] {
    float: right;
    margin: 0 0 15px 20px;
    max-width: 200px;
}

/* Image showcase */
.image-showcase {
    margin: 20px 0;
}

.image-showcase img {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Figure and figcaption */
figure {
    margin: 25px 0;
}

figure img {
    display: block;
    width: 100%;
}

figcaption {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    padding: 8px 10px;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

/* ==========================================================================
   7. VIDEO
   ========================================================================== */

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    margin: 20px 0;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

iframe[src*="youtube"] {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

p:has(iframe[src*="youtube"]) {
    position: relative;
    width: 100%;
}

/* ==========================================================================
   8. TABLES
   ========================================================================== */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

td, th {
    padding: 15px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #eee;
}

/* Matrix table (blue pill / red pill) */
table td img {
    max-width: 250px;
}

table td:last-child {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #00ff00;
    padding: 20px;
}

table td:last-child a {
    color: #00ff00;
}

/* ==========================================================================
   9. LISTS
   ========================================================================== */

ul, ol {
    margin: 15px 0;
    padding-left: 25px;
}

li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* ==========================================================================
   10. SECTIONS
   ========================================================================== */

section {
    margin: 40px 0;
    clear: both;
}

/* ==========================================================================
   11. NOTE & ALERT BOXES
   ========================================================================== */

.note {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.tip-box {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0;
}

.tip-box strong {
    color: #92400e;
}

.warning-box {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0;
}

.warning-box strong {
    color: #991b1b;
}

/* ==========================================================================
   12. FOCUS BOX
   ========================================================================== */

.focus-box {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.focus-box h3 {
    margin-top: 0;
}

.focus-box img {
    border-radius: 8px;
    margin-bottom: 10px;
}

/* ==========================================================================
   13. SECURITY TIPS
   ========================================================================== */

.security-tips {
    list-style: none;
    padding: 0;
}

.security-tips li {
    background: #fff;
    border-left: 4px solid #3498db;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.security-tips li strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 5px;
}

/* ==========================================================================
   14. CTA (Call To Action)
   ========================================================================== */

.cta-text {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 20px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    border-radius: 8px;
    margin: 30px 0;
}

.cta-text a {
    color: #fff;
    text-decoration: underline;
}

/* ==========================================================================
   15. MATRIX CHOICE (Blue pill / Red pill)
   ========================================================================== */

.matrix-choice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    border-radius: 8px;
    text-align: center;
}

.matrix-choice img {
    max-width: 250px;
    border-radius: 8px;
}

.matrix-choice p {
    color: #00ff00;
    font-family: 'Courier New', monospace;
    flex: 1;
    min-width: 200px;
}

.matrix-choice a {
    color: #00ff00;
}

/* ==========================================================================
   16. MAIL GALLERY
   ========================================================================== */

.mail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.mail-gallery img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.mail-gallery img:hover {
    transform: scale(1.02);
}

/* ==========================================================================
   17. SIDEBAR
   ========================================================================== */

#sidebar {
    position: sticky;
    top: 20px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* New layout sidebar (index.html) */
#page > #sidebar {
    width: 280px;
    flex-shrink: 0;
}

#sidebar h3 {
    font-size: 1rem;
    color: #2c3e50;
    margin-top: 25px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e74c3c;
}

#sidebar h3:first-of-type {
    margin-top: 0;
}

#sidebar p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* Sidebar sections (new layout) */
.sidebar-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.sidebar-section h3 {
    margin-top: 0;
    font-size: 1.1rem;
}

.sidebar-section p {
    font-size: 0.9rem;
    color: #666;
}

/* Sidebar navigation (new layout) */
.sidebar-nav h3 {
    font-size: 1rem;
    color: #2c3e50;
    margin-top: 20px;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 2px solid #e74c3c;
}

.sidebar-nav h3:first-of-type {
    margin-top: 0;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.sidebar-nav li {
    margin: 0;
}

.sidebar-nav a {
    display: block;
    padding: 6px 0;
    font-size: 0.85rem;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.2s;
}

.sidebar-nav a:hover {
    color: #e74c3c;
    padding-left: 8px;
    text-decoration: none;
    background: #fafafa;
}

/* Vertical menu sidebar (old layout) */
ul.vmenu,
.vmenu {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

ul.vmenu li,
.vmenu li {
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
}

ul.vmenu li:last-child,
.vmenu li:last-child {
    border-bottom: none;
}

ul.vmenu li a,
.vmenu li a {
    display: block;
    padding: 10px 5px;
    font-size: 0.85rem;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

ul.vmenu li a:hover,
.vmenu li a:hover {
    color: #e74c3c;
    padding-left: 12px;
    background: #fafafa;
    text-decoration: none;
}

/* ==========================================================================
   18. FAQ - Details/Summary
   ========================================================================== */

details {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 0;
}

details[open] {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

summary {
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 600;
    color: #2c3e50;
    list-style: none;
    transition: background 0.2s;
}

summary:hover {
    background: #f0f0f0;
    border-radius: 8px;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    float: right;
    font-size: 1.2em;
    font-weight: bold;
    color: #e74c3c;
    transition: transform 0.2s;
}

details[open] summary::after {
    content: '-';
}

details > div {
    padding: 0 20px 15px 20px;
    color: #555;
    line-height: 1.7;
}

/* ==========================================================================
   19. SMS BUBBLES (sms-drague-exemples)
   ========================================================================== */

.sms-container {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 16px 12px;
    margin: 20px 0;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
}

.sms-label {
    font-weight: bold;
    font-size: 0.85em;
    color: #6b7280;
    text-align: center;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sms-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    margin: 8px 0;
    line-height: 1.5;
    font-size: 0.95em;
}

.sms-sent {
    background: #3b82f6;
    color: #fff;
    margin-left: auto;
    margin-right: 10px;
    border-bottom-right-radius: 4px;
    text-align: right;
}

.sms-received {
    background: #e5e7eb;
    color: #1f2937;
    margin-right: auto;
    margin-left: 10px;
    border-bottom-left-radius: 4px;
}

/* ==========================================================================
   20. iPHONE SMS MOCKUP (seduire-sms)
   ========================================================================== */

.iphone-container {
    max-width: 380px;
    margin: 30px auto;
    background: #000;
    border-radius: 45px;
    padding: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.iphone-screen {
    background: #fff;
    border-radius: 35px;
    overflow: hidden;
}

.iphone-notch {
    background: #000;
    height: 30px;
    width: 150px;
    margin: 0 auto;
    border-radius: 0 0 20px 20px;
    position: relative;
    top: 0;
}

.iphone-header {
    background: #f6f6f6;
    padding: 10px 15px 15px;
    border-bottom: 1px solid #e5e5e5;
    text-align: center;
}

.iphone-header-back {
    color: #007AFF;
    font-size: 14px;
    position: absolute;
    left: 25px;
}

.iphone-header-name {
    font-weight: 600;
    font-size: 16px;
    color: #000;
}

.iphone-header-status {
    font-size: 12px;
    color: #8e8e93;
}

.iphone-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0 auto 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
}

.iphone-messages {
    background: #fff;
    padding: 15px;
    min-height: 400px;
    max-height: 500px;
    overflow-y: auto;
}

.message-date {
    text-align: center;
    font-size: 11px;
    color: #8e8e93;
    margin: 15px 0;
}

.message {
    margin: 8px 0;
    clear: both;
}

.message-bubble {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.4;
    position: relative;
}

.message-sent {
    float: right;
}

.message-sent .message-bubble {
    background: #007AFF;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.message-received {
    float: left;
}

.message-received .message-bubble {
    background: #e9e9eb;
    color: #000;
    border-bottom-left-radius: 4px;
}

.message-time {
    font-size: 10px;
    color: #8e8e93;
    margin-top: 3px;
    text-align: right;
}

.message-received .message-time {
    text-align: left;
}

.typing-indicator {
    float: left;
    background: #e9e9eb;
    padding: 12px 16px;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
}

.typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #8e8e93;
    border-radius: 50%;
    margin: 0 1px;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

.iphone-input {
    background: #f6f6f6;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #e5e5e5;
}

.iphone-input-field {
    flex: 1;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    color: #8e8e93;
}

.iphone-send {
    width: 30px;
    height: 30px;
    background: #007AFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
}

.conversation-label {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

/* ==========================================================================
   21. FOOTER
   ========================================================================== */

#footerWrapper {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    margin-top: 30px;
}

#footer {
    background: #2c3e50;
    color: #fff;
    padding: 25px 20px;
    text-align: center;
    margin-top: 30px;
}

#footer p {
    margin: 0;
    font-size: 0.9rem;
}

#footer a {
    color: #fff;
    text-decoration: none;
}

#footer a:hover {
    color: #e74c3c;
}

/* ==========================================================================
   22. UTILITY CLASSES
   ========================================================================== */

.clear {
    clear: both;
}

.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

p[style*="clear:both"],
p[style*="clear: both"] {
    clear: both;
    height: 20px !important;
}

/* ==========================================================================
   23. EXTERNAL LINKS
   ========================================================================== */

a[target="_blank"]::after {
    content: ' \2197';
    font-size: 0.8em;
}

a[href^="http"]:not([href*="conseil-seduction.fr"])::after {
    content: ' \2197';
    font-size: 0.8em;
}

/* ==========================================================================
   24. LAZY LOADING
   ========================================================================== */

img[loading="lazy"] {
    opacity: 1;
}

/* ==========================================================================
   25. ACCESSIBILITY
   ========================================================================== */

:focus {
    outline: 2px solid #e74c3c;
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* ==========================================================================
   26. RESPONSIVE - Tablet (max-width: 992px)
   ========================================================================== */

@media (max-width: 992px) {
    /* New layout */
    #page {
        flex-direction: column;
    }

    #page > #sidebar {
        width: 100%;
        order: 2;
    }

    #content {
        order: 1;
    }

    /* Old layout */
    #content:has(#center) {
        flex-direction: column;
    }

    #center {
        width: 100%;
        order: 1;
        padding-left: 0;
        padding-right: 0;
    }

    #right {
        width: 100%;
        order: 2;
    }

    #sidebar {
        position: static;
    }
}

/* ==========================================================================
   27. RESPONSIVE - Mobile (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {
    #wrapper {
        margin: 0;
        box-shadow: none;
    }

    #header {
        padding: 15px;
    }

    #header:empty {
        height: 120px;
    }

    #header:empty::before {
        font-size: 1.8rem;
    }

    #nav1 ul {
        flex-direction: column;
    }

    #nav1 ul li a {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    #page {
        padding: 15px;
    }

    #container {
        padding: 20px 15px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    /* Float images become block on mobile */
    .float-left {
        float: none;
        max-width: 100%;
        margin: 0 0 15px 0;
    }

    img[align="left"],
    img[style*="float:left"],
    img[style*="float: left"],
    img[align="right"],
    img[style*="float:right"],
    img[style*="float: right"] {
        float: none;
        display: block;
        max-width: 100%;
        margin: 15px auto;
    }

    /* Mail gallery single column */
    .mail-gallery {
        grid-template-columns: 1fr;
    }

    /* Matrix choice stacked */
    .matrix-choice {
        flex-direction: column;
        padding: 20px;
    }

    .matrix-choice img {
        max-width: 200px;
    }

    /* Table responsive */
    table {
        display: block;
    }

    table tr {
        display: flex;
        flex-direction: column;
    }

    table td {
        display: block;
        width: 100%;
    }

    table td img {
        max-width: 200px;
        margin: 0 auto;
        display: block;
    }

    /* Sidebar navigation grid on tablet */
    .sidebar-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0 20px;
    }

    .sidebar-nav h3 {
        grid-column: span 2;
    }

    #sidebar h3 {
        margin-top: 20px;
    }

    /* iPhone mockup responsive */
    .iphone-container {
        max-width: 100%;
        border-radius: 30px;
        padding: 8px;
    }

    .iphone-screen {
        border-radius: 22px;
    }

    /* SMS container responsive */
    .sms-container {
        max-width: 100%;
    }
}

/* ==========================================================================
   28. RESPONSIVE - Small Mobile (max-width: 480px)
   ========================================================================== */

@media (max-width: 480px) {
    body {
        font-size: 0.95rem;
    }

    #header {
        padding: 10px;
    }

    #header:empty {
        height: 100px;
    }

    #header:empty::before {
        font-size: 1.5rem;
    }

    #page {
        padding: 10px;
        gap: 20px;
    }

    #container {
        padding: 15px 12px;
    }

    h1 {
        font-size: 1.3rem;
    }

    h2 {
        font-size: 1.15rem;
        padding-left: 10px;
    }

    .sidebar-nav {
        grid-template-columns: 1fr;
    }

    .sidebar-nav h3 {
        grid-column: span 1;
    }
}

/* ==========================================================================
   29. PRINT
   ========================================================================== */

@media print {
    #nav1,
    #right,
    #sidebar,
    #footerWrapper,
    #footer,
    .video-container,
    .matrix-choice,
    .iphone-container,
    iframe {
        display: none !important;
    }

    #wrapper {
        box-shadow: none;
        max-width: 100%;
    }

    #content {
        display: block;
    }

    #center {
        width: 100%;
        padding: 0;
    }

    a {
        color: #333;
    }

    a[href]::after {
        content: ' (' attr(href) ')';
        font-size: 0.8em;
        color: #666;
    }
}
