/*
Theme Name: Taxis Budget Vaud
Theme URI: http://localhost/taxis-budget
Author: Taxis Budget Vaud Sàrl
Description: Thème bloc sur mesure, one page, pour Taxis Budget Vaud Sàrl (Lausanne, canton de Vaud).
Version: 1.0.5
Requires at least: 6.6
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: taxis-budget
Tags: block-theme, full-site-editing, business, one-column
*/

:root {
  --vert: #6cb417;
  --vert-clair: #9ad424;
  --vert-fonce: #5a9a10;
  --encre: #2a2a2a;
  --titre: #333333;
  --texte: #6f6f6f;
  --panneau: #f6f6f6;
  --blanc: #ffffff;
  --degrade: linear-gradient(90deg, var(--vert) 0%, var(--vert-clair) 100%);
  --raleway: "Raleway", system-ui, sans-serif;
  --dosis: "Dosis", system-ui, sans-serif;
  --largeur: 1170px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 132px; }
body {
  margin: 0;
  background: var(--blanc);
  color: var(--texte);
  font-family: var(--dosis);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--raleway); color: var(--titre); margin: 0; hyphens: none; text-wrap: balance; }
p { margin: 0; }

/* Espacement automatique de Gutenberg : coupé dans theme.json (blockGap 0px),
   filet de sécurité ici À SPÉCIFICITÉ NULLE pour ne pas écraser les marges ci-dessous. */
:where(.wp-block-group) > :where(*), :where(.wp-block-buttons) { margin-block: 0; }
figure.wp-block-image { margin: 0; }
.wp-site-blocks > * { margin-block: 0; }

.enveloppe { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 20px; }

/* ===== Boutons pilule (classe sur le conteneur .wp-block-button) ===== */
.wp-block-buttons.centre { justify-content: center; }
.wp-block-buttons { gap: 16px; }
.wp-block-button.bouton .wp-block-button__link {
  display: inline-block;
  background: var(--degrade);
  color: #fff;
  font-family: var(--raleway);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.6;
  padding: 15px 46px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: filter .2s, transform .2s, background .2s;
  white-space: nowrap;
}
.wp-block-button.bouton .wp-block-button__link:hover { filter: brightness(1.06); transform: translateY(-1px); }
.wp-block-button.bouton.grand .wp-block-button__link { padding: 19px 54px; font-size: 16px; }
.wp-block-button.bouton.contour .wp-block-button__link { background: transparent; border-color: rgba(255,255,255,.85); color: #fff; }
.wp-block-button.bouton.contour .wp-block-button__link:hover { background: rgba(255,255,255,.1); }

/* Surtitre */
.surtitre {
  font-family: var(--raleway);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--vert);
  margin-bottom: 10px;
}

/* ===== En-tête : la barre haute défile, la rangée logo + menu reste collée ===== */
header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
.admin-bar header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar header.wp-block-template-part { top: 46px; } }
@media (max-width: 600px) { .admin-bar header.wp-block-template-part { top: 0; } }
/* Connecté : la barre d'admin s'ajoute à la hauteur de l'en-tête collant */
html:has(body.admin-bar) { scroll-padding-top: 164px; }
@media (max-width: 782px) { html:has(body.admin-bar) { scroll-padding-top: 178px; } }
@media (max-width: 599px) { html:has(body.admin-bar) { scroll-padding-top: 116px; } }

