/* === ID-Facturation Tool Page Styles === */

/* Conteneur principal de la page */
main {
    margin: 2rem auto;
    padding: 2rem;
    max-width: 800px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: center;
}

/* Titre de l’outil */
main h2 {
    font-size: 2rem;
    color: #0066cc;
    margin-bottom: 0.5rem;
}

/* Texte descriptif */
main p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: #555;
}

/* Liens dans un texte descriptif */
main p a {
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
}

/* Boutons “Utiliser en ligne” et “Télécharger” */
main > a.btn {
    display: inline-block;
    margin: 0.5rem 0;
    min-width: 180px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: solid 1px #0066cc;
}

/* Boutons désactivés */
main > a.btn.disabled {
    cursor: not-allowed;
    opacity: 0.5;
    border-color: #aaa;
    color: #aaa;
}
  
main > a.btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Animation au survol */
main > a.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

main > div.info-tool {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

main > div.info-tool > div {
    display: flex;
    flex-direction: column;
    text-align: left;
    justify-content: center;
    align-items: center;
}

main > div.info-tool > div > p.strong {
    color: #0066cc;
    margin-bottom: 0.5rem;
    text-align: left;
    width: 100%;
}

/* Images responsives */
img {
    max-width: 300px;
}

/* Responsive pour la page outil (tool.css) */
@media (max-width: 900px) {
  main > div.info-tool {
    flex-direction: column;
    align-items: center;
    gap: 2em;
  }
  main > div.info-tool > div {
    width: 100%;
    max-width: 100%;
    text-align: center;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  main {
    padding: 1rem;
    max-width: 98vw;
    min-width: 0;
    margin-bottom: 5rem;
  }
  main > div.info-tool {
    flex-direction: column;
    align-items: center;
    gap: 1.2em;
    padding: 0;
  }
  main > div.info-tool > div {
    width: 100%;
    max-width: 100%;
    text-align: center;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  main > div.info-tool img {
    max-width: 140px;
    margin-bottom: 1em;
  }
  main h2 {
    font-size: 1.3em;
  }
  .btn, a.btn {
    width: 100%;
    min-width: unset;
    margin: 0.5em 0;
    font-size: 1em;
    padding: 0.7em 1em;
  }
  .tool-text, .tool-img {
    padding: 0;
  }
}