/* ==========================================================================
   Layout pages intérieures CDG31
   ========================================================================== */

.page { display: flex; flex-direction: column; min-height: 100vh; }
.page > main { flex: 1; }

/* Hide Drupal default content on frontpage */
.path-frontpage .block-system-main-block,
.path-frontpage .page__main,
.path-frontpage article.node,
.path-frontpage .node--type-page,
.path-frontpage .tabs,
.path-frontpage .local-actions { display: none !important; max-height: 0 !important; overflow: hidden !important; padding: 0 !important; margin: 0 !important; }

/* ===== TOPBAR ===== */
.topbar { background: #1a1a2e; padding: 8px 0; }
.topbar__inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: rgba(255,255,255,0.6); font-size: 12px; transition: color 0.2s; }
.topbar a:hover { color: #fff; }
.topbar__contact { display: flex; gap: 16px; }
.topbar__links { display: flex; gap: 16px; }

/* ===== HEADER ===== */
.header { background: #fff; border-bottom: 1px solid #e6e5e5; position: sticky; top: 0; z-index: 100; }
.header__inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.header__logo { text-decoration: none; display: flex; align-items: baseline; gap: 2px; }
.header__nav { display: flex; gap: 0; }
.header__nav-link { padding: 20px 16px; font-size: 14px; font-weight: 500; color: #5a6170; text-decoration: none; position: relative; transition: color 0.2s; }
.header__nav-link:hover { color: #1f92b7; }
.header__nav-link::after { content: ''; position: absolute; bottom: 0; left: 16px; right: 16px; height: 3px; background: #e1ae13; transform: scaleX(0); transition: transform 0.25s; border-radius: 3px 3px 0 0; }
.header__nav-link:hover::after { transform: scaleX(1); }

/* ===== MAIN CONTENT ===== */
.page__main { flex: 1; padding: 48px 0 64px; }
.page__content { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* Node title */
.page__content h1,
.page__content .node h1 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.2;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 3px solid #1f92b7;
}

/* Content typography */
.page__content h2,
.content h2 { font-family: 'Space Grotesk', sans-serif; font-size: 24px; font-weight: 700; color: #3f2270; margin: 40px 0 16px; }
.page__content h3,
.content h3 { font-family: 'Space Grotesk', sans-serif; font-size: 19px; font-weight: 600; color: #1a1a2e; margin: 32px 0 12px; }
.page__content p,
.content p { margin-bottom: 16px; line-height: 1.75; color: #333; font-size: 15px; }
.page__content ul, .content ul { margin: 16px 0; padding-left: 24px; list-style: none; }
.page__content ol, .content ol { margin: 16px 0; padding-left: 24px; list-style: decimal; }
.page__content li, .content li { margin-bottom: 10px; line-height: 1.6; font-size: 15px; padding-left: 8px; position: relative; }
.page__content ul li::before, .content ul li::before { content: ''; position: absolute; left: -16px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: #1f92b7; }
.page__content a, .content a { color: #1f92b7; text-decoration: underline; text-underline-offset: 3px; }
.page__content a:hover, .content a:hover { color: #3f2270; }
.page__content strong { color: #1a1a2e; }
.page__content img, .content img { border-radius: 12px; margin: 24px 0; }

/* Drupal admin tabs */
.page__content .tabs { margin-bottom: 24px; }
.page__content .tabs a { font-size: 13px; color: #1f92b7; margin-right: 12px; }

/* Simulateur styles */
.page__content .simulateur { background: #f8f9fb; border-radius: 16px; padding: 40px; margin: 32px 0; border: 1px solid #e6e5e5; }
.page__content .simulateur h2 { color: #1f92b7; margin-top: 0; border: none; padding: 0; font-size: 22px; }
.page__content .simulateur__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.page__content .simulateur label { display: block; font-size: 13px; font-weight: 600; color: #5a6170; margin-bottom: 6px; }
.page__content .simulateur input,
.page__content .simulateur select { width: 100%; padding: 12px 16px; border: 2px solid #e6e5e5; border-radius: 10px; font-size: 15px; transition: border-color 0.2s; }
.page__content .simulateur input:focus,
.page__content .simulateur select:focus { border-color: #1f92b7; outline: none; }
.page__content .simulateur .btn--primary,
.page__content .simulateur button[type="submit"] { background: #1f92b7; color: #fff; padding: 12px 28px; border: none; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; margin-top: 16px; transition: background 0.2s; }
.page__content .simulateur button:hover { background: #177a9a; }
.page__content .simulateur__result { margin-top: 24px; padding: 24px; background: #fff; border-radius: 12px; border-left: 4px solid #1f92b7; }

/* ===== FOOTER ===== */
.footer { background: #1a1a2e; color: rgba(255,255,255,0.7); padding: 56px 0 24px; }
.footer__inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; }
.footer__brand { display: flex; flex-direction: column; gap: 12px; }
.footer__desc { font-size: 13px; color: rgba(255,255,255,0.45); }
.footer__title { font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,0.8); margin-bottom: 12px; }
.footer__list { display: flex; flex-direction: column; gap: 6px; }
.footer__list a { color: rgba(255,255,255,0.45); font-size: 13px; transition: color 0.2s; text-decoration: none; }
.footer__list a:hover { color: #e1ae13; }
.footer__bottom { margin-top: 40px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; font-size: 12px; color: rgba(255,255,255,0.3); }
.footer__bottom a { color: rgba(255,255,255,0.3); text-decoration: none; transition: color 0.2s; }
.footer__bottom a:hover { color: rgba(255,255,255,0.7); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header__nav { display: none; }
  .topbar__links { display: none; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .page__content .simulateur__grid { grid-template-columns: 1fr; }
  .page__content h1 { font-size: 28px; }
}

@media print {
  .topbar, .header, .footer, .skip-link, .tabs { display: none; }
  body { font-size: 12pt; }
  .page__content { max-width: 100%; }
}
