/*
Theme Name: Centre Normand de Tests Psychotechniques
Theme URI: https://cntp76.fr
Description: Thème WordPress professionnel, moderne et minimaliste pour le Centre Normand de Tests Psychotechniques.
Version: 1.0.0
Author: Centre Normand de Tests Psychotechniques
Author URI: https://cntp76.fr
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cntp76
*/

/* ==========================================
   VARIABLES, RESET & BASE
   ========================================== */
:root {
  --blue-primary: #0D2B45;
  --blue-secondary: #234E7A;
  --slate-gray: #6B7C93;
  --light-gray: #F6F9FC;
  --red-accent: #E30613;
  --red-hover: #c30510;
  --white: #FFFFFF;
  --font-title: 'Montserrat', sans-serif;
  --font-text: 'Source Sans 3', sans-serif;
  --shadow-subtle: 0 4px 20px rgba(13, 43, 69, 0.05);
  --shadow-card: 0 15px 35px rgba(13, 43, 69, 0.12);
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-text);
  color: var(--blue-primary);
  background-color: var(--white);
  line-height: 1.5;
  padding-top: 130px; /* Offset for fixed header (top bar + navbar) */
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

h1, h2, h3, h4, .font-title {
  font-family: var(--font-title);
  font-weight: 700;
}

/* Container alignment */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Red Button Style */
.btn-red {
  background-color: var(--red-accent);
  color: var(--white);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(227, 6, 19, 0.2);
}

.btn-red:hover {
  background-color: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(227, 6, 19, 0.3);
}

/* ==========================================
   FIXED HEADER & TOP BAR
   ========================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: var(--shadow-subtle);
}

/* Top blue bar */
.top-bar {
  background-color: var(--blue-primary);
  color: var(--white);
  font-family: var(--font-text);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 9px 15px;
}

.top-bar-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1250px;
  margin: 0 auto;
}

.top-bar-container span {
  opacity: 0.95;
}

.top-bar-container .bullet {
  color: var(--red-accent);
  font-size: 14px;
  opacity: 1;
}

/* Navigation menu */
.navbar {
  height: 108px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo-link {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo-img {
  height: 90px;
  width: auto;
  object-fit: contain;
}

/* Desktop Navigation links */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
}

/* Support standard WordPress dynamic list items formatting */
.nav-menu li {
  display: inline-block;
}

.nav-link, .nav-menu a {
  font-family: var(--font-title);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--blue-primary);
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
  display: inline-block;
}

.nav-link:hover, .nav-menu a:hover {
  color: var(--red-accent);
}

/* Underline for active state */
.nav-link.active::after, .nav-menu .current-menu-item a::after, .nav-menu .active a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--red-accent);
  border-radius: 2px;
}

/* Checkbox hack for pure CSS hamburger menu */
.menu-toggle-cb {
  display: none;
}

.menu-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 19px;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle-btn span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--blue-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
  width: 100%;
  min-height: 620px;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  padding: 60px 0;
  box-sizing: border-box;
}

.hero-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 80px; /* Generous gap so that the card sits over the sky-prefecture boundary */
  width: 100%;
}

.hero-content {
  width: 100%;
  max-width: 480px; /* Limits the text width to perfectly match the mockup */
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.hero-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 38px;
  line-height: 1.25;
  color: var(--blue-primary);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero-dashes {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.dash-blue {
  width: 45px;
  height: 4px;
  background-color: var(--blue-primary);
  border-radius: 2px;
}

.dash-red {
  width: 45px;
  height: 4px;
  background-color: var(--red-accent);
  border-radius: 2px;
}

.hero-lead {
  font-family: var(--font-text);
  font-size: 15.5px;
  font-weight: 500;
  color: var(--blue-primary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.hero-subtext {
  font-family: var(--font-text);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--blue-primary);
  line-height: 1.6;
  opacity: 0.95;
}

@media (max-width: 991px) {
  .hero-container {
    flex-direction: column;
    gap: 50px;
    align-items: center;
    text-align: center;
  }
  .hero-content {
    max-width: 600px;
    align-items: center;
  }
  .hero-dashes {
    justify-content: center;
  }
  .hero-section {
    background-position: 75% center;
  }
}

/* ==========================================
   FLOATING PRICE CARD
   ========================================== */
.floating-card {
  width: 380px;
  background-color: var(--white);
  border-radius: 8px; /* Perfectly rounded corners of the card in the mockup */
  box-shadow: 0 15px 40px rgba(13, 43, 69, 0.12);
  padding: 35px;
  z-index: 10;
  box-sizing: border-box;
  border: 1px solid #E5EAF0;
  flex-shrink: 0;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blue-primary);
}

.card-header-icon {
  width: 22px;
  height: 22px;
  stroke: var(--blue-primary);
  flex-shrink: 0;
}

.card-header span {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-primary);
}

.card-price {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 54px; /* Big, elegant price size matching maquette */
  color: var(--red-accent);
  margin: 14px 0 8px 0;
  line-height: 1;
}

.card-eval-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--blue-primary);
  line-height: 1.3;
}

.card-eval-sub {
  font-family: var(--font-text);
  font-size: 13.5px;
  color: var(--slate-gray);
  margin-top: 4px;
  font-weight: 500;
}

.card-list {
  list-style: none;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-primary);
}

