html, body {
  overflow-x: hidden;
}


/* =========================
   RESET & BASE
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #ffffff;
  color: #111111;
  line-height: 1.6;
}

/* =========================
   VARIABLES
========================= */
:root {
  --primary: #1f2f46;
  --primary-light: #2e4466;
  --text-muted: #666666;
  --border-light: #e6e6e6;
  --container-width: 1200px;
  --radius-lg: 70px;
  --radius-md: 14px;
  --transition: 0.25s ease;
  --gutter: 24px; /* marge latérale par défaut */
}

/* =========================
   CONTAINER
========================= */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--gutter); /* au lieu de 0 24px */
}

/* =========================
   HEADER / NAV
========================= */
.header {

  background: #ffffff;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  color: #111;
  white-space: nowrap;
}

.header nav a {
  margin-left: 28px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  color: #111;
  position: relative;
}

.header nav a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.header nav a:hover::after,
.header nav a.active::after {
  width: 100%;
}
/* =========================
   BURGER MENU (mobile)
========================= */

/* bouton burger caché sur desktop */
.burger{
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: rgba(255,255,255,0.75);
  cursor: pointer;

  /* on garde FLEX ici, mais seulement quand il est affiché via la media query */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
@media (min-width: 1101px){
  .burger{
    display: none !important;
  }

  /* Sur desktop, on empêche totalement le menu mobile et son backdrop */
  .mobile-menu,
  .menu-backdrop{
    display: none !important;
  }

  /* Et on s’assure que les nav desktop reviennent */
  .nav-left{
    display: block;
  }
  .nav-right{
    display: flex !important;
  }
}



.burger span{
  display: block;
  width: 22px;                 /* largeur visible */
  height: 2.5px;               /* un peu plus épais */
  background: #111;
  border-radius: 2px;          /* léger arrondi, pas des points */
  transition: transform 0.2s ease, opacity 0.2s ease;
}


/* Backdrop */
.menu-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 999;
}

/* Menu panel */
/* Mobile menu = page latérale */
.mobile-menu{
  position: fixed;
  isolation: isolate;
  top: 0;
  left: 0;
  width: min(92vw, 380px);
  height: 100vh;
  display: flex;
  flex-direction: column;

  background: #e7decd; /* beige / or très clair */
  border-right: 1px solid rgba(0,0,0,0.10);

  z-index: 1000;
  padding: 22px 20px 0;


  transform: translateX(-100%);
  transition: transform 0.35s ease;

  /* style "page" */
  box-shadow: none;
  border-radius: 0;

  will-change: transform;
}

.mobile-menu.is-open{
  transform: translateX(0);
}


/* top row */
.mobile-menu-top{
  position: relative;
  display: flex;
  align-items: center;       /* CENTRAGE VERTICAL RÉEL */
  justify-content: center;   /* CENTRAGE HORIZONTAL DU TITRE */
  height: 44px;              /* même hauteur que le bouton X */
  margin-bottom: 26px;
}

.mobile-menu-title{
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 30px;
  line-height: 1;
  text-transform: uppercase;
  color: #111;
}
.mobile-menu-title{
  text-align: center;
  width: 100%;
  display: flex;
  align-items: center;   /* centre le texte dans sa box */
  justify-content: center;

  height: 44px;
}


.mobile-menu-close{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transform: translateY(-50%); /* centre optique vertical */
  font-size: 22px;
  font-weight: 700;
  line-height: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  position: absolute;
  left: 0;          /* ou right: 0 si tu préfères */
  top: 50%;
}



/* links vertical */
.mobile-menu-links{
  display: grid;
  gap: 14px;
  margin-top: 10px;
}

/* Look "Entreprenörsgatan" : links simples, pas de cartes */
.mobile-menu-links a{
  text-decoration: none;
  color: rgba(0,0,0,0.82);
  font-weight: 500;
  font-size: 18px;
  padding: 6px 0;
  background: transparent;
  border: none;
  border-radius: 0;
}
.mobile-menu,
.mobile-menu-links a{
  font-family: 'Montserrat', sans-serif;
}
.mobile-menu-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 26px;
  padding: 12px 18px;
  border-radius: 999px;

  background: #ff5a3d; /* accent proche du site */
  color: #111;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  width: fit-content;
}

