/* Centaure Assurance – Homepage moderne */

:root {
  --centaure-bg: #5b0c1c;
  --centaure-bg-soft: #5b0c1c;
  --centaure-bg-dark: #5b0c1c;
  --centaure-accent: #ffffff;
  --centaure-accent-soft: rgba(201, 168, 108, 0.2);
  --centaure-text: #ffffff;
  --centaure-text-muted: rgba(255, 255, 255, 0.88);
  --centaure-border: rgba(255, 255, 255, 0.1);
  --centaure-max-width: 75rem;
  --centaure-radius: 0.75rem;
  --centaure-radius-lg: 1.25rem;
  --centaure-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  --centaure-shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.25);
  --centaure-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  max-width: 100%;
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  background-color: #5b0c1c;
}

/* Empêcher tout débordement horizontal (images, grilles, etc.) */
main {
  overflow-x: hidden;
  max-width: 100%;
}

main img {
  max-width: 100%;
  height: auto;
}

body.centaure-page {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--centaure-text);
  background: var(--centaure-bg);
  -webkit-font-smoothing: antialiased;
}

.centaure-page h1,
.centaure-page h2 {
  margin: 0 0 1rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.centaure-page h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
}

.centaure-page h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 600;
}

.centaure-page a {
  color: inherit;
  text-decoration: none;
  transition: color var(--centaure-transition), opacity var(--centaure-transition);
}

.centaure-page a:hover {
  opacity: 0.9;
}

.centaure-page img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ----- Header ----- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.75rem 0;
  background: rgba(91, 12, 28, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--centaure-border);
  transition: background var(--centaure-transition), padding var(--centaure-transition);
}

.site-header-inner {
  max-width: var(--centaure-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-logo {
  display: flex;
  align-items: center;
  line-height: 1.2;
}

.site-logo-img {
  height: 2.5rem;
  width: auto;
  object-fit: contain;
  display: block;
}

.site-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.site-logo-sub {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--centaure-text-muted);
}

.site-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

@media (min-width: 64rem) {
  .site-nav {
    display: flex;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 9999px;
  transition: background var(--centaure-transition), color var(--centaure-transition), transform 0.2s ease;
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--centaure-text);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-primary {
  background: var(--centaure-accent);
  color: var(--centaure-bg-dark);
  border: none;
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.site-nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2rem;
  height: 2rem;
  padding: 0;
  background: none;
  border: none;
  color: var(--centaure-text);
  cursor: pointer;
}

.site-nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

@media (min-width: 64rem) {
  .site-nav-toggle {
    display: none;
  }
}

/* ----- Main ----- */
.site-main {
  padding-top: 4rem;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: var(--centaure-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.intro-grid,
.services-grid,
.categories-grid {
  min-width: 0;
}

.section {
  padding: 4rem 0;
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(0.75rem, 1.5vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--centaure-accent);
}

.section-heading {
  margin: 0 0 2rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

/* ----- Hero ----- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding: 2rem 1.5rem 3rem;
}

.hero-visual {
  width: 100%;
  max-width: 80%;
  @media (min-width: 640px) {
    max-width: 50%;
  }
  overflow: hidden;
  box-shadow: var(--centaure-shadow-lg);
}

.hero-bg {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  z-index: 0;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-bg-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-bg-slide img {
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: cover;
  object-position: center;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(91, 12, 28, 0.25) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  padding: 2rem 1.5rem 0;
  margin-top: 0;
}

.hero-title-overlay {
  font-family: 'Montserrat', sans-serif;
}

.hero-title-text {
  font-size: 2rem;
  line-height: 0.7;
  display: block;
}

@media (min-width: 640px) {
  .hero-title-text {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title-text {
    font-size: 4rem;
  }
}

.hero-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--centaure-accent);
  border: 1px solid var(--centaure-accent-soft);
  border-radius: 9999px;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
}

.hero .hero-subtitle {
  margin: 0 0 2rem;
  font-size: 1.1rem;
  color: var(--centaure-text-muted);
  letter-spacing: 0.03em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ----- Intro block ----- */
.intro-block {
  padding: 4rem 0;
  background: var(--centaure-bg-soft);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 64rem) {
  .intro-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
  }
}

.intro-content h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 300;
  line-height: 1.3;
}

.intro-content p {
  margin: 0 0 1rem;
  color: var(--centaure-text-muted);
  max-width: 52ch;
}

.intro-content p:last-child {
  margin-bottom: 0;
}

.intro-content strong {
  color: var(--centaure-text);
  font-weight: 900;
}

.intro-visual {
  border-radius: var(--centaure-radius-lg);
  overflow: hidden;
  box-shadow: var(--centaure-shadow-lg);
  min-width: 0;
}

.intro-visual img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ----- Carte de présentation (style profil) ----- */
.profile-section {
  padding: 3.5rem 0 4.5rem;
  background: var(--centaure-bg);
}

.profile-card {
  max-width: 34rem;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 1.75rem;
  border-radius: var(--centaure-radius-lg);
  background: radial-gradient(circle at 0 0, rgba(201, 168, 108, 0.08) 0, transparent 45%),
    var(--centaure-bg-soft);
  border: 1px solid var(--centaure-border);
  box-shadow: var(--centaure-shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.profile-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  
}

.profile-card-avatar {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 10px;
  
  background: var(--centaure-accent);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.profile-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-card-avatar span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5b0c1c;
  font-weight: 700;
  font-size: 1.1rem;
}

.profile-card-identity {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.profile-card-name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.profile-card-role {
  margin: 0.1rem 0 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--centaure-accent);
}

.profile-card-handle {
  margin: 0;
  font-size: 0.85rem;
  color: var(--centaure-text-muted);
}

.profile-card-bio {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
  color: var(--centaure-text-muted);
}

.profile-card-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.85rem;
  color: var(--centaure-text-muted);
}

.profile-card-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.profile-card-meta-icon {
  font-size: 1rem;
}

.profile-card-footer {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.profile-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.8rem;
}

.profile-card-stats > div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.profile-card-stat-number {
  font-weight: 600;
  font-size: 0.9rem;
}

.profile-card-stat-label {
  color: var(--centaure-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.profile-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.profile-card-actions .btn {
  flex: 1 1 auto;
  justify-content: center;
}

@media (min-width: 40rem) {
  .profile-card {
    padding: 2rem 2rem 1.9rem;
  }

  .profile-card-actions {
    justify-content: flex-start;
    max-width: 26rem;
  }

  .profile-card-actions .btn {
    flex: 0 0 auto;
  }
}

/* ----- Quote ----- */
.quote-block {
  padding: 3rem 1.5rem;
  text-align: center;
  background: var(--centaure-bg);
}

.quote-block blockquote {
  margin: 0;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: var(--centaure-text);
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* ----- Fullwidth image ----- */
.fullwidth-image {
  width: 100%;
  max-width: 100%;
  min-height: 22rem;
  overflow: hidden;
}

.fullwidth-image img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
  object-position: center;
}

/* ----- Services (cards) ----- */
#services {
  scroll-margin-top: 5rem;
}

#contact {
  scroll-margin-top: 5rem;
}

.services-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: stretch;
}

.service-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  min-height: 30rem;
  background: transparent;
  overflow: hidden;
  border: 1px solid var(--centaure-border);
  border-radius: var(--centaure-radius);
  transition: transform var(--centaure-transition), box-shadow var(--centaure-transition), border-color var(--centaure-transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--centaure-shadow-lg);
  border-color: var(--centaure-accent-soft);
}

.service-card-media {
  position: relative;
  flex: 0 0 40%;
  max-width: 40%;
  min-height: 11rem;
  aspect-ratio: 4 / 5;
  align-self: stretch;
}

.service-card .card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .card-image {
  transform: scale(1.03);
}

.service-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.75rem 1.5rem;
  background: var(--centaure-bg-dark);
  gap: 1rem;
}