.card-checkmark {
  width: 16px;
  height: 16px;
  stroke: var(--red-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.card-payment-box {
  background-color: #FAFAFC;
  border: 1px solid #E5EAF0;
  border-radius: 6px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.payment-icon {
  width: 22px;
  height: 22px;
  stroke: var(--blue-primary);
  flex-shrink: 0;
}

.card-payment-box span {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-primary);
}

.card-btn {
  width: 100%;
}

/* ==========================================
   ENGAGEMENTS & WHY SECTION
   ========================================== */
.engagements-section {
  background-color: var(--white);
  padding: 100px 0;
}

.engagements-container {
  display: flex;
  gap: 80px;
}

.engagements-left { flex: 1; }
.engagements-right { flex: 2.4; }

.section-title {
  font-size: 21px;
  color: var(--blue-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.3;
}

.title-underline {
  width: 55px;
  height: 3px;
  background-color: var(--red-accent);
  margin: 14px 0 22px 0;
}

/* Left col: list */
.engagements-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 25px;
}

.engagements-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.check-icon-circle {
  background-color: var(--red-accent);
  color: var(--white);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.check-icon-circle svg {
  width: 11px;
  height: 11px;
  stroke: var(--white);
}

.engagement-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--blue-primary);
  line-height: 1.4;
}

/* Right col: detail */
.why-intro {
  font-size: 15px;
  line-height: 1.6;
  color: var(--blue-primary);
  font-weight: 500;
}

.why-features {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
}

.why-feature-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-icon-wrapper {
  color: var(--blue-primary);
  margin-bottom: 14px;
}

.feature-icon-wrapper svg {
  width: 40px;
  height: 40px;
  stroke: var(--blue-primary);
}

.feature-label {
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-primary);
  line-height: 1.4;
}

/* ==========================================
   CTA BAR SECTION (DARK BLUE)
   ========================================== */
.cta-bar-section {
  background-color: var(--blue-primary);
  color: var(--white);
}

.cta-bar-container {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 55px 24px;
}

.cta-item {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.cta-icon-wrapper {
  color: var(--white);
  flex-shrink: 0;
}

.cta-icon-wrapper svg {
  width: 38px;
  height: 38px;
  stroke: var(--white);
}

.cta-text-wrapper h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
  line-height: 1.3;
}

.cta-text-wrapper p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
}

/* ==========================================
   IMAGE GALLERY SECTION
   ========================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
}

.gallery-item {
  height: 230px;
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ==========================================
   FOOTER SECTION
   ========================================== */
.main-footer {
  background-color: var(--light-gray);
  padding: 70px 0 60px 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 80px;
}

.footer-col {
  flex: 1;
}

.footer-col-logo {
  flex: 1.2;
}

.footer-logo {
  height: 75px;
  width: auto;
  object-fit: contain;
}

.footer-col h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--blue-primary);
  margin-bottom: 24px;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
}

.contact-list li svg {
  width: 16px;
  height: 16px;
  stroke: var(--blue-primary);
  flex-shrink: 0;
}

.contact-list li a:hover {
  color: var(--red-accent);
}

.rpps-box {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
}

.psi-icon {
  width: 22px;
  height: 22px;
  stroke: var(--blue-primary);
  flex-shrink: 0;
}

/* Bottom Bar */
.bottom-bar {
  background-color: var(--blue-primary);
  color: var(--white);
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bottom-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 400;
}

.bottom-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bottom-links a {
  opacity: 0.8;
}

.bottom-links a:hover {
  opacity: 1;
}

.bottom-links .dot {
  color: var(--red-accent);
  font-size: 14px;
}

.copyright {
  opacity: 0.8;
}

/* ==========================================
   RESPONSIVE MEDIA QUERIES
   ========================================== */
@media (max-width: 1150px) {
  .container, .top-bar-container, .navbar {
    max-width: 100%;
  }

  .floating-card {
    width: 350px;
    padding: 28px;
  }
}

@media (max-width: 991px) {
  body {
    padding-top: 100px; /* Adjust top padding for simpler header */
  }

  /* Navbar Hamburger Menu */
  .navbar {
    height: 75px;
  }

  .menu-toggle-btn {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 75px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    gap: 0;
    box-shadow: 0 10px 20px rgba(13, 43, 69, 0.08);
    border-top: 1px solid #ECEFF3;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #F1F4F8;
  }

  .nav-link, .nav-menu a {
    display: block;
    padding: 18px 0;
    font-size: 13px;
  }

  .nav-link.active::after, .nav-menu .current-menu-item a::after, .nav-menu .active a::after {
    bottom: 0;
    width: 100%;
    border-radius: 0;
  }

  /* Expand menu on checkbox checked */
  .menu-toggle-cb:checked ~ .nav-menu {
    max-height: 400px;
  }

  /* Hamburger animation */
  .menu-toggle-cb:checked ~ .menu-toggle-btn span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-toggle-cb:checked ~ .menu-toggle-btn span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle-cb:checked ~ .menu-toggle-btn span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Hero adjustment */
  .hero-section {
    flex-direction: column;
  }

  .hero-left, .hero-right {
    flex: 0 0 100%;
    width: 100%;
  }

  .hero-left-inner {
    max-width: 100%;
    padding: 50px 24px;
    text-align: center;
    align-items: center;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-right {
    height: 320px;
  }

  .floating-card {
    left: 50%;
    top: 0;
    transform: translate(-50%, -120px);
    box-shadow: 0 10px 30px rgba(13, 43, 69, 0.08);
  }

  /* Make extra padding below hero to accommodate overlapping card */
  .engagements-section {
    padding-top: 300px;
  }

  .engagements-container {
    flex-direction: column;
    gap: 50px;
  }

  .cta-bar-container {
    flex-direction: column;
    gap: 30px;
    padding: 45px 24px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-container {
    flex-direction: column;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .top-bar-container {
    flex-direction: column;
    gap: 4px;
  }

  .top-bar-container .bullet {
    display: none;
  }

  .bottom-bar-container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 26px;
  }

  .floating-card {
    width: calc(100% - 32px);
    padding: 24px;
  }

  .engagements-section {
    padding-top: 360px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .why-features {
    flex-direction: column;
    gap: 30px;
  }
}