.mobile-menu-social a{
  text-decoration: none;
  color: rgba(0,0,0,0.85);
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
}
.mobile-menu-social img{
  width: 22px;
  height: 22px;
  display: block;
}

@media (max-width: 1100px){
  .nav-right{
    display: none !important;
  }
}
/* Cache le burger sur desktop */
@media (min-width: 1101px){
  #burgerOpen{ display: none; }
}

/* Affiche le burger sur mobile */
@media (max-width: 1100px){
  #burgerOpen{ display: inline-flex; }
}

/* =========================
   MOBILE MENU — bottom area (FIX)
========================= */

.mobile-menu-bottom{
  flex: 0 0 auto;
  margin-top: auto;      /* pousse ce bloc tout en bas du panneau */
  margin-bottom: 20px;   /* ✅ 20px EXACT au-dessus du footer */
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 2;
}




/* réseaux */
.mobile-menu-social{
  display: flex;
  gap: 20px;
}

.mobile-menu-social a{
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  color: rgba(0,0,0,0.85);
  font-family: 'Montserrat', sans-serif;
}

/* langue */
.mobile-menu-lang{
  display: inline-flex;
  align-items: center;
  gap: 12px;

  background: none;
  border: none;
  padding: 0;
  cursor: pointer;

  font-family: 'Montserrat', sans-serif;
}

.mobile-menu-lang img{
  width: 22px;
  height: auto;
  display: block;
}

.mobile-lang-text{
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(0,0,0,0.75);
  white-space: nowrap;
}

.mobile-menu-lang:hover .mobile-lang-text{
  text-decoration: underline;
}

@media (min-width: 1101px){
  .mobile-menu-bottom{
    display: none;
  }
}
/* Bottom links: icon + label */
.mobile-menu-links-bottom{
  display: grid;
  gap: 14px;
}

.menu-link-row{
  display: inline-flex;
  align-items: center;
  gap: 12px;

  text-decoration: none;
  color: rgba(0,0,0,0.85);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
}

.menu-link-row img{
  width: 22px;
  height: 22px;
  display: block;
}

.menu-link-row:hover{
  color: #000;
  text-decoration: underline;
  text-underline-offset: 5px;
}


/* petit feedback au survol */
.mobile-menu-links a:hover{
  color: #000;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.mobile-menu-links a:active{
  transform: scale(0.99);
}
@media (max-width: 1100px){
  /* Affiche le burger */
  .burger{
    display: flex;
  }
  .nav{
    padding-left: 14px;
    padding-right: 14px;
  }
  /* Cache les liens desktop */
  .nav-left{
    display: none;
  }

  /* Sur mobile, évite le logo absolu qui se chevauche */
  .logo{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    max-width: 55vw;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 2;
    white-space: nowrap;
  }


}

/* Lock scroll when menu open */
body.no-scroll{
  overflow: hidden;
}

/* Icônes réseaux sociaux dans le header */
.nav-right {
  display: flex;
  margin-right: 28px;
  align-items: center;
  gap: 25px;
}

.nav-right img {
  width: 22px;
  height: 22px;
  opacity: 1;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-right img:hover {
  opacity: 1;
  transform: translateY(-1px);
}


/* =========================
   HERO
========================= */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding-block: 80px;   /* garde le padding haut/bas */
  padding-inline: 0;     /* n’écrase plus le padding du container */
  text-align: center;
}
.hero.container{
  padding-inline: var(--gutter);
}
@media (max-width: 480px){
  .hero.container{
    padding-inline: 16px; /* au lieu de var(--gutter) si tu veux être certain */
  }
}

