/*
Theme Name: Ekkovet
Theme URI: https://ekkovet.com
Author: Miatu
Description: Theme sur mesure pour le site Ekkovet (Dr Celine Picaut), reproduisant le design du site Next.js (accent #087c97, Schibsted Grotesk, trace ECG anime). Piste 3 du comparatif d'hebergement.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: Usage prive Miatu / Ekkovet
Text Domain: ekkovet
*/

/* ---------- Design tokens (repris de site/app/globals.css) ---------- */
:root {
  --background: #ffffff;
  --background-tint: #eaf4f6;
  --foreground: #1a1718;
  --muted: #5c6a6d;
  --accent: #087c97;
  --accent-hover: #066379;
  --teal-deep: #084f61;
  --teal-darker: #06414f;
  --teal-bright: #17a2c0;
  --border: #d7e3e5;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: min(1200px, 100% - 3rem);
}

/* ---------- Reset minimal ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
ul,
blockquote {
  margin: 0;
}

.site-main {
  flex: 1;
}

.wrap {
  margin-left: auto;
  margin-right: auto;
  width: var(--wrap);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  height: 52px;
  align-items: center;
  border-radius: 9999px;
  padding: 0 1.75rem;
  font-weight: 700;
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s;
}

.btn--primary {
  background: #fff;
  color: var(--teal-deep);
}
.btn--primary:hover {
  transform: translateY(-2px);
}

.btn--solid-accent {
  background: var(--accent);
  color: #fff;
}
.btn--solid-accent:hover {
  background: var(--teal-deep);
}

.btn--outline {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-weight: 600;
}
.btn--outline:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  display: flex;
  height: 74px;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo img {
  height: 34px;
  width: auto;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 2.25rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:not(.btn) {
  transition: color 0.2s;
}
.site-nav a:not(.btn):hover {
  color: var(--accent);
}

.site-nav .btn {
  height: 42px;
  padding: 0 1.25rem;
  font-size: 0.9rem;
}

.menu-toggle {
  display: flex;
  height: 2.25rem;
  width: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: none;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  background: var(--foreground);
  margin: 2px 0;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  border-top: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
}
.mobile-nav.is-open {
  display: flex;
}
.mobile-nav a {
  border-radius: 0.5rem;
  padding: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.mobile-nav a:hover {
  background: var(--background-tint);
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
  }
  .menu-toggle,
  .mobile-nav {
    display: none !important;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-darker);
  color: #bcd4d9;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: 3.5rem 0;
}
.site-footer h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
}
.site-footer p {
  max-width: 20rem;
}
.site-footer nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
}
.site-footer nav a:hover,
.site-footer a.email:hover {
  color: #fff;
}
.site-footer .contact p {
  font-weight: 500;
  color: #fff;
}
.site-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.site-footer-bottom .wrap {
  padding: 1.25rem 0;
  font-size: 0.75rem;
  color: #8fb0b6;
}

@media (min-width: 640px) {
  .site-footer__inner {
    flex-direction: row;
  }
}

/* ---------- Animations signature ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.reveal {
  animation: rise 0.9s var(--ease) both;
}
.reveal-1 { animation-delay: 0.05s; }
.reveal-2 { animation-delay: 0.15s; }
.reveal-3 { animation-delay: 0.25s; }

@keyframes ecg-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-5200px); }
}
.ecg-line {
  display: block;
  max-width: none;
  filter: drop-shadow(0 0 3px currentColor);
  animation: ecg-scroll 50s linear infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(23, 162, 192, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(23, 162, 192, 0); }
  100% { box-shadow: 0 0 0 0 rgba(23, 162, 192, 0); }
}
.pulse-dot {
  display: inline-block;
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 9999px;
  background: var(--teal-bright);
  animation: pulse 2.4s infinite;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .ecg-line,
  .pulse-dot {
    animation: none !important;
  }
}

/* ---------- Hero (accueil) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--teal-deep);
  color: #fff;
}
.hero__inner {
  display: grid;
  align-items: center;
  gap: 2.5rem;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.hero__content {
  position: relative;
  z-index: 10;
}
.hero__eyebrow {
  margin-bottom: 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #a9dbe6;
}
.hero__title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.hero__subtitle {
  margin-top: 1.5rem;
  max-width: 44ch;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: #d0e7ec;
}
.hero__actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.hero__photo {
  position: relative;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 3 / 4;
  width: 100%;
  max-width: 290px;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}
.hero__wave {
  pointer-events: none;
  position: absolute;
  inset-inline: 0;
  bottom: 0.75rem;
  z-index: 0;
  overflow: hidden;
  color: rgba(23, 162, 192, 0.45);
}

@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    min-height: 560px;
  }
  .hero__photo {
    margin-left: 0;
    max-width: 360px;
  }
}

/* ---------- Sections generiques ---------- */
.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}
.section--tint {
  background: var(--background-tint);
}
.section--deep {
  background: var(--teal-deep);
  color: #fff;
  text-align: center;
}
.section__eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}
.section--deep .section__eyebrow {
  color: #a9dbe6;
}
.section__title {
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.section__lede {
  max-width: 52ch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* ---------- Grille "pourquoi me choisir" ---------- */
.charte-grid {
  display: grid;
  gap: 0.5rem 2rem;
}
.charte-item {
  border-top: 2px solid var(--accent);
  padding: 1.75rem 1.5rem 1.75rem 0;
}
.charte-item h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.charte-item p {
  margin-top: 0.5rem;
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--muted);
}
@media (min-width: 640px) {
  .charte-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .charte-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- "En referé" + CTA final ---------- */
.refer {
  max-width: 62ch;
}
.refer__title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.refer__text {
  margin-top: 1.25rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--muted);
}
.refer__link {
  margin-top: 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
  color: var(--accent);
}
.refer__link:hover {
  color: var(--accent-hover);
}

.cta__title {
  margin-left: auto;
  margin-right: auto;
  max-width: 20ch;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
}
.cta__text {
  margin: 1.25rem auto 0;
  max-width: 46ch;
  color: #cfe6ec;
}
.cta .btn {
  margin-top: 2rem;
}

/* ---------- En-tete de page editoriale (dr-picaut, examens, contact, blog) ---------- */
.page-header {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
}
.page-header--split {
  display: grid;
  align-items: center;
  gap: 2.5rem;
}
.page-header h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.page-header .sector {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--muted);
}
.page-header blockquote {
  margin-top: 2rem;
  border-top: 2px solid var(--accent);
  padding-top: 1.5rem;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.page-header__photo {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--background-tint);
}
.page-header__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(1);
}
@media (min-width: 768px) {
  .page-header--split {
    grid-template-columns: 0.8fr 1fr;
    gap: 4rem;
  }
}

