:root {
  --teal-700: #129aac;
  --teal-600: #1aaebf;
  --teal-500: #33c2cd;
  --ink-900: #183046;
  --ink-700: #2f4a5b;
  --ink-500: #5d7685;
  --page: #f4fbfd;
  --card: #ffffff;
  --line: #d9eaf0;
  --shadow: rgba(16, 107, 132, 0.09);
}

body.dark {
  --teal-700: #5fe7ef;
  --teal-600: #33c2cd;
  --teal-500: #1aaebf;
  --ink-900: #f2fbff;
  --ink-700: #dceff5;
  --ink-500: #9bb4bf;
  --page: #071216;
  --card: #0f1d23;
  --line: #21343c;
  --shadow: rgba(0, 0, 0, 0.34);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.site-admin-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

body {
  font-family: Manrope, "Segoe UI", sans-serif;
  background-color: #f6fbfd;
  background-image: url("/image/fond-page-light.png");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  color: var(--ink-900);
  transition: background 0.25s ease, color 0.25s ease;
  position: relative;
  overflow-x: hidden;
}

body.dark {
  background-color: #071216;
  background-image: linear-gradient(rgba(7, 18, 22, 0.7), rgba(7, 18, 22, 0.7)), url("/image/fond-page-dark.png");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  color: var(--ink-900);
}


.topbar,
main,
footer {
  position: relative;
  z-index: 1;
}

.topbar {
  width: min(1760px, calc(100% - 18px));
  margin: 8px auto 0;
  padding: 14px 34px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--card);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  box-shadow: 0 10px 26px var(--shadow);
  position: relative;
  isolation: isolate;
  z-index: 20;
}

.brand h1 {
  font-size: clamp(1.45rem, 2.1vw, 3rem);
  line-height: 1.03;
}

.brand p {
  margin-top: 4px;
  color: var(--teal-700);
  font-weight: 600;
  font-size: clamp(0.96rem, 1.2vw, 2rem);
}

.menu {
  justify-self: center;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: clamp(8px, 1.8vw, 30px);
}

.menu a {
  color: var(--ink-700);
  text-decoration: none;
  font-size: clamp(0.96rem, 1.05vw, 1.3rem);
  font-weight: 600;
  padding: 9px 10px;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.menu a:hover,
.menu a.is-active {
  color: var(--teal-700);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 30;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(260px, 90vw);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 35px var(--shadow);
  padding: 8px;
  z-index: 60;
  display: none;
}

.topbar-actions.user-menu-open .user-dropdown-menu {
  display: block;
}

.user-menu-header {
  padding: 8px 10px;
  font-size: 0.82rem;
  color: var(--ink-500);
}

.user-menu-link,
.user-menu-action {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink-900);
  text-align: left;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.user-menu-link:hover,
.user-menu-action:hover {
  background: rgba(26, 174, 191, 0.12);
}

.user-menu-danger {
  color: #d14343;
}

.site-icon,
.site-menu-icon {
  display: inline-block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  vertical-align: middle;
}

.site-menu-icon {
  width: 18px;
  height: 18px;
  margin-right: 8px;
}

.theme-toggle {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-700);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.05rem;
  transition: transform 0.2s ease, background 0.25s ease, color 0.25s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal-700), var(--teal-500));
  cursor: pointer;
  padding: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  border-radius: 2px;
  background: #fff;
}

.menu-toggle:hover {
  box-shadow: 0 12px 24px rgba(26, 174, 191, 0.28);
}

.btn-contact,
.btn-main,
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  min-height: 52px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-contact,
.btn-main,
.btn-primary {
  background: linear-gradient(135deg, var(--teal-700), var(--teal-500));
  color: #fff;
}

.btn-main {
  margin-top: 22px;
}

.chapter-toggle {
  width: 100%;
  margin-top: 0;
  text-align: left;
  justify-content: flex-start;
}

.chapter-assets {
  margin-top: 1rem;
}

.chapter-assets .chapter-file-button {
  margin-top: 0;
  align-self: center;
}

.btn-contact:hover,
.btn-main:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(26, 174, 191, 0.28);
}

.btn-secondary {
  background: var(--card);
  color: var(--teal-700);
  border-color: var(--teal-700);
}

.btn-secondary:hover {
  background: rgba(26, 174, 191, 0.1);
  transform: translateY(-2px);
}

.chapter-file-button,
.chapter-file-button:visited,
.chapter-file-button:hover,
.chapter-file-button:disabled {
  color: #fff;
}

.chapter-file-button-locked {
  height: 52px;
  cursor: not-allowed;
  appearance: none;
  -webkit-appearance: none;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  opacity: 0.82;
}

