/*
Theme Name: Le Village Informatique
Theme URI: https://levillageinformatique.fr
Author: Le Village Informatique
Description: Thème sur mesure (design glassmorphisme azur & ambre) pour Le Village Informatique — dépannage informatique, sauvegarde/cloud et bureautique en Île-de-France. Converti depuis une maquette React.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: le-village-informatique
*/

/* ==========================================================================
   Tokens de design (repris de la maquette, format oklch)
   ========================================================================== */
:root {
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Space Grotesk", var(--font-body);
  --radius: 0.75rem;

  --background: oklch(0.92 0.048 250);
  --foreground: oklch(0.18 0.038 260);
  --card-foreground: oklch(0.18 0.038 260);
  --primary: oklch(0.34 0.17 264);
  --primary-foreground: oklch(0.99 0 0);
  --secondary: oklch(1 0 0 / 56%);
  --muted-foreground: oklch(0.43 0.04 260);
  --accent: oklch(0.69 0.19 48);
  --accent-foreground: oklch(0.99 0 0);
  --border: oklch(1 0 0 / 60%);
  --input: oklch(1 0 0 / 72%);
  --ring: oklch(0.53 0.2 260);
  --brand: oklch(0.34 0.17 264);
  --brand-bright: oklch(0.53 0.21 259);
  --glass: oklch(1 0 0 / 55%);
  --glass-strong: oklch(1 0 0 / 74%);

  --container: 72rem;      /* ~ max-w-6xl */
  --container-wide: 80rem; /* ~ max-w-7xl */
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { border-color: var(--border); }

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

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Halos d'arrière-plan flous */
body::before, body::after {
  content: "";
  position: fixed;
  border-radius: 9999px;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
body::before { left: -10rem; top: -10rem; width: 33rem; height: 33rem; background: color-mix(in oklab, var(--brand-bright) 20%, transparent); }
body::after  { right: -11rem; top: 33%;  width: 30rem; height: 30rem; background: color-mix(in oklab, var(--accent) 15%, transparent); }

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.1; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.lvi-icon { width: 1.5rem; height: 1.5rem; display: inline-block; vertical-align: middle; }

/* ==========================================================================
   Utilitaires "verre"
   ========================================================================== */
.glass-panel {
  background: var(--glass);
  border: 1px solid color-mix(in oklab, white 70%, transparent);
  box-shadow: 0 24px 60px -42px color-mix(in oklab, var(--brand) 45%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.glass-strong {
  background: var(--glass-strong);
  border: 1px solid color-mix(in oklab, white 78%, transparent);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

@keyframes page-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.page-rise { animation: page-rise 0.65s ease-out both; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; scroll-behavior: auto !important; } }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.relative { position: relative; z-index: 1; }
.eyebrow { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; color: var(--accent); }
.text-accent { color: var(--accent); }
.text-brand-bright { color: var(--brand-bright); }

/* ==========================================================================
   Boutons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.9rem;
  padding: 0.75rem 1.5rem; border-radius: 9999px; border: 0; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease; white-space: nowrap;
}
.btn .lvi-icon { width: 1rem; height: 1rem; }
.btn-hero { background: var(--primary); color: var(--primary-foreground); box-shadow: 0 18px 40px -18px color-mix(in oklab, var(--primary) 60%, transparent); }
.btn-hero:hover { transform: translateY(-2px); }
.btn-cta { background: var(--accent); color: var(--accent-foreground); box-shadow: 0 14px 34px -16px color-mix(in oklab, var(--accent) 70%, transparent); }
.btn-cta:hover { transform: translateY(-2px); }
.btn-glass { background: var(--glass-strong); color: var(--foreground); border: 1px solid color-mix(in oklab, white 78%, transparent); backdrop-filter: blur(24px); }
.btn-glass:hover { background: white; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; }
.btn-lg { padding: 0.85rem 1.75rem; font-size: 0.95rem; }

/* ==========================================================================
   En-tête / navigation
   ========================================================================== */
.site-header { position: relative; z-index: 40; max-width: var(--container-wide); margin-inline: auto; padding: 1rem 1rem 0; }
@media (min-width: 640px) { .site-header { padding: 1.5rem 1.5rem 0; } }
.header-bar { display: flex; height: 4rem; align-items: center; justify-content: space-between; border-radius: 1rem; padding-inline: 0.75rem; }
@media (min-width: 640px) { .header-bar { padding-inline: 1.25rem; } }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; min-width: 0; }
.brand-badge { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; flex-shrink: 0; border-radius: 0.75rem; background: var(--primary); color: var(--primary-foreground); font-family: var(--font-heading); font-weight: 700; }
.brand-name { font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem; line-height: 1.1; }
.brand-tag { display: block; margin-top: 0.15rem; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted-foreground); }
.brand-logo { height: 4rem; width: auto; display: block; max-width: 280px; object-fit: contain; }
.main-nav { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 1024px) { .main-nav { display: flex; } }
.main-nav a { border-radius: 9999px; padding: 0.5rem 0.85rem; font-size: 0.78rem; font-weight: 500; color: color-mix(in oklab, var(--foreground) 72%, transparent); transition: background-color 0.15s ease; }
.main-nav a:hover { background: var(--secondary); }
.main-nav a.current { background: var(--primary); color: var(--primary-foreground); }
.nav-toggle { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; background: transparent; border: 0; cursor: pointer; color: var(--foreground); }
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.mobile-nav { display: none; margin-top: 0.5rem; border-radius: 1rem; padding: 0.75rem; }
.mobile-nav.open { display: grid; }
.mobile-nav a { border-radius: 0.75rem; padding: 0.75rem 1rem; font-size: 0.9rem; font-weight: 500; }
.mobile-nav a:hover { background: var(--secondary); }
.mobile-nav a.contact { margin-top: 0.25rem; background: var(--accent); color: var(--accent-foreground); font-weight: 600; }

/* ==========================================================================
   Sections génériques
   ========================================================================== */
main { position: relative; z-index: 10; }
.section { max-width: var(--container); margin-inline: auto; padding: 2.5rem 1.25rem; }
.section-hero { padding-top: 3.5rem; padding-bottom: 2.5rem; }
@media (min-width: 640px) { .section-hero { padding-top: 5rem; } }

.hero-h1 { margin-top: 1rem; font-size: clamp(2.25rem, 6vw, 3.75rem); font-weight: 700; }
.hero-intro { margin-top: 1.25rem; max-width: 42rem; font-size: 1.125rem; color: color-mix(in oklab, var(--foreground) 70%, transparent); }
.hero-actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Accueil : héro deux colonnes */
.home-hero { display: grid; gap: 3rem; align-items: center; max-width: var(--container); margin-inline: auto; padding: 3rem 1.25rem 4rem; }
@media (min-width: 1024px) { .home-hero { grid-template-columns: 1.05fr 0.95fr; } }
.pill { display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 9999px; background: var(--glass); padding: 0.5rem 1rem; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; color: var(--primary); box-shadow: inset 0 0 0 1px var(--border); backdrop-filter: blur(20px); }
.pill .dot { width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: var(--accent); }
.home-hero h1 { margin-top: 1.5rem; font-size: clamp(2.25rem, 6vw, 3.75rem); font-weight: 700; line-height: 1.06; }
.stats { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; max-width: 32rem; }
.stat { border-radius: 1rem; padding: 1rem; }
.stat dt { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.stat.accent dt { color: var(--accent); }
.stat dd { margin: 0.25rem 0 0; font-size: 0.72rem; color: var(--muted-foreground); }
.hero-media { position: relative; width: 100%; max-width: 28rem; margin-inline: auto; }
.hero-media img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: 1.5rem; box-shadow: inset 0 0 0 1px var(--border); }
.hero-badge { position: absolute; bottom: -1.5rem; left: 1rem; right: 1rem; border-radius: 1rem; padding: 1rem; }
@media (min-width: 640px) { .hero-badge { left: -1.5rem; right: auto; width: 15rem; } }
.hero-badge .title { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-heading); font-size: 0.9rem; font-weight: 600; }
.hero-badge .title .lvi-icon { width: 1rem; height: 1rem; color: var(--accent); }
.hero-badge p { margin-top: 0.25rem; font-size: 0.75rem; color: var(--muted-foreground); }

/* Titres de section */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-top: 0.5rem; }
.section-title { font-size: clamp(1.6rem, 3.5vw, 1.875rem); font-weight: 700; }
.section-link { display: none; font-size: 0.85rem; font-weight: 600; color: var(--primary); }
@media (min-width: 640px) { .section-link { display: block; } }

