/* ==========================================================================
   ERP PROGIAL website
   1. Fonts   2. Base   3. Page layout   4. Header and menu   5. Module banners   6. Home page
   7. Contact form   8. Module pages   9. Text pages   10. Footer   11. Buttons   12. Image zoom
   13. Responsive   14. Animations
   ========================================================================== */

/* ---------- 1. Fonts ---------- */

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/Poppins-Regular.woff2") format("woff2");
}

@font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/Poppins-Italic.woff2") format("woff2");
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/Poppins-Medium.woff2") format("woff2");
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/Poppins-SemiBold.woff2") format("woff2");
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/Poppins-Bold.woff2") format("woff2");
}

/* ---------- 2. Base ---------- */

:root {
    --green: #95c11f;            /* brand green: decoration only (backgrounds, borders) */
    --green-text: #5a7800;       /* green of texts, links and buttons on a light background (5.1:1 with white) */
    --green-on-dark: #96bd0d;    /* brand green on the dark footer (4.9:1) */
    --text: #3e3d40;
    --footer-bg: #3d3d3f;
    --band-bg: #eef3dc;
    --gap: 20px;
    --header-height: 5em;
    --legal-accent: var(--green-text);   /* titles and links of the legal notice */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    background: var(--green-text);
    color: #fff;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    font-family: 'Poppins', Arial, sans-serif;
    color: var(--text);
}

body {
    padding-top: var(--header-height);
    overflow-x: hidden;
    background-color: #fff;
}

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

h1,
h2,
h3,
h4,
h5 {
    margin-bottom: 1em;
    line-height: 1.25;
    font-weight: 700;
    color: var(--green-text);
}

h1 {
    font-size: 3em;
    text-transform: uppercase;
}

h2 {
    font-size: 1.5em;
}

h3 {
    font-size: 1.15em;
}

h4 {
    font-size: 1.05em;
}

strong {
    font-weight: inherit;
}

p {
    font-size: 1em;
    line-height: 1.7;
    text-align: justify;
}

/* Long justified texts are hyphenated, short centred texts are not */
.block p,
.text-page p,
.intro-text p {
    hyphens: auto;
}

ul {
    list-style: none;
    line-height: 1.7;
}

a {
    color: var(--green-text);
    font-weight: 600;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Visible for screen readers only (labels of the form, name of the menu button) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Keyboard focus */
:focus-visible {
    outline: 3px solid var(--text);
    outline-offset: 2px;
}

footer :focus-visible,
.schema :focus-visible {
    outline-color: #fff;
}

.link-green {
    color: var(--green-on-dark);
}

/* ---------- 3. Page layout ----------
   The page is a stack of blocks. The grid has 12 columns and every direct child takes the whole width,
   unless it asks for fewer columns with .span-N. Blocks are placed in the order of the HTML: no row to maintain.
   Full-width bands (banner, home sections, footer) are placed outside the grid. */

.container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gap);
    max-width: 1300px;
    margin: 0 auto;
    padding: 2.5em 2em;
}

:where(.container) > * {
    grid-column: 1 / -1;
    min-width: 0;
}

.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-8 { grid-column: span 8; }

/* ---------- 4. Header and menu ---------- */

header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: var(--header-height);
    padding: 0 2em;
    background-color: #fff;
    transition: box-shadow 0.2s ease-in-out;
}

header.scrolled {
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
}

.logo img {
    display: block;
    width: 10em;
}

nav > ul {
    display: flex;
    align-items: center;
    gap: 2.8em;
}

nav a,
nav button {
    display: inline-block;
    padding: 0.5em 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text);
    cursor: pointer;
}

nav a:hover,
nav button:hover {
    color: var(--green-text);
    text-decoration: none;
}

/* Little arrow after the name of a drop-down menu */
nav button::after {
    content: "";
    display: inline-block;
    margin-left: 0.45em;
    vertical-align: middle;
    border: 0.3em solid transparent;
    border-top-color: currentColor;
    border-bottom-width: 0;
}

.has-menu {
    position: relative;
}

.has-menu > ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 11;
    padding: 0.4em 0;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
}

