/* ===========================================================
   MATCHA RESTAURANT — CUSTOM CHILD THEME STYLE
   Design system: Pop Pastèque Été (DB)
   Colors: competitor (cyan-teal + warm orange)
   Fonts: Sniglet (headings) + Nunito (body)
   =========================================================== */

:root {
  --e27-color-primary: #37afc0;
  --e27-color-primary-dark: #289aab;
  --e27-color-accent: #ff9800;
  --e27-color-accent-dark: #e57f00;
  --e27-color-text: #212121;
  --e27-color-text-soft: #6b7480;
  --e27-color-bg: #ffffff;
  --e27-color-surface: #f3fdfe;
  --e27-color-line: #e5e7eb;
  --e27-color-line-soft: #f1f3f5;

  --e27-font-headings: "Sniglet", "Segoe UI", system-ui, sans-serif;
  --e27-font-body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --e27-radius-sm: 6px;
  --e27-radius: 10px;
  --e27-radius-lg: 16px;
  --e27-radius-pill: 999px;

  --e27-container: 1240px;
  --e27-shadow-sm: 0 2px 6px rgba(33, 33, 33, 0.06);
  --e27-shadow: 0 8px 20px rgba(33, 33, 33, 0.08);
  --e27-shadow-lg: 0 18px 38px rgba(33, 33, 33, 0.12);

  --e27-header-height: 76px;
}

/* ===== Reset / base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.e27-body {
  margin: 0;
  font-family: var(--e27-font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--e27-color-text);
  background: var(--e27-color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, iframe { max-width: 100%; height: auto; display: block; }

a {
  color: var(--e27-color-primary-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--e27-color-accent); }

p { margin: 0 0 1.1rem; }

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--e27-font-headings);
  color: var(--e27-color-text);
  line-height: 1.2;
  margin: 0 0 0.85rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }
h4 { font-size: 1.15rem; }

/* ===== Container ===== */
.e27-container {
  width: 100%;
  max-width: var(--e27-container);
  margin: 0 auto;
  padding: 0 1.4rem;
}

main, .e27-main {
  padding-top: 0 !important;
  margin-top: 0 !important;
  background: var(--e27-color-bg);
}

/* ===== Buttons ===== */
.e27-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--e27-font-body);
  font-weight: 700;
  font-size: 0.98rem;
  border-radius: var(--e27-radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.e27-btn--primary {
  background: var(--e27-color-primary);
  color: #fff;
  box-shadow: 0 6px 14px rgba(55, 175, 192, 0.28);
}
.e27-btn--primary:hover { background: var(--e27-color-primary-dark); color: #fff; transform: translateY(-2px); }

.e27-btn--ghost {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  border-color: rgba(255,255,255,0.6);
  backdrop-filter: blur(4px);
}
.e27-btn--ghost:hover { background: #ffffff; color: var(--e27-color-text); border-color: #fff; }

.e27-btn--cta {
  background: var(--e27-color-accent);
  color: #ffffff;
  border-color: var(--e27-color-accent);
  box-shadow: 0 6px 14px rgba(255, 152, 0, 0.32);
}
.e27-btn--cta:hover {
  background: var(--e27-color-accent-dark);
  color: #ffffff;
  border-color: var(--e27-color-accent-dark);
}

/* ===== HEADER (sticky-minimal) ===== */
.e27-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--e27-color-line);
  transition: box-shadow 0.25s ease;
}
body.e27-scrolled .e27-header { box-shadow: var(--e27-shadow); }

.e27-header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.7rem 1.4rem;
  max-width: 1380px;
  margin: 0 auto;
  min-height: var(--e27-header-height);
}

.e27-brand-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--e27-color-text);
  flex-shrink: 0;
}
.e27-brand-logo { width: auto; max-height: 44px; }
.e27-brand-name {
  font-family: var(--e27-font-headings);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--e27-color-text);
  letter-spacing: 0;
}

/* Desktop nav (always visible ≥ 1024px) */
.e27-nav-desktop {
  display: none;
  flex: 1;
  justify-content: center;
  margin: 0 1.2rem;
}
.e27-nav-desktop-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.e27-nav-desktop-list a {
  color: var(--e27-color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0.2rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.e27-nav-desktop-list a:hover {
  color: var(--e27-color-primary);
  border-bottom-color: var(--e27-color-accent);
}
.e27-nav-desktop-list li.current-cat > a,
.e27-nav-desktop-list li.current-menu-item > a {
  color: var(--e27-color-primary);
  border-bottom-color: var(--e27-color-primary);
}

.e27-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: auto;
}
.e27-header-cta-desktop {
  padding: 0.65rem 1.1rem;
  font-size: 0.9rem;
}

/* Burger */
.e27-burger {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  padding: 8px !important;
  background: rgba(255,255,255,0.92) !important;
  border: 1.5px solid rgba(0,0,0,0.18) !important;
  border-radius: 8px !important;
  color: #1a1a1a !important;
  cursor: pointer !important;
  z-index: 10000 !important;
  flex-shrink: 0 !important;
  position: relative !important;
}
.e27-burger-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 24px;
  height: 16px;
}
.e27-burger-bars span {
  display: block;
  height: 2.5px;
  background: currentColor;
  border-radius: 2px;
}

