/* ════════════════════════════════════════════════════════════════════
   LQC-THEME — Design System "Leconte qui compte"
   ────────────────────────────────────────────────────────────────────
   Base graphique commune du site, définie depuis index.php (page
   vitrine de référence) et inspirée des composants déjà validés sur
   la fiche contact Moonee (cartes, boutons, halos, ombres, animations,
   micro-interactions, formulaires).

   À inclure sur chaque page via :
     <link rel="stylesheet" href="lqc-theme.css">

   Ce fichier contient UNIQUEMENT ce qui est partagé entre les pages :
   variables, fond global, typographie de base, cartes, boutons,
   badges, listes à puce, animations, et quelques utilitaires.
   Le CSS spécifique à une page (mise en page particulière, sections
   propres à une page) reste dans le <style> de cette page.
   ════════════════════════════════════════════════════════════════════ */

/* ── 1. VARIABLES ────────────────────────────────────────────────── */
:root {
    /* Couleurs de marque */
    --lqc-blue:        #3185FC;
    --lqc-blue-2:      #2a78e6;
    --lqc-blue-soft:   #5BA4FF;
    --lqc-gold:        #F9DC5C;
    --lqc-gold-2:      #F5D24E;

    /* Fond / surfaces */
    --lqc-dark:        #0B0E14;
    --lqc-dark-2:      #11151D;
    --lqc-dark-3:      #0A0D13;
    --lqc-card:        #FFFFFF;
    --lqc-card-tint:   #FCFCFD;
    --lqc-ink:         #20242C;
    --lqc-ink-soft:    #6B7280;

    /* Texte sur fond sombre */
    --lqc-text:        rgba(255,255,255,0.92);
    --lqc-text-soft:   rgba(255,255,255,0.6);
    --lqc-text-faint:  rgba(255,255,255,0.4);

    /* Bordures / ombres */
    --lqc-border:        rgba(255,255,255,0.08);
    --lqc-border-strong: rgba(255,255,255,0.16);
    --lqc-shadow:      rgba(0,0,0,0.55);

    /* Rayons / espacements / rythme */
    --lqc-radius-lg:   20px;
    --lqc-radius:      16px;
    --lqc-radius-sm:   10px;
    --lqc-radius-pill: 999px;
    --lqc-gap:         22px;

    /* Easing commun pour toutes les micro-interactions */
    --lqc-ease: cubic-bezier(.4,0,.2,1);
    --lqc-ease-spring: cubic-bezier(.86,0,.07,1);

    /* Police */
    --lqc-font: 'Poppins', sans-serif;

    /* Alias rétro-compatibles (anciens noms déjà utilisés sur certaines pages) */
    --blue:   var(--lqc-blue);
    --yellow: var(--lqc-gold);
    --black:  var(--lqc-ink);

    /* ── Accent d'univers (paramétrable par page) ──────────────────
       Par défaut l'accent est le bleu LQC. Chaque page d'un univers
       donné surcharge --lqc-accent / --lqc-accent-2 / --lqc-accent-soft
       (cf. classes .lqc-universe--moonee / .lqc-universe--proopoil
       plus bas) pour que TOUS les composants génériques (.lqc-btn--accent,
       .lqc-badge--accent, .lqc-card--accent...) suivent automatiquement
       la bonne couleur, sans dupliquer le CSS d'une page à l'autre. */
    --lqc-accent:       var(--lqc-blue);
    --lqc-accent-2:     var(--lqc-blue-2);
    --lqc-accent-soft:  var(--lqc-blue-soft);
    --lqc-accent-ink:   #FFFFFF; /* couleur du texte posé sur l'accent */
}

/* ── 1bis. UNIVERS DE MARQUE ──────────────────────────────────────
   Même qualité graphique, mêmes composants, mêmes ombres, mêmes
   rayons, mêmes animations sur tout le site — seule la couleur
   d'accent change selon l'univers. À poser sur <body> ou sur un
   conteneur englobant (ex: <body class="lqc-body lqc-universe--moonee">). */
.lqc-universe--moonee {
    --lqc-accent:      var(--lqc-gold);
    --lqc-accent-2:    var(--lqc-gold-2);
    --lqc-accent-soft: #FCE38A;
    --lqc-accent-ink:  var(--lqc-ink);
}

.lqc-universe--proopoil {
    --lqc-accent:      #1A9CD8;
    --lqc-accent-2:    #1689C4;
    --lqc-accent-soft: #4DB6E8;
    --lqc-accent-ink:  #FFFFFF;
}

