/* =====================================================================
   MASSIF CONSTRUCTION — FEUILLE DE STYLE
   ---------------------------------------------------------------------
   01. Couleurs et base         08. Galeries et références
   02. Mise en page             09. Formulaire
   03. Navigation              10. Contact et pied de page
   04. Bandeau principal       11. Visionneuse
   05. Cartes et entreprise    12. Mobile et tablette
   06. Prestations             13. Accessibilité / impression

   Aucun framework. Modifier les variables ci-dessous pour changer
   l’apparence globale. Les images se trouvent dans assets/images/.
   ===================================================================== */

/* 01 — COULEURS ET BASE ------------------------------------------------ */
:root {
    --ink: #183541;
    --ink-deep: #0f2934;
    --red: #b72d36;             /* Rouge mat de la première version. */
    --red-hover: #95252d;
    --paper: #ffffff;
    --cream: #f5f3ef;
    --mist: #e9eeed;
    --line: #d7dcd9;
    --muted: #52666e;
    --radius: 8px;
    --container: 1360px;
    --shadow: 0 8px 24px rgb(15 41 52 / 7%);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 135px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

button,
input,
textarea {
    font: inherit;
}

button,
summary {
    cursor: pointer;
}

button,
a,
input,
textarea {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--red);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--ink-deep);
    line-height: 1.15;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

h1 {
    margin-bottom: 22px;
    font-size: clamp(2.15rem, 3.6vw, 3.55rem);
    font-weight: 750;
}

h2 {
    margin-bottom: 22px;
    font-size: clamp(1.85rem, 2.8vw, 2.7rem);
    font-weight: 720;
}

h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

p,
figcaption,
.feature-copy li {
    text-align: justify;
    hyphens: auto;
    overflow-wrap: break-word;
}

p:last-child {
    margin-bottom: 0;
}

address {
    font-style: normal;
}

[hidden] {
    display: none !important;
}

.icon {
    display: inline-block;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

::selection {
    color: var(--ink-deep);
    background: #efd7d8;
}

/* 02 — MISE EN PAGE ET COMPOSANTS -------------------------------------- */
.container {
    width: min(var(--container), calc(100% - 88px));
    margin-inline: auto;
}

.section {
    padding: 82px 0;
}

.section--compact {
    padding: 44px 0 62px;
}

.section--soft {
    background: var(--cream);
}

.eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--red);
    font-size: 0.75rem;
    font-weight: 750;
    line-height: 1.5;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.lead {
    color: var(--ink);
    font-size: 1.1rem;
    line-height: 1.7;
}

.section-heading {
    margin-bottom: 32px;
}

.section-heading > p {
    max-width: 900px;
    color: var(--muted);
}

.section-heading--split {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.section-heading--split h2 {
    margin-bottom: 0;
    font-size: clamp(1.65rem, 2.4vw, 2.35rem);
}

.section-heading--split > p {
    margin: 0;
    padding-left: 32px;
    border-left: 2px solid var(--red);
    color: var(--ink);
}

.button {
    display: inline-flex;
    min-height: 47px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 20px;
    border: 1px solid var(--red);
    border-radius: 6px;
    color: var(--paper);
    background: var(--red);
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.35;
    text-align: center;
    transition: background 160ms ease, border-color 160ms ease;
}

.button:hover {
    color: var(--paper);
    background: var(--red-hover);
    border-color: var(--red-hover);
}

.button .icon {
    width: 19px;
    height: 19px;
}

.button--compact {
    min-height: 43px;
    padding: 11px 16px;
    white-space: nowrap;
}

.button--outline {
    color: var(--red);
    background: transparent;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--red);
    font-size: 0.95rem;
    font-weight: 650;
}

.text-link .icon {
    width: 19px;
    height: 19px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 26px;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.6;
}

/* 03 — NAVIGATION ----------------------------------------------------- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    z-index: 200;
    padding: 12px 18px;
    color: white;
    background: var(--red);
}

.skip-link:focus {
    top: 12px;
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid var(--line);
    background: rgb(255 255 255 / 98%);
}

.header-inner {
    display: flex;
    min-height: 110px;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    padding-block: 5px;
}

.brand {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    padding-right: 36px;
    border-right: 1px solid var(--line);
}

.brand-logo {
    width: 113px;
    height: 103px;
    object-fit: contain;
}

.navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 2.6vw, 42px);
    margin-left: auto;
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.4;
}

.navigation > a,
.nav-dropdown > summary {
    padding-block: 14px;
    white-space: nowrap;
}

.navigation [aria-current="page"],
.navigation .is-current {
    color: var(--red);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown summary {
    display: flex;
    align-items: center;
    gap: 7px;
    list-style: none;
}

.nav-dropdown summary::-webkit-details-marker {
    display: none;
}

.nav-dropdown summary .icon {
    width: 16px;
    height: 16px;
    transition: transform 160ms ease;
}

.nav-dropdown[open] summary .icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -18px;
    z-index: 101;
    display: grid;
    width: 235px;
    gap: 3px;
    padding: 12px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--red);
    border-radius: 0 0 var(--radius) var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.dropdown-menu a {
    padding: 10px 12px;
    border-radius: 4px;
}

.dropdown-menu a:hover {
    background: var(--cream);
}

.header-contact {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 22px;
    margin-left: 4px;
    padding-left: 24px;
    border-left: 1px solid var(--line);
}

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

.header-phone .icon {
    width: 19px;
    height: 19px;
}

.menu-toggle {
    display: none;
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 5px;
    color: var(--ink);
    background: var(--paper);
}

.menu-toggle span {
    width: 19px;
    height: 2px;
    background: currentColor;
}

/* 04 — BANDEAU PRINCIPAL ET REPÈRES ------------------------------------ */
.home-hero {
    position: relative;
    min-height: 435px;
    overflow: hidden;
    background: var(--ink-deep);
}

.hero-picture {
    position: absolute;
    inset: 0 0 0 26%;
}

.hero-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
}

.hero-shape {
    position: absolute;
    inset: 0 auto 0 0;
    width: 52%;
    background: linear-gradient(95deg, var(--ink-deep), rgb(15 41 52 / 94%));
    clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
}

.hero-container {
    position: relative;
    display: flex;
    min-height: 435px;
    align-items: center;
}

