/*
Theme Name: MCFrance Theme
Theme URI: https://mcfrance.fr/
Author: MCFrance
Description: Theme custom avec page d'accueil integree pour MCFrance.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.8
Text Domain: mcfrance-theme
*/

:root {
  --mc-bg: #07111c;
  --mc-bg-2: #0c1c2b;
  --mc-text: #e8f3ff;
  --mc-muted: #9ab7d3;
  --mc-border: rgba(154, 183, 211, 0.22);
  --mc-accent-a: #15b8ff;
  --mc-accent-b: #48e3a7;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background:
    radial-gradient(circle at 20% 0%, rgba(21, 184, 255, 0.08), transparent 45%),
    radial-gradient(circle at 100% 0%, rgba(72, 227, 167, 0.08), transparent 40%),
    linear-gradient(180deg, #050b12 0%, #07111c 100%);
  color: var(--mc-text);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(6, 12, 18, 0.7);
  backdrop-filter: blur(6px);
}

.site-header__inner,
.site-footer__inner,
.site-content {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.site-brand {
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.site-nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--mc-muted);
}

.site-nav a:hover {
  color: var(--mc-text);
}

.site-content {
  flex: 1;
  padding: 22px 0 48px;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--mc-muted);
}

.site-footer__inner {
  padding: 18px 0 28px;
  font-size: 0.95rem;
}

.site-nav-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 10px;
}

.site-nav-footer li {
  position: relative;
  padding-left: 14px;
}

.site-nav-footer li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--mc-accent-b);
  transform: translateY(-50%);
  box-shadow:
    2px 0 0 rgba(72, 227, 167, 0.65),
    0 2px 0 rgba(21, 184, 255, 0.65);
}

.site-nav-footer a {
  color: var(--mc-text);
}

.site-nav-footer a:hover {
  color: var(--mc-accent-b);
}

.site-footer__meta {
  color: var(--mc-muted);
}

.mc-home-wrap {
  max-width: 1120px;
  margin: 0 auto;
}

.mc-home-hero {
  margin-bottom: 26px;
}

.mc-home-tag {
  display: inline-block;
  border: 1px solid rgba(72, 227, 167, 0.45);
  background: rgba(72, 227, 167, 0.12);
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 700;
  color: var(--mc-text);
}

.mc-home-hero h1 {
  margin: 12px 0 10px;
  color: var(--mc-text);
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.05;
}

.mc-home-sub {
  max-width: 760px;
  color: var(--mc-muted);
  margin: 0 0 14px;
}

.mc-home-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.mc-home-ip {
  color: var(--mc-muted);
  margin: 0;
}

.mc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  transition: transform 0.2s ease, font-size 0.2s ease, filter 0.2s ease, text-shadow 0.12s linear;
  transform: translateZ(0);
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"],
a.button,
.button,
.wp-block-button__link {
  transition: transform 0.2s ease, font-size 0.2s ease, filter 0.2s ease, text-shadow 0.12s linear;
  transform: translateZ(0);
}

.mc-btn-primary {
  background: linear-gradient(120deg, var(--mc-accent-a), var(--mc-accent-b));
  color: #041019;
}

.mc-btn-outline {
  color: var(--mc-text);
  border: 1px solid rgba(72, 227, 167, 0.45);
  background: rgba(72, 227, 167, 0.06);
}

.mc-home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.mc-home-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mc-card {
  border: 1px solid var(--mc-border);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(19, 40, 61, 0.94), rgba(15, 28, 42, 0.94));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
  padding: 18px;
  color: var(--mc-text);
}

.mc-card h2 {
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 2.6vw, 1.8rem);
}

.mc-card p {
  color: var(--mc-muted);
}

.mc-card ul,
.mc-card ol {
  margin: 0;
  padding-left: 20px;
  color: var(--mc-muted);
}

.mc-card li {
  margin-bottom: 6px;
}

.mc-card .mc-btn {
  margin-top: 10px;
}

.content-card {
  border: 1px solid var(--mc-border);
  border-radius: 16px;
  background: rgba(15, 28, 42, 0.9);
  padding: 22px;
}

.content-card h1,
.content-card h2,
.content-card h3 {
  color: var(--mc-text);
}

.content-card p,
.content-card li {
  color: var(--mc-muted);
}

@media (max-width: 980px) {
  .mc-home-grid,
  .mc-home-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-content {
    padding-top: 12px;
  }

  .mc-home-cta .mc-btn {
    width: 100%;
  }
}

/* WooCommerce */
.mc-shop-shell .woocommerce-breadcrumb,
.mc-shop-shell .woocommerce-result-count {
  color: var(--mc-muted);
}