/* ── 2. RESET MINIMAL ────────────────────────────────────────────── */
.lqc-reset, .lqc-reset *, .lqc-reset *::before, .lqc-reset *::after {
    box-sizing: border-box;
}

/* ── 3. FOND GLOBAL "LECONTE QUI COMPTE" ─────────────────────────── */
/* Halo bleu dominant + rappel jaune Moonee très discret.
   À appliquer sur <body> de chaque page : class="lqc-body" */
.lqc-body {
    font-family: var(--lqc-font);
    background:
        radial-gradient(ellipse 140% 120% at 50% 38%, transparent 35%, rgba(0,0,0,0.5) 100%),
        radial-gradient(circle at 80% 14%, rgba(49,133,252,0.20), transparent 38%),
        radial-gradient(circle at 14% 86%, rgba(249,220,92,0.045), transparent 30%),
        radial-gradient(circle at 50% 42%, rgba(255,255,255,0.04), transparent 42%),
        linear-gradient(150deg, var(--lqc-dark) 0%, var(--lqc-dark-2) 45%, var(--lqc-dark-3) 100%);
    background-attachment: fixed;
    color: var(--lqc-text);
    min-height: 100vh;
}

/* Variante de halo pour les pages à dominante différente (ex : jaune
   plus présent pour les pages Moonee, vert/orange pour une future
   page assurance animale). Surcharger juste ce sélecteur suffit. */
.lqc-body--accent-gold {
    background:
        radial-gradient(ellipse 140% 120% at 50% 38%, transparent 35%, rgba(0,0,0,0.5) 100%),
        radial-gradient(circle at 80% 14%, rgba(249,220,92,0.16), transparent 38%),
        radial-gradient(circle at 14% 86%, rgba(49,133,252,0.05), transparent 30%),
        radial-gradient(circle at 50% 42%, rgba(255,255,255,0.04), transparent 42%),
        linear-gradient(150deg, var(--lqc-dark) 0%, var(--lqc-dark-2) 45%, var(--lqc-dark-3) 100%);
}

/* ── 4. SIGNATURE DISCRÈTE "LECONTE QUI COMPTE" ──────────────────── */
/* Zone réservée, prête pour une future signature FL. N'affiche rien
   de visuellement appuyé tant qu'elle reste un simple petit libellé. */
.lqc-signature {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--lqc-text-faint);
    text-align: center;
}

/* ── 5. BADGES / CAPSULES ────────────────────────────────────────── */
.lqc-badge {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    padding: 5px 12px;
    border-radius: var(--lqc-radius-pill);
}

.lqc-badge--blue {
    color: rgba(255,255,255,0.85);
    background: rgba(49,133,252,0.12);
    border: 1px solid rgba(49,133,252,0.28);
}

.lqc-badge--gold {
    color: var(--lqc-ink);
    background: linear-gradient(135deg, #FCE38A 0%, var(--lqc-gold) 55%, var(--lqc-gold-2) 100%);
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: 0 6px 16px rgba(249,220,92,0.18);
}

/* Badge "accent" : suit la couleur de l'univers actif (--lqc-accent).
   Permet d'écrire un seul composant réutilisable sur n'importe quelle
   page, quel que soit son univers de marque. */
.lqc-badge--accent {
    color: var(--lqc-accent-ink);
    background: linear-gradient(135deg, var(--lqc-accent-soft) 0%, var(--lqc-accent) 55%, var(--lqc-accent-2) 100%);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--lqc-accent) 22%, transparent);
}

/* ── 6. CARTES ───────────────────────────────────────────────────── */
.lqc-card {
    background: var(--lqc-card);
    border-radius: var(--lqc-radius-lg);
    box-shadow:
        0 60px 120px -25px var(--lqc-shadow),
        0 25px 50px -20px rgba(0,0,0,0.4),
        0 0 0 1px rgba(255,255,255,0.08);
    overflow: hidden;
}

/* Carte translucide sur fond sombre (utilisée pour des blocs d'info
   directement sur le fond, sans passer au blanc). */
.lqc-card--dark {
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid var(--lqc-border);
    border-radius: var(--lqc-radius);
    box-shadow: 0 24px 48px -20px var(--lqc-shadow), 0 2px 8px rgba(0,0,0,0.22);
    transition: border-color .3s ease, background .3s ease, transform .3s var(--lqc-ease), box-shadow .3s ease;
}