.hero-copy {
    width: 41%;
    max-width: 480px;
    padding: 38px 0 42px;
    color: var(--paper);
}

.hero-copy .eyebrow {
    margin-bottom: 17px;
    color: #e8c3c5;
    font-size: 0.69rem;
    letter-spacing: 0.13em;
}

.hero-copy h1 {
    margin-bottom: 20px;
    color: white;
    font-size: clamp(1.8rem, 2.65vw, 2.6rem);
    font-weight: 730;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.hero-copy p {
    max-width: 365px;
    margin: 18px 0 26px;
    color: #edf1f2;
    font-size: 1.04rem;
    line-height: 1.55;
}

.accent-line {
    width: 74px;
    height: 4px;
    background: var(--red);
}

.reassurance-strip {
    border-bottom: 1px solid var(--line);
    background: var(--cream);
}

.reassurance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding-block: 18px;
}

.reassurance-grid > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 0 18px;
    border-right: 1px solid #c6cecb;
}

.reassurance-grid > div:first-child {
    padding-left: 0;
}

.reassurance-grid > div:last-child {
    padding-right: 0;
    border-right: 0;
}

.reassurance-grid > div > .icon {
    width: 30px;
    height: 30px;
}

.reassurance-grid p {
    margin: 0;
    text-align: left;
    font-size: 0.8rem;
    line-height: 1.5;
}

.reassurance-grid strong,
.reassurance-grid span {
    display: block;
}

.reassurance-grid strong {
    font-size: 0.87rem;
}

.reassurance-grid span {
    color: var(--muted);
}

/* 05 — CARTES MÉTIERS ET ENTREPRISE ------------------------------------ */
.sector-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.sector-card {
    display: grid;
    grid-template-columns: 43% 57%;
    min-height: 264px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 0 4px 10px rgb(15 41 52 / 6%);
}

.sector-image {
    min-width: 0;
    overflow: hidden;
}

.sector-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 350ms ease;
}

.sector-card:hover .sector-image img {
    transform: scale(1.025);
}

.sector-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px 20px;
}

.sector-copy h3 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    font-size: 1.2rem;
    letter-spacing: -0.025em;
}

.sector-copy h3 > .icon {
    width: 27px;
    height: 27px;
    color: var(--red);
}

.sector-copy p {
    margin-bottom: 22px;
    font-size: 0.93rem;
    line-height: 1.6;
}

.sector-copy .text-link {
    gap: 5px;
    margin-top: auto;
    font-size: 0.86rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 72px;
    align-items: center;
}

.about-image {
    position: relative;
    align-self: stretch;
    overflow: hidden;
    border-radius: var(--radius);
}

.about-image > img {
    width: 100%;
    height: 100%;
    min-height: 480px;
    object-fit: cover;
    object-position: 48% center;
}

.image-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    gap: 4px;
    padding: 28px 30px;
    color: white;
    background: linear-gradient(transparent, rgb(15 41 52 / 91%));
}

.image-caption strong {
    font-size: 1.15rem;
}

.image-caption span {
    font-size: 0.85rem;
}

.about-copy p:not(.lead) {
    color: var(--muted);
}

.about-copy .text-link {
    margin-top: 10px;
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.method-grid article {
    padding: 10px 22px 4px 0;
    border-top: 1px solid var(--line);
}

.step-number {
    display: block;
    margin: 10px 0 22px;
    color: var(--red);
    font-size: 2rem;
    font-weight: 650;
    line-height: 1;
}

.method-grid h3 {
    margin-bottom: 13px;
    font-size: 1.1rem;
}

.method-grid p {
    color: var(--muted);
    font-size: 0.94rem;
}

/* 06 — INTRODUCTIONS ET PRESTATIONS ----------------------------------- */
.page-intro {
    padding: 46px 0 44px;
    background: var(--cream);
}

.page-intro .lead {
    max-width: 780px;
    margin-bottom: 0;
}

.page-intro--photo {
    padding: 32px 0;
}

.intro-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 58px;
    align-items: center;
}

.intro-copy {
    padding-block: 10px;
}

.intro-image {
    overflow: hidden;
    border-radius: var(--radius);
}

.intro-image img {
    width: 100%;
    height: 352px;
    object-fit: cover;
}

.section-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
    padding-block: 17px;
    border-bottom: 1px solid var(--line);
}

.section-tabs a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 10px;
    padding: 7px 26px;
    border-right: 1px solid var(--line);
    font-size: 0.91rem;
    font-weight: 650;
}

.section-tabs a:first-child {
    padding-left: 0;
}

.section-tabs a:last-child {
    border-right: 0;
}

.section-tabs .icon {
    color: var(--red);
}

.overview-section {
    padding-top: 55px;
}

.overview-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
    padding-block: 40px 62px;
}

.overview-row + .overview-row {
    padding-top: 64px;
    border-top: 1px solid var(--line);
}

.overview-row:nth-of-type(even) .overview-diagram {
    order: 2;
}

.overview-diagram {
    margin: 0;
    padding: 28px 18px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--cream);
}

.overview-diagram img {
    width: 100%;
    height: auto;
    aspect-ratio: 540 / 294;
    object-fit: contain;
}

.overview-diagram figcaption {
    padding: 10px;
    color: var(--muted);
    font-size: 0.76rem;
    text-align: center;
}

.overview-copy h2 {
    font-size: clamp(1.8rem, 2.6vw, 2.5rem);
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 22px 0;
    padding: 0;
    list-style: none;
}

.service-tags li {
    padding: 5px 9px;
    border-radius: 3px;
    background: var(--cream);
    font-size: 0.78rem;
}

.diagram-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
    margin: 25px 0 30px;
}

.diagram-points > div {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.diagram-points b {
    color: var(--red);
    font-size: 0.85rem;
    line-height: 1.8;
}

.diagram-points p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.6;
}

.diagram-points strong {
    display: block;
    color: var(--ink);
}

.prefab-band {
    padding-block: 42px;
    background: var(--ink-deep);
    color: white;
}

.prefab-inner {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 28px;
    align-items: center;
}

.prefab-inner > .icon {
    width: 56px;
    height: 56px;
    color: #e3aeb2;
}

.prefab-inner h2 {
    margin-bottom: 13px;
    color: white;
    font-size: 1.9rem;
}

.prefab-inner .eyebrow,
.prefab-inner .text-link {
    color: #efbfc2;
}