.mc-shop-shell .woocommerce-ordering select,
.mc-shop-shell .quantity .qty,
.mc-shop-shell input[type="text"],
.mc-shop-shell input[type="email"],
.mc-shop-shell input[type="tel"],
.mc-shop-shell input[type="number"],
.mc-shop-shell input[type="password"],
.mc-shop-shell textarea,
.mc-shop-shell select {
  width: 100%;
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid var(--mc-border);
  background: rgba(7, 17, 28, 0.9);
  color: var(--mc-text);
  padding: 10px 12px;
}

.mc-shop-shell .woocommerce ul.products li.product,
.mc-shop-shell .woocommerce-page ul.products li.product {
  border: 1px solid var(--mc-border);
  border-radius: 14px;
  background: rgba(12, 28, 43, 0.85);
  padding: 14px;
}

.mc-shop-shell .woocommerce ul.products li.product a {
  color: var(--mc-text);
  text-decoration: none;
}

.mc-shop-shell .woocommerce ul.products li.product .price,
.mc-shop-shell .woocommerce div.product p.price,
.mc-shop-shell .woocommerce div.product span.price {
  color: var(--mc-accent-b);
  font-weight: 700;
}

.mc-shop-shell .woocommerce div.product div.images img,
.mc-shop-shell .woocommerce ul.products li.product img {
  border-radius: 12px;
}

.mc-shop-shell .woocommerce-message,
.mc-shop-shell .woocommerce-info,
.mc-shop-shell .woocommerce-error {
  border-radius: 10px;
  border: 1px solid var(--mc-border);
  background: rgba(15, 28, 42, 0.92);
  color: var(--mc-text);
}

.mc-shop-shell .woocommerce a.button,
.mc-shop-shell .woocommerce button.button,
.mc-shop-shell .woocommerce input.button,
.mc-shop-shell .woocommerce #respond input#submit,
.mc-shop-shell .woocommerce .button.alt,
.mc-shop-shell .woocommerce button.button.alt,
.mc-shop-shell .woocommerce input.button.alt {
  border: 0;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--mc-accent-a), var(--mc-accent-b));
  color: #041019;
  font-weight: 700;
  padding: 10px 16px;
  transition: transform 0.2s ease, font-size 0.2s ease, filter 0.2s ease, text-shadow 0.12s linear;
  transform: translateZ(0);
}

.mc-shop-shell .woocommerce a.button:hover,
.mc-shop-shell .woocommerce button.button:hover,
.mc-shop-shell .woocommerce input.button:hover {
  filter: brightness(1.03);
}

.mc-btn:hover,
.mc-btn:focus-visible,
button:hover,
button:focus-visible,
input[type="button"]:hover,
input[type="button"]:focus-visible,
input[type="submit"]:hover,
input[type="submit"]:focus-visible,
input[type="reset"]:hover,
input[type="reset"]:focus-visible,
a.button:hover,
a.button:focus-visible,
.button:hover,
.button:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible,
.mc-shop-shell .woocommerce a.button:hover,
.mc-shop-shell .woocommerce button.button:hover,
.mc-shop-shell .woocommerce input.button:hover,
.mc-shop-shell .woocommerce #respond input#submit:hover,
.mc-shop-shell .woocommerce .button.alt:hover,
.mc-shop-shell .woocommerce button.button.alt:hover,
.mc-shop-shell .woocommerce input.button.alt:hover {
  transform: scale(1.04);
  font-size: 1.03em;
  animation: mc-text-vibrate 0.14s linear infinite;
}

