/* =====================================================================
   Styles communs à toutes les pages d'appli.mbedy.dev (23/11/2026) :
   jetons, remise à zéro, conteneur, sections, boutons, en-tête et menu,
   héros et dessin au trait, prix, questions, contact, pied de page.
   Ni Crafto, ni Bootstrap. Repris tels quels de css/accueil.css, qui garde
   encore sa propre copie : l'accueil peut charger ce fichier avant
   accueil.css sans que son rendu change, puis perdre ses doublons.
   Chargé par les pages par métier (css/metier.css) et les pages légales
   (css/legal.css). Scripts : js/base.js.
   ===================================================================== */
:root {
    --fond: #FBF5EA;
    --fond-2: #F6EAD0;
    --blanc: #FFFFFF;
    --encre: #2A1B12;
    --texte: #5F5349;
    --accent: #8A5A36;
    --ligne: #E7DAC4;
    --ligne-sombre: rgba(255, 247, 234, .18);
    --titre: 'Bricolage Grotesque', system-ui, sans-serif;
    --courant: 'Instrument Sans', system-ui, sans-serif;
    --marge: clamp(24px, 5.55vw, 80px);
    --rayon: 20px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--fond);
    color: var(--texte);
    font: 400 17px/1.6 var(--courant);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--titre); color: var(--encre); letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.08; font-weight: 700; }
