/* 1. Polices locales et réglages de l'identité. */
@font-face {
    font-family: Archivo;
    src: url('../fonts/Archivo.ttf');
    font-weight: 200 800;
    font-display: swap
}

@font-face {
    font-family: 'Public Sans';
    src: url('../fonts/PublicSans.ttf');
    font-weight: 100 1000;
    font-display: swap
}

:root {
    --navy: #153748;
    --ink: #1b3541;
    --muted: #526974;
    --copper: #ad502b;
    --light: #f1f5f5;
    --line: #d2dfe1;
    --head: Archivo, Arial, sans-serif;
    --body: 'Public Sans', Arial, sans-serif;
    --gutter: clamp(22px, 5vw, 76px)
}

* {
    box-sizing: border-box
}

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

body {
    margin: 0;
    color: var(--ink);
    background: white;
    font: 16px/1.65 var(--body)
}

h1,
h2,
h3,
p,
figure {
    margin: 0
}

h1,
h2,
h3 {
    font-family: var(--head);
    line-height: 1.13;
    letter-spacing: -.045em
}

h1 {
    font-size: clamp(45px, 5.2vw, 78px);
    font-weight: 750
}

h2 {
    font-size: clamp(32px, 3.5vw, 52px);
    font-weight: 720
}

h3 {
    font-size: 25px;
    font-weight: 700
}

em {
    font-style: normal;
    color: var(--copper)
}

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

button,
input,
select,
textarea {
    font: inherit
}

button {
    cursor: pointer
}

img {
    width: 100%;
    display: block;
    object-fit: cover
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid #d58549;
    outline-offset: 5px
}

.wrap {
    width: min(1440px, 100%);
    padding-inline: var(--gutter);
    margin-inline: auto
}

.section {
    padding-block: 95px
}

.eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    margin-bottom: 22px
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 24px;
    border: 1px solid var(--copper);
    background: var(--copper);
    color: white;
    font-weight: 650;
    font-size: 14px;
    border-radius: 5px;
    transition: background .2s, transform .2s
}

.button:hover {
    background: #893c1d;
    transform: translateY(-2px)
}

.button.small {
    min-height: 44px;
    padding: 10px 18px;
    font-size: 12px
}

.text-link {
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid;
    padding-bottom: 5px
}

.note {
    font-size: 12px;
    line-height: 1.65
}

.skip {
    position: absolute;
    top: -100px;
    background: white;
    padding: 16px;
    z-index: 10
}

.skip:focus {
    top: 0
}

.demo {
    text-align: center;
    background: var(--light);
    color: var(--muted);
    font-size: 9px;
    letter-spacing: .1em;
    padding: 8px 20px
}

/* 2. Navigation et accueil. */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding-block: 24px
}

.brand {
    font: 750 23px/1.2 var(--head);
    letter-spacing: -.04em
}

.brand span {
    display: block;
    font: 10px/1.5 var(--body);
    letter-spacing: .11em;
    margin-top: 8px
}

.header nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 13px
}

.header nav>a:not(.button):hover {
    color: var(--copper)
}

.menu-toggle {
    display: none;
    background: white;
    color: var(--navy);
    border: 1px solid var(--line);
    padding: 10px 14px;
    border-radius: 4px
}

.hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    background: var(--navy);
    color: white;
    max-width: 1600px;
    margin: auto
}

.hero-copy {
    padding: 75px var(--gutter)
}

.hero .eyebrow {
    color: #bcd7df
}

.hero h1 em {
    color: #edb186
}

.hero-copy>p:not(.eyebrow) {
    margin-top: 28px;
    max-width: 480px;
    color: #d3e2e6;
    font-size: 17px
}

.actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 34px
}

.hero-tags {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    border-top: 1px solid #54717e;
    margin-top: 42px;
    padding-top: 22px;
    font-size: 12px;
    color: #d3e2e6
}

.hero-image {
    position: relative;
    min-height: 600px;
    overflow: hidden
}

.hero-image img {
    height: 100%;
    position: absolute;
    inset: 0;
    object-position: 50% 50%
}

.hero-image:after {
    content: '';
    position: absolute;
    inset: 50% 0 0;
    background: linear-gradient(transparent, #071f2bbd)
}

.hero-image figcaption {
    position: absolute;
    z-index: 1;
    bottom: 35px;
    left: 35px;
    right: 25px;
    font: 650 22px/1.4 var(--head);
    letter-spacing: -.02em
}

.principles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    padding-block: 32px;
    border-bottom: 1px solid var(--line)
}

.principles p {
    font-size: 13px;
    color: var(--muted)
}

.principles strong {
    display: block;
    font: 750 17px var(--head);
    color: var(--ink);
    margin-bottom: 8px
}

/* 3. Prestations, projet et méthode. */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 40px;
    margin-bottom: 42px
}

.section-head>p {
    max-width: 330px;
    color: var(--muted);
    font-size: 14px
}

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