.hero-photo {
  width: 100%;
  max-width: 900px;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.hero h1 {
  font-size: clamp(2.2rem, 2vw, 3.2rem);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 24px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  max-width: 520px;
  color: var(--text-muted);
  margin-bottom: 36px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero stacked pill buttons (Davis Ryan style) */
.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 320px;   /* largeur similaire à l’exemple */
  margin-top: 22px;
}

/* Si ton texte est centré sur la Home, centre aussi le bloc */
.hero-right .hero-cta {
  margin-left: auto;
  margin-right: auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 8px;            /* ↓ largeur encore réduite */
  border-radius: 32px 0 32px 0;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;    /* ↓ légèrement resserré */
  font-size: 0.80rem;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}



.hero-pill:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.hero-pill:active {
  transform: translateY(0);
  box-shadow: none;
}

/* =========================
   BUTTONS
========================= */
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary,
.btn-secondary {
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-light);
}

.btn-secondary {
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
}

/* =========================
   TITLES / SECTIONS
========================= */
h1 {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 48px;
}

/* =========================
   PROJECTS GRID
========================= */

.project-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
  background: #fff;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.project-tag {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
  display: inline-block;
}

.project-card h3 {
  margin-bottom: 12px;
}

.project-card p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.project-link {
  text-decoration: none;
  font-weight: 600;
  color: var(--primary);
}
/* =========================
   PROJECTS — image + caption + hover details (NEW: bigger image + blur + bottom panel)
========================= */

.projects-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(2, 1fr);
}

/* Tablet & mobile */
@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px){
  :root{
    --gutter: 16px;
  }
}
.project-tile {
  margin: 0;
}

.project-tile-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Scope ONLY the Projects tiles so we don't break other pages using .project-media */
.project-media--tile {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: #fff;
}

/* Bigger project image */
.project-media--tile img {
  width: 100%;
  height: 380px;                 /* ✅ plus grand (ajuste 360–420 selon ton goût) */
  object-fit: cover;
  display: block;
  transform: scale(1.001);
  transition: transform 0.35s ease, filter 0.35s ease;
}

/* Bottom blur panel (hidden by default) */
.project-media--tile .project-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  padding: 18px 18px 16px;
  display: grid;
  gap: 8px;

  /* ✅ blur “glass” */
  background: rgba(10, 15, 25, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  /* ✅ animation state */
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Text styles inside overlay */
.project-media--tile .project-overlay-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  margin: 0;
}

.project-media--tile .project-overlay-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.project-media--tile .project-overlay-text {
  color: rgba(255,255,255,0.90);
  margin: 0;
  line-height: 1.5;
  max-width: 60ch;
}