/* Mobile drawer */
.e27-nav-mobile {
  display: none;
  flex-direction: column;
}
.e27-nav-mobile-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.e27-nav-mobile-list li {
  border-bottom: 1px solid #e8e8e8;
}
.e27-nav-mobile-list a {
  display: block;
  padding: 1rem 1.5rem;
  color: #1a1a1a;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.05rem;
}
.e27-nav-mobile-list a:hover { color: var(--e27-color-primary); }

.e27-drawer-cta {
  display: block;
  margin: 2rem 1.5rem 1.5rem;
  padding: 1rem 1.5rem;
  text-align: center;
  background: var(--e27-color-accent);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
}

.e27-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9998;
}
.e27-drawer-overlay.is-open { display: block; }
.e27-nav-mobile-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: 0;
  font-size: 1.8rem;
  cursor: pointer;
  color: #1a1a1a;
  padding: 0.4rem 0.7rem;
  line-height: 1;
}

/* DESKTOP : nav visible, burger hidden */
@media (min-width: 1024px) {
  .e27-nav-desktop { display: flex; }
  .e27-burger, .e27-drawer-overlay { display: none !important; }
  .e27-drawer-cta { display: none !important; }
}

/* MOBILE : drawer when open */
@media (max-width: 1023px) {
  .e27-header-cta-desktop { display: none !important; }
  .e27-nav-mobile.is-open {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 86%;
    max-width: 380px;
    background: #ffffff;
    padding: 4.5rem 0 2rem;
    z-index: 9999;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
  }
}

/* ===== HERO (dual-cta-banner + YouTube video) ===== */
.e27-hero {
  position: relative;
  overflow: hidden;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1f6f7d 0%, #37afc0 60%, #58c6d5 100%);
}
.e27-hero-video-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.e27-hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100%;
  min-width: 177.78vh;
  transform: translate(-50%, -50%);
  border: 0;
}
.e27-hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.65) 100%);
}
.e27-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.e27-hero-inner {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 4rem 1.4rem;
  max-width: 920px;
  margin: 0 auto;
  color: #ffffff;
}
.e27-hero-title {
  font-family: var(--e27-font-headings);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  margin: 0 0 1rem;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  font-weight: 800;
  line-height: 1.1;
}
.e27-hero-subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  margin: 0 0 2.2rem;
  font-weight: 400;
  opacity: 0.95;
}
.e27-hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .e27-hero { min-height: 64vh; }
  .e27-hero-inner { padding: 3rem 1rem; }
  .e27-hero-ctas .e27-btn { padding: 0.7rem 1.2rem; font-size: 0.9rem; }
}

/* ===== Scroll hint (CTR animation) ===== */
@keyframes e27-scroll-mouse-bounce {
  0% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.4; }
  100% { transform: translateY(0); opacity: 1; }
}
.e27-scroll-hint {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 44px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 14px;
  cursor: pointer;
  z-index: 5;
  transition: opacity 0.3s ease;
}
.e27-scroll-hint::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  animation: e27-scroll-mouse-bounce 1.6s ease-in-out infinite;
}
body.e27-scrolled .e27-scroll-hint { opacity: 0; pointer-events: none; }

/* ===== Editorial block (home SEO 400-700 mots) ===== */
.e27-editorial {
  padding: 4rem 0;
  background: var(--e27-color-surface);
}
.e27-editorial-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.e27-editorial h2 {
  text-align: center;
  margin: 0 0 0.5rem;
  color: var(--e27-color-text);
}
.e27-editorial-lead {
  text-align: center;
  font-size: 1.1rem;
  color: var(--e27-color-text-soft);
  max-width: 720px;
  margin: 0 auto 2.4rem;
}
.e27-editorial h3 {
  margin: 2rem 0 0.6rem;
  color: var(--e27-color-primary);
  font-size: 1.3rem;
}
.e27-editorial p {
  color: var(--e27-color-text);
  font-size: 1.02rem;
  line-height: 1.75;
}
.e27-editorial-line {
  margin: 2.5rem 0;
  padding: 1.4rem 1.6rem;
  background: #ffffff;
  border-left: 4px solid var(--e27-color-accent);
  border-radius: 0 var(--e27-radius) var(--e27-radius) 0;
  box-shadow: var(--e27-shadow-sm);
}
.e27-editorial-line h3 { margin-top: 0; }

