/* Fondations : couleurs, typographie et éléments communs. */
:root {
    --ga-navy: #112a3e;
    --ga-ink: #152b3c;
    --ga-orange: #c83c10;
    --ga-light: #f5f7f9;
    --ga-border: #d5dfe7;
    --ga-muted: #526b7a;
    --bs-primary: #c83c10;
    --bs-primary-rgb: 200, 60, 16;
    --bs-link-color: #a93410;
    --bs-link-hover-color: #7d270d;
}

body {
    color: var(--ga-ink);
    font-family:
        system-ui,
        -apple-system,
        "Segoe UI",
        sans-serif;
    background: #fff;
    font-size: 16px;
    line-height: 1.65;
}

h1,
h2,
h3,
h4 {
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(2.2rem, 4.2vw, 4rem);
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

a {
    color: var(--ga-orange);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
}

/* En-tête et navigation. */
.ga-header {
    background: white;
    border-bottom: 1px solid var(--ga-border);
}

.ga-header nav {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.ga-brand {
    font-size: 28px;
    font-weight: 850;
    color: var(--ga-ink);
    text-decoration: none;
    letter-spacing: -1px;
}

.ga-brand img {
    max-height: 58px;
    width: auto;
}

.ga-brand em {
    font-style: normal;
    color: var(--ga-orange);
}

.ga-nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.ga-nav a {
    color: var(--ga-ink);
    text-decoration: none;
    font-weight: 650;
}

.ga-nav-toggle {
    display: none;
}

/* Accueil et blocs éditoriaux. */
.ga-hero,
.ga-dark {
    background: var(--ga-navy);
    color: white;
}

.ga-hero {
    padding: 80px 0;
}

.ga-hero p {
    color: #dce7f0;
}

.ga-hero h1 {
    margin: 22px 0 28px;
}

.ga-hero h1 em {
    color: #ffbc87;
    font-style: normal;
}

.ga-label {
    color: var(--ga-orange);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
}

.ga-hero .ga-label,
.ga-dark .ga-label {
    color: #ffbc87;
}

.ga-lead {
    font-size: 1.15rem;
    max-width: 65ch;
}

.ga-caption {
    font-size: 0.88rem;
    margin-top: 24px;
}

.ga-search-card {
    background: #1b384e;
    border: 1px solid #506678;
    border-radius: 14px;
    padding: 32px;
}

.ga-search-card h2 {
    font-size: 2rem;
}

.ga-search-card input,
.ga-search-card select {
    background: white;
    color: var(--ga-ink);
}

.ga-section {
    padding: 30px 0;
}

.ga-heading {
    max-width: 760px;
    margin-bottom: 32px;
}

.ga-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.ga-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ga-card {
    padding: 28px;
    background: var(--ga-light);
    border: 1px solid var(--ga-border);
    border-radius: 9px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ga-card img {
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 6px;
}

.ga-card h2,
.ga-card h3 {
    margin: 0 0 8px;
}

.ga-card p {
    margin: 0 0 10px;
}

.ga-card a {
    color: inherit;
}

.ga-card .ga-text-link {
    color: var(--ga-orange);
    margin-top: auto;
}

.ga-card.featured {
    border: 2px solid var(--ga-orange);
    background: #fff8f3;
}

.ga-price {
    font-size: 2.8rem;
    font-weight: 800;
}

.ga-price small {
    font-size: 0.85rem;
    font-weight: 500;
}

.ga-badge {
    font-weight: 700;
    color: var(--ga-orange);
    font-size: 0.9rem;
}

/* Boutons et couleurs utilitaires. */
.btn {
    padding: 14px 22px;
    border-radius: 7px;
    font-weight: 700;
    white-space: normal;
}

.btn-primary {
    --bs-btn-bg: var(--ga-orange);
    --bs-btn-border-color: var(--ga-orange);
    --bs-btn-hover-bg: #a9320b;
    --bs-btn-hover-border-color: #a9320b;
    --bs-btn-active-bg: #a9320b;
    --bs-btn-disabled-bg: #987466;
    --bs-btn-disabled-border-color: #987466;
}

.btn-outline-primary {
    --bs-btn-color: var(--ga-orange);
    --bs-btn-border-color: var(--ga-orange);
    --bs-btn-hover-bg: var(--ga-orange);
    --bs-btn-hover-border-color: var(--ga-orange);
}

.ga-dark a:not(.btn) {
    color: white;
}

.ga-muted {
    color: var(--ga-muted);
}

/* Pied de page et contenu des pages. */
.ga-footer {
    padding: 60px 0;
    background: #0b1f2e;
    color: #dce7f0;
}

.ga-footer .ga-brand,
.ga-footer a {
    color: white;
}

.ga-footer nav ul {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    list-style: none;
    margin: 24px 0;
    padding: 0;
}

.ga-page-banner {
    background: var(--ga-navy);
    color: white;
    padding: 60px 0;
}

.ga-page-banner a {
    color: #ffbc87;
}

.ga-prose h2 {
    margin: 1.5em 0 0.6em;
}

.ga-prose p {
    margin-bottom: 1.2em;
}

.ga-prose ul {
    padding-left: 1.5em;
}

/* Formulaire : étapes, champs, choix des forfaits et messages. */
.ga-form-wrap fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

.ga-form-wrap legend {
    font-size: 1.7rem;
    font-weight: 750;
    margin-bottom: 25px;
}

.ga-form-wrap label:not(.ga-check):not(.ga-card),
.ga-search label {
    display: block;
    font-weight: 650;
    margin: 17px 0 8px;
}

.ga-form-wrap input:not([type="checkbox"]):not([type="radio"]),
.ga-form-wrap select,
.ga-form-wrap textarea,
.ga-search input,
.ga-search select {
    width: 100%;
    border: 1px solid #9db1c2;
    border-radius: 5px;
    padding: 13px 15px;
    min-height: 48px;
    font: inherit;
    background: white;
}

.ga-form-wrap input[type="checkbox"],
.ga-form-wrap input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--ga-orange);
    flex-shrink: 0;
}

.ga-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 24px 0;
}