::selection { background: var(--fond-2); color: var(--encre); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.conteneur { width: 100%; max-width: calc(1280px + 2 * var(--marge)); margin-inline: auto; padding-inline: var(--marge); }
.section { padding-block: clamp(64px, 8vw, 112px); }
.section-tete { max-width: 720px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-tete p { margin-top: 14px; font-size: 1.12rem; max-width: 58ch; }
.fond-blanc { background: var(--blanc); }
.fond-sombre { background: var(--encre); color: rgba(255, 247, 234, .78); }
.fond-sombre h2, .fond-sombre h3 { color: #FFF7EA; }

/* ---------- boutons et liens : une seule forme ---------- */
.bouton {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 0 26px;
    border-radius: 100px; border: 1.5px solid var(--encre);
    background: var(--encre); color: #FFF7EA;
    font: 600 16px/1 var(--courant); text-decoration: none; cursor: pointer;
    transition: background-color .12s ease, color .12s ease, transform .12s ease;
}
.bouton svg { width: 18px; height: 18px; flex: none; }
.bouton.clair { background: transparent; color: var(--encre); }
.bouton.inverse { background: #FFF7EA; border-color: #FFF7EA; color: var(--encre); }
.bouton.contour-clair { background: transparent; border-color: var(--ligne-sombre); color: #FFF7EA; }
.bouton.petit { min-height: 44px; padding: 0 20px; font-size: 15px; }
.bouton.large { width: 100%; }
.bouton:active { transform: scale(.985); }
.lien {
    color: var(--encre); font-weight: 600; text-decoration: none;
    background: linear-gradient(currentColor, currentColor) left bottom / 100% 1.5px no-repeat;
    padding-bottom: 3px;
}
@media (hover: hover) and (pointer: fine) {
    .bouton:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-1px); transition-duration: .15s; }
    .bouton.clair:hover { background: var(--encre); border-color: var(--encre); color: #FFF7EA; }
    .bouton.inverse:hover { background: var(--fond-2); border-color: var(--fond-2); color: var(--encre); }
    .bouton.contour-clair:hover { background: #FFF7EA; border-color: #FFF7EA; color: var(--encre); }
    .lien { background-size: 100% 1.5px; transition: background-size .15s ease; }
    .lien:hover { background-size: 0 1.5px; background-position: right bottom; }
}

/* ---------- en-tête ---------- */
.entete {
    position: sticky; top: 0; z-index: 20;
    background: rgba(251, 245, 234, .88);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}
.entete.colle { border-bottom-color: var(--ligne); }
.entete .conteneur { display: flex; align-items: center; gap: 32px; height: 72px; }
.logo { font: 800 28px/1 var(--titre); letter-spacing: -1px; color: var(--encre); text-decoration: none; display: inline-flex; align-items: baseline; }
.logo .point { color: #C9A27A; }
.logo .mot { font-size: 20px; font-weight: 700; letter-spacing: -.5px; margin-left: 6px; }
.menu { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.menu a:not(.bouton) { font-weight: 500; font-size: 16px; color: var(--encre); text-decoration: none; padding: 12px 0; opacity: .78; transition: opacity .12s ease; }
.menu a:not(.bouton):hover { opacity: 1; }
.menu .bouton { margin-left: 4px; }
.menu-bouton { display: none; }
@media (max-width: 860px) {
    .entete .conteneur { height: 64px; }
    /* sans script : les liens passent à la ligne sous le logo */
    .no-js .entete .conteneur { height: auto; flex-wrap: wrap; gap: 0 20px; padding-block: 8px; }
    .no-js .menu { flex-wrap: wrap; gap: 0 20px; width: 100%; margin-left: 0; }
    /* avec script : un bouton, et le menu en panneau sous l'en-tête */
    .js .menu-bouton {
        all: unset; box-sizing: border-box; cursor: pointer;
        display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
        width: 48px; height: 48px; margin-left: auto; margin-right: -10px; border-radius: 50%;
    }
    .js .menu-bouton:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
    .menu-bouton span { display: block; width: 24px; height: 2px; border-radius: 2px; background: var(--encre); transition: transform .2s ease; }
    .entete.ouvert .menu-bouton span:first-child { transform: translateY(4.5px) rotate(45deg); }
    .entete.ouvert .menu-bouton span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
    .js .entete.ouvert { background: var(--fond); border-bottom-color: transparent; }
    .js .menu {
        position: absolute; top: 100%; left: 0; right: 0; margin: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 4px var(--marge) 28px;
        background: var(--fond); border-bottom: 1px solid var(--ligne);
        box-shadow: 0 34px 40px -34px rgba(42, 27, 18, .45);
        max-height: calc(100vh - 64px); overflow-y: auto;
        visibility: hidden; opacity: 0; transform: translateY(-8px);
        transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
    }
    .js .entete.ouvert .menu { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
    .js .menu a:not(.bouton) { padding: 17px 0; font: 600 1.25rem/1.2 var(--titre); letter-spacing: -.01em; opacity: 1; border-bottom: 1px solid var(--ligne); }
    .js .menu .bouton { margin: 22px 0 0; min-height: 52px; font-size: 16px; }
}

/* ---------- héros : le texte à gauche, le dessin à droite ---------- */
.heros { padding-block: clamp(28px, 4vw, 56px) clamp(48px, 6vw, 88px); }
.heros .conteneur { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.heros h1 { font-size: clamp(2.5rem, 5vw, 4.4rem); line-height: 1; font-weight: 600; letter-spacing: -.035em; }
.heros h1 b { font-weight: 800; color: var(--accent); white-space: nowrap; }
.heros-texte > p { margin-top: 24px; font-size: clamp(1.06rem, 1.4vw, 1.25rem); line-height: 1.55; max-width: 54ch; }
.heros-texte > p b { color: var(--encre); font-weight: 600; }
.heros-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.heros-dessin { width: 100%; max-width: 480px; justify-self: end; }
@media (prefers-reduced-motion: no-preference) {
    .heros h1, .heros-texte > p, .heros-actions, .heros-dessin { animation: entree .7s cubic-bezier(.2, .7, .2, 1) both; }
    .heros-texte > p { animation-delay: .15s; }
    .heros-actions { animation-delay: .3s; }
    .heros-dessin { animation-delay: .2s; }
}
@keyframes entree { from { opacity: 0; transform: translateY(18px); } }

/* le dessin (css/trait.css) : le téléphone reste dans le cadre, à toutes les largeurs */
#scene-hero { --trait-rayon: 24px; }
#scene-hero .trait-app { right: 5%; bottom: 5%; width: 41%; }
#scene-hero .trait-app .trait-ecran { border-radius: 20px; border-width: 5px; }
#scene-hero .trait-nom { left: 6%; bottom: 6%; max-width: 46%; font-family: var(--courant); }
#scene-hero .trait-nom b { font-family: var(--titre); font-size: clamp(17px, 1.6vw, 22px); }
#scene-hero .trait-nom small { display: block; font-size: 14px; line-height: 1.3; opacity: .88; margin-top: 3px; }
@media (max-width: 760px) {
    .heros .conteneur { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .heros-dessin { max-width: 520px; justify-self: start; }
    .bouton { min-height: 48px; }
}
@media (max-width: 560px) {
    #scene-hero { --trait-ratio: 1 / 1; --trait-rayon: 20px; }
    #scene-hero .trait-app { width: 39%; bottom: 4.5%; }
    #scene-hero .trait-app .trait-ecran { border-radius: 16px; border-width: 4px; }
    .heros .conteneur { gap: 24px; }
    .heros { padding-top: 20px; }
    .heros h1 { font-size: 2.3rem; }
    .heros-texte > p { margin-top: 16px; font-size: 1rem; }
    .heros-actions { margin-top: 22px; }
}

/* ---------- prix ---------- */
.prix-socle { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--fond); color: var(--texte); border-radius: var(--rayon); overflow: hidden; }
.prix-socle > div { padding: clamp(28px, 4vw, 56px); }
.prix-socle-tete { display: flex; flex-direction: column; align-items: flex-start; }
.prix-socle h3, .prix-option h3 { font-size: 1.5rem; line-height: 1.2; font-weight: 700; }
.prix-socle h3 { color: var(--encre); }
.montant { font: 800 clamp(3.2rem, 6vw, 5rem)/1 var(--titre); letter-spacing: -.04em; color: var(--encre); margin: 14px 0 6px; }
.montant small { font-size: .32em; font-weight: 600; letter-spacing: 0; color: var(--texte); margin-left: 4px; }
.prix-socle-tete .quand { font-weight: 500; }
.prix-socle-inclus { background: var(--blanc); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 28px; }
.prix-socle-inclus p { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--encre); max-width: 44ch; }
.prix-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.prix-option { border: 1px solid var(--ligne-sombre); border-radius: var(--rayon); padding: clamp(28px, 3.4vw, 44px); display: flex; flex-direction: column; align-items: flex-start; }
.prix-option .montant { color: #FFF7EA; font-size: clamp(2.2rem, 3.6vw, 3rem); }
.prix-option .montant small { color: rgba(255, 247, 234, .7); font-size: .4em; }
.prix-option ul { width: 100%; margin: 18px 0 30px; }
.prix-option li { position: relative; padding: 11px 0 11px 22px; border-top: 1px solid var(--ligne-sombre); color: #FFF7EA; line-height: 1.45; font-size: 16px; }
.prix-option li::before { content: ""; position: absolute; left: 2px; top: 21px; width: 7px; height: 7px; border-radius: 50%; background: #C9A27A; }
.prix-option li.non { color: rgba(255, 247, 234, .62); }
.prix-option li.non::before { background: transparent; border: 1.5px solid rgba(255, 247, 234, .5); }
.prix-option .bouton { margin-top: auto; }
@media (max-width: 900px) {
    .prix-socle, .prix-options { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- questions : réponses ouvertes, deux colonnes ---------- */
.questions { columns: 2; column-gap: clamp(32px, 5vw, 80px); }
.questions > div { break-inside: avoid; border-top: 1px solid var(--ligne); padding: 22px 0 26px; }
.questions h3 { font-size: 1.22rem; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; margin-bottom: 8px; }
@media (max-width: 800px) { .questions { columns: 1; } }

/* ---------- contact ---------- */
#contact { padding-top: 0; }
.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: var(--rayon); overflow: hidden; border: 1px solid var(--ligne); }
.contact > div { padding: clamp(28px, 5vw, 72px); }
.contact-direct { background: var(--blanc); }
.contact-direct p { margin: 14px 0 30px; max-width: 46ch; }
.contact-direct .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-form { background: var(--encre); color: rgba(255, 247, 234, .7); }
.contact-form h2 { color: #FFF7EA; }
.contact h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }
.contact-form form { margin-top: 22px; display: grid; gap: 18px; }
.contact-form label { display: grid; gap: 8px; font-weight: 500; font-size: 15px; color: #FFF7EA; }
.contact-form input, .contact-form textarea {
    width: 100%; font: 400 17px/1.4 var(--courant); color: #FFF7EA;
    background: rgba(255, 247, 234, .06); border: 1px solid var(--ligne-sombre); border-radius: 12px; padding: 14px 16px;
    transition: border-color .12s ease;
}
.contact-form textarea { resize: vertical; min-height: 104px; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255, 247, 234, .45); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: #FFF7EA; }
.contact-form small { font-size: 14px; line-height: 1.5; }
@media (max-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .contact-direct .actions .bouton { width: 100%; } }

/* ---------- pied de page ---------- */
.pied { padding-block: 0 40px; }
.pied .conteneur > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-bottom: 24px; border-bottom: 1px solid var(--ligne); }
.pied nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.pied nav a { font-weight: 600; font-size: 15px; color: var(--encre); text-decoration: none; padding: 10px 0; }
.pied nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pied p { margin-top: 20px; font-size: 14px; line-height: 1.6; }
@media (prefers-reduced-motion: reduce) {
    .menu, .menu-bouton span, .bouton { transition: none !important; }
}