.barre-haute { background: var(--encre); color: #9a9a9a; font-size: 17px; }
.barre-haute .enveloppe { display: flex; justify-content: flex-end; align-items: center; gap: 26px; height: 40px; }
.barre-haute p { display: flex; align-items: center; gap: 8px; }
.barre-haute a:hover { color: #fff; }
.barre-haute p::before {
  content: ""; width: 20px; height: 20px; flex: none;
  background: var(--vert);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.barre-haute p + p { padding-left: 26px; border-left: 1px solid #444; }
.barre-haute p + p::before {
  -webkit-mask-image: url("assets/img/ic-whatsapp.svg");
          mask-image: url("assets/img/ic-whatsapp.svg");
}

.entete { background: #fff; border-bottom: 1px solid #ececec; }
.entete > .enveloppe { display: flex; justify-content: space-between; align-items: center; min-height: 92px; gap: 20px; }

/* Logo : pastille en pseudo-élément, nom et base éditables */
.logo { display: grid; grid-template-columns: 34px auto; column-gap: 10px; align-items: center; }
.logo::before {
  content: ""; grid-row: 1 / span 2; width: 34px; height: 42px;
  background: url("assets/img/logo-pin.svg") center / contain no-repeat;
}
.logo-nom { font-family: var(--raleway); font-size: 30px; line-height: 1; color: #555; font-weight: 500; letter-spacing: -.01em; }
.logo-nom strong { color: var(--vert); font-weight: 800; }
.logo-base { font-size: 12px; color: #999; line-height: 1.1; margin-top: 4px; letter-spacing: .02em; }

/* Menu (core/navigation) */
.wp-block-navigation.nav .wp-block-navigation__container { gap: 4px; }
.wp-block-navigation.nav .wp-block-navigation-item__content {
  display: block; padding: 9px 16px; border-radius: 999px;
  font-family: var(--raleway); font-weight: 700; font-size: 13px; letter-spacing: .03em; line-height: 1.6;
  text-transform: uppercase; color: var(--titre);
  transition: color .2s, background .2s;
}
.wp-block-navigation.nav .wp-block-navigation-item__content:hover { color: var(--vert); }
.wp-block-navigation.nav .actif > .wp-block-navigation-item__content { background: var(--vert); color: #fff; }
.wp-block-navigation.nav .wp-block-navigation__responsive-container-open {
  width: 44px; height: 44px; border-radius: 50%; background: var(--vert); color: #fff;
  align-items: center; justify-content: center;
}
.wp-block-navigation.nav .wp-block-navigation__responsive-container.is-menu-open {
  background-color: var(--encre) !important;
  color: #fff !important;
  padding: 28px 24px;
}
.wp-block-navigation.nav .is-menu-open .wp-block-navigation__container { gap: 10px; }
.wp-block-navigation.nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { color: #fff; font-size: 18px; padding: 10px 22px; }
.wp-block-navigation.nav .is-menu-open .wp-block-navigation__responsive-container-close { color: #fff; }

/* ===== Héros ===== */
.heros {
  position: relative; min-height: 600px; display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; overflow: hidden;
}
.heros-photo { position: absolute; inset: 0; margin: 0; }
.heros-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 66%; }
.heros::after { content: ""; position: absolute; inset: 0; background: rgba(20, 20, 20, .42); pointer-events: none; }
.heros-contenu { position: relative; z-index: 2; padding: 90px 20px; }
.heros h1 { color: #fff; font-weight: 800; font-size: 60px; line-height: 1.12; max-width: 940px; margin: 0 auto 22px; }
.heros .chapo { color: rgba(255,255,255,.9); font-size: 19px; max-width: 640px; margin: 0 auto 46px; }

/* ===== Atouts (icônes en pseudo-éléments) ===== */
.atouts { padding: 100px 0 90px; }
.atouts-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.atout { display: flex; gap: 16px; align-items: flex-start; }
.atout::before {
  content: ""; width: 50px; height: 50px; border-radius: 50%; flex: none;
  background: var(--vert) center / 24px no-repeat;
}
.atout-fiable::before   { background-image: url("assets/img/ic-fiable.svg"); }
.atout-ponctuel::before { background-image: url("assets/img/ic-horloge.svg"); }
.atout-confort::before  { background-image: url("assets/img/ic-taxi.svg"); }
.atout-prix::before     { background-image: url("assets/img/ic-prix.svg"); }
.atout .wp-block-heading { font-weight: 500; font-size: 22px; margin: 2px 0 6px; }
.atout p { font-size: 15px; line-height: 1.5; }

/* ===== Duo image + panneau ===== */
.duo { padding: 0 0 100px; }
.duo-grille { display: grid; grid-template-columns: 1fr 1fr; }
.duo-photo { margin: 0; position: relative; min-height: 460px; }
.duo-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.duo-panneau { background: var(--panneau); padding: 60px 50px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.duo-panneau h2 { font-weight: 800; font-size: 40px; line-height: 1.15; margin-bottom: 24px; }
.duo-panneau p { font-size: 15.5px; line-height: 1.65; margin-bottom: 18px; }
.duo-panneau p.surtitre { font-size: 12px; line-height: 1.6; margin-bottom: 10px; }
.duo-panneau .wp-block-buttons { margin-top: 12px; }

/* ===== Bande photo sombre ===== */
.bande { position: relative; color: #fff; text-align: center; padding: 110px 0 120px; overflow: hidden; }
.bande-photo { position: absolute; inset: 0; margin: 0; }
.bande-photo img { width: 100%; height: 100%; object-fit: cover; }
.bande::after { content: ""; position: absolute; inset: 0; background: rgba(15, 15, 15, .72); pointer-events: none; }
.bande > .enveloppe { position: relative; z-index: 2; }
.bande h2 { color: #fff; font-weight: 800; font-size: 46px; line-height: 1.15; margin-bottom: 18px; }
.bande .chapo { color: #d2d2d2; max-width: 720px; margin: 0 auto 16px; }
.bande .chapo.dernier { margin-bottom: 44px; }

/* ===== Forfaits ===== */
.forfaits { padding: 110px 0 100px; text-align: center; }
.tete-section { max-width: 720px; margin: 0 auto 60px; }
.tete-section h2 { font-weight: 800; font-size: 42px; line-height: 1.15; margin-bottom: 18px; }
.tete-section p + p { margin-top: 10px; }
.forfaits-grille { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; max-width: 840px; margin: 0 auto; }
.forfait { border: 1px solid #e8e8e8; padding: 46px 34px 44px; background: #fff; }
.forfait.vedette { background: var(--panneau); border-color: var(--panneau); }
.forfait h3 { font-weight: 700; font-size: 22px; line-height: 1.3; margin-bottom: 4px; }
.forfait .trajet { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 24px; }
.forfait .prix-des { display: inline-block; font-family: var(--raleway); font-weight: 700; font-size: 22px; color: var(--vert); line-height: 1; margin: 0 6px 30px 0; }
.forfait .prix { display: inline-block; font-family: var(--raleway); font-weight: 800; font-size: 54px; line-height: 1; color: var(--vert); margin-bottom: 30px; }

/* ===== Réservation : Contact Form 7 avec les classes de la maquette ===== */
.reservation .wpcf7 { max-width: 960px; margin: 0 auto; }
.form-resa { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; }
.form-resa .wpcf7-form-control-wrap { display: block; }
.form-resa .wpcf7-form-control-wrap[data-name="demande"] { grid-column: 1 / -1; }
.form-resa input.wpcf7-text, .form-resa input.wpcf7-email, .form-resa input.wpcf7-tel, .form-resa textarea {
  display: block; width: 100%; height: 54px; padding: 0 22px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .95); font-family: var(--dosis); font-size: 16px; color: var(--titre);
}
.form-resa textarea { height: 110px; padding: 16px 22px; border-radius: 27px; resize: vertical; }
.form-resa .plein { grid-column: 1 / -1; text-align: center; margin-top: 10px; position: relative; }
.form-resa input.wpcf7-submit {
  border: 0; cursor: pointer; background: var(--degrade); color: #fff; font-family: var(--raleway); font-weight: 700;
  font-size: 16px; line-height: normal; padding: 18px 58px; border-radius: 999px; transition: filter .2s;
}
.form-resa input.wpcf7-submit:hover { filter: brightness(1.06); }
.form-resa .wpcf7-spinner { position: absolute; margin: 0; top: 50%; transform: translate(12px, -50%); }
.reservation .wpcf7-not-valid-tip { color: #ffb4a8; font-size: 14px; padding: 4px 22px 0; }
.reservation .wpcf7 form .wpcf7-response-output { margin: 24px auto 0; border-radius: 27px; color: #fff; padding: 12px 22px; text-align: center; max-width: 960px; }
.ou { color: #a9a9a9; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; margin: 44px 0 22px; }

/* ===== Pied ===== */
.pied { background: var(--encre); color: #9a9a9a; font-size: 15px; padding: 80px 0 0; }
.pied-grille { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 40px; padding-bottom: 60px; }
.pied .logo-nom { color: #fff; }
.pied h4 { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 18px; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { padding: 4px 0; }
.pied a:hover { color: var(--vert-clair); }
.pied .apropos { margin-top: 20px; line-height: 1.6; max-width: 360px; }
.pied-bas { border-top: 1px solid #3a3a3a; padding: 22px 0; font-size: 14px; }
.pied-bas .enveloppe { display: flex; justify-content: space-between; }

:where(a, button, input, textarea, [tabindex]):focus-visible { outline: 3px solid var(--vert); outline-offset: 3px; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .wp-block-navigation.nav .wp-block-navigation-item__content { padding: 9px 11px; font-size: 12px; }
}
@media (max-width: 1000px) {
  .atouts-grille { grid-template-columns: 1fr 1fr; gap: 40px 30px; }
  .heros h1 { font-size: 46px; }
}
@media (max-width: 920px) {
  .wp-block-navigation.nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content { padding: 8px 8px; font-size: 11px; letter-spacing: 0; }
  .logo-nom { font-size: 26px; }
  .duo-grille, .forfaits-grille, .form-resa { grid-template-columns: 1fr; }
  .duo-photo { order: -1; min-height: 300px; }
  .pied-grille { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 599px) {
  body { font-size: 16px; }
  .entete > .enveloppe { min-height: 76px; }
  html { scroll-padding-top: 116px; }
  .barre-haute .enveloppe { justify-content: center; gap: 14px; }
  .barre-haute p + p { padding-left: 14px; }
  .heros { min-height: 540px; }
  .heros h1 { font-size: 34px; }
  .heros .chapo { font-size: 17px; margin-bottom: 34px; }
  .atouts-grille { grid-template-columns: 1fr; }
  .duo-panneau { padding: 44px 26px; }
  .duo-panneau h2, .tete-section h2, .bande h2 { font-size: 30px; }
  .bande { padding: 80px 0 90px; }
  .wp-block-button.bouton .wp-block-button__link, .wp-block-button.bouton.grand .wp-block-button__link { padding: 16px 34px; }
  .pied-grille { grid-template-columns: 1fr; }
  .pied-bas .enveloppe { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