.ga-check input {
    margin-top: 4px;
}

.ga-plan-choice .ga-card {
    cursor: pointer;
    margin: 0 !important;
    align-items: flex-start;
}

.ga-plan-choice label:has(input:checked) {
    border: 2px solid var(--ga-orange);
    background: #fff6ef;
}

.ga-steps {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 15px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--ga-border);
    margin-bottom: 32px;
    font-size: 0.9rem;
}

.ga-steps li {
    padding: 12px 0;
    color: var(--ga-muted);
}

.ga-steps [aria-current] {
    color: var(--ga-orange);
    border-bottom: 3px solid var(--ga-orange);
    font-weight: 750;
}

.ga-form-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 32px;
}

.ga-form-nav #ga-next {
    margin-left: auto;
}

.ga-status:not(:empty) {
    padding: 16px;
    background: #fff3df;
    border-radius: 6px;
    margin-bottom: 22px;
}

.ga-honey {
    position: absolute !important;
    left: -10000px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ga-checkboxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ga-checkboxes label {
    font-weight: 500 !important;
    display: flex !important;
    gap: 10px;
    align-items: center;
    margin: 0 !important;
}

.ga-services {
    margin: 24px 0 !important;
}

/* Recherche, annuaire et fiche de garage. */
.ga-search {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ga-search .btn {
    margin-top: 14px;
}

.ga-directory-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 40px;
}

.ga-directory-layout aside {
    align-self: start;
}

.ga-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.ga-gallery img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 8px;
}

.ga-garage {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.ga-garage aside {
    align-self: start;
}

.ga-preline {
    white-space: pre-line;
}

/* Paiement et récapitulatif. */
#ga-card-element {
    border: 1px solid var(--ga-border);
    padding: 20px;
    background: white;
    border-radius: 6px;
    margin: 24px 0;
}

#ga-summary dt {
    font-weight: 750;
    margin-top: 16px;
}

#ga-summary dd {
    white-space: pre-line;
}

/* Questions fréquentes et accessibilité. */
.ga-faq details {
    padding: 20px 0;
    border-bottom: 1px solid var(--ga-border);
}

.ga-faq summary {
    cursor: pointer;
    font-weight: 700;
}

.ga-faq details > div {
    margin-top: 16px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: 3px solid #ed9a63;
    outline-offset: 3px;
}

[hidden] {
    display: none !important;
}

