/* 1. Polices locales et identité. */
@font-face {
    font-family: Sora;
    src: url('../fonts/Sora[wght].ttf');
    font-weight: 100 800;
    font-display: swap
}

@font-face {
    font-family: Lato;
    src: url('../fonts/Lato-Regular.ttf');
    font-weight: 400;
    font-display: swap
}

@font-face {
    font-family: Lato;
    src: url('../fonts/Lato-Bold.ttf');
    font-weight: 700;
    font-display: swap
}

:root {
    --ink: #173c50;
    --blue: #176284;
    --sky: #eaf6fc;
    --yellow: #f8dc78;
    --line: #bbd4df;
    --muted: #476170;
    --gutter: clamp(22px, 5vw, 76px)
}

* {
    box-sizing: border-box
}

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

body {
    margin: 0;
    background: #fff;
    color: var(--ink);
    font: 17px/1.65 Lato, Arial, sans-serif
}

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

h1,
h2,
h3,
h4 {
    font-family: Sora, Arial, sans-serif;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.045em
}

h1 {
    font-size: clamp(44px, 6.4vw, 88px)
}

h2 {
    font-size: clamp(32px, 3.5vw, 48px)
}

h3 {
    font-size: 28px
}

h4 {
    font-size: 21px
}

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

button,
input,
select {
    font: inherit
}

button {
    cursor: pointer
}

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

[hidden] {
    display: none !important
}

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

.section {
    padding-block: 90px
}

.eyebrow {
    font: 700 11px/1.5 Lato, Arial, sans-serif;
    letter-spacing: .15em;
    margin-bottom: 20px
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 15px 26px;
    border: 2px solid var(--ink);
    border-radius: 9px;
    background: var(--ink);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    transition: background .2s
}

.button:hover {
    background: #2d5c72
}

.button.compact {
    min-height: 46px;
    padding: 10px 18px;
    font-size: 13px
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #926400;
    outline-offset: 5px
}

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

.skip:focus {
    top: 0
}

.demo {
    background: var(--ink);
    color: #fff;
    text-align: center;
    padding: 7px 20px;
    font-size: 10px
}

.brand {
    font: 700 27px/1 Sora, Arial, sans-serif;
    letter-spacing: -.055em;
    white-space: nowrap
}

.brand span {
    color: #397fa1
}

.brand small {
    display: block;
    font: 700 8px/1.5 Lato, Arial, sans-serif;
    letter-spacing: .12em;
    margin-top: 10px
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-block: 25px
}

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

.header nav>a:not(.button):hover {
    text-decoration: underline
}

/* 2. Accueil centré, photographie en bande et étiquette graphique. */
.hero {
    background: var(--sky);
    padding: 65px 0 0
}

.hero-top {
    text-align: center
}

.hero h1 span {
    color: var(--blue)
}

.hero .intro {
    max-width: 610px;
    margin: 25px auto 28px;
    font-size: 18px;
    color: var(--muted)
}

.photo-band {
    position: relative;
    margin-top: 45px;
    padding-bottom: 36px
}

.photo-band figure {
    position: relative
}

.photo-band img {
    height: 360px;
    object-position: center 48%;
    border-radius: 12px
}

.photo-band figcaption {
    font-size: 9px;
    padding-top: 8px;
    color: var(--muted)
}

.photo-label {
    position: absolute;
    right: calc(var(--gutter) + 25px);
    bottom: 65px;
    padding: 25px 30px;
    background: var(--yellow);
    transform: rotate(3deg);
    border-radius: 4px;
    box-shadow: 0 8px 20px #173c501c
}

.photo-label>span {
    font-size: 12px
}

.photo-label strong {
    display: block;
    font: 600 23px/1.3 Sora, Arial, sans-serif;
    margin: 8px 0 18px;
    letter-spacing: -.04em
}

.photo-label a {
    font-size: 13px;
    font-weight: 700;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 3px
}

.section-intro {
    max-width: 740px;
    margin-bottom: 38px
}

.section-intro>p:last-child {
    margin-top: 18px;
    color: var(--muted)
}