.prefab-inner p {
    max-width: 730px;
    margin: 0;
    color: #dce6e8;
}

.service-features {
    padding-block: 50px 70px;
}

.service-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding: 30px 0 50px;
}

.service-feature + .service-feature {
    padding-top: 52px;
    border-top: 1px solid var(--line);
}

.service-feature:nth-of-type(even) .feature-photo {
    order: 2;
}

.feature-photo {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--mist);
}

.feature-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 1.45;
    object-fit: cover;
}

.feature-copy {
    padding: 10px 16px;
}

.feature-copy h2 {
    font-size: clamp(1.85rem, 2.4vw, 2.45rem);
}

.check-list {
    display: grid;
    gap: 13px;
    margin: 23px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.97rem;
}

.check-list .icon {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    color: var(--red);
}

/* 07 — SAVOIR-FAIRE ET ZONES ------------------------------------------ */
.knowhow-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 88px;
    align-items: stretch;
}

.knowhow-items {
    display: grid;
    gap: 24px;
    margin-top: 30px;
}

.knowhow-items h3 {
    margin-bottom: 10px;
}

.knowhow-items p {
    color: var(--muted);
}

.prefab-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 38px;
    border-radius: var(--radius);
    color: white;
    background: var(--ink-deep);
}

.prefab-card > .icon {
    width: 44px;
    height: 44px;
    margin-bottom: 26px;
    color: #e8b6ba;
}

.prefab-card h2 {
    color: white;
    font-size: 2rem;
}

.prefab-card p {
    color: #dce6e8;
}

.prefab-card .eyebrow,
.prefab-card .text-link {
    color: #efbfc2;
}

.prefab-card .text-link {
    margin-top: auto;
    padding-top: 20px;
}

.zone-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 72px;
    align-items: center;
}

.zone-grid p {
    max-width: 440px;
    color: var(--muted);
}

.area-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.area-list li {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--red);
    border-radius: 4px;
    background: var(--cream);
    font-size: 0.91rem;
}

/* 08 — GALERIES ET CHANTIERS RÉFÉRENCES ------------------------------- */
.gallery-section {
    padding-block: 56px;
}

.gallery-section:nth-of-type(odd) {
    background: var(--cream);
}

.gallery-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.gallery-heading h2 {
    margin-bottom: 0;
}

.gallery-heading > p {
    max-width: 450px;
    margin: 0;
}

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

.gallery-card {
    margin: 0;
    padding: 0 0 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}

.gallery-card h3 {
    min-height: 62px;
    margin: 0;
    padding: 20px 22px 17px;
    font-size: 1.1rem;
}

.gallery-photo {
    position: relative;
    display: block;
    overflow: hidden;
}

.gallery-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 1.45;
    object-fit: cover;
    transition: transform 220ms ease;
}

.gallery-photo:hover img {
    transform: scale(1.02);
}

.zoom-icon {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: rgb(255 255 255 / 92%);
    color: var(--ink-deep);
}

.zoom-icon .icon {
    width: 19px;
    height: 19px;
}

.gallery-card figcaption {
    padding: 18px 22px 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.references-section {
    border-top: 1px solid var(--line);
    background: var(--paper);
}

.references-section .section-heading p {
    max-width: 900px;
    font-size: 0.94rem;
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 34px 20px;
    padding: 12px 0 28px;
}

.reference-button {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    padding: 5px;
    text-align: center;
}

.reference-round {
    display: block;
    width: 150px;
    height: 150px;
    margin-bottom: 15px;
    padding: 5px;
    border: 1px solid #9ca9a6;
    border-radius: 50%;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.reference-round img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.reference-button:hover .reference-round,
.reference-button[aria-expanded="true"] .reference-round {
    border-color: var(--red);
    box-shadow: 0 0 0 2px var(--red);
}

.reference-button strong {
    max-width: 190px;
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.35;
}

.reference-button > span:last-child {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.88rem;
    font-style: italic;
    line-height: 1.4;
}

.reference-panel {
    position: relative;
    margin-top: 28px;
    padding: 34px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--red);
    border-radius: 0 0 var(--radius) var(--radius);
    background: var(--cream);
    scroll-margin-top: 135px;
}

.reference-panel > h3 {
    max-width: calc(100% - 35px);
    margin-bottom: 24px;
    font-size: 1.85rem;
}

.reference-panel > h3 span {
    color: var(--muted);
    font-weight: 400;
}

.reference-panel > p {
    max-width: 950px;
}

.reference-close {
    position: absolute;
    top: 17px;
    right: 17px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    background: var(--paper);
}

.reference-photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin: 0 0 28px;
}

.reference-photos > a {
    display: block;
    overflow: hidden;
    border-radius: 5px;
    background: var(--mist);
}

.reference-photos > a:only-child {
    grid-column: 1 / -1;
    max-width: 880px;
}

.reference-photos img {
    width: 100%;
    height: 330px;
    object-fit: contain;
}

.reference-no-photo {
    margin-bottom: 25px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--paper);
    color: var(--muted);
    font-size: 0.94rem;
}

.reference-date {
    color: var(--muted);
    font-size: 0.91rem;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    max-width: 100%;
    margin-top: 12px;
    padding: 10px 18px 10px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
}

.map-link > img {
    width: 155px;
    height: 84px;
    border-radius: 4px;
    object-fit: cover;
}

.map-link strong,
.map-link small {
    display: block;
}

.map-link strong {
    font-size: 0.93rem;
}

.map-link strong .icon {
    width: 18px;
    height: 18px;
}

.map-link small {
    margin-top: 6px;
    color: var(--muted);
}

/* 09 — FORMULAIRE ----------------------------------------------------- */
.contact-section {
    padding-top: 58px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 70px;
    align-items: start;
}

.contact-layout > * {
    min-width: 0;
}

.contact-details h2 {
    margin-bottom: 8px;
    font-size: 1.65rem;
}

.contact-subtitle {
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 0.91rem;
    text-align: left;
}

.contact-number {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 10px;
    color: var(--red);
    font-size: 1.5rem;
    font-weight: 650;
}

.contact-mail {
    display: block;
    font-size: 0.97rem;
    overflow-wrap: anywhere;
}

.address-block {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin: 30px 0;
}

.address-block > .icon {
    margin-top: 3px;
    color: var(--red);
}

