/* ============================================================
   COVERING LORIENT — style.css
   Palette : navy #0f172a · blue #2563eb · white #fff · slate #f1f5f9
   ============================================================ */

:root {
  --navy:       #0f172a;
  --navy-mid:   #1e2d4a;
  --blue:       #2563eb;
  --blue-dark:  #1e40af;
  --blue-light: #60a5fa;
  --blue-pale:  #dbeafe;
  --gray-dark:  #374151;
  --gray:       #6b7280;
  --gray-light: #f1f5f9;
  --white:      #ffffff;
  --border:     #e2e8f0;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow:     0 4px 12px rgba(0,0,0,.10);
  --shadow-lg:  0 12px 32px rgba(0,0,0,.14);
  --radius:     8px;
  --radius-lg:  14px;
  --font:       system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --max-w:      1160px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
address { font-style: normal; }

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.75rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .18s, color .18s, transform .15s, box-shadow .18s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }

.btn-white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-white:hover { background: var(--blue-pale); border-color: var(--blue-pale); color: var(--navy); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); color: var(--white); }

.btn-lg { padding: 1rem 2.2rem; font-size: 1.08rem; }
.btn-full { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1.5rem;
}
.logo img { height: 38px; width: auto; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.main-nav a {
  display: block;
  padding: .45rem .85rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-dark);
  border-radius: var(--radius);
  transition: color .15s, background .15s;
}
.main-nav a:hover { color: var(--blue); background: var(--blue-pale); text-decoration: none; }
.main-nav .nav-cta {
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  padding: .5rem 1.1rem;
}
.main-nav .nav-cta:hover { background: var(--blue-dark); color: var(--white); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.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); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--navy);
  overflow: hidden;
  padding: 5rem 0 4rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 70% 50%, #1e3a6e 0%, transparent 70%),
    linear-gradient(135deg, #0f172a 0%, #1a2744 50%, #0c1526 100%);
  z-index: 0;
}
/* Decorative diagonal stripes */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(37,99,235,.06) 0px,
    rgba(37,99,235,.06) 1px,
    transparent 1px,
    transparent 40px
  );
}
/* Decorative accent bar */
.hero-bg::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-light) 50%, var(--blue) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: start;
}
.hero-content { padding-top: 1rem; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(37,99,235,.2);
  color: var(--blue-light);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(96,165,250,.25);
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  line-height: 1.65;
  margin-bottom: 1.75rem;
  max-width: 560px;
}
.hero-features {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-bottom: 2rem;
}
.hero-features li {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: rgba(255,255,255,.85);
  font-size: .95rem;
}
.hero-features li svg { flex-shrink: 0; }

/* Hero form card */
.hero-form-wrapper { align-self: center; }
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-lg);
}
.form-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: .3rem;
}
.form-subtitle {
  font-size: .85rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
}

/* ============================================================
   FORM SHARED STYLES
   ============================================================ */
.quote-form .form-group { margin-bottom: 1rem; }
.quote-form label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .35rem;
}
.quote-form input,
.quote-form textarea,
.quote-form select {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: var(--font);
  color: var(--gray-dark);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
}
.quote-form input:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.quote-form input::placeholder,
.quote-form textarea::placeholder { color: #9ca3af; }
.quote-form textarea { resize: vertical; min-height: 90px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-disclaimer {
  text-align: center;
  font-size: .77rem;
  color: var(--gray);
  margin-top: .85rem;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--navy-mid);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  text-align: center;
  gap: .2rem;
}
.stat-item strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
}
.stat-item span {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  font-weight: 400;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 5rem 0; }
.section-light { background: var(--white); }
.section-dark { background: var(--navy); }
.section-gray { background: var(--gray-light); }
.section-blue { background: #1e3a6e; }

.section-header { margin-bottom: 3rem; max-width: 780px; }
.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -.5px;
  margin-bottom: .85rem;
}
.section-header-light h2 { color: var(--white); }
.section-intro {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.7;
}
.section-header-light .section-intro { color: rgba(255,255,255,.7); }
.section-dark .section-header h2 { color: var(--white); }
.section-blue .section-header h2 { color: var(--white); }
.section-blue .section-intro { color: rgba(255,255,255,.7); }