/* 3. Deux univers de prestations, navigation par onglets accessible. */
.audience-tabs {
    display: flex;
    border-bottom: 2px solid var(--ink);
    gap: 8px
}

.audience-tabs button {
    flex: 1;
    padding: 22px 15px;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
    background: white;
    color: var(--ink);
    font-family: Sora, Arial, sans-serif;
    font-weight: 600;
    font-size: 18px
}

.audience-tabs button[aria-selected=true] {
    background: var(--ink);
    color: white;
    border-color: var(--ink)
}

.service-panel {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 65px;
    padding: 48px;
    background: var(--sky);
    border-radius: 0 0 14px 14px
}

.panel-heading h3 {
    margin: 25px 0 20px;
    font-size: 32px
}

.panel-heading p {
    font-size: 16px;
    color: var(--muted)
}

.pill {
    display: inline-block;
    background: var(--yellow);
    padding: 7px 12px;
    border-radius: 5px;
    font-size: 10px;
    letter-spacing: .12em;
    font-weight: 700
}

.service-list article {
    border-top: 1px solid #a8c5d3;
    padding: 22px 0
}

.service-list article:first-child {
    border-top: 0;
    padding-top: 0
}

.service-list article:last-child {
    padding-bottom: 0
}

.service-list p {
    margin: 13px 0;
    font-size: 15px;
    color: var(--muted)
}

.service-list a {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    border-bottom: 1px solid var(--blue);
    padding-bottom: 3px
}

.method {
    background: #fff6d8;
    padding-block: 65px
}

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

.method li {
    counter-increment: method;
    padding-left: 42px;
    position: relative
}

.method li:before {
    content: counter(method);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    border: 1px solid var(--ink);
    border-radius: 50%;
    text-align: center;
    font-weight: 700;
    font-size: 14px
}

.method strong {
    font-family: Sora, Arial, sans-serif;
    font-size: 18px
}

.method p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 15px
}

/* 4. Devis guidé : une étape visible, actions stables. */
.quote {
    max-width: 1100px
}

.quote .section-intro {
    margin-inline: auto;
    text-align: center
}

.quote form {
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 35px #173c5008
}

.progress {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
    padding: 0;
    list-style: none;
    background: #f1f6f8;
    counter-reset: progress
}

.progress li {
    counter-increment: progress;
    padding: 20px 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #4a6472;
    border-bottom: 4px solid transparent
}

.progress li:before {
    content: counter(progress)'. ';
}

.progress li[aria-current=step] {
    color: var(--ink);
    background: var(--yellow);
    border-color: var(--ink)
}

.wizard-body {
    padding: 40px;
    max-width: 760px;
    margin: auto
}

.step h3 {
    font-size: 27px;
    margin-bottom: 25px;
    outline: none
}

label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    margin: 22px 0 8px
}

select {
    display: block;
    width: 100%;
    height: 54px;
    min-width: 0;
    border: 1px solid #8daebb;
    border-radius: 7px;
    color: var(--ink);
    background-color: white;
    padding: 12px 45px 12px 14px;
    font-size: 16px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23173c50' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center
}

.hint {
    font-size: 12px;
    color: var(--muted);
    margin-top: 8px
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 30px
}

.wizard-actions .next:first-of-type {
    margin-left: auto
}

.back,
.restart {
    background: transparent;
    border: 0;
    text-decoration: underline;
    color: var(--ink);
    padding: 12px 0;
    font-size: 14px
}

.next {
    margin-left: auto
}

.notice {
    font-size: 13px;
    background: var(--sky);
    padding: 18px;
    border-radius: 8px
}

#summary {
    margin: 0 0 25px
}

#summary>div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--line);
    padding: 12px 0
}

dt {
    font-size: 13px;
    color: var(--muted)
}

dd {
    margin: 0;
    font-weight: 700;
    font-size: 14px;
    text-align: right
}

#quote-result:not(:empty) {
    background: #edf6ee;
    border-left: 4px solid #3b6d48;
    padding: 20px;
    margin-top: 25px;
    font-size: 15px
}

.step.entering {
    animation: step-enter .25s ease-out
}

