/* ============================================================
   global.css — Protect Enfant
   Shared styles for all pages (header, nav, footer, base)
   ============================================================ */

/* ----- RESET & BASE ----- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background-color: #f9fafb;
    color: #1e293b;
    line-height: 1.5;
}

/* ----- HEADER ----- */
.site-header {
    background-color: rgba(255,255,255,0.96);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(2px);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* ----- LOGO AREA ----- */
.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-area img {
    height: 3.2em;
    width: auto;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #0f3b5c;
    text-decoration: none;
    line-height: 1.1;
    margin: 0;
}

.tagline {
    font-size: 0.8rem;
    color: #4a627a;
    margin-top: 2px;
}

/* ----- NAV ----- */
.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
    align-items: center;
    font-weight: 500;
}

.nav-links a {
    text-decoration: none;
    color: #1e3a5f;
    font-size: 1rem;
    transition: color 0.2s;
}

.nav-links a:hover { color: #e67e22; }

.lang-toggle {
    background: #f1f5f9;
    border-radius: 40px;
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #cbd5e1;
    transition: all 0.2s;
}

.lang-toggle:hover { background-color: #e2e8f0; }

/* ----- MAIN CONTAINER ----- */
.container {
    max-width: 1280px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* ----- SHARED COMPONENTS ----- */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0c4a6e;
    margin-bottom: 1.5rem;
    border-left: 5px solid #e67e22;
    padding-left: 1rem;
}

.btn-primary {
    background-color: #e67e22;
    color: white;
    border: none;
    padding: 0.75rem 1.8rem;
    font-weight: 600;
    border-radius: 2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
    margin-top: 0.5rem;
}

.btn-primary:hover { background-color: #bf5e0e; }

/* ----- FOOTER ----- */
footer {
    background-color: #0f2c3b;
    color: #cbd5e6;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    font-size: 0.85rem;
}

/* ----- LANGUAGE TOGGLE ----- */
.fr-content { display: none; }
body.lang-fr .en-content { display: none; }
body.lang-fr .fr-content { display: block; }

/* ----- MOBILE ----- */
@media (max-width: 700px) {
    .header-container { flex-direction: column; align-items: flex-start; }
    .container { padding: 0 1.2rem; }
}

/* ===== SHRINK HEADER ON SCROLL ===== */
.site-header {
    transition: all 0.3s ease;
}

.site-header.shrink {
    padding: 0.3rem 0;
}

.site-header.shrink .logo-area img {
    height: 44px;
}

/* ===== NAV HOVER ANIMATION ===== */
.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: #e67e22;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===== MOBILE MENU ===== */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* override your existing mobile section */
@media (max-width: 700px) {

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 1.5rem;
    display: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    gap: 1rem;
  }

  .nav-links.active {
    display: flex;
    animation: slideDown 0.25s ease;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ===== HAMBURGER ICON ===== */
.menu-toggle {
  display: none;
  width: 30px;
  height: 22px;
  position: relative;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  width: 100%;
  height: 3px;
  background: #0f3b5c;
  left: 0;
  transition: all 0.3s ease;
}

/* lines */
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { bottom: 0; }

/* animate to X */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 9px;
}

