/* soulk.ml — feuille unique, sans compilation */

@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument"; src: url("../fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
    --fond: #F6F1E9;
    --fond-2: #EDE4D6;
    --carte: #FFFDF9;
    --encre: #1B1A17;
    --encre-2: #57524A;
    --trait: #DDD3C3;
    --terre: #B6481F;       /* terre cuite : accent principal */
    --terre-fonce: #8F3615;
    --petrole: #1E4D5C;     /* bleu pétrole : accent secondaire */
    --sombre: #17222A;
    --sombre-texte: #E9E4DB;
    --wa: #1F8F4E;
    --ok: #1F7A45;
    --erreur: #B42318;
    --rayon: 14px;
    --ombre: 0 1px 2px rgba(27, 26, 23, .06), 0 8px 24px rgba(27, 26, 23, .06);
}

@media (prefers-color-scheme: dark) {
    :root {
        --fond: #141311;
        --fond-2: #1D1B18;
        --carte: #1F1D1A;
        --encre: #F1ECE3;
        --encre-2: #B5AEA2;
        --trait: #34302A;
        --terre: #E07A4F;
        --terre-fonce: #F09A72;
        --petrole: #7CB8C7;
        --sombre: #0E1519;
        --ombre: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0; background: var(--fond); color: var(--encre);
    font: 400 17px/1.6 "Instrument", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terre); text-underline-offset: 3px; }
h1, h2, h3 { font-family: "Bricolage", "Instrument", sans-serif; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); font-weight: 750; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 650; }
p { margin: 0 0 1em; }

.cadre { width: min(1160px, 100% - 32px); margin-inline: auto; }
.evitement { position: absolute; left: -999px; }
.evitement:focus { left: 16px; top: 16px; z-index: 99; background: var(--carte); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--petrole); outline-offset: 3px; border-radius: 4px; }

.surtitre { font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--terre); margin-bottom: .9em; }
.surtitre a { color: inherit; }
.intro { font-size: 1.12rem; color: var(--encre-2); max-width: 62ch; }

