/* ========== 1. BANDEAU DOMAINES ========== */

.domain-rotator {
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;

  width: 100%;
  min-height: 90px;
  padding: 5px;

  background: #a47864;
  color: #fff !important;
}

.domain-text {
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;

  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.domain-text.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .domain-rotator {
    min-height: 70px;
  }
}


/* ========== 2. HEADER ========== */

header {
  margin-top: 0;
  text-align: center;
}

.header-menu {
  padding: 10px 0;
  background-color: blanchedalmond;
  text-align: center;
}


/* ========== 3. MENUS PAR LANGUE ========== */

.menu-container {
  display: none;
  justify-content: center;
  flex-wrap: wrap;
  margin: 10px auto;
}

.menu {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;

  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-item {
  text-align: center;
}

.menu-link {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;

  background-color: blanchedalmond;
  color: brown;
  text-decoration: none;

  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;

  transition: background 0.3s, color 0.3s;
}

.menu-link:hover {
  color: black;
  background-color: rgba(255, 255, 255, 0.2);
}


/* ========== 4. SÉLECTEUR DE LANGUE ========== */

.language-selector {
  position: relative;
  display: inline-block;
  margin: 18px auto 10px;
}

#langue-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  padding: 12px 60px 12px 20px;
  padding-right: 42px;
  border: none;
  border-radius: 10px;

  background-color: #fff;
  color: #a47864;
  cursor: pointer;

  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 28px;
  font-weight: 800;

  background-image: url("data:image/svg+xml,%3Csvg width='14' height='10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l7 10 7-10z' fill='%23fff'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 14px;
}

#langue-select:focus {
  outline: none;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.language-selector::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 0;
  height: 0;
  transform: translateY(-35%);

  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 10px solid black;

  pointer-events: none;
}


/* ========== 5. VARIANTE #langSelect ========== */

#langSelect {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  padding: 14px 48px 14px 18px;
  border: 2px solid #888;
  border-radius: 12px;

  background-color: white;
  color: black;
  cursor: pointer;

  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 132px;
  font-weight: 800;

  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ff0000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;

  transition: all 0.3s ease;
}

#langSelect option {
  font-size: 32px;
  font-weight: 800;
}


/* ========== 6. IFRAME ========== */

iframe#frameBas {
  display: block;
  width: 100%;
  height: 80vh;
  border: none;
}

.frameBas {
  background-color: #f0eee9;
}


/* ========== 7. FOOTER ========== */

footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;

  padding: 10px 0;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));

  background: #a47864;
  color: white;
  text-align: center;

  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 30px;
  font-weight: bold;
}


/* ========== 8. IMAGES GÉNÉRALES ========== */

img {
  max-width: 100%;
  height: auto;
}


/* ========== 9. RTL ARABE ========== */

#menu-ar {
  direction: rtl;
}