/* =========================================================
   PsyTchad — Association des Psychologues du Tchad
   Style inspiré maquette Mindtune / Psychology template
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&display=swap');

:root {
  --green: #1a9b96;
  --green-dark: #0e6b72;
  --green-deep: #0a3d4a;
  --green-soft: #e6f5f4;
  --green-mint: #f2faf9;
  --green-mid: #2ab5ae;
  --ink: #1a1f1c;
  --muted: #5c665f;
  --white: #ffffff;
  --border: rgba(10, 61, 74, 0.08);
  --shadow: 0 12px 40px rgba(10, 61, 74, 0.08);
  --radius: 14px;
  --header-h: 88px;
  --font-body: 'Sora', sans-serif;
  --font-display: 'Sora', sans-serif;
  --font-script: 'Sora', sans-serif;
  --container: 1180px;
  --transition: 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), background var(--transition), opacity var(--transition);
}

ul {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: 5.5rem 0;
}

.section-label {
  display: inline-block;
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

.section-title .script {
  font-family: var(--font-script);
  color: var(--green);
  font-weight: 600;
  font-style: italic;
  font-size: 1em;
}

.section-intro {
  color: var(--muted);
  max-width: 560px;
  margin-top: 1rem;
}

.text-center {
  text-align: center;
}

.text-center .section-intro {
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-dark);
}

.btn-outline {
  background: transparent;
  border-color: var(--green);
  color: var(--green);
}

.btn-outline:hover {
  background: var(--green);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--green-deep);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--green);
  font-weight: 600;
  font-size: 0.92rem;
}

.link-arrow:hover {
  gap: 0.65rem;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.site-header.menu-open-header {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 24px rgba(30, 61, 40, 0.08);
}

.site-header.menu-open-header .logo-text,
.site-header.menu-open-header .nav-toggle,
.site-header.menu-open-header .header-phone {
  color: var(--ink);
}

.site-header.scrolled,
.site-header.solid {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(30, 61, 40, 0.08);
}

.site-header.scrolled .nav-menu > a,
.site-header.solid .nav-menu > a,
.site-header.scrolled .header-phone,
.site-header.solid .header-phone,
.site-header.scrolled .logo-text,
.site-header.solid .logo-text {
  color: var(--ink);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(100% - 2.5rem, 1280px);
  margin-inline: auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  z-index: 1001;
}

.logo-img {
  width: 64px;
  height: 64px;
  display: block;
  object-fit: contain;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(10, 61, 74, 0.15);
  overflow: hidden;
}

.site-footer .logo-img {
  width: 72px;
  height: 72px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-menu > a,
.nav-dropdown-toggle {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-menu > a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width var(--transition);
}

.nav-menu > a:hover::after,
.nav-menu > a.active::after {
  width: 100%;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle i {
  font-size: 0.7rem;
  transition: transform var(--transition);
}

.nav-dropdown.open .nav-dropdown-toggle i {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 200px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(30, 61, 40, 0.14);
  padding: 0.55rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 1002;
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  color: var(--ink) !important;
  font-size: 0.9rem;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  background: var(--green-soft);
  color: var(--green-deep) !important;
}

.nav-dropdown-menu a::after {
  display: none !important;
}

.site-header.scrolled .nav-dropdown-toggle,
.site-header.solid .nav-dropdown-toggle,
.site-header.menu-open-header .nav-dropdown-toggle {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--white);
  font-weight: 600;
  font-size: 0.92rem;
}

.header-phone i {
  font-size: 0.95rem;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 1001;
}

.site-header.scrolled .nav-toggle,
.site-header.solid .nav-toggle {
  color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(105deg, rgba(10, 61, 74, 0.82) 0%, rgba(10, 61, 74, 0.55) 55%, rgba(10, 61, 74, 0.35) 100%),
    url('../images/hero-accueil.jpg') center/cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: calc(var(--header-h) + 1.5rem) 0 5.5rem;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-label {
  color: #9fd4d1;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.45rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.2vw, 3.1rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.65rem;
}

.hero h1 em {
  font-style: italic;
  color: #9fd4d1;
}

.hero-content > p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 560px;
  margin: 0 auto 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.hero-actions .btn {
  padding: 0.75rem 1.35rem;
  font-size: 0.9rem;
}

.hero-btn-mobile {
  display: none;
  border-color: rgba(255, 255, 255, 0.75);
  color: var(--white);
}

.hero-btn-mobile:hover {
  background: var(--white);
  color: var(--green-deep);
  border-color: var(--white);
}

.hero-info-item a {
  color: inherit;
}

.hero-info-item:nth-child(2) a {
  color: var(--white);
}

.hero-info {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  width: min(100% - 2.5rem, var(--container));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  z-index: 3;
}

.hero-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.6rem 1.5rem;
  background: var(--green-soft);
}

.hero-info-item:nth-child(2) {
  background: var(--green);
  color: var(--white);
}

.hero-info-item:nth-child(2) .info-icon {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.hero-info-item:nth-child(2) .info-text strong,
.hero-info-item:nth-child(2) .info-text span {
  color: var(--white);
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  color: var(--green);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.info-text strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
  color: var(--ink);
}

.info-text span {
  font-size: 0.88rem;
  color: var(--muted);
  display: block;
  line-height: 1.45;
}

/* ---------- About ---------- */
.about {
  padding-top: 7.5rem;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-media {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4/3.2;
  box-shadow: var(--shadow);
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 0;
  background: var(--green);
  color: white;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(90, 173, 90, 0.45);
  transition: transform var(--transition);
}

.play-btn:hover {
  transform: scale(1.06);
}

.about-content .section-title {
  margin-bottom: 1.25rem;
}

.about-content p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.about-content .btn {
  margin-top: 1.25rem;
}

/* ---------- Services ---------- */
.services {
  background: var(--green-mint);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
}

.service-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.1rem;
  border: 3px solid var(--green-soft);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.service-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}