@keyframes mc-text-vibrate {
  0% {
    text-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
  25% {
    text-shadow: 0.3px 0 0 currentColor;
  }
  50% {
    text-shadow: -0.3px 0 0 currentColor;
  }
  75% {
    text-shadow: 0 0.3px 0 currentColor;
  }
  100% {
    text-shadow: 0 -0.3px 0 currentColor;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mc-btn,
  button,
  input[type="button"],
  input[type="submit"],
  input[type="reset"],
  a.button,
  .button,
  .wp-block-button__link,
  .mc-shop-shell .woocommerce a.button,
  .mc-shop-shell .woocommerce button.button,
  .mc-shop-shell .woocommerce input.button,
  .mc-shop-shell .woocommerce #respond input#submit,
  .mc-shop-shell .woocommerce .button.alt,
  .mc-shop-shell .woocommerce button.button.alt,
  .mc-shop-shell .woocommerce input.button.alt {
    transition: none;
    animation: none;
  }

  .mc-btn:hover,
  .mc-btn:focus-visible,
  button:hover,
  button:focus-visible,
  input[type="button"]:hover,
  input[type="button"]:focus-visible,
  input[type="submit"]:hover,
  input[type="submit"]:focus-visible,
  input[type="reset"]:hover,
  input[type="reset"]:focus-visible,
  a.button:hover,
  a.button:focus-visible,
  .button:hover,
  .button:focus-visible,
  .wp-block-button__link:hover,
  .wp-block-button__link:focus-visible,
  .mc-shop-shell .woocommerce a.button:hover,
  .mc-shop-shell .woocommerce button.button:hover,
  .mc-shop-shell .woocommerce input.button:hover,
  .mc-shop-shell .woocommerce #respond input#submit:hover,
  .mc-shop-shell .woocommerce .button.alt:hover,
  .mc-shop-shell .woocommerce button.button.alt:hover,
  .mc-shop-shell .woocommerce input.button.alt:hover {
    transform: none;
    font-size: 1em;
  }
}

.mc-shop-shell .woocommerce a.button.disabled,
.mc-shop-shell .woocommerce a.button:disabled,
.mc-shop-shell .woocommerce button.button:disabled,
.mc-shop-shell .woocommerce input.button:disabled {
  opacity: 0.7;
  color: #041019;
}

.mc-shop-shell .woocommerce div.product .product_title,
.mc-shop-shell .woocommerce h1,
.mc-shop-shell .woocommerce h2,
.mc-shop-shell .woocommerce h3 {
  color: var(--mc-text);
}

.mc-shop-shell .woocommerce div.product .woocommerce-product-details__short-description,
.mc-shop-shell .woocommerce div.product .woocommerce-tabs,
.mc-shop-shell .woocommerce .woocommerce-tabs ul.tabs li a,
.mc-shop-shell .woocommerce .woocommerce-Tabs-panel,
.mc-shop-shell .woocommerce table.shop_table th,
.mc-shop-shell .woocommerce table.shop_table td,
.mc-shop-shell .woocommerce form .form-row label {
  color: var(--mc-muted);
}

.mc-shop-shell .woocommerce table.shop_table,
.mc-shop-shell .woocommerce table.shop_table td,
.mc-shop-shell .woocommerce table.shop_table th {
  border-color: var(--mc-border);
}

.mc-shop-shell .woocommerce table.shop_table,
.mc-shop-shell .woocommerce-cart .cart-collaterals .cart_totals,
.mc-shop-shell .woocommerce-checkout #payment,
.mc-shop-shell .woocommerce form.checkout_coupon,
.mc-shop-shell .woocommerce form.login,
.mc-shop-shell .woocommerce form.register {
  border-radius: 14px;
  background: rgba(12, 28, 43, 0.85);
  border: 1px solid var(--mc-border);
}

.mc-shop-shell .woocommerce-checkout #payment div.payment_box {
  background: rgba(7, 17, 28, 0.9);
  color: var(--mc-muted);
}

.mc-shop-shell .woocommerce-checkout #payment div.payment_box::before {
  border-bottom-color: rgba(7, 17, 28, 0.9);
}

.mc-shop-shell .woocommerce .woocommerce-tabs ul.tabs::before {
  border-bottom-color: var(--mc-border);
}

.mc-shop-shell .woocommerce .woocommerce-tabs ul.tabs li {
  border-color: var(--mc-border);
  background: rgba(7, 17, 28, 0.9);
}

.mc-shop-shell .woocommerce .woocommerce-tabs ul.tabs li.active {
  background: rgba(12, 28, 43, 0.95);
}

.mc-shop-shell .woocommerce .woocommerce-tabs ul.tabs li a {
  color: var(--mc-text);
}

/* Checkout custom page */
.mc-checkout-page {
  max-width: 1120px;
  margin: 0 auto;
}

.mc-checkout-hero {
  margin-bottom: 18px;
}

.mc-checkout-hero h1 {
  margin: 12px 0 10px;
  color: var(--mc-text);
  font-size: clamp(2rem, 5.2vw, 3.2rem);
  line-height: 1.05;
}

.mc-checkout-hero h1 span {
  color: var(--mc-accent-b);
}

.mc-checkout-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: start;
}

.mc-checkout-main .woocommerce-checkout .col2-set {
  margin-bottom: 14px;
}

.mc-checkout-side h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

.mc-checkout-side p,
.mc-checkout-side li {
  color: var(--mc-muted);
}

.mc-checkout-side ul {
  margin-top: 0;
  padding-left: 18px;
}

.mc-checkout-side .mc-home-cta {
  margin-top: 14px;
}

@media (max-width: 980px) {
  .mc-checkout-layout {
    grid-template-columns: 1fr;
  }
}
