/***************************************************************
Variables
***************************************************************/

:root {
    /* Palette principale */
    --ink: #203d4a;
    --muted: #54646a;
    --paper: #fbf7f0;
    --cream: #f2e8da;
    --blue: #dfe9ec;
    --peach: #f2ddd2;
    --green: #dde7dc;
    --line: #d8cbbb;
    --white: #fffdfa;

    /* Couleurs fonctionnelles */
    --shadow: 0 18px 55px rgba(36,61,70,.10);
    --radius: 18px;
    --focus: #bd6f50;
    --accent: #315867;
    --eyebrow: #52676e;
    --body-copy: #3f5259;
    --ink-hover: #315767;
    --ink-soft: #315e70;
    --hero-side: #e9e1d7;
    --prefooter-background: #536f75;
    --footer-background: #1f3946;
    --footer-text: #e2e8e8;
    --footer-text-muted: #cdd6d6;
    --footer-subtitle: #d9dfdf;
    --input-border: #bcc9cd;
    --placeholder: #839197;
    --legal-pending: #875f36;
    --step-number-background: #bdd3dc;
    --leisure-image-fallback: #55716f;

    /* Transparences, bordures et ombres */
    --white-alpha-18: rgba(255,255,255,.18);
    --white-alpha-75: rgba(255,253,250,.75);
    --white-alpha-96: rgba(255,253,250,.96);
    --paper-alpha-18: rgba(251,247,240,.18);
    --paper-alpha-58: rgba(251,247,240,.58);
    --paper-alpha-78: rgba(251,247,240,.78);
    --paper-alpha-90: rgba(251,247,240,.9);
    --paper-alpha-96: rgba(251,247,240,.96);
    --ink-alpha-08: rgba(32,61,74,.08);
    --ink-alpha-11: rgba(32,61,74,.11);
    --ink-alpha-18: rgba(38,67,80,.18);
    --line-alpha-38: rgba(216,203,187,.38);
    --line-alpha-55: rgba(216,203,187,.55);
    --shadow-alpha-light: rgba(51,47,40,.055);
    --shadow-alpha-soft: rgba(51,47,40,.07);
    --shadow-alpha-card: rgba(42,52,54,.14);
    --shadow-alpha-menu: rgba(0,0,0,.1);
    --prefooter-overlay-start: rgba(31,58,70,.64);
    --prefooter-overlay-middle: rgba(31,58,70,.16);
    --prefooter-overlay-end: rgba(31,58,70,.08);
    --image-overlay: rgba(22,47,58,.55);
    --image-prefooter: url('../img/ambiance/footer-band.jpg');
    --image-garden: url('../img/a-propos/jardin-potager.webp');
    --image-naya: url('../img/a-propos/naya-about.webp');
    --image-cake: url('../img/a-propos/gateau-fraises.webp');
    --hero-height: 400px;
}

/***************************************************************
Styles généraux
***************************************************************/

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.58;
}

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

a {
    color: inherit;
    text-underline-offset: 3px;
}

button, a {
    touch-action: manipulation;
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 4px;
    border-radius: 5px;
}

.container {
    width: min(1180px,calc(100% - 48px));
    margin-inline: auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

h1, h2, h3, .brand strong {
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.08;
    margin-top: 0;
}

p {
    margin-top: 0;
}

.eyebrow {
    margin: 0 0 11px;
    color: var(--eyebrow);
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
}

h2 {
    margin-bottom: 14px;
    font-size: var(--heading-2-size,clamp(1.8rem,3vw,2.35rem));
    letter-spacing: -.025em;
}

h3 {
    margin-bottom: 7px;
    font-size: var(--heading-3-size,1.15rem);
}

.script {
    color: var(--accent);
    font-family: "Segoe Script", "Bradley Hand", cursive;
    font-style: normal;
    font-weight: 400;
    letter-spacing: -.035em;
    line-height: 1.18;
    transform: rotate(-3deg);
}

.icon {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/***************************************************************
Boutons et liens
***************************************************************/

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: var(--button-height,45px);
    padding: var(--button-padding,9px 20px);
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    font-size: .95rem;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, color .15s, transform .15s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--ink);
    color: var(--white);
    border-color: var(--ink);
}

.btn-primary:hover {
    background: var(--ink-hover);
}

.btn-secondary {
    background: var(--white-alpha-75);
}

.btn-secondary:hover {
    background: var(--white);
}

.text-link {
    font-size: .92rem;
    font-weight: 750;
}

.arrow {
    font-size: 1.1em;
}

/***************************************************************
En-tête et navigation
***************************************************************/

.site-header {
    height: 78px;
    display: flex;
    align-items: center;
    background: var(--paper-alpha-96);
    border-bottom: 1px solid var(--ink-alpha-08);
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
}

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

.brand {
    text-decoration: none;
    line-height: 1.1;
    white-space: nowrap;
}

.brand strong {
    display: block;
    font-size: 1.38rem;
}