/* ---------- Stats ---------- */
.stats {
  position: relative;
  padding: 5rem 0;
  color: var(--white);
  background:
    linear-gradient(rgba(18, 40, 24, 0.72), rgba(18, 40, 24, 0.72)),
    url('../images/bg-stats.jpg') center/cover fixed;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-item span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.team-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 980px;
  margin-inline: auto;
}

.team-card {
  text-align: center;
}

.team-photo {
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  aspect-ratio: 3/3.5;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card:hover .team-photo img {
  transform: scale(1.05);
}

.team-meta {
  background: var(--green-soft);
  border-radius: 0 0 18px 18px;
  padding: 1.25rem 1rem 1.4rem;
}

.team-meta h3 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.team-meta p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
}

.socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white);
  color: var(--green-deep);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
}

.socials a:hover {
  background: var(--green);
  color: var(--white);
}

/* ---------- Team carousel ---------- */
.team-carousel {
  position: relative;
  max-width: 1100px;
  margin: 3rem auto 0;
  padding: 0 2.75rem;
}

.team-carousel-viewport {
  overflow: hidden;
}

.team-carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.team-carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
}

@media (min-width: 600px) {
  .team-carousel-slide {
    flex: 0 0 calc(50% - 0.75rem);
  }
}

@media (min-width: 900px) {
  .team-carousel-slide {
    flex: 0 0 calc(33.333% - 1rem);
  }
}

.team-carousel-btn {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--green);
  cursor: pointer;
  z-index: 2;
  display: grid;
  place-items: center;
  transition: background var(--transition), color var(--transition);
}

.team-carousel-btn:hover,
.team-carousel-btn:focus-visible {
  background: var(--green);
  color: var(--white);
}

.team-carousel-prev {
  left: 0;
}

.team-carousel-next {
  right: 0;
}

.team-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.35rem;
  min-height: 10px;
}

.team-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(26, 155, 150, 0.25);
  cursor: pointer;
  padding: 0;
  transition: width var(--transition), background var(--transition), border-radius var(--transition);
}

.team-carousel-dot.active {
  background: var(--green);
  width: 22px;
  border-radius: 4px;
}

.team-carousel-static .team-carousel-track {
  justify-content: center;
}

@media (max-width: 599px) {
  .team-carousel {
    padding: 0 2.25rem;
  }

  .team-carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }
}

/* ---------- Pricing ---------- */
.pricing {
  position: relative;
  color: var(--white);
  background:
    linear-gradient(rgba(18, 40, 24, 0.78), rgba(18, 40, 24, 0.78)),
    url('../images/bg-pricing.jpg') center/cover fixed;
}