/* Grille de services */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: 1fr 1fr 1fr; } }
.card { border-radius: 1.5rem; padding: 1.75rem; }
.card-link { transition: transform 0.15s ease; }
.card-link:hover { transform: translateY(-4px); }
.card-icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 1rem; background: color-mix(in oklab, var(--primary) 10%, transparent); color: var(--primary); }
.card h2, .card h3 { margin-top: 1.25rem; font-size: 1.25rem; font-weight: 700; }
.card p { margin-top: 0.5rem; font-size: 0.875rem; color: color-mix(in oklab, var(--foreground) 65%, transparent); }
.card .more { margin-top: 1.25rem; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; color: var(--brand-bright); }
.card .more .lvi-icon { width: 1rem; height: 1rem; }

/* Bloc "pourquoi nous" + panneau sombre */
.duo { display: grid; gap: 1.25rem; }
@media (min-width: 1024px) { .duo { grid-template-columns: 1fr 1fr; } }
.panel { border-radius: 1.5rem; padding: 2rem; }
@media (min-width: 640px) { .panel { padding: 2.5rem; } }
.panel-dark { background: var(--primary); color: var(--primary-foreground); }
.panel-dark h2 { margin-top: 1.25rem; font-size: 1.875rem; font-weight: 700; }
.panel-dark p { margin-top: 1rem; color: color-mix(in oklab, var(--primary-foreground) 75%, transparent); }
.panel-dark .lvi-icon { color: var(--accent); width: 2rem; height: 2rem; }
.checklist { margin-top: 1.75rem; display: grid; gap: 1rem; }
.checklist.two { grid-template-columns: 1fr; }
@media (min-width: 640px) { .checklist.two { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 0.75rem; font-size: 0.875rem; color: color-mix(in oklab, var(--foreground) 75%, transparent); }
.check .lvi-icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; color: var(--primary); margin-top: 0.1rem; }
.check-badge { display: grid; place-items: center; width: 1.25rem; height: 1.25rem; flex-shrink: 0; border-radius: 9999px; background: color-mix(in oklab, var(--primary) 10%, transparent); color: var(--primary); margin-top: 0.1rem; }
.check-badge .lvi-icon { width: 0.75rem; height: 0.75rem; }
.reassurance-note { margin-top: 1.75rem; border-top: 1px solid var(--border); padding-top: 1.5rem; font-size: 0.875rem; color: color-mix(in oklab, var(--foreground) 70%, transparent); }

