/*
Theme Name: Informatique & Solution
Author: Tom
Description: Thème WordPress sur mesure pour dépannage informatique
Version: 1.0
*/

/* ==========================
   Base
=========================== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f9fafb;
  color: #333;
}

h1, h2, h3 {
  color: #1f2937;
  margin-top: 0;
}

a {
  color: #4f46e5;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #3730a3;
}

/* ==========================
   Header
=========================== */
header {
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  color: white;
  padding: 2rem;
  text-align: center;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  height: 120px;
  max-height: 150px;
  background: white;
  border-radius: 10px;
  padding: 8px;
  flex-shrink: 0;
}

header h1 {
  margin: 0;
  font-size: 2.2rem;
}

header p {
  margin: 0.5rem 0 0;
  font-size: 1.2rem;
}

/* ==========================
   Main / Containers
=========================== */
main, .wrap, .container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* ==========================
   Cartes services / Produits
=========================== */
.services, .prod-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card, .prod-list label {
  background: white;
  border-radius: 10px;
  padding: 1.2rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

.card:hover, .prod-list label:hover {
  transform: translateY(-5px);
}

.card h3, .prod-list span {
  margin: 0 0 10px 0;
  color: #4f46e5;
}

.preview-img {
  width: 100%;
  max-height: 120px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid #e6e9ef;
  background: #fff;
  padding: 6px;
  margin-top: 6px;
}

/* ==========================
   Formulaires généraux
=========================== */
input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  margin-top: 0.3rem;
  margin-bottom: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus, textarea:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 2px rgba(79,70,229,0.2);
  outline: none;
}

button, .btn {
  background: #4f46e5;
  color: #fff;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

button:hover, .btn:hover {
  background: #3730a3;
  transform: translateY(-2px);
}

/* Messages succès / erreur */
.msg, .alert-success, .alert-error {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 8px;
  font-weight: 500;
}

.msg.success, .alert-success {
  background: #d1fae5;
  color: #065f46;
}

.msg.error, .alert-error {
  background: #fee2e2;
  color: #991b1b;
}

/* ==========================
   Tableau produits / devis
=========================== */
.wp-list-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.wp-list-table th, .wp-list-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.wp-list-table th {
  background: #f3f4f6;
  font-weight: 600;
}

.wp-list-table tr:hover {
  background: #f9fafb;
}

.wp-list-table img {
  max-width: 80px;
  height: auto;
  border-radius: 6px;
}

.wp-list-table a {
  margin-right: 8px;
}

/* ==========================
   Footer
=========================== */
footer {
  background: #111827;
  color: #9ca3af;
  text-align: center;
  padding: 1rem;
  margin-top: 3rem;
}

footer a {
  color: #60a5fa;
}

footer a:hover {
  text-decoration: underline;
}

/* ==========================
   Responsive
=========================== */
@media(max-width:768px){
  .wp-list-table th, .wp-list-table td {
    font-size: 13px;
    padding: 8px;
  }
  button, .btn {
    width: 100%;
  }
}

@media(max-width:480px){
  header h1 {
    font-size: 1.5rem;
  }
  main, .wrap, .container {
    padding: 1.5rem;
    margin: 1rem;
  }
}

/* ==========================
   Bouton Prendre rendez-vous
=========================== */
.cta {
  text-align: center;
  margin: 3rem 0;
}

.cta a {
  display: inline-block;
  background: #4f46e5;
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.cta a:hover {
  background: #3730a3;
  transform: translateY(-2px);
}

/* ==========================
   Mentions légales
=========================== */
.mentions-legales {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.05);
  font-family: Arial, sans-serif;
  color: #1f2937;
}

.mentions-legales h1 {
  text-align: center;
  font-size: 2rem;
  color: #4f46e5;
  margin-bottom: 2rem;
}

.mentions-legales h2 {
  color: #3730a3;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.mentions-legales p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

.mentions-legales a {
  color: #4f46e5;
  text-decoration: underline;
}

.mentions-legales a:hover {
  color: #3730a3;
}

@media(max-width: 768px) {
  .mentions-legales {
    padding: 1.5rem;
    margin: 1rem;
  }

  .mentions-legales h1 {
    font-size: 1.7rem;
  }

  .mentions-legales h2 {
    font-size: 1.2rem;
  }
}