/* Boutons */
.bouton {
    display: inline-flex; align-items: center; gap: .5em; justify-content: center;
    min-height: 50px; padding: .7em 1.4em; border-radius: 999px; border: 2px solid var(--terre);
    background: var(--terre); color: #fff; font: 600 1rem/1 "Instrument", sans-serif;
    text-decoration: none; cursor: pointer; transition: transform .15s, background .15s;
}
.bouton:hover { transform: translateY(-1px); background: var(--terre-fonce); border-color: var(--terre-fonce); }
.bouton--wa { background: var(--wa); border-color: var(--wa); }
.bouton--wa:hover { background: #17733e; border-color: #17733e; }
.bouton--contour { background: transparent; color: var(--encre); border-color: var(--encre); }
.bouton--contour:hover { background: var(--encre); color: var(--fond); border-color: var(--encre); }
.bouton--petit { min-height: 40px; padding: .5em 1.1em; font-size: .92rem; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--fond) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--trait); }
.entete__ligne { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.marque { font: 800 1.5rem/1 "Bricolage", sans-serif; color: var(--encre); text-decoration: none; letter-spacing: -.03em; }
.marque span { color: var(--terre); }
.menu { display: flex; gap: 22px; margin-left: auto; }
.menu a { color: var(--encre); text-decoration: none; font-weight: 500; }
.menu a:hover { color: var(--terre); }
.menu a[aria-current="page"] { color: var(--terre); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.menu-mobile { display: none; }
@media (max-width: 860px) {
    .menu { display: none; }
    .entete .bouton { margin-left: auto; }
    .menu-mobile { display: flex; gap: 18px; overflow-x: auto; padding: 0 16px 10px; scrollbar-width: none; }
    .menu-mobile a { color: var(--encre); text-decoration: none; font-weight: 500; font-size: .95rem; white-space: nowrap; }
}

/* Accroche */
.accroche { padding: clamp(40px, 7vw, 88px) 0 48px; }
.accroche__grille { display: grid; grid-template-columns: 1.35fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.chapeau { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--encre-2); max-width: 54ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.portrait { margin: 0; position: relative; }
.portrait img, .portrait__vide { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px 28px 28px 120px; }
.portrait__vide {
    display: grid; place-items: center; color: #fff;
    font: 800 clamp(4rem, 9vw, 7rem)/1 "Bricolage", sans-serif; letter-spacing: -.04em;
    background:
        radial-gradient(circle at 78% 18%, rgba(255, 255, 255, .16) 0 18%, transparent 19%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 10px, transparent 10px 22px),
        linear-gradient(160deg, var(--terre), #6E2A10);
}
.portrait figcaption { position: absolute; left: 16px; bottom: 16px; background: var(--carte); color: var(--encre); padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; box-shadow: var(--ombre); }
@media (max-width: 820px) {
    .accroche__grille { grid-template-columns: 1fr; }
    .portrait { max-width: 320px; order: -1; }
}

.atouts { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--trait); }
.atouts li { padding: 20px 20px 0 0; display: flex; flex-direction: column; gap: 4px; }
.atouts li + li { padding-left: 20px; border-left: 1px solid var(--trait); }
.atouts strong { font: 700 1.15rem/1.2 "Bricolage", sans-serif; }
.atouts li:first-child strong { font-size: 2.2rem; color: var(--terre); }
.atouts span { color: var(--encre-2); font-size: .95rem; }
@media (max-width: 820px) {
    .atouts { grid-template-columns: 1fr 1fr; }
    .atouts li, .atouts li + li { padding: 16px 12px 16px 0; border-left: 0; border-bottom: 1px solid var(--trait); }
}

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--sable { background: var(--fond-2); }
.section--sombre { background: var(--sombre); color: var(--sombre-texte); }
.section--sombre .surtitre { color: #F09A72; }

/* Projets */
.projets { display: grid; gap: clamp(48px, 7vw, 88px); margin-top: 48px; }
.projet { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.projet:nth-child(even) .projet__visuel { order: 2; }
.projet__visuel { border-radius: var(--rayon); overflow: hidden; background: var(--carte); box-shadow: var(--ombre); border: 1px solid var(--trait); }
.navigateur { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--trait); background: var(--fond-2); }
.navigateur span { width: 10px; height: 10px; border-radius: 50%; background: var(--trait); }
.navigateur em { font-style: normal; font-size: .8rem; color: var(--encre-2); margin-left: 10px; background: var(--carte); padding: 2px 12px; border-radius: 999px; }
.projet__categorie { font-size: .85rem; font-weight: 600; color: var(--petrole); text-transform: uppercase; letter-spacing: .06em; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.statut { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); padding: 2px 10px; border-radius: 999px; }
.projet h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.projet dl { margin: 0 0 18px; }
.projet dt { font-weight: 700; font-size: .92rem; margin-top: 12px; }
.projet dd { margin: 2px 0 0; color: var(--encre-2); }
.lien-fleche { font-weight: 600; text-decoration: none; }
.lien-fleche:hover { text-decoration: underline; }
@media (max-width: 820px) {
    .projet { grid-template-columns: 1fr; }
    .projet:nth-child(even) .projet__visuel { order: 0; }
}

.etiquettes { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.etiquettes li { font-size: .82rem; font-weight: 500; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--trait); color: var(--encre-2); }
.etiquettes--claires { margin-top: 40px; }
.etiquettes--claires li { border-color: rgba(233, 228, 219, .22); color: var(--sombre-texte); }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 40px; background: rgba(233, 228, 219, .14); border: 1px solid rgba(233, 228, 219, .14); border-radius: var(--rayon); overflow: hidden; }
.service { background: var(--sombre); padding: 28px 24px; }
.service__num { font: 700 .9rem/1 "Bricolage", sans-serif; color: #F09A72; }
.service h3 { margin-top: 18px; }
.service p { color: rgba(233, 228, 219, .75); margin: 0; }
@media (max-width: 960px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

/* Pourquoi moi */
.pourquoi { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.points { list-style: none; padding: 0; margin: 0; counter-reset: p; display: grid; gap: 16px; }
.points li { counter-increment: p; background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 22px 22px 18px 72px; position: relative; }
.points li::before { content: counter(p); position: absolute; left: 22px; top: 20px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--terre); color: #fff; font: 700 1rem/1 "Bricolage", sans-serif; }
.points h3 { margin-bottom: .3em; }
.points p { margin: 0; color: var(--encre-2); }
@media (max-width: 820px) { .pourquoi { grid-template-columns: 1fr; } }

/* Parcours */
.parcours { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 64px); margin-top: 40px; align-items: start; }
.frise { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--trait); }
.frise li { position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 0 0 28px 24px; }
.frise li::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--petrole); }
.frise li:first-child::before { background: var(--terre); box-shadow: 0 0 0 4px color-mix(in srgb, var(--terre) 25%, transparent); }
.frise__quand { font-size: .85rem; font-weight: 600; color: var(--encre-2); padding-top: 2px; }
.frise h3 { margin-bottom: .25em; }
.frise p { color: var(--encre-2); margin: 0; }
.encarts { display: grid; gap: 16px; }
.encart { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 22px; }
.encart h3 { font-size: 1.05rem; margin-bottom: .4em; }
.encart p { color: var(--encre-2); }
.encart p:last-child { margin: 0; }
.formations { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.formations li { display: grid; grid-template-columns: 48px 1fr; color: var(--encre-2); font-size: .95rem; }
.formations span { font-weight: 700; color: var(--terre); }
.formations em { font-style: normal; opacity: .8; }
@media (max-width: 820px) {
    .parcours { grid-template-columns: 1fr; }
    .frise li { grid-template-columns: 1fr; gap: 2px; }
}

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.coordonnees { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.coordonnees li { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--trait); }
.coordonnees span { color: var(--encre-2); font-size: .92rem; }
.coordonnees a { font-weight: 600; color: var(--encre); text-decoration: none; overflow-wrap: anywhere; }
.coordonnees a:hover { color: var(--terre); }
.formulaire { background: var(--carte); border: 1px solid var(--trait); border-radius: 20px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--ombre); display: grid; gap: 6px; }
.formulaire label { font-weight: 600; font-size: .95rem; margin-top: 10px; }
.formulaire input, .formulaire select, .formulaire textarea {
    width: 100%; font: inherit; color: var(--encre); background: var(--fond);
    border: 1.5px solid var(--trait); border-radius: 10px; padding: 12px 14px; min-height: 48px;
}
.formulaire textarea { resize: vertical; }
.formulaire input:focus, .formulaire select:focus, .formulaire textarea:focus { outline: none; border-color: var(--petrole); box-shadow: 0 0 0 3px color-mix(in srgb, var(--petrole) 25%, transparent); }
.formulaire [aria-invalid="true"] { border-color: var(--erreur); }
.formulaire .bouton { margin-top: 18px; width: 100%; }
.erreur { color: var(--erreur); font-size: .88rem; }
.alerte { padding: 12px 14px; border-radius: 10px; font-weight: 500; margin: 0 0 6px; }
.alerte--ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.alerte--erreur { background: color-mix(in srgb, var(--erreur) 12%, transparent); color: var(--erreur); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }

/* Pages intérieures */
.accroche--page { padding-bottom: 8px; }
.accroche--page h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); max-width: 22ch; }
.section--courte { padding: clamp(40px, 6vw, 72px) 0; }
.titre-page { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.sous-titre { font-size: 1.4rem; margin: 40px 0 16px; }
.etroit { max-width: 440px; }
.note { color: var(--encre-2); font-size: .95rem; margin-top: 20px; }
.session { background: var(--carte); border: 1px solid var(--trait); border-left: 4px solid var(--terre); border-radius: 10px; padding: 12px 16px; max-width: 62ch; }
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 820px) { .deux-colonnes { grid-template-columns: 1fr; } }