@keyframes step-enter {
    from {
        opacity: 0;
        transform: translateY(6px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

/* 5. Contact et informations pratiques. */
.contact {
    background: var(--ink);
    color: white;
    padding-block: 65px
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center
}

.contact p {
    max-width: 460px;
    margin-top: 20px;
    font-size: 15px;
    color: #d2e5ee
}

.contact select {
    border-color: white
}

.contact .button {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--ink);
    margin-top: 22px
}

.contact .button:hover {
    background: #ffeaa3
}

.contact [role=status] {
    font-size: 14px
}

.faq {
    max-width: 1100px
}

.faq h2 {
    margin-bottom: 30px
}

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

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

summary {
    cursor: pointer;
    font-weight: 700
}

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

footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 35px;
    padding-block: 45px;
    border-top: 1px solid var(--line)
}

footer>p {
    font-size: 15px
}

footer>div {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 13px
}

footer small {
    grid-column: 1/-1;
    font-size: 10px;
    color: var(--muted)
}

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

    .brand {
        font-size: 24px
    }

    .brand small {
        font-size: 7px
    }

    .service-panel {
        padding: 32px;
        gap: 35px
    }

    .panel-heading h3 {
        font-size: 27px
    }

    .contact-inner {
        gap: 40px
    }

    .method ol {
        gap: 25px
    }
}

@media(max-width:760px) {
    .header {
        flex-wrap: wrap;
        justify-content: center;
        gap: 22px
    }

    .header nav {
        width: 100%;
        justify-content: center;
        font-size: 13px;
        gap: 20px
    }

    .hero {
        padding-top: 45px
    }

    .hero .intro {
        font-size: 17px
    }

    .photo-band img {
        height: 320px;
        object-position: 65% center
    }

    .photo-label {
        right: calc(var(--gutter) + 14px);
        bottom: 58px;
        padding: 18px;
    }

    .photo-label strong {
        font-size: 20px
    }

    .section {
        padding-block: 60px
    }

    .service-panel {
        grid-template-columns: 1fr;
        gap: 30px
    }

    .panel-heading {
        max-width: 580px
    }

    .audience-tabs button {
        font-size: 15px;
        padding: 18px 10px
    }

    .method {
        padding-block: 50px
    }

    .method ol {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px
    }

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 25px
    }

    .wizard-body {
        padding: 28px
    }

    .progress li {
        font-size: 12px
    }

    .contact {
        padding-block: 50px
    }

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

    footer>div {
        grid-column: 1/-1;
        flex-direction: row;
        gap: 25px
    }
}

@media(max-width:480px) {
    .header nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        text-align: center;
        gap: 12px
    }

    .header nav .button {
        grid-column: 1/-1;
    }

    .header nav>a {
        padding: 8px
    }

    .hero h1 {
        font-size: 43px
    }

    .hero-top .eyebrow {
        font-size: 9px
    }

    .hero .intro {
        font-size: 16px
    }

    .photo-band {
        padding-bottom: 28px;
        margin-top: 32px
    }

    .photo-band img {
        height: 290px
    }

    .photo-label {
        position: relative;
        right: auto;
        bottom: auto;
        margin: -38px 15px 0 auto;
        width: 220px;
        padding: 18px;
        transform: rotate(2deg)
    }

    .photo-band figcaption {
        max-width: 70%;
        font-size: 8px;
        padding-top: 10px
    }

    .photo-label strong {
        font-size: 20px
    }

    .service-panel {
        padding: 26px 22px
    }

    .audience-tabs button {
        font-size: 13px
    }

    .panel-heading h3 {
        font-size: 26px
    }

    .wizard-body {
        padding: 24px 20px
    }

    .step h3 {
        font-size: 23px
    }

    .progress li {
        font-size: 11px;
        padding: 16px 5px
    }

    .progress li:before {
        display: block
    }

    .wizard-actions .button {
        padding: 13px 17px;
        font-size: 14px
    }

    #summary>div {
        display: block
    }

    dd {
        text-align: left;
        margin-top: 3px
    }

    .contact h2 {
        font-size: 33px
    }

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

    footer>div {
        flex-wrap: wrap;
        gap: 15px
    }
}

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

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

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