/* ============================================================
   PRESENTATION
   ============================================================ */
.content-block { margin-bottom: 2.5rem; }
.content-block h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .85rem;
  padding-left: 1rem;
  border-left: 3px solid var(--blue);
}
.content-block p {
  color: var(--gray-dark);
  line-height: 1.8;
  margin-bottom: .9rem;
}
.content-block p:last-child { margin-bottom: 0; }

.cta-inline {
  background: var(--blue-pale);
  border: 1px solid var(--blue);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.cta-inline p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  flex: 1;
}
.cta-inline.centered {
  flex-direction: column;
  text-align: center;
}
.cta-inline.centered p { flex: none; }

/* ============================================================
   PRESTATIONS GRID
   ============================================================ */
.prestations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.prestation-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  transition: background .2s, transform .2s;
}
.prestation-card:hover {
  background: rgba(255,255,255,.08);
  transform: translateY(-3px);
}
.prestation-icon { margin-bottom: 1.25rem; }
.prestation-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .75rem;
}
.prestation-card p {
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  line-height: 1.7;
}
.section-cta {
  text-align: center;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.section-cta p {
  color: rgba(255,255,255,.7);
  font-size: .95rem;
  max-width: 540px;
}

/* ============================================================
   AVANTAGES
   ============================================================ */
.avantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}
.avantage-item {
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.avantage-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.avantage-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--blue-pale);
  line-height: 1;
  margin-bottom: .75rem;
  letter-spacing: -2px;
}
.avantage-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .65rem;
}
.avantage-item p {
  font-size: .9rem;
  color: var(--gray);
  line-height: 1.7;
}

/* ============================================================
   SECTEURS
   ============================================================ */
.secteurs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.secteur-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  transition: background .2s, transform .2s;
}
.secteur-card:hover { background: rgba(255,255,255,.11); transform: translateY(-2px); }
.secteur-card h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--blue-light);
  margin-bottom: .65rem;
}
.secteur-card p {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  line-height: 1.65;
}

/* ============================================================
   ZONES D'INTERVENTION
   ============================================================ */
.zones-list { display: flex; flex-direction: column; gap: 0; }
.zone-item {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}
.zone-item:last-child { border-bottom: none; }
.zone-item h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .65rem;
}
.zone-item h3::before {
  content: '';
  display: block;
  width: 20px;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
  flex-shrink: 0;
}
.zone-item p {
  color: var(--gray-dark);
  line-height: 1.8;
  margin-bottom: .85rem;
  max-width: 860px;
}
.zone-item p:last-child { margin-bottom: 0; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 820px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .65rem;
  background: var(--white);
  overflow: hidden;
  transition: box-shadow .2s;
}
.faq-item.open { box-shadow: var(--shadow); border-color: var(--blue); }
.faq-question { border: none; }
.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: .97rem;
  font-weight: 600;
  color: var(--navy);
  font-family: var(--font);
  line-height: 1.4;
  transition: background .15s;
}
.faq-btn:hover { background: var(--gray-light); }
.faq-item.open .faq-btn { color: var(--blue); background: var(--blue-pale); }
.faq-icon {
  flex-shrink: 0;
  color: var(--gray);
  transition: transform .25s;
}
.faq-item.open .faq-icon { transform: rotate(180deg); color: var(--blue); }
.faq-answer {
  padding: 0 1.5rem 1.25rem;
  border-top: 1px solid var(--blue-pale);
}
.faq-answer p {
  font-size: .92rem;
  color: var(--gray-dark);
  line-height: 1.75;
  margin-top: 1rem;
}

/* ============================================================
   DEVIS / CONTACT
   ============================================================ */
