:root {
  --gold: #e9552f
}

html {
  scroll-padding-top: 64px;
}
@media (max-width: 768px) {
	html {
	scroll-padding-top: 124px;
	}
}

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: #ffffff;
  color: #3d3a37;
  line-height: 22px;
  font-size: 1rem;
}

/* HERO BANNIÈRE */
.hero {
  width: 100vw;
  min-width: 100%;
  position: relative;
  background: url('../assets/banner-b.jpg') center center / cover no-repeat;
  min-height: 300px;
  height: auto;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 16px;
  padding-bottom: 16px;
}

/* Sélecteur de langue en haut à droite */
.language-selector {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  background: #fff;
  border: 1px solid var(--gold);
  border-radius: 18px;
  padding: 6px 16px 6px 12px;
  font-size: 15px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  display: flex;
  align-items: center;
  transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
}

.language-selector:hover,
.language-selector:focus-within {
  border-color: #b89e64; /* doré un peu plus foncé */
  box-shadow: 0 6px 24px rgba(182,158,100,0.13);
}

.language-selector select {
  border: none;
  background: transparent;
  font-size: 15px;
  font-family: inherit;
  color: #3d3a37;
  padding: 4px 4px 4px 4px;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: none;
  min-width: 110px;
  font-weight: 300;
  transition: color 0.2s;
}

.language-selector select:focus {
  outline: none;
}

.language-selector select:hover {
  color: #b89e64;
}

.language-selector option {
  color: #3d3a37;
  background: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .language-selector {
    top: 8px;
    right: 8px;
    padding: 4px 10px 4px 10px;
    font-size: 13px;
    border-radius: 14px;
  }
  .language-selector select {
    font-size: 13px;
    min-width: 90px;
    background-size: 16px 16px;
  }
}


/* Contenu centré */
.hero-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 0px;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  box-sizing: border-box;
}

/* Logo au-dessus du titre */
.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.logo {
  margin-bottom: 0;
}

.logo img {
  height: 80px;
  display: block;
}

.hero-text {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin: 0;
  color: white;
}

.hero-text .supertitle {
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 2.5rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  line-height: 35px;
  text-align: left;
}

/* RESPONSIVE HERO */
@media (max-width: 768px) {
  .hero {
	background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),url('../assets/header-mobile.jpg'); /* url mobile */
	background-position: center center; /* pour centrer */
	background-size: cover;
    min-height: 220px;
    height: auto;
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .hero-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 0 10px;
  }
  .hero-left {
    width: 100%;
    gap: 8px;
  }
  .logo img {
    height: 50px;
    max-width: 90vw;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-text .supertitle {
    font-size: 2rem;
    line-height: 30px;
  }
  .language-selector {
    top: 8px;
    right: 8px;
    padding: 8px;
    font-size: 13px;
    max-width: 90vw;
  }
}

/* MAIN CONTENT */
main {
  max-width: 1000px;
  margin: 50px auto;
  padding: 0 20px;
}

h1 {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 30px;
  margin-top: 30px;
  line-height:2.5rem;
}

h2 {
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 30px;
  margin-top: 30px;
}

h3 {
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 20px;
  margin-top: 20px;
}

ul {
  padding-left: 20px;
  color: #3d3a37;
}

ul li {
  margin-bottom: 8px;
  list-style-type: disc;
}

ol {
  padding-left: 20px;
}

ol li {
  margin-bottom: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

th, td {
  border: 1px solid var(--gold);
  padding: 10px;
  text-align: left;
}

th {
  background-color: var(--gold);
  color: white;
}

.image-container {
  text-align: center;
  margin: 20px 0;
}

.image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.download-section {
  text-align: center;
  margin-top: 40px;
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--gold);
  border: none;
  border-radius: 6px;
  padding: 12px 20px;
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
  gap: 10px;
}

.alerte {
	background-color:white;
	color:var(--gold);
}

.download-button img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.download-button:hover,
.download-button:focus {
  background-color: #e9552f;
  transform: translateY(-2px) scale(1.03);
}

/* Responsive download buttons */
@media (max-width: 768px) {
  .download-button {
    width: calc(100% - 20px);
    margin: 0 10px;
  }
}

/* FOOTER */
footer {
  margin-top: 60px;
  background-color: #f2f2f2;
  padding: 20px;
  text-align: center;
  font-size: 14px;
}

/* ACCESSIBILITÉ LIENS */
.liena {
  color: var(--gold) !important;
  text-decoration: none !important;
}

.liena:visited,
.liena:hover,
.liena:active {
  color: var(--gold) !important;
}

.liena:hover {
  text-decoration: underline !important;
}

