/* ============================================================
   UAMDD — Design System Partagé — Toutes les pages publiques
   Charte : Blanc · Rouge #DA0434 · Bleu #005A9C · Inter+Poppins
   ============================================================ */

:root {
  --red:      #DA0434;
  --red-dark: #A30226;
  --red-soft: rgba(218,4,52,.08);
  --blue:     #005A9C;
  --dark:     #1a1f2e;
  --text:     #212529;
  --muted:    #6c757d;
  --border:   #e9ecef;
  --bg:       #f8f9fa;
  --white:    #ffffff;
  --radius:   10px;
  --radius-lg:16px;
  --shadow:   0 2px 12px rgba(0,0,0,.07);
  --shadow-md:0 4px 24px rgba(0,0,0,.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: #fff; overflow-x: hidden; line-height: 1.6; }
h1,h2,h3,h4,h5,h6 { font-family: 'Poppins', sans-serif; font-weight: 700; line-height: 1.25; }
a { text-decoration: none; color: inherit; transition: color .2s; }
img { max-width: 100%; height: auto; display: block; }

/* ── NAVBAR UNIVERSELLE ── */
.u-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: white; padding: .8rem 0;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: box-shadow .3s;
}
.u-nav.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.12); }
.u-nav .navbar-brand { display: flex; align-items: center; gap: .6rem; }
.u-nav .navbar-brand img { height: 44px; border-radius: 6px; }
.u-nav .brand-name { font-family: 'Poppins',sans-serif; font-weight: 700; font-size: 1rem; color: var(--red); line-height: 1.1; }
.u-nav .brand-sub  { font-size: .6rem; color: var(--muted); display: block; font-weight: 400; }
.u-nav .nav-link   { color: #495057 !important; font-weight: 500; font-size: .88rem; padding: .45rem .85rem !important; border-radius: 6px; transition: all .2s; }
.u-nav .nav-link:hover, .u-nav .nav-link.active { color: var(--red) !important; background: var(--red-soft); }
.u-nav .dropdown-menu { border: 1px solid rgba(0,0,0,.08); border-radius: 12px; box-shadow: var(--shadow-md); padding: .5rem; }
.u-nav .dropdown-item { border-radius: 6px; font-size: .875rem; padding: .55rem .85rem; color: #495057; transition: all .15s; }
.u-nav .dropdown-item:hover { background: var(--red-soft); color: var(--red); }
.u-nav .btn-login  { border: 1.5px solid var(--red); color: var(--red) !important; border-radius: 8px; padding: .4rem 1rem !important; font-size: .85rem !important; font-weight: 600 !important; transition: all .2s; background: white; }
.u-nav .btn-login:hover  { background: var(--red); color: white !important; }
.u-nav .btn-signup { background: var(--red); color: white !important; border-radius: 8px; padding: .4rem 1.1rem !important; font-size: .85rem !important; font-weight: 600 !important; border: none; transition: all .2s; }
.u-nav .btn-signup:hover { background: var(--red-dark); transform: translateY(-1px); }
.u-nav .navbar-toggler { border: none; padding: .3rem .5rem; }
.u-nav .navbar-toggler:focus { box-shadow: none; }

/* ── PAGE HERO INTERNE ── */
.page-hero {
  background: var(--bg);
  padding: 6rem 0 3.5rem;
  margin-top: 70px;
  border-bottom: 1px solid var(--border);
}
.page-hero-title { font-size: clamp(1.6rem,3vw,2.4rem); color: var(--dark); margin-bottom: .5rem; }
.page-hero-sub   { font-size: 1rem; color: var(--muted); }
.breadcrumb-item a { color: var(--red); }
.breadcrumb-item.active { color: var(--muted); }

/* ── SECTIONS ── */
.u-section      { padding: 5rem 0; }
.u-section-bg   { background: var(--bg); }
.section-tag    { display: inline-block; background: var(--red-soft); color: var(--red); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .28rem .85rem; border-radius: 20px; margin-bottom: .75rem; }
.section-title  { font-size: clamp(1.5rem,3vw,2.2rem); color: var(--dark); margin-bottom: .85rem; }
.section-desc   { font-size: .95rem; color: var(--muted); line-height: 1.75; max-width: 560px; }
.line-red       { width: 44px; height: 3px; background: var(--red); border-radius: 2px; margin-bottom: 1.25rem; }
.line-red.center { margin: 0 auto 1.25rem; }

/* ── BOUTONS ── */
.btn-red        { background: var(--red); color: white; border: none; padding: .75rem 1.75rem; border-radius: var(--radius); font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .25s; display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; }
.btn-red:hover  { background: var(--red-dark); color: white; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(218,4,52,.25); }
.btn-outline-red { background: white; color: var(--red); border: 2px solid var(--red); padding: .75rem 1.75rem; border-radius: var(--radius); font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .25s; display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; }
.btn-outline-red:hover { background: var(--red); color: white; transform: translateY(-2px); }
.btn-blue       { background: var(--blue); color: white; border: none; padding: .75rem 1.75rem; border-radius: var(--radius); font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .25s; display: inline-flex; align-items: center; gap: .5rem; }
.btn-blue:hover { background: #004a82; color: white; transform: translateY(-2px); }

/* ── CARDS ── */
.u-card { background: white; border-radius: var(--radius-lg); border: 1.5px solid var(--border); transition: all .3s; }
.u-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(218,4,52,.2); }
.u-card-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }

/* ── FORM CONTROLS ── */
.u-input { border: 1.5px solid var(--border); border-radius: var(--radius); padding: .7rem 1rem; font-size: .875rem; width: 100%; font-family: 'Inter',sans-serif; transition: border-color .2s; }
.u-input:focus { border-color: var(--red); outline: none; box-shadow: 0 0 0 3px rgba(218,4,52,.08); }
.u-label { font-weight: 500; font-size: .875rem; color: #374151; margin-bottom: .35rem; display: block; }
.u-label .req { color: var(--red); }

/* ── FOOTER ── */
.u-footer { background: var(--dark); color: white; padding: 4rem 0 0; }
.u-footer-logo img { height: 38px; border-radius: 6px; }
.u-footer-text  { color: rgba(255,255,255,.45); font-size: .84rem; line-height: 1.7; margin-top: .85rem; }
.u-footer-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.55); margin-bottom: .85rem; font-family: 'Poppins',sans-serif; }
.u-footer-link  { color: rgba(255,255,255,.4); font-size: .84rem; display: block; padding: .22rem 0; transition: color .15s; }
.u-footer-link:hover { color: white; }
.u-footer-social a { width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.5); display: inline-flex; align-items: center; justify-content: center; font-size: .82rem; transition: all .2s; margin-right: .3rem; text-decoration: none; }
.u-footer-social a:hover { background: var(--red); color: white; }
.u-footer-bottom { border-top: 1px solid rgba(255,255,255,.06); margin-top: 2.5rem; padding: 1.25rem 0; }
.u-footer-bottom p { color: rgba(255,255,255,.3); font-size: .8rem; margin: 0; }
.newsletter-row { display: flex; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.12); }
.newsletter-row input { flex: 1; background: rgba(255,255,255,.06); border: none; color: white; padding: .6rem 1rem; font-size: .84rem; }
.newsletter-row input::placeholder { color: rgba(255,255,255,.3); }
.newsletter-row button { background: var(--red); border: none; color: white; padding: .6rem 1rem; font-size: .82rem; font-weight: 600; cursor: pointer; transition: background .2s; white-space: nowrap; }
.newsletter-row button:hover { background: var(--red-dark); }