.bandeau-offre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; background: var(--carte); border: 1px solid var(--trait); border-radius: 20px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--ombre); }
.bandeau-offre > div:first-child { flex: 1 1 420px; }
.bandeau-offre h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.bandeau-offre .intro { margin: 0; }
.bandeau-offre .actions { margin-top: 0; }

.offres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.offre { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 26px 24px; display: flex; flex-direction: column; }
.offre h3 { margin-bottom: .2em; }
.offre__prix { font: 700 1.5rem/1.2 "Bricolage", sans-serif; color: var(--terre); margin: 6px 0 2px; }
.offre__detail { font-size: .9rem; color: var(--encre-2); margin-bottom: 14px; }
.offre p:not(.offre__prix):not(.offre__detail) { color: var(--encre-2); }
.offre .bouton { margin-top: auto; align-self: flex-start; }
@media (max-width: 900px) { .offres { grid-template-columns: 1fr; } }

.liste-coches { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.liste-coches li { position: relative; padding-left: 34px; }
.liste-coches li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; font-size: .8rem; font-weight: 700; }

.programme { margin: 0; padding-left: 0; list-style: none; counter-reset: e; display: grid; gap: 10px; }
.programme li { counter-increment: e; position: relative; padding: 12px 14px 12px 52px; background: var(--carte); border: 1px solid var(--trait); border-radius: 10px; }
.programme li::before { content: counter(e); position: absolute; left: 14px; top: 11px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--petrole); color: #fff; font: 700 .85rem/1 "Bricolage", sans-serif; }

