/* ==========================================================================
   Contact — version « choc »
   --------------------------------------------------------------------------
   1. Ouverture (aplat bleu : titre géant, coordonnées en pastilles, formulaire en tuile blanche)
   2. Formulaire
   3. Coordonnées de la division
   4. Annuaire des implantations (tuiles blanches sur bande teintée)
   ========================================================================== */

/* 1. Ouverture ------------------------------------------------------------- */
.contact {
    padding-bottom: clamp(3.5rem, 2.5rem + 4vw, 6rem);
}

.contact__grid {
    display: grid;
    gap: clamp(2.5rem, 2rem + 3vw, 4rem);
}

/* Ordre du document : introduction, formulaire, coordonnées. Sur grand écran,
   les coordonnées remontent sous l'introduction et le formulaire occupe la
   colonne de droite sur toute la hauteur. */
@media (min-width: 1000px) {
    .contact__grid {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        grid-template-rows: auto 1fr;
        grid-template-areas:
            "intro form"
            "main  form";
        column-gap: clamp(3rem, 5vw, 5.5rem);
        row-gap: clamp(2.5rem, 2rem + 2vw, 3.5rem);
        align-items: start;
    }

    .contact__intro { grid-area: intro; }
    .contact__form { grid-area: form; }
    .contact__main { grid-area: main; }
}

.contact .eyebrow {
    color: var(--white);
}

.contact__title {
    margin-top: clamp(1rem, 0.75rem + 1vw, 1.75rem);
    font-size: clamp(2.75rem, 1.3rem + 5.6vw, 6.5rem);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.05em;
    color: var(--white);
    padding-bottom: 0.06em;
}

.contact__title em {
    display: block;
    color: var(--yellow);
}

.contact__lede {
    margin-top: clamp(1.25rem, 1rem + 1.5vw, 2rem);
}

.contact__note {
    margin-top: 1rem;
    max-width: 30em;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.86);
}

/* Raccourcis mobiles : appeler, ou sauter aux coordonnées placées après le formulaire */
.contact__shortcuts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.5rem;
    margin-top: 1.5rem;
}

.contact__call {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 2.9rem;
    padding: 0 1.15rem 0 0.4rem;
    border-radius: var(--pill);
    background: var(--yellow);
    color: var(--ink);
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    white-space: nowrap;
}

.contact__call .icon {
    width: 2.1rem;
    height: 2.1rem;
    padding: 0.5rem;
    border-radius: 50%;
    background: var(--ink);
    color: var(--yellow);
}

@media (min-width: 1000px) {
    .contact__shortcuts {
        display: none;
    }
}

/* Les liens fléchés de la page gardent leur dessin, mais offrent une zone tactile de 44 px */
.contact .link-arrow,
.offices .link-arrow {
    position: relative;
}

.contact .link-arrow::after,
.offices .link-arrow::after {
    content: "";
    position: absolute;
    inset: -0.5rem -0.25rem;
}

/* 2. Formulaire : tuile blanche posée sur l'aplat ---------------------------- */
/* L'aplat bleu redéfinit les couleurs (filets, gris, champs) : la tuile reprend celles du papier. */
.contact-form {
    --line: #c9d6e2;
    --line-soft: #dde6ee;
    --muted: #5a6f82;
    --ink-soft: #35536d;
    --blue: #0f75bc;
    --blue-deep: #0a5c97;
    --paper: #ffffff;
    --field-bg: var(--paper-2);
    --field-label: var(--ink);
    --field-focus: var(--brand);
    --field-ring: rgba(15, 117, 188, 0.22);

    position: relative;
    padding: clamp(1.35rem, 0.9rem + 2.2vw, 2.75rem);
    border-radius: var(--tile-radius);
    background: var(--white);
    color: var(--ink);
    box-shadow: 0 40px 80px -40px rgba(6, 24, 42, 0.75);
}

/* Le bouton d'envoi retrouve ses couleurs de fond clair */
.contact-form .btn:not(.btn--ghost):not(.btn--yellow) {
    --btn-bg: var(--brand);
    --btn-fg: var(--white);
    --btn-badge-bg: var(--white);
    --btn-badge-fg: var(--brand);
    --btn-shadow: 0 14px 28px -16px rgba(15, 117, 188, 0.95);
}

.contact-form .btn--ghost {
    --btn-bg: transparent;
    --btn-fg: var(--ink);
    --btn-ring: var(--ink);
    --btn-fill: var(--yellow);
    --btn-badge-bg: var(--ink);
    --btn-badge-fg: var(--white);
}

.contact-form .btn:focus-visible,
.contact-form a:focus-visible,
.contact-form button:focus-visible {
    outline-color: var(--ink);
}

.contact-form ::selection {
    background: var(--yellow);
    color: var(--ink);
}

.contact-form__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    margin-bottom: 1.75rem;
}