.address-block strong {
    display: block;
    margin-bottom: 7px;
}

.address-block address {
    font-size: 0.96rem;
}

.contact-image {
    margin-top: 30px;
    overflow: hidden;
    border-radius: var(--radius);
}

.contact-image img {
    width: 100%;
    aspect-ratio: 1.45;
    object-fit: cover;
}

.form-panel {
    min-width: 0;
    padding: 32px 36px 36px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--cream);
    scroll-margin-top: 135px;
}

.form-panel h2 {
    font-size: 1.85rem;
}

.form-intro {
    margin-bottom: 25px;
    color: var(--muted);
    font-size: 0.83rem;
}

.contact-form {
    display: grid;
    min-width: 0;
    gap: 22px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.field {
    min-width: 0;
}

.field label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.9rem;
    font-weight: 650;
}

.field input,
.field textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 12px 13px;
    border: 1px solid #abb9b8;
    border-radius: 4px;
    color: var(--ink-deep);
    background: white;
    line-height: 1.5;
}

.field textarea {
    min-height: 170px;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #627178;
    opacity: 1;
}

.file-field {
    min-width: 0;
    padding: 20px;
    border: 1px dashed #9aa9a8;
    border-radius: 5px;
    background: white;
}

.file-field label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.96rem;
    font-weight: 650;
}

.file-field label > .icon {
    color: var(--red);
}

.file-field input {
    display: block;
    width: 100%;
    max-width: 100%;
    font-size: 0.85rem;
}

.file-field input::file-selector-button {
    margin-right: 10px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--ink);
    background: var(--cream);
    cursor: pointer;
}

.file-field p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.5;
    text-align: left;
}

.file-field .file-status:empty {
    display: none;
}

.file-field .file-status.is-error {
    color: var(--red-hover);
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 0.84rem;
    line-height: 1.6;
}

.consent input {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--red);
}

.consent a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.form-status {
    margin: 0;
    padding: 15px;
    border-left: 3px solid var(--red);
    background: var(--paper);
    font-size: 0.9rem;
}

.contact-form > .button {
    justify-self: start;
}

