@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@400;700&family=Roboto:wght@100;300;400;500;700;900&display=swap');

:root {
    --primary-color: #fffaf7;
    --secondary-color: #ff6d38;
    --accent-color: #7a78ff;
    --heading-color: #333;
    --light-color: #f9f9f9;
    --dark-color: #333;

    --btn-primary-bg: #333;
    --btn-secondary-bg: #e74c3c;
    --btn-accent-bg: #00a652;
    --btn-primary-hover-bg: #8584ff;
    --btn-secondary-hover-bg: #333;

    --font-family-heading: 'Amatic SC', sans-serif;
    --border-radius: 8px;

    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 3px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 5px 15px rgba(0, 0, 0, 0.2);

    --section-margin: 2rem 0;
    --container-width: 90%;
}

/* Base typographique */
* {
  font-family: 'Roboto', sans-serif;
  font-style: normal;
  font-size: 1.2rem;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}




/* Empêche tout débordement horizontal */
body, html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}


/* Titres */
h1 {
  font-family: 'AmaticSC', cursive;
  font-weight: bold;
  font-size: 2rem;
  text-transform: uppercase;
}

/* Paragraphes */
p {
  font-family: 'Roboto', sans-serif;
  font-size: 1.2rem;
}

.overlay-content,
#main-content,
#tutorial,
#call-to-action {
  text-align: center;
}



/* ======= NAVIGATION FIXE ======= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  padding: 1rem 2rem;
  z-index: 100;
}

/* ======= STRUCTURE INTERNE ======= */
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}

/* ======= LOGO ======= */
.nav-logo a {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--heading-color);
}

.nav-logo a .highlight {
  color: var(--secondary-color);
  font-size: inherit;
  font-weight: inherit;
}

.nav-logo .emoji {
  font-size: 1.5rem;
  margin-right: 0.3rem;
}

.nav-logo a span:not(.emoji) {
  color: var(--secondary-color);
}

/* ======= MENU PRINCIPAL ======= */
.nav-menu ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-menu li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--heading-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--accent-color);
}

/* ======= BOUTON D'ACTION ======= */
.nav-action button {
  background-color: var(--btn-secondary-bg);
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.nav-action button:hover {
  background-color: var(--accent-color);
}

/* ======= MENU BURGER ======= */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background: var(--heading-color);
  margin: 4px 0;
  border-radius: 2px;
}

/* ======= RESPONSIVE ======= */
@media (max-width: 768px) {
  .nav-menu ul {
    display: none;
    flex-direction: column;
    background-color: var(--primary-color);
    position: absolute;
    top: 70px;
    right: 20px;
    width: 200px;
    box-shadow: var(--shadow-md);
    padding: 1rem;
    border-radius: 10px;
  }

  .nav-menu ul.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-action {
    display: none;
  }
}


/* ======= HEADER & IMAGE ======= */
header {
  position: relative;
  width: 100%;
  height: 80vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5)), url('../images/background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

/* ======= CONTENU CENTRAL ======= */
.overlay-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
  color: white;
}

.overlay-content h1 {
  margin-bottom: 1rem;
}

.overlay-content p {
  font-size: 1.2rem;
  line-height: 1.6;
}

/* ======= FORMULAIRE ======= */
#search-container {
  position: relative;
  top: -3rem; /* chevauche le bas du header */
  margin: 0 auto;
  width: 80vw;
  max-width: 900px;
  background-color: white;
  color: #333;
  border-radius: 0.5em;
  padding: 1.5em 1em;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  z-index: 10;
}

/* ======= CHAMPS ======= */
.form-group {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.form-group label {
  font-family: 'AmaticSC', sans-serif;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

/* ======= BOUTON ======= */
.button-group {
  flex: 1 1 100%;
  display: flex;
  justify-content: center;
}

button {
  cursor: pointer;
  border: 1px solid black;
  font-size: 1rem;
  font-weight: normal;
  border-radius: 0.5em;
  padding: 0.5em 1em;
  background-color: var(--btn-secondary-bg);
  color: white;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #00a652;
}

/* ======= RESPONSIVE ======= */
@media (max-width: 768px) {
  header {
    height: auto;
    padding: 4rem 2rem;
  }

  #search-container {
    flex-direction: column;
    align-items: stretch;
    top: 0;
    width: 90vw;
  }

  .form-group {
    flex: 1 1 100%;
  }

  .button-group {
    justify-content: center;
  }
}


/* ======= SECTION SUIVANTE ======= */
#main-content {
  margin-top: 6rem;
  padding: 2rem;
  text-align: center;
}

