/*
Theme Name: J'aime Les Startups
Description: Shared stylesheet scaffold extracted from the supplied homepage and single-page HTML files.
Version: 1.0
*/

/* -----------------------------------------------------------------------------
   This file is the shared/global stylesheet for the WordPress theme.
   Because the two HTML files contain many overlapping selectors with different
   values, I kept page-specific CSS in separate files to avoid conflicts:
   - assets/css/home.css
   - assets/css/single.css

   Enqueue:
   - main.css on every page
   - home.css only on the homepage template
   - single.css only on single post/startup templates
----------------------------------------------------------------------------- */

/* Shared variables */
:root {
  --navy: #16356b;
  --blue: #39a9e1;
  --pink: #ee4766;
  --soft-bg: #f3f3f3;
  --card-bg: #ffffff;
  --text: #202020;
  --muted: #676767;
  --shadow-soft: 0 8px 28px rgba(15, 34, 63, 0.08);
  --light-lilac: #d9d6e8;
  --light-pink: #efd7db;
  --light-blue: #c8e5f5;
}

/* Global reset/base */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--soft-bg);
  color: var(--text);
}

a {
  text-decoration: none;
  color: inherit;
}

.skip-link {
  z-index: 1050;
}

/* Shared header */
.site-navbar {
  padding: 18px 0;
  background: transparent;
}

.site-navbar .container {
  background: #ffffff;
  border-radius: 22px;
  padding: 12px 18px;
  box-shadow: 0 8px 28px rgba(15, 34, 63, 0.06);
}

.site-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--navy), #294f96);
  position: relative;
  flex: 0 0 auto;
}

.brand-mark::before {
  content: '';
  position: absolute;
  inset: 7px;
  background: #fff;
  border-radius: 6px;
  clip-path: polygon(0 0, 70% 0, 70% 28%, 100% 28%, 100% 100%, 0 100%);
  opacity: 0.95;
}

.navbar-nav {
  gap: 24px;
}

.navbar-nav .dropdown {
  position: static;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-dropdown-toggle::after {
  content: '›';
  font-size: 16px;
  line-height: 1;
  transform: translateY(-1px);
}

.nav-link {
  font-size: 12px;
  font-weight: 500;
  color: #4b4b4b;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0 !important;
}

.nav-link.active {
  color: var(--pink) !important;
}

.navbar .dropdown-menu {
  border: 0;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 18px 36px rgba(15, 34, 63, 0.12);
  padding: 22px 22px 18px;
  min-width: 320px;
  margin-top: 0;
  top: calc(100% + 12px);
  background: #f8f8f8;
  list-style: none;
}

.navbar .dropdown-menu.narrow {
  min-width: 270px;
}

.navbar .dropdown-menu.wide {
  min-width: 430px;
}

.navbar .dropdown-menu li {
  margin: 0;
  padding: 0;
}

.dropdown-menu-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin: 12px 0 8px;
}

.dropdown-item {
  padding: 6px 0;
  font-size: 13px;
  line-height: 1.45;
  color: #16356b;
  white-space: normal;
  background: transparent;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: transparent;
  color: var(--pink);
}

.search-icon {
  width: 16px;
  height: 16px;
  border: 2px solid #3f3f3f;
  border-radius: 50%;
  position: relative;
  display: inline-block;
}

.search-icon::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 2px;
  background: #3f3f3f;
  right: -5px;
  bottom: -2px;
  transform: rotate(45deg);
  border-radius: 2px;
}

.nav-search-item {
  display: flex;
  align-items: center;
}

.nav-search-form {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 34px;
}

