/*
Theme Name: Altidrone Logistics
Theme URI: https://altidrone.local
Author: Altidrone
Description: Theme WordPress vitrine pour ALTIDRONE LOGISTICS, service de logistique drone en haute altitude.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
Text Domain: altidronelogistics
*/

:root {
  --ink: #111827;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.12);
  --snow: #f7fafc;
  --ice: #e6f4fb;
  --blue: #145da0;
  --blue-deep: #08375e;
  --cyan: #22b8cf;
  --signal: #e23d28;
  --gold: #f2b544;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(8, 55, 94, 0.18);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--snow);
  line-height: 1.55;
}

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: inherit;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  color: var(--white);
  background: rgba(7, 24, 41, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border: 1px solid rgba(255, 255, 255, 0.35);
  clip-path: polygon(50% 0, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
}

.brand-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.68);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.93rem;
  font-weight: 650;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--white);
}

.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--white);
  background: var(--signal);
  box-shadow: 0 14px 28px rgba(226, 61, 40, 0.24);
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
}

.button-dark {
  color: var(--white);
  background: var(--blue-deep);
}

.site-main {
  overflow: hidden;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: end;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(5, 17, 31, 0.86), rgba(5, 17, 31, 0.5) 48%, rgba(5, 17, 31, 0.18)),
    url("assets/images/image2.png") center / cover no-repeat;
}

.hero-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0 54px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ice);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--gold);
}

.hero h1 {
  max-width: 860px;
  margin: 18px 0 20px;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 680px;
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.08rem, 2vw, 1.36rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-metrics {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  transform: translateY(50%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.metric {
  padding: 26px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  color: var(--blue-deep);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.94rem;
}

.section {
  padding: 108px 0;
}

.section-after-hero {
  padding-top: 148px;
}

.section-blue {
  color: var(--white);
  background: var(--blue-deep);
}

.section-white {
  background: var(--white);
}

.section-ice {
  background: linear-gradient(180deg, #eef8fc, #f7fafc);
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.section-head {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-head h2 {
  margin: 10px 0 14px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.section-blue .section-head p,
.section-blue .card p,
.section-blue .timeline p {
  color: rgba(255, 255, 255, 0.74);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.76fr);
  gap: 48px;
  align-items: center;
}

.visual-panel {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #dbeafe;
}

.visual-panel img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  min-height: 100%;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.section-blue .card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--white);
  background: var(--blue);
  border-radius: 6px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.17rem;
}

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

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.offer {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px;
  color: var(--white);
  background: linear-gradient(145deg, var(--blue-deep), #13527f);
  border-radius: 8px;
  min-height: 360px;
}

.offer:nth-child(2) {
  background: linear-gradient(145deg, #123c52, #1f7a8c);
}

.offer:nth-child(3) {
  background: linear-gradient(145deg, #292524, #8a3a24);
}

.offer h3,
.offer p {
  margin: 0;
}

.offer ul {
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.offer li {
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.route {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: center;
}

.route img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 16px;
  align-items: start;
}

.timeline-item strong {
  display: grid;
  place-items: center;
  min-height: 46px;
  color: var(--blue-deep);
  background: var(--gold);
  border-radius: 6px;
}

.timeline-item h3 {
  margin: 0 0 4px;
}

.timeline-item p {
  margin: 0;
}

.proof-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.proof {
  min-height: 170px;
  padding: 24px;
  background: var(--white);
}

.proof strong {
  display: block;
  color: var(--blue);
  font-size: 2rem;
}

.cta {
  padding: 70px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(8, 55, 94, 0.95), rgba(8, 55, 94, 0.78)),
    url("assets/images/image2.png") center / cover no-repeat;
  border-radius: 8px;
}

.cta h2 {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.cta p {
  max-width: 680px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer {
  color: rgba(255, 255, 255, 0.74);
  background: #071829;
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-inner strong {
  display: block;
  color: var(--white);
}

@media (max-width: 920px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .main-nav ul {
    flex-wrap: nowrap;
  }

  .hero {
    min-height: 760px;
  }

  .hero-metrics,
  .cards-grid,
  .offer-grid,
  .proof-band,
  .split,
  .route {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    transform: translateY(24px);
  }

  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section-after-hero {
    padding-top: 72px;
  }

  .section {
    padding: 72px 0;
  }

  .cta {
    padding: 42px 24px;
  }
}

@media (max-width: 600px) {
  body.admin-bar .site-header {
    top: 0;
  }

  .hero h1 {
    font-size: 3.1rem;
  }

  .hero-inner {
    padding-top: 54px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }
}