.resource-card a.chapter-file-button,
.resource-card a.chapter-file-button:visited,
.resource-card a.chapter-file-button:hover {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

main {
  width: min(1760px, calc(100% - 18px));
  margin: 0 auto;
}

.hero {
  position: relative;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid #cde8f1;
  background: var(--page);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.hero-img-left {
  object-position: 10% 40%;
  display: none;
}

.hero-img-center {
  object-position: center center;
  position: static;
}

.hero-img-right {
  object-position: 90% 40%;
  display: none;
}

@media (min-width: 1300px) {
  .hero {
    width: 100%;
    height: 700px;
    min-height: 0;
    display: flex;
  }

  .hero-img-main {
    position: static;
    flex: 1;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: contain;
  }

  .hero-img-left {
    display: block;
  }

  .hero-img-center {
    display: block;
  }

  .hero-img-right {
    display: block;
  }
}

.hero::after {
  display: none;
}

.hero-bg {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(49, 196, 208, 0.34), rgba(49, 196, 208, 0));
  z-index: 1;
}

.hero-bg-left {
  left: -130px;
  top: 120px;
}

.hero-bg-right {
  right: -130px;
  top: 80px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  text-align: center;
  padding: 34px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(3px);
  box-shadow: 0 20px 60px rgba(17, 91, 115, 0.12);
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 800;
  color: var(--teal-700);
}

.hero h2 {
  margin-top: 10px;
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  line-height: 1.1;
}

.hero p {
  margin-top: 14px;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--ink-700);
}

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 18px;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 12px 30px var(--shadow);
}

.service-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e3f7fb;
  color: var(--teal-700);
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 18px;
}

.service-card h3 {
  font-size: 2rem;
  line-height: 1;
}

.service-card p {
  margin-top: 14px;
  color: var(--ink-700);
  line-height: 1.55;
}

.service-card a {
  display: inline-block;
  margin-top: 12px;
  color: var(--teal-700);
  text-decoration: none;
  font-weight: 700;
}

.about {
  margin: 30px 0;
  padding: 40px;
  background: linear-gradient(135deg, rgba(18, 154, 172, 0.08), rgba(51, 194, 205, 0.04));
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px var(--shadow);
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-kicker {
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 800;
  color: var(--teal-700);
  display: inline-block;
  font-size: 0.9rem;
}

.about h2 {
  margin-top: 12px;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.2;
  color: var(--ink-900);
}

.about-text {
  margin-top: 18px;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink-700);
}

.about-description {
  margin-top: 18px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-700);
  font-weight: 600;
}

.about-list {
  margin-top: 16px;
  padding-left: 24px;
  list-style: none;
}

.about-list li {
  margin: 10px 0;
  position: relative;
  padding-left: 24px;
  color: var(--ink-700);
  line-height: 1.6;
}

.about-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal-700);
  font-weight: bold;
}

.exercises {
  margin-top: 30px;
  margin-bottom: 34px;
  padding: 28px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 12px 30px var(--shadow);
}

.section-head h2 {
  font-size: 1.65rem;
}

.section-head p {
  margin-top: 6px;
  color: var(--ink-500);
}

.exercise-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.exercice {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  padding: 14px;
}

.exercice h3 {
  color: var(--ink-900);
  font-size: 1.05rem;
}

.exercice p {
  margin-top: 6px;
  color: var(--ink-700);
  line-height: 1.45;
}

footer {
  text-align: center;
  padding: 24px 16px 34px;
  color: var(--ink-500);
}

footer a {
  color: var(--teal-700);
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  text-decoration: underline;
}

/* Page À propos */
.about-page {
  padding-bottom: 40px;
}

.about-hero {
  text-align: center;
  margin-bottom: 50px;
  padding: 50px 34px;
  background: linear-gradient(135deg, rgba(18, 154, 172, 0.1), rgba(51, 194, 205, 0.05));
  border-radius: 18px;
  border: 1px solid var(--line);
}

.about-hero .about-kicker {
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 800;
  color: var(--teal-700);
  display: inline-block;
  font-size: 0.9rem;
}

.about-hero h1 {
  margin-top: 12px;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.2;
  color: var(--ink-900);
}

.about-intro {
  margin-top: 18px;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink-700);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.about-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 34px;
}

.about-content h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 18px;
  color: var(--ink-900);
}

.about-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink-700);
  margin-bottom: 30px;
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
}

.pillar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 12px 30px var(--shadow);
  text-align: center;
}

.pillar-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.pillar-icon .pillar-custom-image {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 10px;
}

.pillar h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--ink-900);
}

.pillar p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-700);
}

.about-mission {
  background: linear-gradient(135deg, rgba(18, 154, 172, 0.08), rgba(51, 194, 205, 0.04));
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 40px;
  margin: 40px 0;
}

.about-mission h2 {
  margin-bottom: 18px;
}

.about-mission p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink-700);
}

