/*
Theme Name:  Lovable WP Theme
Theme URI:   https://github.com/lovable-wp-theme
Author:      Lovable WP
Author URI:  https://lovable.dev
Description: Thème WordPress natif conçu pour héberger les sites exportés depuis Lovable.dev. Affichage pleine page sans conflit header/footer, import ZIP intégré, sécurité renforcée, SEO optimisé, support multilingue.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License:     GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lovable-theme
Domain Path: /languages
Tags:        full-width-template, custom-menu, custom-logo, lovable, landing-page, one-page
*/

/* === Global Reset === */
*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    background: #fff;
    color: #1a1a1a;
}

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

/* === Admin Bar Fix === */
html { margin-top: 0 !important; }
#wpadminbar { position: fixed !important; z-index: 99999; }

body.admin-bar .lovable-root {
    padding-top: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar .lovable-root { padding-top: 46px; }
}

/* === Full-page wrapper === */
.lovable-root {
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* === WP skip link === */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 100000;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    font-size: 14px;
    text-decoration: none;
}
.skip-link:focus {
    left: 6px;
    top: 6px;
    width: auto;
    height: auto;
    overflow: visible;
    outline: 3px solid #f90;
}

/* === WP Alignments === */
.alignleft   { float: left; margin: 0 1.5em 1em 0; }
.alignright  { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.alignwide   { max-width: 1200px; margin-left: auto; margin-right: auto; }
.alignfull   { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }

/* === WP Captions === */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.875em; color: #666; margin-top: 4px; }

/* === Screen reader text === */
.screen-reader-text {
    clip: rect(1px,1px,1px,1px);
    height: 1px; width: 1px;
    overflow: hidden;
    position: absolute !important;
}
.screen-reader-text:focus {
    background: #f1f1f1;
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto; width: auto;
    padding: 15px 23px 14px;
    position: static !important;
    text-decoration: none;
    z-index: 100000;
}

/* === 404 / No content fallback === */
.lovable-404 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 2rem;
}
.lovable-404 h1 { font-size: clamp(4rem,15vw,10rem); margin: 0; color: #ddd; }
.lovable-404 p  { font-size: 1.25rem; color: #555; }
.lovable-404 a  {
    display: inline-block;
    margin-top: 1.5rem;
    padding: .7em 2em;
    background: #1a1a1a;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity .2s;
}
.lovable-404 a:hover { opacity: .8; }
