/*
Theme Name: Kevin Grillot
Theme URI: https://kevin-grillot.fr
Author: Kevin Grillot
Author URI: https://kevin-grillot.fr
Description: Thème personnalisé standalone pour kevin-grillot.fr — Consultant SEO Lyon. Design professionnel dark/light, optimisé Core Web Vitals, sans dépendance Elementor.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: kevin-grillot
Tags: custom-header, custom-menu, featured-images, threaded-comments, translation-ready, dark-mode, portfolio, blog
*/

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6,
.font-heading {
    font-family: 'Outfit', 'Playfair Display', Georgia, serif;
    line-height: 1.2;
    margin-top: 0;
}

/* ============================================================
   WORDPRESS CORE
   ============================================================ */
.wp-caption {
    max-width: 100%;
}
.wp-caption-text {
    font-size: 0.85em;
    color: #9ca3af;
    text-align: center;
    margin-top: 0.5em;
}
.sticky {
    position: relative;
}
.gallery-caption {}
.bypostauthor {}

/* Screen-reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ============================================================
   SKIP LINK
   ============================================================ */
.skip-link {
    position: absolute;
    top: -9999px;
    left: 0;
    background: #2563eb;
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 100000;
    font-size: 0.875rem;
}
.skip-link:focus {
    top: 0;
}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
}

/* ============================================================
   COMMENTS
   ============================================================ */
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.comment-body {
    padding: 1.5rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}
.comment-author .fn {
    font-weight: 700;
    color: #ffffff;
}
.comment-metadata {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.25rem;
}
.comment-content {
    margin-top: 1rem;
    color: #d1d5db;
}
.comment-reply-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #2563eb;
    font-weight: 600;
}
.comment-reply-link:hover {
    text-decoration: underline;
}

/* Comment form */
#commentform label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    color: #d1d5db;
    font-weight: 600;
}
#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.3s;
}
#commentform input[type="text"]:focus,
#commentform input[type="email"]:focus,
#commentform textarea:focus {
    outline: none;
    border-color: #2563eb;
    background: rgba(37,99,235,0.05);
}
#commentform input[type="submit"] {
    background: linear-gradient(45deg, #2563eb, #1d4ed8);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}
#commentform input[type="submit"]:hover {
    box-shadow: 0 0 20px rgba(37,99,235,0.4);
    transform: translateY(-2px);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination,
.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: 3rem 0;
}
.page-numbers,
.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    color: #d1d5db;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
}
.page-numbers.current,
.page-numbers:hover,
.nav-links a:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

/* ============================================================
   ALIGNMENTS (Gutenberg)
   ============================================================ */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}
.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.alignwide {
    width: calc(100% + 4rem);
    max-width: none;
    margin-left: -2rem;
}
.alignfull {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
}

/* ============================================================
   FORMINATOR / WPFORMS OVERRIDES
   ============================================================ */
.forminator-ui input,
.forminator-ui textarea,
.forminator-ui select,
.wpforms-field input,
.wpforms-field textarea,
.wpforms-field select {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-family: inherit !important;
}
.forminator-ui input:focus,
.forminator-ui textarea:focus,
.wpforms-field input:focus,
.wpforms-field textarea:focus {
    border-color: #2563eb !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15) !important;
}
.forminator-btn,
.wpforms-submit {
    background: linear-gradient(45deg, #2563eb, #1d4ed8) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
}
.forminator-label,
.wpforms-field-label {
    color: #d1d5db !important;
    font-weight: 600 !important;
}
