/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,700;0,800;0,900;1,900&family=Inter:wght@400;500;600;700&display=swap');

/* Design tokens */
:root {
  --navy:        #163A5F;
  --orange:      #FF6B00;
  --cream:       #FAF6EC;
  --navy-mid:    #2e4a66;
  --navy-light:  #3d5470;
  --navy-dark:   #0d2438;
  --white:       #ffffff;

  --font-head:   'Archivo', system-ui, sans-serif;
  --font-body:   'Inter', system-ui, sans-serif;

  --radius-card: 12px;
  --radius-icon: 8px;
  --max-w:       780px;
}

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

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--navy-mid);
  line-height: 1.6;
}

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

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

/* Utility: centered content container */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 20px;
}

/* Bilingual secondary text */
.en {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--navy-light);
  font-style: normal;
}

/* ── Header / Hero ─────────────────────────────── */

header {
  background: var(--navy);
  color: var(--white);
  padding: 32px 0 48px;
}

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--font-head);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(3rem, 10vw, 5rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--white);
}

.wordmark-dot {
  color: var(--orange);
}

.tagline-block {
  text-align: right;
  padding-top: 8px;
}

.tagline-fr {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.03em;
}

.tagline-en {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.03em;
  margin-top: 2px;
}

/* Hero */

.hero {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
}

.hero-headline {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.hero-fr {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 3.25rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--white);
}

.hero-en {
  font-size: clamp(1.25rem, 3.5vw, 2rem);
  line-height: 1.2;
  color: rgba(255,255,255,0.65);
}

.hero-sub {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-sub-fr {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--orange);
}

.hero-sub-en {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.5);
}

/* ── Services ───────────────────────────────────── */

#services {
  padding: 56px 0;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 36px;
  text-align: center;
}

.section-fr {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.1;
}

.section-en {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--navy-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

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

.service-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 20px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(22,58,95,0.08);
}

.service-icon {
  background: var(--navy);
  border-radius: var(--radius-icon);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  flex-shrink: 0;
}

.service-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.service-fr {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  line-height: 1.25;
}

.service-en {
  font-size: 0.78rem;
  line-height: 1.25;
}

/* ── Quand nous appeler ─────────────────────────── */

#quand {
  background: var(--navy);
  padding: 56px 0;
  color: var(--white);
}

#quand .section-fr {
  color: var(--white);
}

#quand .section-en {
  color: rgba(255,255,255,0.55);
}

.scenarios-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.scenario {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 12px 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.scenario:last-child {
  border-bottom: none;
}

.scenario-problem-fr {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  line-height: 1.3;
}

.scenario-problem-en {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
  line-height: 1.3;
}

.scenario-arrow {
  color: var(--orange);
  font-size: 1.25rem;
  padding-top: 2px;
  line-height: 1;
  font-weight: 700;
}

.scenario-sol-fr {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--orange);
  line-height: 1.35;
}

.scenario-sol-en {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
  line-height: 1.3;
}

/* On very small screens stack vertically */
@media (max-width: 400px) {
  .scenario {
    grid-template-columns: 1fr;
  }
  .scenario-arrow {
    display: none;
  }
  .scenario-solution {
    padding-left: 16px;
    border-left: 3px solid var(--orange);
  }
}

/* ── Service area ───────────────────────────────── */

#zone {
  padding: 40px 0;
  background: var(--cream);
}

.zone-inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.zone-icon {
  background: var(--navy);
  color: var(--orange);
  border-radius: var(--radius-icon);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.zone-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.zone-fr {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}

.zone-en {
  font-size: 0.85rem;
  line-height: 1.4;
}

/* ── Offer band ─────────────────────────────────── */

#offre {
  background: var(--orange);
  padding: 36px 0;
}

.offre-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.offre-label-fr {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

.offre-label-en {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.offre-amount {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(3.5rem, 12vw, 6rem);
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 1;
  margin: 4px 0;
}

.offre-desc-fr {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--white);
}

.offre-desc-en {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

/* ── Contact ────────────────────────────────────── */

#contact {
  background: var(--navy-dark);
  padding: 56px 0;
  color: var(--white);
}

.contact-inner {
  text-align: center;
}

.contact-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 36px;
}

