@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Open+Sans:wght@300;400;600;700;800&display=swap');

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

html, body {
  min-height: 100%;
  font-family: 'Open Sans', sans-serif;
  background: linear-gradient(to bottom, #0085ff 0%, #ffffff 60%);
  background-attachment: fixed;
}

/* ── LOGO ANIMATION (rotation on page load) ─────────────── */
@keyframes logoRotateIn {
  0%   { transform: rotate(180deg); opacity: 0; }
  100% { transform: rotate(0deg);   opacity: 1; }
}
.logo-anim { animation: logoRotateIn 1s ease both; }

/* ── SCROLL ANIMATIONS ───────────────────────────────────── */
[data-anim] {
  opacity: 0;
  transition: opacity 1s ease, transform 1s ease;
  will-change: opacity, transform;
}
[data-anim="fade"]         { transform: none; }
[data-anim="slide-right"]  { transform: translateX(300px); }
[data-anim="slide-left"]   { transform: translateX(-200px); }
[data-anim="slide-left-far"]{ transform: translateX(-300px); }

[data-anim].anim-in {
  opacity: 1 !important;
  transform: translateX(0) translateY(0) !important;
}

/* ── HEADER ─────────────────────────────────────────────── */
header {
  display: flex;
  align-items: flex-start;
  padding: 12px 36px 12px 24px;
  gap: 20px;
  min-height: 100px;
}
.logo-link { flex-shrink: 0; }
.logo { width: 110px; height: 110px; object-fit: contain; display: block; }

nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 10px;
}
nav a {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
nav a:hover { color: #fff; }
nav a.active { color: #fff; }

/* ── COMMON ──────────────────────────────────────────────── */
.section { max-width: 1200px; margin: 0 auto; padding: 40px 48px; }
h2.page-title {
  font-family: 'Roboto', sans-serif;
  font-size: 32px; font-weight: 400; color: #111;
  text-align: center; margin-bottom: 36px;
}

/* ── ACCUEIL ─────────────────────────────────────────────── */
.accueil-row { display: flex; align-items: center; gap: 60px; }
.accueil-text p {
  font-family: 'Open Sans', sans-serif;
  font-size: 24px; font-weight: 700; color: #111;
  line-height: 1.5; margin-bottom: 20px;
}
.accueil-img { flex-shrink: 0; width: 500px; max-width: 50%; }
.accueil-img img { width: 100%; border: 1px solid #ccc; display: block; }

/* ── ENTREPRISE ──────────────────────────────────────────── */
.entreprise-layout { display: flex; gap: 60px; align-items: flex-start; }
.entreprise-text { flex: 1; }
.entreprise-text p {
  font-family: 'Open Sans', sans-serif;
  font-size: 24px; font-weight: 700; color: #888;
  line-height: 1.6; margin-bottom: 22px;
  opacity: 0; animation: fadeInUp 0.7s ease forwards;
}
.entreprise-text p:nth-child(1) { animation-delay: 0.1s; }
.entreprise-text p:nth-child(2) { animation-delay: 0.35s; }
.entreprise-text p:nth-child(3) { animation-delay: 0.6s; }
.entreprise-text p:nth-child(4) { animation-delay: 0.85s; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.entreprise-video { flex-shrink: 0; width: 500px; max-width: 48%; }
.entreprise-video video { width: 100%; display: block; border: 1px solid #ccc; }

/* ── APPLICATIONS ────────────────────────────────────────── */
.applications-row { display: flex; align-items: center; gap: 60px; }
.applications-text { flex: 0 0 auto; max-width: 320px; }
.applications-text h2 {
  font-family: 'Roboto', sans-serif;
  font-size: 36px; font-weight: 400; color: #111;
  line-height: 1.4; text-align: center;
}
.applications-schema {
  flex: 1; min-height: 420px;
  background-image: url('images/nicepage-images/f44013d0f8b0da517a57896169e8e4b7.jpg');
  background-size: contain; background-repeat: no-repeat;
  background-position: center; border-radius: 4px;
  border: 1px solid #ddd; background-color: #fff;
}

/* ── FABRICATION ─────────────────────────────────────────── */
.fab-section { display: flex; align-items: center; gap: 48px; margin-bottom: 60px; }
.fab-section.reverse { flex-direction: row-reverse; }
.fab-section .fab-text { flex: 1; }
.fab-section .fab-text p {
  font-family: 'Open Sans', sans-serif;
  font-size: 24px; font-weight: 700; color: #111;
  line-height: 1.6; margin-bottom: 16px;
}
.fab-section .fab-text p.light { font-weight: 400; }
.fab-section .fab-imgs { flex-shrink: 0; width: 500px; max-width: 50%; }
.fab-section .fab-imgs img { width: 100%; display: block; border: 1px solid #ddd; margin-bottom: 8px; }
.fab-section .fab-imgs .img-row { display: flex; gap: 8px; margin-bottom: 8px; }
.fab-section .fab-imgs .img-row img { width: 50%; margin-bottom: 0; }
.fab-video-wrap { text-align: center; margin-bottom: 16px; }
.fab-video { width: 100%; max-width: 700px; display: block; margin: 0 auto; border: 1px solid #ddd; }
.fab-class1 {
  font-family: 'Open Sans', sans-serif;
  font-size: 24px; font-weight: 700; color: #111;
  text-align: center; margin-top: 8px;
}

/* ── FICHES ──────────────────────────────────────────────── */
.fiches-note { font-family: 'Open Sans', sans-serif; font-size: 16px; color: #333; text-align: center; margin-bottom: 6px; }
.fiches-subtitle { font-family: 'Roboto', sans-serif; font-size: 32px; font-weight: 400; color: #111; text-align: center; margin-bottom: 40px; }
.fiches-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; }
.fiche-item { text-align: center; width: 280px; }
.fiche-item a { display: block; }
.fiche-item img {
  width: 280px; height: 280px; object-fit: cover;
  display: block; border: 1px solid #ccc;
  transition: opacity 0.2s, box-shadow 0.2s;
}
.fiche-item a:hover img { opacity: 0.85; box-shadow: 0 4px 16px rgba(0,133,255,0.3); }
.fiche-item p { font-family: 'Open Sans', sans-serif; font-size: 18px; font-weight: 700; color: #111; margin-top: 10px; line-height: 1.4; }

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-layout { display: flex; gap: 48px; align-items: flex-start; max-width: 1000px; margin: 0 auto; }
.contact-card { flex-shrink: 0; background: rgba(255,255,255,0.55); border-radius: 10px; padding: 48px 56px; }
.contact-card h2 { font-family: 'Roboto', sans-serif; font-size: 32px; font-weight: 400; color: #111; margin-bottom: 4px; }
.contact-card .role { font-family: 'Open Sans', sans-serif; font-size: 16px; color: #555; font-style: italic; margin-bottom: 28px; }
.contact-line { display: flex; align-items: flex-start; gap: 12px; font-family: 'Open Sans', sans-serif; font-size: 16px; color: #111; margin-bottom: 16px; line-height: 1.5; }
.contact-line svg { flex-shrink: 0; margin-top: 2px; }
.contact-line a { color: #0055cc; text-decoration: none; }
.contact-line a:hover { text-decoration: underline; }
.map-wrapper { flex: 1; min-width: 0; }
.map-wrapper iframe { width: 100%; height: 380px; border: 0; border-radius: 8px; display: block; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  header { flex-direction: column; padding: 16px; }
  nav { gap: 16px; }
  .accueil-row, .entreprise-layout, .fab-section, .applications-row, .contact-layout { flex-direction: column; }
  .accueil-img, .entreprise-video, .fab-section .fab-imgs { width: 100%; max-width: 100%; }
  .applications-schema { width: 100%; min-height: 300px; }
  .applications-text { max-width: 100%; }
  .section { padding: 24px 20px; }
  .contact-card { padding: 32px 24px; width: 100%; }
  .map-wrapper iframe { height: 260px; }
  /* disable slide animations on mobile to avoid overflow */
  [data-anim="slide-right"], [data-anim="slide-left"], [data-anim="slide-left-far"] { transform: none; }
}