/* ── BADGES DOMAINES ── */
.dom-finance    { background: #dbeafe; color: #1e40af; }
.dom-management { background: #dcfce7; color: #166534; }
.dom-ingenierie { background: #fef3c7; color: #92400e; }
.dom-dd         { background: #cffafe; color: #155e75; }
.dom-pill { font-size: .7rem; font-weight: 700; padding: .22rem .65rem; border-radius: 20px; display: inline-block; }

/* ── ALERTS ── */
.u-alert { padding: .85rem 1.1rem; border-radius: var(--radius); font-size: .875rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem; }
.u-alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.u-alert-error   { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.u-alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.u-alert-info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
  .u-nav .navbar-collapse { background: white; border-radius: 12px; margin-top: .5rem; padding: 1rem; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
  .u-nav .navbar-nav { gap: .2rem; }
  .u-nav #nav-user-area { padding-top: .85rem; border-top: 1px solid var(--border); margin-top: .5rem; flex-direction: row !important; flex-wrap: wrap; }
  .u-nav .dropdown-menu { position: static !important; box-shadow: none; border: none; background: var(--bg); margin: .25rem 0; }
}
@media (max-width: 767px) {
  .u-section { padding: 3.5rem 0; }
  .section-title { font-size: 1.5rem; }
  .page-hero { padding: 5rem 0 2.5rem; }
  .page-hero-title { font-size: 1.5rem; }
}