.brand span {
    font-size: .78rem;
    color: var(--muted);
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav a {
    font-size: .91rem;
    font-weight: 650;
    text-decoration: none;
}

.nav .btn {
    min-height: 42px;
    padding: 8px 21px;
    color: var(--white);
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 10px;
    color: var(--ink);
    font-size: 1.75rem;
}

.nav a:not(.btn):hover, .nav a[aria-current="page"] {
    text-decoration: underline;
}

/***************************************************************
Hero commun aux pages
***************************************************************/

.hero {
    padding: 0;
    background: linear-gradient(105deg,var(--paper) 0 48%,var(--hero-side) 48%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 40% 60%;
    min-height: var(--hero-height);
    align-items: stretch;
}

.hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-right: -96px;
    padding: var(--hero-copy-padding,18px 22px 18px 0);
}

.hero h1 {
    max-width: var(--hero-title-width,700px);
    margin-bottom: var(--hero-title-margin,16px);
    font-size: var(--hero-title-size,clamp(2.75rem,3.8vw,3.75rem));
    letter-spacing: -.045em;
}

.hero-title-main {
    display: block;
    font-size: var(--hero-main-scale,1em);
    line-height: var(--hero-main-line-height,1.08);
}

.hero h1 .script {
    display: block;
    margin-top: var(--hero-script-margin,5px);
    font-size: var(--hero-script-scale,.66em);
    line-height: var(--hero-script-line-height,1.2);
}

.intro {
    max-width: var(--hero-intro-width,590px);
    margin-bottom: var(--hero-intro-margin,20px);
    color: var(--body-copy);
    font-size: var(--hero-intro-size,1rem);
    line-height: var(--hero-intro-line-height,1.58);
}

.intro strong {
    color: var(--ink);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.round-icon {
    display: grid;
    flex: none;
    width: 34px;
    height: 34px;
    color: var(--ink);
    background: var(--blue);
    border-radius: 50%;
    place-items: center;
}

.round-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.8;
}

.hero-notes {
    display: flex;
    gap: 38px;
    margin-top: 16px;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 650;
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-note .round-icon {
    width: 30px;
    height: 30px;
}

.hero-media {
    position: relative;
    min-height: var(--hero-height);
    overflow: hidden;
}

.hero-media img {
    position: absolute;
    inset: 0;
    object-position: center 52%;
}

.hero-media:before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0 auto 0 0;
    width: 42%;
    background: linear-gradient(90deg,var(--paper) 0%,var(--paper) 20%,var(--paper-alpha-90) 43%,var(--paper-alpha-58) 67%,var(--paper-alpha-18) 88%,transparent 100%);
    pointer-events: none;
}

.page-home {
    --section-padding: 86px 0;
    --button-height: 48px;
    --button-padding: 11px 22px;
    --heading-2-size: clamp(2rem,4vw,3.15rem);
    --heading-3-size: 1.35rem;
    --hero-copy-padding: 12px 0;
    --hero-title-size: clamp(2.6rem,3.5vw,3.55rem);
    --hero-title-margin: 12px;
    --hero-main-scale: .84em;
    --hero-main-line-height: 1.02;
    --hero-script-scale: .68em;
    --hero-intro-width: 610px;
    --hero-intro-margin: 15px;
    --hero-intro-line-height: 1.45;
    --hero-tablet-title-size: clamp(2.6rem,8vw,3.55rem);
    --hero-mobile-title-size: 2.4rem;
}

.page-services {
    --section-padding: 86px 0;
    --button-height: 48px;
    --button-padding: 11px 22px;
    --heading-2-size: clamp(2rem,4vw,3.15rem);
    --heading-3-size: 1.35rem;
    --hero-title-size: clamp(2.55rem,3.5vw,3.45rem);
    --hero-script-scale: .72em;
    --hero-intro-width: 540px;
    --hero-intro-margin: 21px;
    --hero-mobile-title-size: 2.55rem;
}

.page-realisations {
    --button-height: 48px;
    --button-padding: 11px 22px;
    --hero-title-size: clamp(2.7rem,3.7vw,3.7rem);
    --hero-title-width: 680px;
    --hero-script-scale: .7em;
    --hero-script-line-height: 1.18;
    --hero-intro-width: 575px;
    --hero-intro-margin: 0;
}

.page-about {
    --hero-script-scale: .66em;
    --hero-intro-width: 590px;
}

.page-contact {
    --heading-2-size: clamp(1.75rem,3vw,2.25rem);
    --hero-copy-padding: 12px 22px 12px 0;
    --hero-title-size: clamp(2.5rem,3.4vw,3.35rem);
    --hero-title-margin: 10px;
    --hero-script-scale: .62em;
    --hero-intro-margin: 14px;
    --hero-intro-line-height: 1.45;
}

@media (min-width: 961px) {
    .hero-grid {
        height: var(--hero-height);
        min-height: 0;
    }

    .hero-media {
        min-height: 0;
    }
}

main > section {
    padding: var(--section-padding,0);
}

/***************************************************************
Préfooter
***************************************************************/

.final-cta {
    padding: 0;
    background: var(--prefooter-background) var(--image-prefooter) center 68%/cover no-repeat;
    min-height: 190px;
    position: relative;
    display: flex;
    align-items: center;
}

.final-cta:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,var(--prefooter-overlay-start),var(--prefooter-overlay-middle) 65%,var(--prefooter-overlay-end));
}

