@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/poppins-600.woff2") format("woff2"); }

/* Couleurs reprises de codiecnalux.com */
:root {
  --orange: #f39200;
  --violet: #4d3b68;
  --violet-fonce: #3a265b;
  --rose: #ed1566;
  --turquoise: #35baac;
  --texte: #2f2f33;
  --texte-doux: #5f6360;
  --fond: #f7f6f9;
  --carte: #ffffff;
  --bord: #e4e1ea;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Poppins", "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--texte);
  background: var(--fond);
  padding-inline: 16px;
}

.entete {
  text-align: center;
  padding-block: 40px 8px;
}
.logo { display: inline-block; border-radius: 8px; }
.logo img { display: block; width: 260px; max-width: 100%; height: auto; }
h1 {
  margin: 12px 0 4px;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 600;
  color: var(--violet-fonce);
  letter-spacing: -0.01em;
}
h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 2px;
  background: var(--orange);
}
.chapeau { margin: 14px auto 0; max-width: 34rem; color: var(--texte-doux); }

main {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding-block: 16px 40px;
  flex: 1;
}

.annonce {
  margin: 8px 0 24px;
  padding: 12px 16px;
  border-left: 4px solid var(--orange);
  border-radius: 6px;
  background: #fff4e3;
}

h2 {
  margin: 32px 0 14px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--violet);
}

.grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 16px;
}

.outil {
  --teinte: var(--violet);
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--bord);
  border-top: 4px solid var(--teinte);
  border-radius: 12px;
  background: var(--carte);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(58, 38, 91, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.outil:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(58, 38, 91, 0.12);
}
.outil:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.teinte-violet    { --teinte: var(--violet); }
.teinte-turquoise { --teinte: #23978b; }
.teinte-rose      { --teinte: var(--rose); }
.teinte-orange    { --teinte: #d97f00; }

.icone {
  flex: none;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--teinte);
}
.icone svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.texte { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nom { font-size: 1.1rem; font-weight: 600; color: var(--violet-fonce); line-height: 1.3; }
.outil:hover .nom { color: var(--teinte); }
.desc { color: var(--texte-doux); font-size: 0.95rem; }
.public { margin-top: 6px; font-size: 0.8rem; color: var(--texte-doux); }
.public::before { content: "● "; color: var(--teinte); }

.pied {
  padding-block: 20px 28px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--texte-doux);
  border-top: 1px solid var(--bord);
}
.pied a { color: var(--violet); }

@media (max-width: 480px) {
  .entete { padding-block-start: 24px; }
  .outil { padding: 18px; gap: 14px; }
  .icone { width: 50px; height: 50px; border-radius: 12px; }
  .icone svg { width: 27px; height: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  .outil { transition: none; }
  .outil:hover { transform: none; }
}