.pricing .section-title,
.pricing .section-label {
  color: var(--white);
}

.pricing .section-label {
  color: #b8e0b8;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.price-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 2rem 1.6rem;
  text-align: center;
  transition: transform var(--transition), background var(--transition);
}

.price-card:hover,
.price-card.featured {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-6px);
}

.price-card h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
}

.price-card .price {
  font-size: 2rem;
  font-weight: 700;
  color: #b8e0b8;
  margin-bottom: 0.25rem;
}

.price-card .price-note {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.25rem;
}

.price-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.25rem;
  border: 3px solid rgba(255, 255, 255, 0.35);
}

.price-features {
  text-align: left;
  margin: 0 auto 1.75rem;
  max-width: 220px;
}

.price-features li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
}

.price-features li i {
  color: var(--green);
  font-size: 1rem;
  flex-shrink: 0;
}

/* ---------- Process ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 42px;
  left: 8%;
  right: 8%;
  height: 2px;
  border-top: 2px dashed rgba(90, 173, 90, 0.35);
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
  margin: 0 auto 1.1rem;
  font-size: 1.6rem;
  border: 4px solid var(--white);
  box-shadow: var(--shadow);
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.45rem;
}

.process-step p {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 200px;
  margin-inline: auto;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 4rem;
}

.gallery-strip img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
}

/* ---------- FAQ + Testimonials ---------- */
.faq-testimonial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.faq-panel {
  background: var(--green-mint);
  padding: 5rem 4rem 5rem 8vw;
}

.testimonial-panel {
  position: relative;
  color: var(--white);
  padding: 5rem 8vw 5rem 4rem;
  background:
    linear-gradient(rgba(18, 40, 24, 0.8), rgba(18, 40, 24, 0.8)),
    url('../images/gallery-03.jpg') center/cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.faq-list {
  margin-top: 2rem;
}

.faq-item {
  border-bottom: 1px solid rgba(30, 61, 40, 0.12);
}

.faq-question {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  padding: 1.15rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}

.faq-question .icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--white);
  color: var(--green);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  transition: transform var(--transition);
}

.faq-item.open .faq-question .icon {
  transform: rotate(45deg);
  background: var(--green);
  color: white;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  color: var(--muted);
  font-size: 0.95rem;
}

.faq-item.open .faq-answer {
  max-height: 220px;
  padding-bottom: 1.1rem;
}

.quote-mark {
  font-size: 2.5rem;
  line-height: 1;
  color: var(--green);
  margin-bottom: 1rem;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-style: italic;
  line-height: 1.35;
  margin-bottom: 2rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.testimonial-author strong {
  display: block;
}

.testimonial-author span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- CTA / Contact form section ---------- */
.cta-band {
  background: var(--green-soft);
  padding: 4.5rem 0;
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.form-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--green-mint);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(90, 173, 90, 0.15);
}

.form-group textarea {
  min-height: 110px;
  resize: vertical;
}

.alert {
  padding: 0.9rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.93rem;
}

.alert-success {
  background: #e7f7e8;
  color: #1e6b2a;
  border: 1px solid #b7e0bb;
}

