/* Polices hébergées en local (Plus Jakarta Sans : latin ; IBM Plex Sans Arabic : arabe). Licence OFL. */
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/ibm-plex-sans-arabic-arabic-400.woff2') format('woff2');unicode-range:U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/ibm-plex-sans-arabic-arabic-500.woff2') format('woff2');unicode-range:U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/ibm-plex-sans-arabic-arabic-600.woff2') format('woff2');unicode-range:U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/ibm-plex-sans-arabic-arabic-700.woff2') format('woff2');unicode-range:U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:400 800;font-display:swap;src:url('../fonts/plus-jakarta-sans-latin-var.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}
/* Ijraati — design « Turquoise Pro » (maquettes mobile + web).
   Mobile d'abord ; le menu passe en haut à partir de 900 px. */
:root{
  --alabaster:#F4F8F9; --sand:#E6F0F2; --border:#D1E3E5; --tint:#E3F3F6;
  --teal:#0D5C75; --teal-dark:#073E50; --teal-light:#1282A2; --cyan:#0284C7;
  --red:#C8372D; --amber:#D97706; --ink:#0F2C39; --muted:#5A7480;
  --radius:16px;
  --shadow:0 4px 20px -2px rgba(13,92,117,.06),0 2px 6px -1px rgba(0,0,0,.03);
  --shadow-hover:0 14px 30px -6px rgba(13,92,117,.12),0 4px 12px -2px rgba(0,0,0,.04);
  --zellige:url("data:image/svg+xml,%3Csvg width='64' height='64' viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1' stroke-opacity='0.08'%3E%3Cpath d='M32 0L40 24L64 32L40 40L32 64L24 40L0 32L24 24Z'/%3E%3Crect x='16' y='16' width='32' height='32' transform='rotate(45 32 32)'/%3E%3Ccircle cx='32' cy='32' r='6'/%3E%3C/g%3E%3C/svg%3E");
  --brand-grad:linear-gradient(135deg,#073E50 0%,#0D5C75 50%,#0284C7 100%);
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{font-family:"Plus Jakarta Sans","IBM Plex Sans Arabic","Segoe UI",Tahoma,system-ui,sans-serif;background:var(--alabaster);color:var(--ink);line-height:1.5;-webkit-font-smoothing:antialiased;min-height:100vh}
[dir=rtl] body{font-family:"IBM Plex Sans Arabic","Plus Jakarta Sans",Tahoma,system-ui,sans-serif;font-size:17px}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;border:0;background:none;cursor:pointer}
svg{flex:none}
:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}
::selection{background:var(--teal);color:#fff}
.app{min-height:100vh;display:flex;flex-direction:column}
.ico{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* ---------- Bandeau démo ---------- */
.demo{background:var(--sand);border-bottom:1px solid var(--border);color:#47606b;font-size:12px;text-align:center;padding:6px 12px}
.demo::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--teal);margin-inline-end:8px;animation:pulse 2s ease-in-out infinite}
@keyframes pulse{50%{opacity:.35}}

/* ---------- En-tête (mobile : dégradé turquoise) ---------- */
.top{position:relative;z-index:1;display:flex;align-items:center;gap:10px;color:#fff;padding:12px 16px 16px;
  background:var(--zellige),var(--brand-grad);border-radius:0 0 28px 28px;box-shadow:0 6px 18px -6px rgba(7,62,80,.4)}
.top.home{padding-bottom:46px}
.back{display:none;width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.15);color:#fff;font-size:18px;line-height:36px;text-align:center}
.top.sub .back{display:block}
[dir=rtl] .back{transform:scaleX(-1)}
.brand{display:flex;align-items:center;gap:10px;flex:1;min-width:0}
.brand-mark{width:38px;height:38px;border-radius:13px;display:grid;place-items:center;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.22)}
.brand-mark img{width:28px;height:28px;display:block}
.mk-color{display:none!important}
.brand-name{display:flex;align-items:baseline;gap:7px;font-weight:800;font-size:19px;letter-spacing:-.01em;white-space:nowrap}
.brand-name .sep{opacity:.35;font-weight:300}
.brand-name .ar{font-family:"IBM Plex Sans Arabic",sans-serif;font-weight:700;color:#FCD34D;line-height:1}
.brand-tag{display:none}
.tabs{display:none}
.lang{display:inline-flex;align-items:center;gap:7px;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.22);color:#fff;font-weight:700;font-size:13px;padding:7px 14px;border-radius:999px;transition:background .2s}
.lang:hover{background:rgba(255,255,255,.26)}
.lang .ico{width:15px;height:15px;color:#FCD34D}

/* ---------- Navigation basse (mobile) ---------- */
.bottom-nav{position:fixed;inset-inline:0;bottom:0;z-index:40;display:flex;justify-content:space-around;padding:8px 6px calc(10px + env(safe-area-inset-bottom));
  background:rgba(255,255,255,.95);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-top:1px solid var(--border)}
.bottom-nav a{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:66px;font-size:11px;font-weight:500;color:#8aa0a9}
.bottom-nav .pill{position:relative;padding:4px 16px;border-radius:999px;display:grid;place-items:center;transition:background .2s}
.bottom-nav a.on{color:var(--teal);font-weight:700}
.bottom-nav a.on .pill{background:rgba(13,92,117,.12)}
.fav-badge{position:absolute;top:-3px;inset-inline-end:6px;min-width:16px;height:16px;padding:0 4px;border-radius:99px;background:var(--red);color:#fff;font-size:9px;font-weight:800;display:grid;place-items:center}
.fav-badge[hidden]{display:none}

/* ---------- Contenu ---------- */
main{flex:1;width:100%;max-width:1152px;margin:0 auto;padding:0 16px 24px}
h1,h2,h3{letter-spacing:-.01em}
.sec{margin-top:30px}
.sec-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:14px}
h2{font-size:17px;font-weight:800;color:var(--ink)}
.sec-head p{font-size:12.5px;color:var(--muted);margin-top:2px}
.more{display:inline-flex;align-items:center;gap:4px;font-size:13px;font-weight:700;color:var(--teal);white-space:nowrap}
.more:hover{color:var(--teal-dark)}
[dir=rtl] .more .ico{transform:scaleX(-1)}
.more .ico{width:16px;height:16px;stroke-width:2.5}
.page-title{font-size:22px;font-weight:800;margin:22px 0 14px}
.empty .page-title{margin:0 0 12px}

/* ---------- Hero + recherche ---------- */
.hero{margin-top:-30px;position:relative;z-index:5}
.hero-badge,.hero h1,.hero>p{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.search{position:relative;max-width:672px;margin:0 auto}
.search .box{display:flex;align-items:center;background:#fff;border-radius:16px;padding:4px 8px;border:2px solid transparent;box-shadow:0 8px 24px -8px rgba(7,62,80,.3);transition:border-color .2s}
.search .box:focus-within{border-color:#67E8F9}
.search .ico{width:20px;height:20px;color:#94a8b0;margin:0 6px}
.search input{width:100%;padding:12px 6px;border:0;outline:0;background:transparent;font:inherit;font-size:14px;font-weight:500;color:var(--ink)}
.search input::placeholder{color:#94a8b0}
.results{position:absolute;inset-inline:0;top:calc(100% + 8px);z-index:20;background:#fff;border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow-hover);overflow:hidden;text-align:start;color:var(--ink)}
.results a{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--border);font-size:14px;font-weight:600}
.results a:last-child{border:0}
.results a:hover,.results a:focus{background:var(--alabaster)}
.results .none{padding:14px 16px;color:var(--muted);font-size:14px}
.chips{display:flex;gap:8px;overflow-x:auto;padding:16px 0 2px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{white-space:nowrap;display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid var(--border);padding:7px 14px;border-radius:999px;font-size:13px;font-weight:600;transition:border-color .2s}
.chip:hover{border-color:var(--teal)}

/* ---------- Catégories ---------- */
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.cat{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-align:center;background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:12px 4px;font-size:11.5px;font-weight:700;line-height:1.25;box-shadow:var(--shadow);transition:transform .22s cubic-bezier(.22,1,.36,1),box-shadow .22s,border-color .22s}
.cat:hover{transform:translateY(-3px);box-shadow:var(--shadow-hover);border-color:rgba(13,92,117,.4)}
.cat .ic{display:grid;place-items:center;width:44px;height:44px;margin-bottom:6px;border-radius:16px;font-size:22px;background:var(--tint)}
.cat em{display:none;font-style:normal;font-weight:500;font-size:11px;color:var(--muted)}
.cat:nth-child(8n+2) .ic,.row:nth-child(8n+2) .ic{background:#E0F7FA}
.cat:nth-child(8n+3) .ic,.row:nth-child(8n+3) .ic{background:#E0F2FE}
.cat:nth-child(8n+4) .ic,.row:nth-child(8n+4) .ic{background:#E6FAF5}
.cat:nth-child(8n+5) .ic,.row:nth-child(8n+5) .ic{background:#EDF2F4}
.cat:nth-child(8n+6) .ic,.row:nth-child(8n+6) .ic{background:#E5E9FD}
.cat:nth-child(8n+7) .ic,.row:nth-child(8n+7) .ic{background:#DDEBFD}
.cat:nth-child(8n+8) .ic,.row:nth-child(8n+8) .ic{background:#D3F5FB}

/* ---------- Événements de vie ---------- */
.events{display:flex;gap:12px;overflow-x:auto;padding-bottom:6px;scrollbar-width:none}
.events::-webkit-scrollbar{display:none}
.event{position:relative;overflow:hidden;flex:none;width:210px;display:block;color:#fff;border-radius:var(--radius);padding:18px;background:linear-gradient(135deg,#0D5C75,#073E50);box-shadow:var(--shadow);transition:transform .22s cubic-bezier(.22,1,.36,1),box-shadow .22s}
.event:hover{transform:translateY(-3px);box-shadow:var(--shadow-hover)}
.event::after{content:"";position:absolute;inset-inline-end:-16px;bottom:-16px;width:112px;height:112px;border-radius:50%;background:#fff;opacity:.1}
.event:nth-child(4n+2){background:linear-gradient(135deg,#1282A2,#0A5C75)}
.event:nth-child(4n+3){background:linear-gradient(135deg,#0284C7,#0369A1)}
.event:nth-child(4n+4){background:linear-gradient(135deg,#0F2C39,#071922)}
.event .ic{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:rgba(255,255,255,.15);font-size:22px;margin-bottom:20px}
.event .name{display:block;font-size:17px;font-weight:800;line-height:1.25}
.event em{display:flex;justify-content:space-between;gap:8px;font-style:normal;font-size:12px;opacity:.85;margin-top:4px;position:relative;z-index:1}
[dir=rtl] .event .arr{transform:scaleX(-1)}

/* ---------- Lignes de procédure ---------- */
.list{display:grid;gap:10px}
.row{display:flex;align-items:center;gap:14px;width:100%;text-align:start;background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:14px;box-shadow:var(--shadow);transition:transform .22s cubic-bezier(.22,1,.36,1),box-shadow .22s,border-color .22s}
.row:hover{transform:translateY(-3px);box-shadow:var(--shadow-hover);border-color:rgba(13,92,117,.4)}
.row .ic{display:grid;place-items:center;flex:none;width:48px;height:48px;border-radius:16px;background:var(--tint);font-size:22px}
.row .tx{flex:1;min-width:0}
.row .tx b{display:block;font-size:14.5px;font-weight:700;line-height:1.3}
.row:hover .tx b{color:var(--teal)}
.row .tx small{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:6px;font-size:12px;color:var(--muted);font-weight:500}
.pill{display:inline-flex;align-items:center;padding:1px 8px;border-radius:6px;font-weight:700;font-size:12px}
.pill.cost{background:#E3F3F6;color:var(--teal)}
.pill.delay{background:var(--alabaster);border:1px solid var(--border);color:#4a6672;font-weight:500}
.row .go{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:12px;background:var(--alabaster);color:#8aa0a9;transition:background .2s,color .2s}
.row:hover .go{background:var(--teal);color:#fff}
[dir=rtl] .row .go{transform:scaleX(-1)}

/* ---------- Fiche procédure ---------- */
article[data-procedure]{max-width:820px;margin:0 auto}
.sheet-head{margin-top:14px;background:#fff;border:1px solid var(--border);border-radius:20px;padding:16px 18px;box-shadow:var(--shadow)}
.crumbs{font-size:12px;color:var(--muted);margin-bottom:10px}
.crumbs a{font-weight:600}
.crumbs a:hover{text-decoration:underline}
.head-row{display:flex;gap:12px;align-items:flex-start}
.head-text{flex:1;min-width:0}
.head-pills{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:8px}
.head-pills .cat-pill{padding:2px 10px;border-radius:99px;background:rgba(13,92,117,.1);color:var(--teal);font-size:11.5px;font-weight:700}
.head-pills .alt{font-family:"IBM Plex Sans Arabic","Plus Jakarta Sans",sans-serif;font-size:12.5px;color:var(--muted);font-weight:600}
.sheet-head h1{font-size:22px;font-weight:800;line-height:1.25}
.sheet-head .slogan{margin:4px 0 0;font-size:13px;font-weight:500;color:var(--muted);line-height:1.4}
.fav{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:14px;background:var(--alabaster);border:1px solid var(--border);color:var(--amber);font-size:20px;transition:background .2s}
.fav:hover{background:var(--sand)}
.fav[aria-pressed=true]{background:#FEF3C7;border-color:#FCD34D}
.facts{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:12px}
.fact{background:#fff;border:1px solid var(--border);border-radius:16px;padding:12px 14px;box-shadow:var(--shadow)}
.fact small{display:block;font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#8aa0a9}
[dir=rtl] .fact small{text-transform:none;letter-spacing:0;font-size:12px}
.fact b{display:block;margin-top:2px;font-size:15px;font-weight:800;line-height:1.3}
.fact:first-child b{color:var(--teal)}
.card{background:#fff;border:1px solid var(--border);border-radius:20px;padding:18px;margin-top:14px;box-shadow:var(--shadow)}
.card-title{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;margin-bottom:14px}
[dir=rtl] .card-title{text-transform:none;letter-spacing:0;font-size:16px}
.q{font-size:13px;font-weight:600;color:var(--muted);margin:12px 0 6px}
.seg{display:flex;background:var(--alabaster);border:1px solid var(--border);border-radius:14px;padding:4px;gap:4px}
.seg button{flex:1;padding:9px 6px;border-radius:10px;font-size:13px;font-weight:600;color:#4a6672;transition:background .15s,color .15s}
.seg button.on{background:var(--teal);color:#fff;box-shadow:0 2px 8px -2px rgba(13,92,117,.5)}
.progress{height:8px;background:var(--border);border-radius:99px;overflow:hidden}
.progress i{display:block;height:100%;width:0;background:var(--teal);border-radius:99px;transition:width .3s}
.count{display:inline-block;margin:10px 0 4px;padding:3px 12px;border-radius:99px;background:rgba(13,92,117,.1);color:var(--teal);font-size:12px;font-weight:800}
.doc{display:flex;gap:12px;align-items:flex-start;margin-top:10px;padding:12px 14px;background:var(--alabaster);border:1px solid var(--border);border-radius:14px;cursor:pointer;transition:background .15s,border-color .15s}
.doc[hidden]{display:none}
.doc:hover{border-color:rgba(13,92,117,.35)}
.doc.done{background:#E8F5F8;border-color:rgba(13,92,117,.25)}
.doc input{appearance:none;-webkit-appearance:none;display:grid;place-items:center;flex:none;width:22px;height:22px;margin-top:1px;border:2px solid #b4c8ce;border-radius:7px;background:#fff;cursor:pointer;transition:.15s}
.doc input:checked{background:var(--teal);border-color:var(--teal)}
.doc input:checked::after{content:"✓";color:#fff;font-size:14px;font-weight:800;line-height:1}
.doc>span{font-size:14px;font-weight:600}
.doc.done>span .doc-name{color:var(--muted);text-decoration:line-through}
.doc small{display:block;font-weight:400;color:var(--muted);font-size:12.5px;margin-top:1px}
.doc .doc-name{display:block}
.steps{list-style:none}
.step{display:flex;gap:12px;padding-bottom:16px;position:relative}
.step:last-child{padding-bottom:0}
.step::before{content:"";position:absolute;inset-inline-start:15px;top:32px;bottom:2px;width:2px;background:var(--border)}
.step:last-child::before{display:none}
.step .n{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:50%;background:var(--teal);color:#fff;font-weight:800;font-size:14px}
.step b{display:block;font-size:14.5px;font-weight:700}
.step small{display:block;color:var(--muted);font-size:13px}
.text{font-size:14px;color:#2f4a55;margin-bottom:4px}
.faq{border-top:1px solid var(--border)}
.faq:first-of-type{border-top:0}
.faq summary{position:relative;list-style:none;cursor:pointer;padding:13px 0;padding-inline-end:30px;font-weight:700;font-size:14.5px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";position:absolute;inset-inline-end:2px;top:10px;font-size:22px;font-weight:400;color:var(--teal)}
.faq[open] summary::after{content:"−"}
.faq p{font-size:14px;color:#3b5560;padding:0 0 14px;line-height:1.65}
.source{font-size:12.5px;color:var(--muted);margin-top:18px;text-align:center}
.source a{text-decoration:underline}
.source b{color:var(--teal)}
.notice{margin-top:14px;background:#FEF6E4;border:1px solid #F5DDA0;color:#7a5b10;border-radius:var(--radius);padding:14px;font-size:14px}
.empty .notice{text-align:start;word-break:break-word}

/* ---------- Boutons ---------- */
.btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin-top:10px;padding:13px 20px;border-radius:13px;background:var(--teal);color:#fff;font-weight:700;font-size:14.5px;text-align:center;transition:background .2s}
.btn:hover{background:var(--teal-dark)}
.btn.ghost{background:#E3F3F6;color:var(--teal)}
.btn.ghost:hover{background:#d3ebf0}
.btn.warn{background:#FDECEA;color:var(--red)}
.btn.warn:hover{background:#fbdcd8}
.report{margin-top:16px}
.report summary{list-style:none;cursor:pointer}
.report summary::-webkit-details-marker{display:none}
.report textarea{width:100%;min-height:90px;margin-top:10px;padding:12px;border:1px solid var(--border);border-radius:13px;font:inherit;background:#fff;resize:vertical}
.hp{position:absolute;inset-inline-start:-9999px;width:1px;height:1px;opacity:0}

/* ---------- Bureaux ---------- */
.filter{display:grid;gap:8px;margin-bottom:14px}
.filter select{width:100%;padding:13px 14px;border-radius:14px;border:1px solid var(--border);font:inherit;font-weight:600;background:#fff;color:var(--ink)}
.filter .btn{margin-top:0}
.offices{display:grid;gap:10px}
.office{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:16px;box-shadow:var(--shadow)}
.office b{font-size:15px;font-weight:700}
.office p{font-size:13px;color:var(--muted);margin:3px 0 10px}
.tags{display:flex;gap:6px;flex-wrap:wrap}
.tag{font-size:12px;font-weight:600;padding:4px 10px;border-radius:99px;background:#E3F3F6;color:var(--teal)}
a.tag:hover{background:#d3ebf0}
.empty{text-align:center;color:var(--muted);padding:56px 20px;font-size:14px;max-width:520px;margin:0 auto}
.empty b{display:block;font-size:42px;margin-bottom:10px}
.empty .btn{display:inline-flex;width:auto}

/* ---------- Pied de page ---------- */
.foot{background:#fff;border-top:1px solid var(--border);padding:28px 16px 110px;margin-top:20px}
.foot-in{max-width:1152px;margin:0 auto}
.foot-grid{display:grid;gap:24px;padding-bottom:22px;border-bottom:1px solid var(--border)}
.foot .brand{flex:none}
.foot .brand-mark{background:none;border:0;width:44px;height:44px}
.foot .mk-white{display:none!important}.foot .mk-color{display:block!important}
.foot .brand-mark img{width:40px;height:40px}
.foot .brand-name{color:var(--ink)}
.foot .brand-name .sep{color:var(--border)}
.foot .brand-name .ar{color:var(--teal)}
.foot p{font-size:13.5px;color:var(--muted);max-width:440px;margin-top:10px}
.foot h4{font-size:11.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;margin-bottom:10px}
[dir=rtl] .foot h4{text-transform:none;letter-spacing:0;font-size:14px}
.foot ul{list-style:none;display:grid;gap:8px;font-size:14px;color:var(--muted)}
.foot ul a:hover{color:var(--teal)}
.help{display:block;background:var(--alabaster);border:1px solid var(--border);border-radius:14px;padding:14px}
.help span{display:block;font-size:12px;color:var(--muted)}
.help strong{display:block;font-size:22px;font-weight:800;color:var(--teal);margin:2px 0}
.help small{font-size:11px;color:#8aa0a9}
.foot-bottom{display:flex;flex-direction:column;gap:6px;padding-top:18px;font-size:12px;color:#8aa0a9}

.toast{position:fixed;bottom:96px;left:50%;transform:translate(-50%,20px);max-width:90%;padding:10px 18px;border-radius:99px;background:var(--ink);color:#fff;font-size:13px;text-align:center;opacity:0;pointer-events:none;transition:.25s;z-index:60}
.toast.on{opacity:1;transform:translate(-50%,0)}

/* ---------- Tablette ---------- */
@media (min-width:600px){
  .cat em{display:block}
  .list,.offices{grid-template-columns:1fr 1fr}
  .filter{grid-template-columns:1fr 1fr;max-width:560px}
  .foot-grid{grid-template-columns:2fr 1fr 1fr}
}

/* ---------- Ordinateur : menu en haut, hero en carte ---------- */
@media (min-width:900px){
  .bottom-nav{display:none}
  .top{position:sticky;top:0;z-index:30;height:72px;padding:0 max(24px,calc((100vw - 1152px)/2 + 24px));gap:16px;justify-content:space-between;
    background:rgba(255,255,255,.88);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid var(--border);border-radius:0;box-shadow:none;color:var(--ink)}
  .top.home{padding-bottom:0}
  .back{display:none!important}
  .brand{flex:none}
  .brand-mark{width:44px;height:44px;border-radius:0;border:0;background:none}
  .mk-white{display:none!important}.mk-color{display:block!important}
  .brand-mark img{width:42px;height:42px}
  .brand-name{color:var(--ink);font-size:24px}
  .brand-name .sep{color:var(--border);opacity:1}
  .brand-name .ar{color:var(--teal)}
  .brand-text{display:flex;flex-direction:column}
  .brand-tag{display:block;font-size:11px;font-weight:500;color:#8aa0a9;margin-top:2px}
  .tabs{display:flex;background:var(--alabaster);border:1px solid rgba(209,227,229,.8);border-radius:16px;padding:6px;gap:2px}
  .tabs a{display:flex;align-items:center;gap:8px;padding:8px 16px;border-radius:12px;font-size:14px;font-weight:500;color:#4a6672;transition:background .2s,color .2s}
  .tabs a:hover{color:var(--ink)}
  .tabs a.on{background:#fff;color:var(--teal);font-weight:700;box-shadow:0 1px 3px rgba(0,0,0,.08)}
  .tabs .ico{width:16px;height:16px}
  .tabs .pill{display:contents}
  .tabs .fav-badge{order:2}
  .tabs .fav-badge{position:static;background:rgba(13,92,117,.12);color:var(--teal);font-size:11px;height:auto;padding:1px 7px}
  .lang{background:var(--alabaster);border-color:var(--border);color:var(--ink);font-size:14px;padding:8px 14px;border-radius:12px}
  .lang:hover{background:var(--sand)}
  .lang .ico{color:var(--teal)}

  main{padding:0 24px 60px}
  .hero{margin-top:40px;padding:56px 40px 44px;border-radius:24px;color:#fff;text-align:center;
    background:radial-gradient(circle at 100% 0,rgba(103,232,249,.18),transparent 42%),radial-gradient(circle at 0 100%,rgba(94,234,212,.16),transparent 42%),var(--zellige),var(--brand-grad);
    box-shadow:0 24px 48px -12px rgba(7,62,80,.35)}
  .hero-badge{position:static;width:auto;height:auto;overflow:visible;clip:auto;display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border-radius:99px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.15);font-size:13px;font-weight:500;color:#ccfbf1;margin-bottom:20px}
  .hero-badge::before{content:"";width:8px;height:8px;border-radius:50%;background:#67E8F9}
  .hero h1{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal;font-size:46px;font-weight:800;line-height:1.15;margin-bottom:12px}
  .hero>p{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal;max-width:640px;margin:0 auto 32px;font-size:18px;color:rgba(204,251,241,.92)}
  .search .box{padding:6px 10px;box-shadow:0 12px 32px -8px rgba(0,0,0,.3)}
  .search input{font-size:16px;padding:14px 6px}
  .chips{justify-content:center;flex-wrap:wrap;overflow:visible;padding-top:20px}
  .chip{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.18);color:#fff;font-weight:500}
  .chip:hover{background:rgba(255,255,255,.22);border-color:rgba(255,255,255,.3)}

  .sec{margin-top:48px}
  h2{font-size:24px}
  .sec-head p{font-size:14px}
  .grid{grid-template-columns:repeat(8,1fr);gap:14px}
  .cat{padding:18px 6px;font-size:13px}
  .events{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;overflow:visible}
  .event{width:auto;padding:20px}
  .list{gap:16px}
  .row{padding:18px 20px}
  .row .tx b{font-size:16px}
  .page-title{font-size:30px;margin:36px 0 20px}
  .offices{grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}

  article[data-procedure]{margin-top:28px}
  .sheet-head{padding:24px 28px;border:0;color:#fff;background:var(--zellige),var(--brand-grad);box-shadow:0 18px 40px -14px rgba(7,62,80,.4);border-radius:24px}
  .crumbs{color:#bfe3ec}
  .head-pills .cat-pill{background:rgba(255,255,255,.15);color:#fff}
  .head-pills .alt{color:#99f6e4}
  .sheet-head h1{font-size:30px}
  .fav{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.2)}
  .fav:hover{background:rgba(255,255,255,.22)}
  .fav[aria-pressed=true]{background:#FEF3C7;border-color:#FCD34D;color:var(--amber)}
  .facts{gap:14px}
  .card{padding:24px}
  .btn{width:auto;display:inline-flex}
  .btn+.btn{margin-inline-start:8px}

  .foot{padding:40px 24px 28px}
  .foot-grid{grid-template-columns:2fr 1fr 1fr;gap:40px}
  .foot-bottom{flex-direction:row;justify-content:space-between}
  .toast{bottom:32px}
}

/* ---------- Page « À propos » ---------- */
.about{max-width:760px;margin:0 auto}
.about-hero{text-align:center;padding:28px 0 6px}
.about-logo{width:200px;height:auto;margin:0 auto 14px;display:block}
.about-hero h1{font-size:24px;font-weight:800;line-height:1.25}
.about-hero p{margin:12px auto 0;max-width:600px;color:#3b5560;font-size:15px}
.about-points{list-style:none;display:grid;gap:14px}
.about-points li{padding:14px 16px;background:var(--alabaster);border:1px solid var(--border);border-radius:14px}
.about-points b{display:block;font-size:15px;color:var(--teal);margin-bottom:2px}
.about-points span{font-size:14px;color:#3b5560}
.about-pitch{margin:22px 0 0;padding:18px 20px;border-inline-start:4px solid var(--teal);background:#fff;border-radius:0 16px 16px 0;font-size:16px;font-weight:600;line-height:1.55;box-shadow:var(--shadow)}
[dir=rtl] .about-pitch{border-radius:16px 0 0 16px}
.about-motto{margin:18px 0 6px;text-align:center;font-weight:800;color:var(--teal)}
@media (min-width:900px){.about-logo{width:240px}.about-hero h1{font-size:34px}.about-points{grid-template-columns:1fr 1fr}}

/* ---------- Newsletter + réseaux sociaux (pied de page) ---------- */
.foot .newsletter p{margin:0 0 10px;font-size:13.5px}
.nl-row{display:flex;gap:8px}
.nl-row input{flex:1;min-width:0;padding:11px 12px;border:1px solid var(--border);border-radius:12px;background:#fff;font:inherit;font-size:14px;color:var(--ink)}
.nl-row input:focus{outline:2px solid var(--cyan);outline-offset:1px}
.nl-row button{flex:none;padding:11px 16px;border-radius:12px;background:var(--teal);color:#fff;font-weight:700;font-size:14px;transition:background .2s}
.nl-row button:hover{background:var(--teal-dark)}
.foot .newsletter small{display:block;margin-top:8px;font-size:11.5px;color:#8aa0a9}
.foot h4.social-title{margin-top:20px}
.foot .social{list-style:none;display:flex;flex-wrap:wrap;gap:8px}
.social a,.social .off{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--alabaster);border:1px solid var(--border);color:var(--teal);transition:background .2s,color .2s,transform .2s}
.social a:hover{background:var(--teal);color:#fff;transform:translateY(-2px)}
.social .off{opacity:.45;cursor:default}
.social .ico{width:20px;height:20px}
.social .fill{fill:currentColor;stroke:none}

/* ---------- Confidentialité, consentement, bandeau cookies ---------- */
.legal{max-width:760px;margin:0 auto}
.legal-date{color:var(--muted);font-size:13px;margin:-6px 0 6px}
.legal .card p{font-size:14.5px;color:#2f4a55;margin-top:8px}
.legal .card p:first-of-type{margin-top:0}
.legal a{color:var(--teal);text-decoration:underline}
.legal code{background:var(--alabaster);border:1px solid var(--border);border-radius:6px;padding:0 6px;font-size:13px}
.todo{background:#FEF3C7;color:#7a5b10;border-radius:6px;padding:0 6px}
.nl-consent{display:flex;gap:8px;align-items:flex-start;margin-top:10px;font-size:12.5px;color:#4a6672;cursor:pointer}
.nl-consent input{flex:none;width:18px;height:18px;margin-top:1px;accent-color:var(--teal)}
.nl-consent a{text-decoration:underline;color:var(--teal)}
.link-btn{background:none;color:var(--teal);font-size:12px;text-decoration:underline;cursor:pointer;padding:0}
.cookie{position:fixed;inset-inline:12px;bottom:84px;z-index:70;max-width:560px;margin-inline:auto;background:#fff;border:1px solid var(--border);border-radius:18px;padding:16px;box-shadow:0 20px 40px -12px rgba(7,62,80,.35)}
.cookie[hidden]{display:none}
.cookie p{font-size:13.5px;color:#2f4a55}
.cookie a{color:var(--teal);text-decoration:underline}
.cookie-btns{display:flex;gap:8px;margin-top:12px}
.cookie-btns .btn{margin-top:0;flex:1;padding:10px 14px}
@media (min-width:900px){.cookie{bottom:24px;inset-inline-start:24px;inset-inline-end:auto;margin-inline:0}}

/* ---------- Fiche : vérifié, à savoir, fiches liées ---------- */
.ver-pill{padding:2px 10px;border-radius:99px;background:#DCF5EA;color:#0b6b43;font-size:11.5px;font-weight:700}
@media (min-width:900px){.ver-pill{background:rgba(255,255,255,.18);color:#d9fbe9}}
.about-block p{font-size:14.5px;color:#2f4a55;margin-top:10px}
.about-block p:first-of-type{margin-top:0}
.related{margin-top:30px}

/* ---------- Avertissement « site non officiel » ---------- */
.disclaimer{display:flex;gap:12px;align-items:flex-start;margin-top:14px;padding:14px 16px;border:1px solid #F0D58A;border-radius:16px;background:#FFF8E1;color:#5f4a0a}
.disclaimer b{display:block;font-size:14px;font-weight:800;margin-bottom:2px}
.disclaimer p{font-size:13px;line-height:1.55}
.disclaimer .dis-src{margin-top:6px;font-weight:600}
.disclaimer a{color:#7a4f00;text-decoration:underline}
.dis-ic{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:#FDE9A8;font-size:16px}
.foot-disclaimer{margin-top:16px;padding:10px 14px;border-radius:12px;background:#FFF8E1;border:1px solid #F0D58A;color:#5f4a0a;font-size:12.5px;font-weight:600;line-height:1.5}

/* ---------- Accueil : section « À propos » (ordinateur seulement) ---------- */
.home-about{display:none}
@media (min-width:900px){
  .home-about{display:block}
  .about-box{display:grid;grid-template-columns:1fr 1.25fr;gap:32px;align-items:center;padding:32px 36px;background:#fff;border:1px solid var(--border);border-radius:24px;box-shadow:var(--shadow)}
  .about-text h2{font-size:26px;margin-bottom:8px}
  .about-text .lead{font-size:17px;font-weight:800;color:var(--teal);margin-bottom:8px}
  .about-text p{font-size:14.5px;color:#3b5560;line-height:1.65}
  .about-text .more{margin-top:14px}
  .about-mini{list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:12px}
  .about-mini li{padding:14px 16px;background:var(--alabaster);border:1px solid var(--border);border-radius:16px}
  .about-mini b{display:block;font-size:14px;color:var(--teal);margin-bottom:2px}
  .about-mini span{font-size:13px;color:#3b5560;line-height:1.55}
}

/* ---------- Impression / PDF de la fiche (bouton « Imprimer ») ---------- */
@media print {
  .demo, .top, .bottom-nav, .foot .foot-grid, .cookie, .toast, .fav, #share, #print, .report, .related, .seg, .q, .progress, .count, .btn { display: none !important; }
  body, .app { background: #fff !important; }
  .foot { border: 0; }
  .foot-disclaimer { display: block !important; margin-top: 1rem; font-size: 11px; }
  .card, .facts, .disclaimer { box-shadow: none !important; break-inside: avoid; }
  a { color: #000; text-decoration: none; }
  .source a::after { content: " (" attr(href) ")"; font-size: 10px; }
  .doc input { display: inline-block; }
  .doc[hidden] { display: none !important; }
}

/* Emplacement publicitaire : hauteur réservée (pas de décalage de page) */
.ad{margin:16px 0;min-height:110px;text-align:center}
.ad[hidden]{display:none}
.ad small{display:block;font-size:11px;color:var(--muted)}
.ad ins{display:block;min-height:90px}
@media print{.ad{display:none!important}}