.service {
    padding: 36px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--light)
}

.service-number {
    display: block;
    color: var(--copper);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    margin-bottom: 22px
}

.service h3 {
    margin-bottom: 18px
}

.service p {
    color: var(--muted);
    font-size: 15px;
    max-width: 470px
}

.service ul {
    font-size: 13px;
    padding-left: 18px;
    margin: 24px 0;
    line-height: 1.9
}

.service a {
    display: inline-block;
    font-weight: 650;
    font-size: 14px;
    border-bottom: 1px solid var(--copper);
    padding-bottom: 5px
}

.service a:hover {
    color: var(--copper)
}

.project {
    background: var(--light)
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 7vw
}

.project figure {
    overflow: hidden;
    border-radius: 8px
}

.project img {
    height: 530px
}

.project figcaption {
    font-size: 10px;
    padding: 12px 0;
    color: var(--muted)
}

.project-grid>div>p:not(.eyebrow) {
    margin-top: 25px;
    color: var(--muted);
    max-width: 450px
}

.project .button {
    margin-top: 30px
}

.steps {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 45px
}

.steps li {
    border-top: 2px solid var(--line);
    padding-top: 22px
}

.steps span {
    display: block;
    color: var(--copper);
    font: 750 32px var(--head);
    margin-bottom: 20px
}

.steps h3 {
    font-size: 23px;
    margin-bottom: 15px
}

.steps p {
    font-size: 14px;
    color: var(--muted)
}

.area {
    background: var(--navy);
    color: white;
    padding-block: 65px
}

.area-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 8vw;
    align-items: center
}

.area h2 {
    font-size: clamp(30px, 3vw, 43px)
}

.area .eyebrow {
    color: #bcd7df
}

.area-grid>div>p:not(.eyebrow) {
    color: #d3e2e6
}

.area .note {
    margin-block: 20px
}

.area .text-link {
    display: inline-block;
    margin-top: 5px
}

/* 4. Demande locale : ni réseau, ni données persistées. */
.quote {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 8vw
}

.quote>div>p:not(.eyebrow) {
    color: var(--muted);
    margin-top: 26px;
    max-width: 380px
}

.demo-note {
    background: var(--light);
    border-left: 3px solid var(--copper);
    padding: 20px;
    margin-top: 30px;
    font-size: 13px;
    max-width: 400px
}

.demo-note p {
    margin-top: 10px;
    color: var(--muted)
}

.quote form {
    border: 1px solid var(--line);
    padding: 32px;
    border-radius: 8px
}

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

.form-row>div {
    min-width: 0
}

label {
    display: block;
    font-weight: 650;
    font-size: 12px;
    margin: 18px 0 8px
}

select,
input,
textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border: 1px solid #9db2bd;
    border-radius: 4px;
    padding: 12px;
    background: white;
    color: var(--ink);
    font-size: 16px
}

select,
input {
    height: 52px
}

select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23153748' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 8px
}

textarea {
    resize: vertical
}

.quote form .note {
    color: var(--muted);
    margin-top: 14px
}

.quote form .button {
    width: 100%;
    margin-top: 24px
}

.result {
    font-size: 14px;
    margin-top: 20px
}

.result:empty {
    display: none
}

.faq {
    padding-top: 0
}

.faq h2 {
    margin-bottom: 30px
}

.faq details {
    border-top: 1px solid var(--line);
    padding: 22px 0
}

.faq details:last-child {
    border-bottom: 1px solid var(--line)
}

summary {
    cursor: pointer
}

.faq summary {
    font: 650 17px var(--head);
    line-height: 1.5
}

.faq details p {
    color: var(--muted);
    font-size: 14px;
    max-width: 800px;
    margin-top: 18px
}

/* 5. Pied de page et mouvements accessibles. */
footer {
    background: var(--navy);
    color: white;
    padding-block: 45px 25px
}

.footer-top {
    display: flex;
    align-items: center;
    gap: 35px;
    font-size: 13px
}

.footer-top .brand {
    margin-right: auto
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding-top: 24px;
    margin-top: 35px;
    border-top: 1px solid #476575;
    font-size: 10px;
    color: #d3e2e6
}

.footer-bottom details {
    max-width: 470px
}

.footer-bottom details p {
    margin-top: 15px
}

.footer-bottom a {
    text-decoration: underline
}

.reveal {
    opacity: 1
}

.motion .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .5s, transform .5s
}

.motion .reveal.visible {
    opacity: 1;
    transform: none
}

/* 6. Adaptation tablette et téléphone. */
@media(max-width:1100px) {
    .header nav {
        gap: 16px;
        font-size: 12px
    }

    .brand {
        font-size: 20px
    }

    .hero-copy {
        padding: 55px 32px
    }

    .hero h1 {
        font-size: 55px
    }

    .hero-image {
        min-height: 560px
    }

    .section {
        padding-block: 75px
    }

    .quote {
        gap: 40px
    }

    .quote form {
        padding: 24px
    }

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

    .service {
        padding: 28px
    }
}

