: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: "canvas-script", sans-serif;
  font-weight: 500;
  font-style: normal;
  line-height: 1.6;
  background-color: var(--rose);
  color: var(--vert);
}

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

h1.variant-gig {
  font-family: "fatfrank", sans-serif;
font-weight: 400;
font-style: normal;
}

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: "fatfrank", sans-serif;
font-weight: 400;
font-style: normal;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  line-height: 1.4;
  color: var(--rose);
}

.fit-picture {
  width: 50%;
}

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

/* --------------------------
   Portfolio
-------------------------- */
.portfolio {
  padding: 4rem 2rem;
  text-align: center;
}

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


.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--blanc);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.2s ease;
}

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

.project-title {
  color: var(--vert);
}

.preview {
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  margin-bottom: 1rem;
  height: 200px;
}

.preview1 {
  background-image: url("img/Papi\ Piment-03.jpg");
}

.preview2 {
  background-image: url("img/Mademoiselle_Ismérie3.png");
}

.preview3 {
  background-image: url("img/SVMX.png");
}

/* --------------------------
   About
-------------------------- */
.about {
  padding: 4rem 2rem;
  text-align: center;
  color: var(--blanc);
  background-color: var(--rouge);
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--blanc);
}

/* --------------------------
   Contact
-------------------------- */
.contact {
  padding: 4rem 2rem;
  text-align: center;
  color: var(--blanc);
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: var(--rose);
}

/* --------------------------
   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 Tablette
---------------------------- */
@media screen and (max-width: 1024px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

/* ----------------------------
   Responsive Mobile
---------------------------- */
@media screen and (max-width: 768px) {
  nav {
    flex-direction: column;
  }

  nav ul {
    gap: 1rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 1.5rem;
  }

  .card .preview {
    height: 160px;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .btn {
    padding: 0.7rem 1.2rem;
  }
}