/* numersalis.com — styles propres au site (chargé après style.css du thème) */

/* ---------- Polices auto-hébergées ---------- */
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/open-sans-v44-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/open-sans-v44-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/open-sans-v44-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/raleway-v37-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/raleway-v37-latin-700.woff2") format("woff2"); }

:root {
  --nmr-blue: #1b48a3;
  --nmr-blue-dark: #123579;
  --nmr-blue-light: #e8eef9;
  --nmr-ink: #1f2a44;
  --nmr-muted: #5b6577;
  --nmr-line: #e3e7ef;
  --nmr-bg: #f5f7fa;
  --nmr-radius: 10px;
  --nmr-shadow: 0 6px 24px rgba(27, 72, 163, 0.08);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { color: var(--nmr-ink); }
a { color: var(--nmr-blue); }
a:hover { color: var(--nmr-blue-dark); }
h1, h2, h3, h4 { color: var(--nmr-ink); font-family: "Raleway", sans-serif; font-weight: 700; }
img { max-width: 100%; height: auto; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--nmr-blue); color: #fff; padding: .5rem 1rem; z-index: 2000; }
.skip-link:focus { left: 1rem; top: 1rem; color: #fff; }

/* ---------- En-tête ---------- */
#header .logo img { max-height: 48px; width: auto; }
.navbar .nav-all { color: var(--nmr-blue) !important; font-weight: 600; }
.navbar .lang-switch > a { font-weight: 700; letter-spacing: 1px; border: 1px solid var(--nmr-line); border-radius: 999px; padding: 4px 12px !important; }
.navbar .dropdown > a > i { color: var(--nmr-blue); }
.mobile-nav-toggle { background: none; border: 0; color: var(--nmr-ink); font-size: 28px; line-height: 1; }
.navbar-mobile .mobile-nav-toggle { color: #fff; }
.navbar-mobile .lang-switch > a { color: #fff; border-color: rgba(255,255,255,.5); }

/* ---------- Fil d'Ariane ---------- */
.breadcrumbs { padding: 92px 0 0; font-size: .9rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; color: var(--nmr-muted); }
.breadcrumbs li + li::before { content: "›"; padding: 0 .4rem; color: var(--nmr-muted); }
.breadcrumbs a { color: var(--nmr-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--nmr-blue); }

/* ---------- En-têtes de page ---------- */
.page-hero { padding: 24px 0 40px; }
.page-hero-simple { padding-bottom: 24px; }
.page-hero h1 { font-size: clamp(1.7rem, 2.6vw + .8rem, 2.5rem); line-height: 1.2; margin: .25rem 0 1rem; }
.page-hero .lead { font-size: 1.1rem; color: var(--nmr-muted); max-width: 70ch; }
.page-hero-media img, .page-hero-media picture img { border-radius: var(--nmr-radius); box-shadow: var(--nmr-shadow); }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: .78rem; font-weight: 700; color: var(--nmr-blue); margin-bottom: .5rem; }
.eyebrow-light { color: #cfe0ff; }

.hero-home { display: block; height: auto; min-height: 0; border: 0; background: linear-gradient(135deg, var(--nmr-blue-dark) 0%, var(--nmr-blue) 55%, #3f72d6 100%); color: #fff; padding: 150px 0 90px; position: relative; overflow: hidden; }
.hero-home::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: rgba(255,255,255,.07); }
.hero-home .hero-inner { position: relative; z-index: 1; max-width: 860px; width: 100%; padding-left: 16px; padding-right: 16px; overflow-wrap: anywhere; }
.hero-home p { white-space: normal; }
.hero-home h1 { color: #fff; font-size: clamp(2rem, 3.4vw + 1rem, 3.2rem); line-height: 1.15; }
.hero-home .lead { color: #e4ecfb; font-size: 1.15rem; }

/* ---------- Boutons ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.btn-primary, .btn-secondary { display: inline-block; font-family: "Raleway", sans-serif; font-weight: 700; font-size: .95rem; letter-spacing: .5px; padding: 11px 24px; border-radius: 999px; text-decoration: none; transition: background .2s, color .2s, transform .1s; border: 2px solid var(--nmr-blue); }
.btn-primary { background: var(--nmr-blue); color: #fff; }
.btn-primary:hover { background: var(--nmr-blue-dark); border-color: var(--nmr-blue-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--nmr-blue); }
.btn-secondary:hover { background: var(--nmr-blue-light); color: var(--nmr-blue-dark); }
.hero-home .btn-primary { background: #fff; color: var(--nmr-blue); border-color: #fff; }
.hero-home .btn-primary:hover { background: #e8eef9; }
.hero-home .btn-light { color: #fff; border-color: rgba(255,255,255,.7); }
.hero-home .btn-light:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Sections ---------- */
.content-section { padding: 48px 0; }
.content-section .section-title { margin-bottom: 24px; }
.section-title h2 { font-size: 1.9rem; color: var(--nmr-ink); text-transform: none; letter-spacing: 0; line-height: 1.2; position: relative; padding-bottom: 14px; }
.section-title h2::after { content: ""; display: block; width: 50px; height: 3px; background: var(--nmr-blue); margin: 12px auto 0; }
.section-title p { font-size: 1.05rem; color: var(--nmr-muted); text-transform: none; font-weight: 400; margin: 0; }
.content-section > .container > h2, .prose h2 { font-size: 1.5rem; margin-top: 1.5rem; margin-bottom: .75rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.25rem; margin-bottom: .5rem; }
.prose p, .prose li { font-size: 1.02rem; line-height: 1.7; }
.prose a, .accordion-body a, .lead a, .more-links a, .facts a, .form-privacy a, .contact .info a { text-decoration: underline; text-underline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose img, .prose picture img { border-radius: var(--nmr-radius); margin: .5rem 0 1.25rem; box-shadow: var(--nmr-shadow); width: 100%; max-height: 520px; object-fit: cover; }
.prose img.img-contain { object-fit: contain; max-height: none; box-shadow: none; border: 1px solid var(--nmr-line); }
.prose ol { padding-left: 1.4rem; }
.prose ol li { margin-bottom: .5rem; }
.prose-article { max-width: 78ch; }
.section-bg { background: var(--nmr-bg); }

.facts { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .5rem 1.25rem; }
.facts li { display: flex; gap: .6rem; align-items: flex-start; font-size: .98rem; }
.facts li i { color: var(--nmr-blue); font-size: 1.15rem; line-height: 1.5; }
.facts strong { color: var(--nmr-ink); margin-right: .25rem; }

.tag-list, .check-list, .link-list { list-style: none; padding: 0; margin: .5rem 0 1rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-list li { background: var(--nmr-blue-light); color: var(--nmr-blue-dark); border-radius: 999px; padding: 4px 14px; font-size: .9rem; font-weight: 600; }
.check-list li { padding-left: 1.6rem; position: relative; margin-bottom: .4rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--nmr-blue); font-weight: 700; }
.link-list { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.link-list li a { font-weight: 600; }
.more-links { margin-top: 1.5rem; }
.more-links .btn-primary, .more-links .btn-secondary { margin: .25rem; }

/* ---------- Cartes ---------- */
.cards-grid { row-gap: 1.5rem; }
.card-item { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--nmr-line); border-radius: var(--nmr-radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.card-item:hover { transform: translateY(-3px); box-shadow: var(--nmr-shadow); color: inherit; }
.card-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 1rem 1.1rem 1.2rem; }
.card-body h3 { font-size: 1.1rem; margin-bottom: .35rem; color: var(--nmr-blue-dark); }
.card-meta { font-size: .85rem; color: var(--nmr-muted); margin-bottom: .4rem; }
.card-text { font-size: .95rem; color: var(--nmr-ink); margin: 0; }
.portfolio-item[hidden] { display: none !important; }

.pillars { padding-top: 40px; }
.pillar { display: block; height: 100%; background: #fff; border: 1px solid var(--nmr-line); border-radius: var(--nmr-radius); padding: 1.6rem 1.4rem; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.pillar:hover { transform: translateY(-3px); box-shadow: var(--nmr-shadow); color: inherit; }
.pillar i { font-size: 2.2rem; color: var(--nmr-blue); }
.pillar h3 { font-size: 1.2rem; margin: .6rem 0 .5rem; }
.pillar p { color: var(--nmr-muted); font-size: .97rem; }
.pillar-more { font-weight: 700; color: var(--nmr-blue); }

/* ---------- Filtres ---------- */
.filters { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; padding: 0; margin: 1rem 0 1.5rem; }
.filters button { background: #fff; border: 1px solid var(--nmr-line); color: var(--nmr-ink); border-radius: 999px; padding: 6px 18px; font-weight: 600; font-size: .9rem; cursor: pointer; }
.filters button:hover, .filters button.filter-active { background: var(--nmr-blue); border-color: var(--nmr-blue); color: #fff; }

/* ---------- PDF ---------- */
.pdf-embed { margin: 1.5rem 0; border: 1px solid var(--nmr-line); border-radius: var(--nmr-radius); background: #fff; }
.pdf-embed summary { cursor: pointer; padding: .9rem 1.1rem; font-weight: 700; color: var(--nmr-blue); }
.pdf-embed iframe { width: 100%; height: 780px; border: 0; border-top: 1px solid var(--nmr-line); }
.pdf-object { width: 100%; height: 720px; border: 1px solid var(--nmr-line); border-radius: var(--nmr-radius); margin: 1rem 0; }

/* ---------- FAQ (accordéon Bootstrap) ---------- */
.page-accueil .faq-section, .page-formation .faq-section { background: var(--nmr-bg); }
.faq-block h2 { text-align: center; margin-bottom: 1.25rem; }
.accordion-item { border: 1px solid var(--nmr-line); border-radius: var(--nmr-radius) !important; margin-bottom: .6rem; overflow: hidden; }
.accordion-button { font-family: "Raleway", sans-serif; font-weight: 700; color: var(--nmr-ink); background: #fff; box-shadow: none !important; }
.accordion-button:not(.collapsed) { background: var(--nmr-blue-light); color: var(--nmr-blue-dark); }
.accordion-body { line-height: 1.7; }

/* ---------- Témoignages & articles ---------- */
.testimonials .row { row-gap: 1.25rem; }
.testimonial { background: #fff; border-left: 4px solid var(--nmr-blue); padding: 1.25rem 1.5rem; border-radius: var(--nmr-radius); box-shadow: var(--nmr-shadow); height: 100%; margin: 0; }
.testimonial blockquote { margin: 0 0 .75rem; font-style: italic; }
.testimonial figcaption { color: var(--nmr-muted); font-size: .92rem; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; margin-top: 1rem; }
.post-card a { display: block; height: 100%; background: #fff; border: 1px solid var(--nmr-line); border-radius: var(--nmr-radius); padding: 1.25rem; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.post-card a:hover { transform: translateY(-3px); box-shadow: var(--nmr-shadow); }
.post-card h2 { font-size: 1.15rem; color: var(--nmr-blue-dark); }
.post-date { font-size: .85rem; color: var(--nmr-muted); }
.post-footer { color: var(--nmr-muted); font-style: italic; }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1rem 0 1.5rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--nmr-radius); box-shadow: var(--nmr-shadow); }
.legal-small { font-size: .85rem; color: var(--nmr-muted); margin-top: 2rem; }

/* ---------- Contact ---------- */
.contact .info h3 { font-size: 1.05rem; color: var(--nmr-ink); margin: 0 0 .25rem 60px; }
.qualiopi-inline { display: flex; gap: 1rem; align-items: center; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--nmr-line); }
.qualiopi-inline img { width: 110px; height: auto; }
.qualiopi-inline p { margin: 0; font-size: .9rem; color: var(--nmr-muted); }
.php-email-form .sent-message, .php-email-form .error-message { padding: 12px 16px; border-radius: 6px; font-weight: 600; }
.php-email-form .sent-message { background: #e6f7ee; color: #17753f; }
.php-email-form .error-message { background: #fdecec; color: #b42318; }
.form-privacy { font-size: .85rem; color: var(--nmr-muted); margin-top: 1rem; text-align: center; }

/* ---------- Pied de page ---------- */
#footer .footer-links h3 { font-size: 1rem; font-weight: 700; color: var(--nmr-ink); margin-bottom: .75rem; text-transform: uppercase; letter-spacing: 1px; }
#footer .footer-links ul i { color: var(--nmr-blue); font-size: 1rem; }
#footer .footer-qualiopi { margin-top: 1.25rem; }
#footer .footer-qualiopi img { width: 150px; height: auto; }
#footer .footer-bottom { padding: 1rem 0 1.5rem; text-align: center; font-size: .85rem; color: var(--nmr-muted); }
#footer .footer-bottom p { margin: 0; }
#numero .numero { display: none; }
#numero.open .numero { display: block; }
#numero .telephone { border: 0; }

/* ---------- Bandeau cookies ---------- */
.consent-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 3000; background: #fff; border-top: 3px solid var(--nmr-blue); box-shadow: 0 -8px 30px rgba(0,0,0,.12); padding: 1rem 0; }
.consent-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.consent-inner p { margin: 0; max-width: 72ch; font-size: .92rem; line-height: 1.5; }
.consent-actions { display: flex; gap: .5rem; }
.consent-btn { font-family: "Raleway", sans-serif; font-weight: 700; padding: 9px 20px; border-radius: 999px; border: 2px solid var(--nmr-blue); background: #fff; color: var(--nmr-blue); cursor: pointer; }
.consent-btn-primary { background: var(--nmr-blue); color: #fff; }
.consent-btn:hover { background: var(--nmr-blue-light); }
.consent-btn-primary:hover { background: var(--nmr-blue-dark); color: #fff; }

/* ---------- Réactif ---------- */
@media (max-width: 991px) {
  .breadcrumbs { padding-top: 80px; }
  .hero-home { padding: 120px 0 60px; }
  .page-hero-media { margin-bottom: 1.25rem; }
}
@media (max-width: 575px) {
  .content-section { padding: 36px 0; }
  .pdf-embed iframe, .pdf-object { height: 520px; }
  .consent-actions { width: 100%; }
  .consent-btn { flex: 1; }
}
