/* SPB2I — Feuille de styles principale
 * Palette extraite du thème Odoo d'origine
 */

:root {
  --color-1: #6EA8FE;          /* Accent bleu clair */
  --color-2: #474973;          /* Couleur principale (texte mis en avant) */
  --color-2-dark: #3a3c61;
  --color-3: #f0f2f5;          /* Gris clair / fonds */
  --color-4: #ffffff;
  --color-5: #141e2e;          /* Bleu nuit (footer) */
  --text: #212529;
  --text-muted: #6c757d;
  --border: #dee2e6;
  --shadow: 0 .125rem .25rem rgba(0,0,0,.075);
  --shadow-md: 0 .5rem 1rem rgba(0,0,0,.15);
  --radius: .375rem;
  --container: 1140px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--color-4);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 { margin: 0 0 .5rem; line-height: 1.2; font-weight: 500; color: var(--text); }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
.display-3 { font-size: 4.5rem; font-weight: 300; line-height: 1.2; }
.display-4 { font-size: 3.5rem; font-weight: 300; line-height: 1.2; }

p { margin: 0 0 1rem; }
.text-accent { color: var(--color-2); }
.text-bold { font-weight: 700; }
.text-center { text-align: center; }
.text-justify { text-align: justify; }

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}
.container-fluid { width: 100%; padding: 0 1rem; }
.section { padding: 3rem 0; }
.section-sm { padding: 1.5rem 0; }
.section-lg { padding: 6rem 0; }
.bg-light { background: var(--color-3); }
.bg-dark { background: var(--color-5); color: #fff; }
.bg-accent { background: var(--color-2); color: #fff; }
.bg-accent h1, .bg-accent h2, .bg-accent h3 { color: #fff; }

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -.75rem;
}
.col { flex: 1; padding: 0 .75rem; }
.col-12 { flex: 0 0 100%; max-width: 100%; padding: 0 .75rem; }

@media (min-width: 768px) {
  .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; padding: 0 .75rem; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; padding: 0 .75rem; }
  .col-md-8 { flex: 0 0 66.666%; max-width: 66.666%; padding: 0 .75rem; }
}
@media (min-width: 992px) {
  .col-lg-2 { flex: 0 0 16.666%; max-width: 16.666%; padding: 0 .75rem; }
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; padding: 0 .75rem; }
  .col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; padding: 0 .75rem; }
  .col-lg-5 { flex: 0 0 41.666%; max-width: 41.666%; padding: 0 .75rem; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; padding: 0 .75rem; }
  .col-lg-8 { flex: 0 0 66.666%; max-width: 66.666%; padding: 0 .75rem; }
}

/* ===== Boutons ===== */
.btn {
  display: inline-block;
  padding: .5rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 400;
  text-align: center;
  cursor: pointer;
  transition: all .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--color-2); color: #fff; border-color: var(--color-2); }
.btn-primary:hover { background: var(--color-2-dark); border-color: var(--color-2-dark); color: #fff; }
.btn-secondary { background: var(--color-3); color: var(--color-2); border-color: var(--color-3); }
.btn-secondary:hover { background: #dde1e8; color: var(--color-2-dark); }
.btn-outline { background: transparent; color: var(--color-2); border-color: var(--color-2); }
.btn-outline:hover { background: var(--color-2); color: #fff; }
.btn-lg { padding: .75rem 1.75rem; font-size: 1.15rem; }
.btn-block { display: block; width: 100%; }

/* ===== Header ===== */
.site-header {
  background: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .navbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .75rem 0;
  flex-wrap: wrap;
}
.site-header .logo {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  color: var(--color-2);
  font-weight: 700;
  font-size: 1.15rem;
}
.site-header .logo img { height: 52px; width: auto; }
.site-header .logo:hover { text-decoration: none; }
.site-header .nav {
  display: flex;
  gap: .25rem;
  list-style: none;
  margin: 0 auto 0 1rem;
  padding: 0;
}
.site-header .nav a {
  display: block;
  padding: .5rem .9rem;
  color: var(--text);
  border-radius: var(--radius);
  font-size: .95rem;
}
.site-header .nav a:hover { background: var(--color-3); text-decoration: none; }
.site-header .nav a.active { color: var(--color-2); font-weight: 600; }
.site-header .contact-block {
  font-size: .85rem;
  line-height: 1.3;
  color: var(--text);
}
.site-header .contact-block i { color: var(--color-2); margin-right: .25rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .4rem .6rem;
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: auto;
}

@media (max-width: 991px) {
  .site-header .nav { display: none; flex-direction: column; flex-basis: 100%; margin: 0; }
  .site-header .nav.open { display: flex; }
  .site-header .contact-block { display: none; }
  .nav-toggle { display: inline-block; }
}

/* ===== Hero / Cover ===== */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 4rem 1rem;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,.5);
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-weight: 700; }
.hero p { font-size: 1.25rem; max-width: 800px; margin: 0 auto 1.5rem; }

.banner {
  background: var(--color-3);
  padding: 4rem 0;
}

/* ===== Cards ===== */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card img { width: 100%; object-fit: cover; }
.card-body { padding: 1.25rem; flex: 1; }
.card-title { color: var(--color-2); margin-bottom: .75rem; }

/* ===== Color blocks ===== */
.color-blocks { display: flex; flex-wrap: wrap; }
.color-blocks .block {
  flex: 1 1 50%;
  padding: 4rem 2rem;
  text-align: center;
  color: #fff;
}
.color-blocks .block h2 { color: #fff; }
.color-blocks .block.b1 { background: var(--color-2); }
.color-blocks .block.b2 { background: var(--color-5); }
.color-blocks .block i { font-size: 4rem; margin-bottom: 1rem; display: block; }

/* ===== Image gallery ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ===== Numbers ===== */
.numbers {
  background: var(--color-3);
  padding: 3rem 0;
}
.numbers .row { text-align: center; }
.numbers .number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-2);
  line-height: 1;
  margin-bottom: .5rem;
}
.numbers .label { color: var(--color-2); font-size: 1.1rem; }

