/*==================================================
  GuideAssurance
  Style principal - Version 2.0
==================================================*/

/*=========================
  GOOGLE FONT
==========================*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/*=========================
  VARIABLES
==========================*/
:root {
  /* Couleurs principales */
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #3B82F6;
  --secondary: #0F172A;
  --accent: #F59E0B;

  /* Neutres */
  --white: #FFFFFF;
  --light: #F8FAFC;
  --gray-50: #F1F5F9;
  --gray-100: #E2E8F0;
  --gray-200: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-900: #0F172A;

  /* États */
  --success: #16A34A;
  --warning: #F59E0B;
  --danger: #DC2626;

  /* Design system */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/*=========================
  RESET & BASE
==========================*/
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-700);
  background-color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg); /* coins arrondis sur toutes les images */
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

ul {
  list-style: none;
}

section {
  padding: 80px 0;
}

/*=========================
  TYPOGRAPHIE
==========================*/
h1, h2, h3, h4, h5, h6 {
  color: var(--gray-900);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  color: var(--gray-500);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--gray-500);
}

.text-muted {
  color: var(--gray-500) !important;
}

/*=========================
  HEADER / NAVBAR
==========================*/
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition);
}

header.scrolled {
  box-shadow: var(--shadow);
}

.navbar {
  padding: 0.875rem 0;
}

.navbar-brand {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--primary) !important;
  letter-spacing: -0.03em;
}

.nav-link {
  color: var(--gray-700) !important;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 0.875rem !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
  background-color: rgba(37, 99, 235, 0.06);
}

/*=========================
  HERO
==========================*/
.hero {
  background: linear-gradient(135deg, #1E40AF 0%, #2563EB 50%, #3B82F6 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}

.hero::before {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  top: -300px;
  right: -200px;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  bottom: -200px;
  left: -150px;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: var(--white);
}

.hero p,
.hero .lead {
  color: rgba(255, 255, 255, 0.9);
}

.hero img {
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
  border-radius: var(--radius-xl); /* coins plus arrondis sur le hero */
}

/*=========================
  BOUTONS
==========================*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1.4;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.btn-warning {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
  background: #D97706;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--white);
}

/*=========================
  CARDS
==========================*/
.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: all var(--transition-slow);
  overflow: hidden;
  height: 100%;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-200);
}

.card-body {
  padding: 1.75rem;
}

.card h3 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.card h4 {
  margin-bottom: 0.75rem;
  color: var(--gray-900);
}

.card p {
  font-size: 0.9375rem;
  color: var(--gray-500);
  margin-bottom: 1.25rem;
}

.card .list-unstyled li {
  font-size: 0.875rem;
  color: var(--gray-600);
  padding: 0.25rem 0;
}

/* Badge populaire */
.card .badge {
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
}

/*=========================
  SECTIONS
==========================*/
.bg-light {
  background-color: var(--gray-50) !important;
}

.bg-primary {
  background: linear-gradient(135deg, #1E40AF 0%, #2563EB 100%) !important;
}

.bg-dark {
  background-color: var(--gray-900) !important;
}

/*=========================
  LISTES
==========================*/
.list-group {
  border-radius: var(--radius);
  overflow: hidden;
}

.list-group-item {
  padding: 1rem 1.25rem;
  border: 1px solid var(--gray-100);
  background: var(--white);
  color: var(--gray-700);
  font-weight: 500;
  transition: background var(--transition);
}

.list-group-item:hover {
  background: var(--gray-50);
}

.list-group-flush .list-group-item {
  border-left: 0;
  border-right: 0;
}

/*=========================
  ACCORDÉON (FAQ)
==========================*/
.accordion-item {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius) !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--white);
}

.accordion-button {
  font-weight: 600;
  color: var(--gray-900);
  background: var(--white);
  padding: 1.125rem 1.25rem;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  background: var(--gray-50);
  color: var(--primary);
}

.accordion-button::after {
  transition: transform var(--transition);
}

.accordion-body {
  padding: 0 1.25rem 1.25rem;
  color: var(--gray-500);
  font-size: 0.9375rem;
}

/*=========================
  FORMULAIRES
==========================*/
.form-label {
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
}

.form-control,
.form-select {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  color: var(--gray-900);
  transition: border-color var(--transition), box-shadow var(--transition);
  background-color: var(--white);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  outline: none;
}

.form-control::placeholder {
  color: var(--gray-400);
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

/*=========================
  UTILITAIRES
==========================*/
.rounded {
  border-radius: var(--radius-lg) !important;
}

.shadow {
  box-shadow: var(--shadow) !important;
}

.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

.img-fluid {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg); /* coins arrondis */
}

/*=========================
  ANIMATIONS
==========================*/
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

/*=========================
  FOOTER
==========================*/
footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 60px 0 30px;
}

footer a {
  color: var(--gray-400);
}

footer a:hover {
  color: var(--white);
}

footer h5 {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

/*=========================
  RESPONSIVE
==========================*/
@media (max-width: 991.98px) {
  section {
    padding: 64px 0;
  }

  .hero {
    padding: 72px 0;
    text-align: center;
  }

  .hero img {
    margin-top: 2.5rem;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .nav-link {
    margin-left: 0;
    padding: 0.75rem 1rem !important;
  }
}

@media (max-width: 767.98px) {
  section {
    padding: 48px 0;
  }

  .card-body {
    padding: 1.5rem;
  }

  .btn {
    width: 100%;
  }

  .btn + .btn {
    margin-top: 0.75rem;
  }

  .hero .btn {
    display: block;
    width: 100%;
    margin-bottom: 0.75rem;
  }

  .hero .btn:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 575.98px) {
  h1 {
    font-size: 1.875rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}