/* Tailwind v4 site stylesheet. Single source of truth for design + custom CSS.
 *
 * At draft time, this is read inline into a <style type="text/tailwindcss"> block.
 * At publish time, the Tailwind CLI compiles this file (plus templates) into
 * dist/styles.css. Every directive works here: @theme, @layer, @utility,
 * @apply, @keyframes, plus plain CSS. Do NOT write <style> blocks in PHP
 * templates for theme CSS — put it here so it lands in the compiled bundle.
 *
 * functions.php also parses the @theme block at runtime to register the
 * palette + font sizes with Gutenberg via add_theme_support().
 *
 * Conventions:
 *   1. @theme: tokens only (--color-*, --font-*, --text-*, --radius-*). No
 *      selectors, no @apply. Tokens auto-generate matching utilities.
 *   2. Plain CSS: outside @theme, inside @layer. Prefer utility classes in
 *      templates first; only write CSS here when utilities cannot express it.
 *      @layer base { h1 { font-size: var(--text-2xl); } }
 *      @layer components { .card { padding: --spacing(6); } }
 *   3. New reusable utilities: prefer @utility over @apply.
 *      @utility content-auto { content-visibility: auto; }
 *   4. Custom web fonts: load via <link> in template-parts/head.php, then
 *      reference here via --font-*.
 *
 * Token naming (Tailwind v4):
 *   --color-{slug}        → bg-{slug}, text-{slug}, border-{slug}
 *   --color-{slug}-{NN}   → numeric shades (skipped in the Gutenberg palette)
 *   --font-{slug}         → font-{slug}
 *   --text-{slug}         → text-{slug}
 *   --radius-{slug}       → rounded-{slug}
 */

@theme {
	--color-primary: #2563eb;
	--color-primary-50:  #eff6ff;
	--color-primary-100: #dbeafe;
	--color-primary-500: #3b82f6;
	--color-primary-600: #2563eb;
	--color-primary-700: #1d4ed8;
	--color-primary-900: #1e3a8a;

	--color-secondary: #475569;
	--color-secondary-50:  #f8fafc;
	--color-secondary-100: #f1f5f9;
	--color-secondary-200: #e2e8f0;
	--color-secondary-300: #cbd5e1;
	--color-secondary-500: #64748b;
	--color-secondary-600: #475569;
	--color-secondary-700: #334155;
	--color-secondary-900: #0f172a;

	--color-neutral: #171717;
	--color-background: #ffffff;

	--font-sans:  system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-serif: Georgia, "Times New Roman", serif;
	--font-mono:  ui-monospace, "SF Mono", Menlo, monospace;

	--text-sm:   0.875rem;
	--text-base: 1rem;
	--text-lg:   1.125rem;
	--text-xl:   1.25rem;
	--text-2xl:  1.5rem;
	--text-3xl:  1.875rem;
	--text-4xl:  2.25rem;
	--text-5xl:  3rem;
}

/* Element-level defaults. Reach for utility classes in templates first; put
 * a rule here only when the same styling needs to apply across every instance
 * of an element (e.g. body font features). Keep this layer small. */
@layer base {
	/* body { font-feature-settings: "ss01", "ss02"; } */
}

/* Reusable component classes. Use for compound patterns that recur and need
 * a name (e.g. .card, .hero-heading, .divider). Reference tokens via var();
 * @apply works but is finicky — prefer var() + utility classes in templates. */
@layer components {
	/* .hero-heading em { font-style: italic; color: var(--color-primary); } */
}