.contact-fr {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  color: var(--white);
}

.contact-en {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: rgba(255,255,255,0.45);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  margin-bottom: 32px;
}

@media (min-width: 600px) {
  .contact-links {
    flex-direction: row;
    justify-content: center;
    gap: 48px;
  }
}

.contact-phone,
.contact-email {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 28px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-card);
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
}

.contact-phone:hover,
.contact-phone:focus-visible,
.contact-email:hover,
.contact-email:focus-visible {
  border-color: var(--orange);
  background: rgba(255,107,0,0.08);
}

.contact-phone-label-fr,
.contact-email-label-fr {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--orange);
}

.contact-phone-number {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.1;
}

.contact-email-address {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--white);
  word-break: break-all;
}

.contact-phone-label-en,
.contact-email-label-en {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
}

.contact-emergency {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-emerg-fr {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  font-style: italic;
}

.contact-emerg-en {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}

/* ── Footer ─────────────────────────────────────── */

footer {
  background: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
}

.footer-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.02em;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.03em;
}

.footer-bilingual {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Responsive fixes */

body {
  overflow-x: hidden;
}

.scenario-problem-fr,
.scenario-sol-fr,
.scenario-problem-en,
.scenario-sol-en {
  word-break: break-word;
}

/* Accessibility */

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* ── Language toggle ────────────────────────────── */

.lang-toggle {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  padding: 5px 10px;
  cursor: pointer;
  display: flex;
  gap: 5px;
  align-items: center;
  align-self: center;
  transition: border-color 0.15s;
  flex-shrink: 0;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  border-color: var(--orange);
  outline: none;
}

.lt-sep {
  color: rgba(255,255,255,0.2);
}

/* French active (default) */
.lt-fr {
  color: var(--white);
}
.lt-en {
  color: rgba(255,255,255,0.4);
}

/* English active */
html.lang-en .lt-fr {
  color: rgba(255,255,255,0.4);
}
html.lang-en .lt-en {
  color: var(--white);
}

/* ── Default (French): hide all EN-only content ─── */

.hero-en,
.tagline-en,
.hero-sub-en,
.section-en,
.service-en,
.scenario-problem-en,
.scenario-sol-en,
.zone-en,
.offre-label-en,
.offre-desc-en,
.contact-en,
.contact-phone-label-en,
.contact-email-label-en,
.contact-emerg-en {
  display: none;
}

/* ── English mode: hide FR, show EN at full weight ── */

html.lang-en .hero-fr,
html.lang-en .tagline-fr,
html.lang-en .hero-sub-fr,
html.lang-en .section-fr,
html.lang-en .service-fr,
html.lang-en .scenario-problem-fr,
html.lang-en .scenario-sol-fr,
html.lang-en .zone-fr,
html.lang-en .offre-label-fr,
html.lang-en .offre-desc-fr,
html.lang-en .contact-fr,
html.lang-en .contact-phone-label-fr,
html.lang-en .contact-email-label-fr,
html.lang-en .contact-emerg-fr {
  display: none;
}

/* Hero */
html.lang-en .hero-en {
  display: block;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 3.25rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--white);
}

html.lang-en .tagline-en {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.03em;
}

html.lang-en .hero-sub-en {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--orange);
}

/* Section headings */
html.lang-en .section-en {
  display: block;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.1;
}

html.lang-en #quand .section-en {
  color: var(--white);
}

/* Services */
html.lang-en .service-en {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  line-height: 1.25;
}

/* Scenarios */
html.lang-en .scenario-problem-en {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  line-height: 1.3;
}

html.lang-en .scenario-sol-en {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--orange);
  line-height: 1.35;
}

/* Zone */
html.lang-en .zone-en {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}

/* Offer */
html.lang-en .offre-label-en {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

html.lang-en .offre-desc-en {
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--white);
}

/* Contact */
html.lang-en .contact-en {
  display: block;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  color: var(--white);
}

html.lang-en .contact-phone-label-en,
html.lang-en .contact-email-label-en {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--orange);
}

html.lang-en .contact-emerg-en {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  font-style: italic;
}