/* sig-portal.aut.gov.ma home v2 (designer-f3, 2026-11-26: docs/design/home-v2 on its branch). */
/* Fonts, self-hosted (OFL; the CSP allows same-origin fonts only): Latin for Instrument Sans and
   Manrope, Arabic for Noto Kufi Arabic. Variable files: one per family, every weight. */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(/site-media/c694e787-027d-4752-b73a-445e1019b70c) 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: Manrope; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/site-media/9d05fe8d-7e81-46cf-9723-151406baec6d) 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: "Noto Kufi Arabic"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/site-media/98af27f8-9c97-4f41-a5eb-85d7700364e1) 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; }
:root{--navy:#00004F;--navy2:#08086A;--ink:#101D38;--slate:#3D4A65;--wash:#F2F6F7;--line:#DCE4EC;--teal:#21CDC0;--teal-d:#0A7C74;--blue:#006BB0;--blue-h:#005A94;--soft:#C9CFE6}
*{box-sizing:border-box}html,body{margin:0;background:#fff;color-scheme:light}.page{font:400 17px/1.6 Manrope,system-ui,sans-serif;color:var(--slate);background:#fff}
.page[dir=rtl],[dir=rtl] .h,[dir=rtl] h1,[dir=rtl] h2,[dir=rtl] h3{font-family:"Noto Kufi Arabic",Manrope,sans-serif;letter-spacing:0}
a{color:var(--blue)}.wrap{max-width:1200px;margin:0 auto;padding:0 32px}
h1,h2,h3,.h{font-family:"Instrument Sans",Manrope,sans-serif;color:var(--ink);font-weight:700;margin:0}
.eyebrow{display:flex;align-items:center;gap:14px;font:600 13px/1 Manrope,sans-serif;letter-spacing:.18em;text-transform:uppercase;color:var(--teal-d)}
.eyebrow:before{content:"";width:28px;height:2px;background:currentColor}
[dir=rtl] .eyebrow{letter-spacing:0;font-family:"Noto Kufi Arabic",sans-serif;font-size:14px}
/* header */
header{background:#fff;border-bottom:1px solid var(--line)}header .wrap{height:76px;display:flex;align-items:center;gap:22px}
header .logo{height:44px}header .site{font:600 15px/1.2 Manrope;color:var(--ink);padding-inline-start:20px;border-inline-start:1px solid var(--line)}
[dir=rtl] header .site{font-family:"Noto Kufi Arabic"}header nav{margin-inline-start:auto;display:flex;align-items:center;gap:22px;font-weight:500;font-size:15px}
header nav a{color:var(--ink);text-decoration:none}.lang{border:1px solid var(--line);border-radius:6px;padding:6px 10px;font-weight:600}
.btn{display:inline-flex;align-items:center;gap:10px;background:var(--blue);color:#fff;text-decoration:none;font:700 16px/1 Manrope;padding:16px 26px;border-radius:4px;box-shadow:0 10px 24px -12px rgba(0,107,176,.7)}
[dir=rtl] .btn{font-family:"Noto Kufi Arabic"}.btn.sm{padding:11px 18px;font-size:15px;box-shadow:none;white-space:nowrap}.btn .ar{font-size:18px}
/* hero */
.hero{position:relative;background:var(--navy) url(/site-media/63c561a4-2342-4ec7-8fe9-e109910b4813) right top/480px;color:#fff;overflow:hidden}
.hero:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 12% 0%,rgba(33,205,192,.14),transparent 30%),linear-gradient(90deg,var(--navy) 38%,rgba(0,0,79,.6) 70%,rgba(0,0,79,.2));pointer-events:none}
[dir=rtl] .hero{background-position:left top}[dir=rtl] .hero:after{background:radial-gradient(circle at 88% 0%,rgba(33,205,192,.14),transparent 30%),linear-gradient(270deg,var(--navy) 38%,rgba(0,0,79,.6) 70%,rgba(0,0,79,.2))}
.hero .wrap{position:relative;z-index:1;display:grid;grid-template-columns:1.15fr .85fr;gap:56px;padding-top:88px;padding-bottom:72px;align-items:center}
.hero .eyebrow{color:var(--teal)}.hero h1{color:#fff;font-size:64px;line-height:1;letter-spacing:-.045em;margin:22px 0 22px}
[dir=rtl] .hero h1{font-size:52px;line-height:1.25}
.hero p.lede{color:var(--soft);font-size:19px;max-width:560px;margin:0 0 32px}
.search{display:flex;margin-top:36px;max-width:620px;background:#fff;border-radius:4px;overflow:hidden}
.search input{flex:1;border:0;padding:0 18px;font:500 16px Manrope;color:var(--ink);min-width:0}[dir=rtl] .search input{font-family:"Noto Kufi Arabic"}
.search .short{display:none}.search button{border:0;background:var(--teal);color:var(--navy);font:700 15px Manrope;padding:16px 22px;cursor:pointer}[dir=rtl] .search button{font-family:"Noto Kufi Arabic"}
.facts{display:flex;flex-wrap:wrap;gap:10px 28px;margin-top:22px;font-size:14px;color:var(--soft)}.facts b{color:#fff;font-weight:700}
/* sample card */
.sample{background:#fff;border-radius:6px;box-shadow:0 30px 60px -30px rgba(0,0,0,.6);overflow:hidden;color:var(--slate)}
.sample .top{height:4px;background:linear-gradient(90deg,var(--teal),var(--blue))}.sample .in{padding:24px 26px}
.sample .tag{font:600 12px Manrope;letter-spacing:.16em;text-transform:uppercase;color:var(--teal-d)}[dir=rtl] .sample .tag{letter-spacing:0;font-family:"Noto Kufi Arabic"}
.sample h3{font-size:22px;margin:8px 0 16px;letter-spacing:-.02em}
.row{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-top:1px solid var(--line);font-size:15px}.row span:first-child{color:var(--slate)}.row span:last-child{color:var(--ink);font-weight:600;text-align:end}
.sample .foot{margin-top:14px;font-size:13px;color:var(--slate)}
/* steps */
section.steps{padding:96px 0 40px}.steps .head{display:flex;justify-content:space-between;align-items:end;gap:40px;margin-bottom:44px}
.steps h2{font-size:44px;letter-spacing:-.04em;line-height:1.05;margin-top:16px}[dir=rtl] .steps h2{font-size:38px;line-height:1.3}
.steps .head p{max-width:420px;margin:0}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.card{border:1px solid var(--line);border-top:3px solid var(--teal);padding:28px 26px;background:#fff}
.card .n{font:700 15px "Instrument Sans";color:var(--teal-d);letter-spacing:.06em}.card h3{font-size:22px;margin:14px 0 10px;letter-spacing:-.02em}.card p{margin:0;font-size:16px}
.card svg{width:34px;height:34px;stroke:var(--blue);fill:none;stroke-width:1.7;margin-bottom:16px}
/* docs */
section.docs{padding:56px 0 96px}.chips{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:28px}
.chip{background:var(--wash);padding:22px 22px;border-radius:4px}.chip b{display:block;color:var(--ink);font:700 18px "Instrument Sans";letter-spacing:-.01em;margin-bottom:6px}[dir=rtl] .chip b{font-family:"Noto Kufi Arabic"}.chip span{font-size:15px}
/* notice */
.notice{background:var(--wash);border-inline-start:4px solid var(--blue);padding:28px 32px;display:flex;gap:28px;align-items:center;justify-content:space-between}
.notice p{margin:0;color:var(--ink);font-size:16px;max-width:760px}.notice .btn{background:transparent;color:var(--blue);border:1.5px solid var(--blue);box-shadow:none;white-space:nowrap}
/* footer */
footer{background:var(--navy);color:var(--soft);margin-top:96px;font-size:15px}footer .wrap{padding-top:52px;padding-bottom:32px;display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:40px}
footer img{height:54px}footer h4{color:#fff;font:600 13px Manrope;letter-spacing:.16em;text-transform:uppercase;margin:0 0 14px}[dir=rtl] footer h4{letter-spacing:0;font-family:"Noto Kufi Arabic"}
footer a{color:#fff;text-decoration:none;display:block;margin:0 0 8px}footer .legal{grid-column:1/-1;border-top:1px solid rgba(255,255,255,.14);padding-top:20px;display:flex;justify-content:space-between;font-size:13px}
/* phone */
@media (max-width:600px){.search .short{display:inline}.wrap{padding:0 20px}header .wrap{height:61px}header .logo{height:40px}header .site,header nav .about{display:none}header nav{gap:12px}
 .hero .wrap{grid-template-columns:1fr;padding-top:44px;padding-bottom:44px;gap:32px}.hero h1{font-size:40px}[dir=rtl] .hero h1{font-size:34px}.hero p.lede{font-size:17px}.hero .btn{width:100%;justify-content:center}
 .search{margin-top:20px}.search button{padding:14px 16px}.search .long{display:none}.btn.sm{padding:10px 14px;font-size:14px}.steps .head p{margin-top:10px}.sample{display:none}.facts{flex-direction:column;gap:4px}
 section.steps{padding:56px 0 24px}.steps .head{display:block}.steps h2{font-size:32px}.cards,.chips{grid-template-columns:1fr}.chips{gap:10px}section.docs{padding:32px 0 56px}
 .notice{flex-direction:column;align-items:stretch;padding:22px}footer .wrap{grid-template-columns:1fr;gap:26px}footer .legal{flex-direction:column;gap:6px}}
/* The site module's shell (apps/site/templates/site/page.html, its own @layer, so these win): no
   centred box around the page, and its empty footer hidden: each page carries its own header and
   footer, in its own language. This site is drawn light, whatever the device. */
body > main { max-width: none; margin: 0; padding: 0; }
body > footer { display: none; }
.page img { max-width: none; }
.page footer { opacity: 1; font-size: 15px; max-width: none; margin-inline: 0; padding: 0; }
.page header { display: block; max-width: none; margin: 0; padding: 0; flex-wrap: nowrap; }
.page nav { margin-inline-end: 0; flex-wrap: nowrap; }
.page nav a { opacity: 1; }
.page header .brandlink { display: flex; align-items: center; gap: 22px; text-decoration: none; }
/* /a-propos: a shorter navy band, then the text in one column */
.hero.short .wrap { display: block; padding-top: 64px; padding-bottom: 56px; }
.hero.short h1 { font-size: 52px; margin-bottom: 0; }
[dir=rtl] .hero.short h1 { font-size: 44px; }
.prose { max-width: 720px; margin: 0 auto; padding: 64px 32px 0; color: var(--slate); }
.prose h2 { font-size: 28px; letter-spacing: -.02em; margin: 40px 0 12px; }
[dir=rtl] .prose h2 { letter-spacing: 0; }
.prose ul { padding-inline-start: 22px; }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0 0 8px; padding: 22px 24px; background: var(--wash); border-inline-start: 4px solid var(--teal-d); }
.prose dt { color: var(--ink); font-weight: 600; }
.prose dd { margin: 0; }
@media (max-width:600px) { .hero.short h1 { font-size: 36px; } [dir=rtl] .hero.short h1 { font-size: 30px; } .prose { padding: 40px 20px 0; } .prose dl { grid-template-columns: 1fr; gap: 2px; } .prose dd { margin-bottom: 10px; } }
/* phone: the notice's button wraps inside its box instead of running out of it */
@media (max-width:600px) { .notice .btn { white-space: normal; justify-content: center; text-align: center; line-height: 1.3; } }