/* The second drop-down (FAQ) is near the right edge of the header: it opens towards the left, otherwise it leaves the window */
.has-menu ~ .has-menu > ul {
    left: auto;
    right: 0;
}

.has-menu.open > ul {
    display: block;
}

@media (hover: hover) {
    .has-menu:hover > ul {
        display: block;
    }
}

.has-menu > ul a {
    display: block;
    padding: 0.2em 1.4em;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
}

.has-menu > ul a:hover {
    background-color: var(--green-text);
    color: #fff;
}

/* Button of the small screens (hidden otherwise) */
.nav-toggle {
    display: none;
    width: 2.8em;
    height: 2.4em;
    border: 0;
    border-radius: 4px;
    background-color: var(--green-text);
    cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 1.3em;
    height: 2px;
    margin: auto;
    background-color: #fff;
}

.nav-toggle-bars {
    position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle-bars::before {
    top: -0.4em;
}

.nav-toggle-bars::after {
    top: 0.4em;
}

/* ---------- 5. Module banners ---------- */

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 440px;
    padding: 2em;
    text-align: center;
    background-color: var(--green);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero h1 {
    margin-bottom: 0.8em;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

/* The banner photo is darkened (gradient of the .hero--* rules) so that the white text stays readable on the green */
.hero p {
    font-size: 1.2em;
    font-weight: 600;
    text-align: center;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero--achats {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("../images/hero-achats.webp");
}

.hero--ventes {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("../images/hero-ventes.webp");
}

.hero--wms {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("../images/hero-wms.webp");
}

.hero--production {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("../images/hero-production.webp");
}

.hero--transports {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("../images/hero-transports.webp");
}

.hero--techno {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("../images/hero-techno.webp");
}

.hero--compta {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("../images/hero-compta.webp");
}

.hero--analyses {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("../images/hero-analyses.webp");
}

/* ---------- 6. Home page ---------- */

/* Introduction: green block with the illustration, text on the right */
.intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}

.intro-illustration {
    display: grid;
    place-items: center;
    min-height: 35em;
    padding: 2em;
    background-color: var(--green);
}

.intro-illustration img {
    width: 80%;
    max-width: 40em;
}

.intro-text {
    align-self: center;
    padding: 3em 6em 3em 3em;
}

.intro-text .subtitle {
    margin-bottom: 1em;
    font-size: 1.3em;
    font-weight: 400;
    text-align: left;
}

/* Diagram of the modules: inline SVG on large screens, image on small ones */
.schema {
    margin-top: 3em;
    background-color: var(--text);
}

#schema-desktop {
    display: block;
    width: 100%;
    max-width: 1440px;
    height: auto;
    margin: 0 auto;
}

.schema-mobile {
    display: none;
    margin: 0 auto;
}

/* Classes of the inline SVG (exported by the drawing software) */
#schema-desktop .Al { fill: #fff; }
#schema-desktop .Am,
#schema-desktop .Ao,
#schema-desktop .BC { font-family: 'Poppins', Arial, sans-serif; }
#schema-desktop .An { font-size: 15.057px; }
#schema-desktop .As { font-size: 21.331px; }
#schema-desktop .Ap { opacity: 0.2; }
#schema-desktop .Aq { opacity: 0.5; }
#schema-desktop .Ar { opacity: 0.8; }
#schema-desktop .At { clip-path: url(#N); }
#schema-desktop .Au { fill: #da3138; }
#schema-desktop .Av { fill: #c14591; }
#schema-desktop .Aw { fill: #684392; }
#schema-desktop .Ax { fill: #2c6eb4; }
#schema-desktop .Ay { fill: #3eb4a7; }
#schema-desktop .Az { fill: #87a727; }
#schema-desktop .BA { fill: #f0a200; }
#schema-desktop .BB { fill: #ef850a; }
#schema-desktop .BD { clip-path: url(#R); }

/* The eight modules */
.detail {
    position: relative;
    padding: 5em 2em;
}

.detail::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 15%;
    aspect-ratio: 1;
    background-color: #95c121;
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.detail h2 {
    margin-bottom: 1.5em;
    text-align: center;
    text-transform: uppercase;
}

.services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2em 1.5em;
    max-width: 1300px;
    margin: 0 auto;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.2em;
    text-align: center;
}