/* 10 — CONTACT ET PIED DE PAGE ---------------------------------------- */
.project-cta {
    padding: 44px 0;
    border-top: 1px solid var(--line);
    background: var(--cream);
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.cta-inner > div {
    max-width: 900px;
}

.cta-inner h2 {
    margin-bottom: 16px;
    font-size: clamp(1.75rem, 2.5vw, 2.3rem);
}

.cta-inner p {
    margin: 0;
    color: var(--muted);
}

.cta-inner > .button {
    flex-shrink: 0;
}

.site-footer {
    padding-top: 54px;
    color: #dce6e8;
    background: var(--ink-deep);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.75fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 38px;
}

.footer-name {
    display: block;
    color: white;
    font-size: 2.1rem;
    font-weight: 740;
    letter-spacing: -0.04em;
    line-height: 1.2;
}

.footer-name small {
    display: block;
    margin-top: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.footer-tagline {
    margin: 18px 0 16px;
    color: #e8b6ba;
    font-size: 0.81rem;
    text-align: left;
}

.footer-brand > p:last-child {
    font-size: 0.86rem;
    line-height: 1.75;
    text-align: left;
}

.footer-grid h2 {
    margin-bottom: 20px;
    color: white;
    font-size: 1rem;
    letter-spacing: 0;
}

.footer-grid > div > a {
    display: block;
    margin: 10px 0;
    font-size: 0.85rem;
    overflow-wrap: anywhere;
}

.site-footer a:hover {
    color: #efbfc2;
}

.footer-grid address {
    margin-bottom: 16px;
    font-size: 0.85rem;
    line-height: 1.75;
}

.footer-grid address strong {
    font-weight: 600;
}

.footer-grid > div > a.footer-phone {
    color: white;
    font-size: 1.15rem;
    font-weight: 650;
}

.footer-grid a .icon {
    width: 17px;
    height: 17px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-block: 20px;
    border-top: 1px solid rgb(255 255 255 / 16%);
    font-size: 0.77rem;
}

.footer-bottom > div {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.legal-copy {
    max-width: 900px;
}

.legal-copy h2 {
    margin-top: 30px;
    font-size: 1.55rem;
}

.legal-copy h2:first-child {
    margin-top: 0;
}

.legal-copy a {
    text-decoration: underline;
    overflow-wrap: anywhere;
}

/* 11 — VISIONNEUSE ---------------------------------------------------- */
.lightbox {
    width: min(1100px, 94vw);
    max-height: 94vh;
    padding: 0;
    overflow: auto;
    border: 1px solid rgb(255 255 255 / 20%);
    border-radius: var(--radius);
    color: white;
    background: var(--ink-deep);
}

.lightbox::backdrop {
    background: rgb(7 22 29 / 90%);
}

.lightbox-image img {
    width: 100%;
    height: min(72vh, 850px);
    object-fit: contain;
}

.lightbox-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border-top: 1px solid rgb(255 255 255 / 20%);
}

.lightbox-toolbar p {
    flex: 1;
    margin: 0;
    font-size: 0.9rem;
    text-align: center;
}

.lightbox-toolbar button {
    min-width: 40px;
    min-height: 40px;
    flex-shrink: 0;
    padding: 6px 10px;
    border: 1px solid rgb(255 255 255 / 40%);
    border-radius: 4px;
    color: white;
    background: transparent;
}

.lightbox-toolbar button:hover {
    background: rgb(255 255 255 / 12%);
}

/* 12 — TABLETTE ET MOBILE -------------------------------------------- */
@media (max-width: 1250px) {
    .container {
        width: calc(100% - 56px);
    }

    .header-inner {
        gap: 20px;
    }

    .brand {
        padding-right: 25px;
    }

    .navigation {
        gap: 22px;
        font-size: 0.9rem;
    }

    .header-contact {
        gap: 14px;
        padding-left: 18px;
    }

    .header-phone > span {
        display: none;
    }

    .header-phone {
        width: 35px;
        min-height: 40px;
        justify-content: center;
    }

    .sector-copy {
        padding: 20px 16px;
    }

    .sector-copy h3 {
        gap: 7px;
        font-size: 1.08rem;
    }

    .sector-copy p {
        font-size: 0.88rem;
    }

    .sector-copy .text-link {
        font-size: 0.8rem;
    }

    .sector-copy h3 > .icon {
        width: 23px;
        height: 23px;
    }

    .about-grid,
    .overview-row,
    .service-feature,
    .knowhow-grid,
    .zone-grid {
        gap: 42px;
    }

    .reference-round {
        width: 134px;
        height: 134px;
    }

    .footer-grid {
        gap: 27px;
    }
}

@media (max-width: 1020px) {
    .section {
        padding-block: 62px;
    }

    .section--compact {
        padding-block: 35px 45px;
    }

    .header-inner {
        flex-wrap: wrap;
        min-height: 98px;
        gap: 20px;
    }

    .brand-logo {
        width: 100px;
        height: 92px;
    }

    .brand {
        border-right: 0;
    }

    .header-contact {
        margin-left: auto;
    }

    .header-phone > span {
        display: inline;
    }

    .header-phone {
        width: auto;
    }

    .js .menu-toggle {
        display: flex;
        order: 3;
    }

    .navigation {
        width: 100%;
        order: 4;
        justify-content: flex-start;
        margin-left: 0;
        padding-block: 12px;
    }

    .js .navigation {
        display: none;
    }

    .js .navigation.is-open {
        display: flex;
    }

    .hero-shape {
        width: 57%;
    }

    .hero-copy {
        width: 46%;
    }

    .hero-copy h1 {
        font-size: 2rem;
    }

    .home-hero,
    .hero-container {
        min-height: 410px;
    }

    .reassurance-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 17px 0;
    }

    .reassurance-grid > div {
        justify-content: flex-start;
        padding-inline: 22px;
    }

    .reassurance-grid > div:nth-child(odd) {
        padding-left: 0;
    }

    .reassurance-grid > div:nth-child(even) {
        border-right: 0;
    }

    .section-heading--split {
        gap: 30px;
    }

    .sector-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .sector-card {
        grid-template-columns: 34% 66%;
        min-height: 0;
    }

    .sector-image img {
        max-height: 235px;
        object-position: center 35%;
    }

    .sector-copy {
        padding: 25px 30px;
    }

    .sector-copy h3 {
        font-size: 1.3rem;
    }

    .sector-copy p,
    .sector-copy .text-link {
        font-size: 0.95rem;
    }

    .about-grid {
        gap: 34px;
    }

    .about-image > img {
        min-height: 580px;
    }

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

    .intro-grid {
        gap: 30px;
    }

    .page-intro h1 {
        font-size: 2.45rem;
    }

    .intro-image img {
        height: 340px;
    }

    .overview-row,
    .service-feature {
        gap: 30px;
    }

    .diagram-points {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .feature-copy {
        padding-inline: 0;
    }

    .feature-copy h2 {
        font-size: 1.9rem;
    }

    .feature-photo img {
        aspect-ratio: 1.1;
    }

    .prefab-inner {
        grid-template-columns: 44px 1fr;
    }

    .prefab-inner > .text-link {
        grid-column: 2;
    }

    .prefab-card {
        padding: 28px;
    }

    .reference-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .reference-round {
        width: 135px;
        height: 135px;
    }

    .gallery-grid {
        gap: 16px;
    }

    .gallery-card h3 {
        min-height: 76px;
        padding-inline: 16px;
    }

    .gallery-card figcaption {
        padding-inline: 16px;
    }

    .contact-layout {
        grid-template-columns: 0.7fr 1.3fr;
        gap: 32px;
    }

    .contact-number {
        font-size: 1.2rem;
    }

    .form-panel {
        padding: 25px;
    }

    .form-row {
        gap: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }
}

@media (max-width: 760px) {
    html {
        scroll-padding-top: 106px;
    }

    .container {
        width: calc(100% - 36px);
    }

    .section {
        padding-block: 48px;
    }

    .header-inner {
        min-height: 88px;
        gap: 12px;
    }

    .brand {
        padding-right: 0;
    }

    .brand-logo {
        width: 88px;
        height: 80px;
    }

    .header-contact {
        padding-left: 0;
        border: 0;
    }

    .header-contact > .button {
        min-height: 40px;
        padding: 10px 13px;
        font-size: 0.85rem;
    }

    .header-phone {
        display: none;
    }

    .navigation {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding-block: 0 12px;
    }

    .navigation > a,
    .nav-dropdown > summary {
        padding-block: 14px;
        border-top: 1px solid var(--line);
    }

    .nav-dropdown > summary {
        justify-content: space-between;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        margin-bottom: 8px;
        border-top: 1px solid var(--line);
        box-shadow: none;
    }

    .home-hero {
        display: flex;
        min-height: 0;
        flex-direction: column;
    }

    .hero-picture {
        position: relative;
        inset: auto;
        display: block;
        height: 285px;
        order: 1;
    }

    .hero-picture img {
        object-position: 50% 38%;
    }

    .hero-shape {
        display: none;
    }

    .hero-container {
        min-height: 0;
        order: 2;
    }

    .hero-copy {
        width: 100%;
        max-width: none;
        padding-block: 30px 34px;
    }

    .hero-copy h1 {
        font-size: clamp(1.75rem, 5.4vw, 2.4rem);
    }

    .hero-copy p {
        max-width: 520px;
        font-size: 1rem;
    }

    .hero-copy .eyebrow {
        font-size: 0.65rem;
    }

    .reassurance-grid {
        gap: 18px 0;
        padding-block: 22px;
    }

    .reassurance-grid > div {
        align-items: flex-start;
        gap: 8px;
        padding-inline: 12px;
    }

    .reassurance-grid > div > .icon {
        width: 23px;
        height: 23px;
        margin-top: 3px;
    }

    .reassurance-grid p {
        font-size: 0.7rem;
    }

    .reassurance-grid strong {
        font-size: 0.76rem;
    }

    .section-heading--split,
    .about-grid,
    .intro-grid,
    .overview-row,
    .service-feature,
    .knowhow-grid,
    .zone-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .section-heading--split {
        gap: 20px;
    }

    .section-heading--split > p {
        padding-left: 18px;
        font-size: 0.94rem;
    }

    .sector-card {
        grid-template-columns: 36% 64%;
    }

    .sector-copy {
        padding: 22px 20px;
    }

    .sector-copy p {
        font-size: 0.88rem;
    }

    .sector-copy .text-link {
        font-size: 0.83rem;
    }

    .sector-copy h3 {
        gap: 8px;
        margin-bottom: 15px;
        font-size: 1.13rem;
    }

    .sector-image img {
        max-height: none;
    }

    .about-image > img {
        min-height: 0;
        height: 350px;
    }

    .image-caption {
        padding: 25px 20px;
    }

    .method-grid {
        gap: 22px;
    }

    .method-grid article {
        padding-right: 0;
    }

    .method-grid h3 {
        font-size: 1.06rem;
    }

    .method-grid p {
        font-size: 0.87rem;
    }

    .page-intro,
    .page-intro--photo {
        padding-block: 26px 32px;
    }

    .page-intro h1 {
        font-size: 2.3rem;
    }

    .intro-grid {
        gap: 25px;
    }

    .intro-copy {
        padding: 0;
    }

    .intro-image img {
        height: 265px;
    }

    .lead {
        font-size: 1rem;
    }

    .section-tabs {
        gap: 9px;
        padding-block: 16px;
    }

    .section-tabs a,
    .section-tabs a:first-child {
        min-height: 38px;
        padding: 8px 11px;
        border: 1px solid var(--line);
        border-radius: 4px;
        font-size: 0.79rem;
    }

    .section-tabs a:last-child {
        border-right: 1px solid var(--line);
    }

    .section-tabs .icon {
        width: 20px;
        height: 20px;
    }

    .overview-row {
        gap: 26px;
        padding-block: 15px 42px;
    }

    .overview-row + .overview-row {
        padding-top: 42px;
    }

    .overview-row:nth-of-type(even) .overview-diagram {
        order: 0;
    }

    .overview-diagram img {
        max-height: 340px;
    }

    .diagram-points {
        grid-template-columns: 1fr 1fr;
    }

    .prefab-inner {
        gap: 20px;
    }

    .prefab-inner > .icon {
        width: 40px;
        height: 40px;
    }

    .prefab-inner h2 {
        font-size: 1.6rem;
    }

    .prefab-inner p {
        font-size: 0.94rem;
    }

    .service-feature {
        gap: 24px;
        padding-top: 8px;
    }

    .service-feature:nth-of-type(even) .feature-photo {
        order: 0;
    }

    .feature-photo img {
        aspect-ratio: 1.45;
    }

    .feature-copy {
        padding: 0;
    }

    .knowhow-grid {
        gap: 35px;
    }

    .zone-grid {
        gap: 26px;
    }

    .area-list {
        gap: 8px;
    }

    .area-list li {
        padding: 10px;
        font-size: 0.81rem;
    }

    .gallery-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .gallery-card h3 {
        min-height: 0;
        padding: 20px;
    }

    .gallery-card figcaption {
        padding-inline: 20px;
    }

    .reference-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 25px 12px;
    }

    .reference-round {
        width: 125px;
        height: 125px;
    }

    .reference-button strong {
        font-size: 0.9rem;
    }

    .reference-button > span:last-child {
        font-size: 0.78rem;
    }

    .reference-panel {
        padding: 25px 20px;
        scroll-margin-top: 106px;
    }

    .reference-panel > h3 {
        font-size: 1.5rem;
    }

    .reference-photos {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .reference-photos img {
        height: auto;
        max-height: 400px;
    }

    .map-link {
        gap: 13px;
        padding: 10px;
    }

    .map-link > img {
        width: 100px;
        height: 72px;
    }

    .map-link strong {
        font-size: 0.82rem;
    }

    .contact-details {
        padding-bottom: 10px;
    }

    .contact-number {
        font-size: 1.45rem;
    }

    .contact-image {
        display: none;
    }

    .form-panel {
        scroll-margin-top: 106px;
    }

    .cta-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    .site-footer {
        padding-top: 40px;
    }

    .footer-grid {
        gap: 30px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .lightbox-toolbar {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px;
    }

    .lightbox-toolbar p {
        min-width: 140px;
        font-size: 0.8rem;
    }

    .lightbox-image img {
        height: auto;
        max-height: 70vh;
    }
}

@media (max-width: 440px) {
    .header-contact > .button {
        gap: 7px;
        padding: 10px;
        font-size: 0.78rem;
    }

    .header-contact > .button > .icon {
        width: 17px;
        height: 17px;
    }

    .hero-picture {
        height: 245px;
    }

    .hero-copy h1 {
        font-size: 1.9rem;
    }

    .sector-card {
        grid-template-columns: 36% 64%;
    }

    .sector-copy {
        padding: 19px 15px;
    }

    .sector-copy h3 {
        font-size: 1.05rem;
    }

    .sector-copy h3 > .icon {
        width: 22px;
        height: 22px;
    }

    .sector-copy p {
        font-size: 0.85rem;
    }

    .sector-copy .text-link {
        font-size: 0.78rem;
    }

    .sector-copy .text-link .icon {
        width: 15px;
        height: 15px;
    }

    .reference-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 12px;
    }

    .reference-round {
        width: 135px;
        height: 135px;
    }

    .form-panel {
        padding: 24px 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 22px;
    }

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

/* Un menu compact reste sur une ligne sur les plus petits écrans. */
@media (max-width: 360px) {
    .header-contact > .button > span {
        display: none;
    }

    .header-contact > .button {
        width: 42px;
    }
}

/* 13 — ACCESSIBILITÉ ET IMPRESSION ----------------------------------- */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 4px;
}

.site-footer a:focus-visible,
.lightbox button:focus-visible {
    outline-color: #efbfc2;
}

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

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

@media print {
    .site-header {
        position: static;
    }

    .navigation,
    .header-contact,
    .menu-toggle,
    .project-cta,
    .site-footer,
    .lightbox,
    .reference-close {
        display: none !important;
    }

    .container {
        width: 100%;
    }

    .reference-panel[hidden] {
        display: block !important;
    }

    .section {
        padding-block: 25px;
    }

    .hero-copy h1,
    .hero-copy p {
        color: black;
    }
}

/* 14 — FINITIONS : CARTES, PICTOGRAMMES ET VISUELS NUMÉROTÉS -----------
   Ces réglages gardent la composition validée. Les points de rupture
   sont regroupés à la fin pour éviter des règles mobiles contradictoires.
   ------------------------------------------------------------------ */
:root {
    --header-height: 89px;
}

html {
    scroll-padding-top: calc(var(--header-height) + 18px);
}

p, figcaption {
    hyphens: auto;
    text-align-last: start;
}

/* Empêcher un contenu long d'élargir sa colonne. */
.overview-row > *,
.service-feature > *,
.skill-card,
.sector-card,
.sector-copy,
.diagram-points > li,
.numbered-list > li {
    min-width: 0;
}

/* En-tête compact : 88 px de contenu, contre environ 110 auparavant. */
.header-inner {
    min-height: 88px;
    padding-block: 4px;
    gap: 22px;
}

.brand {
    padding-right: 26px;
}

.brand-logo {
    width: auto;
    height: 80px;
    object-fit: contain;
}

.navigation {
    gap: clamp(18px, 2.1vw, 34px);
    font-size: 0.94rem;
}

.navigation > a,
.nav-dropdown > summary {
    padding-block: 12px;
}

.header-contact {
    gap: 18px;
    padding-left: 20px;
}

.header-contact .button {
    min-height: 42px;
    padding: 10px 16px;
}

/* Cartes métiers : même hauteur d'image et boutons alignés en pied. */
.sector-grid {
    align-items: stretch;
    gap: 24px;
}

.sector-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    min-height: 0;
    border-radius: 10px;
    box-shadow: 0 5px 18px rgb(15 41 52 / 5%);
}

.sector-image {
    display: block;
    aspect-ratio: 1.6;
}

.sector-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sector-copy {
    padding: 26px;
}

.sector-copy h3 {
    margin-bottom: 18px;
    font-size: 1.3rem;
}

.sector-copy p {
    font-size: 0.98rem;
    line-height: 1.65;
}

.sector-points {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.sector-points li {
    padding: 5px 10px;
    border: 1px solid #e4dadd;
    border-radius: 4px;
    color: var(--ink);
    background: #faf7f7;
    font-size: 0.78rem;
    line-height: 1.5;
}

.sector-copy .text-link {
    min-height: 32px;
    margin-top: auto;
    font-size: 0.92rem;
}

/* Liens des rubriques de prestations. */
.section-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding-block: 22px;
    border: 0;
}

.page-prestations .section-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-tabs a,
.section-tabs a:first-child,
.section-tabs a:last-child {
    min-height: 64px;
    padding: 14px 18px;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: 0 3px 10px rgb(15 41 52 / 3%);
    font-size: 0.94rem;
    line-height: 1.45;
}

.section-tabs a:hover,
.section-tabs a:focus-visible {
    border-color: var(--red);
    color: var(--red);
    background: #faf7f7;
}

.section-tabs .icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    color: var(--red);
}

