/* RD IT Informatique — styles des pages intérieures */
:root {
  color-scheme: light;
  --ink: #101a2b; --ink-soft: #516071; --navy: #101a2b; --paper: #f6f8fc;
  --mint: #3d8bff; --lime: #00e5ff; --line: #e2e7ef; --radius: 1.25rem;
  --shadow: 0 20px 60px rgba(16, 26, 43, .09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.wrap { width: min(1140px, calc(100% - 48px)); margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; color: #2a6fd8; font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 21px; height: 2px; background: currentColor; }
.section-title { max-width: 680px; margin: .85rem 0 1rem; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; letter-spacing: -.04em; }
.section-intro { max-width: 620px; margin: 0; color: var(--ink-soft); font-size: 1.03rem; line-height: 1.75; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: .65rem; padding: .85rem 1.15rem; border: 1px solid transparent; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: .92rem; font-weight: 750; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); background: #66efff; box-shadow: 0 10px 25px #00e5ff40; }
.button svg { width: 17px; height: 17px; }
.button.ghost { background: transparent; border-color: #ffffff40; color: white; }
.button.ghost:hover { background: #ffffff12; box-shadow: none; }

.topbar { position: absolute; z-index: 5; inset: 0 0 auto; color: white; }
.nav { height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #ffffff20; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-size: 1.03rem; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; background: var(--lime); color: var(--ink); }
.brand-mark svg { width: 25px; height: 25px; }
.nav-links { display: flex; align-items: center; font-size: .89rem; color: #ffffffbd; }
.nav-links > a:not(.button):hover { color: white; }
.nav-links .button { color: var(--ink); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid #ffffff45; border-radius: 50%; background: transparent; color: white; }

.page-hero { position: relative; overflow: hidden; padding: 150px 0 80px; color: white; background: var(--navy); }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 40%, #1c3a7a 0, #0b3d5e 22%, transparent 55%), linear-gradient(115deg, #101a2b 25%, #142337 100%); }
.page-hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -180px; top: 60px; border: 1px solid #ffffff12; border-radius: 50%; box-shadow: 0 0 0 55px #ffffff08, 0 0 0 110px #ffffff05; }
.page-hero .wrap { position: relative; z-index: 1; }
.crumbs { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.4rem; color: #9fb0c3; font-size: .8rem; }
.crumbs a:hover { color: white; }
.page-hero .eyebrow { color: var(--mint); }
.page-hero h1 { max-width: 780px; margin: 1rem 0 1.1rem; font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.03; letter-spacing: -.055em; }
.page-hero h1 span { color: var(--lime); }
.page-hero p { max-width: 620px; margin: 0; color: #d1d9e2; font-size: 1.08rem; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.block { padding: 90px 0; }
.block.white { background: white; }
.block-head { margin-bottom: 2.4rem; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: white; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.block.white .card { background: var(--paper); }
.card:hover { transform: translateY(-4px); border-color: #c2d8fb; box-shadow: var(--shadow); }
.card-icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 1.3rem; border-radius: 13px; background: #e8f1ff; color: #1f6feb; }
.card-icon svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 .5rem; font-size: 1.05rem; letter-spacing: -.02em; }
.card p { margin: 0; color: var(--ink-soft); font-size: .91rem; line-height: 1.65; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.checklist { display: grid; gap: .8rem; margin: 0; padding: 0; list-style: none; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: white; font-size: .93rem; line-height: 1.55; }
.checklist svg { width: 19px; flex: none; margin-top: .1rem; color: #1f6feb; }

.steps { padding: 90px 0; color: white; background: var(--navy); }
.steps .eyebrow { color: var(--mint); }
.steps .section-intro { color: #becad5; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.2rem; }
.step { padding: 1.4rem; border: 1px solid #ffffff18; border-radius: 16px; background: #ffffff08; }
.step-number { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 1rem; border-radius: 12px; background: #3d8bff22; color: var(--mint); font-size: .87rem; font-weight: 800; }
.step h3 { margin: 0 0 .4rem; font-size: 1rem; }
.step p { margin: 0; color: #b9c6d2; font-size: .9rem; line-height: 1.6; }

.faq { display: grid; gap: .7rem; }
.faq details { padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: 14px; background: white; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; color: #1f6feb; font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .8rem 0 0; color: var(--ink-soft); line-height: 1.7; font-size: .93rem; }

.related { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.related a { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: white; font-size: .9rem; font-weight: 700; }
.related a:hover { border-color: #9cc2f7; box-shadow: var(--shadow); }
.related svg { width: 16px; flex: none; color: #1f6feb; }

.cta { padding: 0 0 90px; }
.cta-panel { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: clamp(1.6rem, 4vw, 3rem); border-radius: 24px; background: var(--navy); color: white; }
.cta-panel h2 { margin: 0 0 .5rem; font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.04em; }
.cta-panel p { margin: 0; color: #c0cbd5; line-height: 1.6; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .7rem; flex: none; }

.legal { max-width: 820px; }
.legal h2 { margin: 2.2rem 0 .6rem; font-size: 1.25rem; letter-spacing: -.02em; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: #334155; line-height: 1.75; font-size: .96rem; }
.legal a { color: #1f6feb; text-decoration: underline; }

footer { padding: 2.2rem 0; background: white; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; color: #667383; font-size: .8rem; }
.footer-brand { color: var(--ink); font-weight: 800; }
.footer-note { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-note a:hover { color: #1f6feb; }
:focus-visible { outline: 3px solid #3d8bff; outline-offset: 3px; }

@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .related { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .cta-panel { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .wrap { width: min(100% - 32px, 520px); }
  .page-hero { padding: 120px 0 60px; }
  .block, .steps { padding: 64px 0; }
  .cards, .related { grid-template-columns: 1fr; }
  .cta { padding-bottom: 64px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } }

/* ---- Menus déroulants ---- */
.nav-links { gap: 1.45rem; }
.nav-item { position: relative; }
.nav-parent { display: inline-flex; align-items: center; gap: .3rem; padding: .6rem 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.nav-parent:hover, .has-sub.is-open .nav-parent { color: white; }
.nav-parent .chev { width: 14px; height: 14px; transition: transform .2s ease; }
.sub { position: absolute; z-index: 20; top: 100%; left: -1rem; min-width: 260px; display: none; gap: .1rem; padding: .5rem; border: 1px solid #ffffff20; border-radius: 14px; background: #142337; box-shadow: 0 20px 40px #0005; }
.sub a { padding: .65rem .8rem; border-radius: 9px; color: #d6dee8; font-size: .86rem; white-space: nowrap; }
.sub a:hover, .sub a[aria-current="page"] { background: #ffffff12; color: white; }
.sub a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--lime); }
@media (min-width: 981px) {
  .has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.is-open .sub { display: grid; }
  .has-sub:hover .chev, .has-sub.is-open .chev { transform: rotate(180deg); }
}
@media (max-width: 980px) {
  .nav { height: 72px; }
  .menu-toggle { display: grid; place-items: center; cursor: pointer; }
  .menu-toggle svg { width: 20px; }
  .nav-links { position: absolute; top: 72px; left: 18px; right: 18px; max-height: calc(100vh - 90px); overflow-y: auto; display: none; flex-direction: column; align-items: stretch; gap: .2rem; padding: 1rem; border: 1px solid #ffffff20; border-radius: 16px; background: #142337; box-shadow: 0 20px 40px #0003; }
  .nav-links.is-open { display: flex; }
  .nav-links > a:not(.button) { padding: .8rem .5rem; }
  .nav-links .button { margin-top: .4rem; }
  .nav-parent { width: 100%; justify-content: space-between; padding: .8rem .5rem; }
  .sub { position: static; min-width: 0; padding: 0 0 .4rem .6rem; border: 0; background: none; box-shadow: none; }
  .has-sub.is-open .sub { display: grid; }
  .has-sub.is-open .chev { transform: rotate(180deg); }
  .sub a, .nav-links .sub a { white-space: normal; padding: .6rem .7rem; }
}

/* ---- Photos des pages ---- */
.page-hero.has-photo .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero-photo { position: relative; margin: 0; }
.hero-photo::before { content: ""; position: absolute; inset: -12px 12px 12px -12px; border: 1px solid #3d8bff55; border-radius: 26px; }
.hero-photo img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 22px; box-shadow: 0 30px 70px #050c1780; background: #19273b; }
@media (max-width: 900px) {
  .page-hero.has-photo .wrap { grid-template-columns: 1fr; gap: 2.4rem; }
  .hero-photo { max-width: 560px; }
  .hero-photo img { aspect-ratio: 16 / 10; }
}