.lqc-card--dark:hover {
    background: linear-gradient(180deg, rgba(255,255,255,0.075) 0%, rgba(255,255,255,0.03) 100%);
    border-color: rgba(49,133,252,0.32);
    transform: translateY(-3px);
    box-shadow: 0 30px 58px -20px rgba(49,133,252,0.16), 0 2px 8px rgba(0,0,0,0.25);
}

/* ── 7. BOUTONS ──────────────────────────────────────────────────── */
.lqc-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--lqc-font);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.1px;
    padding: 16px 38px;
    border-radius: var(--lqc-radius-pill);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background .35s ease, box-shadow .35s var(--lqc-ease), transform .35s var(--lqc-ease);
}

.lqc-btn--blue {
    background: linear-gradient(135deg, var(--lqc-blue) 0%, var(--lqc-blue-2) 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(49,133,252,0.26), 0 2px 8px rgba(0,0,0,0.22);
}
.lqc-btn--blue:hover {
    background: linear-gradient(135deg, var(--lqc-blue-2) 0%, var(--lqc-blue) 100%);
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(49,133,252,0.36), 0 2px 8px rgba(0,0,0,0.22);
}
.lqc-btn--blue:focus-visible {
    box-shadow: 0 0 0 3px rgba(49,133,252,0.32), 0 10px 30px rgba(49,133,252,0.26);
}

.lqc-btn--gold {
    background: var(--lqc-gold);
    color: var(--lqc-ink);
}
.lqc-btn--gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(249,220,92,0.4);
}

.lqc-btn--white {
    background: linear-gradient(135deg, #FFFFFF 0%, #FAFBFC 100%);
    color: var(--lqc-ink);
    border: 1.5px solid rgba(0,0,0,0.08);
}
.lqc-btn--white:hover {
    border-color: var(--lqc-ink);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.07);
}

/* Bouton "accent" : suit la couleur de l'univers actif. Un seul
   composant, réutilisable sur Moonee, ProO'poil ou toute future
   activité — seule --lqc-accent change. */
.lqc-btn--accent {
    background: linear-gradient(135deg, var(--lqc-accent) 0%, var(--lqc-accent-2) 100%);
    color: var(--lqc-accent-ink);
    box-shadow: 0 10px 28px color-mix(in srgb, var(--lqc-accent) 26%, transparent), 0 2px 8px rgba(0,0,0,0.18);
}
.lqc-btn--accent:hover {
    background: linear-gradient(135deg, var(--lqc-accent-2) 0%, var(--lqc-accent) 100%);
    transform: translateY(-2px);
    box-shadow: 0 16px 36px color-mix(in srgb, var(--lqc-accent) 36%, transparent), 0 2px 8px rgba(0,0,0,0.18);
}
.lqc-btn--accent:focus-visible {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--lqc-accent) 32%, transparent), 0 10px 28px color-mix(in srgb, var(--lqc-accent) 26%, transparent);
}

