/* ============================================================
   Homarus Inc. — landing page (homarus-02)
   Design: Figma homarus.org (node 2059:40, canvas 1920×5597)

   Desktop (>1212px): layout fixo em px idêntico ao Figma,
   escalado proporcionalmente via zoom (body) = viewport / 1920.
   Mobile/tablet (<=1212px): layout fluido próprio (sem vw).
   ============================================================ */

:root {
  --navy: #00528a;
  --blue: #0082c9;
  --light: #d7edf8;
  --yellow: #fdb621;
  --white: #ffffff;

  --font-serif: "Roboto Serif", Georgia, serif;

  --text-body: 22px;
  --text-small: 18px;
  --text-h2: 80px;
  --text-label: 32px;
}

@media (max-width: 1212px) {
  :root {
    --text-body: 18px;
    --text-small: 17px;
    --text-h2: 44px;
    --text-label: 24px;
  }
}

@media (max-width: 760px) {
  :root {
    --text-body: 17px;
    --text-h2: 34px;
    --text-label: 20px;
  }
}

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

html, body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

/* Acima de 1212px o js/main.js aplica body.style.zoom = viewport/1920 */

body {
  background: var(--white);
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
}

img { display: block; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; border: 0; cursor: pointer; background: none; color: inherit; }
address { font-style: normal; }

[aria-hidden="true"] { pointer-events: none; }
.icon { flex-shrink: 0; }

/* ============ Banner construction ============ */

.construction-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  padding: 9px 20px;
  background: var(--light);
  color: var(--navy);
  font-size: 32px;
  font-weight: 600;
  text-align: center;
  position: relative;
  z-index: 20;
  border-bottom: 2px solid #00528a;
}

/* ============ Header ============ */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 165px;
  padding: 14px 50px;
  background: var(--blue);
  position: relative;
  z-index: 20;
}

.site-logo { height: 137px; width: auto; }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}

.lang-toggle a { padding: 5px 0; }
.lang-toggle a:hover { text-decoration: underline; }

.toggle-pill {
  position: relative;
  width: 28px;
  height: 14px;
  padding: 0;
  border-radius: 7px;
  background: rgba(0, 82, 138, 0.5); /* navy 50% sur le bleu du header */
  flex-shrink: 0;
  cursor: pointer;
}

.toggle-dot {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--yellow);
  transform: translateX(14px);
  transition: transform 0.22s ease;
}

html[lang="en"] .toggle-dot { transform: none; }
html.lang-to-en .toggle-dot { transform: none; }
html.lang-to-fr .toggle-dot { transform: translateX(14px); }

/* ============ Zona escura (hero → foto full-width) ============ */

.dark-zone { background: var(--navy); }

/* Hero: pill em y305.8 (60.8 abaixo do header), título 80/100 branco */
.hero {
  padding-top: 61px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.hero-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 400px;
  height: 80px;
  border-radius: 100px;
  background: var(--light);
  color: var(--navy);
  font-size: 40px;
  line-height: 0.9;
}

.hero-title {
  width: 936px;
  max-width: 100%;
  font-size: var(--text-h2);
  line-height: 1.25;
  color: var(--white);
  text-align: center;
}

/* Foto casiers (image 25): 1701×932 r40 em y683.8 */
.intro-photo {
  width: 1701px;
  height: 932px;
  margin: 58px auto 0;
  border-radius: 40px;
  object-fit: cover;
  object-position: 50% 38%;
}

/* ============ S'engager ============ */

.engager {
  width: 1574px;
  margin: 108px auto 0;
  display: flex;
  align-items: flex-start;
  gap: 119px;
  color: var(--white);
}

.engager h2 {
  width: 582px;
  flex-shrink: 0;
  font-size: var(--text-h2);
  line-height: 1.25;
}

.engager-text {
  flex: 1;
  max-width: 873px;
  font-size: var(--text-body);
  line-height: 1.64;
}