.alert-error {
  background: #fdecea;
  color: #8a1f17;
  border: 1px solid #f5c2c0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #121916;
  color: rgba(255, 255, 255, 0.78);
  padding-top: 4.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.site-footer .logo-text {
  color: var(--white);
}

.footer-about p {
  margin: 1.1rem 0 1.4rem;
  font-size: 0.95rem;
  max-width: 280px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}

.footer-col ul li {
  margin-bottom: 0.65rem;
}

.footer-col a:hover {
  color: var(--green);
}

.footer-contact li {
  display: flex;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 700px) {
  .locations-grid {
    grid-template-columns: 1fr;
  }
}

.footer-contact li > i {
  color: var(--green);
  margin-top: 0.2rem;
  width: 1rem;
  text-align: center;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

.footer-bottom a:hover {
  color: var(--green);
}

/* ---------- Inner pages ---------- */
.page-hero {
  padding: calc(var(--header-h) + 4rem) 0 4rem;
  background:
    linear-gradient(rgba(18, 40, 24, 0.75), rgba(18, 40, 24, 0.75)),
    url('../images/bg-stats.jpg') center/cover;
  color: white;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.5rem);
}

.page-hero p {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
}

.content-page {
  padding: 4.5rem 0;
}

/* ---------- ATPCP additions ---------- */
.logo-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-full {
  font-size: 0.62rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  max-width: 220px;
  margin-top: 0.15rem;
}

.site-header.scrolled .logo-full,
.site-header.solid .logo-full,
.site-header.menu-open-header .logo-full {
  color: var(--muted);
}

.nav-menu {
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-menu a {
  font-size: 0.82rem;
}

.emergency-fab {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}

.emergency-fab-btn {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: #c4921a;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(196, 146, 26, 0.45);
  display: grid;
  place-items: center;
  transition: transform var(--transition), background var(--transition);
}

.emergency-fab-btn:hover,
.emergency-fab.open .emergency-fab-btn {
  background: #a67912;
  transform: scale(1.05);
}

.emergency-fab-panel {
  width: min(280px, calc(100vw - 2rem));
  background: #fffdf7;
  color: #5c4a1f;
  border: 1px solid #f0d9a0;
  border-radius: 14px;
  padding: 0.95rem 1rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  font-size: 0.85rem;
  line-height: 1.45;
  display: none;
}

.emergency-fab.open .emergency-fab-panel {
  display: block;
}

.emergency-fab-panel strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.emergency-fab-panel a {
  color: var(--green-dark);
  font-weight: 600;
}

.domains-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.domain-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.35rem 1.1rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.domain-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.domain-card i {
  font-size: 1.5rem;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.domain-card h3 {
  font-size: 1rem;
  font-weight: 600;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.value-item {
  background: var(--green-soft);
  border-radius: 12px;
  padding: 1.1rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.92rem;
}

.person-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.person-card {
  background: var(--white);
  border-radius: 16px;
  padding: 1.75rem 1.4rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.person-card .avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-deep);
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  margin: 0 auto 1rem;
  overflow: hidden;
}

.person-card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.person-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.person-card .role {
  color: var(--green);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.person-card .meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.person-card .meta a {
  color: var(--ink);
}

.person-card .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.15rem;
}

.person-card .actions .btn {
  padding: 0.55rem 0.9rem;
  font-size: 0.82rem;
}

.news-grid,
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.news-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.news-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.news-card .body {
  padding: 1.25rem;
}

.news-card .date {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.news-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.news-card p {
  color: var(--muted);
  font-size: 0.93rem;
}

.partners-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.partner-chip {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
}

.prose {
  max-width: 820px;
  margin-inline: auto;
}

.prose p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin: 2.25rem 0 0.85rem;
  color: var(--ink);
}

.prose h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 1.5rem 0 0.55rem;
  color: var(--ink);
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose ul li,
.prose ol li {
  margin-bottom: 0.5rem;
  line-height: 1.55;
}

.prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--green);
  background: rgba(26, 155, 150, 0.08);
  border-radius: 0 12px 12px 0;
  color: var(--ink);
  font-style: italic;
}

.prose .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.prose .article-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* ---------- Déontologie page ---------- */
.deonto-page {
  padding-bottom: 4rem;
}

.deonto-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.deonto-nav {
  position: sticky;
  top: calc(var(--header-h) + 1.25rem);
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-sm);
}

.deonto-nav-title {
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green);
  margin-bottom: 0.85rem;
}

.deonto-nav a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.92rem;
  color: var(--muted);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: color var(--transition);
}

.deonto-nav a:last-child {
  border-bottom: none;
}

.deonto-nav a:hover,
.deonto-nav a:focus-visible {
  color: var(--green);
}

.deonto-main section {
  scroll-margin-top: calc(var(--header-h) + 1rem);
  padding-top: 0.5rem;
  margin-bottom: 2.5rem;
}

.deonto-main section:not(:first-of-type) {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.deonto-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 2rem;
}

.deonto-cta {
  margin-top: 1.5rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: rgba(26, 155, 150, 0.08);
  border: 1px solid rgba(26, 155, 150, 0.2);
}

.deonto-cta p {
  margin-bottom: 1rem;
}

