/* ==========================================================================
   Atlas Risala : site frère d'Atlasdigy, en version entièrement sombre.
   Palette : bleu nuit #0B1F3A, terracotta #E2683C, cyan #22D3EE.
   Typos : Sora (titres), Inter (texte). Mobile d'abord.
   ========================================================================== */

:root {
	--nuit: #0B1F3A;
	--nuit-2: #10284A;
	--nuit-3: #1A3A63;
	--abysse: #07162A;
	--terra: #E2683C;
	--terra-l: #EC7A50;
	--cyan: #22D3EE;
	--white: #fff;
	--text: rgba(255,255,255,.82);
	--muted: rgba(255,255,255,.66);
	--line: rgba(255,255,255,.10);
	--ink: #0B1F3A;
	--ink-muted: #4B5568;
	--radius: 18px;
	--radius-sm: 12px;
	--shadow-lg: 0 24px 60px rgba(0,0,0,.35);
	--f-title: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--wrap: 1180px;
	--gutter: 16px;
	--header-h: 68px;
}
@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 76px; } }

/* --- Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--nuit); color: var(--text); font: 400 1.0625rem/1.65 var(--f-text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--terra); text-underline-offset: .18em; }
a:hover { color: var(--white); }
h1, h2, h3, h4 { font-family: var(--f-title); color: var(--white); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.25rem, 1.4rem + 4.2vw, 4.25rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.75rem, 1.25rem + 2.2vw, 2.75rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:where(a, button, input, summary):focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--terra); color: var(--nuit); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ar-skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--terra); color: var(--nuit); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.ar-skip:focus { top: 12px; }
.ar-wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.ar-icon { flex: none; }

/* --- Boutons ------------------------------------------------------------ */
.ar-btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: .8em 1.4em; border-radius: 999px; border: 2px solid transparent; font: 700 1rem/1.2 var(--f-text); text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease; white-space: nowrap; }
.ar-btn:hover { transform: translateY(-1px); }
.ar-btn--lg { min-height: 56px; padding: .9em 1.7em; font-size: 1.0625rem; }
.ar-btn--primary { background: var(--terra); color: var(--nuit); box-shadow: 0 6px 18px rgba(226,104,60,.35); }
.ar-btn--primary:hover { background: var(--terra-l); color: var(--nuit); }
.ar-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- En-tête ------------------------------------------------------------ */
.ar-header { position: sticky; top: 0; z-index: 40; background: rgba(11,31,58,.92); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid rgba(255,255,255,.08); }
.ar-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.ar-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font: 700 1.35rem/1 var(--f-title); letter-spacing: -.03em; }
.ar-logo b { color: var(--terra); font-weight: 700; }
.ar-logo:hover { color: var(--white); }
.ar-nav ul { list-style: none; margin: 0; padding: 0; }
.ar-nav a:not(.ar-btn) { color: rgba(255,255,255,.85); text-decoration: none; font-weight: 500; }
.ar-nav a:not(.ar-btn):hover, .ar-nav a[aria-current="page"] { color: var(--white); }
.ar-nav ul a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--terra); }
.ar-burger { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -8px; background: none; border: 0; color: var(--white); cursor: pointer; border-radius: 12px; }
.ar-burger__close { display: none; }
.ar-burger[aria-expanded="true"] .ar-burger__open { display: none; }
.ar-burger[aria-expanded="true"] .ar-burger__close { display: inline; }
@media (max-width: 959px) {
	.ar-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--nuit); padding: 24px var(--gutter) 40px; display: flex; flex-direction: column; gap: 24px; transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s; overflow-y: auto; }
	.ar-nav.is-open { transform: none; visibility: visible; }
	.ar-nav ul a { display: block; padding: 14px 0; font: 600 1.4rem/1.2 var(--f-title); border-bottom: 1px solid rgba(255,255,255,.08); }
	.ar-nav ul a[aria-current="page"] { box-shadow: none; color: var(--terra); }
	.ar-nav__cta { width: 100%; }
	body.nav-open { overflow: hidden; }
}
@media (min-width: 960px) {
	.ar-burger { display: none; }
	.ar-nav { display: flex; align-items: center; gap: 32px; }
	.ar-nav ul { display: flex; gap: 28px; }
	.ar-nav ul a { padding: 8px 0; font-size: .975rem; }
	.ar-nav__cta { min-height: 44px; padding: .65em 1.2em; font-size: .95rem; }
}

