/*
Theme Name: DRONEDJ Horizon
Theme URI: https://dronedj.fr
Author: DRONEDJ.FR
Author URI: https://dronedj.fr
Description: Thème WordPress premium bleu et blanc avec page Coming Soon, collecte d'adresses e-mail et compatibilité WooCommerce.
Version: 2.0.1
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: dronedj-horizon
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, e-commerce, blog
*/

:root {
  --navy: #061f4f;
  --navy-soft: #173b6c;
  --blue: #0874ef;
  --blue-light: #179cf5;
  --ice: #f4faff;
  --sky: #e4f4ff;
  --white: #fff;
  --muted: #56708e;
  --line: rgba(8, 100, 218, .13);
  --shadow: 0 25px 75px rgba(18, 75, 145, .14);
  --content: 1500px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--navy);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }

img { max-width: 100%; height: auto; }

a { color: var(--blue); }

button,
input,
textarea,
select { font: inherit; }

button { cursor: pointer; }

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  top: 8px;
  left: 8px;
  z-index: 99999;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto !important;
  color: var(--navy);
  background: #fff;
  box-shadow: var(--shadow);
}

.dronedj-container {
  width: min(var(--content), calc(100% - 64px));
  margin-inline: auto;
}

/* En-tête */
.dronedj-header {
  position: relative;
  z-index: 50;
  height: 94px;
  border-bottom: 1px solid rgba(9, 72, 150, .09);
  background: rgba(255, 255, 255, .91);
  backdrop-filter: blur(18px);
}

.dronedj-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.dronedj-brand,
.dronedj-brand-link {
  display: inline-flex;
  align-items: center;
  color: var(--navy);
  text-decoration: none;
}

.dronedj-brand .custom-logo {
  width: auto;
  max-height: 54px;
}

.dronedj-brand-text {
  font-size: clamp(25px, 2.1vw, 38px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.05em;
}

.dronedj-nav {
  display: flex;
  align-items: center;
  gap: 21px;
}

.dronedj-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(25px, 3vw, 49px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.dronedj-nav a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--navy);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

.dronedj-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -25px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transform: scaleX(0);
  transition: transform .18s ease;
}

.dronedj-nav a:hover::after,
.dronedj-nav a:focus-visible::after,
.dronedj-nav .current-menu-item > a::after { transform: scaleX(1); }

.dronedj-socials {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-left: 5px;
  padding-left: 23px;
  border-left: 1px solid var(--line);
}

.dronedj-socials a,
.dronedj-cart {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  text-decoration: none;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.dronedj-socials a:hover,
.dronedj-cart:hover {
  color: var(--blue);
  background: var(--ice);
  transform: translateY(-1px);
}

.dronedj-socials svg,
.dronedj-cart svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.dronedj-cart-count {
  position: absolute;
  top: -1px;
  right: -2px;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  padding-inline: 4px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 9px;
  font-weight: 800;
}

.dronedj-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.dronedj-menu-toggle span,
.dronedj-menu-toggle::before,
.dronedj-menu-toggle::after {
  content: "";
  display: block;
  width: 21px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
}

/* Page Coming Soon */
.dronedj-launch {
  position: relative;
  min-height: calc(100vh - 94px);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 82% 17%, rgba(78, 169, 255, .18), transparent 31%),
    linear-gradient(112deg, #fff 0%, #fff 42%, #f4faff 69%, #e9f6ff 100%);
}

.dronedj-launch::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(8, 105, 222, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 105, 222, .018) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.dronedj-launch-inner {
  min-height: calc(100vh - 94px);
  display: grid;
  grid-template-columns: minmax(530px, .91fr) minmax(660px, 1.09fr);
  align-items: center;
  padding-top: clamp(56px, 7vh, 100px);
  padding-bottom: clamp(55px, 7vh, 94px);
}

.dronedj-copy {
  position: relative;
  z-index: 10;
  max-width: 710px;
  padding-right: 35px;
}

.dronedj-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 35px;
  padding: 9px 16px;
  border: 1px solid rgba(20, 125, 240, .08);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(221, 239, 255, .74);
  font-size: 14px;
  font-weight: 650;
}

.dronedj-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(8, 116, 239, .08);
  animation: dronedj-pulse 2.2s ease-in-out infinite;
}