/* ===== Timeline (Historique) ===== */
.timeline {
  position: relative;
  padding: 2rem 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--color-2);
  transform: translateX(-1px);
}
.timeline-row {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 2.5rem;
  min-height: 60px;
}
.timeline-row .date {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-2);
  color: #fff;
  padding: .35rem .9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  z-index: 2;
  white-space: nowrap;
}
.timeline-row .content {
  width: calc(50% - 60px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
  position: relative;
}
.timeline-row.left .content { margin-right: auto; }
.timeline-row.right .content { margin-left: auto; }
.timeline-row .content .title { color: var(--color-2); font-weight: 600; margin-bottom: .35rem; }

@media (max-width: 767px) {
  .timeline::before { left: 20px; }
  .timeline-row .date { left: 20px; transform: translateX(-50%); }
  .timeline-row .content { width: calc(100% - 60px); margin-left: auto !important; margin-right: 0 !important; }
}

/* ===== Annees grid (vignettes réalisations) ===== */
.years {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.year-card {
  display: block;
  text-decoration: none;
  text-align: center;
  transition: transform .2s;
}
.year-card:hover { transform: translateY(-4px); text-decoration: none; }
.year-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: .75rem;
}
.year-card .btn { width: 100%; }

/* ===== Team ===== */
.team-card {
  display: flex;
  gap: 1.5rem;
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  align-items: flex-start;
}
.team-card img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.team-card h4 { color: var(--color-2); margin-bottom: 0; }
.team-card .role { color: var(--text-muted); font-style: italic; margin-bottom: .5rem; }

@media (max-width: 575px) {
  .team-card { flex-direction: column; align-items: center; text-align: center; }
}

/* ===== Forms ===== */
.form-row { margin-bottom: 1rem; }
.form-row label { display: block; margin-bottom: .35rem; font-weight: 500; }
.form-control {
  width: 100%;
  padding: .55rem .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}
.form-control:focus {
  outline: none;
  border-color: var(--color-2);
  box-shadow: 0 0 0 3px rgba(71,73,115,.15);
}
textarea.form-control { min-height: 120px; resize: vertical; }
.required-mark { color: #dc3545; }

.alert {
  padding: .75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* ===== Highlight box ===== */
.highlight-box {
  background: var(--color-2);
  color: #fff;
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
}
.highlight-box h3 { color: #fff; }
.highlight-box .btn-primary { background: #fff; color: var(--color-2); border-color: #fff; }
.highlight-box .btn-primary:hover { background: var(--color-3); }

/* ===== Footer ===== */
.site-footer {
  background: var(--color-5);
  color: #ddd;
  padding: 3rem 0 1rem;
  margin-top: 3rem;
}
.site-footer h5 { color: #fff; margin-bottom: 1rem; }
.site-footer a { color: #ddd; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li { margin-bottom: .35rem; }
.site-footer .icon { margin-right: .5rem; color: var(--color-1); }
.site-footer .copyright {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  font-size: .85rem;
  color: #aaa;
}

/* ===== Utilities ===== */
.mt-1 { margin-top: .25rem; } .mt-2 { margin-top: .5rem; } .mt-3 { margin-top: 1rem; } .mt-4 { margin-top: 1.5rem; } .mt-5 { margin-top: 3rem; }
.mb-1 { margin-bottom: .25rem; } .mb-2 { margin-bottom: .5rem; } .mb-3 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 1.5rem; } .mb-5 { margin-bottom: 3rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.d-flex { display: flex; }
.justify-center { justify-content: center; }
.gap-2 { gap: .5rem; }
.w-100 { width: 100%; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