@media(max-width:820px) {
    .header {
        flex-wrap: wrap
    }

    .menu-toggle {
        display: block
    }

    .header nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        border-top: 1px solid var(--line);
        padding-top: 15px;
        gap: 4px
    }

    .header nav.open {
        display: flex
    }

    .header nav a {
        padding: 12px
    }

    .hero {
        grid-template-columns: 1fr
    }

    .hero-copy {
        padding: 42px var(--gutter)
    }

    .hero h1 {
        font-size: clamp(43px, 8vw, 62px)
    }

    .hero-image {
        min-height: 380px
    }

    .hero-copy>p:not(.eyebrow) {
        max-width: 560px
    }

    .principles {
        gap: 20px
    }

    .section-head {
        display: block
    }

    .section-head>p {
        margin-top: 24px;
        max-width: 500px
    }

    .project-grid {
        gap: 35px
    }

    .project img {
        height: 460px
    }

    .project h2 {
        font-size: 34px
    }

    .steps {
        gap: 25px
    }

    .area-grid,
    .quote {
        grid-template-columns: 1fr;
        gap: 30px
    }

    .quote>div>p:not(.eyebrow) {
        max-width: 560px
    }

    .demo-note {
        max-width: none
    }

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

    .footer-top {
        flex-wrap: wrap;
        gap: 22px
    }

    .footer-top .brand {
        flex-basis: 100%
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px
    }

    .faq {
        padding-top: 0
    }
}

@media(max-width:540px) {
    .header {
        gap: 14px;
        padding-block: 19px
    }

    .brand {
        font-size: 20px
    }

    .brand span {
        font-size: 8px
    }

    .demo {
        font-size: 8px
    }

    .hero h1 {
        font-size: 43px
    }

    .hero-copy>p:not(.eyebrow) {
        font-size: 16px
    }

    .hero-tags {
        gap: 18px;
        margin-top: 30px
    }

    .actions {
        gap: 20px
    }

    .hero-image {
        min-height: 320px
    }

    .hero-image figcaption {
        left: 22px;
        bottom: 25px;
        font-size: 20px
    }

    .principles {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-block: 26px
    }

    .principles p {
        border-left: 2px solid var(--line);
        padding-left: 15px
    }

    .section {
        padding-block: 58px
    }

    .service-grid,
    .project-grid,
    .steps {
        grid-template-columns: 1fr
    }

    .service {
        padding: 26px
    }

    .project img {
        height: 390px
    }

    .steps {
        gap: 28px
    }

    .area {
        padding-block: 50px
    }

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

    .quote form {
        padding: 22px
    }

    .faq {
        padding-top: 0
    }

    .faq summary {
        font-size: 16px
    }
}

@media(forced-colors:active) {
    select {
        appearance: auto;
        background-image: none
    }
}

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

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

    .motion .reveal {
        opacity: 1;
        transform: none
    }
}

/* 7. Navigation utilitaire : accès directs aux besoins, sans mouvement décoratif. */
.header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    padding-bottom: 0;
}

.header .brand {
    grid-column: 1;
}

.header nav {
    grid-column: 1/-1;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr) 1.25fr;
    gap: 0;
    background: var(--navy);
    color: white;
}

.header nav>a {
    padding: 20px 24px;
    border-right: 1px solid #ffffff30;
    text-align: center;
    font-size: 14px;
}

.header nav>a:not(.button):hover {
    background: #244e61;
    color: white;
}

.header nav .button {
    border-radius: 0;
    margin: 0;
    background: var(--copper);
}

.motion .reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

.button:hover {
    transform: none;
}

.service-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid var(--line);
}

.service {
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    padding: 35px;
}

.service:nth-child(odd) {
    border-right: 1px solid var(--line);
}

@media(max-width:820px) {
    .header {
        display: grid;
        grid-template-columns: 1fr auto;
    }

    .header .menu-toggle {
        display: none;
    }

    .header nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding: 0;
        border: 0;
    }

    .header nav>a {
        min-height: 52px;
        padding: 16px 10px;
        font-size: 12px;
        border-bottom: 1px solid #ffffff30;
    }
}

@media(max-width:540px) {
    .service-grid {
        grid-template-columns: 1fr;
    }

    .service {
        padding: 28px 0;
    }

    .service:nth-child(odd) {
        border-right: 0;
    }
}

/* 8. Le devis occupe intégralement sa case dans le menu. */
.header nav {
    align-items: stretch;
}

.header nav>a.button {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #b52f2e;
    color: #fff;
    border: 0;
    margin: 0;
    border-radius: 0;
    height: 100%;
    min-height: 54px;
}

.header nav>a.button:hover {
    background: #942321;
    color: #fff;
}

.header nav>a.button:focus-visible {
    background: #942321;
    color: #fff;
    outline: 3px solid #fff;
    outline-offset: -6px;
}