/* ═══ Contrat Freelance — DA « Le contrat » ════════════════════════════════
   Le papier, l'encre, le stylo bleu, le surligneur. Le produit EST un document :
   la page le montre avant de le vendre. Pas de bleu SaaS, pas de dégradé. */
:root {
  --papier: #F4F1EA;
  --papier-2: #EBE6DA;
  --feuille: #FFFFFF;
  --encre: #16181D;
  --encre-2: #4A463E;
  --encre-3: #6B6558;
  --filet: #E3DDD0;
  --filet-2: #D3CBB9;
  --stylo: #2742A6;
  --stylo-fonce: #1B2F7C;
  --stylo-pale: #E6EAF7;
  --surligne: #FBEFA8;
  --tampon: #B4372A;
  --vert: #2F6B4F;
  --rayon: 8px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --ombre-feuille: 0 1px 0 var(--filet), 0 12px 32px -12px rgba(22, 24, 29, .18);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--papier); color: var(--encre);
  font: 16px/1.6 var(--sans); overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--stylo); text-underline-offset: 2px; }
a:hover { color: var(--stylo-fonce); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--stylo); outline-offset: 2px; border-radius: 3px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: var(--feuille); padding: 8px 12px; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.piege { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.conteneur { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.conteneur--etroit { max-width: 760px; }
.conteneur--texte { max-width: 780px; }
@media (min-width: 720px) { .conteneur { padding: 0 28px; } }

/* ── Boutons ── */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 44px; padding: .65em 1.25em; border: 1.5px solid var(--stylo); border-radius: var(--rayon);
  background: var(--stylo); color: #fff; font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .05s;
}
.bouton:hover { background: var(--stylo-fonce); border-color: var(--stylo-fonce); color: #fff; }
.bouton:active { transform: translateY(1px); }
.bouton:disabled { opacity: .55; cursor: progress; }
.bouton--contour { background: transparent; color: var(--stylo); }
.bouton--contour:hover { background: var(--stylo-pale); color: var(--stylo-fonce); }
.bouton--petit { min-height: 36px; padding: .4em .9em; font-size: .92rem; }
.bouton--grand { min-height: 52px; padding: .8em 1.6em; font-size: 1.05rem; }
.bouton--plein { width: 100%; }
.lien-fleche { font-weight: 500; text-decoration: none; }
.lien-fleche::after { content: " →"; }
.lien-fleche:hover { text-decoration: underline; }

/* ── En-tête ── */
.entete { background: var(--papier); border-bottom: 1px solid var(--filet); position: sticky; top: 0; z-index: 30; }
.entete__barre { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.marque { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--encre); font: 600 1.12rem/1 var(--serif); }
.marque:hover { color: var(--encre); }
.nav { display: none; }
.nav a { color: var(--encre-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--encre); }
.nav a.bouton { color: #fff; }
.entete__menu { border: 1px solid var(--filet-2); background: var(--feuille); border-radius: var(--rayon); padding: .45em .8em; font: 500 .9rem var(--sans); color: var(--encre); cursor: pointer; }
.entete.est-ouvert .nav { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 64px; background: var(--papier); border-bottom: 1px solid var(--filet); padding: 8px 16px 16px; gap: 4px; }
.entete.est-ouvert .nav a { padding: .6em 0; }
.entete.est-ouvert .nav a.bouton { padding: .65em 1.25em; margin-top: 8px; }
@media (min-width: 880px) {
  .entete__menu { display: none; }
  .nav { display: flex; align-items: center; gap: 26px; }
}

/* ── Messages ── */
.messages { padding-top: 16px; }
.message { padding: .8em 1em; border-radius: var(--rayon); border: 1px solid var(--filet-2); background: var(--feuille); }
.message--success { border-color: #B8D5C4; background: #EFF6F1; color: #1F4D37; }
.message--error { border-color: #E5B8B1; background: #FBEFED; color: #7E2419; }

/* ── Feuille (le document) ── */
.feuille {
  background: var(--feuille); border: 1px solid var(--filet); border-radius: 3px; box-shadow: var(--ombre-feuille);
  font-family: var(--serif); color: var(--encre); padding: 28px 24px;
}
.feuille h1 { font-size: 1.35rem; text-align: center; margin-bottom: .3em; }
.feuille h2 { font-size: 1.02rem; margin: 1.4em 0 .4em; }
.feuille h3 { font-size: .96rem; margin: 1.1em 0 .3em; }
.feuille p, .feuille li { font-size: .94rem; line-height: 1.62; }
.feuille mark { background: linear-gradient(transparent 12%, var(--surligne) 12%, var(--surligne) 90%, transparent 90%); color: inherit; padding: 0 .1em; }
.feuille table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.feuille td, .feuille th { vertical-align: top; }
.feuille blockquote { margin: .6em 0; padding: .2em 0 .2em 1em; border-left: 3px solid var(--filet-2); }
.feuille .doc-sources, .feuille .doc-disclaimer { font-family: var(--sans); }
.feuille .doc-sources a { word-break: break-all; }

/* ── Sections communes ── */
.surtitre { font: 600 .78rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--encre-3); margin-bottom: .9em; }
.titre-section { text-align: left; margin-bottom: .9em; }
.aide { font-size: .86rem; color: var(--encre-3); margin: .35em 0 0; }
.page-simple { padding: 48px 0 72px; }
.page-simple h1 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.legal h2 { font-size: 1.15rem; margin-top: 1.6em; }
.legal li { margin-bottom: .4em; }

.faq__item { border-bottom: 1px solid var(--filet); }
.faq__item summary { cursor: pointer; padding: 1em 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-weight: 400; color: var(--encre-3); font-size: 1.3rem; line-height: 1; }
.faq__item[open] summary::after { content: "–"; }
.faq__item p { color: var(--encre-2); padding-bottom: 1em; margin: 0; }

.formulaire-ligne { display: flex; flex-wrap: wrap; gap: 10px; margin: 1em 0 .4em; }
.formulaire-ligne input { flex: 1 1 220px; }
input, select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--encre); background: var(--feuille);
  border: 1px solid var(--filet-2); border-radius: 6px; padding: .62em .75em; min-height: 44px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--stylo); box-shadow: 0 0 0 3px var(--stylo-pale); }
input[readonly] { background: var(--papier); color: var(--encre-2); }

.telechargements { list-style: none; padding: 0; margin: 1em 0; }
.telechargements li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: .7em 0; border-bottom: 1px solid var(--filet); }
.telechargements__nom { flex: 1 1 200px; font-weight: 500; }