.deonto-cta .btn {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 900px) {
  .deonto-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .deonto-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    padding: 1rem;
  }

  .deonto-nav-title {
    width: 100%;
    margin-bottom: 0.35rem;
  }

  .deonto-nav a {
    border-bottom: none;
    padding: 0.35rem 0;
  }
}

/* ---------- Adhésion / Renouvellement ---------- */
.page-hero-compact {
  padding: 3.25rem 0 2.5rem;
}

.membership-area {
  padding-bottom: 4rem;
}

.membership-area-inner {
  max-width: 820px;
}

.membership-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.membership-mode-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 2px solid var(--border);
  background: var(--white);
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.membership-mode-tab:hover,
.membership-mode-tab:focus-visible {
  border-color: var(--green);
}

.membership-mode-tab.active {
  border-color: var(--green);
  background: rgba(26, 155, 150, 0.1);
  color: var(--green-dark, #0f5c4f);
}

.membership-panel-head {
  text-align: center;
  margin-bottom: 1.5rem;
}

.membership-panel-head p {
  margin-top: 0.85rem;
  color: var(--muted);
}

.btn-lg {
  padding: 0.95rem 1.5rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.membership-wizard-card {
  margin-top: 0.5rem;
}

.wizard-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0 0 1.75rem;
  padding: 0;
}

.wizard-step {
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--muted);
  text-align: center;
}

.wizard-step span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  margin: 0 auto 0.35rem;
  border-radius: 50%;
  border: 2px solid var(--border);
  font-weight: 700;
  font-size: 0.82rem;
}

.wizard-step.active {
  color: var(--ink);
  font-weight: 600;
}