/* Accueil : titre validé, sans troncature sur mobile. */
.hero h1.hero-title--project{font-size:clamp(52px,6.2vw,100px);line-height:.98;max-width:850px}
@media(max-width:760px){.hero h1.hero-title--project{font-size:clamp(38px,10.5vw,68px);line-height:1.02}.hero-title--project em{display:inline}.hero-copy{max-width:100%}}
/* GM AUTOS — parcours de contact véhicule */
body.single-vehicle .vehicle-detail{background:#f7f8fa}
body.single-vehicle .vehicle-aside{color:#11161d;background:#fff;border-radius:26px;border:1px solid #edeef0;box-shadow:0 12px 40px #11182708}
body.single-vehicle .aside-kicker{color:#626975}
body.single-vehicle .aside-note{border-color:#e3e5e8;color:#626975}
body.single-vehicle .aside-note span{color:#11161d}
@media(max-width:767px){
body.single-vehicle .site-header,body.single-vehicle .site-header.is-scrolled{background:#17191d;color:#fff;border:1px solid #303236;box-shadow:0 9px 23px #0003}
body.single-vehicle .brand-mark{background:#e30613;color:#fff;padding-left:0;padding-right:0;border-radius:13px;display:grid;place-items:center}
body.single-vehicle .brand-word,body.single-vehicle .brand-identity strong{color:#fff!important}
body.single-vehicle .menu-toggle span{background:#fff}
body.single-vehicle .mobile-menu{color:#fff}
body.single-vehicle .vehicle-aside{width:100%;position:static}
body.single-vehicle .vehicle-top h1{font-size:clamp(32px,8vw,45px);line-height:1.05}
body.single-vehicle .vehicle-price-block>strong{font-size:38px}
body.single-vehicle .key-specs{grid-template-columns:1fr 1fr;border-radius:20px;overflow:hidden;margin:24px 0 50px}
body.single-vehicle .key-specs div{padding:16px}
body.single-vehicle .equipment-section{padding-top:40px;margin-top:40px}
body.single-vehicle .equipment-grid{border-radius:18px;overflow:hidden}
}
.gm-reservation-open{overflow:hidden}
.gm-action{display:flex;align-items:center;justify-content:center;gap:14px;width:100%;min-height:58px;padding:17px 20px;border:0;border-radius:19px;font:700 14px/1.3 'DM Sans',sans-serif;letter-spacing:.015em;text-align:center;text-decoration:none;cursor:pointer;transition:filter .2s}
.gm-action:hover{filter:brightness(.94)}
.gm-action svg{width:24px;height:24px;flex:0 0 24px}
.gm-action span{flex:1}
.gm-action--red{background:#ed1018;color:#fff}
.gm-action--dark{background:#11161d;color:#fff}
.gm-action--light{background:#edeef0;color:#11161d}
.gm-action:disabled{opacity:.65;cursor:wait}
.gm-action:focus-visible,.gm-reservation button:focus-visible{outline:3px solid #b90911;outline-offset:4px}
.gm-vehicle-contact{display:grid;gap:10px;margin-top:24px}
.gm-vehicle-benefits{background:#fff;border:1px solid #f0f0f1;border-radius:24px;padding:22px;margin-bottom:8px;box-shadow:0 10px 35px #11182706}
.gm-vehicle-benefits h2{font:800 20px/1.2 'DM Sans',sans-serif;letter-spacing:.025em;margin:0 0 20px}
.gm-vehicle-benefits h2 em{color:#ed1018;font-style:normal}
.gm-vehicle-benefits>div{display:flex;align-items:flex-start;gap:12px;margin-top:16px}
.gm-vehicle-benefits>div>span{display:grid;place-items:center;flex:0 0 42px;height:42px;background:#fff0f0;color:#e61018;border-radius:50%}
.gm-vehicle-benefits svg{width:23px;height:23px}
.gm-vehicle-benefits p{margin:0}
.gm-vehicle-benefits strong{display:block;font-size:14px;color:#11161d}
.gm-vehicle-benefits small{display:block;font-size:13px;line-height:1.6;color:#5c626a;margin-top:3px}
.gm-help{color:#626975;font:400 12px/1.6 'DM Sans',sans-serif;margin:9px 0 0}
.gm-help a{text-decoration:underline}
.gm-reservation{box-sizing:border-box;width:min(580px,calc(100% - 32px));max-width:580px;max-height:calc(100dvh - 40px);margin:auto;padding:0;border:1px solid #eee;border-radius:28px;background:#fff;color:#11161d;box-shadow:0 28px 100px #0004;font:400 15px/1.5 'DM Sans',sans-serif;overflow:auto;overscroll-behavior:contain}
.gm-reservation::backdrop{background:#080d17a8;backdrop-filter:blur(5px)}
.gm-reservation *{box-sizing:border-box}
.gm-reservation__head{display:flex;align-items:center;gap:14px;position:sticky;top:0;z-index:2;padding:22px 24px;background:#fffffff5;border-bottom:1px solid #f1f1f2;backdrop-filter:blur(12px)}
.gm-reservation__head>div{flex:1;min-width:0}
.gm-reservation__head h2{font:800 19px/1.3 'DM Sans',sans-serif;margin:0}
.gm-reservation__head p{font-size:14px;color:#5c626a;margin:4px 0 0;overflow-wrap:anywhere}
.gm-reservation__thumb{width:65px;height:58px;object-fit:cover;border-radius:12px}
.gm-reservation__close{display:grid;place-items:center;align-self:flex-start;flex:0 0 40px;width:40px;height:40px;border:0;border-radius:50%;background:#f0f1f3;color:#11161d;cursor:pointer}
.gm-reservation__close svg{width:22px;height:22px}
.gm-reservation__body{padding:22px 24px 26px}
.gm-reservation__form{display:grid;gap:24px}
.gm-reservation fieldset{min-width:0;padding:0;margin:0;border:0}
.gm-reservation legend{display:flex;align-items:center;gap:10px;padding:0;margin:0 0 12px;font-size:15px;font-weight:700;line-height:1.4;width:100%}
.gm-reservation legend b{display:grid;place-items:center;flex:0 0 27px;height:27px;border-radius:50%;background:#ed1018;color:white;font-size:14px}
.gm-reservation legend small{font-size:12px;font-weight:400;color:#666}
.gm-choices{display:grid;gap:10px}
.gm-choices--three{grid-template-columns:repeat(3,minmax(0,1fr))}
.gm-choices--two{grid-template-columns:repeat(2,minmax(0,1fr))}
.gm-choice{position:relative;display:block;cursor:pointer;margin:0}
.gm-choice input{position:absolute;width:1px;height:1px;opacity:0}
.gm-choice>span{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:91px;padding:12px 5px;background:#f1f2f4;border:1px solid transparent;border-radius:18px;text-align:center;font-size:13px;line-height:1.3}
.gm-choice svg{width:25px;height:25px}
.gm-choice strong{font-weight:600}
.gm-choice input:checked+span{background:#ffeded;border-color:#ed1018;color:#cf0c14}
.gm-choice input:focus-visible+span{outline:3px solid #11161d;outline-offset:3px}
.gm-choice--slot>span{min-height:65px;flex-direction:row;gap:12px;padding:13px 9px}
.gm-client-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 12px}
.gm-reservation__form label:not(.gm-choice)>span{display:block;font-size:12px;font-weight:600;margin-bottom:6px}
.gm-reservation__form input:not([type=radio]):not([type=hidden]),.gm-reservation__form textarea{display:block;width:100%;min-width:0;min-height:48px;border:1px solid #dadde2;border-radius:12px;background:#fff;color:#11161d;padding:12px;font:400 16px/1.4 'DM Sans',sans-serif;box-shadow:none}
.gm-reservation__form textarea{resize:vertical}
.gm-reservation__form input:focus,.gm-reservation__form textarea:focus{outline:2px solid #e71018;outline-offset:2px}
.gm-reservation__trap{position:absolute!important;left:-10000px!important;width:1px;height:1px;overflow:hidden}
.gm-reservation__error{padding:14px;border-radius:12px;background:#fff0f0;color:#a00;font-size:14px}
.gm-confirmation{text-align:center}
.gm-confirmation__check{display:grid;place-items:center;margin:10px auto 20px;width:95px;height:95px;border-radius:50%;background:#ffeded;color:#ed1018}
.gm-confirmation__check svg{width:52px;height:52px;stroke-width:4}
.gm-confirmation h3{font:800 24px/1.3 'DM Sans',sans-serif;margin:0 0 12px}
.gm-confirmation>p{font-size:15px;line-height:1.7;margin:0 auto 25px;max-width:380px;color:#505760}
.gm-next{padding:24px 20px;margin-bottom:22px;border:1px solid #f0f0f1;border-radius:24px;text-align:left;box-shadow:0 10px 35px #11182706}
.gm-next h4{font:800 16px/1.4 'DM Sans',sans-serif;letter-spacing:.06em;margin:0 0 20px}
.gm-next ol{list-style:none;padding:0;margin:0;counter-reset:gm-step}
.gm-next li{counter-increment:gm-step;position:relative;display:flex;align-items:center;gap:14px;min-height:67px;padding:8px 0 8px 34px}
.gm-next li:before{content:counter(gm-step);position:absolute;left:0;top:24px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#ed1018;color:white;font-size:13px;z-index:1}
.gm-next li:not(:last-child):after{content:"";position:absolute;left:11px;top:45px;bottom:-26px;width:1px;background:#ffc5c7}
.gm-next li>span{display:grid;place-items:center;flex:0 0 42px;height:42px;border-radius:50%;background:#f5f6f7}
.gm-next svg{width:23px;height:23px}
.gm-next p{margin:0;font-size:14px;line-height:1.6}
.gm-confirmation>.gm-action{margin-top:10px}
@media(max-width:767px){
body.single-vehicle .vehicle-aside{background:transparent;padding:0;border:0;box-shadow:none}
body.single-vehicle .vehicle-aside .aside-kicker,body.single-vehicle .vehicle-aside .aside-price{display:none}
body.single-vehicle .vehicle-layout{display:flex;flex-direction:column}
body.single-vehicle .vehicle-gallery{width:100%;min-width:0}
body.single-vehicle .gallery-main{border-radius:22px;overflow:hidden}
body.single-vehicle .gallery-thumbs{display:flex;overflow-x:auto;gap:8px;padding:10px 0;scroll-snap-type:x proximity}
body.single-vehicle .gallery-thumbs button{flex:0 0 74px;scroll-snap-align:start;border-radius:12px;overflow:hidden}
body.single-vehicle .gallery-thumbs button.is-active{outline:2px solid #ed1018;outline-offset:1px}
.gm-vehicle-benefits{padding:20px}
.gm-reservation{width:100%;max-width:580px;max-height:94dvh;margin:auto auto 0;border-radius:26px 26px 0 0}
.gm-reservation__head{padding:20px 18px 16px;gap:10px}
.gm-reservation__head h2{font-size:16px}
.gm-reservation__thumb{width:52px;height:50px}
.gm-reservation__body{padding:20px 18px max(24px,env(safe-area-inset-bottom))}
.gm-reservation__form{gap:23px}
.gm-reservation legend{font-size:14px}
.gm-action{font-size:13px}
}
@media(max-width:360px){.gm-client-grid{grid-template-columns:1fr}.gm-reservation__head h2{font-size:14px}.gm-choices{gap:7px}.gm-choice>span{font-size:12px}.gm-reservation__body{padding-inline:14px}}

