/*
Theme Name: Tous Pneus
Theme URI: https://touspneusjuvignac.com/
Author: Noan
Description: Thème de blocs sur mesure pour le garage Tous Pneus à Juvignac : pneus, entretien, mécanique rapide.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tous-pneus
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
:where(a, button, summary, input, select, textarea):focus-visible { outline: 3px solid var(--wp--preset--color--jaune); outline-offset: 2px; }
[id] { scroll-margin-top: 24px; }

/* ---------- Sections ---------- */
.tp-section { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 88px); }
.tp-band { border-top: 1px solid var(--wp--preset--color--bordure); border-bottom: 1px solid var(--wp--preset--color--bordure); }
.tp-eyebrow { color: var(--wp--preset--color--jaune); font-weight: 600; font-size: 1rem; margin: 0 0 8px; }
.has-jaune-background-color .tp-eyebrow { color: var(--wp--preset--color--nuit); }
.tp-lead { color: var(--wp--preset--color--gris); font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.55; max-width: 34em; }

/* ---------- Barre infos ---------- */
.tp-topbar { font-size: 0.875rem; font-weight: 600; padding-top: 8px; padding-bottom: 8px; }
.tp-topbar p { margin: 0; }

/* ---------- En-tête ---------- */
.tp-header { padding-top: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--wp--preset--color--bordure); }
.tp-header .wp-block-site-title a { color: var(--wp--preset--color--jaune); text-decoration: none; }
.tp-header .wp-block-navigation a:hover { color: var(--wp--preset--color--jaune); }
.tp-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--nuit); color: var(--wp--preset--color--texte); }

/* ---------- Hero ---------- */
.tp-hero h1 { font-size: clamp(2.6rem, 6vw, 4.25rem); line-height: 0.98; }
.tp-hero .wp-block-image img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-top: 8px solid var(--wp--preset--color--jaune); }

/* ---------- Chiffres ---------- */
.tp-stat { font-family: var(--wp--preset--font-family--barlow-condensed); font-weight: 800; font-size: clamp(2rem, 3.5vw, 2.75rem); line-height: 1; color: var(--wp--preset--color--jaune); margin: 0; }
.tp-stat + p { color: var(--wp--preset--color--gris); margin: 4px 0 0; }

/* ---------- Cartes services / avis ---------- */
.tp-card { background: var(--wp--preset--color--carte); border: 1px solid var(--wp--preset--color--bordure); padding: 28px 24px; }
.tp-card h3 { font-size: 1.6rem; margin: 0 0 10px; }
.tp-card p { color: var(--wp--preset--color--gris); margin: 0; line-height: 1.5; }
.tp-card .tp-stars { color: var(--wp--preset--color--jaune); letter-spacing: 3px; font-size: 1.25rem; margin-bottom: 14px; }
.tp-card .tp-quote { color: var(--wp--preset--color--texte); font-size: 1.05rem; margin-bottom: 14px; }
.tp-subtitle { margin-top: 48px !important; }

/* ---------- Images ---------- */
.tp-photo img { width: 100%; height: auto; object-fit: cover; display: block; }
.tp-gallery .wp-block-image img { aspect-ratio: 4 / 3; }

/* ---------- Contact ---------- */
.tp-contact-list p { margin: 0 0 14px; }
.tp-form { background: var(--wp--preset--color--carte); border: 1px solid var(--wp--preset--color--bordure); border-top: 6px solid var(--wp--preset--color--jaune); padding: clamp(24px, 4vw, 36px); }
.tp-map iframe { width: 100%; height: 300px; border: 0; display: block; }

/* Contact Form 7 */
.wpcf7 label { display: block; font-weight: 600; margin-bottom: 14px; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 select, .wpcf7 textarea {
  display: block; width: 100%; box-sizing: border-box; margin-top: 6px; min-height: 48px; padding: 12px 14px;
  background: var(--wp--preset--color--nuit); color: var(--wp--preset--color--texte); border: 1px solid #3A4766; font: inherit; font-weight: 400; border-radius: 0;
}
.wpcf7 input[type="submit"] {
  background: var(--wp--preset--color--jaune); color: var(--wp--preset--color--nuit); border: 0; border-radius: 0;
  font: inherit; font-weight: 700; font-size: 1.05rem; padding: 16px 28px; min-height: 52px; cursor: pointer;
}
.wpcf7 input[type="submit"]:hover { background: #FFE45C; }
.wpcf7-not-valid-tip { color: #FFB4A8; }

/* ---------- FAQ ---------- */
.tp-faq .wp-block-details { border-bottom: 1px solid var(--wp--preset--color--bordure); padding: 0 4px; }
.tp-faq .wp-block-details summary { font-weight: 600; font-size: 1.1rem; padding: 20px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.tp-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.tp-faq .wp-block-details summary::after { content: "+"; color: var(--wp--preset--color--jaune); font-size: 1.6rem; line-height: 1; }
.tp-faq .wp-block-details[open] summary::after { content: "−"; }
.tp-faq .wp-block-details p { color: var(--wp--preset--color--gris); margin: 0 0 20px; }

/* ---------- Pied de page ---------- */
.tp-footer { border-top: 4px solid var(--wp--preset--color--jaune); padding-top: 48px; padding-bottom: 28px; font-size: 0.95rem; }
.tp-footer a { color: var(--wp--preset--color--texte); text-decoration: none; }
.tp-footer a:hover { color: var(--wp--preset--color--jaune); }
.tp-footer p { margin: 0 0 10px; }
.tp-footer .tp-legal { border-top: 1px solid #1C2640; margin-top: 32px; padding-top: 16px; color: #8C97AE; font-size: 0.875rem; }
.tp-footer .tp-legal a { color: #AEB8CC; }

/* ---------- Espacements globaux ---------- */
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-block-template-part > * { margin-block: 0; }
.tp-eyebrow { margin: 0; }
.tp-band:not(.tp-section) { padding-top: 32px; padding-bottom: 32px; }
