:root {
  --vert: #02554a;
  --rose: #fdecee;
  --rouge: #f9b342;
  --creme: #ee754d;
  --blanc: #ffffff;
  --noir: #000000;
}

/* --------------------------
   Reset
-------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Beatrice', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  background-color: var(--creme);
  color: var(--vert);
}

/* --------------------------
   Typographies
-------------------------- */
h1, h2, h3 {
  font-family: "sweet-and-salty", sans-serif;
font-weight: 400;
font-style: normal;
  color: var(--vert);
  letter-spacing: 1px;
}

h1.variant-gig {
  font-family: "gigalypse", sans-serif;
  font-weight: 800;
}

h1.variant-rosso {
  font-family: "artigo-display", serif;
  font-weight: 700;
}

p {
  font-family: "montserrat", sans-serif;
    font-weight: 500;
    font-style: normal;
}

/* --------------------------
   Grille de fond (carrelage)
-------------------------- */
.bg-quadrillage {
  background-color: #fdfcf7;
  background-image: url("img/Motif.svg");
  background-size: cover;   /* fait remplir toute la section */
  background-repeat: no-repeat; /* empêche la répétition */
  background-position: center;  /* centre l’image dans la section */
  width: 100%;   /* largeur pleine */
  height: auto; /* hauteur de la section = hauteur de l’écran */
}

/* --------------------------
   Navigation
-------------------------- */
header {
  position: fixed; /* header fixe */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--rose);
  padding: 1rem 2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav ul li a {
  text-decoration: none;
  font-family: "fatfrank", sans-serif;
font-weight: 400;
font-style: normal;
  font-size: 1.1rem;
  color: var(--vert);
  transition: 0.3s;
}

nav ul li a:hover {
  color: var(--rouge);
}

/* Burger menu */
.menu-icon {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}

.menu-icon span {
  width: 25px;
  height: 3px;
  background: var(--rouge);
  border-radius: 2px;
  transition: 0.3s;
}

#menu-toggle {
  display: none;
}

/* Responsive burger */
@media screen and (max-width: 768px) {
  nav ul {
    position: absolute;
    top: 53px;
    right: 0;
    background: var(--rose);
    flex-direction: column;
    width: 100%;
    padding: 1rem;
    gap: 1rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    text-align: center;
  }

  #menu-toggle:checked~ul {
    transform: translateX(0);
  }

  .menu-icon {
    display: flex;
  }
}

#menu-toggle:checked+.menu-icon span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
#menu-toggle:checked+.menu-icon span:nth-child(2) {
  opacity: 0;
}
#menu-toggle:checked+.menu-icon span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* --------------------------
   Hero
-------------------------- */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.hero-text {
  max-width: 600px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-family: "gigalypse", sans-serif;
  font-weight: 800;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  line-height: 1.4;
}

/* --------------------------
   Bouton style sticker
-------------------------- */
.btn {
  display: inline-block;
  background: var(--rouge);
  color: var(--blanc);
  font-family: 'Rosso Alt Regular', sans-serif;
  padding: 1rem 2rem;
  border-radius: 40px;
  text-transform: uppercase;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translate(-4px, -4px);
  box-shadow: 6px 6px 0 var(--rose);
}


/* ======================== TITRES ======================== */
.timeline-container h2 {
    font-family: "sweet-and-salty", sans-serif;
font-weight: 400;
font-style: normal;
    color: var(--rose);
    animation: fadeInUp 1s ease forwards;
}

/* ===================== TIMELINE ===================== */
.timeline-container {
  padding: 6rem 0rem 4rem 0rem;
}

.timeline-container h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--rouge);
}

.timeline.horizontal {
  display: flex;
  justify-content: space-between;
  position: relative;
  max-width: 1200px;
  margin: 0 auto 4rem auto;
  align-items: flex-start;
}

.timeline.horizontal::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--rouge);
  border-radius: 2px;
  z-index: 0;
}