.wizard-step.active span,
.wizard-step.done span {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.wizard-panel h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.wizard-hint {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.wizard-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.formula-picker {
  border: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.formula-picker legend {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.formula-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.formula-option:hover {
  border-color: var(--green);
  background: rgba(26, 155, 150, 0.05);
}

.formula-option input {
  margin-top: 0.2rem;
}

.formula-option strong {
  display: block;
}

.formula-option small {
  color: var(--muted);
}

.wizard-summary {
  background: var(--green-mint);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
}

.wizard-summary h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.wizard-summary-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.wizard-summary-list div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.5rem;
  font-size: 0.92rem;
}

.wizard-summary-list dt {
  color: var(--muted);
  font-weight: 600;
}

.wizard-summary-list dd {
  margin: 0;
}

.wizard-validation-note {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(26, 155, 150, 0.08);
  border: 1px solid rgba(26, 155, 150, 0.2);
}

.wizard-validation-note i {
  color: var(--green);
  margin-top: 0.15rem;
}

.membership-renew-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  background: var(--green-mint);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.membership-renew-path i {
  color: var(--green);
  font-size: 0.75rem;
}

.membership-login-card h2 {
  margin-bottom: 0.5rem;
}

.membership-demo-note {
  margin: 1.25rem 0;
  padding: 1rem;
  border-radius: 12px;
  background: #fff9e8;
  border: 1px solid #f0dfa0;
  font-size: 0.92rem;
}

.membership-status-preview {
  margin: 0.5rem 0;
}

.membership-warning-preview {
  color: #9a6700;
  font-weight: 600;
  margin: 0;
}

.membership-login-help {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.membership-status-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.35rem 1.5rem;
  border-radius: 16px;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.membership-status-active {
  border-color: #b7e0bb;
  background: #f3fbf4;
}

.membership-status-expiring {
  border-color: #f0dfa0;
  background: #fff9e8;
}

.membership-status-expired {
  border-color: #f5c2c0;
  background: #fef5f4;
}

.membership-status-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.membership-status-active .membership-status-icon {
  color: #1e6b2a;
}

.membership-status-expiring .membership-status-icon {
  color: #9a6700;
}

.membership-status-expired .membership-status-icon {
  color: #8a1f17;
}

.membership-status-label {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.membership-status-date {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.membership-status-note {
  font-size: 0.92rem;
  margin: 0;
}

.membership-warning {
  color: #9a6700;
  font-weight: 600;
}

.membership-danger {
  color: #8a1f17;
}

.membership-renew-flow h2 {
  margin-bottom: 0.35rem;
}

.membership-renew-intro {
  color: var(--muted);
  margin-bottom: 1rem;
}

.membership-help {
  margin-top: 1.5rem;
  font-size: 0.92rem;
  color: var(--muted);
}

@media (max-width: 768px) {
  .wizard-steps {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .wizard-step {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-align: left;
  }

  .wizard-step span {
    margin: 0;
    flex-shrink: 0;
  }

  .wizard-summary-list div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .membership-mode-tabs {
    grid-template-columns: 1fr;
  }

  .product-detail,
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .job-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

/* ---------- Emploi ---------- */
.jobs-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.job-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.35rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.job-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.job-org {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.job-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding: 0;
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.job-meta li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.job-meta-detail {
  margin-bottom: 1.5rem;
}

.recruiter-cta {
  padding: 1.5rem;
  border-radius: 16px;
  background: var(--green-mint);
  text-align: center;
}

.recruiter-cta h3 {
  margin-bottom: 0.35rem;
}

.recruiter-cta p {
  color: var(--muted);
  margin-bottom: 1rem;
}

/* ---------- Annuaire ---------- */
.annuaire-search {
  margin-bottom: 1.5rem;
}

.annuaire-count {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.annuaire-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.annuaire-card {
  padding: 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.annuaire-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(26, 155, 150, 0.12);
  color: var(--green);
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
}

.annuaire-role {
  color: var(--green);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
}

.annuaire-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.annuaire-meta li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

/* ---------- Boutique ---------- */
.shop-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.shop-cat {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--muted);
  transition: all var(--transition);
}

.shop-cat:hover,
.shop-cat.active {
  border-color: var(--green);
  background: rgba(26, 155, 150, 0.1);
  color: var(--green-dark, #0f5c4f);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.shop-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.shop-card-image img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.shop-card-body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.shop-card-cat {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green);
  font-weight: 600;
}

.shop-card h3 {
  font-size: 1rem;
  margin: 0.35rem 0;
}

.shop-card h3 a {
  color: inherit;
}

.shop-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0;
  font-size: 0.88rem;
}

.shop-price {
  font-weight: 700;
  color: var(--ink);
}

.shop-price-lg {
  font-size: 1.35rem;
  margin: 0.5rem 0;
}

.shop-avail-ok {
  color: #1e6b2a;
}

.shop-avail-no {
  color: #8a1f17;
}

.btn-sm {
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
}

.shop-add-btn.added {
  background: #1e6b2a;
  border-color: #1e6b2a;
}

.shop-flow-hint {
  margin-top: 2rem;
  padding: 1rem;
  border-radius: 12px;
  background: var(--green-mint);
  font-size: 0.92rem;
  color: var(--muted);
}

.shop-cart-link {
  position: relative;
  padding: 0.55rem 0.85rem;
}

.shop-cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  margin-left: 0.25rem;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.product-detail-image img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.product-qty {
  width: 4.5rem;
  padding: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th,
.cart-table td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.92rem;
}

.cart-product {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-product img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-qty-input {
  width: 4rem;
  padding: 0.4rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.cart-remove {
  background: none;
  border: none;
  color: #8a1f17;
  cursor: pointer;
  padding: 0.35rem;
}

.cart-summary {
  margin-top: 1rem;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.cart-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.cart-empty {
  text-align: center;
  padding: 2rem;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
}

.checkout-items {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.checkout-items li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.confirmation-card {
  text-align: center;
}

.confirmation-icon {
  font-size: 3rem;
  color: #1e6b2a;
  margin-bottom: 0.75rem;
}

.confirmation-order {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

/* ---------- Mobile menu overlay ---------- */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 28, 18, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
  z-index: 998;
}

.nav-overlay.show {
  opacity: 1;
  visibility: visible;
}

body.menu-open {
  overflow: hidden;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(88vw, 340px);
    height: 100dvh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: nowrap;
    padding: calc(var(--header-h) + 1.25rem) 1.35rem 2rem;
    gap: 0;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.12);
    z-index: 999;
    overflow-y: auto;
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-menu a {
    color: var(--ink) !important;
    font-size: 0.98rem;
    width: 100%;
    padding: 0.75rem 0.25rem;
    border-bottom: 1px solid rgba(30, 61, 40, 0.08);
  }

  .nav-menu > a::after {
    display: none;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-toggle {
    color: var(--ink) !important;
    width: 100%;
    justify-content: space-between;
    padding: 0.75rem 0.25rem;
    border-bottom: 1px solid rgba(30, 61, 40, 0.08);
    font-size: 0.98rem;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    left: auto;
    box-shadow: none;
    background: var(--green-mint);
    border-radius: 10px;
    margin: 0.35rem 0 0.5rem;
    opacity: 1;
    visibility: visible;
    display: none;
    padding: 0.35rem;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
    transform: none;
  }

  .nav-dropdown-menu a {
    border-bottom: 0;
    padding: 0.65rem 0.85rem;
  }

  .domains-grid,
  .values-grid,
  .person-grid,
  .news-grid,
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid,
  .team-grid,
  .team-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid,
  .process-steps,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps::before {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-strip img:nth-child(n + 4) {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 72px;
  }

  .container {
    width: min(100% - 1.5rem, var(--container));
  }

  .header-inner {
    width: min(100% - 1.5rem, 1280px);
    gap: 0.75rem;
  }

  .logo-full {
    display: none;
  }

  .logo-img {
    width: 52px;
    height: 52px;
  }

  .header-phone {
    display: none;
  }

  .header-actions .btn {
    display: inline-flex;
    padding: 0.65rem 1rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
    height: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background-position: 65% center;
  }

  .hero-content {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: 100svh;
    margin: 0 auto;
    padding: calc(var(--header-h) + 0.75rem) 1.25rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: none;
  }

  .hero-label {
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 7vw, 2.35rem);
    margin-bottom: 0.55rem;
    line-height: 1.22;
  }

  .hero-content > p {
    font-size: 0.92rem;
    margin-bottom: 1rem;
    margin-inline: auto;
    max-width: 34rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-info {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: min(100% - 1.5rem, var(--container));
    margin: 0 auto 1.5rem;
    grid-template-columns: 1fr;
    border-radius: 16px;
    overflow: hidden;
  }

  .hero-info-item {
    padding: 1.15rem 1.1rem;
    gap: 0.85rem;
  }

  .info-icon {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .info-text strong {
    font-size: 0.92rem;
  }

  .info-text span {
    font-size: 0.84rem;
  }

  .about {
    padding-top: 2.5rem;
  }

  .about-grid,
  .cta-inner,
  .faq-testimonial {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .faq-panel,
  .testimonial-panel {
    padding: 3rem 1.25rem;
  }

  .stats,
  .pricing {
    background-attachment: scroll;
  }

  .cta-band {
    padding: 3rem 0;
  }
}

@media (max-width: 640px) {
  .services-grid,
  .team-grid,
  .team-grid-3,
  .stats-grid,
  .process-steps,
  .pricing-grid,
  .footer-grid,
  .form-grid,
  .gallery-strip,
  .domains-grid,
  .values-grid,
  .person-grid,
  .news-grid,
  .events-grid {
    grid-template-columns: 1fr;
  }

  .gallery-strip img:nth-child(n + 3) {
    display: none;
  }

  .header-actions .btn {
    display: none;
  }

  .hero {
    min-height: auto;
    height: auto;
  }

  .hero-content {
    min-height: 100vh;
    min-height: 100dvh;
    min-height: 100svh;
    padding: calc(var(--header-h) + 0.5rem) 1rem 1.5rem;
  }

  .hero h1 {
    font-size: clamp(1.55rem, 7.5vw, 2rem);
    line-height: 1.2;
    margin-bottom: 0.45rem;
  }

  .hero-content > p {
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 0.95rem;
  }

  .hero-actions {
    width: 100%;
    max-width: 280px;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-btn-mobile {
    display: inline-flex;
  }

  .hero-info {
    width: 100%;
    margin: 0;
    border-radius: 0;
  }

  .emergency-fab {
    right: 0.85rem;
    bottom: 0.85rem;
  }

  .emergency-fab-btn {
    width: 50px;
    height: 50px;
  }

  .section {
    padding: 3.25rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .stats {
    padding: 3.25rem 0;
  }

  .stats-grid {
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .logo-img {
    width: 46px;
    height: 46px;
  }

  .hero h1 {
    font-size: 1.95rem;
  }
}