/* ---------- Bio (dr-picaut) ---------- */
.bio {
  max-width: 68ch;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--foreground) 90%, transparent);
}

/* ---------- Liste des examens ---------- */
.examens-list {
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.examens-item {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  align-items: baseline;
  gap: 0.5rem 1rem;
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  transition: padding 0.3s;
}
.examens-item:last-child {
  border-bottom: 1px solid var(--border);
}
.examens-item:hover {
  padding-left: 0.75rem;
}
.examens-item__num {
  padding-top: 0.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
}
.examens-item h2 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.examens-item p {
  grid-column: 2;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--muted);
}
@media (min-width: 768px) {
  .examens-item {
    grid-template-columns: 3.5rem 1fr 1.4fr;
    gap: 1.5rem;
  }
  .examens-item p {
    grid-column: 3;
  }
}

/* ---------- Materiel ---------- */
.materiel {
  display: grid;
  align-items: center;
  gap: 2.5rem;
}
.materiel__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 1.5rem;
  background: #fff;
}
.materiel__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.materiel__title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.materiel__text {
  margin-top: 1rem;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--muted);
}
@media (min-width: 768px) {
  .materiel {
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
  }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 2.5rem;
}
.contact-card {
  border-top: 2px solid var(--accent);
  padding-top: 1.5rem;
}
.contact-card h2 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.contact-card p {
  margin-top: 0.5rem;
  color: var(--muted);
  line-height: 1.6;
}
.contact-card .btn {
  margin-top: 1rem;
}
@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Blog liste ---------- */
.blog-item {
  display: grid;
  gap: 0.5rem 2rem;
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  transition: padding 0.3s;
}
.blog-item:last-child {
  border-bottom: 1px solid var(--border);
}
.blog-item:hover {
  padding-left: 0.75rem;
}
.blog-item:hover h2 {
  color: var(--accent);
}
.blog-item .cat {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.blog-item h2 {
  margin-top: 0.5rem;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  transition: color 0.2s;
}
.blog-item .date {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.blog-item .excerpt {
  color: var(--muted);
  line-height: 1.6;
}
@media (min-width: 768px) {
  .blog-item {
    grid-template-columns: 1fr 1.2fr;
  }
}

/* ---------- Article de blog ---------- */
.post-back {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
}
.post-back:hover {
  color: var(--accent-hover);
}
.post-cat {
  margin-top: 2rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.post-title {
  margin-top: 0.75rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.post-date {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.post-body {
  margin-top: 2.5rem;
  border-top: 2px solid var(--accent);
  padding-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 1.08rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--foreground) 90%, transparent);
}
.post-body img {
  border-radius: 1rem;
  border: 1px solid var(--border);
}

.max-68 { max-width: 68ch; }
.max-60 { max-width: 60ch; }
