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

:root {
  --orange: #e8681a;
  --orange-hover: #cf5a12;
  --bordeaux: #820e12;
  --nav-border: #ddd;
  --nav-text: #333;
  --font: "Open Sans", Arial, sans-serif;
  --container-width: 1200px;
  --drawer-width: 280px;
}

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  font-family: var(--font);
}

/* ─── CONTENEUR CENTRÉ ────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── TOP BAR ─────────────────────────────────────────── */
.top-bar {
  background-color: var(--orange);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  padding-bottom: 6px;
}
.top-bar__login {
  color: #fff;
  font-size: 13px;
  text-decoration: underline;
}
.top-bar__login:hover {
  color: #ffe0cc;
}
.top-bar__lang {
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
}
.top-bar__caret {
  font-size: 9px;
  vertical-align: middle;
}

/* ─── HEADER MAIN ─────────────────────────────────────── */
header {
  overflow-x: hidden;
}
.header-main {
  position: relative;
  background-color: #fff;
  overflow: hidden;
}
.header-main__photo {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 45%;
  pointer-events: none;
}
.header-main__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 25%);
  mask-image: linear-gradient(to right, transparent 0%, black 25%);
}
.header-main .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.header-main__brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}
.header-main__logo {
  height: 80px;
  width: auto;
  flex-shrink: 0;
}
.header-main__title {
  font-size: clamp(18px, 2.5vw, 38px);
  font-weight: bold;
  color: var(--bordeaux);
  font-family: "Oswald", sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  line-height: 1.3;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bordeaux);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 18px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.header-main__search {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
}
.header-main__search input[type="search"] {
  width: clamp(120px, 18vw, 235px);
  height: 50px;
  border: none;
  padding: 0 calc(50px / 3);
  font-size: 16px;
  font-family: "Oswald", sans-serif;
  outline: none;
  background: rgba(255, 255, 255, 0.82);
  color: #555;
  -webkit-appearance: none;
  appearance: none;
  line-height: 1;
}
.header-main__search input[type="search"]::placeholder {
  color: #aaa;
}
.header-main__search input[type="search"]:focus {
  background: rgba(255, 255, 255, 0.97);
}
.header-main__search button {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background-color: #ff7b25;
  color: #fff;
  border: none;
  border-radius: 0;
  padding: 0;
  cursor: pointer;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.header-main__search button:hover {
  background-color: var(--orange-hover);
}

/* ─── NAVIGATION DESKTOP ──────────────────────────────── */
.main-nav {
  border-top: 1px solid var(--nav-border);
  border-bottom: 1px solid var(--nav-border);
  background-color: #fff;
}
.main-nav .container {
  padding-top: 0;
  padding-bottom: 0;
}
.main-nav__list {
  display: flex;
  list-style: none;
}
.main-nav__list li a {
  display: block;
  padding: 12px 14px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--nav-text);
  text-decoration: none;
  white-space: nowrap;
}
.main-nav__list li a:hover {
  color: var(--orange);
}
.nav-caret {
  font-size: 8px;
  vertical-align: middle;
  margin-left: 3px;
}

/* ─── DRAWER MOBILE ───────────────────────────────────── */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 100;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.drawer-overlay.is-visible {
  display: block;
}
.drawer-overlay.is-open {
  opacity: 1;
}
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--drawer-width);
  background: #fff;
  z-index: 101;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.drawer.is-open {
  transform: translateX(0);
}
.drawer__list {
  list-style: none;
  padding-top: 8px;
}
.drawer__item {
  border-bottom: 1px solid var(--nav-border);
}
.drawer__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--nav-text);
  text-align: left;
}
.drawer__btn.is-active {
  background-color: var(--orange);
  color: #fff;
}
.drawer__btn.is-active i {
  color: #fff;
}
.drawer__btn i {
  font-size: 14px;
  color: var(--nav-text);
  flex-shrink: 0;
}

/* ─── 1. SECTION MAINTENANCE (Mise en avant XXL) ─────── */
.maintenance-section {
  max-width: 1300px;
  margin: 90px auto 70px auto;
  padding: 0 20px;
}
.maintenance-icon {
  font-size: 34px;
  color: var(--orange);
  margin-bottom: 20px;
}
.maintenance-title {
  color: var(--bordeaux);
  font-family: "Oswald", sans-serif;
  font-size: 38px;
  margin: 0;
}
.maintenance-text {
  margin-top: 30px;
  color: #4a5568;
  font-size: 22px;
  margin-bottom: 10px;
  line-height: 1.6;
}
.maintenance-text.italic {
  font-style: italic;
  color: #718096;
}

/* ─── 2. SECTION ÉQUIPE (Format compact) ──────────────── */
.team-section {
  background-color: #820e1212;
  max-width: 1150px;
  margin: 0 auto 40px auto;
  padding: 30px 20px;
}
.team-section__title {
  color: var(--bordeaux);
  font-family: "Oswald", sans-serif;
  font-size: 24px;
  margin-bottom: 25px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}