/* Pictogrammes réutilisables : étude, terrassement-VRD, préfabrication. */
.trade-picto {
    display: block;
    width: 84px;
    height: 84px;
    flex: 0 0 auto;
    object-fit: contain;
}

.trade-picto--small {
    width: 42px;
    height: 42px;
}

.trade-picto--inline {
    display: inline-block;
    width: 34px;
    height: 34px;
    vertical-align: middle;
}

.method-grid article {
    position: relative;
}

.trade-picto--method {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 48px;
    height: 48px;
}

.cross-skills {
    padding-block: 26px 46px;
}

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

.skill-card {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
    box-shadow: 0 5px 18px rgb(15 41 52 / 4%);
}

.skill-icon-shell {
    margin-bottom: 20px;
}

.skill-card h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.skill-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.97rem;
}

.knowhow-items article {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px 20px;
    align-items: start;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.knowhow-items .trade-picto {
    grid-row: 1 / span 2;
    width: 72px;
    height: 72px;
}

.knowhow-items h3,
.knowhow-items p {
    margin: 0;
}

.prefab-card > .trade-picto {
    margin-bottom: 24px;
}

.prefab-inner {
    grid-template-columns: 84px minmax(0, 1fr) auto;
}

/* Images légendées : proportions réelles, jamais rognées. */
.overview-section {
    padding-top: 8px;
}

.overview-row {
    grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    padding-block: 40px 56px;
}

.overview-row + .overview-row {
    padding-top: 56px;
}

.overview-diagram,
.feature-photo--annotated {
    margin: 0;
    padding: 10px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
    box-shadow: 0 8px 26px rgb(15 41 52 / 6%);
}

.overview-diagram img,
.feature-photo--annotated img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: contain;
    border-radius: 5px;
}

