:root {
    --primary: #262262;
    --primary-light: #373181;
    --primary-dark: #1b1848;

    --text-color: #272727;

    /* Blanc pour correspondre au fond de la photo du camion */
    --page-background: #ffffff;

    --white: #ffffff;
    --border-color: #dedee8;

    --page-width: 1100px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;

    min-height: 100vh;
    margin: 0;

    background-color: var(--page-background);
    color: var(--text-color);

    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.35;
}

a {
    color: inherit;
}

/* Barre supérieure */

.top-bar {
    flex-shrink: 0;

    width: 100%;
    min-height: 46px;

    background-color: var(--primary);
    color: var(--white);
}

.top-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;

    width: min(var(--page-width), calc(100% - 40px));
    min-height: 46px;
    margin: 0 auto;
}

.top-bar-content > strong {
    font-size: 0.95rem;
}

.top-contact {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 0.82rem;
    font-weight: 700;
}

.top-contact a {
    text-decoration: none;
}

.top-contact a:hover,
.top-contact a:focus {
    text-decoration: underline;
}

/* Contenu principal */

main {
    display: flex;
    flex: 1;
    flex-direction: column;

    width: 100%;
    background-color: var(--page-background);
}

/* Image principale */

.hero {
    width: 100%;
    background-color: var(--page-background);
}

.hero-image-container {
    display: flex;
    align-items: center;
    justify-content: center;

    width: min(var(--page-width), 100%);
    height: 37vh;
    min-height: 260px;
    max-height: 410px;
    margin: 0 auto;

    overflow: hidden;
    background-color: var(--page-background);
}

.hero-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;
}

/* Section sous l’image */

.content {
    display: flex;
    flex-direction: column;

    width: 100%;
    padding: 14px 15px 12px;

    background-color: var(--page-background);
}

.maintenance-message {
    width: min(var(--page-width), 100%);
    margin: 0 auto 12px;

    text-align: center;
}

.maintenance-message h1 {
    margin: 0;

    color: var(--primary);

    font-size: clamp(1.7rem, 2.4vw, 2.35rem);
    line-height: 1.08;
}

.maintenance-message p {
    margin: 5px 0 0;
    font-size: 0.95rem;
}

/* Carte d’information */

.information-card {
    display: grid;
    grid-template-columns: 0.8fr 1fr 1.3fr;
    gap: 0;

    width: min(var(--page-width), 100%);
    margin: 0 auto;
    overflow: hidden;

    border: 1px solid var(--border-color);
    border-radius: 8px;

    background-color: var(--white);
    box-shadow: 0 5px 18px rgba(30, 28, 70, 0.08);
}

.information-card > div {
    min-width: 0;
    padding: 18px 20px;
}

.information-card > div + div {
    border-left: 1px solid var(--border-color);
}

.information-card h2 {
    margin: 0 0 12px;

    color: var(--primary);

    font-size: 1.08rem;
    line-height: 1.15;
    text-transform: uppercase;
}

/* Services */

