/* AIuris — site vitrine. Mêmes couleurs et polices que l'application (app.aiuris.fr). */

/* Polices hébergées sur le site (aucun appel à Google Fonts) : fichiers variables, jeu latin.
   Licence SIL Open Font License 1.1. */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('/polices/ibm-plex-sans-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('/polices/source-serif-4-latin.woff2') format('woff2');
}
:root {
  --ink: #1C2B45;
  --ink-soft: #3A4763;
  --parchment: #EDE9DE;
  --card: #FBF9F4;
  --burgundy: #8A3640;
  --burgundy-dark: #6E2933;
  --brass: #A9834E;
  --line: #D9D2C0;
  --slate: #5B6478;
  --good: #2F6B4F;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--parchment);
  color: var(--ink);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Source Serif 4', serif; font-weight: 600; line-height: 1.2; margin: 0; }
a { color: inherit; }
p { margin: 0; }
img { max-width: 100%; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.lien-evitement { position: absolute; left: -9999px; top: 0; }
.lien-evitement:focus { left: 12px; top: 12px; z-index: 20; background: var(--card); padding: 8px 12px; border: 1px solid var(--ink); }

/* ---------- En-tête ---------- */
header.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(237, 233, 222, .94);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .container { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.wordmark {
  display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none;
  font-family: 'Source Serif 4', serif; font-size: 20px; font-weight: 600; letter-spacing: .01em;
}
.wordmark img { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
nav.liens { display: flex; align-items: center; gap: 24px; font-size: 14.5px; }
nav.liens a { text-decoration: none; color: var(--ink-soft); }
nav.liens a:hover, nav.liens a[aria-current="page"] { color: var(--ink); }
nav.liens a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--burgundy); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.top-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; font-size: 14.5px; font-weight: 500; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.btn-primaire { background: var(--burgundy); color: #fff; }
.btn-primaire:hover { background: var(--burgundy-dark); }
.btn-second { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-second:hover { background: var(--card); }
.btn-petit { padding: 8px 14px; font-size: 14px; }
@media (max-width: 960px) {
  .top .container { flex-wrap: wrap; padding-top: 10px; }
  nav.liens {
    order: 3; width: 100%; overflow-x: auto; gap: 22px; padding: 4px 0 12px;
    scrollbar-width: none; white-space: nowrap;
  }
  nav.liens::-webkit-scrollbar { display: none; }
}
@media (max-width: 480px) {
  .top-actions .btn-primaire { display: none; }
}

/* ---------- Fil d'Ariane ---------- */
.ariane { font-size: 13px; color: var(--slate); padding-top: 26px; }
.ariane ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ariane li + li::before { content: "›"; margin-right: 6px; color: var(--line); }
.ariane a { color: var(--slate); }

/* ---------- Accroche ---------- */
.hero { padding: 76px 0 84px; }
.hero .container { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.hero .container > * { min-width: 0; }
.surtitre {
  display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(34px, 5vw, 50px); letter-spacing: -.01em; }
.hero h1 em, .page-tete h1 em { font-style: normal; color: var(--burgundy); }
.hero .intro { margin-top: 22px; font-size: 18px; color: var(--ink-soft); max-width: 34em; }
.actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.note { margin-top: 16px; font-size: 13.5px; color: var(--slate); }
@media (max-width: 900px) {
  .hero { padding: 48px 0 60px; }
  .hero .container { grid-template-columns: minmax(0, 1fr); gap: 44px; }
}

/* En-tête des pages intérieures */
.page-tete { padding: 18px 0 64px; }
.page-tete .container > div { max-width: 760px; }
.page-tete h1 { font-size: clamp(32px, 4.6vw, 46px); letter-spacing: -.01em; margin-top: 26px; }
.page-tete .intro { margin-top: 20px; font-size: 18px; color: var(--ink-soft); }
@media (max-width: 760px) { .page-tete { padding-bottom: 44px; } }

/* ---------- Maquettes (données fictives) ---------- */
.maquette {
  background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 1px 0 var(--line), 0 24px 48px -28px rgba(28, 43, 69, .35);
  font-size: 13.5px;
}
.maquette-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.maquette-tete strong { font-family: 'Source Serif 4', serif; font-size: 16px; }
.maquette-tete span { color: var(--slate); font-size: 12.5px; white-space: nowrap; }
.onglets { display: flex; gap: 22px; padding: 0 18px; border-bottom: 1px solid var(--line); color: var(--slate); font-size: 13px; overflow: hidden; white-space: nowrap; }
.onglets span { padding: 11px 0; border-bottom: 2px solid transparent; }
.onglets .actif { color: var(--ink); border-bottom-color: var(--burgundy); font-weight: 500; }
.echeances { margin: 14px 18px 4px; padding: 10px 12px; border-left: 3px solid var(--burgundy); background: #F5EEE6; font-size: 13px; }
.echeances strong { display: block; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--burgundy); margin-bottom: 3px; }
.mail { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.mail:last-child { border-bottom: none; }
.mail-ligne { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.mail-exp { font-weight: 600; }
.mail-date { color: var(--slate); font-size: 12px; white-space: nowrap; }
.mail-resume { color: var(--ink-soft); margin: 4px 0 8px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-size: 11.5px; padding: 2px 8px; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); }
.badge.dossier { border-color: var(--ink); color: var(--ink); }
.badge.action { background: var(--burgundy); border-color: var(--burgundy); color: #fff; }
.badge.urgente { border-color: var(--burgundy); color: var(--burgundy); font-weight: 500; }
.badge.doree { border-color: var(--brass); color: #7A5D33; }
.badge.info { color: var(--slate); }
.badge.fait { border-color: var(--good); color: var(--good); }

/* Maquette du formulaire d'acte */
.acte { display: grid; grid-template-columns: 1fr 1.1fr; }
.acte > div { padding: 16px 18px; min-width: 0; }
.acte > div + div { border-left: 1px solid var(--line); background: #fff; }
.acte .etiquette { display: block; font-size: 11.5px; color: var(--slate); margin: 10px 0 3px; }
.acte .etiquette:first-child { margin-top: 0; }
.acte .valeur { border: 1px solid var(--line); background: #fff; padding: 6px 8px; font-size: 13px; }
.acte .apercu-titre { font-size: 11.5px; color: var(--slate); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.acte .apercu { font-family: 'Source Serif 4', serif; font-size: 13.5px; line-height: 1.6; color: var(--ink); }
.acte .apercu mark { background: #F3E7C9; color: inherit; padding: 0 2px; }
@media (max-width: 560px) {
  .acte { grid-template-columns: 1fr; }
  .acte > div + div { border-left: none; border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
section { padding: 84px 0; }
section.claire { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.titre-section { max-width: 680px; margin-bottom: 48px; }
.titre-section h2 { font-size: clamp(28px, 3.6vw, 36px); }
.titre-section p { margin-top: 14px; font-size: 17px; color: var(--ink-soft); }
@media (max-width: 760px) { section { padding: 60px 0; } .titre-section { margin-bottom: 34px; } }

/* Fonctionnalités (accueil) */
.fonctions { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: var(--parchment); }
.fonction { padding: 30px 28px 32px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.fonction:last-child { border-right: none; }
.fonction .num { font-family: 'Source Serif 4', serif; font-size: 14px; color: var(--brass); font-weight: 600; letter-spacing: .06em; }
.fonction h3 { font-size: 22px; margin: 10px 0 12px; }
.fonction > p { color: var(--ink-soft); }
.fonction .suite { margin-top: auto; padding-top: 20px; font-size: 14.5px; font-weight: 500; color: var(--burgundy); text-decoration: none; }
.fonction .suite:hover { text-decoration: underline; }
.puces { margin: 18px 0 0; padding: 0; list-style: none; font-size: 14.5px; color: var(--ink-soft); }
.puces li { padding: 7px 0 7px 22px; position: relative; border-top: 1px solid var(--line); }
.puces li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 8px; height: 8px; background: var(--burgundy); transform: rotate(45deg); }
@media (max-width: 900px) {
  .fonctions { grid-template-columns: 1fr; }
  .fonction { border-right: none; border-bottom: 1px solid var(--line); }
  .fonction:last-child { border-bottom: none; }
}

.encadres { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.encadres > div { padding: 22px 24px; border: 1px solid var(--line); background: var(--parchment); }
section:not(.claire) .encadres > div { background: var(--card); }
.encadres h3 { font-size: 18px; margin-bottom: 6px; }
.encadres p { color: var(--ink-soft); font-size: 15px; }
.encadres.trois { grid-template-columns: repeat(3, 1fr); }
.plus { margin-top: 28px; }
@media (max-width: 900px) { .encadres.trois { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .encadres { grid-template-columns: 1fr; } }

/* Étapes */
.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; counter-reset: etape; margin: 0; padding: 0; list-style: none; }
.etape { counter-increment: etape; }
.etape::before {
  content: counter(etape); display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid var(--ink); border-radius: 50%;
  font-family: 'Source Serif 4', serif; font-size: 18px; font-weight: 600; margin-bottom: 18px;
}
.etape h3 { font-size: 20px; margin-bottom: 8px; }
.etape p { color: var(--ink-soft); font-size: 15px; }
.etape .petit { margin-top: 10px; font-size: 13px; color: var(--slate); }
@media (max-width: 900px) { .etapes { grid-template-columns: 1fr; gap: 30px; } }

/* Détail d'une fonctionnalité : texte + illustration */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.detail > * { min-width: 0; }
.detail + .detail { margin-top: 72px; }
.detail.inverse > :first-child { order: 2; }
.detail h2 { font-size: clamp(26px, 3.2vw, 32px); margin-bottom: 14px; }
.detail p { color: var(--ink-soft); }
.detail p + p { margin-top: 12px; }
@media (max-width: 900px) {
  .detail { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .detail.inverse > :first-child { order: 0; }
  .detail + .detail { margin-top: 56px; }
}

/* Garanties */
.garanties { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.garantie { padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 28px 1fr; gap: 14px; }
.garantie svg { margin-top: 3px; }
.garantie h3 { font-family: 'IBM Plex Sans', sans-serif; font-size: 16px; font-weight: 600; margin-bottom: 3px; }
.garantie p { color: var(--ink-soft); font-size: 15px; }
.note-bas { margin-top: 30px; font-size: 14px; color: var(--slate); max-width: 760px; }
.note-bas a, .texte a, .faq a { color: var(--burgundy); }
@media (max-width: 760px) { .garanties { grid-template-columns: 1fr; } }

/* Texte courant (pages Sécurité, etc.) */
.texte { max-width: 760px; }
.texte h2 { font-size: clamp(24px, 3vw, 28px); margin: 48px 0 14px; }
.texte h2:first-child { margin-top: 0; }
.texte p, .texte li { color: var(--ink-soft); }
.texte p + p { margin-top: 12px; }
.texte ul { padding-left: 20px; margin: 12px 0 0; }
.texte li { margin-bottom: 8px; }
.tableau { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14.5px; background: var(--card); border: 1px solid var(--line); }
.tableau th, .tableau td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tableau th { font-weight: 600; font-size: 13px; color: var(--slate); }
.tableau td { color: var(--ink-soft); }
.tableau td:first-child { color: var(--ink); font-weight: 500; }
@media (max-width: 560px) {
  .tableau, .tableau tbody, .tableau tr, .tableau td { display: block; width: 100%; }
  .tableau thead { display: none; }
  .tableau tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .tableau td { border: none; padding: 3px 14px; }
}

/* FAQ */
.faq { max-width: 820px; }
.faq h2 { font-size: 24px; margin: 48px 0 10px; }
.faq h2:first-child { margin-top: 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative;
  font-weight: 600; font-size: 16.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 22px; font-weight: 400; color: var(--burgundy); }
.faq details[open] summary::after { content: "–"; }
.faq .reponse { padding: 0 0 20px; color: var(--ink-soft); }
.faq .reponse p + p { margin-top: 10px; }

/* Liens vers les autres pages */
.voir-aussi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.voir-aussi a { display: block; padding: 22px 24px; border: 1px solid var(--line); background: var(--card); text-decoration: none; }
.voir-aussi a:hover { border-color: var(--ink); }
.voir-aussi strong { display: block; font-family: 'Source Serif 4', serif; font-size: 18px; margin-bottom: 4px; }
.voir-aussi span { font-size: 14.5px; color: var(--ink-soft); }
@media (max-width: 900px) { .voir-aussi { grid-template-columns: 1fr; } }

/* ---------- Appel final ---------- */
.appel { background: var(--ink); color: #fff; padding: 76px 0; border: none; }
.appel .container { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.appel h2 { font-size: clamp(28px, 3.6vw, 36px); }
.appel p { margin-top: 14px; color: #C9CEDA; font-size: 17px; }
.appel .actions { margin-top: 0; flex-direction: column; align-items: flex-start; }
.appel .btn-second { color: #fff; border-color: rgba(255,255,255,.6); }
.appel .btn-second:hover { background: rgba(255,255,255,.08); }
.appel .mail-contact { font-size: 14px; color: #C9CEDA; }
.appel .mail-contact a { color: #fff; }
@media (max-width: 900px) { .appel .container { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
footer.pied { padding: 56px 0 36px; font-size: 14px; color: var(--slate); }
.pied-grille { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.pied-grille p { margin-top: 12px; max-width: 26em; }
.pied-grille .pied-titre { margin-top: 0; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.pied-grille ul { list-style: none; margin: 0; padding: 0; }
.pied-grille li { margin-bottom: 8px; }
footer.pied a { color: var(--slate); text-decoration: none; }
footer.pied a:hover { color: var(--ink); text-decoration: underline; }
.pied-bas { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
@media (max-width: 760px) { .pied-grille { grid-template-columns: 1fr 1fr; } .pied-grille > :first-child { grid-column: 1 / -1; } }
