/* ---------- Variables & base ---------- */

:root {
  --primary: #0077a8;   /* Bleu proche du logo FORAGE CN */
  --primary-dark: #005678;
  --secondary: #e44d35; /* Rouge-orangé du logo */
  --dark: #022033;
  --light: #f5f7fb;
  --text: #1f2933;
  --muted: #6b7280;
  --border: #dde3ea;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.12);
  --radius-lg: 20px;
  --radius-full: 999px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.6;
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}

a:focus,
button:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 80px 0;
}

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

.section-alt {
  background: #eef3f9;
}

/* sections ciblées pour sticky header */
section[id] {
  scroll-margin-top: 90px;
}

h1, h2, h3, h4 {
  color: var(--dark);
  margin-top: 0;
}

h1 {
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  line-height: 1.15;
}

/* Titre du hero plus clair et lisible */
.hero h1 {
  color: #ffffff;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.95);
}

h2 {
  font-size: clamp(1.7rem, 2.4vw, 2rem);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.35rem;
}

/* soulignement graphique sous les titres */
.section h2::after,
#process > .container h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

/* petites tailles utilitaires */

.small {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Header & nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.16);
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.6rem 0;
}

.logo img {
  height: 64px;
  width: auto;
  border-radius: 12px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.95rem;
}

.main-nav a {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
}

.main-nav a:hover {
  color: var(--primary);
  background: rgba(148, 163, 184, 0.12);
}

/* Sélecteur de langue */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.lang-switch span {
  opacity: 0.6;
}

.lang-switch a {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
  color: var(--muted);
}

.lang-switch a:hover {
  background: rgba(148, 163, 184, 0.16);
  color: var(--primary);
}

.lang-switch a.active {
  background: var(--primary);
  color: #ffffff;
}

.header-contact .btn-small {
  font-size: 0.9rem;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(15, 118, 178, 0.35);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-small {
  padding: 0.5rem 1.1rem;
}

.btn-fullwidth {
  width: 100%;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 120px 0 90px;
  color: #ffffff;
  overflow: hidden;
  background-color: #020b16;
}

/* fond photo puits impressionnant */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("https://i.ibb.co/CsmX0htW/IMG-1211.jpg");
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
  opacity: 0.35;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    135deg,
    rgba(2, 12, 24, 0.92),
    rgba(0, 79, 120, 0.9)
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: center;
  z-index: 2;
}

.hero-text {
  max-width: 640px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.hero-subtitle {
  font-size: 1rem;
  margin: 0.9rem 0 1.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.3rem;
}

.hero-highlight {
  list-style: none;
  padding-left: 0;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.hero-highlight li + li {
  margin-top: 0.15rem;
}

.hero-highlight li::before {
  content: "•";
  margin-right: 0.4rem;
}

/* Hero side card */

.hero-side {
  display: flex;
  justify-content: flex-end;
}

/* ---------- Cartes & effets hover ---------- */

.card,
.info-card,
.pricing-box,
.gallery-item,
.contact-form,
.about-highlight,
.step,
.process-photo img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card,
.info-card,
.pricing-box,
.gallery-item,
.contact-form,
.about-highlight,
.step {
  background: #ffffff;
  border: 1px solid var(--border);
}

.card:hover,
.info-card:hover,
.pricing-box:hover,
.gallery-item:hover,
.contact-form:hover,
.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.18);
}

.info-card {
  padding: 1.4rem 1.5rem;
  background: rgba(9, 24, 40, 0.97);
  border: 1px solid rgba(148, 163, 184, 0.6);
  max-width: 340px;
}

.info-card h2 {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
}

.info-card ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 0.9rem;
  color: rgba(241, 245, 249, 0.9);
}

.info-card li + li {
  margin-top: 0.5rem;
}

.info-card a {
  color: #e0f2fe;
}

/* ---------- Layouts ---------- */

.two-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.about-highlight {
  padding: 1.6rem 1.7rem;
}

.about-highlight ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.about-highlight li + li {
  margin-top: 0.3rem;
}

/* Cards grid */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.7rem;
  margin-top: 1.5rem;
}

.card {
  padding: 1.6rem 1.7rem;
}

/* Requirements */

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.7rem;
  margin-top: 1.3rem;
}

.requirements-grid ul {
  padding-left: 1.3rem;
}

.requirements-visual {
  margin-top: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.requirements-visual img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.note {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Steps + photo */

.steps-with-visual {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  gap: 2.2rem;
  align-items: flex-start;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem;
  margin-top: 1.2rem;
}

/* Cartes des étapes avec numéro à gauche */

.step {
  display: grid;
  grid-template-columns: 32px 1fr;
  column-gap: 0.8rem;
  align-items: flex-start;
  padding: 1.1rem 1.4rem;
}

.step-number {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.25);
}

/* le titre et le texte à droite du rond */
.step h3,
.step p {
  grid-column: 2 / -1;
}

.process-photo {
  align-self: stretch;
}

.process-photo img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
}

/* Pricing */

.pricing-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 2.2rem;
  align-items: flex-start;
  margin-top: 1.2rem;
}

.pricing-box {
  padding: 1.3rem 1.5rem;
  margin: 1rem 0;
}

.formula {
  font-size: 1rem;
}

.pricing-examples {
  margin: 0.8rem 0 0;
  padding-left: 1.3rem;
  font-size: 0.95rem;
}

.pricing-examples li + li {
  margin-top: 0.25rem;
}

.pricing-cta {
  margin-top: 1rem;
}

/* Gallery */

.gallery-grid {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
}

.gallery-item img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  filter: saturate(1.05);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
  filter: saturate(1.15);
}

.gallery-item figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.5fr);
  gap: 2.2rem;
  align-items: flex-start;
}

.contact-info {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

.contact-info li + li {
  margin-top: 0.25rem;
}

/* Mini process client */

.mini-process {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1.2rem 1.3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  font-size: 0.95rem;
}

.mini-process h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.mini-process ol {
  margin: 0;
  padding-left: 1.2rem;
}

.mini-process li + li {
  margin-top: 0.35rem;
}

/* Formulaire */

.contact-form {
  padding: 1.5rem 1.5rem 1.4rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.9rem;
}

label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
}

input,
textarea {
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.4);
}

/* CTA strip */

.cta-strip {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 32px 0;
}

.cta-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-strip p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: #020b12;
  color: rgba(226, 232, 240, 0.9);
  padding: 1rem 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}

/* Bouton retour haut */

.back-to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--secondary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 15;
}

.back-to-top:hover {
  background: #c63520;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 0.4rem;
  }

  .header-contact {
    margin-left: auto;
  }

  .lang-switch {
    order: 2;
    margin-left: auto;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    row-gap: 0.3rem;
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-side {
    justify-content: flex-start;
  }

  .two-columns,
  .pricing-wrapper,
  .contact-grid,
  .steps-with-visual {
    grid-template-columns: minmax(0, 1fr);
  }

  .process-photo {
    max-width: 520px;
    margin: 1rem auto 0;
  }

  .section {
    padding: 70px 0;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 0.5rem 0;
  }

  .logo img {
    height: 52px;
  }

  .hero {
    padding-top: 100px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .gallery-item img {
    height: 190px;
  }

  .cta-strip-inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-strip .btn {
    width: 100%;
  }

  .steps {
    gap: 1rem;
  }
}
