@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600&family=Lato:wght@400;500&display=swap');

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: white;
  color: #333;
}

nav, #navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5rem;
  background: linear-gradient(to bottom, #ffffff, #f0f0f0);
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: top 0.4s ease;
}

nav img {
  height: 60px;
  width: auto;
  margin: 0;
  margin-left: 1cm;
}

nav a {
  text-decoration: none;
  color: #000000;
  padding: 0.5rem 1rem;
  width: auto;
  text-align: left;
  font-weight: bold;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  font-size: 1.2rem;
}

nav a:first-of-type {
  /*margin-left: 2cm;*/
}

nav a:hover {
  color: #007b5e;
  text-decoration: underline;
}




/* ====== Dropdown Géométrie ====== */
nav .dropdown {
  position: relative;           /* référence pour le positionnement absolu */
}

nav .dropbtn {
  cursor: pointer;
  /* on peut conserver le même padding/fonte que nav a */
}

nav .dropdown-content {
  display: none;                /* caché par défaut */
  position: absolute;
  top: 100%;                    /* juste sous la barre */
  left: 50%;                    /* on centre horizontalement */
  transform: translateX(-50%);
  background: #fff;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  border-radius: 4px;
  z-index: 1001;
  text-align: center;           /* centre le texte à l’intérieur */
}

nav .dropdown-content a {
  display: block;
  width: 80%;
  padding: 0.75rem 1rem;        /* plus de padding pour espacer */
  margin: 0.25rem 0;            /* espace vertical entre les items */
  white-space: nowrap;
  font-size: 1.1rem;
}

nav .dropdown:hover .dropdown-content {
  display: block;               /* révèle le menu au survol */
}

/* Hover styles (optionnel) */
nav .dropdown-content a:hover {
  background: #f5f5f5;
}


















.main-content, .home {
  margin-left: 5px;
  padding: 5rem;
  background-color: #ffffff;
  min-height: 100vh;
}

.main-content h1 {
  /*font-family: 'Playfair Display', serif;*/
  font-size: 2.8em;
   margin-top: 2rem;
}

.main-content h2 {
  font-size: 1.8em;
}

.home h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 600;
  color: #1a1a1a;
  text-align: left;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.home h2 {
  font-family: 'Lato', sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: #555;
  text-align: left;
  margin-bottom: 2rem;
  max-width: 700px;
}

.content-row {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.main-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.text-block {
  flex: 1;
  min-width: 250px;
  padding-top: 80px;
}

.text-block p {
  font-size: 1.5rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 1rem;
  text-align: justify;
  font-style: italic;
}

.main-figure {
  margin: 0;
  text-align: center;
}

.main-figure figcaption {
  font-size: 1.1rem;
  color: #666;
}

.wikibox {
  width: 80%;
  margin: 2em auto;
  border: 5px solid #f0f0f0;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-family: sans-serif;
  overflow: hidden;
}

.wikibox-title {
  background-color: #f0f0f0;
  padding: 0.4em 1em;
  font-weight: bold;
  color: #333;
  border-bottom: 1px solid #ccc;
  font-size: 1.3em;
}

.wikibox-content {
  background-color: #fff;
  padding: 1em;
  color: #222;
  font-size: 1.2em;
  line-height: 1.6;
}

.intro {
  max-width: 800px;
  margin: 2em auto;
  padding: 1em;
  background-color: #f9f9f9;
  border-left: 4px solid #ccc;
  font-family: sans-serif;
  line-height: 1.6;
  color: #333;
  font-size: 1.2em;
}

.intro h2 {
  font-size: 1.8em;
  margin-bottom: 0.5em;
}

.intro strong {
  color: #000;
}

.intro em {
  font-style: italic;
  color: #555;
}

.centered-image {
  display: block;
  margin: 0 auto;
}

h1, h2, h3, h4, h5, h6 {
  margin: 5px;
}

p {
  margin: 5px;
}

footer {
  background-color: #222;
  color: #fff;
  padding: 2em 0;
  text-align: center;
  font-size: 0.9rem;
  position: relative;
  bottom: 0;
  width: 100%;
}

.contact-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  min-height: 80vh;
  background-color: white;
  flex-wrap: wrap;
  gap: 3rem;
}

.contact-content {
  flex: 1;
  min-width: 300px;
}

.contact-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.email-contact a {
  font-size: 1.4rem;
  font-weight: bold;
  color: #007b5e;
  text-decoration: none;
}

.email-contact a:hover {
  text-decoration: underline;
}

.contact-image img {
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);*/
}

.relief-image {
  display: block;
  margin: 0 auto;
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  background-color: white;
}

.image-row {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
  flex-wrap: wrap;
}
.image-caption {
  display: block; /* ou inline-block si besoin */
  text-align: center;
  margin: 0 auto;  /* facultatif selon le contexte */
}
/*\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
.materiel-section {
  background-color: white;
  padding: 40px 20px;
}

.materiel-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.materiel-text {
  flex: 1;
}

.materiel-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #333;
}

.materiel-text p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #555;
}

.materiel-text ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  color: #444;
}

.materiel-image {
  flex: 1;
  text-align: center;
}

.materiel-image img {
  max-width: 100%;
  border-radius: 12px;
  /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);*/
}
