/*
Theme Name: Le Roi du pneu mobile
Theme URI: https://www.leroidupneumobile.ca
Author: Le Roi du pneu mobile
Description: Thème bilingue (FR/EN) pour service de pneus à domicile. Utilisez le plugin WP Mail SMTP pour configurer l'envoi des formulaires vers info@leroidupneumobile.ca.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: leroi-du-pneu-mobile
*/

/* Le Roi du pneu mobile — Main styles */
:root {
  --bg-dark: #0f0f0f;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222;
  --gold: #c9a227;
  --gold-light: #e0b83d;
  --gold-bright: #f2d54a;
  --gold-brighter: #f8e05a;
  --text: #f5f5f5;
  --text-muted: #a0a0a0;
  --border: #2a2a2a;
  --radius: 8px;
  --radius-lg: 12px;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-weight: 400; font-size: 1rem; line-height: 1.6; color: var(--text); background: var(--bg-dark); min-height: 100vh; display: flex; flex-direction: column; }
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

.header { position: sticky; top: 0; z-index: 100; background: rgba(15, 15, 15, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 8rem; gap: 1rem; }
@media (min-width: 600px) { .header-inner { min-height: 9.5rem; } }
@media (min-width: 900px) { .header-inner { min-height: 10rem; } .header-inner .nav { flex: 1; justify-content: center; gap: 2rem; margin: 0 1rem; } }

.logo { display: flex; align-items: center; text-decoration: none; padding: 0.4rem 0.5rem 0.4rem 0; line-height: 0; border-radius: var(--radius); transition: background 0.2s ease; }
.logo:hover { background: rgba(255, 255, 255, 0.04); }
.logo-img { height: 155px; width: auto; max-width: 520px; display: block; object-fit: contain; transition: transform 0.25s ease; filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.5)); }
.logo:hover .logo-img { transform: scale(1.03); }
.logo-fallback { display: none; font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0.03em; color: var(--gold); white-space: nowrap; }
.logo-fallback--show { display: block !important; }
@media (min-width: 600px) { .logo-img { height: 190px; max-width: 640px; } }
@media (min-width: 900px) { .logo-img { height: 220px; max-width: 750px; } }

.nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0; background: none; border: none; color: var(--text); cursor: pointer; }
.nav-toggle span { display: block; height: 2px; width: 22px; background: currentColor; border-radius: 1px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 900px) { .nav-toggle { display: none; } }

.nav { position: fixed; top: 4rem; left: 0; right: 0; background: var(--bg-dark); border-bottom: 1px solid var(--border); padding: 1rem 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; visibility: hidden; opacity: 0; transform: translateY(-10px); transition: visibility 0.2s, opacity 0.2s, transform 0.2s; }
.nav.is-open { visibility: visible; opacity: 1; transform: translateY(0); }
@media (min-width: 900px) { .nav { position: static; flex-direction: row; align-items: center; padding: 0; background: none; border: none; visibility: visible; opacity: 1; transform: none; gap: 0.25rem; } }

.nav-link { color: var(--text); text-decoration: none; padding: 0.6rem 0.75rem; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; transition: color var(--transition), background var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--gold); }
.nav-link.nav-cta { background: var(--gold); color: var(--bg-dark); }
.nav-link.nav-cta:hover { background: var(--gold-light); color: var(--bg-dark); }

.lang-switch { display: flex; align-items: center; gap: 0.25rem; margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--border); }
@media (min-width: 900px) { .lang-switch { margin-top: 0; padding-top: 0; border-top: none; margin-left: 0.25rem; } }
.lang-btn { background: none; border: none; color: var(--text); cursor: pointer; font-size: 0.9rem; font-weight: 600; padding: 0.25rem 0.35rem; border-radius: 4px; text-transform: uppercase; }
.lang-btn:hover, .lang-btn.active { color: var(--gold); }
.lang-sep { color: var(--border); font-size: 0.85rem; }

