* {
    box-sizing: border-box;
}

:root {
    --ink: #14251d;
    --green: #1d6a47;
    --sand: #f5f3ec;
    --gold: #e0a526;
    --line: #d9d6c8;
    --navy: #14284b;
}

body {
    margin: 0;
    font: 17px/1.65 'Public Sans', system-ui, sans-serif;
    color: var(--ink);
    background: var(--sand);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

header,
footer {
    flex: none;
}

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

a {
    color: inherit;
}

h1,
h2,
h3 {
    font-family: 'Bricolage Grotesque', system-ui, sans-serif;
    line-height: 1.1;
    margin: 0 0 .5em;
}

h1 {
    font-size: clamp(2.3rem, 6vw, 4.2rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

h3 {
    font-size: 1.15rem;
}

.wrap {
    max-width: 1120px;
    margin: auto;
    padding: 0 20px;
}

header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 5;
    transition: box-shadow .3s ease;
}

header.scrolled {
    box-shadow: 0 8px 24px -14px rgba(20, 37, 29, .4);
}

.bar {
    display: flex;
    align-items: center;
    gap: 10px 26px;
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
}

.logo {
    height: 52px;
    width: auto;
}

nav {
    display: flex;
    gap: 4px 22px;
    flex-wrap: wrap;
    align-items: center;
    margin-left: auto;
}

nav a:not(.btn) {
    position: relative;
    text-decoration: none;
    padding: 6px 0;
}

nav a:not(.btn)::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
    will-change: transform;
}

nav a.on::after,
nav a:not(.btn):hover::after {
    transform: scaleX(1);
}

.btn {
    display: inline-block;
    background-color: var(--green);
    color: #fff;
    padding: 12px 22px;
    border: 0;
    border-radius: 4px;
    font: 600 1rem 'Public Sans', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .25s, color .25s, transform .25s, box-shadow .25s;
    will-change: transform;
}

.btn:hover {
    background-color: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(20, 37, 29, .55);
}

.btn.gold {
    background-color: var(--gold);
    color: var(--ink);
}

.btn.gold:hover {
    background-color: #fff;
}

.btn.ghost {
    background-color: transparent;
    border: 2px solid #fff;
    padding: 10px 20px;
}

.btn.ghost:hover {
    background-color: #fff;
    color: var(--ink);
}

.btn.gold::after {
    content: '\2192';
    display: inline-block;
    margin-left: 10px;
    transition: transform .25s ease;
}

.btn.gold:hover::after {
    transform: translateX(5px);
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    padding: clamp(80px, 15vw, 170px) 0;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(12, 38, 26, .93), rgba(12, 38, 26, .5));
}

.hero p {
    max-width: 34em;
    font-size: 1.15rem;
    margin: 0 0 1.6em;
}

.ph {
    background: var(--green);
    color: #fff;
    padding: 56px 0;
}

.ph h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
}

.ph p {
    max-width: 36em;
    margin: 0;
}

section {
    padding: 64px 0;
}

.alt {
    background: #fff;
}

.tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tile {
    display: block;
    text-decoration: none;
    transition: transform .3s ease;
    will-change: transform;
}

.tile img {
    display: block;
    aspect-ratio: 3/2;
    object-fit: cover;
    width: 100%;
    transition: transform .5s ease;
    will-change: transform;
}

.thumb {
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 12px;
}

.tile:hover .thumb img {
    transform: scale(1.05);
}

.tile h3 {
    display: inline;
    background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 3px no-repeat;
    transition: background-size .35s ease;
}

.tile:hover h3 {
    background-size: 100% 3px;
}

.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.two.top {
    align-items: start;
}

.two img {
    border-radius: 4px;
    box-shadow: 0 20px 32px -20px rgba(20, 37, 29, .35);
}

.rows>div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 28px 0;
    border-top: 1px solid var(--line);
}

.rows>div:nth-child(even)>img {
    order: 2;
}

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

.logos {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.logos img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    background: #fff;
    padding: 8px;
    border-radius: 4px;
    transition: transform .3s ease, box-shadow .3s ease;
    will-change: transform;
}