.dronedj-eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 16px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dronedj-title {
  margin: 0;
  color: var(--navy);
  font-size: clamp(62px, 5.7vw, 103px);
  font-weight: 900;
  line-height: .94;
  letter-spacing: -.065em;
}

.dronedj-title .accent {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  -webkit-background-clip: text;
  background-clip: text;
}

.dronedj-lead {
  max-width: 635px;
  margin: 28px 0 0;
  color: var(--navy-soft);
  font-size: clamp(17px, 1.25vw, 21px);
  line-height: 1.55;
}

.dronedj-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 31px;
}

.dronedj-button {
  min-height: 59px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 25px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 760;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.dronedj-button:hover { transform: translateY(-2px); }

.dronedj-button-primary {
  color: #fff;
  background: linear-gradient(135deg, #0874ef, #0767de);
  box-shadow: 0 14px 34px rgba(8, 100, 218, .23);
}

.dronedj-button-primary:hover {
  color: #fff;
  box-shadow: 0 18px 44px rgba(8, 100, 218, .29);
}

.dronedj-button-secondary {
  color: var(--blue);
  border-color: var(--blue);
  background: rgba(255, 255, 255, .84);
}

.dronedj-button-secondary:hover {
  color: #fff;
  background: var(--blue);
}

.dronedj-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dronedj-services {
  max-width: 710px;
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 46px;
}

.dronedj-service {
  min-height: 98px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 7px;
  padding: 12px 10px;
  border: 1px solid rgba(8, 92, 198, .06);
  border-radius: 13px;
  color: var(--navy);
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 14px 35px rgba(32, 90, 154, .08);
  backdrop-filter: blur(15px);
  text-align: center;
}

.dronedj-service svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dronedj-service span {
  font-size: 13px;
  font-weight: 700;
}

.dronedj-visual {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60%;
  min-width: 770px;
  overflow: hidden;
}

.dronedj-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .93) 3%, rgba(255,255,255,.48) 13%, transparent 28%),
    linear-gradient(to top, rgba(238, 248, 255, .10), transparent 33%);
}

.dronedj-visual picture {
  position: absolute;
  inset: 0;
  display: block;
  transform: scale(1.025);
  transform-origin: center;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}

.dronedj-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 49% center;
  filter: saturate(.99) contrast(1.01);
}

.dronedj-footer-note {
  position: absolute;
  z-index: 6;
  right: 32px;
  bottom: 21px;
  color: rgba(7, 52, 107, .68);
  font-size: 11px;
  letter-spacing: .04em;
}

/* Fenêtre d'inscription */
.dronedj-modal[hidden] { display: none; }

.dronedj-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.dronedj-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 26, 65, .47);
  backdrop-filter: blur(9px);
}

.dronedj-modal-dialog {
  position: relative;
  z-index: 2;
  width: min(520px, 100%);
  padding: 38px;
  border: 1px solid rgba(255,255,255,.84);
  border-radius: 24px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 30px 100px rgba(4, 42, 100, .28);
}

.dronedj-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: var(--navy);
  background: var(--ice);
  font-size: 22px;
}

.dronedj-modal-kicker {
  margin: 0 0 7px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.dronedj-modal h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: -.035em;
}

.dronedj-modal-copy {
  margin: 13px 0 22px;
  color: var(--muted);
}

.dronedj-form-field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.dronedj-form-field label {
  font-size: 13px;
  font-weight: 750;
}

.dronedj-form-field input {
  width: 100%;
  height: 53px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  color: var(--navy);
  background: #f8fbff;
}

.dronedj-form-field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(8, 116, 239, .10);
}

.dronedj-form-submit { width: 100%; margin-top: 5px; }

.dronedj-privacy {
  margin: 12px 0 0;
  color: #7b8da5;
  font-size: 11px;
  line-height: 1.5;
}

.dronedj-honeypot {
  position: absolute;
  left: -9999px;
}

.dronedj-notice {
  position: fixed;
  z-index: 1100;
  right: 24px;
  bottom: 24px;
  max-width: 430px;
  padding: 15px 18px;
  border: 1px solid rgba(8, 116, 239, .14);
  border-radius: 13px;
  color: var(--navy);
  background: rgba(255,255,255,.97);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 680;
}

/* Site standard, blog et pages */
.site-main {
  min-height: 65vh;
  padding: 70px 0;
}