.service-icon {
    display: grid;
    place-items: center;
    width: 110px;
    height: 110px;
}

.service-icon img {
    max-width: 100%;
    max-height: 100%;
}

.service-item h3 {
    width: 100%;
    margin: 1.5em 0 0;
    padding-bottom: 0.8em;
    border-bottom: 1px solid rgba(149, 193, 31, 0.5);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.service-item p {
    flex: 1;
    margin: 15px 0 25px;
    text-align: center;
}

/* ---------- 7. Contact form (as on the progial website) ---------- */

#contact {
    grid-column: 2 / span 10;
}

.contact-intro {
    margin-bottom: 1.5em;
    text-align: left;
}

form {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75em 1em;
}

.form_1 {
    grid-column: span 1;
}

.form_2,
.form_actions {
    grid-column: 1 / -1;
}

input,
textarea {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid gray;
    border-radius: 0.25em;
    padding: 0.6em;
    font: inherit;
    font-size: 0.95em;
}

textarea {
    min-height: 7em;
    overflow: auto;
    resize: vertical;
}

input#rgpd-check {
    width: auto;
    margin-right: 0.4em;
}

.form_actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75em 1em;
}

#form_button {
    width: auto;
    min-width: 12em;
    padding: 0.7em 2em;
    border: 0;
    border-radius: 2em;
    background-color: var(--green-text);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

#form_button:hover:not(:disabled) {
    background-color: var(--text);
}

#form_button:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* ERP only: needs of the visitor, check boxes shown as little switches */
.needs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5em 1em;
    border: 0;
}

.needs legend {
    margin-bottom: 0.6em;
    font-weight: 700;
    color: var(--green-text);
}

.switch-row {
    display: flex;
    align-items: center;
    gap: 0.8em;
}

.switch {
    flex: none;
    position: relative;
    width: 45px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 3em;
    background: #bdbdbd;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color 0.2s ease-in-out;
}

.switch::after {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0.25em rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    transition: left 0.2s ease-in-out;
}

.switch:checked {
    background: var(--green-text);
}

.switch:checked::after {
    left: calc(100% - 20px);
}

.error {
    color: #c00000;
}

.valid {
    color: green;
}

/* ---------- 8. Module pages ---------- */

/* Pictogram next to the introduction (decorative) */
.picto {
    display: flex;
    align-items: center;
    justify-content: center;
}

.picto img {
    width: 70%;
}

.chapo {
    grid-column: 4 / span 6;
}

.chapo p {
    font-weight: 700;
    text-align: center;
}

.features-title {
    margin-bottom: 0.4em;
    font-size: 1.5em;
    font-weight: 700;
    line-height: 2;
    color: var(--green-text);
}

.features-title::before {
    content: "\2192";
    content: "\2192" / "";
    margin-right: 0.6em;
}

.bullets > li::before {
    content: "\2022";
    display: inline-block;
    width: 1em;
    font-size: 1.2em;
    font-weight: 700;
    color: var(--green);
}

.bullets ul {
    margin-left: 1em;
}

.bullets ul li::before {
    content: "\26AC";
    display: inline-block;
    width: 1em;
    color: var(--green);
}

/* Bold list at the top of some pages (techno, analyses, comptabilite) */
.module-info {
    font-weight: 700;
    line-height: 2;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
}

.emphasis {
    font-size: 1.2em;
    font-weight: 700;
    line-height: 1.7;
    text-align: right;
}

.emphasis--left {
    text-align: left;
}

.emphasis .dark {
    color: var(--text);
}

.emphasis .green,
.emphasis-inline {
    color: var(--green-text);
}

.more {
    margin-top: 1em;
}

/* Vertical rhythm inside a block of text */
.block > * + *,
.text-page > * + * {
    margin-top: 1em;
}

.block > * + h2,
.block > * + h3 {
    margin-top: 1.5em;
}

.block .features-title + ul {
    margin-top: 0;
}