/* Articles */
.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.article-carte { display: flex; flex-direction: column; gap: 8px; background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 24px; color: var(--encre); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.article-carte:hover { transform: translateY(-2px); box-shadow: var(--ombre); }
.article-carte h3 { margin: 0; }
.article-carte p { color: var(--encre-2); margin: 0; flex: 1; }
.article-carte__meta { font-size: .85rem; color: var(--encre-2); }
.article-carte .lien-fleche { color: var(--terre); }
@media (max-width: 900px) { .articles { grid-template-columns: 1fr; } }

.lecture { max-width: 720px; }
.lecture h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.lecture .surtitre a { color: inherit; text-decoration: none; }
.article-meta { color: var(--encre-2); font-size: .92rem; }
.texte { font-size: 1.08rem; line-height: 1.75; }
.texte h2 { font-size: 1.45rem; margin: 1.8em 0 .5em; }
.texte ul, .texte ol { padding-left: 1.3em; }
.texte li { margin-bottom: .4em; }
.texte em { font-style: normal; font-family: ui-monospace, monospace; font-size: .92em; background: var(--fond-2); padding: 1px 6px; border-radius: 4px; overflow-wrap: anywhere; }
.encart--appel { margin-top: 48px; border-left: 4px solid var(--terre); }
.encart--appel h2 { font-size: 1.35rem; }

/* Gestion */
.gestion-entete { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.atouts--gestion { grid-template-columns: repeat(3, 1fr); margin-top: 16px; }
.fiche { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 18px 20px; margin-bottom: 12px; }
.fiche--nouvelle { border-left: 4px solid var(--terre); }
.fiche__tete { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.fiche__meta { color: var(--encre-2); font-size: .9rem; margin: 4px 0 8px; }
.fiche__texte { white-space: pre-line; }
.fiche__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fiche__statut { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.fiche__statut select { font: inherit; padding: 8px 10px; border-radius: 8px; border: 1.5px solid var(--trait); background: var(--fond); color: var(--encre); }
.statut--nouvelle { color: var(--terre); background: color-mix(in srgb, var(--terre) 12%, transparent); }
.statut--annulee { color: var(--encre-2); background: var(--fond-2); }
.vide { color: var(--encre-2); }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Pied */
.pied { border-top: 1px solid var(--trait); padding: 28px 0 96px; color: var(--encre-2); font-size: .92rem; }
.pied__ligne { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.pied p { margin: 0; }
.pied a { color: var(--encre); }

.wa-flottant {
    position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 58px; height: 58px; border-radius: 50%;
    display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
.wa-flottant:hover { background: #17733e; }