.logos img:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -12px rgba(20, 37, 29, .35);
}

.cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(12, 38, 26, .9), rgba(12, 38, 26, .9)), url(images/images-illustration/construction-site-285645_1280.webp) center/cover;
    color: #fff;
    text-align: center;
}

.cta h2 {
    margin-bottom: 1em;
}

.scroll {
    overflow-x: auto;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 16px 30px -22px rgba(20, 37, 29, .3);
}

table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
}

th {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--green);
}

tbody tr:last-child td {
    border-bottom: 0;
}

td:first-child {
    font: 800 1.15rem 'Bricolage Grotesque', system-ui, sans-serif;
    color: var(--green);
}

.vis {
    margin: 0;
    padding-left: 1.2em;
    max-width: 40em;
}

.vis li {
    margin-bottom: .6em;
}

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

.team img {
    aspect-ratio: 4/5;
    object-fit: cover;
    width: 100%;
    border-radius: 4px;
    margin-bottom: 10px;
}

.team figure {
    margin: 0;
}

form {
    display: grid;
    gap: 14px;
    padding: 28px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 16px 30px -22px rgba(20, 37, 29, .3);
}

label {
    display: grid;
    gap: 4px;
    font-weight: 600;
}

input,
textarea {
    font: inherit;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(29, 106, 71, .18);
}

.legal {
    max-width: 760px;
}

.legal h2 {
    font-size: 1.3rem;
    margin-top: 1.6em;
}

footer {
    background: var(--navy);
    color: #e8e6dc;
    padding: 48px 0;
    font-size: .95rem;
}

footer strong {
    display: block;
    margin-bottom: .7em;
    color: #fff;
    font-family: 'Bricolage Grotesque', system-ui, sans-serif;
    font-size: 1.05rem;
}

footer p {
    margin: 0 0 .8em;
}

footer a {
    text-decoration: none;
    background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat;
    transition: background-size .3s ease, color .2s ease;
}

footer a:hover {
    background-size: 100% 1px;
    color: #fff;
}

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