.engager-text p + p { margin-top: 1.64em; }

/* ============ Marquage des homards ============ */

.marquage {
  margin-top: 108px;
  position: relative;
  z-index: 1;
}

.marquage-card {
  width: 1701px;
  margin-inline: auto;
  background: var(--light);
  border-radius: 40px;
  padding: 100px 50px 100px 100px;
  position: relative;
  color: var(--navy);
}

.marquage-heading {
  display: flex;
  align-items: center;
  gap: 168px;
  width: 1512px;
}

.marquage-heading h2 {
  width: 511px;
  flex-shrink: 0;
  font-size: var(--text-h2);
  line-height: 1;
}

.marquage-sub {
  flex: 1;
  font-size: 40px;
  line-height: 1.15;
}

.marquage-columns {
  margin-top: 100px;
  display: flex;
  gap: 69px;
}

.marquage-col { width: 457px; }

.marquage-lead {
  font-size: var(--text-small);
  line-height: 1.67;
}

.marquage-lead + .marquage-lead { margin-top: 30px; }

.checklist { margin-top: 15px; width: 401px; max-width: 100%; }

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 5px 0;
  font-size: var(--text-small);
  line-height: 1.67;
}

.checklist .check {
  font-size: 20px;
  margin-top: 5px;
  color: var(--blue);
}

.checklist em { font-style: italic; }

/* Card azul de signalement (457×413 em x1267.5 y2613.3) */
.report-card {
  position: absolute;
  top: 349px;
  right: 89px;
  width: 457px;
  background: var(--blue);
  border-radius: 40px;
  padding: 40px;
  color: var(--white);
  font-size: var(--text-small);
  line-height: 1.67;
}

.report-card p + p { margin-top: 30px; }

.report-links {
  margin-top: 23px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.report-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 10px 20px;
  background: var(--white);
  border-radius: 100px;
  color: var(--navy);
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
}

.report-pill .icon { font-size: 22px; }
.report-pill:hover { box-shadow: 0 4px 14px rgba(0, 40, 70, 0.3); }

/* ============ Foto full-width (image 2) ============ */
/* Figma: 1920×1434 em y2706, coberta pelo bloco branco a partir de y3578 */
.photo-band {
  position: relative;
  z-index: 0;
  margin-top: -443px;
  height: 872px;
  overflow: hidden;
  border-radius: 40px 40px 0 0;
}

.photo-band img {
  width: 100%;
  height: 1434px;
  object-fit: cover;
  object-position: 50% 0;
}

/* ============ Zona branca ============ */

.white-zone {
  background: var(--white);
  padding-bottom: 288px;
}

.projets-intro {
  width: 1540px;
  margin-inline: auto;
  padding-top: 235px;
  display: flex;
  align-items: flex-start;
  gap: 104px;
}

.projets-intro h2 {
  width: 526px;
  flex-shrink: 0;
  font-size: var(--text-h2);
  line-height: 1;
}

.projets-text {
  flex: 1;
  max-width: 869px;
  font-size: var(--text-body);
  line-height: 1.64;
}

.projets-text p + p { margin-top: 1.64em; }

/* ============ Acordeão de projetos ============ */

.projets-list {
  margin: 177px 0 0 86px;
  display: flex;
  align-items: flex-start;
  gap: 56px;
}

.accordion { width: 728px; flex-shrink: 0; }

.acc-item { padding: 10px 40px; }

.acc-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 56px;
  padding: 0 20px;
  background: var(--light);
  border-radius: 10px;
  text-align: left;
}

.acc-label {
  padding: 10px;
  font-size: var(--text-label);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
}

.projets-photo {
  width: 926px;
  height: 617px;
  border-radius: 40px;
  object-fit: cover;
}

/* ============ Footer ============ */

.site-footer {
  background: var(--navy);
  border-radius: 100px 100px 0 0;
  min-height: 414px;
  color: var(--white);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 140px 86px 60px 146px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 60px;
}

