/* Capycom : feuille de style unique. Les mesures de l'index reprennent celles du site Bubble. */
/* Polices hébergées sur le site (static/fonts, fichiers Fontsource, licences à côté) : aucun appel à Google. */
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/static/fonts/public-sans-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/static/fonts/public-sans-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/static/fonts/newsreader-latin-opsz-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/static/fonts/newsreader-latin-ext-opsz-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap; src: url(/static/fonts/newsreader-latin-opsz-italic.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap; src: url(/static/fonts/newsreader-latin-ext-opsz-italic.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
/* Polices de signature des modèles de lettres : téléchargées seulement si une page les emploie. */
@font-face { font-family: "Dancing Script"; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/fonts/dancing-script-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Dancing Script"; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/fonts/dancing-script-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Great Vibes"; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/great-vibes-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Great Vibes"; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/great-vibes-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Homemade Apple"; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/homemade-apple-latin-400-normal.woff2) format("woff2"); }
:root {
  --creme: #f3efe7;
  --papier: #fbf8f1;
  --bord: #e9e3d5;
  --encre: #1c2430;
  --texte2: #5f5a4f;
  --texte3: #857f71;
  --marine: #27406b;
  --marine-fonce: #1e3256;
  --marine-pale: #eef1f7;
  --rouge: #a3312a;
  --vert: #2f6b4a;
  --titre: "Newsreader", Georgia, serif;
  --texte: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--creme); color: var(--encre); font-family: var(--texte); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--marine); }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(39, 64, 107, .45); outline-offset: 2px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; font: 600 16px/1 var(--texte); padding: 0 24px; height: 52px; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn-petit { height: 40px; font-size: 14px; padding: 0 18px; }