/* Traceability band of the WMS page: the text sits on the white part, the picture on the green arrow */
.trace-band {
    display: grid;
    grid-template-columns: 5fr 7fr;
    align-items: center;
    min-height: 400px;
    margin: 1em 0;
    padding: 1em 2em;
    background: var(--green) url("../images/bg-tracabilite.webp") left center / auto 100% no-repeat;
}

.trace-band p {
    max-width: 14em;
    margin-left: clamp(0em, 12vw, 12em);
    font-size: 1.3em;
    text-align: left;
}

.trace-band img {
    display: block;
    width: 49%;
    margin: 0 auto;
}

.illustration {
    display: block;
    width: 70%;
    margin: 0 auto;
}

.saas-image {
    display: block;
    width: 80%;
    margin: 4em auto 0;
}

/* ---------- 9. Text pages: formation, FAQ, legal notice ---------- */

.text-page {
    max-width: 1100px;
    margin: 0 auto;
}

.text-page h2 {
    margin-top: 1.2em;
    margin-bottom: 0.6em;
}

.text-page h1 {
    font-size: 2em;
}

.dash-list li::before {
    content: "- ";
}

.error-page {
    min-height: 40vh;
}

/* ---------- Legal notice ----------
   The markup of the notice (include/mentions-legales-content.php) and these rules are the same on every website of the
   group. The only value that belongs to the website is --legal-accent (titles, sub-titles and links), set in :root. */

.legal {
    box-sizing: border-box;
    max-width: 1200px;
    margin: 2em auto 0;
    padding: 3em;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: justify;
    hyphens: auto;
}

.legal h1,
.legal h2,
.legal h3 {
    margin: 0;
    font-weight: 700;
    line-height: 1.5;
}

.legal h1 {
    font-size: 2em;
    text-transform: uppercase;
}

.legal h2 {
    margin: 1em 0;
    font-size: 1.5em;
    text-align: left;
}

.legal h3 {
    margin: 1.5em 0 0.5em;
    font-size: 1.17em;
    text-align: left;
}

.legal p,
.legal ul {
    margin: 0 0 1em;
    font-size: 1em;
    font-weight: 400;
    line-height: 1.5;
}

.legal ul {
    padding: 0;
    list-style: none;
}

.legal li {
    font-size: 1em;
    font-weight: 400;
    line-height: 1.5;
    list-style: none;
}

.legal b,
.legal strong {
    font-weight: 700;
}

.legal a {
    color: var(--legal-accent);
    font-weight: 600;
}

.mention {
    text-align: center;
}

.mention-title {
    color: var(--legal-accent);
}

.mention-soustitle {
    font-weight: 700;
    font-style: italic;
}

h3.mention-soustitle {
    color: var(--legal-accent);
}

.sous-mention {
    padding-left: 10px;
}

@media (max-width: 600px) {
    .legal {
        padding: 1.5em;
    }
}

/* ---------- 10. Footer: three equal columns, each one centred, centred vertically too ---------- */

footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    justify-items: center;
    gap: 0.5em 2em;
    padding: 1.25em 2em 0.75em;
    background-color: var(--footer-bg);
    text-align: center;
}

footer p,
footer li,
footer a {
    color: #fff;
    text-decoration: none;
}

footer p {
    text-align: center;
}

footer a:hover {
    color: #fff !important;
}

.footer-title {
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--green-on-dark);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
}

footer .primary-green-button a {
    width: 200px;
    text-align: center;
}

footer .primary-green-button .icon {
    width: 1.2em;
    height: 1.2em;
    vertical-align: -0.2em;
    margin-right: 0.2em;
}

.droitsReserves {
    grid-column: 1 / -1;
    margin-top: 0.5em;
}

/* ---------- 11. Buttons ---------- */

.primary-green-button a {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 20px;
    background-color: var(--green-text);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    transition: 0.4s all ease-in-out;
}

.primary-green-button a:hover {
    background: var(--text);
    text-decoration: none;
}

/* ---------- 12. Image zoom (dialog created by site.js) ---------- */

a.zoom {
    display: block;
}