/* --- Hero --------------------------------------------------------------- */
.ar-hero { position: relative; background: radial-gradient(1000px 500px at 85% 20%, rgba(34,211,238,.10), transparent 60%), radial-gradient(800px 500px at 10% 100%, rgba(226,104,60,.16), transparent 60%), linear-gradient(180deg, var(--nuit) 0%, var(--nuit-2) 100%); padding: 56px 0 120px; overflow: hidden; }
.ar-hero__grid { display: grid; gap: 48px; align-items: center; }
.ar-hero h1 em { font-style: normal; color: var(--terra); }
.ar-hero__sub { font-size: clamp(1.075rem, 1rem + .4vw, 1.25rem); color: var(--text); max-width: 34em; margin-bottom: 1.8em; }
.ar-hero__ticks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: rgba(255,255,255,.8); font-size: .95rem; }
.ar-hero__ticks li { display: inline-flex; align-items: center; gap: 8px; }
.ar-hero__ticks .ar-icon { color: var(--terra); }
.ar-ridge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; color: var(--nuit-2); }
.ar-hero__visual { position: relative; margin: 0; }
.ar-hero__visual img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.08); }
.ar-float { position: absolute; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; background: var(--white); color: var(--ink); border-radius: 14px; padding: 12px 16px; box-shadow: 0 14px 34px rgba(0,0,0,.35); font-size: .9rem; line-height: 1.3; }
.ar-float strong { font-weight: 700; }
.ar-float small { grid-column: 2; color: var(--ink-muted); font-size: .78rem; }
.ar-float--top { top: 18px; left: -10px; }
.ar-float--bottom { right: -8px; bottom: -16px; background: var(--nuit-2); color: var(--white); border: 1px solid rgba(34,211,238,.45); }
.ar-float--bottom small { color: var(--muted); }
.ar-float--bottom .ar-icon { color: var(--cyan); grid-row: span 2; }
.ar-dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.2); grid-row: span 2; }
@media (max-width: 559px) { .ar-float--top { left: 8px; top: 10px; } .ar-float--bottom { right: 8px; } }
@media (min-width: 960px) {
	.ar-hero { padding: 88px 0 150px; }
	.ar-hero__grid { grid-template-columns: 1.1fr .9fr; gap: 64px; }
	.ar-ridge { height: 110px; }
	.ar-float--top { left: -36px; }
	.ar-float--bottom { right: -24px; }
}
.ar-hero--page h1 { font-size: clamp(2.25rem, 1.5rem + 3.6vw, 3.8rem); }

/* --- Bandeau de preuves ------------------------------------------------- */
.ar-proof { background: var(--nuit-2); padding: 8px 0 24px; }
.ar-proof__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ar-proof__item { background: var(--nuit-2); padding: 22px 18px; display: flex; flex-direction: column; gap: 4px; }
.ar-proof__item strong { font: 800 clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem)/1.1 var(--f-title); color: var(--white); letter-spacing: -.03em; }
.ar-proof__item strong::after { content: ""; display: block; width: 28px; height: 3px; background: var(--terra); margin-top: 10px; border-radius: 2px; }
.ar-proof__item span { color: var(--muted); font-size: .95rem; line-height: 1.4; }
@media (min-width: 900px) { .ar-proof__grid { grid-template-columns: repeat(4, 1fr); } .ar-proof__item { padding: 28px 26px; } }

/* --- Sections ----------------------------------------------------------- */
.ar-section { background: var(--nuit-2); padding: 72px 0; }
.ar-section--tight { padding: 40px 0 72px; }
@media (min-width: 768px) { .ar-section { padding: 104px 0; } .ar-section--tight { padding: 48px 0 96px; } }
.ar-head { max-width: 760px; margin-bottom: 40px; }
.ar-eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 .8rem/1 var(--f-text); letter-spacing: .14em; text-transform: uppercase; color: var(--terra); margin: 0 0 18px; }
.ar-eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.ar-lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--muted); }

/* --- Cartes des lettres ------------------------------------------------- */
.ar-cards { display: grid; gap: 20px; }
@media (min-width: 700px) { .ar-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ar-cards { grid-template-columns: repeat(4, 1fr); } }
.ar-card { display: flex; flex-direction: column; background: var(--nuit-3); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.ar-card:hover { transform: translateY(-4px); border-color: rgba(226,104,60,.6); box-shadow: var(--shadow-lg); color: var(--text); }
.ar-card__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ar-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.ar-card__tag { align-self: flex-start; font: 700 .72rem/1 var(--f-text); letter-spacing: .12em; text-transform: uppercase; color: var(--nuit); background: var(--terra); padding: .45em .75em; border-radius: 99px; margin-bottom: 14px; }
.ar-card h3 { margin-bottom: .4em; }
.ar-card p { color: var(--muted); font-size: .97rem; }
.ar-card__more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--terra); transition: gap .15s; }
.ar-card:hover .ar-card__more { gap: 12px; }

/* --- Sommaire ----------------------------------------------------------- */
.ar-deliv { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .ar-deliv { grid-template-columns: 1fr 1fr; } }
.ar-deliv li { display: flex; gap: 12px; align-items: flex-start; padding: 20px 22px; border-radius: var(--radius-sm); background: var(--nuit-3); border: 1px solid var(--line); color: var(--white); font-weight: 500; }
.ar-deliv .ar-icon { color: var(--terra); margin-top: 2px; }