.hero { position: relative; min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 4rem 0; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; filter: brightness(1.15) contrast(1.05); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 15, 15, 0.2) 0%, rgba(15, 15, 15, 0.45) 100%); z-index: 1; }
.hero-content { position: relative; text-align: center; width: 100%; max-width: 640px; margin: 0 auto; }
.hero-subtitle { font-size: 1.25rem; color: #fff; margin: 0 auto 2rem; max-width: 480px; text-align: center; font-weight: 600; text-shadow: 0 2px 12px rgba(0,0,0,0.7); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.5rem; font-family: var(--font-body); font-size: 1rem; font-weight: 600; text-decoration: none; border-radius: var(--radius); border: none; cursor: pointer; transition: background var(--transition), color var(--transition), transform 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold-bright); color: #1a1a1a; box-shadow: 0 2px 16px rgba(242, 213, 74, 0.5); }
.btn-primary:hover { background: var(--gold-brighter); color: #1a1a1a; }
.btn-secondary { background: rgba(255,255,255,0.12); color: var(--gold-brighter); border: 2px solid var(--gold-bright); }
.btn-secondary:hover { background: rgba(242,213,74,0.2); color: #fffde7; border-color: var(--gold-brighter); }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

.section { padding: 4rem 0; text-align: center; }
.section-title { font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 400; letter-spacing: 0.02em; margin: 0 auto 2rem; text-align: center; color: var(--text); }

.intro-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .intro-grid { grid-template-columns: repeat(3, 1fr); } }
.intro-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; text-align: center; transition: border-color var(--transition), background var(--transition); }
.intro-card:hover { background: var(--bg-card-hover); border-color: var(--gold); }
.intro-card h3 { font-size: 1.15rem; font-weight: 600; margin: 0 0 0.5rem; color: var(--text); }
.intro-card p { margin: 0 0 1rem; color: var(--text-muted); font-size: 0.95rem; }
.intro-link { display: inline-block; font-weight: 600; color: var(--gold); text-decoration: none; font-size: 0.95rem; }
.intro-link:hover { color: var(--gold-light); }

.cta-section { background: var(--bg-card); border-top: 1px solid var(--border); text-align: center; }
.cta-section--services { padding: 3rem 0; background: linear-gradient(0deg, rgba(201,162,39,0.06) 0%, var(--bg-card) 100%); border-top: 1px solid var(--border); }
.cta-text { color: var(--text-muted); margin: 0 auto 1.5rem; max-width: 480px; text-align: center; }

.page-hero { padding: 3rem 0 2rem; border-bottom: 1px solid var(--border); text-align: center; }
.page-hero--services { padding: 3.5rem 0 2.5rem; background: linear-gradient(180deg, rgba(201,162,39,0.04) 0%, transparent 100%); }
.page-title { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); font-weight: 400; letter-spacing: 0.02em; margin: 0 auto 0.5rem; color: var(--text); text-align: center; }
.page-subtitle { color: var(--text-muted); margin: 0 auto; font-size: 1.05rem; text-align: center; }

