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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f4f0e8;
  color: #2b2b2b;
  line-height: 1.6;
  padding: 20px;
}

/* PALETTE MID-CENTURY */
:root {
  --accent-1: #e07a5f;
  --accent-2: #3d405b;
  --accent-3: #81b29a;
  --accent-4: #f2cc8f;
}

/* HEADER */
header {
  background: var(--accent-2);
  color: #fff;
  padding: 40px 25px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

/* Illustration ordinateur en CSS */
.computer-illustration {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 120px;
  height: 80px;
  background: var(--accent-4);
  border-radius: 6px;
  box-shadow: 0 0 0 4px #fff inset;
}

.computer-illustration::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 30px;
  width: 60px;
  height: 20px;
  background: var(--accent-4);
  border-radius: 4px;
}

/* Formes décoratives */
header::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  top: -40px;
  right: -40px;
  background:
    radial-gradient(circle at 30% 30%, var(--accent-1) 0, transparent 60%),
    radial-gradient(circle at 70% 70%, var(--accent-4) 0, transparent 60%);
  opacity: 0.25;
  border-radius: 50%;
}

header::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  bottom: -40px;
  left: -40px;
  background:
    linear-gradient(135deg, var(--accent-3), transparent),
    repeating-linear-gradient(
      45deg,
      var(--accent-4) 0 4px,
      transparent 4px 8px
    );
  opacity: 0.25;
  border-radius: 50%;
}

/* TITRES */
header h1 {
  font-size: 2.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

header h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-4);
  margin-bottom: 10px;
}

/* SECTIONS */
section {
  background: #fff;
  padding: 20px;
  margin-top: 30px;
  border-radius: 12px;
  border-left: 6px solid var(--accent-3);
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}

h2 {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 12px;
  color: var(--accent-2);
}

/* HIGHLIGHT */
.intro-highlight {
  background: var(--accent-4);
  padding: 12px;
  border-radius: 10px;
  margin-top: 10px;
}

/* PROJETS */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.project-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px;
  background: #f9f6f0;
  border-radius: 12px;
  border: 1px solid #e0d7c7;
  text-decoration: none;
  color: var(--accent-2);
  transition: 0.2s;
}

.project-box:hover {
  background: var(--accent-4);
}

.project-box .num {
  font-size: 2.4rem;
  font-weight: bold;
  color: var(--accent-1);
}

.project-box .label {
  margin-top: 8px;
  text-align: center;
  font-size: 0.95rem;
}

/* SECTION BASKET */
#basket {
  border-left-color: var(--accent-1);
}

.basket-photos {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.basket-photo {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 12px;
  background:
    linear-gradient(135deg, var(--accent-3), var(--accent-4)),
    repeating-linear-gradient(
      45deg,
      rgba(0,0,0,0.05) 0 4px,
      transparent 4px 8px
    );
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.basket-photo:hover {
  transform: scale(1.03);
}

.basket-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* FOOTER */
footer {
  text-align: center;
  margin-top: 40px;
  color: #777;
  font-size: 0.85rem;
}
.img-frame {
    width: 220px;
    height: 220px;
    overflow: hidden;
    border-radius: 8px;
}

.zoom-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* empêche toute déformation */
    transition: 0.3s;
}
.img-frame {
    width: 220px;
    height: 220px;
    overflow: hidden;
    border-radius: 8px;
}

.zoom-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* empêche toute déformation */
    transition: 0.3s;
}

/* Structure générale */
.section-block {
    padding: 30px;
    border-radius: 12px;
    margin: 25px;
}

/* Titres */
.section-title {
    font-size: 26px;
    margin-bottom: 15px;
    color: #2e3049;
}

/* Texte */
.section-text {
    font-size: 14px;
    line-height: 1.6;
    color: #202020;
}

/* Couleurs harmonieuses */
.intro { background: #f3d9a4; }
.passion { background: #ffe7c2; }
.evolution { background: #f7f4ec; }
.projets { background: #ffffff; }
.basket { background: #e8e6df; }
.contact { background: #f3d9a4; }

/* Motifs géométriques */
.shapes {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 25px;
}

.shape {
    width: 60px;
    height: 60px;
}

.circle {
    background: #d6644d;
    border-radius: 50%;
}

.square {
    background: #2e3049;
}

.diamond {
    background: #202020;
    transform: rotate(45deg);
}

/* Projets GitHub */
.projects-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.project-tile {
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: 0.3s;
}

.tile1 { background: #eec27d; color:#2e3049; }
.tile2 { background: #d6644d; }
.tile3 { background: #2e3049; }
.tile4 { background: #202020; }

.project-tile:hover {
    transform: scale(1.08);
}


/* Footer */
.footer {
    text-align: center;
    margin-top: 30px;
    color: #646464;
}
/* Police moderne et impactante */
body {
    font-family: "Poppins", "Helvetica Neue", sans-serif;
}

/* Titres */
.big-title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Paragraphes décorés */
.decorated {
    position: relative;
    padding-left: 20px;
}

.decorated::before {
    content: "";
    width: 6px;
    height: 100%;
    background: #d6644d;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 3px;
}

/* Couleurs harmonieuses */
.intro { background: #f3d9a4; }
.passion { background: #ffe7c2; }
.evolution { background: #f7f4ec; }
.projets { background: #ffffff; }
.basket { background: #e8e6df; }
.contact { background: #f3d9a4; }

/* Motifs géométriques */
.intro-shapes {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
}

.shape {
    width: 60px;
    height: 60px;
}

.circle {
    background: #d6644d;
    border-radius: 50%;
}

.bar {
    width: 12px;
    height: 60px;
    background: #2e3049;
    border-radius: 6px;
}

.triangle {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 60px solid #202020;
}

.ring {
    width: 60px;
    height: 60px;
    border: 6px solid #d6644d;
    border-radius: 50%;
}

/* Projets GitHub */
.projects-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.project-tile {
    width: 110px;
    height: 110px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    border-radius: 12px;
    transition: 0.3s;
}

.project-tile:hover {
    transform: scale(1.1);
}

/* Galerie basket */
.img-frame {
    width: 90px;     /* moitié de 180 */
    height: 90px;    /* moitié de 180 */
    overflow: hidden;
    border-radius: 16px;
    transition: 0.3s;
}

.zoom-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* empêche toute déformation */
    transition: 0.3s;
}

.img-frame:hover .zoom-img {
    transform: scale(1.1);
}