#main-content h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

#main-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* ======= GALERIE D'IMAGES ======= */
.container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 0.5rem;
  width: var(--container-width, 90%);
  height: 80vh;
  margin: 2rem auto;
  padding: 1rem;
}

.item {
  overflow: hidden;
  border-radius: var(--border-radius, 8px);
  box-shadow: var(--shadow-sm, 0 2px 5px rgba(0, 0, 0, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
}

.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

/* Placement personnalisé */
.item-1 { grid-row: 1 / 3; grid-column: 1 / 2; }
.item-2 { grid-row: 3 / 4; grid-column: 1 / 2; }
.item-3 { grid-row: 1 / 2; grid-column: 2 / 3; }
.item-4 { grid-row: 2 / 4; grid-column: 2 / 3; }
.item-5 { grid-row: 1 / 3; grid-column: 3 / 4; }
.item-6 { grid-row: 3 / 4; grid-column: 3 / 4; }
.item-7 { grid-row: 1 / 2; grid-column: 4 / 5; }
.item-8 { grid-row: 2 / 4; grid-column: 4 / 5; }

/* ======= RESPONSIVE ======= */
@media (max-width: 768px) {
  .overlay-content h1 {
    font-size: 2rem;
  }

  #search-container {
    flex-direction: column;
    align-items: stretch;
    bottom: -4rem;
    width: 90vw;
  }

  .form-group {
    flex: 1 1 100%;
  }

  .button-group {
    justify-content: center;
  }

  .container {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
  }

  .item {
    height: 300px;
  }

  .item-1,
  .item-2,
  .item-3,
  .item-4,
  .item-5,
  .item-6,
  .item-7,
  .item-8 {
    grid-column: auto;
    grid-row: auto;
  }
}


.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 colonnes en plein écran */
  gap: 2rem;
  padding: 2rem;
  justify-items: center; /* centre les carrés dans chaque colonne */
}

.step {
  width: 250px;
  height: 250px;
  background-color: #f9f9f9;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}

.step:hover {
  transform: translateY(-5px);
}

.step i {
  font-size: 3.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.step h3 {
  margin: 0.5rem 0;
  font-size: 1.2rem;
  color: var(--heading-color);
}

.step p {
  font-size: 0.95rem;
  color: var(--text-color);
}

/* Responsive : 1 colonne sur mobile */
@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

@media (max-width: 768px) {
  .step i {
    font-size: 2.8rem;
  }
}




#call-to-action {
  margin: 1rem auto; /* espace haut et bas */
  padding: 3rem;
  text-align: center;
  background-color: #fff;
}

#call-to-action h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

#call-to-action p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

#call-to-action button {
  margin: 0.5rem;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 2rem;
  background-color: #ff6b6b;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#call-to-action button:hover {
  background-color: #00a652;
}






.footer {
  background-color: var(--dark-color);
  padding: 3rem 2rem;
  color: var(--primary-color);
  font-family: sans-serif;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-column h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.footer-column p,
.footer-column ul {
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column ul li a {
  text-decoration: none;
  color: #bbb;
}

.footer-column ul li a:hover {
  text-decoration: underline;
}


/* Grid layout for columns */
.footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-bottom {
  grid-column: 1 / -1; /* s'étend sur toutes les colonnes */
  text-align: center;
  font-size: 0.85rem;
  color: #bbb;
  border-top: 1px solid #bbb;
  padding-top: 1rem;
}


/* Responsive layout */
@media (max-width: 768px) {
  .footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-column {
    align-items: center;
  }
}