.team-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.team-item__icon {
  font-size: 38px;
  color: var(--bordeaux);
  margin-bottom: 12px;
}
.team-item__title {
  color: var(--bordeaux);
  font-family: "Oswald", sans-serif;
  font-size: 22px;
  margin-bottom: 8px;
}
.team-item__desc {
  color: #555;
  font-size: 14px;
  line-height: 1.4;
  max-width: 280px;
  margin: 0 auto;
}
.team-section__action {
  text-align: right;
  margin-top: 40px;
}
.btn-primary {
  display: inline-block;
  background-color: var(--bordeaux);
  color: #fff;
  padding: 12px 24px;
  font-family: var(--font);
  font-weight: bold;
  text-decoration: none;
  font-size: 15px;
  border-radius: 3px;
  transition: background-color 0.3s ease;
}
.btn-primary:hover {
  background-color: #630a0d;
}

/* ─── 3. SECTION CONTACTS ─────────────────────────────── */
.contacts-section {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px 60px 20px;
}
.contacts-section__title {
  color: var(--bordeaux);
  font-family: "Oswald", sans-serif;
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 30px;
}
.contacts-separator {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}
.contacts-separator__title {
  color: var(--orange);
  font-family: "Oswald", sans-serif;
  font-size: 24px;
  margin-right: 15px;
}
.contacts-separator__line {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.contacts-separator__line::before {
  content: "";
  position: absolute;
  width: 100%;
  border-top: 1px dotted var(--orange);
  z-index: 1;
}
.contacts-separator__line i {
  color: var(--orange);
  background-color: #fff;
  padding: 0 10px;
  z-index: 2;
  font-size: 18px;
}
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 60px;
}
.contact-block {
  margin-bottom: 30px;
}
.contact-block__title {
  color: var(--bordeaux);
  font-family: "Oswald", sans-serif;
  font-size: 20px;
  margin-bottom: 12px;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-list--mt {
  margin-top: 15px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  color: #555;
  font-size: 15px;
}
.contact-list li i {
  color: var(--bordeaux);
  width: 16px;
  text-align: center;
}
.contact-list li a {
  color: #555;
  text-decoration: none;
  transition: color 0.2s;
}
.contact-list li a:hover {
  color: var(--bordeaux);
  text-decoration: underline;
}

/* ─── FOOTER ──────────────────────────────────────────── */
.site-footer {
  background-color: var(--bordeaux);
  color: #fff;
  padding: 60px 0;
  position: relative;
}
.footer-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer-col {
  display: flex;
  flex-direction: column;
}
.footer-title {
  font-family: "Oswald", sans-serif;
  font-size: 20.8px;
  color: #ffffff;
  margin-bottom: 25px;
  letter-spacing: 0.5px;
  line-height: 1.2em;
}
.footer-list {
  list-style: none;
}
.footer-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.6;
}
.footer-list li i {
  margin-top: 5px;
  width: 16px;
  text-align: center;
}
.footer-list a {
  color: #fff;
  text-decoration: none;
}
.footer-list a:hover {
  text-decoration: underline;
}
.footer-socials {
  display: flex;
  gap: 15px;
}
.footer-socials a {
  color: #fff;
  font-size: 24px;
  text-decoration: none;
  transition: transform 0.2s;
}
.footer-socials a:hover {
  transform: translateY(-3px);
}
.footer-space-top {
  margin-top: 20px;
}
.footer-space-top-lg {
  margin-top: 15px;
}
.footer-logos-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}
.footer-logos-row.row-bottom {
  margin-bottom: 25px;
}
.logo-ens,
.logo-ehess,
.logo-cnrs {
  height: 60px;
  width: auto;
}
.logo-cnrs {
  padding: 5px;
}
.bg-white {
  background-color: #fff;
}
.logo-inrae {
  height: 45px;
  width: auto;
  display: block;
}
.scroll-top {
  position: absolute;
  bottom: 0;
  right: 5%;
  background-color: var(--orange);
  color: #fff;
  border: none;
  width: 45px;
  height: 35px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scroll-top:hover {
  background-color: var(--orange-hover);
}

/* Harmonisation globale Oswald Weight (Vert) */
.maintenance-title,
.team-section__title,
.team-item__title,
.contacts-section__title,
.contacts-separator__title,
.contact-block__title,
.footer-title {
  font-weight: 400;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE (Tablette & Mobile ≤ 900px)
   ═══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  /* Grille des contacts sur une seule colonne */
  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .footer-container,
  .team-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .header-main__search,
  .main-nav {
    display: none;
  }
  .top-bar .container {
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .header-main .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    row-gap: 15px;
    padding-top: 20px;
    padding-bottom: 25px;
    align-items: center;
  }
  .header-main__brand {
    display: contents;
  }
  .header-main__title {
    grid-column: 1;
    grid-row: 1;
    font-size: clamp(22px, 4vw, 28px);
    white-space: normal;
    margin: 0;
    line-height: 1.1;
  }
  .nav-toggle {
    display: inline-flex;
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    width: 60px;
    height: 60px;
    font-size: 24px;
  }
  .header-main__logo {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: center;
    height: auto;
    max-height: 110px;
    z-index: 2;
  }
  .header-main__photo {
    width: 65%;
    opacity: 0.9;
  }
}

@media (max-width: 480px) {
  .header-main__logo {
    max-height: 75px;
  }
  .nav-toggle {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}