.overview-diagram figcaption,
.feature-photo--annotated figcaption {
    margin: 0;
    padding: 12px 5px 4px;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.55;
    text-align: left;
}

.annotated-zoom {
    position: relative;
    display: block;
    cursor: zoom-in;
}

.annotated-zoom-label {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 7px 11px;
    border: 1px solid rgb(255 255 255 / 55%);
    border-radius: 5px;
    color: white;
    background: rgb(15 41 52 / 94%);
    font-size: 0.78rem;
    line-height: 1.5;
    box-shadow: 0 2px 7px rgb(0 0 0 / 10%);
}

.annotated-zoom:focus-visible {
    outline-offset: 4px;
}

/* Numéros identiques à ceux des images ; les descriptions restent en HTML. */
.diagram-points,
.numbered-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0 26px;
    padding: 0;
    list-style: none;
}

.diagram-points li,
.numbered-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fbfcfb;
}

.point-number {
    display: inline-grid;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: var(--red);
    font-size: 0.77rem;
    font-weight: 700;
    line-height: 1;
}

.diagram-points p,
.numbered-list p {
    min-width: 0;
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: justify;
    hyphens: auto;
}

.diagram-points strong,
.numbered-list strong {
    display: block;
    margin-bottom: 5px;
    color: var(--ink);
    font-size: 0.92rem;
    line-height: 1.4;
    text-align: left;
}

.service-feature {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    gap: 42px;
}

.feature-copy {
    padding: 8px 0;
}

.service-feature .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.service-feature .eyebrow > .icon {
    width: 22px;
    height: 22px;
}

.service-tags li {
    border: 1px solid #e6dadd;
    background: #faf7f7;
    line-height: 1.5;
}

/* Références inchangées : vignettes rondes, uniquement dans Réalisations. */
.reference-panel {
    scroll-margin-top: 16px;
}