/* ── 8. LISTES À PUCE ────────────────────────────────────────────── */
.lqc-list {
    list-style: none;
}
.lqc-list li {
    font-size: 12px;
    color: var(--lqc-text-soft);
    padding: 3px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── 9. ANIMATIONS COMMUNES (namespace lqc- pour éviter tout conflit
   avec d'autres animations propres à une page) ──────────────────── */
@keyframes lqc-fadeDown {
    from { opacity: 0; transform: translateY(-14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes lqc-fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes lqc-fadeLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes lqc-fadeRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes lqc-lineIn {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* ── 10. TRANSITIONS DE PAGE (slide in/out déjà utilisées dans le JS
   existant des pages — namespacées ici pour réutilisation uniforme) */
.lqc-page-transition {
    transition: transform .65s var(--lqc-ease-spring), opacity .5s ease;
}
.lqc-page-transition.lqc-slide-out-left {
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
}
.lqc-page-transition.lqc-slide-out-right {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
}

/* ── 10bis. RÉVÉLATION PROGRESSIVE DU CONTENU AU SCROLL/CHARGEMENT ───
   Posée sur n'importe quel bloc de contenu (.pp-reveal). Le script
   commun (voir includes/lqc-footer.php) observe ces éléments et ajoute
   .is-visible quand ils entrent dans le viewport. Variable --d (ms)
   optionnelle pour décaler l'apparition d'un élément (effet de cascade). */
.pp-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s var(--lqc-ease), transform .7s var(--lqc-ease);
    transition-delay: var(--d, 0ms);
}
.pp-reveal.is-visible {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .pp-reveal { opacity: 1; transform: none; transition: none; }
}

/* ── 11. SYSTÈME D'ACCENT — RÉCAPITULATIF ────────────────────────────
   .lqc-btn--accent  (section 7. Boutons) et
   .lqc-badge--accent (section 5. Badges) suivent automatiquement
   --lqc-accent / --lqc-accent-2 / --lqc-accent-soft / --lqc-accent-ink,
   définis soit par défaut sur :root (bleu LQC), soit surchargés par
   .lqc-universe--moonee ou .lqc-universe--proopoil (section 1bis).
   Aucune redéfinition nécessaire ici : un seul couple bouton/badge
   "accent" sert tous les univers du site. ───────────────────────── */

/* ── 12. LOGO FL — SIGNATURE "LECONTE QUI COMPTE" ────────────────────
   Le monogramme FL (cercle or = Moonee, L bleu = ProO'poil, F blanc =
   Florian Leconte / Leconte qui compte) est la signature transversale
   de la marque, conforme à la charte graphique officielle. Il ne doit
   jamais concurrencer les logos Moonee / ProO'poil : toujours discret,
   jamais au même niveau de hiérarchie visuelle qu'un logo de marque
   sur la même section.

   Fichiers sources (charte officielle, fond transparent) :
     logo_fl.png             — version couleur (usage par défaut)
     logo_fl_blanc.png       — version blanche, pour fond sombre
     logo_fl_noir.png        — version noire, pour fond clair
     logo_fl_or.png          — version "or premium"
     logo_fl_favicon_256.png — favicon
     logo_fl_icon_64.png     — icône petite taille
   ──────────────────────────────────────────────────────────────── */

/* Variante 1 — filigrane de section : très discret (3 à 5% d'opacité,
   conforme à la charte), posé en fond d'une zone (hero, section),
   jamais sur les CTA ni à proximité immédiate d'un logo Moonee/ProO'poil. */
.lqc-fl-watermark {
    position: absolute;
    width: clamp(180px, 22vw, 340px);
    height: auto;
    aspect-ratio: 1 / 1;
    background-image: url('/Branding/logo_fl.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
}

/* Variante 2 — signature de footer, conforme au modèle officiel de la
   charte ("Footer de site") : monogramme dans un cercle, texte de
   marque à droite (nom + activité), sobre et discret. */
.lqc-fl-footer {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.lqc-fl-footer img {
    width: 38px;
    height: 38px;
    display: block;
    flex-shrink: 0;
}
.lqc-fl-footer .lqc-fl-footer-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}
.lqc-fl-footer .lqc-fl-footer-text strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--lqc-text);
}
.lqc-fl-footer .lqc-fl-footer-text span {
    font-size: 10.5px;
    color: var(--lqc-text-faint);
}

/* Variante 2bis — signature de footer minimaliste : petit monogramme
   + texte sur une seule ligne, pour les footers très sobres déjà
   existants (ex : mention légale en une ligne). */
.lqc-fl-signature {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 0.7;
}
.lqc-fl-signature img {
    width: 18px;
    height: 18px;
    display: block;
}
.lqc-fl-signature span {
    font-size: 10px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--lqc-text-faint);
}

/* Variante 3 — marque discrète ponctuelle (ex : coin d'une carte,
   séparateur de section, icône App/CRM). Volontairement minuscule. */
.lqc-fl-mark {
    width: 22px;
    height: 22px;
    background-image: url('/Branding/logo_fl.png');
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    vertical-align: middle;
}

/* Variante 4 — icône App / CRM : fond arrondi sombre avec le FL
   couleur centré, conforme au modèle "Icône & Favicon" de la charte. */
.lqc-fl-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--lqc-radius-sm);
    background: linear-gradient(145deg, var(--lqc-dark-2) 0%, var(--lqc-dark) 100%);
    border: 1px solid var(--lqc-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(0,0,0,0.35);
}
.lqc-fl-icon img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

/* ── 13. BOUTON RETOUR DISCRET (utilisé sur les pages secondaires) ── */
.lqc-btn-back {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 999;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    backdrop-filter: blur(6px);
    transition: background .2s;
}
.lqc-btn-back:hover {
    background: rgba(255,255,255,0.16);
}