/* --- Bloc d'abonnement -------------------------------------------------- */
.ar-final { background: radial-gradient(800px 400px at 0% 100%, rgba(226,104,60,.2), transparent 60%), var(--nuit); }
.ar-final__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .ar-final__grid { grid-template-columns: 1fr 1fr; gap: 80px; } }
.ar-ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ar-ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); }
.ar-ticks .ar-icon { color: var(--terra); margin-top: 3px; }
.ar-form-card { background: var(--white); color: var(--ink); border-radius: 24px; padding: 28px 22px; box-shadow: var(--shadow-lg); }
@media (min-width: 560px) { .ar-form-card { padding: 36px; } }

/* Formulaire (balisage du plugin atlas-risala) */
.atlas-form { display: grid; gap: 16px; margin: 0; }
.atlas-field { display: grid; gap: 6px; }
.atlas-field label, .atlas-listes legend { font-weight: 600; font-size: .95rem; color: var(--ink); }
.atlas-form input[type=text], .atlas-form input[type=email] { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #c9ced8; border-radius: 12px; background: var(--white); color: var(--ink); font: 400 1rem/1.4 var(--f-text); transition: border-color .15s, box-shadow .15s; }
.atlas-form input[type=text]:focus, .atlas-form input[type=email]:focus { outline: none; border-color: var(--nuit); box-shadow: 0 0 0 4px rgba(34,211,238,.35); }
.atlas-listes { border: 0; padding: 0; margin: 4px 0 0; min-width: 0; display: grid; gap: 10px; }
.atlas-listes legend { padding: 0; margin-bottom: 10px; }
.atlas-check { position: relative; display: block; cursor: pointer; }
.atlas-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.atlas-check span { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; min-height: 54px; padding: 12px 16px 12px 48px; border: 1.5px solid #c9ced8; border-radius: 14px; color: var(--ink-muted); font-size: .95rem; transition: border-color .15s, background-color .15s; }
.atlas-check span strong { color: var(--ink); }
.atlas-check span::before { content: ""; position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 6px; border: 2px solid #9aa3b2; background: var(--white); transition: all .15s; }
.atlas-check:hover span { border-color: var(--nuit); }
.atlas-check input:checked + span { border-color: var(--terra); background: #fff6f1; }
.atlas-check input:checked + span::before { border-color: var(--terra); background: var(--terra) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%230B1F3A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.atlas-check input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }
.atlas-cta { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; margin-top: 4px; padding: .9em 1.6em; border: 0; border-radius: 999px; background: var(--terra); color: var(--nuit); font: 700 1.0625rem/1.2 var(--f-text); cursor: pointer; box-shadow: 0 6px 18px rgba(226,104,60,.35); transition: transform .15s, background-color .15s; }
.atlas-cta:hover { background: var(--terra-l); transform: translateY(-1px); }
.atlas-cta[disabled] { opacity: .6; cursor: progress; transform: none; }
.atlas-note { font-size: .82rem; line-height: 1.5; color: var(--ink-muted); margin: 0; }
.atlas-message { margin: 0; font-weight: 600; }
.atlas-message:empty { display: none; }
.atlas-message.is-ok { color: #15803d; }
.atlas-message.is-ko { color: #b42318; }

/* --- Pages légales ------------------------------------------------------ */
.ar-page-hero { background: linear-gradient(180deg, var(--nuit), var(--nuit-2)); padding: 56px 0 24px; }
.ar-page-hero h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem); }
@media (min-width: 768px) { .ar-page-hero { padding: 88px 0 32px; } }
.ar-prose { max-width: 760px; }
.ar-prose h2 { font-size: clamp(1.3rem, 1.15rem + .8vw, 1.7rem); margin-top: 1.8em; }
.ar-prose h2:first-child { margin-top: 0; }
.ar-prose li { margin-bottom: .4em; }
.ar-prose strong { color: var(--white); }

/* --- Pied de page ------------------------------------------------------- */
.ar-footer { background: var(--abysse); color: rgba(255,255,255,.72); padding: 64px 0 28px; font-size: .95rem; }
.ar-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.ar-footer a:hover { color: var(--white); text-decoration: underline; }
.ar-footer .ar-logo { color: var(--white); }
.ar-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ar-footer__grid { display: grid; gap: 36px; }
@media (min-width: 760px) { .ar-footer__grid { grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 48px; } }
.ar-footer__brand p { margin-top: 16px; max-width: 28em; }
.ar-footer__title { font: 700 .8rem/1 var(--f-text); letter-spacing: .12em; text-transform: uppercase; color: var(--white); margin-bottom: 18px; }
.ar-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .875rem; }
.ar-footer__bottom p { margin: 0; }
.ar-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 20px; }