.nav-search-input {
  width: 150px;
  height: 34px;
  padding: 0 34px 0 12px;
  border: 1px solid #e3e8f2;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 13px;
  outline: 0;
  transition: width 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-search-input::placeholder {
  color: #7c8698;
}

.nav-search-form:focus-within .nav-search-input,
.nav-search-input:not(:placeholder-shown) {
  width: 190px;
  border-color: #e3e8f2;
  background: #fff;
}

.nav-search-button {
  position: absolute;
  right: 0;
  top: 50%;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #3f3f3f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
}

.nav-search-button:hover,
.nav-search-button:focus {
  color: var(--pink);
}

.nav-search-button:hover .search-icon,
.nav-search-button:focus .search-icon {
  border-color: currentColor;
}

.nav-search-button:hover .search-icon::after,
.nav-search-button:focus .search-icon::after {
  background: currentColor;
}

.navbar-toggler {
  border: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(15, 34, 63, 0.08);
  padding: 8px 10px;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.18rem rgba(57, 169, 225, 0.2);
}

.navbar-toggler-icon {
  background-image: none;
  width: 18px;
  height: 2px;
  background: #717171;
  position: relative;
  display: inline-block;
  border-radius: 2px;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #717171;
  border-radius: 2px;
}

.navbar-toggler-icon::before {
  top: -6px;
}

.navbar-toggler-icon::after {
  top: 6px;
}

/* Shared tags/buttons */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  text-decoration: none;
  line-height: 1;
}

.tag-neutral {
  color: #7c8698;
  background: #f1f3f6;
}

.tag-blue {
  color: #57b7df;
  background: #eef8fc;
}

.tag-pink {
  color: #e58a98;
  background: #fdf0f3;
}

.tag-purple {
  color: #c98aa5;
  background: #faf1f5;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
}

.cta-link::after {
  content: '›';
  line-height: 1;
}

/* Posts Like Dislike */
.jls-post-reactions {
  margin: 18px auto 8px;
  text-align: center;
}

.jls-post-reactions-shortcode {
  display: inline-flex;
  max-width: 100%;
  justify-content: center;
}

/* Shared video embeds */
.jls-video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: #111;
}

.jls-video-embed iframe,
.jls-video-embed > * {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.jls-video-fallback {
  width: 100%;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-radius: 12px;
  background: var(--navy);
}

.jls-video-fallback a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

/* 404 */
.error-page {
  min-height: 66vh;
}

.error-section {
  padding: 34px 0 72px;
}

.error-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 36px;
  align-items: stretch;
  width: 100%;
  padding: clamp(26px, 4vw, 48px);
  border-radius: 34px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.error-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
}

.error-eyebrow {
  width: max-content;
  margin: 0 0 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--light-pink);
  color: var(--pink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.error-main h1 {
  margin: 0 0 16px;
  color: #111;
  font-size: clamp(42px, 7vw, 88px);
  font-weight: 900;
  line-height: 0.95;
}

.error-intro {
  max-width: 620px;
  margin: 0 0 28px;
  color: #444;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.45;
}

.error-search {
  width: min(100%, 560px);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 8px;
  border: 1px solid #e6e8ee;
  border-radius: 999px;
  background: #f8f9fb;
}

.error-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  outline: 0;
  padding: 10px 10px 10px 14px;
}

.error-search input::placeholder {
  color: #7f8794;
}

.error-search button {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 18px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #eef8fc;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.error-button-primary {
  background: var(--navy);
  color: #fff;
}

.error-shortcuts {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 26px;
  background: var(--light-blue);
  color: var(--navy);
}

.error-code {
  display: block;
  color: rgba(22, 53, 107, 0.16);
  font-size: clamp(72px, 10vw, 132px);
  font-weight: 900;
  line-height: 0.85;
}

.error-shortcuts h2 {
  margin: auto 0 18px;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  line-height: 1.1;
}

.error-shortcuts ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.error-shortcuts a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid rgba(22, 53, 107, 0.18);
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

.error-shortcuts i {
  flex: 0 0 auto;
  color: var(--pink);
}

/* Shared footer */
.footer {
  background: var(--navy);
  color: #fff;
  margin-top: 42px;
  padding: 56px 0 40px;
}

.footer-brand {
  text-align: center;
  margin-bottom: 34px;
}

