/* --- VARIABLES & STYLES GLOBAUX --- */
:root {
  --bg-color: #f8f5f2; /* Beige clair, chaleureux */
  --text-color: #3d405b; /* Gris-bleu foncé, doux */
  --accent-color: #b08968; /* Brun/bronze pour les accents */
  --white: #ffffff;
  --light-gray: #e0e0e0;
  --font-title: "Montserrat", sans-serif;
  --font-text: "Lato", sans-serif;
  --container-width: 1200px;
  --border-radius: 8px;
}

body {
  font-family: var(--font-text);
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  line-height: 1.7;
  font-size: 16px;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3 {
  font-family: var(--font-title);
  color: var(--text-color);
}

h2 {
  text-align: center;
  font-size: 2.5em;
  margin-top: 60px;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

/* Ligne décorative sous les titres h2 */
h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s;
}
a:hover {
  color: #7f5f44;
}

/* --- HEADER & NAVIGATION --- */
.site-header {
  background: var(--white);
  padding: 20px 0;
  border-bottom: 1px solid var(--light-gray);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header .logo {
  font-size: 1.8em;
  font-weight: 700;
  font-family: var(--font-title);
  color: var(--text-color);
}

.site-header nav a {
  color: var(--text-color);
  margin-left: 30px;
  font-weight: bold;
  font-size: 1.1em;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
}
.site-header nav a:hover,
.site-header nav a.active {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}

/* --- SECTION HERO --- */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("https://images.unsplash.com/photo-1593593019385-a7a599b109b8?q=80&w=2070")
      no-repeat center center/cover;
  color: var(--white);
  text-align: center;
  padding: 180px 20px;
}
.hero h1 {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--white);
}
.hero p {
  font-size: 1.2em;
  margin-bottom: 30px;
}

/* --- BOUTONS --- */
.btn {
  background-color: var(--accent-color);
  color: var(--white) !important;
  padding: 15px 30px;
  border-radius: var(--border-radius);
  font-weight: bold;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}
.btn:hover {
  background-color: #7f5f44;
  transform: translateY(-2px);
}

/* --- CARTES (Réalisations & Avis) --- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}
.card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}
.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.card-content {
  padding: 25px;
}
.card-content h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.4em;
}

/* --- PAGE PROJET UNIQUE --- */
.projet-single img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 30px;
}
.projet-single .description {
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1.1em;
}

/* --- FORMULAIRES --- */
.form-container {
  max-width: 700px;
  margin: 40px auto;
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  font-size: 1em;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}

/* --- FOOTER --- */
.site-footer {
  text-align: center;
  padding: 40px 20px;
  margin-top: 60px;
  background: #3d405b;
  color: rgba(255, 255, 255, 0.8);
}

/* --- ADMINISTRATION --- */
.admin-container {
  padding: 20px;
  max-width: 1000px;
  margin: auto;
}
.admin-nav {
  background: #f4f4f4;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 5px;
}
.admin-nav a {
  margin-right: 15px;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th,
.admin-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}
.admin-table th {
  background: #f2f2f2;
}
.btn-edit {
  color: #2196f3;
}
.btn-delete {
  color: #f44336;
}