/* Adaptation aux tablettes et téléphones. */
@media (max-width: 991px) {
    .ga-nav-toggle {
        display: block;
    }

    .ga-header nav {
        flex-wrap: wrap;
        padding-top: 18px;
        padding-bottom: 18px;
        min-height: 80px;
    }

    .ga-nav {
        display: none;
        width: 100%;
    }

    .ga-nav.is-open {
        display: block;
    }

    .ga-nav ul {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .ga-hero {
        padding: 50px 0;
    }

    .ga-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ga-directory-layout {
        grid-template-columns: 1fr;
    }

    .ga-search-card {
        margin-top: 25px;
    }

    .ga-garage {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .ga-grid,
    .ga-grid-two,
    .ga-checkboxes {
        grid-template-columns: 1fr;
    }

    .ga-section {
        padding: 40px 0;
    }

    .ga-card,
    .ga-search-card {
        padding: 22px;
    }

    .ga-steps {
        gap: 10px;
        font-size: 0.8rem;
    }

    .ga-steps li {
        padding: 7px 0;
    }

    .ga-brand {
        font-size: 24px;
    }

    .ga-form-nav .btn {
        padding: 12px;
    }

    .ga-gallery {
        grid-template-columns: 1fr 1fr;
    }

    .ga-footer nav ul {
        display: block;
    }

    .ga-footer nav li {
        margin: 10px 0;
    }
}

/* Liens d'action et pages de compte WooCommerce existantes. */
.ga-nav li:last-child > a {
    display: inline-block;
    background: var(--ga-orange);
    color: white;
    padding: 13px 20px;
    border-radius: 7px;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: var(--ga-orange);
    color: white;
    border-radius: 7px;
    padding: 14px 22px;
}

.woocommerce form.login,
.woocommerce form.register {
    border-color: var(--ga-border);
    border-radius: 9px;
}

/* Select2 : mêmes dimensions et contrastes que les champs du design. */
.ga-search .select2-container,
.ga-form-wrap .select2-container {
    min-width: 0;
    max-width: 100%;
}
.ga-search .select2-selection,
.ga-form-wrap .select2-selection {
    min-height: 50px;
    border: 1px solid #9db1c2;
    border-radius: 5px;
    color: var(--ga-ink);
    background: #fff;
}
.ga-search .select2-selection--single .select2-selection__rendered,
.ga-form-wrap .select2-selection--single .select2-selection__rendered {
    padding: 10px 36px 10px 15px;
    line-height: 28px;
    color: var(--ga-ink);
}
.ga-search .select2-selection--single .select2-selection__arrow,
.ga-form-wrap .select2-selection--single .select2-selection__arrow {
    height: 48px;
    right: 8px;
}
.ga-form-wrap .select2-selection--multiple {
    padding: 4px 8px;
}
.ga-form-wrap .select2-selection--multiple .select2-selection__choice {
    background: var(--ga-light);
    border: 1px solid var(--ga-border);
    white-space: normal;
    padding: 4px 8px;
}
.ga-form-wrap .select2-search--inline .select2-search__field {
    min-height: 32px;
    padding: 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.ga-search .select2-selection__placeholder,
.ga-form-wrap .select2-selection__placeholder {
    color: var(--ga-muted);
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--ga-orange);
    color: #fff;
}
.select2-dropdown {
    color: var(--ga-ink);
    border-color: #9db1c2;
}
.ga-search .select2-selection:focus-visible,
.ga-form-wrap .select2-selection:focus-visible,
.ga-search .select2-container--focus .select2-selection,
.ga-form-wrap .select2-container--focus .select2-selection {
    outline: 3px solid #ed9a63;
    outline-offset: 3px;
}
.ga-form-wrap .wp-editor-wrap {
    border: 1px solid var(--ga-border);
    border-radius: 5px;
    overflow: hidden;
}
#ga-logo-preview img,
.ga-card img.ga-logo,
.ga-garage img.ga-logo {
    object-fit: contain;
    background: #fff;
}
.ga-garage img.ga-logo {
    max-width: 280px;
    max-height: 200px;
}
.immiPressBtn, .aximo-default-btn.yellow-btn {
    margin-top: 14px;
    background: var(--ga-orange);
    color: white;
    border-radius: 7px;
    padding: 14px 22px;
    text-align: center;
    display: inline-block;
    cursor: pointer;
}
.aximo-main-field {
    padding: 14px;
}

.aximo-section-padding2 {
    padding: 14px;
}

/* Recherche des publications */
.right-sidebar {
    margin-block: 24px;
}

.right-sidebar .wp-block-search__inside-wrapper {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 52px;
    padding: 4px;
    gap: 4px;
    background: #fff;
    border: 1px solid #cbd8e2;
    border-radius: 8px;
    box-sizing: border-box;
}

.right-sidebar .wp-block-search__inside-wrapper:focus-within {
    border-color: #c83b0a;
    box-shadow: 0 0 0 3px rgb(200 59 10 / 15%);
}

.right-sidebar #psw-search-input {
    flex: 1;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 10px 14px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #142e40;
    font: inherit;
    font-size: 16px;
    line-height: 1.5;
    box-shadow: none;
}

.right-sidebar #psw-search-input:focus {
    outline: none;
}

.right-sidebar #psw-search-input::placeholder {
    color: #627787;
    opacity: 1;
}

.right-sidebar #wp-block-search__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    min-height: 44px;
    margin: 0;
    padding: 10px;
    border: 0;
    border-radius: 5px;
    background: #c83b0a;
    color: #fff;
    cursor: pointer;

    /* Remplace visuellement l’émoji par une loupe blanche. */
    font-size: 0;
}

.right-sidebar #wp-block-search__button::before {
    content: "";
    width: 20px;
    height: 20px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5' fill='none' stroke='black' stroke-width='2.5'/%3E%3Cpath d='m16 16 5 5' stroke='black' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.right-sidebar #wp-block-search__button:hover {
    background: #a93008;
}

.right-sidebar #wp-block-search__button:focus-visible {
    outline: 3px solid #142e40;
    outline-offset: 3px;
}