.reference-button:focus-visible .reference-round {
    outline: 2px solid var(--red);
    outline-offset: 4px;
}

/* Visionneuse : agrandissement réel pour lire les légendes sur téléphone. */
.lightbox-image {
    overflow: auto;
    max-height: 75dvh;
    overscroll-behavior: contain;
    touch-action: pan-x pan-y pinch-zoom;
}

.lightbox-image img {
    display: block;
    width: 100%;
    height: min(72dvh, 850px);
    object-fit: contain;
}

.lightbox.is-zoomed .lightbox-image img {
    width: max(1100px, 140%);
    max-width: none;
    height: auto;
    object-fit: initial;
}

.lightbox-toolbar button {
    min-width: 44px;
    min-height: 44px;
    line-height: 1.25;
}

.lightbox-toolbar button[aria-pressed="true"] {
    background: var(--red);
}

body.has-lightbox {
    overflow: hidden;
}

.file-field input::file-selector-button {
    margin-right: 12px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 5px;
    color: var(--ink);
    background: var(--paper);
    font: inherit;
    cursor: pointer;
}

.field input,
.field textarea {
    font-size: 16px;
}

/* Mobile/tablette : règles de finitions rassemblées au même endroit. */
@media (max-width: 1100px) and (min-width: 1021px) {
    .diagram-points,
    .numbered-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 1020px) {
    :root { --header-height: 79px; }

    .header-inner {
        min-height: 78px;
        gap: 16px;
    }

    .brand-logo { height: 70px; }

    .brand { padding-right: 0; }

    .js .navigation {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: calc(100dvh - var(--header-height));
        overflow-y: auto;
        padding: 16px 28px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border-bottom: 1px solid var(--line);
        background: var(--paper);
        box-shadow: 0 12px 20px rgb(15 41 52 / 8%);
    }

    .navigation > a,
    .nav-dropdown > summary {
        min-height: 44px;
        padding-block: 13px;
        border-top: 1px solid var(--line);
    }

    .nav-dropdown > summary { justify-content: space-between; }

    .dropdown-menu {
        position: static;
        width: 100%;
        margin-block: 4px 12px;
        box-shadow: none;
    }

    .overview-row,
    .service-feature {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .overview-row:nth-of-type(even) .overview-diagram,
    .service-feature:nth-of-type(even) .feature-photo {
        order: 0;
    }

    .sector-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .sector-copy { padding: 20px; }

    .sector-copy h3 { font-size: 1.12rem; }

    .sector-copy p { font-size: 0.94rem; }

    .skill-card-grid { gap: 16px; }

    .skill-card { padding: 22px 18px; }

    .skill-card h3 { font-size: 1.1rem; }

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

@media (max-width: 760px) {
    :root { --header-height: 71px; }

    .header-inner { min-height: 70px; gap: 10px; }

    .brand-logo { height: 62px; }

    .header-contact { padding-left: 0; border: 0; }

    .header-contact .button { min-height: 40px; padding: 9px 12px; }

    .header-phone { display: none; }

    .js .navigation { padding: 12px 18px; }

    .sector-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }

    .sector-card { grid-template-columns: minmax(0, 1fr); }

    .sector-image { aspect-ratio: 1.6; }

    .sector-image img { object-position: center; }

    .sector-copy { padding: 24px; }

    .sector-copy h3 { font-size: 1.25rem; }

    .sector-copy p { font-size: 1rem; }

    .sector-copy .text-link { min-height: 36px; font-size: 0.95rem; }

    .section-tabs,
    .page-prestations .section-tabs {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        padding-block: 18px;
    }

    .section-tabs a,
    .section-tabs a:first-child,
    .section-tabs a:last-child {
        min-height: 56px;
        padding: 12px 16px;
        font-size: 0.96rem;
    }

    .skill-card-grid { grid-template-columns: minmax(0, 1fr); }

    .skill-card {
        display: grid;
        grid-template-columns: 66px minmax(0, 1fr);
        gap: 8px 16px;
        padding: 20px;
    }

    .skill-icon-shell { grid-row: 1 / span 2; margin: 0; }

    .skill-icon-shell .trade-picto { width: 66px; height: 66px; }

    .skill-card h3 { margin: 4px 0 0; }

    .skill-card p { grid-column: 2; font-size: 0.94rem; }

    .overview-row,
    .service-feature {
        grid-template-columns: minmax(0, 1fr);
        gap: 25px;
        padding-block: 28px 36px;
    }

    .overview-row + .overview-row { padding-top: 36px; }

    .overview-diagram,
    .feature-photo--annotated { padding: 7px; }

    .diagram-points,
    .numbered-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .diagram-points li,
    .numbered-list li { padding: 16px; gap: 13px; }

    .diagram-points p,
    .numbered-list p { font-size: 0.96rem; }

    .diagram-points strong,
    .numbered-list strong { font-size: 1rem; }

    .overview-copy h2,
    .feature-copy h2 { font-size: clamp(1.7rem, 6.5vw, 2.1rem); }

    .knowhow-items article { grid-template-columns: 64px minmax(0, 1fr); gap: 8px 14px; }

    .knowhow-items .trade-picto { width: 64px; height: 64px; }

    .prefab-inner { grid-template-columns: 64px minmax(0, 1fr); gap: 18px; }

    .prefab-inner > .trade-picto { width: 64px; height: 64px; }

    .prefab-inner > .text-link { grid-column: 2; }

    .lightbox { width: 96vw; max-height: 95dvh; }

    .lightbox-image { max-height: 70dvh; }

    .lightbox-toolbar { flex-wrap: wrap; justify-content: center; gap: 8px; padding: 12px; }

    .lightbox-toolbar p { order: 2; flex-basis: 100%; font-size: 0.85rem; }
}

@media (max-width: 370px) {
    .skill-card { grid-template-columns: minmax(0, 1fr); }
    .skill-icon-shell { grid-row: auto; }
    .skill-card p { grid-column: auto; }
    .knowhow-items article { grid-template-columns: minmax(0, 1fr); }
    .knowhow-items .trade-picto { grid-row: auto; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .sector-image img,
    .gallery-photo img { transition: none; }
}

@media print {
    .site-header { position: static; }
    .annotated-zoom-label { display: none; }
    .overview-diagram,
    .feature-photo--annotated,
    .skill-card { break-inside: avoid; box-shadow: none; }
}