.contact-form__title {
    font-size: var(--step-3);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.contact-form__req {
    padding: 0.35rem 0.8rem;
    border-radius: var(--pill);
    background: var(--paper-2);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.contact-form__req span {
    color: var(--blue);
}

.contact-form .field__textarea {
    min-height: 10rem;
}

.contact-form__label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.contact-form__count {
    font-size: 0.8125rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--muted);
}

.contact-form__count.is-near {
    color: var(--warning);
}

.contact-form .form__actions {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1.5px solid var(--line-soft);
}

.contact-form .field--check {
    min-height: 2.75rem;
}

@media (max-width: 479px) {
    .contact-form .form__actions .btn {
        width: 100%;
    }
}

/* Rappel du produit sur lequel porte la demande */
.contact-product {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    grid-template-areas:
        "media body"
        "media link";
    gap: 0 1rem;
    margin-bottom: 1.75rem;
    padding: 0.6rem;
    border-radius: calc(var(--tile-radius) - 0.4rem);
    background: var(--paper-2);
}

.contact-product__media {
    grid-area: media;
    display: grid;
    place-items: center;
    width: 4.5rem;
    height: 4.5rem;
    padding: 0.4rem;
    border-radius: 1rem;
    background: var(--white);
}

.contact-product__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.contact-product__body {
    grid-area: body;
    display: grid;
    gap: 0.15rem;
    align-content: center;
    min-width: 0;
    padding-top: 0.3rem;
}

.contact-product__label,
.contact-product__brand {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.5;
    color: var(--muted);
}

.contact-product__brand {
    color: var(--blue-deep);
}

.contact-product__name {
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

.contact-product__link {
    grid-area: link;
    justify-self: start;
    margin: 0.4rem 0 0.2rem;
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .contact-product {
        grid-template-columns: 4.5rem minmax(0, 1fr) auto;
        grid-template-areas: "media body link";
    }

    .contact-product__body {
        padding-top: 0;
    }

    .contact-product__link {
        align-self: center;
        margin: 0 0.5rem 0 0;
    }
}

/* 3. Coordonnées de la division ---------------------------------------------- */
.contact-main {
    padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--tile-radius);
    background: rgba(255, 255, 255, 0.07);
}

.contact-main__city,
.offices__city {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: var(--pill);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-main__city {
    background: var(--yellow);
    color: var(--ink);
}

.contact-main__name {
    margin-top: 0.75rem;
    font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.045em;
    color: var(--white);
}

.contact-main address,
.offices address {
    font-style: normal;
}

.coords {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0 0;
}

.coords__row {
    display: grid;
    gap: 0.45rem;
}

.coords__row dt,
.offices__cell dt,
.offices__social-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.5;
    color: var(--muted);
}

.contact-main .coords__row dt {
    color: rgba(255, 255, 255, 0.82);
}

.coords__row dd {
    min-width: 0;
    margin: 0;
}

.coords__address {
    max-width: 24em;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.5;
}

.coords__map {
    margin-top: 0.75rem;
}

/* Numéros et adresses : une pastille par valeur */
.coords__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.coords__list a,
.coords__list span {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    padding: 0 0.95rem;
    border-radius: var(--pill);
    font-size: 0.9375rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.contact-main .coords__list a,
.contact-main .coords__list span {
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
}

.contact-main .coords__list span {
    background: transparent;
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.3);
}

.contact-main .coords__list a:hover,
.contact-main .coords__list a:focus-visible {
    background: var(--yellow);
    color: var(--ink);
}

@media (pointer: coarse) {
    .coords__list a {
        min-height: 2.75rem;
    }
}

/* 4. Annuaire des implantations --------------------------------------------- */
.offices__head {
    display: grid;
    gap: 1.5rem 3rem;
    margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem);
}

.offices__title {
    margin-top: 1rem;
    font-size: clamp(2.25rem, 1.3rem + 4.2vw, 5rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.offices__title em {
    color: var(--blue);
}

.offices__social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.5rem;
}

@media (min-width: 900px) {
    .offices__head {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        align-items: end;
    }

    .offices__social {
        justify-content: flex-end;
        padding-bottom: 0.6rem;
    }
}

/* L'en-tête de colonnes de l'ancien registre n'a plus lieu d'être : chaque tuile porte ses libellés */
.offices__cols {
    display: none;
}

.offices__list {
    display: grid;
    gap: clamp(0.6rem, 0.4rem + 0.8vw, 1rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.offices__row {
    display: grid;
    gap: 1.25rem;
    align-content: start;
    padding: clamp(1.25rem, 1rem + 1.2vw, 2rem);
    border-radius: var(--tile-radius);
    background: var(--white);
}

.offices__city {
    background: var(--brand);
    color: var(--white);
}

.offices__name {
    margin-top: 0.6rem;
    font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.035em;
}

.offices__cells {
    display: grid;
    gap: 0.9rem;
    margin: 0;
}

.offices__cell {
    display: grid;
    gap: 0.35rem;
}

.offices__cell dd {
    min-width: 0;
    margin: 0;
}

.offices__text {
    display: block;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--ink-soft);
}

.offices__none {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    font-weight: 700;
    color: var(--muted);
}

.offices .coords__list a,
.offices .coords__list span {
    background: var(--paper-2);
    color: var(--ink);
}

.offices .coords__list span {
    background: transparent;
    box-shadow: inset 0 0 0 1.5px var(--line);
}

.offices .coords__list a:hover,
.offices .coords__list a:focus-visible {
    background: var(--yellow);
}

@media (min-width: 760px) {
    .offices__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .offices__list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .offices .coords__list a,
    .offices .coords__list span {
        font-size: 0.875rem;
        padding: 0 0.8rem;
    }
}
