


:root {
  --panel: rgba(255,255,255,0.06);
  --panel-hover: rgba(255,255,255,0.10);
  --border: rgba(255,255,255,0.15);
  --text: #eaf3f1;
  --text-dim: #bcd3cf;
  --accent: #1c3d38;
  --radius: 18px;
  --shadow: 0 8px 24px rgba(0,0,0,0.25);
}

body.loaded {
  color: var(--text);
}


.page {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  line-height: 1.7;
}

.page h1 {
  font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.6rem);
  margin-bottom: 0.75rem;
}

.page .intro {
  color: var(--text-dim);
  max-width: 900px;
  margin-bottom: 2.25rem;
}


.domains {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(520px, 1fr)); 
  gap: 1.5rem;
}


.domain {
  display: flex;                 
  align-items: center;
  gap: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.domain:hover {
  transform: translateY(-2px);
  background: var(--panel-hover);
  border-color: color-mix(in oklab, var(--border), var(--accent) 25%);
}


.domain-img {
  flex-shrink: 0;
  width: 180px;
  height: 140px;
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
  background: #dfe9e7;
  box-shadow: inset 0 0 0 1px var(--border);
}

.domain-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.domain-content {
  flex: 1;
}

.domain-content h2 {
  margin: 0 0 .4rem;
  font-size: clamp(1.2rem, 1rem + .5vw, 1.4rem);
}

.domain-content p {
  margin: 0;
  color: var(--text-dim);
}


@media (max-width: 1200px) {
  .domains { grid-template-columns: repeat(auto-fit, minmax(480px, 1fr)); }
  .domain-img { width: 170px; height: 130px; }
}

@media (max-width: 900px) {
  .domains { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); } 
  .domain-img { width: 160px; height: 120px; }
}


@media (max-width: 640px) {
  .domains { grid-template-columns: 1fr; }
  .domain { flex-direction: column; align-items: flex-start; }
  .domain-img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
}

/* Encadré type "Notre vision" */
.vision-more {
  max-width: 1040px;
  margin: 2.5rem auto 0;
  padding: clamp(1.2rem, 2.5vw, 2rem);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
  text-align: left;
}
.vision-more p { margin: 0.1rem 0 0.75rem; opacity: 0.92; text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; -ms-hyphens: auto; text-align-last: left; }
@media (max-width: 480px) {
  .vision-more { margin-top: 2rem; padding: 1rem; }
}

.domain-content p { text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; -ms-hyphens: auto; text-align-last: left; }
.domain-content ul { margin: 0.5rem 0 0.75rem; padding-left: 1.3rem; color: var(--text-dim); }
.domain-content ul li { margin-bottom: 0.4rem; }

/* Offre phare */
.domain--featured {
  border-color: rgba(40, 180, 140, 0.45);
  background: linear-gradient(135deg, rgba(28,61,56,0.55), rgba(255,255,255,0.06));
  grid-column: 1 / -1;
}
.domain--featured:hover {
  border-color: rgba(40, 180, 140, 0.7);
}
.domain-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #28b48c;
  border: 1px solid rgba(40, 180, 140, 0.5);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 0.5rem;
  vertical-align: middle;
}