.section-cta-full {
  background: var(--navy);
  padding: 5rem 0;
}
.devis-inner {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 4rem;
  align-items: start;
}
.devis-text h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.devis-text > p {
  color: rgba(255,255,255,.75);
  line-height: 1.75;
  margin-bottom: 1.75rem;
  font-size: 1rem;
}
.devis-features {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.devis-features li {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: rgba(255,255,255,.8);
  font-size: .92rem;
}
.devis-features li::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}
.devis-form-wrapper .form-card { background: var(--white); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding-top: 4rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .footer-logo img { filter: brightness(0) invert(1); margin-bottom: 1.25rem; }
.footer-brand p {
  font-size: .88rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  color: rgba(255,255,255,.55);
}
.footer-contact a {
  display: block;
  color: rgba(255,255,255,.75);
  font-size: .92rem;
  margin-bottom: .3rem;
  transition: color .15s;
}
.footer-contact a:hover { color: var(--blue-light); text-decoration: none; }

.footer-col h3 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 1.1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .4rem; }
.footer-col a {
  font-size: .88rem;
  color: rgba(255,255,255,.55);
  transition: color .15s;
}
.footer-col a:hover { color: var(--white); text-decoration: none; }

.footer-cta-col p { font-size: .88rem; margin-bottom: 1rem; color: rgba(255,255,255,.55); }
.footer-service {
  font-size: .8rem !important;
  color: rgba(255,255,255,.35) !important;
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}

.footer-bottom {
  background: rgba(0,0,0,.2);
  padding: 1.25rem 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-bottom p {
  font-size: .82rem;
  color: rgba(255,255,255,.35);
}
.footer-bottom nav {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom a {
  font-size: .82rem;
  color: rgba(255,255,255,.35);
  transition: color .15s;
}
.footer-bottom a:hover { color: rgba(255,255,255,.7); text-decoration: none; }

/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr 380px; gap: 2rem; }
  .prestations-grid { grid-template-columns: repeat(2, 1fr); }
  .avantages-grid { grid-template-columns: repeat(2, 1fr); }
  .secteurs-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .devis-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .devis-form-wrapper { max-width: 600px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RESPONSIVE — Mobile
   ============================================================ */
@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }

  /* Header / Nav */
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: fixed;
    inset: 68px 0 0 0;
    background: var(--white);
    padding: 1.5rem 1.25rem;
    border-top: 1px solid var(--border);
    z-index: 99;
    overflow-y: auto;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: .25rem; }
  .main-nav a { padding: .9rem 1rem; font-size: 1rem; }
  .main-nav .nav-cta { text-align: center; margin-top: .5rem; }

  /* Hero */
  .hero { padding: 3rem 0 2.5rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero h1 { font-size: 2rem; letter-spacing: -.5px; }
  .hero-subtitle { font-size: 1rem; }
  .hero-form-wrapper { order: -1; }

  /* Stats */
  .stats-inner { grid-template-columns: repeat(2, 1fr); }

  /* Sections */
  .section-header h2 { font-size: 1.5rem; }
  .prestations-grid { grid-template-columns: 1fr; }
  .avantages-grid { grid-template-columns: 1fr; }
  .secteurs-grid { grid-template-columns: 1fr; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }

  /* CTA inline */
  .cta-inline { flex-direction: column; text-align: center; }

  /* Zones */
  .zone-item { padding: 2rem 0; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom-inner { flex-direction: column; text-align: center; gap: .5rem; }
  .footer-bottom nav { flex-direction: column; gap: .5rem; align-items: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat-item strong { font-size: 1.25rem; }
  .form-card { padding: 1.5rem 1.25rem; }
  .btn-lg { padding: .9rem 1.5rem; font-size: 1rem; }
}

/* ============================================================
   FORM STATES — success / error
   ============================================================ */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  gap: 1rem;
}
.form-success-icon { line-height: 0; }
.form-success h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
}
.form-success p {
  font-size: .95rem;
  color: var(--gray);
  line-height: 1.65;
  max-width: 320px;
}
.form-error {
  margin-top: .85rem;
  padding: .75rem 1rem;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: var(--radius);
  color: #dc2626;
  font-size: .88rem;
  text-align: center;
}

/* ============================================================
   ACCESSIBILITY & PRINT
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 3px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
@media print {
  .site-header, .hero-form-wrapper, #devis, .footer-cta-col, .nav-toggle { display: none; }
  .hero { background: var(--navy); -webkit-print-color-adjust: exact; }
}