/* ===== Categories section ===== */
.e27-categories {
  padding: 4rem 0 3rem;
  background: var(--e27-color-bg);
}
.e27-section-title {
  text-align: center;
  margin: 0 0 0.5rem;
  color: var(--e27-color-text);
}
.e27-section-lead {
  text-align: center;
  color: var(--e27-color-text-soft);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

.e27-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
  max-width: var(--e27-container);
  margin: 0 auto;
  padding: 0 1.4rem;
}
.e27-card-cat {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: var(--e27-radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--e27-color-text);
  box-shadow: var(--e27-shadow-sm);
  border: 1px solid var(--e27-color-line-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.e27-card-cat:hover {
  transform: translateY(-4px);
  box-shadow: var(--e27-shadow);
  color: var(--e27-color-text);
}
.e27-card-cat-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: linear-gradient(135deg, var(--e27-color-primary), var(--e27-color-accent));
}
.e27-card-cat-img-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--e27-font-headings);
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.e27-card-cat-body {
  padding: 1.2rem 1.3rem 1.4rem;
}
.e27-card-cat-name {
  font-family: var(--e27-font-headings);
  font-weight: 800;
  font-size: 1.18rem;
  color: var(--e27-color-text);
  margin: 0 0 0.5rem;
}
.e27-card-cat-desc {
  margin: 0;
  font-size: 0.93rem;
  color: var(--e27-color-text-soft);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Latest articles grid ===== */
.e27-latest {
  padding: 4rem 0;
  background: var(--e27-color-surface);
}
.e27-latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  max-width: var(--e27-container);
  margin: 2.2rem auto 0;
  padding: 0 1.4rem;
}
@media (min-width: 1024px) {
  .e27-latest-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .e27-latest-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .e27-latest-grid { grid-template-columns: 1fr; }
}

.e27-article-card {
  background: #ffffff;
  border-radius: var(--e27-radius-lg);
  overflow: hidden;
  box-shadow: var(--e27-shadow-sm);
  border: 1px solid var(--e27-color-line-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.e27-article-card:hover { transform: translateY(-4px); box-shadow: var(--e27-shadow); }
.e27-article-card a { color: inherit; text-decoration: none; }
.e27-article-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.e27-article-thumb-fallback {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--e27-color-primary), var(--e27-color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--e27-font-headings);
  font-weight: 800;
  font-size: 1.2rem;
}
.e27-article-body { padding: 1.3rem 1.4rem 1.5rem; flex-grow: 1; }
.e27-article-meta {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  font-size: 0.82rem;
  color: var(--e27-color-text-soft);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.e27-article-cat {
  background: var(--e27-color-primary);
  color: #fff;
  padding: 0.18rem 0.65rem;
  border-radius: var(--e27-radius-pill);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}
.e27-article-cat:hover { color: #fff; background: var(--e27-color-primary-dark); }
.e27-article-title {
  font-family: var(--e27-font-headings);
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 0.6rem;
  color: var(--e27-color-text);
  line-height: 1.3;
}
.e27-article-excerpt {
  font-size: 0.93rem;
  color: var(--e27-color-text-soft);
  line-height: 1.55;
  margin: 0;
}

/* ===== Featured "About" block ===== */
.e27-home-about {
  padding: 5rem 0;
  background: var(--e27-color-bg);
}
.e27-home-about-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (max-width: 800px) { .e27-home-about-inner { grid-template-columns: 1fr; gap: 1.8rem; } }
.e27-home-about-img {
  width: 100%;
  border-radius: var(--e27-radius-lg);
  box-shadow: var(--e27-shadow-lg);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.e27-home-about-text h2 { color: var(--e27-color-primary); }
.e27-home-about-text p { font-size: 1.02rem; }

/* ===== Liens metrics block ===== */
.e27-metrics-links {
  padding: 3rem 0;
  background: var(--e27-color-surface);
  border-top: 1px solid var(--e27-color-line);
  border-bottom: 1px solid var(--e27-color-line);
}
.e27-metrics-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  max-width: var(--e27-container);
  margin: 1.4rem auto 0;
  padding: 0 1.4rem;
}
.e27-metric-link {
  background: #ffffff;
  border-radius: var(--e27-radius);
  padding: 1.2rem 1.3rem;
  text-decoration: none;
  color: var(--e27-color-text);
  border: 1px solid var(--e27-color-line);
  display: block;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.e27-metric-link:hover { transform: translateY(-3px); box-shadow: var(--e27-shadow); color: var(--e27-color-text); }
.e27-metric-link strong { color: var(--e27-color-primary); display: block; margin-bottom: 0.3rem; }

/* ===== Single category page ===== */
.e27-cat-hero {
  position: relative;
  height: 320px;
  max-height: 350px;
  overflow: hidden;
  background: var(--e27-color-primary);
}
.e27-cat-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.e27-cat-hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.75) 100%);
  padding: 1.5rem 1.4rem 2.2rem;
  max-width: var(--e27-container);
  margin: 0 auto;
}
.e27-cat-hero-inner h1 {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,0.7);
  margin: 0 0 0.4rem;
}
.e27-cat-intro {
  padding: 2.5rem 0 1rem;
}
.e27-cat-intro-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.4rem;
}
.e27-cat-intro p {
  font-size: 1.05rem;
  color: var(--e27-color-text);
  line-height: 1.75;
}