/* Zone d'intervention */
.zone { display: flex; flex-direction: column; gap: 2rem; border-radius: 1.5rem; padding: 2rem; }
@media (min-width: 640px) { .zone { flex-direction: row; align-items: center; justify-content: space-between; padding: 2.75rem; } }
.zone .lvi-icon { width: 1rem; height: 1rem; }

/* Bannière accent (bureautique) */
.banner-accent { border-radius: 1.5rem; background: var(--accent); color: var(--accent-foreground); padding: 1.75rem; }
@media (min-width: 640px) { .banner-accent { display: flex; align-items: center; justify-content: space-between; } }
.banner-accent h2 { font-size: 1.5rem; font-weight: 700; }
.banner-accent p { margin-top: 0.5rem; font-size: 0.875rem; color: color-mix(in oklab, var(--accent-foreground) 82%, transparent); }

/* Callout */
.callout { border-radius: 1.5rem; background: var(--primary); color: var(--primary-foreground); padding: 2.5rem 1.75rem; }
@media (min-width: 640px) { .callout { padding: 2.5rem 3rem; } }
.callout h2 { font-size: 1.875rem; font-weight: 700; }
.callout p { margin-top: 0.75rem; max-width: 42rem; color: color-mix(in oklab, var(--primary-foreground) 75%, transparent); }
.callout .btn { margin-top: 1.75rem; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { margin-top: 3rem; display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 0.8fr 1.2fr; } }
.contact-aside h2 { font-size: 1.5rem; font-weight: 700; }
.contact-list { margin-top: 1.75rem; display: grid; gap: 1.25rem; font-size: 0.9rem; }
.contact-item { display: flex; gap: 0.75rem; }
.contact-item .ico { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; flex-shrink: 0; border-radius: 0.75rem; background: color-mix(in oklab, var(--primary) 10%, transparent); color: var(--primary); }
.contact-item .ico .lvi-icon { width: 1.25rem; height: 1.25rem; }
.contact-item .label { font-weight: 600; }
.contact-item .value { margin-top: 0.15rem; color: var(--muted-foreground); }
.contact-note { margin-top: 2rem; border-top: 1px solid var(--border); padding-top: 1.5rem; font-size: 0.875rem; color: color-mix(in oklab, var(--foreground) 65%, transparent); }

.contact-form .row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .contact-form .row { grid-template-columns: 1fr 1fr; } }
.field { display: block; margin-top: 1rem; font-size: 0.875rem; font-weight: 500; }
.contact-form .row .field { margin-top: 0; }
.field input, .field select, .field textarea {
  margin-top: 0.5rem; width: 100%; border-radius: 0.75rem; background: var(--input);
  padding: 0.75rem 1rem; border: 1px solid var(--border); font: inherit; color: var(--foreground);
  outline: none; transition: box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: 0 0 0 2px var(--ring); }
.field textarea { resize: vertical; }
.contact-form .btn { margin-top: 1.25rem; width: 100%; }
.form-hint { margin-top: 0.75rem; font-size: 0.75rem; color: var(--muted-foreground); }
.form-success { border-radius: 0.75rem; background: color-mix(in oklab, var(--accent) 16%, transparent); border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent); padding: 1rem; font-size: 0.9rem; margin-bottom: 1rem; }
.hp { position: absolute; left: -9999px; }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.site-footer { position: relative; z-index: 10; max-width: var(--container-wide); margin-inline: auto; padding: 0 1.25rem 2rem; }
.footer-inner { display: flex; flex-direction: column; gap: 1.25rem; border-top: 1px solid var(--border); padding: 2rem 0; font-size: 0.875rem; color: var(--muted-foreground); }
@media (min-width: 640px) { .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer-inner .copy { font-family: var(--font-heading); font-weight: 500; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-links a:hover { color: var(--primary); }

/* Contenu WordPress générique (pages/articles standard) */
.entry { max-width: 48rem; }
.entry h1 { font-size: 2.25rem; font-weight: 700; margin-bottom: 1rem; }
.entry p { margin: 1rem 0; }