.project-media--tile .project-overlay-cta {
  display: inline-block;
  width: fit-content;
  margin-top: 4px;
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Hover: blur image + reveal bottom panel */
.project-tile-link:hover .project-media--tile img,
.project-tile-link:focus-visible .project-media--tile img {
  transform: scale(1.03);
  filter: blur(4px) brightness(0.85);  /* ✅ blur on hover */
}

.project-tile-link:hover .project-media--tile .project-overlay,
.project-tile-link:focus-visible .project-media--tile .project-overlay {
  opacity: 1;
  transform: translateY(0);            /* ✅ animation bas → haut */
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .project-media--tile img,
  .project-media--tile .project-overlay {
    transition: none;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .project-media--tile img {
    height: 260px;
  }

  /* leave overlay hidden on mobile */
  .project-media--tile .project-overlay {
    opacity: 0;
    transform: translateY(14px);
  }
}


/* Caption under image */
.project-meta {
  padding-top: 14px;
}

.project-name {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #111;
}

.project-desc {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}


/* =========================
   CASE STUDY
========================= */
.case-study section {
  margin-top: 48px;
}

.case-study ul {
  margin-top: 12px;
  padding-left: 20px;
}

.case-study li {
  margin-bottom: 8px;
}

/* =========================
   REVEAL ANIMATION
========================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-photo {
    margin: 0 auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  nav a {
    margin-left: 16px;
  }
}
/* =========================
   FOOTER (pro)
========================= */

.site-footer{
  margin-top: 80px;
  background: #c8dafe;
  border-top: 1px solid var(--border-light);
}

/* Top grid */
.footer-grid{
  padding: 34px 0;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1fr;
  gap: 28px;
}

.footer-col{
  min-width: 0;
  text-align: left;
}

.footer-brand{
  margin: 0 0 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
  color: #111;
}

.footer-title{
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #111;
}

.footer-text{
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 38ch;
}

.footer-nav{
  display: grid;
  gap: 10px;
  justify-items: start;     /* IMPORTANT: align items to the left */
}

.footer-nav a{
  text-decoration: none;
  font-weight: 600;
  color: #111;
  opacity: 0.85;
  width: auto;
  justify-self: start;      /* ensure each link starts at same left edge */
  margin-left: 0 !important;  /* annule nav a { margin-left: 28px } */
}

.footer-nav a:hover{
  opacity: 1;
  text-decoration: underline;
}

.footer-mail{
  display: inline-block;
  margin-top: 4px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.footer-mail:hover{
  text-decoration: underline;
}

.footer-actions{
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-copy{
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: var(--primary);
  color: #ffffff;
  cursor: pointer;
  transition: var(--transition);
}

.footer-copy:hover{
  border-color: #cfcfcf;
}

.footer-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: rgba(255,255,255,0.65);
  color: #111;
  transition: var(--transition);
}

.footer-btn:hover{
  background: rgba(255,255,255,0.85);
}

.footer-note{
  margin: 14px 0 0;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Social icons */
.footer-social{
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-icon{
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: rgba(255,255,255,0.65);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-icon:hover{
  background: rgba(255,255,255,0.9);
}

.footer-icon img{
  width: 18px;
  height: 18px;
  display: block;
}

/* Bottom bar */
.footer-bottom{
  padding: 16px 0 22px;
  border-top: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-legal{
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-top{
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: rgba(255,255,255,0.65);
  cursor: pointer;
  transition: var(--transition);
}

.footer-top:hover{
  background: rgba(255,255,255,0.9);
}

.site-footer{
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  box-sizing: border-box;
}
.site-footer .container{
  padding-left: 0;
  padding-right: 0;
}


/* Responsive */
@media (max-width: 900px){
  .footer-grid{
    grid-template-columns: 1fr;
  }
  .footer-text{
    max-width: none;
  }
}


.page {
  padding-top: 56px;
  padding-bottom: 56px;
}

.page-header {
  max-width: 820px;
  margin: 0 auto 40px auto;
  text-align: left;
}

.page-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.05;
  margin-bottom: 14px;
}

.page-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 22px;
}

.page-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.text-link {
  display: inline-block;
  margin-top: 12px;
  text-decoration: none;
  font-weight: 600;
  color: var(--primary);
}

.text-link:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .page-header {
    text-align: left;
  }

}
/* =========================
   CONTACT PAGE
========================= */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 980px;
  margin: 0 auto;
}

.contact-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px;
  background: #fff;
}

.contact-card--primary {
  border-color: rgba(31, 47, 70, 0.25);
}

.contact-muted {
  color: var(--text-muted);
  margin-top: 8px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.contact-email {
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.contact-email:hover {
  text-decoration: underline;
}

.contact-note {
  margin-top: 14px;
  color: var(--text-muted);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.contact-link {
  text-decoration: none;
  font-weight: 600;
  color: var(--primary);
}

.contact-link:hover {
  text-decoration: underline;
}

.contact-list {
  margin-top: 12px;
  padding-left: 18px;
  color: var(--text-muted);
}

.contact-list li {
  margin-bottom: 8px;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================
   PROJECT GALLERY
========================= */

.project-gallery {
  margin-top: 56px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
/* Gallery videos should match gallery images */
.gallery-item video {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background: #ffffff;
}

@media (max-width: 900px) {
  .gallery-item video {
    height: 240px;
  }
}


.gallery-item figcaption {
  padding: 12px 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item img {
    height: 220px;
  }
}
/* =========================
   HOME IMAGE CAROUSEL
========================= */

/* =========================
   HOME IMAGE CAROUSEL
========================= */

/* Default: carousel is full width WITHOUT any viewport shift
   (this is correct when the section is outside .container, like in project-AIS.fr.html) */
.home-carousel {
  width: 100%;
  margin: 28px 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden; /* stronger than clip for cross-browser */
}

/* Only apply the full-bleed trick when the carousel is INSIDE a .container */
.container .home-carousel {
  width: calc(100vw - (100vw - 100%));
  margin-left: calc(-50vw + 50%);
  margin-right: 0;
  overflow-x: hidden;
}
@media (max-width: 768px){
  .container .home-carousel{
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}



.carousel-header {
  margin-bottom: 24px;
  text-align: center;
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.carousel-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: auto;
  padding: 12px 4px;
  cursor: grab;
  scrollbar-width: none; /* Firefox */
}

.carousel-track::-webkit-scrollbar {
  display: none; /* Chrome / Safari */
}

.carousel-track:active {
  cursor: grabbing;
}

.carousel-item {
  display: inline-flex;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
}

.carousel-item img {
  height: 400px;
  width: auto;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: #fff;
  user-select: none; /* ok */
  pointer-events: auto; /* ✅ doit être cliquable */
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.carousel-item:hover img {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.10);
}
/* Prevent native browser drag (important on desktop) */
.carousel-track,
.carousel-item,
.carousel-item img {
  -webkit-user-drag: none;
  user-drag: none;
}

.carousel-item img {
  -webkit-user-select: none;
  user-select: none;
}


/* Flèches */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: #fff;
  color: #111;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.carousel-btn:hover {
  background: #f3f4f6;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.carousel-btn.left {
  left: 16px;
}

.carousel-btn.right {
  right: 16px;
}
.carousel-track {
  cursor: grab;
}
.carousel-track:active {
  cursor: grabbing;
}

/* Responsive */
@media (max-width: 768px) {
  .carousel-item img {
    height: 150px;
  }

  .carousel-btn {
    display: none; /* sur mobile, drag uniquement */
  }
}

/* =========================
   RESUME (Professional)
========================= */

.resume-pro {
  padding-top: 56px;
  padding-bottom: 56px;
}

.resume-hero-pro {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 22px;
}

.resume-hero-illu {
  width: 100%;
  max-width: 380px;
  margin-left: auto;
  border-radius: var(--radius-lg);
  opacity: 0.95;
}

.resume-actions {
  display: flex;
  gap: 12px;
  margin: 18px 0 16px;
  flex-wrap: wrap;
}

.resume-meta {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 14px;
  max-width: 520px;
}

.meta-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--border-light);
}

.meta-row:first-child {
  border-top: none;
  padding-top: 0;
}

.meta-label {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
}

.meta-value {
  color: #111;
}

.resume-grid-pro {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.resume-sidebar,
.resume-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.resume-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 18px;
}

.resume-card h2 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.resume-item {
  margin-bottom: 14px;
}

.item-title {
  font-weight: 800;
  margin-bottom: 4px;
}

.item-sub,
.item-text {
  color: var(--text-muted);
}

.resume-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
}

.resume-list li {
  margin-bottom: 8px;
}

/* Timeline */
.timeline-pro {
  display: grid;
  gap: 14px;
}

.timeline-entry {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--border-light);
}

.timeline-entry:first-child {
  border-top: none;
  padding-top: 0;
}

.timeline-date {
  color: var(--text-muted);
  font-weight: 800;
  font-size: 0.9rem;
}

.timeline-title {
  font-weight: 800;
  margin-bottom: 4px;
}

.timeline-sub {
  color: var(--text-muted);
  margin-bottom: 8px;
}

.timeline-text {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* Project section */
.project-title {
  font-weight: 800;
  margin-bottom: 10px;
}

.project-text {
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 14px;
}

.resume-pro .project-media {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.resume-pro .project-media img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: #fff;
}


.project-note {
  color: var(--text-muted);
  margin-top: 10px;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 980px) {
  .resume-grid-pro {
    grid-template-columns: 1fr;
  }

  .resume-hero-pro {
    grid-template-columns: 1fr;
  }

  .resume-hero-illu {
    display: none;
  }

  .timeline-entry {
    grid-template-columns: 1fr;
  }

  .resume-pro .project-media {
    grid-template-columns: 1fr;
  }

  .resume-pro .project-media img {
    height: 170px;
  }
}
/* =========================
   PROJECT PAGE (ALFRED)
========================= */

.project-page {
  padding-top: 56px;
  padding-bottom: 56px;
}

.project-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
}

.project-kicker {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.project-title {
  font-size: clamp(2.0rem, 3.6vw, 3.0rem);
  line-height: 1.12;
  margin-bottom: 14px;
}

.project-lead {
  color: var(--text-muted);
  max-width: 62ch;
  line-height: 1.6;
}

.project-hero-image {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  background: #fff;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 18px;
}

.tag {
  display: inline-flex;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: #fff;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.project-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.project-section {
  margin-top: 34px;
}

.project-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.project-grid-2-reverse {
  grid-auto-flow: dense;
}

.project-media-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
}

.project-media-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.project-media-card video {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  background: #fff;
}

.project-media-card-1 {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
}

.project-media-card-1 img {
  width: 100%;

  object-fit: cover;
  display: block;
}

.media-caption {
  padding: 12px 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.callout {
  margin-top: 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 14px;
}

.callout-title {
  font-weight: 800;
  margin-bottom: 6px;
}

.callout-text {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.team-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 14px;
}

.team-name {
  font-weight: 800;
  margin-bottom: 10px;
}

.team-list {
  margin: 0;
  padding-left: 16px;
  color: var(--text-muted);
}

.team-list li {
  margin-bottom: 8px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.spec {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 12px;
}

.spec-label {
  color: var(--text-muted);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.spec-value {
  margin: 0;
  font-weight: 700;
}

.timeline {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
  align-items: start;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.timeline-content {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 12px 14px;
}

.timeline-title {
  font-weight: 800;
  margin-bottom: 6px;
}

.timeline-text {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--text-muted);
  margin: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.gallery-item {
  grid-column: span 4;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
}

.gallery-item-wide {
  grid-column: span 8;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.gallery-item figcaption {
  padding: 10px 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.takeaways {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 18px;
}

.takeaways ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--text-muted);
}

.takeaways li {
  margin-bottom: 10px;
}

/* Compact bullets for project pages */
.bullet-compact {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--text-muted);
}

.bullet-compact li {
  margin-bottom: 8px;
}


/* Responsive */
@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .project-hero {
    grid-template-columns: 1fr;
  }

  .project-hero-image {
    height: 280px;
  }

  .project-grid-2 {
    grid-template-columns: 1fr;
  }

  .spec-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item,
  .gallery-item-wide {
    grid-column: span 12;
  }

  .gallery-item img {
    height: 240px;
  }
}
.lang-switch {
  background: none;
  border: none;
  padding: 0;
  margin-right: 0px;
  cursor: pointer;
  display: flex;
  align-items: center;


  transform: translateY(-2px); /* ajuste finement */
}

.lang-switch img {
  width: 22px;
  height: auto;
  display: block;
  transition: opacity 0.2s ease;
}

.lang-switch:hover img {
  opacity: 0.7;
}
/* Align vertical spacing with Resume page */
.projects-page,
main.container.reveal {
  padding-top: clamp(4rem, 8vh, 7rem);
}
/* =========================
   PAGE LOADER — WHITE + FADE (min 1s)
========================= */

#page-loader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 1;
  visibility: visible;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Minimal indicator (optional) */
/* 3-dot loading indicator */
.loader-dots {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.loader-dots span {
  width: 10px;
  height: 10px;
  background: #000000;
  border-radius: 50%;
  opacity: 0.35;
  animation: dotBounce 1.0s infinite ease-in-out;
}

.loader-dots span:nth-child(2) {
  animation-delay: 0.12s;
}

.loader-dots span:nth-child(3) {
  animation-delay: 0.24s;
}

@keyframes dotBounce {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  40% {
    transform: translateY(-8px);
    opacity: 1;
  }
}


@keyframes loaderPulse {
  0% { transform: scale(0.6); opacity: 0.35; }
  50% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.6); opacity: 0.35; }
}

/* =========================
   PRUSA LOADER (SVG)
========================= */
.loader-prusa{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:120px;
}

.loader-prusa svg{
  width:min(420px, 92vw);
  height:auto;
}

#x-axis, #z-axis{
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform;
}
#prusa-loader { overflow: visible; }
/* ===== Loader label + layout (Prusa) ===== */
.loader-prusa{
  flex-direction: column;
  gap: 14px;
  text-align: center;
}

.loader-label{
  font-weight: 700;
  font-size: 0.95rem;
  color: #111111;
  letter-spacing: 0.02em;
}

.loader-ellipsis{
  opacity: 0.55;
}
/* ===== Loader layout: SVG + label under ===== */
.loader-prusa{
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  gap: 14px;
  min-height:120px;
  text-align:center;
}

/* Bigger label under SVG */
.loader-label{
  font-weight: 800;
  font-size: 1.25rem; /* augmente si tu veux encore plus gros */
  color: #111111;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

/* Inline dots animation (reuse dotBounce feel) */
.dots-inline span{
  display:inline-block;
  width: 0.4em;          /* garde un espacement propre */
  text-align: center;
  opacity: 0.35;
  animation: dotBounce 1.0s infinite ease-in-out;
}

.dots-inline span:nth-child(2){
  animation-delay: 0.12s;
}

.dots-inline span:nth-child(3){
  animation-delay: 0.24s;
}
@media (max-width: 1100px) {
  .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 32px;
    row-gap: 10px;
  }

  .footer-nav a {
    white-space: nowrap;
  }
}
.mobile-menu-footer{
  flex: 0 0 auto;
  width: calc(100% + 40px); /* ✅ compense padding gauche/droite (20px + 20px) */
  margin-left: -20px;
  margin-right: -20px;

  height: 110px;
  background-color: #4b372f;

  display: flex;
  align-items: center;
  justify-content: center;

  padding-bottom: env(safe-area-inset-bottom);
}




.mobile-menu-footer span{
  font-size: 10px;
  color: #9a9a9a; /* gris discret */
  opacity: 0.7;
}
/* === Animated Burger Button (SliderRevolution style, no jQuery) === */
.McButton{
  --bar-w: 25px;
  --bar-h: 3px;
  --bar-color: #000000;

  position: relative;
  width: var(--bar-w);
  height: calc((var(--bar-w) * 3) / 4);
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  transform: rotate(0deg);
  transition: transform 800ms cubic-bezier(.17,.67,.13,1) 200ms;
}

.McButton span{
  position: absolute;
  left: 0;
  width: var(--bar-w);
  height: var(--bar-h);
  background: var(--bar-color);

  /* état initial */
  top: 0;
  transform: rotate(0deg);
}

/* positions des barres */
.McButton span:nth-child(1){ top: 0; }
.McButton span:nth-child(2){ top: 50%; transform: translateY(-50%); }
.McButton span:nth-child(3){ top: 100%; transform: translateY(-100%); }

/* transitions — déplacement d’abord, rotation ensuite */
.McButton span:nth-child(1),
.McButton span:nth-child(3){
  transition:
    top 200ms ease,
    transform 800ms cubic-bezier(.17,.67,.13,1) 200ms;
}

.McButton span:nth-child(2){
  transition: opacity 200ms ease;
}

/* === ACTIVE === */
.McButton.is-active{
  transform: rotate(135deg);
}

.McButton.is-active span:nth-child(1){
  top: 50%;
  transform: translateY(-50%);
}

.McButton.is-active span:nth-child(2){
  opacity: 0;
}

.McButton.is-active span:nth-child(3){
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
}
/* ==========================
   MENU MOBILE : contenu retardé
   ========================== */
.mobile-menu-content{
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;

  transition: opacity 220ms ease, transform 220ms ease;
}
/* Réserve l'espace nécessaire pour éviter le chevauchement
   (zone bottom + faux footer) */
.mobile-menu-content{
  padding-bottom: 0px; /* ajuste 220–280 si besoin */
}
/* ✅ Le contenu prend l'espace disponible et scroll si besoin */
.mobile-menu-content{
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

/* Le panneau est ouvert, mais le contenu n'apparaît que quand on l'autorise */
.mobile-menu.is-open .mobile-menu-content{
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

/* État "contenu visible" */
.mobile-menu.is-open.is-content-visible .mobile-menu-content{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
