/* Reset basique */
body, h1, h2, h3, p, ul, li, a {
    margin: 0;
    padding: 0;
    font-family: "MS Sans Serif", sans-serif;
  }
  
  body {
    background-color: #A3F7B5;
    padding: 20px;
    color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  main {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  a {
    text-decoration: none;
    color: blue;
  }
  
  header, .window {
    width: 90%;
    max-width: 850px;
    border: 2px solid #000;
    background-color: white;
    margin-bottom: 60px;
    box-shadow: 4px 4px 0px #888;
    border-radius: 8px;
    overflow: hidden;
  }

  #avatar-picture {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
  }
  #avatar-picture img {
    width: 100%;
    height: auto;
    object-fit: cover;
    overflow: hidden;
  }
  
  .title-bar {
    background: linear-gradient(to right, #000080, #0000cd);
    color: white;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .window-controls button {
    background-color: white;
    border: 1px solid #000;
    margin-left: 5px;
    width: 20px;
    height: 20px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
  }
  
  .menu a {
    background: #c0c0c0;
    padding: 5px 10px;
    border: 2px outset #fff;
    border-radius: 4px;
    font-family: "Tahoma", sans-serif !important; 
    font-size: 1.2em;
  }

  .menu a:hover {
    background-color: #a3f7b5;
  }
  
  .content {
    padding: 30px;
    min-height: 400px;
  }
  
  #presentation {
    background-color: #A3F7B5;
  }
  
  #trucs {
    background-color: #FFF7A3;
  }
  
  #betises {
    background-color: #F7A3E0;
  }
  
  #contact {
    background-color: #A3D8F7;
  }
  
  #boite {
    background-color: #D3A3F7;
  }
  
  .cards {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
    justify-content: space-evenly;
  }

  .cards-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
    justify-content: space-evenly;
  }

  .cards-links a:hover {
    filter: drop-shadow(5px 5px 0 #a3f7b5) hue-rotate(180deg) drop-shadow(5px 5px 0 #a3f7b5);
  }
  
  .card {
    border: 2px inset #c0c0c0;
    padding: 15px;
    width: 220px;
    background: #f0f0f0;
    border-radius: 6px;
  }
  
  .card img {
    margin-bottom: 10px;
    width: 100%;
    height: 200px;
    object-fit: cover;
    overflow: hidden;
  }

  .sub-text {
    font-size: 0.9em;
    color: #555;
  }
  
  .contacts {
    display: grid;
    gap: 20px;
    margin-top: 20px;
    grid-template-columns: 1Fr 1fr 1fr;
    justify-items: center;
    align-items: center;
  }

  #contact > div > h3 {
    margin-top: 20px;
  }

  .contacts img {
    border-radius: 3.75px;
    width: 100px;
  }

  .contacts img:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
    filter: drop-shadow(5px 5px 0 #a3f7b5) hue-rotate(180deg) drop-shadow(5px 5px 0 #a3f7b5);
  }

  .clickable-links a {
    cursor: pointer;
  }

  .secret-link {
    text-decoration: none;
    cursor: default;
    color: #000;
  }
  
  .idea-button {
    display: inline-block;
    margin-top: 20px;
    background-color: #c0c0c0;
    padding: 10px 15px;
    border: 2px outset #fff;
    border-radius: 6px;
  }
  
  .footer {
    width: 90%;
    max-width: 850px;
    text-align: center;
    font-size: 0.8em;
    padding: 10px;
    background-color: #c0c0c0;
    border: 2px solid #000;
    box-shadow: 4px 4px 0px #888;
    border-radius: 8px;
  }
  
  /* Apparition animée */
  .hidden {
    opacity: 0;
    transform: translateY(50px);
    filter: blur(5px);
    transition: all 0.8s ease-out;
  }
  
  .show {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
  
  /* Spécial pour boite à idées */
  #boite.hidden {
    transform: translateY(50px) scale(0.95);
  }
  
  #boite.show {
    transform: translateY(0) scale(1.05);
    animation: bounce 0.6s ease;
  }

  #copy-text-to-clipboard {
    display: none;
    text-align: center;
    margin-top: 20px;
  }

  .form-box {
    max-width: 500px;
    margin: 0 auto;
    background-color: #e5e5e5;
    border: 2px solid #000;
    padding: 1rem;
    box-shadow: 3px 3px #888;
    font-family: "MS Sans Serif", sans-serif;
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
  }
  
  #boite label {
    font-weight: bold;
    margin-bottom: 0.3rem;
  }
  
  #boite input, boite textarea {
    padding: 6px;
    border: 2px inset #ccc;
    background-color: #fff;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
  }
  
  #boite textarea {
    min-height: 100px;
    resize: vertical;
  }
  
  #boite button {
    padding: 8px 16px;
    background-color: #c0c0c0;
    border: 2px outset #fff;
    font-weight: bold;
    cursor: pointer;
  }
  
  #boite button:hover {
    background-color: #a3f7b5;
  }
  
  #formMessage {
    margin-top: 1rem;
    font-style: italic;
  }
  
  @keyframes bounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
  }
  
  
  /* ------------------------------ */
/* Responsive mobile / bureau rétro lisible */
@media screen and (max-width: 600px) {

  body {
    padding: 10px;
  }

  header, .window, .footer {
    width: 100%;
    margin-bottom: 40px;
    border-radius: 0;
  }

  .title-bar {
    align-items: flex-start;
    font-size: 1.2em;
  }

  .window-controls button {
    width: 28px;
    height: 28px;
    font-size: 1em;
  }

  .menu {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px;
  }

  .menu a {
    font-size: 1.1em;
    padding: 10px;
    text-align: center;
  }

  .content {
    padding: 20px 15px;
    font-size: 1.1em;
  }

  .cards, .cards-links {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 85%;
    font-size: 1.05em;
  }

  .card img {
    height: auto;
    max-height: 200px;
  }

  .contacts {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .contacts img {
    width: 140px;
  }

  .form-box {
    width: 85%;
    font-size: 1.05em;
    padding: 1.2rem;
  }

  .form-box input,
  .form-box textarea {
    font-size: 1em;
    padding: 10px;
  }

  .form-box button {
    font-size: 1.1em;
    padding: 12px 20px;
  }

  #formMessage {
    font-size: 1em;
  }
}