.liena:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Responsive adaptation */
@media (max-width: 768px) {
  h1 {
	font-size: 2rem;
    line-height:30px;
  }
    h2 {
	font-size: 1.6rem;
    line-height:30px;
  }
}
/* Adaptation iPad et tablettes (portrait et paysage) */
@media (min-width: 769px) and (max-width: 1024px) {
  h1 {
    font-size: 2.2rem;
    line-height: 34px;
  }
  h2 {
    font-size: 1.7rem;
    line-height: 30px;
  }
    .hero-content {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* pour centrer les svg dans les td et tables */
.centered-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* symptomes alerte tableau */
.alert-signals-section {
  background: #fff;
}

.alert-signals-header {
  background: #b93c2b;
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 10px 18px;
  letter-spacing: 1px;
  margin-bottom: 18px;
  text-align: left;
}

.alert-title {
  font-weight: 700;
  letter-spacing: 2px;
}

.alert-subtitle {
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.alert-signals-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 18px;
  margin-bottom: 24px;
}

.alert-signal {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 0px;
  border: 1px solid #e9552f;
  padding: 8px 10px;
  min-width: 0;
  box-sizing: border-box;
  gap: 10px;
}

.icon-cell {
  width: 32px;
  height: 32px;
  background: var(--gold);
  border-radius: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  flex-shrink: 0;
  border: 0px solid #e6b8b0;
}

.signal-text {
  font-size: 1rem;
  color: #3d3a37;
  font-weight: 400;
  line-height: 1.3;
}

/* Bloc texte ou bouton d'action */
.alert-action {
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: 2 / span 2; /* Colonne 2 et 3 sur desktop */
  margin-top: 0;
  border: 1px solid #e9552f;
  background: #fff;
  border-radius: 0px;
  min-height: 48px;
}

/* Texte d'action (non interactif) */
.alert-action-text {
  width: 100%;
  text-align: center;
  font-size: 1.09rem;
  letter-spacing: 1px;
  padding: 12px 28px;
  background: transparent;
  border-radius: 0px;
}

/* Bouton d'action (optionnel, pour réutilisation future) */
.alert-action-btn {
  border: 1px solid var(--gold);
  background: transparent;
  width: 100%;
  color: #3d3a37;
  font-weight: bold;
  padding: 12px 28px;
  border-radius: 0px;
  font-size: 1.09rem;
  cursor: pointer;
  letter-spacing: 1px;
  transition: background 0.2s, color 0.2s;
}

.alert-action-btn:hover {
  background: #b93c2b;
  color: #fff;
}

/* Responsive : 2 colonnes sur tablette */
@media (max-width: 900px) {
  .alert-signals-table {
    grid-template-columns: repeat(2, 1fr);
  }
  .alert-action {
    grid-column: 1 / span 2;
  }
}

/* Responsive : 1 colonne sur mobile */
@media (max-width: 600px) {
  .alert-signals-table {
    grid-template-columns: 1fr;
  }
  .alert-signal {
    padding: 10px 12px;
  }
  .alert-action {
    grid-column: 1;
    margin-top: 10px;
  }
}

/* fin symptomes alerte tableau */
/* nav bar */
.topbar-anchors {
  width: 100vw;
  min-width: 100%;
  background: #fff;
  border-bottom: 2px solid var(--gold);
  display: flex;
  justify-content: center;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 2px 8px rgba(182,158,100,0.05);
  font-family: inherit;
  padding: 0;
}

.topbar-links {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
}

.topbar-link {
  flex: 1 1 0;
  text-align: center;
  padding: 0 24px;
  height: 44px;
  line-height: 44px;
  color: #3d3a37;
  font-weight: 500;
  text-decoration: none;
  font-size: 1.05rem;
  border-bottom: 2px solid transparent;
  transition: background 0.18s, color 0.18s, border-bottom 0.18s;
  white-space: nowrap;
}

.topbar-link:hover,
.topbar-link:focus {
  background: #f7eae7;
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
}

.topbar-select {
  display: none;
}

@media (max-width: 700px) {
  .topbar-links {
    display: none;
  }
  .topbar-select {
    display: block;
    width: 100%;
    padding: 8px 0;
    background: #fff;
  }
  #anchor-select {
    width: 96vw;
    max-width: 500px;
    margin: 0 auto;
    display: block;
    font-size: 1.05rem;
    padding: 10px 12px;
    border: 1px solid var(--gold);
    border-radius: 4px;
    background: #fff;
    color: #3d3a37;
  }
}
/* fin nav bar */
/* widget sos */
/* Widget Urgence */
.emergency-widget-container {
  position: fixed;
  bottom: 2%;
  right: 2%;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

#emergency-widget {
  background: #ee5f3a;
  color: #fff;
  padding: 14px 20px 12px 20px;
  border-radius: 26px;
  font-family: 'Roboto', Arial, sans-serif;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  text-decoration: none;
  text-align: center;
  max-width: 220px;
  min-width: 180px;
  line-height: 1.25;
  word-break: break-word;
  transition: background 0.3s, transform 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#emergency-widget:hover {
  background: #d94e25;
  transform: scale(1.04);
}

#emergency-widget .title {
  font-size: 1.2em;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  display: block;
}

#emergency-widget .subtitle {
  font-size: 1em;
  font-weight: 400;
  margin: 0;
  padding: 0;
  line-height: 1.2;
  display: block;
  letter-spacing: 0.01em;
}

#emergency-widget .number {
  font-size: 1.8em;
  font-weight: 900;
  color: #fff;
  margin-left: 2px;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.10);
}

/* Croix */
.close-btn {
  position: absolute;
  top: -30px;
  right: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ee5f3a;
  color: #fff;
  border: none;
  font-size: 1em;
  font-weight: 500;
  line-height: 36px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.close-btn:hover {
  background: #d94e25;
  transform: scale(1.04);
}

/* Responsive pour mobile */
@media (max-width: 600px) {
  #emergency-widget {
    min-width: 120px;
    max-width: 98vw;
    font-size: 0.95em;
    padding: 10px 8px 10px 8px;
  }
  .emergency-widget-container {
    right: 1%;
    bottom: 1%;
  }
}
@media (max-width: 600px) {
  .emergency-widget-container {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    align-items: stretch;
    border-radius: 0;
  }
  #emergency-widget {
    border-radius: 0;
    max-width: none;
    min-width: 0;
    width: 100vw;
    box-sizing: border-box;
    font-size: 1em;
    padding: 12px 8px;
  }
  .close-btn {
    right: 8px;
    top: 8px;
    position: absolute;
	background: #fff;
	color:#ee5f3a;
  }
}

/* fin widget sos */