.about-cta {
  text-align: center;
  margin: 40px 0;
}

.about-cta .btn-main {
  margin-top: 0;
}

@media (max-width: 1240px) {
  .topbar {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "brand cta"
      "menu menu";
    row-gap: 14px;
  }

  .brand {
    grid-area: brand;
  }

  .menu {
    grid-area: menu;
  }

  .btn-contact {
    grid-area: cta;
    justify-self: end;
  }
}

@media (max-width: 980px) {
  .services {
    grid-template-columns: 1fr;
  }

  .hero-content {
    max-width: 680px;
  }

  .about {
    padding: 30px;
  }

  .about h2 {
    font-size: 2rem;
  }

  .about-pillars {
    grid-template-columns: 1fr;
  }

  .about-hero {
    padding: 40px 20px;
  }
}

@media (max-width: 760px) {
  body::before,
  body::after {
    display: none;
  }

  body[data-content-page="accueil"] {
    background-color: #f6fbfd;
    background-image: url("/image/fond-page-light.png");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
  }

  body.dark[data-content-page="accueil"] {
    background-color: #071216;
    background-image: linear-gradient(rgba(7, 18, 22, 0.7), rgba(7, 18, 22, 0.7)), url("/image/fond-page-dark.png");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
  }

  .topbar,
  main {
    width: calc(100% - 22px);
  }

  .topbar {
    border-radius: 16px;
    margin-top: 12px;
    padding: 16px 14px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "menu"
      "cta";
    justify-items: center;
    text-align: center;
  }

  .menu {
    flex-wrap: wrap;
  }

  .hero {
    border-radius: 18px;
  }

  .hero-content {
    padding: 22px;
  }

  .hero p {
    font-size: 1.03rem;
  }

  .service-card h3 {
    font-size: 1.65rem;
  }

  .about-hero {
    padding: 30px 16px;
  }

  .about-hero h1 {
    font-size: 1.8rem;
  }

  .about-intro {
    font-size: 1rem;
  }

  .about-content {
    padding: 0 16px;
  }

  .about-pillars {
    gap: 16px;
  }

  .pillar {
    padding: 20px;
  }

  .pillar h3 {
    font-size: 1.2rem;
  }

  .pillar p {
    font-size: 0.95rem;
  }

  .about-mission {
    padding: 20px;
    margin: 30px 0;
  }

  .about-mission p {
    font-size: 1rem;
  }
}

@media (max-width: 1299px) {
  .topbar {
    position: relative;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "brand brand brand"
      "toggle . actions"
      "menu menu menu";
    align-items: center;
  }

  .brand {
    grid-area: brand;
    min-width: 0;
    justify-self: center;
    text-align: center;
  }

  .topbar-actions {
    position: static;
    grid-area: actions;
    transform: none;
    margin-top: 14px;
  }

  .menu-toggle {
    display: inline-block;
    position: static;
    grid-area: toggle;
    justify-self: start;
    margin-top: 14px;
    transform: none;
  }

  .menu {
    display: none;
    grid-area: menu;
    width: 100%;
    margin-top: 8px;
    grid-template-columns: 1fr;
    gap: 0;
    justify-self: stretch;
    border-top: 1px solid var(--line);
  }

  .topbar.menu-open .menu {
    display: grid;
  }

  .menu a {
    padding: 12px 8px;
    text-align: left;
  }
}

@media (max-width: 700px) {
  .topbar {
    grid-template-areas:
      "brand brand brand"
      "toggle . ."
      "menu menu menu"
      "actions actions actions";
  }

  .topbar-actions {
    display: flex;
    grid-area: actions;
    justify-content: center;
    margin: 0;
    padding: 14px 0 4px;
    border-top: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 8px;
  }

  .topbar-actions .btn-contact {
    width: 100%;
    justify-content: center;
  }

  .topbar-actions.user-menu-open .user-dropdown-menu {
    position: static;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
  }
}

/* Resources Page Styles */

.resources-hero {
  position: relative;
  min-height: 320px;
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  place-items: center;
  margin-bottom: 40px;
  border: 1px solid #cde8f1;
  background: linear-gradient(135deg, rgba(18, 154, 172, 0.15), rgba(51, 194, 205, 0.08));
}

.resources-content {
  max-width: 800px;
  text-align: center;
  padding: 40px 34px;
}

.resources-kicker {
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 800;
  color: var(--teal-700);
  font-size: 0.9rem;
}

.resources-content h1 {
  margin-top: 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  color: var(--ink-900);
}

.resources-content p {
  margin-top: 14px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink-700);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.resource-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 12px 30px var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.resource-card.book-card,
.resource-card.book-card:visited {
  color: var(--ink-700);
  text-decoration: none;
}

.resource-card.book-card h3 {
  color: var(--ink-900);
}