.services-list {
    display: grid;
    gap: 7px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.services-list li {
    position: relative;

    padding-left: 15px;

    font-size: 0.9rem;
    font-weight: 700;
}

.services-list li::before {
    position: absolute;
    top: 0.48em;
    left: 0;

    width: 6px;
    height: 6px;

    border-radius: 50%;
    background-color: var(--primary);

    content: "";
}

/* Urgence */

.emergency-column {
    background-color: var(--primary);
    color: var(--white);
}

.emergency-column h2 {
    color: var(--white);
}

.availability {
    margin: 0 0 12px;

    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
}

.phone-lines {
    display: grid;
    gap: 6px;
}

.phone-lines a {
    display: flex;
    flex-direction: column;

    padding: 7px 9px;

    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;

    text-decoration: none;
}

.phone-lines a:hover,
.phone-lines a:focus {
    background-color: var(--white);
    color: var(--primary);
}

.phone-lines span {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.phone-lines strong {
    overflow-wrap: anywhere;
    font-size: 0.9rem;
}

/* Régions */

.main-regions {
    margin: 0 0 10px;

    color: var(--primary);

    font-size: 0.95rem;
    font-weight: 700;
}

.regions-details {
    margin: 0;

    color: #535363;

    font-size: 0.77rem;
    line-height: 1.45;
}

/* Image secondaire du camion */

.secondary-image-container {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    margin: 0;
    padding: 10px 15px 12px;

    background-color: var(--page-background);
    overflow: hidden;
}

.secondary-image {
    display: block;

    width: auto;
    max-width: min(620px, 100%);
    height: auto;
    max-height: 250px;

    object-fit: contain;
    object-position: center;
}

/* Footer */

footer {
    flex-shrink: 0;

    width: 100%;

    background-color: var(--primary-dark);
    color: var(--white);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.7fr;
    gap: 35px;
    align-items: center;

    width: min(var(--page-width), calc(100% - 40px));
    min-height: 78px;
    margin: 0 auto;
    padding: 10px 0;

    font-size: 0.78rem;
}

.footer-content > div:first-child {
    display: flex;
    flex-direction: column;
}

.footer-content > div:first-child strong {
    font-size: 0.95rem;
    text-transform: uppercase;
}

.footer-content > div:first-child span {
    color: #d7d6ef;
}

.footer-content address {
    font-style: normal;
}

.social-section {
    text-align: right;
}

.social-section > strong {
    display: block;
    margin-bottom: 4px;
}

.social-links {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.social-links a {
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
}

.social-links a:hover,
.social-links a:focus {
    text-decoration: underline;
}

/* Écrans d’ordinateur moins hauts */

@media (min-width: 751px) and (max-height: 850px) {
    .hero-image-container {
        height: 29vh;
        min-height: 190px;
        max-height: 280px;
    }

    .content {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .maintenance-message {
        margin-bottom: 8px;
    }

    .maintenance-message h1 {
        font-size: 1.55rem;
    }

    .maintenance-message p {
        font-size: 0.82rem;
    }

    .information-card > div {
        padding: 11px 14px;
    }

    .information-card h2 {
        margin-bottom: 7px;
        font-size: 0.93rem;
    }

    .services-list {
        gap: 3px;
    }

    .services-list li {
        font-size: 0.78rem;
    }

    .availability {
        margin-bottom: 7px;
        font-size: 0.95rem;
    }

    .phone-lines {
        gap: 3px;
    }

    .phone-lines a {
        padding: 4px 6px;
    }

    .phone-lines strong {
        font-size: 0.77rem;
    }

    .main-regions {
        margin-bottom: 5px;
        font-size: 0.8rem;
    }

    .regions-details {
        font-size: 0.66rem;
        line-height: 1.3;
    }

    .secondary-image-container {
        padding-top: 6px;
        padding-bottom: 7px;
    }

    .secondary-image {
        max-width: 420px;
        max-height: 125px;
    }

    .footer-content {
        min-height: 58px;
        padding: 6px 0;
    }
}

/* Mobile */

@media (max-width: 750px) {
    body {
        min-height: 100vh;
    }

    .top-bar-content {
        flex-direction: column;
        gap: 4px;

        width: calc(100% - 24px);
        padding: 10px 0;

        text-align: center;
    }

    .top-contact {
        flex-direction: column;
        gap: 2px;

        font-size: 0.82rem;
    }

    .top-contact span {
        display: none;
    }

    .hero-image-container {
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
    }

    .hero-image {
        width: 100%;
        height: auto;
    }

    .content {
        padding: 24px 10px 12px;
    }

    .maintenance-message {
        margin-bottom: 18px;
    }

    .maintenance-message h1 {
        font-size: 1.7rem;
    }

    .information-card {
        grid-template-columns: 1fr;
    }

    .information-card > div {
        padding: 20px;
    }

    .information-card > div + div {
        border-top: 1px solid var(--border-color);
        border-left: 0;
    }

    .information-card h2 {
        font-size: 1.1rem;
    }

    .services-list li {
        font-size: 0.95rem;
    }

    .regions-details {
        font-size: 0.85rem;
    }

    .secondary-image-container {
        padding: 15px 10px 20px;
    }

    .secondary-image {
        width: 100%;
        max-width: 520px;
        height: auto;
        max-height: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 18px;

        width: calc(100% - 30px);
        padding: 25px 0;

        font-size: 0.85rem;
        text-align: center;
    }

    .social-section {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}