.btn-grand { height: 52px; padding: 0 26px; }
.btn-plein { background: var(--marine); color: #fff; }
.btn-plein:hover { background: var(--marine-fonce); }
.btn-contour { background: transparent; color: var(--encre); border-color: rgba(28, 36, 48, .22); }
.btn-contour:hover { border-color: rgba(28, 36, 48, .5); }
.btn-texte { color: var(--marine); background: none; height: 44px; padding: 0 12px; }
.btn-blanc { background: #fff; color: var(--marine); }
.btn-contour-blanc { color: #fff; border-color: rgba(255, 255, 255, .4); background: transparent; }
.btn-danger { background: transparent; color: var(--rouge); border-color: rgba(163, 49, 42, .35); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-large { width: 100%; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 50; height: 69px; display: flex; align-items: center; gap: 16px; padding: 0 48px; background: rgba(251, 248, 241, .94); backdrop-filter: blur(8px); }
.marque { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--encre); font: 600 24px/1.4 var(--titre); }
.marque img { border-radius: 4px; }
.nav-principale { flex: 1; display: flex; justify-content: center; gap: 32px; }
.nav-principale a { color: var(--texte2); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-principale a:hover { color: var(--encre); }
.nav-mobile-seulement { display: none; }
.entete-actions { display: flex; align-items: center; gap: 10px; }
.menu-mobile { display: none; position: relative; }
.menu-mobile summary { list-style: none; cursor: pointer; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--bord); border-radius: 999px; font-size: 20px; color: var(--encre); background: #fff; }
.menu-mobile summary::-webkit-details-marker { display: none; }
.menu-mobile summary:focus-visible { outline: 2px solid var(--encre); outline-offset: 2px; }
.menu-mobile nav { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 220px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bord); border-radius: 16px; padding: 8px; box-shadow: 0 12px 30px rgba(28, 36, 48, .12); }
.menu-mobile nav a { padding: 10px 14px; border-radius: 10px; color: var(--encre); text-decoration: none; font-weight: 500; }
.menu-mobile nav a:hover, .menu-mobile nav a:focus-visible { background: var(--bord); }
.langues { display: inline-flex; background: var(--bord); border-radius: 999px; padding: 3px; gap: 2px; }
.langues a { font: 600 13px/1.1 var(--texte); color: #6f6a5e; text-decoration: none; padding: 5px 11px; border-radius: 999px; }
.langues a.actif { background: #fff; color: #1a1a1a; font-weight: 700; box-shadow: 0 1px 3px rgba(28, 25, 20, .16); }
/* Autres langues (FR, AR, ZH, PT, IT) : liste déroulante sans JavaScript. */
.langues-plus { position: relative; }
.langues-plus summary { list-style: none; cursor: pointer; font: 600 13px/1.1 var(--texte); color: #6f6a5e; padding: 5px 11px; border-radius: 999px; }
.langues-plus summary::-webkit-details-marker { display: none; }
.langues-plus summary::after { content: " ▾"; font-size: 10px; }
.langues-plus[open] summary, .langues-plus summary:hover { background: #fff; color: #1a1a1a; }
.langues-liste { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 30; display: flex; flex-direction: column; min-width: 150px; background: #fff; border: 1px solid var(--bord); border-radius: 14px; padding: 6px; box-shadow: 0 12px 30px rgba(28, 36, 48, .12); }
.langues-liste a { padding: 8px 10px; border-radius: 10px; white-space: nowrap; }
.langues-liste a:hover { background: var(--bord); }

/* Structure */
.conteneur { max-width: 1192px; margin: 0 auto; padding: 0 16px; }
.conteneur.etroit { max-width: 1104px; }
.conteneur.tres-etroit { max-width: 792px; }
.section { padding: 96px 0; }
.section-haut { padding-top: 72px; min-height: 60vh; }
.fond-creme { background: var(--creme); }
.fond-papier { background: var(--papier); }
.fond-marine { background: var(--marine); }
.titre-section { text-align: center; display: flex; flex-direction: column; align-items: center; margin-bottom: 48px; }
.surtitre { font: 700 13px/1.4 var(--texte); letter-spacing: 1.6px; text-transform: uppercase; color: var(--marine); margin-bottom: 14px; }
.titre-section h2, .titre-page { font: 400 44px/1.12 var(--titre); color: var(--encre); max-width: 760px; }
.sous-titre { font-size: 17px; line-height: 1.6; color: var(--texte2); max-width: 620px; margin-top: 16px; }
.sous-titre.large { max-width: 640px; }
.titre-section .btn { margin-top: 48px; }
.fond-marine .surtitre { color: rgba(243, 239, 231, .7); }
.fond-marine h2 { color: #fff; }
.centre { text-align: center; margin-top: 36px; }
.mention { font-size: 14px; line-height: 1.55; color: var(--texte2); max-width: 640px; margin: 20px auto 0; }
.boutons-centre { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.grille-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.grille-services { gap: 20px; }
.grille-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Héros */
.hero { background: var(--creme); }
.hero-grille { max-width: 1176px; margin: 0 auto; padding: 72px 16px 88px; display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 56px; align-items: center; }
.badge { display: inline-block; background: rgba(39, 64, 107, .08); color: var(--marine); font-weight: 600; font-size: 13px; padding: 8px 14px; border-radius: 999px; }
.hero h1 { font: 400 60px/1.06 var(--titre); margin-top: 24px; max-width: 628px; }
.hero h1 em { color: var(--marine); font-style: italic; }
.hero-intro { font-size: 18px; line-height: 1.6; color: var(--texte2); max-width: 560px; margin-top: 22px; }
.hero-prix { font-weight: 600; font-size: 17px; color: var(--marine); margin-top: 25px; }
.hero-boutons { display: flex; align-items: center; gap: 12px; margin-top: 31px; flex-wrap: wrap; }
.hero-confiance { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; max-width: 460px; color: var(--texte3); font-weight: 500; font-size: 14px; }
.hero-visuel { background: #fff; border: 1px solid var(--bord); border-radius: 28px; padding: 14px; box-shadow: 0 30px 60px -30px rgba(28, 36, 48, .35); }
.hero-visuel img { display: block; width: 100%; border-radius: 20px; }

/* Articles */
.liste-articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.carte-article { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bord); border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s, border-color .2s; }
.carte-article:hover { border-color: rgba(39, 64, 107, .28); box-shadow: 0 22px 40px -30px rgba(28, 36, 48, .55); transform: translateY(-2px); }
.carte-article:focus-visible { outline-offset: 3px; }
.carte-article > img, .carte-article-vide { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--marine-pale); border-bottom: 1px solid var(--bord); }
.carte-article-vide { display: flex; align-items: center; justify-content: center; }
.carte-article-vide img { opacity: .55; }
.carte-article-texte { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; min-width: 0; }
.carte-article-rubrique { font: 700 12px/1.3 var(--texte); letter-spacing: .08em; text-transform: uppercase; color: var(--marine); }
.carte-article h3 { font: 500 23px/1.22 var(--titre); color: var(--encre); text-wrap: balance; }
.carte-article p:not(.carte-article-rubrique) { font-size: 15px; line-height: 1.55; color: var(--texte2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.carte-article-date { margin-top: auto; padding-top: 6px; font-size: 13.5px; color: var(--texte3); }
.point { width: 20px; height: 10px; border-radius: 999px; background: rgba(39, 64, 107, .08); }
.lire { display: inline-block; font-weight: 600; font-size: 15px; color: var(--marine); margin-top: 14px; }
@media (prefers-reduced-motion: reduce) { .carte-article, .carte-article:hover { transition: none; transform: none; } }
#actualites .titre-section { margin: 28px 0 0; }

/* Écriture */
.section-ecrire { padding-top: 72px; }
.carte-ecriture { max-width: 900px; margin: 0 auto; background: #fff; border: 1px solid var(--bord); border-radius: 28px; padding: 28px; box-shadow: 0 30px 60px -30px rgba(28, 36, 48, .3); }
.editeur-cadre { border: 1px solid rgba(198, 185, 154, .55); border-radius: 14px; overflow: hidden; background: #fff; }
.editeur-cadre .ql-toolbar.ql-snow { border: 0; border-bottom: 1px solid rgba(198, 185, 154, .4); }
.editeur-cadre .ql-container.ql-snow { border: 0; font: 16px/1.6 var(--texte); }
.editeur-cadre .ql-editor { min-height: 216px; max-height: 60vh; }
.ecriture-bas { display: flex; gap: 15px; align-items: center; margin-top: 16px; }
.depot { flex: 1; min-height: 72px; display: flex; align-items: center; justify-content: center; text-align: center; background: var(--papier); border: 2px dashed rgba(198, 185, 154, .8); border-radius: 14px; color: var(--texte2); font-size: 14px; cursor: pointer; padding: 10px 14px; }
.depot.survol { border-color: var(--marine); background: var(--marine-pale); }
.ecriture-bas .btn { height: 56px; }
.ecriture-erreur { color: var(--rouge); font-size: 14px; margin-top: 12px; }
.note { font-size: 14px; color: var(--texte3); margin-top: 16px; }

/* Cartes */
.carte-modele { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; background: #fff; border: 1px solid var(--bord); border-radius: 22px; padding: 23px 25px; text-decoration: none; color: inherit; text-align: start; }
a.carte-modele:hover { border-color: rgba(39, 64, 107, .4); }
.carte-modele b { font-weight: 700; font-size: 17px; line-height: 1.3; color: var(--encre); }
.carte-modele span { font-size: 15px; line-height: 1.55; color: var(--texte2); }
.etiquette { font: 700 12px/1 var(--texte); font-style: normal; letter-spacing: .8px; text-transform: uppercase; color: var(--marine); background: #e8edf6; border-radius: 999px; padding: 4px 10px; margin-bottom: 4px; }
.numero-clair { width: 36px; height: 36px; border-radius: 999px; background: var(--marine-pale); color: var(--marine) !important; font: 600 17px/36px var(--titre) !important; text-align: center; margin-bottom: 8px; }
.carte-service { background: #fff; border: 1px solid var(--bord); border-radius: 20px; padding: 28px; }
.icone-service { width: 52px; height: 52px; border-radius: 14px; background: var(--marine-pale); display: flex; align-items: center; justify-content: center; }
.carte-service h3, .carte-etape h3 { font: 600 19px/1.4 var(--texte); margin-top: 20px; }
.carte-service p, .carte-etape p { font-size: 15px; line-height: 1.55; color: var(--texte2); margin-top: 14px; }
.carte-etape { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 20px; padding: 28px; }
.carte-etape h3 { color: #fff; margin-top: 24px; }
.carte-etape p { color: rgba(255, 255, 255, .72); }
.numero { width: 44px; height: 44px; border-radius: 999px; background: var(--creme); color: var(--marine); font: 600 20px/44px var(--titre); text-align: center; display: block; }
.carte-tarif { background: #fff; border: 1px solid var(--bord); border-radius: 20px; padding: 38px 32px 32px; }
.tarif-nom { font-weight: 600; font-size: 15px; color: var(--texte3); }
.tarif-prix { font: 500 46px/1.1 var(--titre); color: var(--marine); margin-top: 14px; }
.tarif-detail { font-size: 15px; line-height: 1.5; color: var(--texte2); border-top: 1px solid var(--bord); margin-top: 18px; padding-top: 17px; }

/* FAQ et appel final */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--bord); border-radius: 16px; }
.faq summary { font-weight: 600; font-size: 17px; line-height: 1.35; padding: 26px 24px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px/1 var(--titre); color: var(--marine); }
.faq details[open] summary::after { content: "–"; }
.faq details p { font-size: 15.5px; line-height: 1.65; color: var(--texte2); padding: 0 24px 24px; }
.appel { background: var(--creme); padding: 24px 16px 96px; }
.appel-carte { max-width: 1160px; margin: 0 auto; background: var(--marine); border-radius: 32px; padding: 72px 24px; text-align: center; box-shadow: 0 30px 60px -30px rgba(28, 36, 48, .5); }
.appel-carte h2 { font: 400 44px/1.12 var(--titre); color: #fff; max-width: 760px; margin: 0 auto; }
.appel-carte p { font-size: 17px; color: rgba(255, 255, 255, .78); margin: 20px 0 32px; }

/* Pied */
.pied { background: var(--papier); border-top: 1px solid var(--bord); padding: 34px 48px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.marque-pied { font-size: 20px; }
.pied-liens { flex: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.pied-liens a { color: var(--texte2); text-decoration: none; font-weight: 500; font-size: 14px; }
.pied-liens a:hover { color: var(--encre); }
.pied-copie { font-weight: 500; font-size: 13px; color: var(--texte3); }

/* Article */
.article { background: var(--papier); padding: 56px 0 96px; }
.article-colonne { max-width: 752px; margin: 0 auto; padding: 0 16px; }
.retour { font-weight: 600; font-size: 14px; text-decoration: none; }
.article-date { font-size: 14px; color: var(--texte3); margin-top: 28px; }
.article h1 { font: 400 46px/1.12 var(--titre); margin-top: 10px; }
.article-chapo { font-size: 19px; line-height: 1.6; color: var(--texte2); margin-top: 18px; }
.article-image { display: block; width: 100%; border-radius: 20px; margin-top: 32px; border: 1px solid var(--bord); }
.article-contenu { margin-top: 36px; font-size: 17.5px; line-height: 1.75; color: #2b3340; overflow-wrap: break-word; }
.article-contenu h2 { font: 500 30px/1.2 var(--titre); color: var(--encre); margin: 44px 0 14px; }
.article-contenu h3 { font: 600 20px/1.3 var(--texte); margin: 30px 0 10px; }
.article-contenu p { margin: 0 0 18px; }
.article-contenu ul, .article-contenu ol { margin: 0 0 18px; padding-inline-start: 26px; }
.article-contenu li { margin-bottom: 8px; }
.article-contenu blockquote { margin: 24px 0; padding: 16px 22px; border-inline-start: 4px solid var(--marine); background: #fff; border-start-start-radius: 0; border-end-start-radius: 0; border-start-end-radius: 14px; border-end-end-radius: 14px; color: var(--texte2); }
.article-contenu a { text-decoration: underline; text-underline-offset: 3px; }
.article-contenu u { text-decoration: none; }
.article-appel { margin-top: 56px; background: var(--marine); border-radius: 24px; padding: 40px 32px; text-align: center; }
.article-appel h2 { font: 400 32px/1.15 var(--titre); color: #fff; }
.article-appel p { color: rgba(255, 255, 255, .78); margin: 12px auto 24px; max-width: 480px; }
.article-suite { margin-top: 72px; }
.article-suite > h2 { font: 400 34px/1.15 var(--titre); margin-bottom: 24px; }

/* Page article éditoriale (/article/…) : colonne de lecture d'environ 68 caractères */
.article-editorial { padding: 40px 0 96px; }
.article-editorial .article-colonne { max-width: calc(40rem + 32px); }
.article-editorial .fil-ariane { margin-top: 0; }
.article-entete { display: flex; flex-direction: column; align-items: flex-start; }
.article-rubrique { margin-top: 28px; font: 700 13px/1.3 var(--texte); letter-spacing: .1em; text-transform: uppercase; }
.article-rubrique a { color: var(--marine); text-decoration: none; }
.article-rubrique a:hover { text-decoration: underline; text-underline-offset: 3px; }
.article-editorial h1 { font: 400 48px/1.08 var(--titre); letter-spacing: -.01em; margin-top: 12px; text-wrap: balance; }
.article-legal h1 { margin-top: 8px; }
.article-editorial .article-chapo { font: 400 22px/1.5 var(--titre); color: var(--texte2); margin-top: 18px; text-wrap: pretty; }
.article-meta { align-self: stretch; display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 26px; padding: 14px 0; border-top: 1px solid var(--bord); border-bottom: 1px solid var(--bord); font-size: 14px; color: var(--texte3); }
.article-meta > span + span::before { content: "·"; margin: 0 10px; color: #c6bfae; }
.article-meta strong { color: var(--encre); font-weight: 600; }
.article-couverture { max-width: calc(960px + 32px); margin: 36px auto 0; padding: 0 16px; }
.article-couverture img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; border: 1px solid var(--bord); background: var(--marine-pale); }
.article-couverture figcaption { margin-top: 10px; font: 400 13px/1.5 var(--texte); color: var(--texte3); display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; }
.article-couverture figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.article-editorial .guide-reponse { margin-top: 36px; }
.article-sommaire { margin-top: 36px; background: #fff; border: 1px solid var(--bord); border-radius: 14px; padding: 20px 24px; }
.article-sommaire > p { font: 700 12px/1.3 var(--texte); letter-spacing: .1em; text-transform: uppercase; color: var(--texte3); margin-bottom: 10px; }
.article-sommaire ol { margin: 0; padding-inline-start: 22px; display: grid; gap: 6px; font-size: 15.5px; line-height: 1.45; }
.article-sommaire li::marker { color: var(--texte3); font-variant-numeric: tabular-nums; }
.article-sommaire a { text-decoration: none; }
.article-sommaire a:hover { text-decoration: underline; text-underline-offset: 3px; }
.article-editorial .article-contenu { margin-top: 36px; font-size: 18px; line-height: 1.72; color: #262e3a; }
.article-editorial .article-contenu > :first-child { margin-top: 0; }
.article-editorial .article-contenu h2 { font: 500 31px/1.18 var(--titre); margin: 52px 0 14px; text-wrap: balance; scroll-margin-top: 92px; }
.article-editorial .article-contenu h3 { font: 600 20px/1.35 var(--texte); margin: 34px 0 10px; }
.article-editorial .article-contenu p { margin: 0 0 20px; }
.article-editorial .article-contenu li { margin-bottom: 8px; padding-inline-start: 2px; }
.article-editorial .article-contenu li::marker { color: var(--marine); }
.article-editorial .article-contenu a { text-decoration-color: rgba(39, 64, 107, .35); text-decoration-thickness: 1px; }
.article-editorial .article-contenu a:hover { text-decoration-color: currentColor; }
.article-editorial .article-contenu strong { font-weight: 650; color: var(--encre); }
.article-editorial .article-contenu blockquote { margin: 32px 0; padding-block: 4px; padding-inline: 24px 0; border-inline-start: 3px solid var(--marine); background: none; border-radius: 0; font: italic 400 22px/1.5 var(--titre); color: var(--encre); }
.article-editorial .article-contenu blockquote p:last-child { margin-bottom: 0; }
.article-editorial .article-contenu hr { border: 0; height: 1px; background: var(--bord); margin: 40px 0; }
.article-editorial .article-contenu table { display: block; overflow-x: auto; max-width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 15.5px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.article-editorial .article-contenu th { text-align: start; font: 700 12px/1.3 var(--texte); letter-spacing: .06em; text-transform: uppercase; color: var(--texte3); padding: 10px 14px; border-bottom: 2px solid var(--bord); }
.article-editorial .article-contenu td { padding: 10px 14px; border-bottom: 1px solid var(--bord); vertical-align: top; }
.article-editorial .article-contenu img { border-radius: 12px; }
.article-editorial .article-contenu figure { margin: 36px 0; }
.article-editorial .article-contenu figure img { display: block; width: 100%; height: auto; border: 1px solid var(--bord); background: var(--marine-pale); }
.article-editorial .article-contenu figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--texte3); }
.encadre { margin: 32px 0; padding: 18px 22px; border-radius: 12px; border-inline-start: 4px solid var(--marine); background: var(--marine-pale); font-size: 16.5px; line-height: 1.65; }
.encadre::before { display: block; margin-bottom: 6px; font: 700 12px/1.3 var(--texte); letter-spacing: .1em; text-transform: uppercase; color: var(--marine); }
.encadre-retenir::before { content: "À retenir"; }
.encadre-attention { border-inline-start-color: var(--rouge); background: #f8ebe8; }
.encadre-attention::before { content: "Attention"; color: var(--rouge); }
:lang(en) .encadre-retenir::before { content: "Key point"; }
:lang(en) .encadre-attention::before { content: "Warning"; }
.article-editorial .article-contenu .encadre p:last-child, .article-editorial .article-contenu .encadre ul:last-child { margin-bottom: 0; }
.article-editorial .guide-sources { background: #fff; border: 1px solid var(--bord); border-radius: 14px; padding: 22px 24px; }
.article-editorial .guide-sources h2 { font: 700 12px/1.3 var(--texte); letter-spacing: .1em; text-transform: uppercase; color: var(--texte3); margin-bottom: 12px; }
.article-editorial .guide-sources ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.article-editorial .guide-sources li { margin: 0; padding-inline-start: 18px; position: relative; }
.article-editorial .guide-sources li::before { content: ""; position: absolute; inset-inline-start: 0; top: .62em; width: 6px; height: 6px; border-radius: 999px; background: var(--marine); opacity: .5; }
.article-editorial .article-appel { margin-top: 56px; border-radius: 20px; padding: 40px 32px; box-shadow: 0 30px 50px -36px rgba(28, 36, 48, .6); }
.article-editorial .article-appel .btn:hover { background: var(--creme); }
.article-editorial .article-suite { margin-top: 80px; border-top: 1px solid var(--bord); padding-top: 48px; }
.article-editorial .article-suite > h2 { font-size: 30px; }
@media (max-width: 760px) {
  .article-editorial { padding-top: 24px; }
  .article-editorial h1 { font-size: 34px; }
  .article-editorial .article-chapo { font-size: 19px; }
  .article-meta { gap: 4px 14px; }
  .article-meta > span + span::before { content: none; }
  .article-couverture { margin-top: 24px; }
  .article-couverture img { border-radius: 12px; }
  .article-editorial .article-contenu { font-size: 17px; }
  .article-editorial .article-contenu h2 { font-size: 26px; margin-top: 40px; }
  .article-editorial .article-contenu blockquote { font-size: 19px; padding-inline-start: 18px; }
  .article-editorial .article-appel { padding: 32px 20px; }
}

/* Formulaires et cartes d'application */
.carte { background: #fff; border: 1px solid var(--bord); border-radius: 22px; padding: 28px; }
.carte + .carte { margin-top: 20px; }
.carte h2 { font: 500 24px/1.25 var(--titre); margin-bottom: 16px; }
.formulaire { display: flex; flex-direction: column; gap: 16px; }
.formulaire label, .champ { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; color: var(--encre); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea { font: 400 16px/1.4 var(--texte); color: var(--encre); background: #fff; border: 1px solid #d9d1bd; border-radius: 12px; padding: 12px 14px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--marine); box-shadow: 0 0 0 3px rgba(39, 64, 107, .15); }
textarea { resize: vertical; }
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.trois-colonnes { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.piege { position: absolute; left: -9999px; }
.alerte { background: #e8f1ec; color: var(--vert); border: 1px solid #c5dccf; border-radius: 12px; padding: 12px 16px; font-size: 15px; margin-bottom: 16px; }
.alerte-erreur { background: #f8e9e7; color: var(--rouge); border-color: #ecc8c4; }
.aide { font-weight: 400; font-size: 13px; color: var(--texte3); }
.lien-discret { font-size: 14px; color: var(--texte2); }
.page-etroite { max-width: 480px; margin: 0 auto; padding: 64px 16px 96px; }
.page-etroite h1 { font: 400 38px/1.15 var(--titre); text-align: center; margin-bottom: 8px; }
.page-etroite .intro { text-align: center; color: var(--texte2); margin-bottom: 28px; }
.page-app { max-width: 1192px; margin: 0 auto; padding: 48px 16px 96px; }
.page-app > h1 { font: 400 40px/1.15 var(--titre); margin-bottom: 8px; }
.page-app > .intro { color: var(--texte2); margin-bottom: 32px; }
#cle-api > p { margin-bottom: 12px; color: var(--texte2); }
#cle-api code { font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.cle-api-valeur { display: block; background: var(--papier); border: 1px dashed var(--marine); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; overflow-wrap: anywhere; user-select: all; }
.boutons-cle { display: flex; flex-wrap: wrap; gap: 10px; }

/* Tunnel */
.etapes-tunnel { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 32px; counter-reset: etape; }
.etapes-tunnel li { flex: 1; counter-increment: etape; font-weight: 600; font-size: 14px; color: var(--texte3); border-top: 4px solid var(--bord); padding-top: 12px; }
.etapes-tunnel li::before { content: counter(etape) ". "; }
.etapes-tunnel li.fait { border-color: rgba(39, 64, 107, .45); color: var(--texte2); }
.etapes-tunnel li.actif { border-color: var(--marine); color: var(--marine); }
.tunnel { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.recap { position: sticky; top: 92px; }
.recap dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; font-size: 15px; }
.recap dt { color: var(--texte2); }
.recap dd { margin: 0; font-weight: 600; text-align: end; }
.recap .total { border-top: 1px solid var(--bord); padding-top: 14px; margin-top: 4px; font-size: 17px; }
.recap dd.total { font: 500 28px/1 var(--titre); color: var(--marine); }
.recap .btn { margin-top: 20px; }
.liste-docs { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-direction: column; gap: 10px; }
.liste-docs li { display: flex; align-items: center; gap: 12px; border: 1px solid var(--bord); border-radius: 14px; padding: 12px 14px; background: var(--papier); }
.liste-docs .nom { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.liste-docs .pages { color: var(--texte3); font-size: 14px; white-space: nowrap; }
.lien-bouton { background: none; border: 0; padding: 0; font: inherit; color: var(--marine); cursor: pointer; text-decoration: underline; }
.lien-bouton.danger { color: var(--rouge); }
.choix { display: flex; gap: 12px; }
.choix label { flex: 1; flex-direction: row; align-items: center; gap: 10px; border: 1px solid #d9d1bd; border-radius: 14px; padding: 14px 16px; cursor: pointer; font-weight: 600; }
.choix label:has(input:checked) { border-color: var(--marine); background: var(--marine-pale); }
.adresse-bloc { font-style: normal; line-height: 1.55; color: var(--texte2); }
.adresse-bloc strong { color: var(--encre); }
.enveloppe-apercu { background: var(--papier); border: 1px solid var(--bord); border-radius: 14px; padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.enveloppe-apercu h3 { font: 700 12px/1 var(--texte); letter-spacing: 1px; text-transform: uppercase; color: var(--texte3); margin-bottom: 8px; }
.adresses-enregistrees { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.adresses-enregistrees button { border: 1px solid #d9d1bd; background: var(--papier); border-radius: 999px; padding: 8px 14px; font: 500 14px var(--texte); cursor: pointer; }
.recherche-adresse { position: relative; }
.recherche-adresse[hidden] { display: none; }
.recherche-adresse .aide { margin: 4px 0 0; font-size: 13px; }
.suggestions-adresse { position: absolute; z-index: 20; left: 0; right: 0; margin: 2px 0 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--bord); border-radius: 12px; box-shadow: 0 12px 30px rgba(28, 36, 48, .12); max-height: 280px; overflow-y: auto; }
.suggestions-adresse[hidden] { display: none; }
.suggestions-adresse li { padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.suggestions-adresse li:hover, .suggestions-adresse li[aria-selected="true"] { background: var(--bord); }
.suivi { list-style: none; padding: 0; margin: 0; }
.suivi li { position: relative; padding-block: 0 22px; padding-inline: 34px 0; color: var(--texte3); }
.suivi li::before { content: ""; position: absolute; inset-inline-start: 6px; top: 4px; width: 14px; height: 14px; border-radius: 999px; border: 2px solid #d9d1bd; background: #fff; }
.suivi li::after { content: ""; position: absolute; inset-inline-start: 12px; top: 22px; bottom: 0; width: 2px; background: var(--bord); }
.suivi li:last-child::after { display: none; }
.suivi li.fait { color: var(--encre); }
.suivi li.fait::before { background: var(--marine); border-color: var(--marine); }
.suivi small { display: block; color: var(--texte3); }

/* Tableaux et pastilles */
.tableau-cadre { overflow-x: auto; background: #fff; border: 1px solid var(--bord); border-radius: 18px; }
table.tableau { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tableau th { text-align: start; font: 700 12px/1 var(--texte); letter-spacing: .8px; text-transform: uppercase; color: var(--texte3); padding: 14px 16px; border-bottom: 1px solid var(--bord); white-space: nowrap; }
.tableau td { padding: 13px 16px; border-bottom: 1px solid #f1ecdf; vertical-align: middle; }
.tableau tr:last-child td { border-bottom: 0; }
.tableau tbody tr:hover { background: var(--papier); }
.tableau a { font-weight: 600; text-decoration: none; }
.droite { text-align: end; }
.vide { padding: 36px 16px; text-align: center; color: var(--texte3); }
.pastille { display: inline-block; font: 700 12px/1 var(--texte); padding: 6px 10px; border-radius: 999px; background: #ece7da; color: var(--texte2); white-space: nowrap; }
.pastille-paye { background: #fdf0d2; color: #8a5a00; }
.pastille-pris_en_charge { background: #e3ebf8; color: var(--marine); }
.pastille-imprime { background: #e6e3f6; color: #4b3f9a; }
.pastille-poste { background: #e1f0e7; color: var(--vert); }
.pastille-probleme, .pastille-annule { background: #f8e3e0; color: var(--rouge); }

/* Back-office */
.bo { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.bo-menu { background: var(--marine); color: #fff; padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.bo-menu .marque { color: #fff; font-size: 21px; padding: 4px 10px 18px; }
.bo-menu .marque img { background: #fff; padding: 3px; border-radius: 8px; }
.bo-menu a.lien { color: rgba(255, 255, 255, .78); text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px 12px; border-radius: 10px; }
.bo-menu a.lien:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.bo-menu a.lien.actif { background: rgba(255, 255, 255, .16); color: #fff; font-weight: 600; }
.bo-menu .bas { margin-top: auto; font-size: 13px; color: rgba(255, 255, 255, .6); padding: 12px; }
.bo-menu .bas form { margin-top: 8px; }
.bo-menu .bas button { background: none; border: 0; color: #fff; text-decoration: underline; cursor: pointer; padding: 0; font: inherit; }
.bo-corps { padding: 32px 36px 72px; min-width: 0; }
.bo-corps > h1 { font: 400 34px/1.15 var(--titre); margin-bottom: 24px; }
.bo-barre { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.bo-barre form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.bo-barre input[type=search], .bo-barre select { width: auto; padding: 9px 12px; }
.filtres { display: flex; flex-wrap: wrap; gap: 6px; }
.filtres a { text-decoration: none; font: 600 13px var(--texte); color: var(--texte2); padding: 8px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--bord); }
.filtres a.actif { background: var(--marine); color: #fff; border-color: var(--marine); }
.indicateurs { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.indicateur { background: #fff; border: 1px solid var(--bord); border-radius: 18px; padding: 20px; }
.indicateur p { font: 700 12px/1.2 var(--texte); letter-spacing: .8px; text-transform: uppercase; color: var(--texte3); }
.indicateur strong { display: block; font: 500 34px/1.1 var(--titre); color: var(--marine); margin-top: 10px; }
.bo-grille { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.actions { display: flex; flex-direction: column; gap: 10px; }
.actions form { display: flex; flex-direction: column; gap: 10px; }
.journal { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.journal li { padding: 8px 0; border-bottom: 1px solid #f1ecdf; color: var(--texte2); }
.journal time { color: var(--texte3); margin-inline-end: 8px; }
.definition { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; margin: 0; font-size: 15px; }
.definition dt { color: var(--texte3); }
.definition dd { margin: 0; }
.preuve { max-width: 100%; border-radius: 14px; border: 1px solid var(--bord); }
.erreur-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 24px; }
.erreur-page h1 { font: 400 40px/1.1 var(--titre); }
.erreur-page p { color: var(--texte2); max-width: 460px; }

/* Modèles de lettres */
.page-modeles .surtitre a { text-decoration: none; }
.page-modeles .titre-page { max-width: none; }
.page-modeles .sous-titre { max-width: none; margin-bottom: 32px; }
#capy-lettres-zone { min-height: 240px; }
.carte-poste { margin: 8px 0 24px; max-width: 720px; }
.carte-poste p { color: var(--texte2); margin-bottom: 18px; }
.tous-modeles { margin-top: 64px; border-top: 1px solid var(--bord); padding-top: 40px; }
.tous-modeles h2 { font: 400 30px/1.2 var(--titre); margin-bottom: 8px; }
.tous-modeles h3 { font: 600 17px/1.3 var(--texte); margin: 26px 0 8px; }
.tous-modeles h3 a { text-decoration: none; }
.tous-modeles ul { margin: 0; padding-inline-start: 20px; color: var(--texte2); font-size: 15px; line-height: 1.6; }
.tous-modeles li { margin-bottom: 4px; }

/* Pages IA (/ia et /ia/docs) */
.page-ia .titre-section { margin-bottom: 36px; }
.page-ia .section-haut { min-height: 0; }
.page-ia .ia-boutons { margin-top: 32px; }
.page-ia .titre-section .btn { margin-top: 0; }
.page-ia .carte h3 { font: 600 19px/1.3 var(--texte); margin-bottom: 12px; }
.page-ia .carte p + p { margin-top: 12px; }
.page-ia .carte ul, .page-ia .carte ol { margin: 0; padding-inline-start: 22px; line-height: 1.6; color: var(--texte2); }
.page-ia .carte li + li { margin-top: 6px; }
.page-ia .carte .aide { display: block; margin-top: 12px; }
.page-ia .deux-colonnes .carte + .carte { margin-top: 0; }
.page-ia code, .doc-api code { font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--marine-pale); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
.dialogue { display: flex; flex-direction: column; gap: 14px; }
.bulle { max-width: 88%; border-radius: 18px; padding: 14px 18px; line-height: 1.6; }
.bulle strong { display: block; font: 700 12px/1.4 var(--texte); letter-spacing: .8px; text-transform: uppercase; color: var(--texte3); margin-bottom: 4px; }
.bulle-vous { align-self: flex-end; background: var(--marine-pale); }
.bulle-ia { align-self: flex-start; background: var(--papier); border: 1px solid var(--bord); }
.ia-prix { max-width: 560px; margin: 0 auto; text-align: center; }
.doc-api h2 code { font-size: 24px; background: none; padding: 0; }
.doc-api .tableau-cadre { margin: 0 0 18px; }
.doc-api .tableau { font-size: 14.5px; line-height: 1.5; }
.doc-api pre { background: var(--encre); color: #f3efe7; border-radius: 14px; padding: 16px 18px; overflow-x: auto; font-size: 13.5px; line-height: 1.55; margin: 0 0 18px; }
.doc-api pre code { background: none; padding: 0; color: inherit; font-size: inherit; overflow-wrap: normal; white-space: pre; }

/* Page blanche utilisée pour fabriquer le PDF dans le navigateur */
.page-pdf { width: 816px; height: 1056px; padding: 96px; background: #fff; color: #000; font: 16px/1.6 var(--texte); overflow: hidden; }
.page-pdf p { margin: 0; }
.page-pdf .ql-align-center { text-align: center; }
.page-pdf .ql-align-right { text-align: right; }
.page-pdf .ql-align-justify { text-align: justify; }
.atelier-pdf { position: fixed; left: -10000px; top: 0; }

/* Écrans moyens et mobiles */
@media (max-width: 1080px) {
  .entete { padding: 0 20px; }
  .nav-principale { display: none; }
  .menu-mobile { display: block; }
  .entete-actions { margin-inline-start: auto; }
}
@media (max-width: 480px) {
  .entete { padding: 0 16px; gap: 8px; }
  .entete .marque span { display: none; }
  .entete-actions { gap: 6px; }
  .hero-grille { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .hero-visuel { max-width: 460px; margin: 0 auto; }
  .grille-4 { grid-template-columns: repeat(2, 1fr); }
  .tunnel, .bo-grille { grid-template-columns: 1fr; }
  .recap { position: static; }
  .pied { padding: 28px 20px; justify-content: center; text-align: center; }
}
@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .hero h1 { font-size: 40px; }
  .titre-section h2, .titre-page, .appel-carte h2, .article h1 { font-size: 32px; }
  .grille-3, .grille-4, .deux-colonnes, .trois-colonnes, .enveloppe-apercu { grid-template-columns: 1fr; }
  .carte-article h3 { font-size: 21px; }
  .carte-article-vide { aspect-ratio: auto; height: 64px; }
  .carte-article-vide img { width: 32px; height: 32px; }
  .ecriture-bas { flex-direction: column; align-items: stretch; }
  .carte-ecriture, .carte { padding: 18px; }
  .cache-mobile { display: none; }
  .appel-carte { padding: 48px 20px; }
  .etapes-tunnel li { font-size: 12px; }
  .bo { grid-template-columns: 1fr; }
  .bo-menu { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px; }
  .bo-menu .marque { padding: 4px 8px; }
  .bo-menu .bas { margin: 0 0 0 auto; padding: 4px 8px; }
  .bo-corps { padding: 20px 14px 56px; }
  .definition { grid-template-columns: 1fr; gap: 2px 0; }
  .definition dd { margin-bottom: 8px; }
}

/* Accueil : l'outil d'écriture (croquis d'Adel, 2026-11-10) */
/* Rythme vertical de l'accueil : 16 px entre éléments voisins, 28 px entre blocs. */
.appli { max-width: 860px; margin: 0 auto; padding: 48px 16px 80px; }
.appli-intro { text-align: center; margin-bottom: 28px; }
.appli-intro h1 { font: 400 42px/1.1 var(--titre); letter-spacing: -.01em; margin-bottom: 14px; text-wrap: balance; }
.appli-intro p { color: var(--texte2); max-width: 620px; margin: 0 auto; font-size: 16.5px; line-height: 1.6; text-wrap: pretty; }
.appli-actions { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.appli-actions .btn { height: 46px; font-size: 15px; background: #fff; box-shadow: 0 1px 2px rgba(28, 36, 48, .06); }
.appli-actions .btn:hover:not([disabled]) { border-color: rgba(39, 64, 107, .45); color: var(--marine); background: #fff; }
.appli-actions .btn[aria-expanded="true"] { border-color: var(--marine); color: var(--marine); background: var(--marine-pale); }
.appli-modeles { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 14px; background: #fff; border: 1px solid var(--bord); border-radius: 14px; box-shadow: 0 10px 24px -20px rgba(28, 36, 48, .4); }
.appli-modeles[hidden] { display: none; }
.appli-modeles a { padding: 8px 13px; border-radius: 999px; background: var(--papier); border: 1px solid var(--bord); color: var(--encre); text-decoration: none; font-size: 14px; transition: border-color .15s, background .15s; }
.appli-modeles a:hover { border-color: var(--marine); background: #fff; }
.appli-modeles a.tous { background: none; border-color: transparent; color: var(--marine); font-weight: 600; }
/* Feuille : papier grainé, marges d'une vraie lettre, une seconde feuille devinée dessous, ombre portée douce. */
.feuille { border-radius: 6px; overflow: hidden; border: 1px solid rgba(198, 185, 154, .6);
  box-shadow: 0 1px 1px rgba(28, 36, 48, .05), 0 5px 0 -2px #f7f2e6, 0 5px 0 -1px rgba(198, 185, 154, .55), 0 24px 40px -26px rgba(28, 36, 48, .45);
  background-color: #fdfbf6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .4 0 0 0 0 .3 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); }
.feuille .ql-toolbar.ql-snow { border: 0; border-bottom: 1px solid rgba(198, 185, 154, .4); background: rgba(255, 255, 255, .7); padding: 10px 14px; }
.feuille .ql-container.ql-snow { border: 0; font: 16.5px/1.65 var(--texte); color: var(--encre); }
.feuille .ql-editor { min-height: 380px; max-height: 70vh; padding: 48px 64px 56px; }
.feuille .ql-editor.ql-blank::before { left: 64px; right: 64px; color: #a8a191; font-style: normal; white-space: pre-line; }
.feuille:focus-within { border-color: rgba(39, 64, 107, .4); }

/* Zone de dépôt des PDF */
.appli-fichiers { margin-top: 28px; background: rgba(255, 255, 255, .6); border: 1.5px dashed rgba(166, 152, 120, .7); border-radius: 14px; padding: 20px; transition: border-color .15s, background .15s, box-shadow .15s; }
.appli-fichiers:hover { border-color: rgba(39, 64, 107, .45); background: #fff; }
.appli-fichiers.survol { border-style: solid; border-color: var(--marine); background: var(--marine-pale); box-shadow: 0 0 0 4px rgba(39, 64, 107, .12); }
.appli-fichiers.a-des-fichiers { background: #fff; border-style: solid; border-color: var(--bord); }
.depot-invite { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; color: var(--texte2); font-size: 15px; text-align: center; }
.depot-icone { width: 40px; height: 40px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--marine-pale); color: var(--marine); flex: none; transition: transform .15s; }
.appli-fichiers.survol .depot-icone { transform: translateY(-2px); background: #fff; }
.depot-invite .btn { background: #fff; color: var(--marine); border-color: rgba(39, 64, 107, .3); }
.depot-invite .btn:hover { border-color: var(--marine); background: var(--marine-pale); }
.depot-invite .aide { width: 100%; text-align: center; font-size: 13px; color: var(--texte3); }
.liste-fichiers { list-style: none; margin: 0; padding: 0; }
.liste-fichiers:not(:empty) { margin-top: 16px; border-top: 1px solid var(--bord); }
.liste-fichiers li { display: flex; align-items: center; gap: 14px; padding: 12px 2px; border-bottom: 1px solid var(--bord); font-size: 15px; }
.liste-fichiers li:last-child { border-bottom: 0; padding-bottom: 0; }
.liste-fichiers .nom { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.liste-fichiers .pages { color: var(--texte3); font-size: 14px; font-variant-numeric: tabular-nums; }
.liste-fichiers .lien-bouton { font-size: 14px; text-underline-offset: 3px; }
.apercu { display: block; width: 100%; height: 560px; margin-top: 16px; border: 1px solid var(--bord); border-radius: 10px; background: var(--papier); }
.apercu[hidden] { display: none; }

/* Prix en direct et validation */
.appli-bas { display: flex; align-items: center; gap: 20px; margin-top: 28px; padding: 20px 22px; background: #fff; border: 1px solid var(--bord); border-radius: 16px; box-shadow: 0 18px 36px -30px rgba(28, 36, 48, .5); }
.prix-direct { flex: 1; min-width: 0; display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 14px; }
.prix-libelle { grid-column: 1 / -1; font: 700 12px/1.3 var(--texte); letter-spacing: .1em; text-transform: uppercase; color: var(--texte3); }
.prix-total { font: 500 38px/1.1 var(--titre); color: var(--texte3); font-variant-numeric: tabular-nums; transition: color .2s; }
.prix-direct.a-un-prix .prix-total { color: var(--marine); }
.prix-detail { color: var(--texte2); font-size: 14px; line-height: 1.45; min-width: 0; }
.prix-direct .couleur { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; color: var(--texte2); cursor: pointer; justify-self: start; }
.prix-direct .couleur input { width: 18px; height: 18px; accent-color: var(--marine); margin: 0; }
.appli-bas .btn { min-width: 180px; height: 56px; font-size: 17px; box-shadow: 0 10px 20px -12px rgba(39, 64, 107, .7); }

/* États des boutons (tout le site) */
.btn:focus-visible { outline: 3px solid rgba(39, 64, 107, .45); outline-offset: 3px; }
.btn:active:not([disabled]) { transform: translateY(1px); }
.btn-contour:hover:not([disabled]) { background: rgba(255, 255, 255, .7); }
.btn[disabled], .btn[disabled]:hover { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn-plein[disabled]:hover { background: var(--marine); }
@media (max-width: 760px) {
  .appli { padding-top: 28px; padding-bottom: 56px; }
  .appli-intro { margin-bottom: 22px; }
  .appli-intro h1 { font-size: 30px; }
  .appli-intro p { font-size: 15.5px; }
  .appli-actions { flex-direction: column; gap: 10px; }
  .appli-actions .btn { width: 100%; }
  .feuille .ql-toolbar.ql-snow { padding: 8px; }
  .feuille .ql-editor { min-height: 300px; padding: 28px 22px 32px; }
  .feuille .ql-editor.ql-blank::before { left: 22px; right: 22px; }
  .appli-fichiers { margin-top: 24px; padding: 18px 14px; }
  .appli-bas { flex-direction: column; align-items: stretch; gap: 16px; margin-top: 24px; padding: 18px; }
  .prix-direct { grid-template-columns: 1fr; }
  .prix-total { font-size: 34px; }
  .appli-bas .btn { width: 100%; }
  .apercu { display: none !important; }
}

/* Guides, fil d'Ariane, situations et pages de modèles (2026-11-10) */
.fil-ariane { margin-top: 28px; font-size: 14px; color: var(--texte3); }
.page-modeles .fil-ariane { margin-top: 0; margin-bottom: 14px; }
.fil-ariane ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.fil-ariane li + li::before { content: "›"; margin: 0 8px; color: var(--texte3); }
.fil-ariane a { color: var(--marine); text-decoration: none; }
.fil-ariane a:hover { text-decoration: underline; }
.fil-ariane [aria-current] { color: var(--texte2); }
.guide-reponse { margin-top: 22px; background: var(--marine-pale); border-inline-start: 4px solid var(--marine); border-start-start-radius: 0; border-end-start-radius: 0; border-start-end-radius: 16px; border-end-end-radius: 16px; padding: 18px 22px; }
.guide-reponse p { font-size: 17.5px; line-height: 1.65; color: var(--encre); }
.guide-reponse .guide-reponse-titre { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--marine); margin-bottom: 6px; }
.guide-etapes, .guide-faq, .guide-sources, .modele-usage { margin-top: 40px; }
.guide-etapes h2, .guide-faq h2, .guide-sources h2, .modele-usage h2 { font: 500 28px/1.2 var(--titre); color: var(--encre); margin-bottom: 14px; }
.guide-etapes ol { margin: 0; padding-inline-start: 26px; font-size: 17px; line-height: 1.65; }
.guide-etapes li { margin-bottom: 10px; }
.guide-faq .faq { max-width: none; }
.guide-sources ul { margin: 0; padding-inline-start: 20px; font-size: 15.5px; line-height: 1.6; }
.guide-sources li { margin-bottom: 6px; }
.guide-sources a { text-decoration: underline; text-underline-offset: 3px; }
.guide-source-date { color: var(--texte3); font-size: 14px; }
.guide-prix { margin-top: 40px; background: #fff; border: 1px solid var(--bord); border-radius: 20px; padding: 24px 26px; }
.guide-prix .guide-prix-titre { font-weight: 600; font-size: 17px; }
.guide-prix .guide-prix-montant { font: 500 34px/1.2 var(--titre); color: var(--marine); margin: 6px 0 8px; }
.guide-prix .guide-prix-montant span { font: 400 15px/1 var(--texte); color: var(--texte3); }
.guide-prix p { color: var(--texte2); }
.guide-prix-liens { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.modele-infos { margin-top: 24px; max-width: 760px; }
.modele-usage p { color: var(--texte2); font-size: 16.5px; line-height: 1.65; }
.situations { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 32px; }
.situations a { border: 1px solid var(--bord); background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 14.5px; text-decoration: none; color: var(--marine); }
.groupe-situation { margin-top: 40px; scroll-margin-top: 90px; }
.groupe-situation > h2 { font: 400 30px/1.2 var(--titre); margin-bottom: 18px; }
@media (max-width: 760px) {
  .guide-prix-liens .btn { width: 100%; }
}

/* Grille des tarifs, pages suivi, confiance, annulation (2026-11-10) */
.grille-prix { max-width: 760px; margin: 32px auto 0; background: #fff; border: 1px solid var(--bord); border-radius: 16px; }
.grille-prix summary { font-weight: 600; font-size: 17px; padding: 20px 24px; cursor: pointer; }
.grille-prix-cadre { padding: 0 8px; overflow-x: auto; }
.grille-prix table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.grille-prix caption { text-align: start; padding: 0 16px 10px; color: var(--texte2); font-size: 14.5px; }
.grille-prix tbody th { text-align: start; font-weight: 600; padding: 10px 16px; border-bottom: 1px solid #f1ecdf; }
.grille-prix td { padding: 10px 16px; }
.grille-prix .aide { padding: 12px 24px 20px; color: var(--texte3); font-size: 14.5px; }
.page-info { padding-bottom: 72px; }
.page-info .article-contenu h2:first-child { margin-top: 0; }
.page-info .adresse-bloc { margin: 0 0 18px; }

/* Arabe (dir="rtl") : la mise en page suit les propriétés logiques ci-dessus. Les chiffres, adresses et
   prix restent lisibles ; la lettre elle-même (éditeur, PDF) garde le sens du texte saisi. */
[dir="rtl"] body { font-family: Tahoma, "Segoe UI", Arial, sans-serif; }
[dir="rtl"] .feuille, [dir="rtl"] .page-pdf, [dir="rtl"] #capy-lettres-zone { direction: ltr; }
[dir="rtl"] .appli-bas .btn, [dir="rtl"] .retour { unicode-bidi: plaintext; }
.accueil-texte h2 { margin: 28px 0 10px; }
.accueil-texte p, .accueil-texte li { line-height: 1.65; color: var(--texte2); }
.accueil-texte ul { padding-inline-start: 22px; }
.modeles-intro { margin: 0 0 18px; line-height: 1.65; }