/* ---------- Animations et effets ---------- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

.progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    z-index: 10;
    pointer-events: none;
    will-change: transform;
}

.cta .wrap {
    position: relative;
}

.hero .wrap > * {
    animation: rise .8s cubic-bezier(.2, .7, .2, 1) backwards;
}

.hero .wrap > :nth-child(2) { animation-delay: .1s; }
.hero .wrap > :nth-child(3) { animation-delay: .2s; }
.hero .wrap > :nth-child(4) { animation-delay: .28s; }

.reveal {
    opacity: 0;
    will-change: opacity, transform;
}

.reveal.in {
    opacity: 1;
    animation: rise .6s cubic-bezier(.2, .7, .2, 1) backwards;
}

.tile.in:hover {
    transform: translateY(-4px);
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes kenburns {
    from {
        transform: scale(1.08);
    }
    to {
        transform: scale(1);
    }
}

/* ---------- Slider d'accueil ---------- */
.hero-slides {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
    will-change: opacity;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

.slide.active {
    opacity: 1;
}

.slide.active img {
    animation: kenburns 7s ease-out both;
}

/* ---------- Bandeau de chiffres ---------- */
.stats {
    padding: 36px 0;
    background: var(--navy);
    color: #fff;
}

.stats .wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.stat svg {
    width: 46px;
    height: 46px;
    flex: none;
    fill: none;
    stroke: var(--gold);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stat strong {
    display: block;
    font: 800 2.5rem/1 'Bricolage Grotesque', system-ui, sans-serif;
}

.stat span {
    display: block;
    margin-top: 4px;
    font-size: .85rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* ---------- Header & Contact ---------- */
.bar > .btn {
    white-space: nowrap;
}

.head-contact {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 24px;
    border-left: 1px solid var(--line);
    font-size: .84rem;
    line-height: 1.35;
}

.head-contact a {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    text-decoration: none;
    transition: color .2s ease;
}

.head-contact a:hover {
    color: var(--green);
}

.head-contact svg {
    width: 15px;
    height: 15px;
    flex: none;
    color: var(--gold);
}

/* ---------- Slider : commandes ---------- */
.hero-ctrl {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 28px;
}

.hero-ctrl .wrap {
    display: flex;
    align-items: center;
    gap: 18px;
}

.hero-count {
    font: 600 .85rem 'Bricolage Grotesque', system-ui, sans-serif;
    letter-spacing: .1em;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dots button {
    position: relative;
    width: 48px;
    height: 20px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.hero-dots button::before,
.hero-dots button::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 8px;
    height: 3px;
}

.hero-dots button::before {
    background: rgba(255, 255, 255, .35);
}

.hero-dots button::after {
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    will-change: transform;
}

.hero-dots button[aria-current="true"]::after {
    transform: scaleX(1);
}

.hero.playing .hero-dots button[aria-current="true"]::after {
    animation: fill 6s linear both;
}

.hero.paused .hero-dots button[aria-current="true"]::after {
    animation-play-state: paused;
}

.hero-pause {
    margin-left: auto;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: background-color .25s, color .25s;
}

.hero-pause:hover {
    background-color: #fff;
    color: var(--ink);
}

.hero.paused .ic-pause,
.hero:not(.paused) .ic-play {
    display: none;
}

@keyframes fill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* ---------- Finitions ---------- */
::selection {
    background: var(--gold);
    color: var(--ink);
}

section h2::before {
    content: '';
    display: block;
    width: 44px;
    height: 3px;
    margin-bottom: 14px;
    background: var(--gold);
    transform-origin: left;
    will-change: transform;
}

.cta h2::before {
    margin-left: auto;
    margin-right: auto;
    transform-origin: center;
}

.legal h2::before {
    display: none;
}

h2.in::before {
    animation: grow .8s .2s cubic-bezier(.2, .7, .2, 1) backwards;
}

@keyframes grow {
    from { transform: scaleX(0); }
}

.ph .wrap > * {
    animation: rise .7s cubic-bezier(.2, .7, .2, 1) backwards;
}

.ph .wrap > :nth-child(2) { animation-delay: .1s; }

tbody tr {
    transition: background-color .2s ease;
}

tbody tr:hover {
    background-color: var(--sand);
}

.lang-select {
    font: 600 0.85rem 'Public Sans', sans-serif;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 7px 10px;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
    outline: none;
}

.lang-select:hover,
.lang-select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 2px rgba(29, 106, 71, .15);
}

/* ---------- Media Queries ---------- */
@media (max-width: 1040px) {
    .head-contact {
        order: 2;
        margin-left: auto;
        padding-left: 0;
        border-left: 0;
    }
    .bar > .btn { order: 3; }
    .lang-select { order: 3; }
    nav {
        order: 4;
        flex-basis: 100%;
        margin-left: 0;
    }
}

@media (max-width: 900px) {
    .logos { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 800px) {
    header { position: static; }
    .tiles, .team { grid-template-columns: 1fr 1fr; }
    .two, .rows>div, .foot { grid-template-columns: 1fr; }
    .rows>div:nth-child(even)>img { order: 0; }
    section { padding: 44px 0; }
    .stats .wrap {
        grid-template-columns: 1fr 1fr;
        row-gap: 32px;
    }
}

@media (max-width: 600px) {
    .bar > .btn {
        order: 2;
        margin-left: auto;
        padding: 10px 16px;
    }
    .head-contact {
        order: 3;
        flex-basis: 100%;
        flex-direction: row;
        justify-content: space-between;
        font-size: .8rem;
    }
}

@media (max-width: 480px) {
    .tiles, .team { grid-template-columns: 1fr; }
    .logos { grid-template-columns: repeat(2, 1fr); }
    .stat { gap: 10px; }
    .stat svg { width: 36px; height: 36px; }
    .stat strong { font-size: 1.9rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; }
    .slide { transition: opacity 1s ease !important; }
}