/*
Theme Name: My Range Rover Classic
Description: Guide indépendant du Range Rover Classic.
Version: 1.1.30
Text Domain: my-range-rover-classic
*/
:root {
    color-scheme: light;
    --paper: #f4f1e8;
    --ivory: #fbfaf6;
    --ink: #27382e;
    --green: #365b49;
    --sage: #5b6b60;
    --ochre: #8c592d;
    --line: #deddd2;
    --brand-font: Eurostile, 'Bank Gothic', 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { overflow-y: auto; scroll-behavior: auto; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 "Avenir Next", system-ui, sans-serif; }

a { color: var(--green); text-underline-offset: .25em; }
a:focus-visible { outline: 3px solid var(--ochre); outline-offset: 4px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2 { font-family: Georgia, serif; font-weight: 500; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(3.1rem, 8vw, 7.3rem); letter-spacing: -.06em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
.wrap { width: min(1300px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; top: -120px; background: var(--ivory); padding: 10px; }
.skip:focus { top: 0; z-index: 1; }
.site-header { border-bottom: 1px solid var(--line); background: var(--ivory); }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 600 1.125rem/1.25 var(--brand-font); letter-spacing: 0.14em; text-transform: uppercase; }
.brand img { flex: none; }
.brand em { color: var(--green); font-style: normal; }
nav { display: flex; gap: 10px clamp(15px, 3vw, 34px); flex-wrap: wrap; }
nav a { color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 650; }
nav a:hover, nav a[aria-current] { text-decoration: underline; }
.hero { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(22px, 5vw, 78px); align-items: center; min-height: 550px; padding: 66px 0; }
.hero h1 {
    font: 600 clamp(1.9rem, 5.6vw, 5.2rem)/1.08 var(--brand-font);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.hero h1 em { color: var(--green); font-style: normal; }
.hero-copy > p:not(.eyebrow), .page-intro p { max-width: 52ch; color: var(--sage); }
.eyebrow { font-size: .75rem; font-weight: 750; text-transform: uppercase; letter-spacing: .16em; color: var(--sage); margin: 0 0 14px; }
.button { display: inline-flex; gap: 18px; background: var(--green); color: white; padding: 11px 18px; border-radius: 4px; text-decoration: none; font-size: .92rem; margin-top: 10px; }
.button:hover { background: var(--ink); }
.hero-figure { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 14px 38px #27382e1c; border: 1px solid var(--line); }
.hero-figure img { width: 100%; }
.hero-figure figcaption { padding: .5rem .75rem; color: var(--sage); font-size: .75rem; }
.home-sections { padding-bottom: 72px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile { border: 1px solid var(--line); border-top: 3px solid var(--green); background: var(--ivory); padding: 22px; text-decoration: none; color: var(--ink); border-radius: 6px; }
.tile:hover { border-color: var(--green); }
.tile h2 span { font-family: system-ui, sans-serif; font-size: .75em; color: var(--ochre); }
.tile p { color: var(--sage); font-size: .92rem; margin-bottom: 0; }
.content { padding-block: 55px 85px; min-height: 55vh; }
.page-intro { border-bottom: 1px solid var(--line); margin-bottom: 36px; padding-bottom: 20px; }
.page-intro h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); overflow-wrap: anywhere; }
.content article > p { max-width: 68ch; }
.content article > h2 { margin-top: 34px; }
.about-story { display: grid; grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr); grid-template-areas: "copy photo"; align-items: center; gap: clamp(1.25rem, 4vw, 3rem); max-width: 1050px; margin: 1.5rem 0 2.5rem; }
.about-photo { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--ivory); }
.about-story .about-photo { grid-area: photo; }
.about-photo img { width: 100%; }
.about-photo figcaption { padding: .7rem 1rem; color: var(--sage); font-size: .9rem; }
.about-story-copy { grid-area: copy; }
.about-story-copy p { margin: 0 0 1rem; }
.about-story-copy p:last-child { margin-bottom: 0; }

@media (max-width: 700px) { .about-story { grid-template-columns: 1fr; grid-template-areas: "photo" "copy"; gap: .75rem; } }

.history-illustration {
    display: grid;
    align-items: start;
    gap: .8rem clamp(1.5rem, 4vw, 3rem);
    max-width: 960px;
    margin-block: 1.5rem 2rem;
}
.history-illustration p,
.history-illustration figure { margin: 0; }
.history-illustration figure { width: 100%; max-width: 340px; }
.history-illustration img { display: block; width: 100%; height: auto; border-radius: 8px; }
.history-illustration figcaption {
    margin-top: .55rem;
    color: var(--sage);
    font-size: .8rem;
    line-height: 1.45;
}
@media (min-width: 760px) {
    .history-illustration { grid-template-columns: minmax(0, 1fr) minmax(0, 34%); }
}

.site-footer { background: var(--ink); color: var(--paper); padding: 28px 0; }
.site-footer p { margin: 4px 0; font-size: .9rem; }
.site-footer .footer-legal { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 12px; }
.footer-legal a { color: inherit; text-decoration: underline; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
    .wrap { width: calc(100% - 32px); }
    .header-inner { align-items: flex-start; flex-direction: column; padding-block: 15px; }
    .hero { grid-template-columns: 1fr; min-height: 0; padding-block: 38px; }
    .tiles { grid-template-columns: 1fr; }
}

.nav-group { position: relative; display: grid; grid-template-columns: auto 36px; align-items: start; justify-content: start; font-size: .9rem; }
.nav-category { padding-block: 8px; }
.nav-group summary { cursor: pointer; list-style: none; padding: 8px 0; text-align: center; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::after { content: ""; display: inline-block; width: .4em; height: .4em; margin: 0 0 .19em; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); }
.nav-group details[open] summary::after { transform: rotate(225deg); margin-bottom: -.04em; }
.nav-group summary:focus-visible { outline: 3px solid var(--ochre); outline-offset: 4px; }
.nav-panel { position: absolute; inset: 100% 0 auto auto; z-index: 5; min-width: 12rem; width: max-content; max-width: 100vw; list-style: none; padding: 6px; margin: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--ivory); box-shadow: 0 10px 24px #27382e20; }
.nav-panel a { display: block; padding: 8px 12px; border-radius: 4px; }
.nav-panel a:hover, .nav-panel a[aria-current] { background: var(--paper); }
@media (max-width: 680px) {
    .main-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 2px 16px; }
    .nav-panel { inset: 100% auto auto 0; width: 100%; min-width: 0; }
}

.engine-table-scroll {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.engine-table-scroll:focus-visible { outline: 2px solid var(--ochre); }
.engine-table {
    width: 100%;
    border-collapse: collapse;
    font-size: clamp(.82rem, 1.6vw, 1rem);
    line-height: 1.35;
    font-variant-numeric: tabular-nums;
}
.engine-table caption {
    padding: .7rem clamp(.4rem, 1.5vw, 1rem);
    color: var(--sage);
    text-align: left;
}
.engine-table th,
.engine-table td {
    padding: .65rem clamp(.4rem, 1.5vw, 1rem);
    border-top: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}
.engine-table thead,
.engine-table-group { background: var(--paper); color: var(--green); }
.engine-diesel .engine-table-group { color: var(--ochre); }
.engine-table tbody tr:nth-child(even):not(.engine-table-group) { background: #f7f6f1; }
.engine-table td:not(.engine-visual) { white-space: nowrap; }
.engine-table small { display: block; margin-top: .2em; color: var(--sage); font-weight: 400; }
.engine-visual { width: 44%; }
.engine-track { height: .65rem; border-radius: 1rem; background: #e8e7dc; }
.engine-track span { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.engine-diesel .engine-track span { background: var(--ochre); }
.engine-table-chronologie .engine-track {
    background: repeating-linear-gradient(to right, var(--line) 0 1px, #eeede5 1px calc(100% * 5 / var(--span, 26)));
}
@media (max-width: 680px) {
    .engine-visual,
    .engine-table-chronologie thead th:last-child,
    .engine-table-production thead th:last-child { display: none; }
}

.culture-section { margin-block: 2.5rem; }
.culture-section > h2 { scroll-margin-top: 5rem; }
.culture-entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 15rem);
    align-items: start;
    gap: 1.25rem 2rem;
    padding-block: 1.3rem;
    border-top: 1px solid var(--line);
}
.culture-entry:not(:has(figure)) { grid-template-columns: 1fr; }
.culture-entry h3 { margin-top: 0; }
.culture-entry figure { margin: 0; max-width: 15rem; }
.culture-entry img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; border-radius: 8px; }
.culture-entry figcaption { font-size: .83rem; line-height: 1.45; margin-top: .45rem; }
@media (max-width: 600px) {
    .culture-entry { grid-template-columns: 1fr; gap: .75rem; }
}

.fluid-table { margin: 24px 0; overflow-x: auto; background: var(--ivory); border: 1px solid var(--line); border-radius: 12px; }
.fluid-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .95rem; }
.fluid-table caption { padding: 16px; text-align: left; font: 1.35rem Georgia, serif; }
.fluid-table th, .fluid-table td { padding: 10px 16px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.fluid-table thead, .fluid-table .fluid-group { background: var(--paper); color: var(--green); }
.fluid-table tbody tr:not(.fluid-group):nth-child(odd) { background: #f7f6f1; }
.paint-name { display: flex; align-items: flex-start; gap: 10px; }
.paint-swatch {
    display: grid;
    place-items: center;
    flex: 0 0 22px;
    height: 22px;
    margin-top: 2px;
    border: 1px solid #0005;
    border-radius: 2px;
    background: var(--paint-swatch, transparent);
}
.paint-swatch-missing { border-style: dashed; font-size: .8rem; }

.discover-sections {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.discover-section {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--ivory);
}
.discover-section-link {
    flex: 1;
    color: var(--ink);
    text-decoration: none;
}
.discover-section img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.discover-section-copy { padding: 18px; }
.discover-section-copy h2 { margin: 0 0 8px; }
.discover-section-copy p { margin: 0; color: var(--sage); }
.discover-photo-credit { padding: 0 18px 14px; color: var(--sage); font-size: .75rem; }
.discover-section-link:hover h2,
.discover-section-link:focus-visible h2 { text-decoration: underline; text-underline-offset: .18em; }
@media (max-width: 900px) {
    .discover-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .discover-sections { grid-template-columns: 1fr; }
}

.contact-form { display: grid; gap: 8px; max-width: 36rem; }
.contact-form label { font-weight: 600; }
.contact-form input:not([type="hidden"]), .contact-form select, .contact-form textarea {
    width: 100%;
    margin-bottom: 8px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--ivory);
    color: inherit;
    font: inherit;
}
.contact-form p { margin: 0 0 12px; }
.contact-form button { justify-self: start; cursor: pointer; font: inherit; }

.efi-guide { max-width: 780px; font-size: 1.125rem; }
.efi-panel { background: var(--ivory); border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: 8px; padding: clamp(18px, 4vw, 34px); }
.efi-guide [hidden] { display: none; }
.efi-step { color: var(--sage); font-size: 1rem; margin: 0 0 .65rem; }
.efi-panel h2 { font-size: clamp(1.65rem, 4vw, 2.3rem); }
.efi-panel h2:focus { outline: 2px solid var(--ochre); outline-offset: 5px; }
.efi-choices { display: grid; gap: .7rem; }
.efi-guide button { font: inherit; cursor: pointer; min-height: 48px; }
.efi-choices button { text-align: left; padding: .75rem 1rem; border: 1px solid var(--green); border-radius: 5px; color: var(--ink); background: white; font-weight: 650; }
.efi-choices button:hover { background: var(--green); color: white; }
.efi-guide button:focus-visible, .fold summary:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; }
.efi-actions { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin-top: 1rem; }
.efi-actions button { color: var(--green); border: 0; background: transparent; text-decoration: underline; text-underline-offset: .2em; padding: .25rem 0; }
.efi-panel li + li { margin-top: .55rem; }
.efi-source { font-size: 1rem; color: var(--sage); }
.fold { border-bottom: 1px solid var(--line); padding: .55rem 0; }
.fold summary { cursor: pointer; min-height: 48px; padding-block: .5rem; font-weight: 650; }
.fold dd { margin: .25rem 0 1rem; }

.efi-values { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.25rem; }
.efi-values dt { font-weight: 650; }
.efi-values dd { margin: 0; }

.efi-procedures { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }
.efi-procedures a { display: inline-flex; align-items: center; min-height: 44px; }

.shop-hero-image {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 72% center;
}

.shop-hero-copy {
    padding: clamp(28px, 5vw, 74px);
    max-width: 560px;
}
.shop-status {
    margin: 0 0 16px;
    color: #f2cf9e;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.shop-hero-button {
    background: #f1e8d6;
    color: #27382e;
}
.shop-hero-button:hover { background: #fffaf0; }
.shop-collections { margin-top: clamp(38px, 6vw, 72px); }
.shop-collections > h2 { margin-bottom: 22px; }
.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 3vw, 32px);
}
.shop-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--ivory);
    color: var(--ink);
    text-decoration: none;
}
.shop-card:hover { border-color: var(--green); }
.shop-card img {
    width: 100%;
    aspect-ratio: 2.05;
    object-fit: cover;
}
.shop-card-copy {
    position: relative;
    padding: clamp(18px, 3vw, 32px);
    padding-inline-end: 64px;
}
.shop-card h3 {
    margin: 0;
    font: 500 clamp(1.4rem, 2.7vw, 2rem)/1.14 Georgia, serif;
}
.shop-card:hover h3 { text-decoration: underline; }
.shop-card p, .shop-contact p {
    max-width: 55ch;
    margin: .55rem 0 0;
    color: var(--sage);
}
.shop-card-arrow {
    position: absolute;
    inset: 20px 18px auto auto;
    display: grid;
    place-items: center;
    width: 35px;
    aspect-ratio: 1;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--green);
}
.shop-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 36px;
    margin-top: clamp(28px, 5vw, 56px);
    padding: clamp(22px, 4vw, 44px);
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ebece1;
}
.shop-contact .button { margin: 0; }

@media (max-width: 760px) {

    .shop-hero-image {
        position: static;
        height: auto;
        aspect-ratio: 2.15;
        object-position: 78% center;
    }

}
@media (max-width: 760px) {
    .shop-grid { grid-template-columns: 1fr; }
}

