@font-face {
  font-family: 'EB Garamond';
  src: url('https://fonts.googleapis.com/css2?family=EB+Garamond&display=swap');
  font-display: swap;
}

body {
  font-family: 'EB Garamond', serif;
  margin: 0;
  background-color: #fdfdfd;
  color: #222;
  overflow-x: hidden;
}

main {
  max-width: 960px;
  margin: 0rem auto ; /* réduit l’espace au-dessus */
  padding: 0 1rem;
  text-align: left;
  position: relative;
  z-index: 1;
}

.subtitle {
  font-style: italic;
  color: #666;
  font-size: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 3rem;
}

.site-title {
  text-align: center;
  margin-top: 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #111111;
  background-image: url('head-background.png');
  background-size: cover;
  background-position: center;
  padding: 2rem 1rem; /* hauteur du bandeau */
}

.hero-text {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: #111111;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  z-index: 945;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease 0.3s;
}

.hero-text {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero-text.visible {
  opacity: 1;
}


footer {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #f2f2f2;
  border-top: 1px solid #ccc;
  font-size: 0.95rem;
  color: #444;
}

footer a {
  color: #2e5f4d;
  text-decoration: none;
  margin: 0 0.5rem;
}

footer a:hover {
  text-decoration: underline;
}

.menu-wrapper {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1000;
  pointer-events: none;
}

.menu-quarter {
  position: absolute;
  width: 120px;
  height: 120px;
  background-color: #2e5f4d;
  top: 0;
  right: 0;
  border-bottom-left-radius: 100%;
  z-index: 1001;
  pointer-events: auto;
}

.menu-background-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('menu-background.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  clip-path: circle(0% at top right);
  transition: clip-path 0.7s ease-in-out;
  z-index: 940;
  pointer-events: none;
}

.menu-background-image.show {
  clip-path: circle(150% at top right);
}

.menu-fill {
  position: fixed;
  width: 120px;
  height: 120px;
  background-color: transparent;
  border-bottom-left-radius: 100%;
  top: 0;
  right: 0;
  transform: scale(1);
  transform-origin: top right;
  transition: transform 0.7s ease-in-out;
  z-index: 950;
  pointer-events: none;
}

.menu-fill.expand {
  transform: scale(50);
}

.menu-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1002;
  pointer-events: auto;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: white;
  transition: all 0.4s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.full-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 20vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: white;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease 0.3s;
  z-index: 960;
}

.full-menu.show {
  opacity: 1;
  pointer-events: auto;
}

.full-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: right;
  padding-right: 2rem;
  width: 100%;
}

.full-menu li {
  margin: 1.2rem 0;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.5s ease;
}

.full-menu.show li {
  opacity: 1;
  transform: translateX(0);
}

.full-menu li a {
  font-size: 2rem;
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.full-menu li a:hover {
  color: #2e5f4d;
  letter-spacing: 0.5px;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 4rem auto;
  padding: 0 1rem;
}

.grid-item {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 280px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.grid-item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.grid-item .motto {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 1rem 1.5rem;
  font-size: 1.6rem;
  text-align: center;
  z-index: 2;
  border-radius: 6px;
  max-width: 90%;
  font-style: italic;
}

/* === BLOC ALTERNÉ TEXTE / IMAGE === */

.alt-sections {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin: 4rem auto;
  max-width: 1000px;
  padding: 0 1rem;
}

.alt-block {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.alt-block.reverse {
  flex-direction: row-reverse;
}

.alt-img {
  flex: 1;
  height: 320px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.alt-text {
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.6;
}

.alt-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #2e5f4d;
}