a.zoom img {
    display: block;
    cursor: zoom-in;
    transition: opacity 0.3s;
}

a.zoom:hover img {
    opacity: 0.7;
}

dialog.zoom-dialog {
    max-width: 96vw;
    max-height: 96vh;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
}

dialog.zoom-dialog::backdrop {
    background: rgba(0, 0, 0, 0.9);
}

dialog.zoom-dialog img {
    display: block;
    width: auto;
    max-width: 96vw;
    max-height: 88vh;
    margin: 0 auto;
}

dialog.zoom-dialog button {
    position: fixed;
    top: 10px;
    right: 25px;
    padding: 0 0.3em;
    border: 0;
    background: none;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    color: #f1f1f1;
    cursor: pointer;
}

dialog.zoom-dialog button:hover,
dialog.zoom-dialog button:focus-visible {
    color: #bbb;
    outline-color: #fff;
}

/* ---------- 13. Responsive ---------- */

@media (max-width: 1200px) {
    .intro-text {
        padding-right: 3em;
    }

    .services {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1100px) {
    form {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Footer: the three columns are stacked */
@media (max-width: 1056px) {
    footer {
        grid-template-columns: 1fr;
        row-gap: 0.75em;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.2em;
    }

    .span-4,
    .span-6,
    .span-8,
    .chapo {
        grid-column: 1 / -1;
    }

    .picto,
    .saas-image {
        display: none;
    }

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

    .intro-illustration {
        min-height: 0;
    }

    .intro-illustration img {
        width: 70%;
    }

    .intro-text {
        padding: 2em;
    }

    #schema-desktop {
        display: none;
    }

    .schema-mobile {
        display: block;
    }

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

    .trace-band {
        display: block;
        min-height: 0;
        background: none;
        text-align: center;
    }

    .trace-band p {
        max-width: none;
        margin: 0 auto 1em;
        text-align: center;
    }

    .trace-band img {
        width: 70%;
    }
}

@media (max-width: 850px) {
    header {
        padding: 0 1em;
    }

    .logo img {
        width: 8em;
    }

    /* Menu hidden behind a button (only when the script is running) */
    .js .nav-toggle {
        display: block;
    }

    .js header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        background-color: rgba(250, 250, 250, 0.98);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    }

    .js header.nav-open nav {
        display: block;
    }

    nav > ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    nav > ul > li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    nav > ul > li:last-child {
        border-bottom: 0;
    }

    nav > ul > li > a,
    nav > ul > li > button {
        width: 100%;
        padding: 0.9em 0;
    }

    .has-menu > ul {
        position: static;
        min-width: 0;
        border: 0;
        box-shadow: none;
        background: transparent;
    }

    .has-menu > ul a {
        white-space: normal;
    }

    .hero {
        min-height: 320px;
    }

    .hero--achats {
        background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("../images/hero-achats-mobile.webp");
    }

    .hero--ventes {
        background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("../images/hero-ventes-mobile.webp");
    }

    .hero--wms {
        background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("../images/hero-wms-mobile.webp");
    }

    .hero--production {
        background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("../images/hero-production-mobile.webp");
    }

    .hero--transports {
        background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("../images/hero-transports-mobile.webp");
    }

    .hero--techno {
        background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("../images/hero-techno-mobile.webp");
    }

    .hero--compta {
        background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("../images/hero-compta-mobile.webp");
    }

    .hero--analyses {
        background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("../images/hero-analyses-mobile.webp");
    }

    .container {
        padding: 1.5em 1em;
    }

    #contact {
        grid-column: 1 / -1;
        padding: 0 1.25em;
    }

    #contact h2 {
        text-align: center;
    }

    .contact-intro {
        text-align: center;
    }
}

@media (max-width: 680px) {
    form,
    .needs {
        grid-template-columns: 1fr;
    }

    .form_actions {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    #form_button {
        width: 100%;
    }

}

@media (max-width: 600px) {
    h1 {
        font-size: 1.8em;
    }

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

    .detail {
        padding: 4em 1em;
    }
}

/* ---------- 14. Animations ---------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