.resource-card.book-card:hover h3 {
  color: var(--teal-700);
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(26, 174, 191, 0.2);
}

.resource-folder {
  display: block;
  text-decoration: none;
  color: inherit;
}

.resource-folder-cta {
  margin-top: 14px;
  color: var(--teal-700);
  font-weight: 700;
}

.resource-folder:hover .resource-folder-cta {
  color: var(--teal-600);
}

.resource-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
}

.resource-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
}

.resource-card h2 {
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--ink-900);
}

.resource-card p {
  margin-top: 12px;
  color: var(--ink-700);
  line-height: 1.55;
  font-size: 0.95rem;
}

.resource-card a {
  display: inline-block;
  margin-top: 14px;
  color: var(--teal-700);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.25s ease;
}

.resource-card a:hover {
  color: var(--teal-600);
}

.resources-cta {
  background: linear-gradient(135deg, rgba(18, 154, 172, 0.08), rgba(51, 194, 205, 0.04));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 40px;
  text-align: center;
}

.resources-cta h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--ink-900);
}

.resources-cta p {
  margin-top: 12px;
  color: var(--ink-700);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Resources Page - Tablet (980px) */
@media (max-width: 980px) {
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .resources-content {
    padding: 30px 24px;
  }

  .resources-hero {
    min-height: 280px;
  }
}

/* Resources Page - Mobile (760px) */
@media (max-width: 760px) {
  .resources-grid {
    grid-template-columns: 1fr;
  }

  .resources-hero {
    min-height: 240px;
    margin-bottom: 30px;
  }

  .resources-content {
    padding: 25px 16px;
  }

  .resources-content h1 {
    font-size: 1.8rem;
  }

  .resources-content p {
    font-size: 0.95rem;
  }

  .resource-card {
    padding: 20px;
  }

  .resource-icon {
    width: 56px;
    height: 56px;
  }

  .resource-card h2 {
    font-size: 1.25rem;
  }

  .resources-cta {
    padding: 25px 16px;
  }

  .resources-cta h2 {
    font-size: 1.6rem;
  }
}

/* Contact Page Styles */

.contact-hero {
  position: relative;
  min-height: 280px;
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  place-items: center;
  margin-bottom: 40px;
  border: 1px solid #cde8f1;
  background: linear-gradient(135deg, rgba(18, 154, 172, 0.15), rgba(51, 194, 205, 0.08));
}

.contact-content {
  max-width: 800px;
  text-align: center;
  padding: 40px 34px;
}

.contact-kicker {
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 800;
  color: var(--teal-700);
  font-size: 0.9rem;
}

.contact-content h1 {
  margin-top: 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  color: var(--ink-900);
}

.contact-content p {
  margin-top: 14px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink-700);
}

.contact-form-section {
  max-width: 600px;
  margin: 0 auto 50px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 40px;
  box-shadow: 0 12px 30px var(--shadow);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: Manrope, sans-serif;
  font-size: 1rem;
  color: var(--ink-900);
  background: var(--page);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal-700);
  box-shadow: 0 0 0 3px rgba(18, 154, 172, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.form-user-info {
  padding: 12px 14px;
  background: rgba(18, 154, 172, 0.1);
  border: 1px solid var(--teal-700);
  border-radius: 8px;
  color: var(--ink-900);
  font-size: 0.95rem;
}

.form-error,
.form-success {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
}

.contact-info {
  background: linear-gradient(135deg, rgba(18, 154, 172, 0.08), rgba(51, 194, 205, 0.04));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 50px 40px;
  text-align: center;
}

.contact-info h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--ink-900);
  margin-bottom: 40px;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.contact-method {
  padding: 20px;
}

.contact-method-icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
}

.contact-method h3 {
  font-size: 1.3rem;
  color: var(--ink-900);
  margin-bottom: 8px;
}

.contact-method p {
  color: var(--ink-700);
  font-size: 0.95rem;
}

/* Contact Page - Tablet (980px) */
@media (max-width: 980px) {
  .contact-form-section {
    padding: 30px 24px;
  }

  .contact-methods {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .contact-info {
    padding: 35px 24px;
  }
}

/* Contact Page - Mobile (760px) */
@media (max-width: 760px) {
  .contact-hero {
    min-height: 240px;
    margin-bottom: 30px;
  }

  .contact-content {
    padding: 25px 16px;
  }

  .contact-content h1 {
    font-size: 1.8rem;
  }

  .contact-content p {
    font-size: 0.95rem;
  }

  .contact-form-section {
    padding: 20px 16px;
    margin-bottom: 40px;
  }

  .contact-methods {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-method {
    padding: 16px;
  }

  .contact-info {
    padding: 25px 16px;
  }

  .contact-info h2 {
    font-size: 1.6rem;
  }
}