.cta-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 70px;
}

.cta-place {
    color: var(--white);
    text-align: center;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.cta-place .script {
    font-size: 2rem;
    color: var(--white);
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 15px;
}

.cta-card {
    min-width: 390px;
    padding: 20px 27px;
    background: var(--white-alpha-96);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.cta-card h2 {
    margin-bottom: 5px;
    font-size: 1.45rem;
}

.cta-card p {
    margin-bottom: 13px;
    color: var(--muted);
    font-size: .94rem;
}

/***************************************************************
Footer
***************************************************************/

.site-footer {
    background: var(--footer-background);
    color: var(--paper);
    padding: 42px 0 22px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1.15fr .7fr;
    gap: 72px;
}

.footer-brand {
    font: 700 1.45rem Georgia, serif;
    margin-bottom: 2px;
}

.footer-sub {
    font-size: .78rem;
    color: var(--footer-subtitle);
}

.site-footer p, .site-footer a {
    font-size: .86rem;
    color: var(--footer-text);
}

.footer-title {
    font-weight: 800;
    font-size: .88rem;
    margin-bottom: 12px;
}

.footer-script {
    font-size: 1.6rem;
    color: var(--white);
    text-align: center;
    align-self: center;
}

.footer-bottom {
    border-top: 1px solid var(--white-alpha-18);
    margin-top: 40px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    font-size: .76rem;
    color: var(--footer-text-muted);
}

.footer-bottom div:last-child {
    display: flex;
    gap: 20px;
}

.footer-bottom a {
    font-size: inherit;
}

/***************************************************************
Éléments utilitaires
***************************************************************/

.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.footer-description {
    margin-top: 18px;
}

/***************************************************************
Pages légales
***************************************************************/

.legal-main {
    padding: clamp(64px,8vw,112px) 0;
    background: var(--paper);
}

.legal-layout {
    max-width: 860px;
}

.legal-heading {
    margin-bottom: 48px;
}

.legal-heading h1 {
    margin: 8px 0 16px;
    font-size: clamp(2.5rem,6vw,4.7rem);
}

.legal-notice {
    margin-top: 28px;
    padding: 18px 20px;
    border-left: 3px solid var(--accent);
    background: var(--cream);
}

.legal-section {
    padding: 30px 0;
    border-top: 1px solid var(--ink-alpha-18);
}

.legal-section h2 {
    margin-bottom: 12px;
    font-size: clamp(1.45rem,3vw,2rem);
}

.legal-section p {
    max-width: 72ch;
}

.legal-section a,
.legal-pending {
    overflow-wrap: anywhere;
}

.legal-pending {
    color: var(--legal-pending);
    font-style: italic;
}

/***************************************************************
Responsive commun
***************************************************************/

@media (max-width: 960px) {
    .container, .hero .container {
        width: min(100% - 34px,720px);
    }

    .site-header {
        height: 68px;
    }

    .menu-toggle {
        display: block;
    }

    .nav {
        position: absolute;
        top: 68px;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
        background: var(--paper);
        box-shadow: 0 12px 24px var(--shadow-alpha-menu);
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        text-align: center;
    }

    .hero {
        background: var(--paper);
    }

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

    .hero-copy {
        margin-right: 0;
        padding: 48px 0 38px;
    }

    .hero h1 {
        font-size: var(--hero-tablet-title-size,clamp(2.8rem,10vw,4rem));
    }

    .hero-media {
        order: 2;
        width: 100vw;
        height: clamp(215px,56.25vw,405px);
        min-height: 0;
        aspect-ratio: auto;
        margin-inline: calc(50% - 50vw);
    }

    .hero-media:before {
        inset: 0 0 auto;
        width: 100%;
        height: 22%;
        background: linear-gradient(180deg,var(--paper) 0%,var(--paper-alpha-78) 45%,transparent 100%);
    }

    .cta-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 48px 0;
    }

    .cta-card {
        min-width: 0;
    }

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

    .footer-script {
        display: none;
    }
}

@media (max-width: 640px) {
    .container, .hero .container {
        width: calc(100% - 28px);
    }

    .page-home, .page-services {
        --section-padding: 64px 0;
    }

    .brand strong {
        font-size: 1.12rem;
    }

    .brand span {
        font-size: .7rem;
    }

    .hero-copy {
        padding-top: 40px;
    }

    .hero h1 {
        font-size: var(--hero-mobile-title-size,2.65rem);
    }

    .intro {
        font-size: 1rem;
    }

    .actions {
        flex-direction: column;
    }

    .actions .btn {
        width: 100%;
    }

    .cta-place .script {
        font-size: 1.55rem;
    }

    .cta-card {
        padding: 24px 20px;
    }

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

    .footer-bottom {
        flex-direction: column;
    }

    .footer-bottom div:last-child {
        flex-direction: column;
        gap: 5px;
    }
}

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

    .btn {
        transition: none;
    }
}
