/* ============================
   X-ENERGY — Feuille de style
   Palette : orange solaire / bleu nuit / blanc
   ============================ */

:root {
  --orange: #FF7A1A;
  --orange-dark: #E85D04;
  --navy: #0B1F3A;
  --navy-light: #142d52;
  --white: #FFFFFF;
  --gray-light: #F4F6F9;
  --gray-border: #E3E7EE;
  --text: #1A1F29;
  --text-muted: #5A6472;

  --radius: 10px;
  --shadow: 0 8px 24px rgba(11, 31, 58, 0.08);
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

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

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus {
  left: 10px;
  top: 10px;
}

section[id] {
  scroll-margin-top: 84px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(255, 122, 26, 0.35);
}
.btn-primary:hover {
  background: var(--orange-dark);
}
.btn-outline {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
  padding: 8px 18px;
  font-size: 0.9rem;
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-ghost {
  border-color: var(--white);
  color: var(--white);
  background: transparent;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
}

.cta-row {
  text-align: center;
  margin-top: 40px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
.logo {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.logo-x {
  color: var(--orange);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.primary-nav {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  padding: 10px 20px 20px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.primary-nav.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.primary-nav ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.primary-nav a {
  display: block;
  padding: 10px 4px;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid var(--gray-border);
}
.nav-call {
  margin-top: 14px;
  width: 100%;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.nav-call-icon {
  width: 16px;
  height: 16px;
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
  .primary-nav {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 28px;
  }
  .primary-nav ul {
    flex-direction: row;
    gap: 22px;
  }
  .primary-nav a {
    padding: 4px 0;
    border-bottom: none;
    font-size: 0.95rem;
  }
  .nav-call {
    margin-top: 0;
    width: auto;
  }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 56px 0;
}
.hero-inner {
  display: flex;
  flex-direction: column-reverse;
  gap: 32px;
  align-items: center;
}
.hero-text {
  text-align: center;
}
.eyebrow {
  color: var(--orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin: 0 0 10px;
}
.eyebrow.center {
  text-align: center;
}
.eyebrow.light {
  color: var(--orange);
}
h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.2;
  margin: 0 0 16px;
}
.hero-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 20px;
}
.hero-badge {
  display: inline-block;
  background: rgba(255, 122, 26, 0.15);
  border: 1px solid var(--orange);
  color: var(--orange);
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.hero-visual {
  width: 100%;
  max-width: 320px;
}
.hero-illustration {
  width: 100%;
  height: auto;
}

@media (min-width: 900px) {
  .hero {
    padding: 90px 0;
  }
  .hero-inner {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }
  .hero-text {
    text-align: left;
    flex: 1;
  }
  .hero-sub {
    margin: 0 0 20px;
  }
  .hero-cta {
    justify-content: flex-start;
  }
  .hero-visual {
    max-width: 380px;
    flex-shrink: 0;
  }
}

/* ---------- Sections génériques ---------- */
.section {
  padding: 64px 0;
}
.section-alt {
  background: var(--gray-light);
}
.section-title {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  margin: 0 0 40px;
  color: var(--navy);
}
.section-title.center {
  text-align: center;
}
.section-title.light {
  color: var(--white);
}

/* ---------- Cartes services ---------- */
.cards {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 122, 26, 0.12);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.icon-circle svg {
  width: 28px;
  height: 28px;
}
.card h3 {
  color: var(--navy);
  margin: 0 0 10px;
  font-size: 1.15rem;
}
.card p {
  color: var(--text-muted);
  margin: 0;
}

@media (min-width: 700px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Offre étude technique ---------- */
.section-offer {
  background: var(--navy);
  color: var(--white);
}
.offer-badge {
  text-align: center;
  display: block;
  width: fit-content;
  margin: 0 auto 36px;
  background: var(--orange);
  color: var(--white);
  font-weight: 800;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 1rem;
}
.offer-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin-bottom: 24px;
}
.offer-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
}
.offer-card h3 {
  margin: 0 0 10px;
  color: var(--orange);
}
.offer-price {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}
.offer-note {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 36px;
}
.offer-highlight {
  background: var(--orange);
  border-radius: var(--radius);
  padding: 22px 26px;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0 auto 32px;
}
.offer-deliverable {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.offer-deliverable h3 {
  color: var(--orange);
  margin-bottom: 8px;
}
.offer-deliverable p {
  color: rgba(255, 255, 255, 0.85);
}

@media (min-width: 700px) {
  .offer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Pourquoi nous ---------- */
.features {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
.feature {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.feature h3 {
  color: var(--navy);
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.feature p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

@media (min-width: 700px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .features {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Réalisations ---------- */
.gallery {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
.gallery-item {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.gallery-item figcaption {
  padding: 14px 16px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
}

@media (min-width: 700px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Processus ---------- */
.process {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  counter-reset: step;
}
.process li {
  text-align: center;
  position: relative;
}
.process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-weight: 800;
  margin-bottom: 12px;
}
.process h3 {
  color: var(--navy);
  margin: 0 0 6px;
}
.process p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

@media (min-width: 900px) {
  .process {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Témoignages ---------- */
.testimonials {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
.testimonial {
  margin: 0;
  background: var(--gray-light);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 24px;
}
.testimonial p {
  margin: 0 0 12px;
  font-style: italic;
  color: var(--text);
}
.testimonial footer {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

@media (min-width: 900px) {
  .testimonials {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  float: right;
  font-size: 1.3rem;
  color: var(--orange);
}
.faq-item[open] summary::after {
  content: "\2212";
}
.faq-item p {
  color: var(--text-muted);
  margin: 12px 0 0;
}

/* ---------- Contact ---------- */
.section-contact {
  background: var(--navy);
  color: var(--white);
}
.contact-inner {
  max-width: 640px;
  text-align: center;
}
.contact-sub {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 24px;
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 30px;
  align-items: center;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
}
.contact-list a:hover {
  color: var(--orange);
}
.contact-icon {
  display: inline-flex;
  color: var(--orange);
}
.contact-icon svg {
  width: 22px;
  height: 22px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #081426;
  color: rgba(255, 255, 255, 0.7);
  padding: 24px 0;
  font-size: 0.85rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}
.footer-inner a:hover {
  color: var(--orange);
}

@media (min-width: 700px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ---------- WhatsApp flottant ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  z-index: 600;
  transition: transform 0.15s ease;
}
.whatsapp-float:hover {
  transform: scale(1.08);
}
