: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: "rig-solid-bold-reverse", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  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;
  box-shadow: 4px 4px 0 var(--vert);
  transition: all 0.2s ease;
  text-decoration: none;
}

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


/* -------------------- CONTACT SECTION -------------------- */

.intro {
  padding: 3rem;
  background-color: var(--vert);
  margin-top: 3rem;
}

.contact {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact h2 {
  font-family: "fatfrank", sans-serif;
font-weight: 400;
font-style: normal;
  margin-bottom: 1rem;
  color: var(--noir);
  animation: fadeInUp 1s ease forwards;
  color: var(--blanc);
}

.contact p {
  font-family: var(--font-text);
  font-size: 1.2rem;
  animation: fadeInUp 1.2s ease forwards;
  font-family: "dreaming-outloud-sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: var(--blanc);
}



/* -------------------- BLOC ENCADRÉ -------------------- */
.contact-block {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  padding: 5rem 2rem 5rem 2rem;
  border-radius: 15px;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;

}

/* -------------------- FORMULAIRE -------------------- */
.form-container {
  flex: 1 1 350px;
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 10px;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: var(--font-text);
  background: var(--rose);
  /* couleur du formulaire */
  color: var(--vert);
  transition: all 0.3s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--vert);
}

.contact-form input:focus,
.contact-form textarea:focus {
  box-shadow: 0 0 10px rgba(232, 60, 103, 0.3);
}

.contact-form button {
  background: var(--rouge);
  /* bouton légèrement différent */
  color: var(--blanc);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.contact-form button:hover {
  background: var(--creme);
  color: var(--rose);
}

/* -------------------- INFOS DE CONTACT -------------------- */
.info-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* répartit les cartes sur toute la hauteur */
}

.info-card {
  background: var(--creme);
  padding: 1rem;
  border-radius: 10px;
  text-align: center;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.info-card h3 {
  margin-bottom: 0.3rem;
  font-size: 1rem;
  color: var(--vert);
}

.info-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--vert);
}

.socials {
  text-align: center;
  margin: 2rem 0;
}

.socials h3 {
  font-family: "canvas-script", sans-serif;
    font-weight: 500;
    font-style: normal;
  color: var(--vert);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.social-icons a {
  display: inline-block;
  margin: 0.5rem;
  padding: 1rem 2rem;
  background: var(--rouge);
  color: var(--blanc);
  font-family: 'Rosso Alt Regular', sans-serif;
  border-radius: 40px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-icons a:hover {
  transform: translate(-4px, -4px);
}

/* -------------------- RESPONSIVE -------------------- */
@media (max-width: 900px) {
  .contact-block {
    flex-direction: column;
    align-items: center;
  }

  .info-container {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .info-card {
    width: 250px;
    margin-bottom: 0;
  }

  .form-container {
    width: 100%;
  }
}


/* -------------------- SOCIALS -------------------- */
.socials {
  text-align: center;
  background: var(--rouge); /* garde le fond rouge */
  padding: 2rem 1rem;        /* espace interne confortable */
  margin: 0;                 /* supprime tout espace externe */
}

.socials h3 {
  font-family: "canvas-script", sans-serif;
    font-weight: 500;
    font-style: normal;
  color: var(--blanc);       /* texte blanc sur fond rouge */
  margin-bottom: 1rem;
}

.social-icons a {
  display: inline-block;
  background: var(--rose);
  color: var(--vert);
  font-family: 'Rosso Alt Regular', sans-serif;
  padding: 1rem 2rem;
  border-radius: 40px;
  text-transform: uppercase;
  transition: all 0.2s ease;
  text-decoration: none;
  margin: 0.5rem;
}

.social-icons a:hover {
  transform: translate(-4px, -4px);
  background-color: var(--vert);
  color: var(--rose);
}

/* -------------------- VAGUES -------------------- */
.wave1,
.wave2 {
  position: relative;
  height: 80px;
  background: var(--jaune);
  background-image: radial-gradient(circle at 20px -20px, transparent 40px, var(--blanc) 41px);
  background-size: 40px 80px;
  animation: waveMove 6s infinite linear;
}

.wave2.flip {
  transform: rotate(180deg);
}

/* -------------------- ANIMATIONS -------------------- */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInTop {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  100% {
    background-position-x: 160px;
  }
}

/* -------------------- RESPONSIVE -------------------- */
@media (max-width: 900px) {
  .contact-container {
    flex-direction: column;
    align-items: center;
  }

  .form-container,
  .info-container {
    width: 100%;
  }

  .info-container {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    height: auto;
  }
}


/* --------------------------
   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;
  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;
  }
}