.carte-abo { background: var(--feuille); border: 1px solid var(--filet); border-radius: var(--rayon); padding: 20px; margin: 1.5em 0 2em; }
.carte-abo h2 { font-size: 1.15rem; }
.dossiers { list-style: none; padding: 0; }
.dossier { background: var(--feuille); border: 1px solid var(--filet); border-radius: var(--rayon); padding: 16px 18px; margin-bottom: 12px; }
.dossier__titre { font-weight: 600; margin-bottom: .4em; }
.dossier__date { font-weight: 400; color: var(--encre-3); font-size: .88rem; margin-left: .4em; }
.dossier__liens { display: flex; flex-direction: column; gap: 4px; font-size: .92rem; margin-bottom: .5em; }

/* ── Pied ── */
.pied { background: var(--encre); color: #CFCABE; margin-top: 0; padding: 48px 0 24px; font-size: .92rem; }
.pied a { color: #E9E5DB; text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; }
.pied__grille { display: grid; gap: 28px; grid-template-columns: 1fr; }
.pied__titre { font: 600 .76rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #9C9686; margin: 0 0 .7em; }
.pied__col ul { list-style: none; padding: 0; margin: 0 0 1.4em; }
.pied__col li { margin-bottom: .45em; }
.marque--pied { color: #fff; margin-bottom: 12px; }
.marque--pied:hover { color: #fff; }
.pied__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid #33363D; margin-top: 16px; padding-top: 18px; color: #9C9686; }
.pied__bas p { margin: 0; }
@media (min-width: 760px) { .pied__grille { grid-template-columns: 1.4fr 1fr 1.3fr 1.2fr; } }

body.sans-defilement { overflow: hidden; }