/* ===== FOOTER ===== */
.e27-footer {
  background: #1d3640;
  color: #e2eef1;
  margin-top: 3rem;
}
.e27-footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  max-width: var(--e27-container);
  margin: 0 auto;
  padding: 3.5rem 1.4rem 2.5rem;
}
@media (max-width: 900px) {
  .e27-footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  .e27-footer-inner { grid-template-columns: 1fr; }
}
.e27-footer-col h3.e27-footer-title {
  font-family: var(--e27-font-headings);
  font-size: 1.1rem;
  color: #ffffff;
  margin: 0 0 1.1rem;
  letter-spacing: 0.01em;
}
.e27-footer-logo {
  display: block;
  margin-bottom: 1rem;
  height: auto;
  max-height: 60px;
  width: auto;
}
.e27-footer-brand-pitch {
  color: #e2eef1;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1.2rem;
}
.e27-footer-brand-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #ffd180;
  text-decoration: underline;
  font-weight: 600;
}
.e27-footer-brand-cta:hover { color: #ff9800; }

.e27-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.e27-footer-links li {
  margin-bottom: 0.55rem;
}
.e27-footer-links a {
  color: #e2eef1;
  text-decoration: underline;
  text-decoration-color: rgba(226, 238, 241, 0.3);
  font-size: 0.95rem;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.e27-footer-links a:hover { color: #ffd180; text-decoration-color: #ffd180; }

.e27-footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}
.e27-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #e2eef1;
  transition: background 0.2s ease, color 0.2s ease;
}
.e27-footer-social a:hover { background: var(--e27-color-accent); color: #fff; }
.e27-footer-social svg { width: 18px; height: 18px; }

.e27-footer-bottom {
  background: #15282f;
  color: #b8c8cd;
  font-size: 0.85rem;
  text-align: center;
  padding: 1.2rem 1.4rem;
}
.e27-footer-bottom a { color: #ffd180; text-decoration: underline; }
.e27-footer-bottom a:hover { color: #ffffff; }

/* ===== Persona photo override (a-propos) ===== */
.e27-persona-photo {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: var(--e27-radius-lg);
  margin: 1.5rem 0;
  box-shadow: var(--e27-shadow);
  float: right;
  margin-left: 2rem;
}
@media (max-width: 600px) {
  .e27-persona-photo { float: none; margin: 1.5rem auto; }
}

/* ===== Contact form wrapper ===== */
.e27-contact-form {
  margin: 2.5rem 0;
  background: var(--e27-color-surface);
  padding: 1.2rem;
  border-radius: var(--e27-radius-lg);
  border: 1px solid var(--e27-color-line);
}

/* ===== CTA animation: floating quote button (CTA) ===== */
@keyframes e27-floating-quote {
  0% { transform: translateY(0) rotate(-1deg); box-shadow: 0 6px 18px rgba(255, 152, 0, 0.32); }
  50% { transform: translateY(-7px) rotate(1deg); box-shadow: 0 14px 28px rgba(255, 152, 0, 0.42); }
  100% { transform: translateY(0) rotate(-1deg); box-shadow: 0 6px 18px rgba(255, 152, 0, 0.32); }
}
.e27-btn--cta { animation: e27-floating-quote 3.8s ease-in-out infinite; position: relative; }
.e27-btn--cta::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: -8px;
  font-family: serif;
  font-size: 1.7rem;
  line-height: 1;
  color: rgba(255,255,255,0.35);
  pointer-events: none;
}
.e27-btn--cta:hover { animation-play-state: paused; transform: translateY(-3px) scale(1.04); }

/* ===== Exit intent popup (CTO) ===== */
@keyframes e27-cto-fade-in {
  from { opacity: 0; backdrop-filter: blur(0px); }
  to { opacity: 1; backdrop-filter: blur(4px); }
}
@keyframes e27-cto-pop {
  0% { transform: scale(0.92) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.e27-cto-overlay {
  position: fixed;
  inset: 0;
  background: rgba(33, 33, 33, 0.65);
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  animation: e27-cto-fade-in 0.3s ease;
  padding: 1rem;
}
.e27-cto-overlay.is-open { display: flex; }
.e27-cto-modal {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0,0,0,0.35);
  animation: e27-cto-pop 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
  position: relative;
}
.e27-cto-modal h3 { color: var(--e27-color-primary); margin: 0 0 0.75rem; font-size: 1.5rem; }
.e27-cto-modal p { color: var(--e27-color-text); margin: 0 0 1.5rem; line-height: 1.5; }
.e27-cto-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: 0;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--e27-color-text-soft);
  padding: 0.4rem 0.6rem;
  line-height: 1;
}

/* ===== Mouse effect: hover_smooth_transition ===== */
.e27-btn, .e27-card, .e27-card-cat, .e27-link-card, .e27-cat-link, .e27-footer-links a, .e27-article-card a {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, color 0.3s ease, background-color 0.3s ease;
  will-change: transform;
}
@media (hover: none) {
  .e27-card:hover, .e27-card-cat:hover, .e27-link-card:hover, .e27-article-card:hover, .e27-btn:hover {
    transform: none;
    box-shadow: var(--e27-shadow-sm);
  }
}

/* ===== Burger mobile rule (visibility) ===== */
@media (max-width: 1023px) {
  .e27-header-actions, .e27-burger-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
  }
}
@media (min-width: 1024px) {
  .e27-burger { display: none !important; }
}

/* ===== Tool pages (e27-tool-*) wrap ===== */
.e27-tool-page {
  padding: 3rem 0;
}
.e27-tool-page-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.4rem;
}
.e27-tool-page h1 {
  margin: 0 0 1rem;
  color: var(--e27-color-text);
  text-align: center;
}
.e27-tool-intro {
  max-width: 800px;
  margin: 0 auto 2.5rem;
  text-align: center;
  font-size: 1.05rem;
  color: var(--e27-color-text-soft);
}
.e27-tool-faq {
  margin: 3rem auto 0;
  max-width: 800px;
}
.e27-tool-faq h2 { text-align: center; margin-bottom: 1.5rem; }
.e27-tool-faq-item {
  background: #fff;
  border-radius: var(--e27-radius);
  border: 1px solid var(--e27-color-line);
  margin-bottom: 1rem;
  overflow: hidden;
}
.e27-tool-faq-item summary {
  padding: 1rem 1.3rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--e27-color-text);
  list-style: none;
}
.e27-tool-faq-item summary::-webkit-details-marker { display: none; }
.e27-tool-faq-item summary::after { content: '+'; float: right; font-size: 1.4rem; color: var(--e27-color-primary); }
.e27-tool-faq-item[open] summary::after { content: '−'; }
.e27-tool-faq-item div { padding: 0 1.3rem 1.2rem; color: var(--e27-color-text); line-height: 1.6; }

/* ===== Misc ===== */
.e27-section-cta {
  text-align: center;
  padding: 3rem 1.4rem 5rem;
}
.e27-section-cta h2 { margin-bottom: 0.8rem; }
.e27-section-cta p { color: var(--e27-color-text-soft); max-width: 600px; margin: 0 auto 1.5rem; }

/* Sniglet/Nunito loading optimization */
.wf-loading body { visibility: hidden; }


/* Mouse effect : hover_smooth_transition */
.e27-btn, .e27-card, .e27-card-cat, .e27-link-card, .e27-cat-link, .e27-footer-links a, .e27-article-card a { transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, color 0.3s ease, background-color 0.3s ease; will-change: transform; } .e27-card:hover, .e27-card-cat:hover, .e27-link-card:hover, .e27-article-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(55, 175, 192, 0.18); } .e27-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255, 152, 0, 0.28); } @media (hover: none) { .e27-card:hover, .e27-card-cat:hover, .e27-link-card:hover, .e27-article-card:hover, .e27-btn:hover { transform: none; box-shadow: none; } }