.timeline-item {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.timeline-circle {
  width: 20px;
  height: 20px;
  background: var(--rose);
  border-radius: 50%;
  position: relative;
  top: -10px;
  margin-bottom: 1rem;
  z-index: 2;
}

.timeline-content {
  text-align: center;
  margin-top: 10px;
  background: var(--blanc);
  padding: 1rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  max-width: 230px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.timeline-item:hover .timeline-circle {
  transform: scale(1.5);
  background: var(--rouge);
  transition: transform 0.3s ease, background 0.3s ease;
}

.timeline-item:hover .timeline-content {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  opacity: 1;
  transition: all 0.3s ease;
}

/* Responsive timeline */
@media (max-width: 900px) {
  .timeline.horizontal {
    flex-direction: column;
    align-items: center;
  }
  .timeline.horizontal::before {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
  }
  .timeline-content {
    max-width: 80%;
  }
}

/* ===================== SECTION UNIVERSE ===================== */
.universe-section {
  width: 100%;
  background: var(--rose);
  text-align: center;
  padding: 4rem 2rem;
  color: var(--vert);
  margin-bottom: 4rem;
}

.universe-section h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.universe-section p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===================== VAGUES ===================== */
.wave1, .wave2 {
  position: relative;
  height: 80px;
}

.wave1 {
  background: var(--rouge);
  background-image: radial-gradient(circle at 20px -20px, transparent 40px, var(--creme) 41px);
  background-size: 40px 80px;
  animation: waveMove 6s infinite linear;
}

.wave2 {
  background: var(--vert);
  background-image: radial-gradient(circle at 20px -20px, transparent 40px, var(--creme) 41px);
  background-size: 40px 80px;
}

.wave2.flip {
  transform: rotate(180deg);
  animation: waveMove 6s infinite linear;
}

@keyframes waveMove {
  0% { background-position-x: 0; }
  100% { background-position-x: 160px; }
}

/* ===================== TOOLS ===================== */
.tools {
  padding: 4rem 2rem;
  text-align: center;
  background: var(--rouge);
}

.tools h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--rose);
}

.tools-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.tool-card {
  background: var(--blanc);
  border-radius: 15px;
  padding: 2rem 1.5rem;
  width: 250px;
  transition: transform 0.2s ease;
}

.tool-card:hover {
  transform: translateY(-6px);
}

.tool-img {
  width: 100%;
  height: 250px;
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tool-img img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  display: block;
}

.tool-card h3 {
  font-family: "fatfrank", sans-serif;
font-weight: 400;
font-style: normal;
  margin-bottom: 0.5rem;
  color: var(--vert);
}

.tool-card p {
  font-size: 0.95rem;
  color: var(--vert);
  line-height: 1.4;
}

/* Responsive tools */
@media (max-width: 900px) {
  .tools-container {
    flex-direction: column;
    align-items: center;
  }
  .tool-card {
    width: 90%;
  }
}

/* --------------------------
   Footer
-------------------------- */

footer {
  background: var(--rose);
  color: var(--blanc);
  font-family: "montserrat", sans-serif;
font-weight: 500;
font-style: normal;
}

footer a {
  color: var(--vert);
  text-decoration: none;
}

footer a:hover {
  color: var(--rouge);
}

/* Top sections */
.footer-top {
  display: grid;
  /*grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));*/
  gap: 2rem;
  padding: 3rem 2rem;
  text-align: center;
}

/* Sections individuelles */
.footer-section h3 {
  margin-bottom: 1rem;
  font-family: "fatfrank", sans-serif;
font-weight: 400;
font-style: normal;
  text-transform: uppercase;
  color: var(--vert);
}

.footer-section p,
.footer-section li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--vert);
}

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

/* Réseaux sociaux */
.social-icons a {
  font-size: 1.5rem;
  margin-right: 1rem;
  display: inline-block;
}

.social-icon a {
  font-size: 1.5rem;
    margin-right: 1rem;
    margin-left: 1rem;
}

/* Newsletter */
.footer-section form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-section input[type="email"] {
  padding: 0.5rem 1rem;
  border-radius: 30px;
  border: none;
  flex: 1 1 auto;
}

.footer-section button {
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  border: none;
  background: var(--rouge);
  color: var(--blanc);
  cursor: pointer;
  transition: all 0.2s ease;
}

.footer-section button:hover {
  background: var(--rose);
  color: var(--vert);
  transform: translate(-2px, -2px);
}

/* Bottom section */
.footer-bottom {
  text-align: center;
  padding: 1rem 2rem;
  background: rgba(0,0,0,0.1);
  font-size: 0.9rem;
}

.footer-bottom p {
color: var(--vert);
}

/* Responsive */
@media screen and (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-section form {
    flex-direction: column;
  }

  .footer-section input[type="email"],
  .footer-section button {
    width: 100%;
  }
}

/* --------------------------
   Responsive
-------------------------- */
@media screen and (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
  }
}

@media screen and (max-width: 768px) {
  nav {
    flex-direction: column;
  }
  nav ul {
    gap: 1rem;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .project-card {
    padding: 1rem;
  }
  .project-card img {
    height: auto;
  }
  .hero {
    padding: 2rem 1rem;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 0.95rem;
  }
  .btn {
    padding: 0.7rem 1.2rem;
  }
}
