:root {
  --beige: #f9f5f0;
  --green: #a8c4a2;
  --dark-green: #5d7a64;
  --text: #333;
  --white: #ffffff;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--beige);
  color: var(--text);
  line-height: 1.6;
}

header {
  background-color: var(--green);
  color: var(--white);
  padding: 1rem 1rem;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 2rem;
}

header span {
  font-size: 1.2rem;
}

nav {
  background: var(--dark-green);
  text-align: center;
  padding: 1rem 0;
}

nav a {
  color: var(--white);
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
}

section {
  padding: 1rem 1.5rem;
  max-width: 900px;
  margin: auto;
}
.apropos {
  display: flex;
  flex-direction: row;
  max-width: 1000px;
  align-items: flex-start;
  margin: auto;
}

.portrait {
	  border-radius: 40px;
	  padding: 1rem 1.5rem;
      width: 55%;
	  min-width: 40%;
      height: auto;/* Garde les proportions de l'image */
	  
    }

h2 {
  color: var(--dark-green);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}


footer {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--green);
  color: var(--white);
  font-size: 0.9rem;
}

footer label {
  cursor: pointer;
  text-decoration: underline;
}

iframe {
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Modal styles */
#modal-toggle {
  display: none;
}

.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#modal-toggle:checked + .modal {
  display: flex;
}

.modal-overlay {
  position: absolute;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  cursor: pointer;
  top: 0; left: 0;
}

.modal-box {
  position: relative;
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  color: #888;
  cursor: pointer;
}

@media (max-width: 600px) {
  header h1 {
    font-size: 1.5rem;
  }
  
.apropos {
    flex-direction: column-reverse;
    align-items: center;
    
  }

  nav a {
    display: grid;
	margin: 5px 0;
  }
}