.service-card-title {
  margin: 0;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--centaure-text);
}

.service-card-items {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.75rem;
}

.service-card-sep {
  border: none;
  width: 15%;
  max-width: 12rem;
  height: 1px;
  margin-top: 20px;
  margin-bottom: 20px;
 
  background: #fff;
}

.service-card-items a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--centaure-text-muted);
  text-decoration: none;
}

.service-card-items a:hover {
  color: var(--centaure-text);
  opacity: 1;
}

@media (max-width: 47.99rem) {
  .service-card {
    flex-direction: column;
    align-items: stretch;
  }

  .service-card-media {
    flex: none;
    max-width: 100%;
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .service-card .card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center bottom;
  }

  .service-card-body {
    padding: 1.5rem 1.25rem;
  }
}

/* ----- Categories (vides) ----- */
#categories {
  scroll-margin-top: 5rem;
}

.categories-section {
  background: var(--centaure-bg-soft);
  padding: 4rem 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 48rem) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.category-card {
  position: relative;
  border-radius: var(--centaure-radius);
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--centaure-border);
  transition: transform var(--centaure-transition), box-shadow var(--centaure-transition);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--centaure-shadow);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity var(--centaure-transition), transform 0.5s ease;
}

.category-card:hover img {
  opacity: 1;
  transform: scale(1.05);
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

.category-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--centaure-text);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.category-card-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--centaure-bg-dark);
  color: var(--centaure-text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--centaure-bg-dark);
  border-top: 1px solid var(--centaure-border);
  padding: 3rem 0 0;
}

.site-footer-inner {
  max-width: var(--centaure-max-width);
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 48rem) {
  .site-footer-inner {
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
  }
}

.site-footer-brand .site-logo-text {
  font-size: 1.1rem;
}

.site-footer-brand .site-logo-sub {
  font-size: 0.7rem;
}

.site-footer-tagline {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--centaure-text-muted);
}

.site-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.site-footer-col h4 {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--centaure-text-muted);
}

.site-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer-col li {
  margin-bottom: 0.5rem;
}

.site-footer-col a {
  font-size: 0.95rem;
  color: var(--centaure-text-muted);
}

.site-footer-col a:hover {
  color: var(--centaure-text);
}

.site-footer-bottom {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--centaure-border);
  text-align: center;
}

.site-footer-bottom p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--centaure-text-muted);
}

/* ----- Menu mobile (header) ----- */
#mobile-menu {
  transition: opacity var(--centaure-transition);
}

#mobile-menu[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}
