* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue: #5faee3;
  --blue-dark: #2b6f9e;
  --blue-light: #addbfd;
  --white: #ffffff;
  --text: #1f2933;
  --text-soft: #52606d;
  --border: #d9e8f3;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --radius: 14px;
  --container: 1120px;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

/* Dégradé bleu prolongé sur les trois pages */
main {
  background: linear-gradient(to bottom, var(--blue-light) 0, var(--white) 520px);
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(92%, var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  background: var(--white);
  border-radius: 12px;
}

.brand-name {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue-dark);
}

.brand-tagline {
  display: block;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--blue-dark);
}

.menu-toggle {
  display: none;
  border: none;
  background: none;
  font-size: 1.8rem;
  cursor: pointer;
}

.hero {
  padding: 70px 0;
  background: transparent;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-location {
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 600;
  color: var(--blue-dark);
}

.hero h1 {
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 18px;
}

.hero p {
  color: var(--text-soft);
  margin-bottom: 20px;
}

.hero-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 320px;
  object-fit: cover;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 700;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.btn-primary {
  background: var(--blue-dark);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--blue-dark);
  border: 1px solid var(--blue-dark);
}

.section {
  padding: 70px 0;
}

.section-light {
  background: var(--blue-light);
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--blue-dark);
}

.section-intro {
  max-width: 760px;
  color: var(--text-soft);
  margin-bottom: 28px;
}

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 10px;
  color: var(--blue-dark);
}

.qualities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.quality {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.quality span {
  font-size: 1.4rem;
  color: var(--blue-dark);
  line-height: 1;
}

.gallery-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.gallery-preview img,
.gallery-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-section {
  padding-top: 65px;
  background: var(--blue-light);
}

.cta-box {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 24px;
  box-shadow: var(--shadow);
}

.page-banner {
  padding: 60px 0;
  background: transparent;
  border-bottom: none;
}

.page-banner h1 {
  font-size: 2.3rem;
  color: var(--blue-dark);
  margin-bottom: 10px;
}

.page-banner p {
  color: var(--text-soft);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .14);
  outline: none;
}

.project-card > img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.project-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
}

.project-card-content h2 {
  margin: 0 0 8px;
  color: var(--blue-dark);
  font-size: 1.35rem;
}

.project-card-content p {
  margin-bottom: 18px;
  color: var(--text-soft);
}

.project-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: auto;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--blue-dark);
  color: var(--white);
  font-weight: 700;
}



/* Galerie des chantiers sans JavaScript : ouverture avec les ancres #chantier-N */
.project-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.project-modal:target {
  display: flex;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 32, .84);
}

.project-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 1000px);
  max-height: 92vh;
  overflow-y: auto;
  padding: 28px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}

.project-modal-panel h2 {
  margin: 0 48px 8px 0;
  color: var(--blue-dark);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 18px;
  color: var(--text);
  font-size: 2.2rem;
  line-height: 1;
  text-decoration: none;
}

.modal-hint {
  margin-bottom: 18px;
  color: var(--text-soft);
}

.modal-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.modal-photos img {
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: 10px;
  background: #f2f5f7;
}

@media (max-width: 700px) {
  .project-modal { padding: 10px; }
  .project-modal-panel { padding: 20px 14px; }
  .modal-photos { grid-template-columns: 1fr; }
}