.content-area {
  width: min(1000px, calc(100% - 48px));
  margin-inline: auto;
}

.entry-card {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(20, 74, 135, .07);
}

.entry-card + .entry-card { margin-top: 24px; }

.entry-title {
  margin-top: 0;
  line-height: 1.15;
  letter-spacing: -.035em;
}

.entry-title a {
  color: var(--navy);
  text-decoration: none;
}

.entry-content { color: #344e70; }

.entry-content > * + * { margin-top: 1.2em; }

.dronedj-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: #72839a;
  background: #f8fbff;
  font-size: 13px;
}

.dronedj-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* WooCommerce */
.woocommerce .woocommerce-breadcrumb { color: var(--muted); }

.woocommerce ul.products li.product {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 13px 35px rgba(24, 77, 138, .07);
}

.woocommerce ul.products li.product img { border-radius: 11px; }

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce div.product .product_title { color: var(--navy); }

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  color: #fff;
  border-radius: 9px;
  background: var(--blue);
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  color: #fff;
  background: var(--navy);
}

.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce ul.products li.product .price { color: var(--blue); }

.woocommerce-message,
.woocommerce-info { border-top-color: var(--blue); }

.woocommerce-message::before,
.woocommerce-info::before { color: var(--blue); }

@keyframes dronedj-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}

@media (max-width: 1250px) {
  .dronedj-launch-inner {
    grid-template-columns: minmax(485px, .95fr) minmax(560px, 1.05fr);
  }

  .dronedj-title { font-size: clamp(58px, 6.3vw, 87px); }

  .dronedj-visual {
    width: 58%;
    min-width: 660px;
  }

  .dronedj-services {
    max-width: 490px;
    grid-template-columns: repeat(2, minmax(170px, 1fr));
  }
}

@media (max-width: 1020px) {
  .dronedj-container { width: min(100% - 34px, var(--content)); }

  .dronedj-header { height: 80px; }

  .dronedj-menu-toggle { display: block; }

  .dronedj-nav {
    position: absolute;
    top: 70px;
    right: 17px;
    left: 17px;
    display: none;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,.98);
    box-shadow: var(--shadow);
  }

  .dronedj-nav.is-open { display: block; }

  .dronedj-nav ul {
    display: grid;
    gap: 2px;
  }

  .dronedj-nav a { padding: 8px 4px; }

  .dronedj-nav a::after { bottom: 2px; }

  .dronedj-socials {
    margin: 12px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .dronedj-launch { min-height: auto; }

  .dronedj-launch-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 58px;
    padding-bottom: 0;
  }

  .dronedj-copy {
    max-width: 790px;
    margin-inline: auto;
    padding-right: 0;
    text-align: center;
  }

  .dronedj-title,
  .dronedj-lead { margin-inline: auto; }

  .dronedj-actions { justify-content: center; }

  .dronedj-services { margin-inline: auto; }

  .dronedj-visual {
    position: relative;
    width: calc(100% + 34px);
    min-width: 0;
    height: min(690px, 68vw);
    margin: 44px -17px 0;
  }

  .dronedj-visual::before {
    background:
      linear-gradient(to bottom, #fff 0%, rgba(255,255,255,.3) 12%, transparent 26%),
      linear-gradient(to top, rgba(238,248,255,.10), transparent 33%);
  }

  .dronedj-visual img { object-position: center; }

  .dronedj-footer-note { display: none; }
}

@media (max-width: 660px) {
  .dronedj-brand-text { font-size: 25px; }

  .dronedj-launch-inner { padding-top: 38px; }

  .dronedj-status { margin-bottom: 25px; }

  .dronedj-eyebrow { font-size: 12px; }

  .dronedj-title { font-size: clamp(48px, 14.5vw, 72px); }

  .dronedj-lead { font-size: 16px; }

  .dronedj-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dronedj-button { width: 100%; }

  .dronedj-services {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 34px;
  }

  .dronedj-service { min-height: 90px; }

  .dronedj-visual {
    height: 470px;
    margin-top: 28px;
  }

  .dronedj-visual picture { transform: scale(1.13); }

  .dronedj-visual img { object-position: 54% center; }

  .dronedj-modal-dialog { padding: 34px 22px 25px; }

  .dronedj-footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