.services-list.section { padding: 3rem 0 4rem; }
.services-block { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; margin-bottom: 2.5rem; box-shadow: 0 4px 24px rgba(0,0,0,0.2); transition: border-color 0.25s ease, box-shadow 0.25s ease; }
.services-block:hover { border-color: rgba(201,162,39,0.3); box-shadow: 0 8px 32px rgba(0,0,0,0.25); }
.services-block:last-child { margin-bottom: 0; }
.services-block-title { font-family: var(--font-display); font-size: 1.65rem; font-weight: 400; letter-spacing: 0.03em; color: var(--gold); margin: 0 0 1.5rem; padding: 0 0 1rem; border-bottom: 2px solid var(--gold); text-align: left; }
.services-block-inner { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .services-block-inner { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .services-block-inner { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.service-item { background: rgba(0,0,0,0.2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; display: flex; align-items: flex-start; gap: 0.85rem; text-align: left; transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease; }
.service-item:hover { border-color: var(--gold); background: rgba(201,162,39,0.08); transform: translateY(-2px); }
.service-item-icon { font-size: 1.35rem; flex-shrink: 0; }
.service-item-num { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; min-width: 2.25rem; border-radius: 50%; background: linear-gradient(145deg, var(--gold-light), var(--gold)); color: var(--bg-dark); font-weight: 700; font-size: 1.05rem; flex-shrink: 0; box-shadow: 0 2px 8px rgba(201,162,39,0.35); }
.service-item-text { margin: 0; color: var(--text); font-size: 0.98rem; font-weight: 500; line-height: 1.45; }
.service-item-content { flex: 1; min-width: 0; }
.service-item-detail { margin: 0.4rem 0 0; font-size: 0.86rem; color: var(--text-muted); line-height: 1.45; }
.service-item--numbered { flex-direction: column; gap: 0.6rem; align-items: stretch; }
.service-item--numbered .service-item-num { align-self: flex-start; }

.pricing-section { text-align: left; }
.tarifs-intro { text-align: left; color: var(--text-muted); font-size: 1rem; margin: 0 0 2.5rem; }
.tarifs-block { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem 1.75rem; margin-bottom: 1.5rem; }
.tarifs-block:last-of-type { margin-bottom: 0; }
.tarifs-block-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 400; letter-spacing: 0.02em; color: var(--gold); margin: 0 0 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); text-align: left; }
.tarifs-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.tarifs-table tr { border-bottom: 1px solid var(--border); }
.tarifs-table tr:last-child { border-bottom: none; }
.tarifs-table td { padding: 0.65rem 0.5rem 0.65rem 0; vertical-align: top; color: var(--text); text-align: left; }
.tarifs-table td:first-child { color: var(--text-muted); }
.tarifs-table td:last-child { text-align: right; font-weight: 600; color: var(--gold); white-space: nowrap; }
.tarifs-block-note { margin: 0.75rem 0 0; font-size: 0.85rem; color: var(--text-muted); font-style: italic; }
.tarifs-notes { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); text-align: left; color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
.tarifs-notes p { margin: 0 0 0.5rem; }
.tarifs-notes a { color: var(--gold); text-decoration: none; }
.tarifs-notes a:hover { text-decoration: underline; }
.container--tarifs { max-width: 640px; }

.form-section { padding-bottom: 4rem; }
.form-container { max-width: 520px; margin: 0 auto; }
.booking-form, .contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); }
.form-row input, .form-row select, .form-row textarea { width: 100%; padding: 0.75rem 1rem; font-family: var(--font-body); font-size: 1rem; color: var(--text); background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color var(--transition); }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--gold); }
.form-row textarea { resize: vertical; min-height: 100px; }
.form-note { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin: 1rem 0 0; }
.form-success { color: var(--gold); margin-bottom: 1rem; font-weight: 500; }

.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 700px) { .contact-grid { grid-template-columns: 1fr 1.2fr; align-items: start; } }
.contact-info h2, .contact-form-wrap h2 { font-size: 1.25rem; font-weight: 600; margin: 0 0 1.25rem; color: var(--text); }
.contact-item { margin: 0 0 1.25rem; color: var(--text-muted); font-size: 0.95rem; }
.contact-item a { color: var(--gold); text-decoration: none; }
.contact-item a:hover { text-decoration: underline; }
.contact-form-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; }

.footer { margin-top: auto; padding: 2rem 0; border-top: 1px solid var(--border); background: var(--bg-card); }
.footer-inner { text-align: center; }
.footer-brand { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 0.02em; margin: 0 0 1rem; color: var(--text); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.25rem; margin-bottom: 1rem; }
.footer-nav a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; }
.footer-nav a:hover { color: var(--gold); }
.footer-copy { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