.footer-brand .brand-mark {
  margin: 0 auto 10px;
  background: linear-gradient(145deg, #274f97, #0e2450);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  margin: 0;
}

.footer h2,
.footer h3 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #fff;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 6px;
}

.social-row {
  text-align: center;
  margin-top: 26px;
}

.social-icons {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.social-icons a {
  background: #fff;
  color: var(--navy);
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 26px;
  font-weight: 700;
}

.desktop-only {
  display: block;
}

.dernier-mise-a-jour {
  font-size: 12px;
  color: #343434;
}

/* Shared responsive rules */
@media (min-width: 992px) {
  .navbar .dropdown:hover .dropdown-menu,
  .navbar .dropdown:focus-within .dropdown-menu {
    display: block;
  }

  .navbar .dropdown-toggle-area {
    position: relative;
  }

  .navbar .dropdown-toggle-area::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 14px;
  }
}

@media (max-width: 991.98px) {
  .site-navbar {
    padding: 16px 0 8px;
  }

  .error-section {
    padding-top: 22px;
  }

  .error-shell {
    grid-template-columns: 1fr;
  }

  .error-main,
  .error-shortcuts {
    min-height: auto;
  }

  .site-navbar .navbar-collapse {
    margin-top: 14px;
    background: #fff;
    border-radius: 18px;
    padding: 14px 18px;
    box-shadow: var(--shadow-soft);
  }

  .navbar .dropdown-menu,
  .navbar .dropdown-menu.narrow,
  .navbar .dropdown-menu.wide {
    min-width: 100%;
    margin-top: 10px;
    border-radius: 18px;
    box-shadow: none;
    padding: 10px 0 0;
    background: transparent;
  }

  .nav-dropdown-toggle::after {
    transform: rotate(90deg);
  }

  .dropdown-item {
    padding: 7px 0;
  }

  .navbar-nav {
    gap: 10px;
  }

  .nav-search-item {
    width: 100%;
  }

  .nav-search-form {
    width: 100%;
    justify-content: stretch;
    margin-top: 4px;
  }

  .nav-search-input,
  .nav-search-form:focus-within .nav-search-input,
  .nav-search-input:not(:placeholder-shown) {
    width: 100%;
    opacity: 1;
    border-color: #e3e8f2;
    background: #fff;
  }
}

@media (max-width: 767.98px) {
  .container {
    max-width: 92%;
  }

  .error-section {
    padding-bottom: 48px;
  }

  .error-shell {
    padding: 22px;
    border-radius: 24px;
    gap: 24px;
  }

  .error-main h1 {
    font-size: 44px;
  }

  .error-search {
    border-radius: 22px;
  }

  .error-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .error-button {
    width: 100%;
  }

  .error-shortcuts {
    border-radius: 20px;
  }

  .site-navbar .navbar-brand {
    font-size: 12px;
  }

  .footer {
    padding: 42px 0 30px;
  }

  .footer .row > * {
    margin-bottom: 20px;
  }

  .desktop-only {
    display: none !important;
  }
}

.reaction-icon img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.navbar-brand .brand-text {
  position: relative;
  display: inline-block;
}

.navbar-brand .brand-text::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 3px;
  background: var(--pink);
  border-radius: 2px;
}

.tag {
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag:hover {
    transform: translateY(-1px);
    opacity: 0.85;
}

.footer-activities {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(140px, 1fr)) !important;
  column-gap: 28px;
  row-gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 420px;
}

.footer-activities li {
  margin: 0;
  width: auto !important;
}

.footer-activities a {
  display: inline-block;
}

.press-logo {
  max-width: 180px;
  max-height: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.pdf-link {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 6px;
  background: #f5f5f5;
  text-decoration: none;
  margin-bottom: 8px;
}

.pdf-link::before {
  content: "📄 ";
}

.pdf-link:hover {
  background: #e9ecef;
  text-decoration: none;
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .footer-activities {
    grid-template-columns: 1fr !important;
  }
}
