/*
Theme Name: Care Organisationnel
Theme URI: https://care-organisationnel.fr
Author: Olivier
Description: Theme WordPress sur-mesure pour Care Organisationnel
Version: 1.0
Text Domain: care-orga
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --care-bordeaux: #7A213C;
  --care-navy: #14213D;
  --care-beige: #E8DFE0;
  --care-white: #ffffff;
  --care-gray: #f8f9fa;
}

#care-theme-root {
  font-family: 'Montserrat', sans-serif;
  color: var(--care-navy);
  background-color: var(--care-white);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- HEADER & NAVIGATION --- */
.care-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 40px 5%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  box-sizing: border-box;
}

/* Adjust header background on normal pages (not home or custom template) */
body:not(.home):not(.page-template-template-care) .care-header {
  position: relative;
  background-color: var(--care-beige);
  padding-bottom: 30px;
}

.care-branding {
  text-decoration: none;
}
.care-logo-text {
  color: var(--care-bordeaux);
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.care-pill-nav {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 8px 30px;
  display: flex;
  gap: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
/* Ensure pill nav is visible correctly on non-home pages */
body:not(.home):not(.page-template-template-care) .care-pill-nav {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
}

.care-pill-nav a {
  text-decoration: none;
  color: var(--care-navy);
  font-weight: 600;
  font-size: 14px;
  opacity: 0.8;
  transition: all 0.3s;
}
.care-pill-nav a:hover, .care-pill-nav a.active {
  color: var(--care-bordeaux);
  opacity: 1;
}

/* --- HERO SECTION --- */
.care-hero {
  position: relative;
  height: 85vh;
  display: flex;
  align-items: center;
  padding: 0 10%;
  background-image: url('https://images.unsplash.com/photo-1558494949-ef010cbdcc51?auto=format&fit=crop&q=80&w=2000');
  background-size: cover;
  background-position: center;
}
.care-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--care-beige);
  opacity: 0.75;
  z-index: 1;
}
.hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
}
.hero-title {
  margin-bottom: 30px;
}
.hero-title .main-word {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(80px, 12vw, 140px);
  font-weight: 500;
  color: var(--care-bordeaux);
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.hero-title .sub-word {
  display: block;
  text-transform: uppercase;
  font-size: clamp(18px, 3vw, 36px);
  letter-spacing: 0.35em;
  color: var(--care-navy);
  margin-top: 10px;
}
.hero-desc-box {
  border-left: 2px solid var(--care-bordeaux);
  padding-left: 30px;
  margin: 40px 0;
}
.hero-desc-text {
  font-size: 20px;
  font-weight: 500;
  color: var(--care-navy);
  max-width: 600px;
  line-height: 1.5;
}
.hero-btns {
  display: flex;
  gap: 20px;
}
.btn {
  padding: 12px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  display: inline-block;
}
.btn-primary {
  background-color: var(--care-bordeaux);
  color: white;
  box-shadow: 0 4px 15px rgba(122, 33, 60, 0.2);
}
.btn-outline {
  border: 2px solid var(--care-bordeaux);
  color: var(--care-bordeaux);
}
.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* --- CONTENT SECTION --- */
.care-section {
  padding: 100px 10%;
}
.care-grid-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.care-section h1.page-title {
  font-family: 'Outfit', sans-serif;
  font-size: 48px;
  color: var(--care-bordeaux);
  margin-top: 0;
  margin-bottom: 30px;
}
.care-section h2 {
  font-size: 38px;
  font-weight: 700;
  color: var(--care-bordeaux);
  line-height: 1.2;
  margin: 0;
}
.care-section h2 span.navy {
  color: var(--care-navy);
  font-style: italic;
  font-weight: 300;
}
.care-section p.lead {
  font-size: 18px;
  color: #555;
  line-height: 1.7;
}

.care-content-area {
  line-height: 1.6;
  font-size: 16px;
  color: #444;
}

/* --- FOOTER --- */
.care-footer {
  background-color: var(--care-navy);
  color: white;
  padding: 80px 10% 40px;
  border-top: 8px solid var(--care-bordeaux);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  margin-bottom: 60px;
}
.footer-col h4 {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--care-bordeaux);
  margin-bottom: 25px;
}
.footer-col p, .footer-col a {
  color: #ccc;
  font-size: 13px;
  text-decoration: none;
  margin-bottom: 10px;
  display: block;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  text-align: center;
  font-size: 10px;
  color: #666;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .care-header { flex-direction: column; align-items: center; gap: 20px; text-align: center; }
  .care-pill-nav { padding: 8px 15px; gap: 12px; flex-wrap: wrap; justify-content: center; }
  .care-grid-intro { grid-template-columns: 1fr; gap: 40px; }
  .hero-title .main-word { font-size: 70px; }
  .hero-desc-text { font-size: 16px; }
}

.max-w-7xl { max-width: 1280px; width: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* --- DROPDOWN NAV --- */
.care-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

/* Invisible bridge so hover state isn't lost when moving to the dropdown */
.care-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 25px;
}

.care-dropdown-content {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: var(--care-white);
  min-width: 250px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-radius: 12px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  padding: 10px 0;
}

/* Specific rule to make pill-nav handle the flex container */
.care-pill-nav { align-items: center; }

.care-dropdown:hover .care-dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(15px);
}

.care-dropdown-content a {
  padding: 15px 20px;
  color: var(--care-navy) !important;
  text-decoration: none;
  font-size: 14px !important;
  font-weight: 600 !important;
  display: block;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.03);
  transition: background 0.3s ease, color 0.3s ease;
}
.care-dropdown-content a:last-child {
  border-bottom: none;
}

.care-dropdown-content a:hover {
  background-color: var(--care-beige);
  color: var(--care-bordeaux) !important;
  opacity: 1 !important;
}