.footer-logo { width: 67px; height: auto; }

.footer-blocks {
  display: flex;
  gap: 60px;
}

.footer-block {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 18px;
  line-height: 1.67;
}

.footer-line .icon {
  font-size: 20px;
  width: 23px;
  margin-top: 4px;
}

.footer-line a:hover { text-decoration: underline; }

.footer-socials {
  display: flex;
  gap: 19px;
}

.social-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.social-btn:hover { background: #006ba6; }
.social-btn .icon { font-size: 20px; }

.footer-links {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-link-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60px;
  padding: 10px 20px;
  background: var(--white);
  border-radius: 100px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 500;
  white-space: nowrap;
}

.footer-link-pill .icon { font-size: 22px; }
.footer-link-pill:hover { box-shadow: 0 4px 14px rgba(0, 40, 70, 0.3); }

/* ============================================================
   Mobile / tablet (<= 1212px)
   ============================================================ */

@media (max-width: 1212px) {
  .construction-banner { font-size: 20px; min-height: 60px; }

  .site-header { min-height: 0; padding: 16px 28px; }
  .site-logo { height: 90px; }

  .hero { padding-top: 40px; gap: 24px; }
  .hero-pill { width: 260px; height: 56px; font-size: 26px; }
  .hero-title { width: auto; max-width: 640px; padding-inline: 24px; }

  .intro-photo {
    width: calc(100% - 40px);
    height: 380px;
    margin: 40px auto 0;
    border-radius: 24px;
  }

  .engager {
    width: auto;
    margin: 64px 0 0;
    padding-inline: 28px;
    flex-direction: column;
    gap: 24px;
  }
  .engager h2 { width: auto; max-width: 480px; }

  .marquage { margin-top: 64px; }

  .marquage-card {
    width: calc(100% - 32px);
    border-radius: 24px;
    padding: 40px 28px;
  }

  .marquage-heading {
    width: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .marquage-heading h2 { width: auto; }
  .marquage-sub { font-size: 24px; line-height: 1.3; }

  .marquage-columns {
    margin-top: 44px;
    flex-direction: column;
    gap: 36px;
  }
  .marquage-col { width: auto; }
  .checklist { width: auto; }

  .report-card {
    position: static;
    width: auto;
    margin-top: 44px;
    border-radius: 24px;
    padding: 28px;
  }
  .report-pill { white-space: normal; }

  .photo-band {
    margin-top: 32px;
    height: 380px;
    border-radius: 24px 24px 0 0;
  }
  .photo-band img { height: 100%; object-position: 50% 30%; }

  .white-zone { padding-bottom: 90px; }

  .projets-intro {
    width: auto;
    padding: 64px 28px 0;
    flex-direction: column;
    gap: 24px;
  }
  .projets-intro h2 { width: auto; }

  .projets-list {
    margin: 48px 20px 0;
    flex-direction: column;
    gap: 32px;
  }

  .accordion { width: 100%; }
  .acc-item { padding: 8px 0; }

  .projets-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 926 / 617;
    border-radius: 24px;
  }

  .site-footer { border-radius: 40px 40px 0 0; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding: 56px 28px 48px;
  }

  .footer-left {
    flex-wrap: wrap;
    gap: 32px;
  }

  .footer-blocks { flex-direction: column; gap: 16px; }
  .footer-links { flex-direction: column; align-items: flex-start; }
  .footer-link-pill { white-space: normal; text-align: left; }
}

@media (max-width: 760px) {
  .site-header { flex-direction: column; gap: 12px; }
  .site-logo { height: 74px; }

  .hero-title { font-size: var(--text-h2); }

  .intro-photo { height: 240px; }

  .acc-label { padding: 8px 6px; }

  .social-btn { width: 60px; height: 60px; }
}

/* ============ Motion preferences ============ */

@media (prefers-reduced-motion: reduce) {
  .toggle-dot { transition: none; }
}
