:root {
  --pink: #ff2fd1;
  --green: #39ff14;
  --bg: #f7f7f5;
  --text: #111;
  --muted: #555;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ---------------- NAVIGATION ---------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: black;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav a {
  color: #000;
  font-weight: 700;
  text-decoration: none;
  background: rgba(255,255,255,0.8);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav a:hover {
  transform: translateY(-2px) rotate(-2deg);
  background: #fff;
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.logo img {
  border: none;
  box-shadow: none;
  margin-top: 0;
  width: 50%;
}

.logo a {
  text-decoration: none;
  color: #000;
  background: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  box-shadow: none;
}

.logo a:hover {
  background: none;
}

/* ---------------- HEADER ---------------- */

h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  margin: 0;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: inline-block;
  background: var(--green);
  padding: 0.25rem 0.75rem;
  transform: rotate(-1deg);
}

/* ---------------- SECTIONS ---------------- */

.section {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-ouvertures {
  background: var(--bg);
}

.section-outils, .section-contact, .section-intro {
  background: repeating-linear-gradient(
    45deg,
    #ffffff,
    #ffffff 10px,
    #f0f0f0 10px,
    #f0f0f0 20px
  );
}

.section-bricolage {
  background: #fff;
  border-top: 6px solid var(--pink);
}

/* ----------- SECTION OUTILS : ACCORDÉON ----------- */

.outils-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 800px) {
  .outils-grid {
    grid-template-columns: 1fr;
  }
}

.outils-accordion h2 {
  margin-bottom: 1.5rem;
}

/* Accordéon natif <details> */

.outils-accordion details {
  background: #fff;
  border: 3px solid var(--pink);
  border-radius: 12px;
  margin-bottom: 1rem;
  padding: 0.6rem 1rem 1rem;
  box-shadow: 4px 4px 0 var(--green);
  transition: transform 0.2s ease;
}

.outils-accordion details:hover {
  transform: translateY(-2px) rotate(-0.5deg);
}

.outils-accordion summary {
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
}

.outils-accordion summary::after {
  content: \"＋\";
  position: absolute;
  right: 0;
  top: 0;
  font-weight: 900;
  color: var(--pink);
  transition: transform 0.2s ease;
}

.outils-accordion details[open] summary::after {
  content: \"−\";
  transform: rotate(90deg);
}

.outils-accordion ul {
  margin-top: 0.8rem;
  padding-left: 1.2rem;
}

/* ----------- COLONNE DROITE ----------- */

.outils-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.outils-note {
  font-size: 1rem;
  background: #fff;
  padding: 1rem 1.2rem;
  border-left: 6px solid var(--green);
}

/* ----------- PRIX LIBRE ----------- */

.prix-libre {
  font-size: 1.4rem;
  font-weight: 900;
  background: var(--pink);
  color: #000;
  padding: 1rem 1.2rem;
  transform: rotate(-2deg);
  box-shadow: 6px 6px 0 var(--green);
  display: inline-block;
  width: fit-content;
}

/* ---------------- BLOCKS ---------------- */

.block {
  max-width: 960px;
  margin: auto;
  padding: 3.5rem 2rem;
}

.block p {
  max-width: 720px;
  font-size: 1.05rem;
}

ul {
  padding-left: 1.2rem;
}

li {
  margin-bottom: 0.4rem;
}

strong {
  color: var(--green);
}

/* ---------------- IMAGE ---------------- */

img {
  max-width: 100%;
  margin-top: 2.5rem;
  border: 4px solid var(--green);
  box-shadow: 8px 8px 0 var(--pink);
}

/* ---------------- FOOTER ---------------- */

footer {
  background: #000;
  color: #fff;
  padding: 2.5rem 2rem;
  font-size: 0.95rem;
}

footer::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg, var(--pink), var(--green));
  margin-bottom: 1.5rem;
}
