/* ============================================================
   ICEBOXER – Site CSS
   Design tokens from Figma
   ============================================================ */

@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --black:       #000000;
  --black-700:   #282828;
  --black-400:   #9D9FA1;
  --black-300:   #BDBDBD;
  --black-100:   #F2F2F2;
  --white:       #FFFFFF;
  --red-primary: #F5234B;
  --red-dark:    rgba(143, 20, 44, 0.72);

  --border: 2px solid var(--black-700);
  --radius-card: 24px;

  --font: 'Inter', sans-serif;

  --page-width: 1280px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }

/* ============================================================
   LOADER
   ============================================================ */
#loader {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

#loader-logo {
  width: 160px;
  animation: loaderPulse 1.2s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.92); }
}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.site { width: 100%; overflow-x: hidden; }

.container {
  width: 100%;
  max-width: var(--page-width);
  margin-inline: auto;
}

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.header {
  background: linear-gradient(120.72deg, var(--red-primary) 10.34%, var(--red-dark) 85.71%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* NavBar */
.navbar {
  background: var(--black);
  width: 100%;
  padding: 34px 80px;
}

.navbar-inner {
  max-width: var(--page-width);
  margin-inline: auto;
  border: var(--border);
  border-radius: var(--radius-card);
  display: flex;
  align-items: stretch;
  height: 112px;
  overflow: hidden;
}

.navbar-logo {
  border-right: var(--border);
  min-width: 280px;
  display: flex;
  align-items: center;
  padding: 16px 24px;
}

.navbar-logo img {
  height: 72px;
  width: auto;
  object-fit: contain;
}

.navbar-links {
  flex: 1;
  display: flex;
  align-items: stretch;
}

.navbar-links-row {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 40px;
  padding-inline: 40px;
  border-bottom: var(--border);
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
  color: var(--white);
  white-space: nowrap;
  transition: opacity .2s;
}

.nav-link:hover { opacity: .7; }
.nav-link.muted { color: rgba(255,255,255,.5); }

/* ============================================================
   HERO – film strip mask
   ============================================================ */
.hero {
  width: 100%;
  padding: 0 0 40px;
  display: flex;
  justify-content: center;
}

.hero-mask-wrap {
  width: 1212px;
  height: 778px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  -webkit-mask-image: url('src/mask-hero.png');
  mask-image: url('src/mask-hero.png');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 100% auto;
  mask-size: 100% auto;
}

/* Vidéo masquée bord à bord : remplit le conteneur, masque étiré à 100% */
.hero-video-zoom {
  position: absolute;
  top: -12.5%;
  left: -12.5%;
  width: 125%;
  height: 125%;
  z-index: 1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-mask { display: none; }

/* ============================================================
   ABOUT / LOGOS
   ============================================================ */
.about {
  background: var(--black);
  padding: 80px;
}

.about-inner {
  max-width: var(--page-width);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 80px;
  background: linear-gradient(to right, #474747, var(--black));
  border-radius: 16px;
  padding: 48px 56px;
  min-height: 200px;
}

.about-text {
  flex: 1;
}

.about-text p {
  font-size: 34px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: -1px;
  color: var(--black-100);
}

.about-logos {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
  flex-shrink: 0;
}

.logos-label {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.48px;
  color: rgba(255,255,255,.5);
}

.logos-grid {
  display: flex;
  gap: 32px;
}

.logos-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 28px;
}

.logo-item {
  width: 220px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.logo-item img {
  width: 220px;
  height: 80px;
  object-fit: contain;
  opacity: 0.7;
}

/* ============================================================
   SECTION TITLE BAR (shared)
   ============================================================ */
.section-title-bar {
  background: var(--black);
  padding: 24px 80px;
}

.section-title-inner {
  max-width: var(--page-width);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-icon {
  width: 32px;
  height: 32px;
  transform: rotate(180deg) scaleY(-1);
  flex-shrink: 0;
}

.section-title-inner span {
  font-size: 22px;
  font-weight: 600;
  line-height: 38px;
  color: var(--white);
  white-space: nowrap;
}

/* ============================================================
   SECTORS
   ============================================================ */
.sectors {
  background: var(--black);
  padding-bottom: 80px;
}

.sector-list {
  max-width: var(--page-width);
  margin-inline: auto;
  padding-inline: 80px;
}

.sector-item {
  border-bottom: 1px solid var(--black-700);
}

.sector-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 32px;
  cursor: pointer;
  user-select: none;
}

.sector-content {
  display: flex;
  align-items: center;
  gap: 32px;
}

.sector-thumb {
  width: 150px;
  height: 40px;
  object-fit: cover;
  border-radius: 18px;
  flex-shrink: 0;
}

.sector-content span {
  font-size: 34px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: -1px;
  color: var(--white);
  white-space: nowrap;
}

.sector-toggle-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.35s ease;
}

.sector-item[data-open="true"] .sector-toggle-icon {
  transform: rotate(45deg);
}

.sector-detail-wrap {
  overflow: hidden;
  height: 0;
  transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sector-detail {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: rgba(255,255,255,0.6);
  padding: 0 0 28px 182px;
  margin: 0;
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio {
  background: var(--black);
  padding-bottom: 80px;
}

/* Intro/outro text panels */
.portfolio-intro,
.portfolio-outro {
  position: relative;
  overflow: hidden;
  height: 395px;
  display: flex;
  align-items: center;
  margin-bottom: 32px;
}

.portfolio-outro { margin-top: 32px; margin-bottom: 0; }

.portfolio-intro-bg,
.portfolio-outro-bg {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: 52%;
  object-fit: cover;
  pointer-events: none;
}

.portfolio-outro-bg {
  left: 0; right: auto;
}

.portfolio-intro p,
.portfolio-outro p {
  position: relative;
  z-index: 1;
  max-width: 660px;
  font-size: 34px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: -1px;
  color: var(--black-100);
  padding-inline: 80px;
}

.portfolio-outro p {
  margin-left: auto;
  text-align: right;
  padding-inline: 80px;
}

/* Grid rows */
.portfolio-grid {
  display: flex;
  align-items: stretch;
  gap: 32px;
  max-width: var(--page-width);
  margin-inline: auto;
  padding-inline: 80px;
  margin-bottom: 32px;
}

.portfolio-card {
  flex: 1;
  min-width: 0;
  background: var(--black);
  border: var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.portfolio-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  flex-shrink: 0;
}

.portfolio-card-info {
  padding: 40px;
}

.portfolio-card-info span {
  font-size: 28px;
  font-weight: 600;
  line-height: 34px;
  letter-spacing: -0.6px;
  color: var(--white);
}

/* ============================================================
   TEAM
   ============================================================ */
.team {
  background: var(--black);
  padding: 8px 0 80px;
}


/* Grid unique 4 colonnes pour toute la section équipe */
.team-grid {
  max-width: var(--page-width);
  margin-inline: auto;
  padding-inline: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.team-title {
  grid-column: span 2;
  font-size: 42px;
  font-weight: 600;
  line-height: 46px;
  letter-spacing: -2px;
  color: var(--white);
  align-self: center;
}

/* Individual card */
.team-card {
  background: var(--black);
  border: var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 24px;
  transition: border-color .2s;
}

.team-card:hover { border-color: #555; }

.team-card-img {
  width: 100%;
  height: 282px;
  overflow: hidden;
}

.team-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card-info {
  padding-inline: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team-card-info strong {
  font-size: 18px;
  font-weight: 600;
  line-height: 30px;
  color: var(--white);
}

.team-card-info span {
  font-size: 16px;
  font-weight: 600;
  line-height: 26px;
  color: var(--black-400);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding-bottom: 80px;
}

.footer-banners {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* CTA panel */
.footer-cta {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  display: flex;
  align-items: center;
}

@media (min-width: 641px) {
  .footer-cta { height: 395px; }
}

.footer-cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.footer-cta-text {
  position: relative;
  z-index: 1;
  padding-inline: 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 700px;
  text-shadow: 6px 5px 7.6px rgba(0,0,0,.5);
}

.footer-cta-text p {
  font-size: 34px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: -1px;
  color: var(--black-100);
}

.footer-cta-text a {
  font-size: 34px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: -1px;
  color: var(--black-100);
  transition: opacity .2s;
}

.footer-cta-text a:hover { opacity: .7; }

/* NAQ banner */
.footer-naq {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 80px;
}

.footer-naq-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.footer-naq-logo {
  position: relative;
  z-index: 1;
  height: 56px;
  width: auto;
  flex-shrink: 0;
}

.footer-naq p {
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin: 0;
  letter-spacing: -0.2px;
}

/* Bottom footer bar */
.footer-bar {
  max-width: var(--page-width);
  width: 100%;
  margin-inline: auto;
  margin-top: 48px;
  border: var(--border);
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  height: 208px;
}

.footer-logo {
  width: 298px;
  flex-shrink: 0;
  border-right: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.footer-logo img {
  height: 120px;
  width: auto;
  object-fit: contain;
}

.footer-menus {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.footer-email-row {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: var(--border);
}

.footer-email-row a {
  font-size: 28px;
  font-weight: 600;
  line-height: 34px;
  letter-spacing: -0.6px;
  color: var(--black-300);
  transition: opacity .2s;
}

.footer-email-row a:hover { opacity: .7; }

.footer-bottom-row {
  flex: 1;
  display: flex;
  align-items: stretch;
}

.footer-col {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-col--border { border-right: var(--border); }

.footer-helloasso {
  height: 72px;
  width: auto;
  object-fit: contain;
}

.footer-copyright {
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: var(--black-300);
  white-space: nowrap;
  transition: opacity .2s;
}

.footer-copyright:hover { opacity: .7; }

/* Social icons */
.social-icons {
  display: flex;
  gap: 16px;
  align-items: center;
}

.social-btn {
  width: 36px;
  height: 36px;
  background: var(--black-700);
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s;
  overflow: hidden;
}

.social-btn:hover { background: #3a3a3a; }

.social-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.social-btn--img { padding: 0; }
.social-btn-img  { width: 36px; height: 36px; object-fit: cover; }

/* ============================================================
   RESPONSIVE – tablet & mobile
   ============================================================ */
@media (max-width: 1100px) {
  .about-text p    { font-size: 24px; line-height: 30px; }
  .sector-content span { font-size: 24px; }
  .portfolio-grid  { padding-inline: 32px; }
  .sector-list     { padding-inline: 32px; }
  .team-content    { padding-inline: 32px; }
  .footer-cta-text { padding-inline: 32px; }
  .about           { padding: 40px 32px; }
  .section-title-bar { padding-inline: 32px; }
  .navbar          { padding: 24px 32px; }
  .hero            { padding-inline: 32px; }
}

@media (max-width: 900px) {
  .about-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    background: none;
  }

  .about-text p { font-size: 20px; line-height: 28px; }

  .about-logos { align-items: flex-start; }

  .navbar-links-row { gap: 20px; padding-inline: 20px; }
  .navbar-logo { min-width: 200px; }

  .team-grid { grid-template-columns: repeat(2, 1fr); padding-inline: 32px; }
  .team-title { grid-column: span 2; }

  .portfolio-grid { flex-direction: column; }
  .portfolio-card img { height: 300px; }

  .portfolio-intro, .portfolio-outro { height: 180px; padding-block: 0; }
  .portfolio-intro-bg, .portfolio-outro-bg { width: 42%; opacity: 1; }
  .portfolio-intro p, .portfolio-outro p { max-width: 58%; padding-inline: 20px; font-size: 15px; line-height: 22px; letter-spacing: -0.3px; }
  .portfolio-outro p { text-align: right; margin-left: auto; }

  .footer-bar { flex-direction: column; height: auto; }
  .footer-logo { width: 100%; height: auto; border-right: none; border-bottom: var(--border); padding: 24px; }
  .footer-email-row { padding: 20px; height: auto; }
  .footer-bottom-row { flex-direction: column; height: auto; }
  .footer-col { height: auto; min-height: 64px; border-right: none; border-bottom: var(--border); padding: 16px; }
  .footer-col:last-child { border-bottom: none; }
}

@media (max-width: 640px) {
  .navbar-inner { flex-direction: column; height: auto; padding: 16px; }
  .navbar-logo  { border-right: none; border-bottom: var(--border); padding: 8px 0 16px; min-width: auto; }
  .navbar-links-row { flex-wrap: wrap; gap: 12px; padding: 16px 0 0; justify-content: flex-start; }

  .sector-content span { font-size: 20px; }
  .sector-thumb { width: 80px; }

  .team-grid { grid-template-columns: 1fr; }
  .team-title { grid-column: span 1; }

  .footer-cta-text p,
  .footer-cta-text a { font-size: 22px; }

  /* Footer spacing */
  .footer { gap: 24px; }

  .footer-banners { display: grid; grid-template-rows: auto auto; row-gap: 0; }
  .footer-bar { margin-inline: 16px; width: calc(100% - 32px); border-radius: 16px; margin-top: 0 !important; padding-block: 8px; }
}

/* ============================================================
   MOBILE – iPhone
   ============================================================ */
@media (max-width: 450px) {
  /* Hero */
  .hero { padding: 0 0 24px; }
  .hero-mask-wrap { width: 100%; height: 280px; border-radius: 0; }
  .hero-video-zoom { top: -15%; left: -15%; width: 130%; height: 130%; }

  /* Navbar */
  .navbar { padding: 12px 16px; }
  .navbar-inner { border-radius: 16px; padding: 12px; }
  .navbar-logo img { height: 48px; }
  .navbar-links-row { gap: 10px; font-size: 13px; }

  /* About */
  .about { padding: 32px 16px; }
  .about-inner { padding: 24px 16px; gap: 24px; overflow: visible; background: linear-gradient(to right, #474747, #111); border-radius: 16px; }
  .about-logos { align-items: stretch; flex-shrink: 1; min-width: 0; width: 100%; }
  .about-text p { font-size: 18px; line-height: 26px; }
  .logos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
  .logos-col { display: contents; }
  .logo-item { width: auto; height: 50px; display: flex; align-items: center; justify-content: center; }
  .logo-item img { width: 100%; height: 100%; }
  .logos-label { font-size: 16px; }

  /* Section titles */
  .section-title-bar { padding-inline: 16px; }
  .section-title-inner span { font-size: 17px; }

  /* Secteurs */
  .sector-list { padding-inline: 16px; }
  .sector-item { padding-block: 20px; }
  .sector-content span { font-size: 18px; line-height: 28px; }
  .sector-thumb { width: 64px; height: 32px; }
  .sector-detail { padding-left: 0; }

  /* Portfolio */
  .portfolio-grid { padding-inline: 16px; gap: 16px; margin-bottom: 16px; }
  .portfolio-card img { height: 320px; }
  .portfolio-card-info { padding: 20px; }
  .portfolio-card-info span { font-size: 20px; }
  .portfolio-intro p, .portfolio-outro p { font-size: 14px; line-height: 20px; padding-inline: 16px; }
  .portfolio-intro, .portfolio-outro { height: 160px; }

  /* Footer CTA */
  .footer-cta { padding-block: 40px; }
  .footer-cta-text { padding-inline: 16px; gap: 20px; }
  .footer-cta-text p, .footer-cta-text a { font-size: 20px; line-height: 28px; }
  .footer-logo img { height: 80px; }
  .footer-email-row a { font-size: 18px; }
  .footer-col { height: 60px; }
  .footer-helloasso { height: 48px; }
  .footer-copyright { font-size: 12px; }
}

@media (max-width: 430px) {
  /* Team */
  .team { padding: 8px 0 48px; }
  .team-grid { padding-inline: 16px; gap: 16px; }
  .team-title { font-size: 28px; line-height: 34px; }
  .team-card-info strong { font-size: 16px; }
  .team-card-info span { font-size: 14px; }
  .team-card-img { height: 320px; }
}
