/* AMRAT Inscription - CSS Professionnel */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

:root {
  --amrat-cyan: #00D9FF;
  --amrat-blue: #2B7FFF;
  --dark: #1a1a1a;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: #fff;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header - Professionnel et Responsive */
header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

header .logo-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

header img {
  height: 2.5rem;
  width: auto;
}

header .logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--amrat-cyan);
}

/* Navigation */
nav {
  display: none;
  gap: 2rem;
}

nav a {
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s;
  position: relative;
}

nav a:hover {
  color: var(--amrat-blue);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--amrat-cyan);
  transition: width 0.3s;
}

nav a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-700);
  cursor: pointer;
  padding: 0.25rem;
}

@media (min-width: 768px) {
  nav {
    display: flex;
  }
  .mobile-menu-btn {
    display: none;
  }
  header img {
    height: 3rem;
  }
}

/* Hero Section - Compact */
.hero {
  background: var(--amrat-blue);
  color: white;
  padding: 3rem 1.5rem;
  text-align: center;
}

.hero h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  opacity: 0.95;
}

.hero-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

.hero-info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-info svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .hero {
    padding: 4rem 1.5rem;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1.125rem;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 0.375rem;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  text-align: center;
}

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

.btn-primary:hover {
  background-color: var(--gray-50);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-cyan {
  background-color: var(--amrat-cyan);
  color: white;
}

.btn-cyan:hover {
  background-color: #00c2e6;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.btn-blue:hover {
  background-color: #1e6edb;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Sections - Compact */
section {
  padding: 3rem 1.5rem;
}

section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--amrat-blue);
}

@media (min-width: 768px) {
  section {
    padding: 4rem 1.5rem;
  }
  section h2 {
    font-size: 2rem;
  }
}

.section-white {
  background-color: white;
}

.section-gray {
  background-color: var(--gray-50);
}

/* Content Width - Plus étroit */
.content-narrow {
  max-width: 900px;
  margin: 0 auto;
}

.content-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: 1rem;
}

/* Cards Grid - Compact */
.card-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background-color: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  text-align: center;
  transition: all 0.2s;
}

.card:hover {
  border-color: var(--amrat-cyan);
  box-shadow: 0 4px 12px rgba(0, 217, 255, 0.1);
  transform: translateY(-2px);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
}

.card-icon.cyan {
  background-color: var(--amrat-cyan);
}

.card-icon.blue {
  background-color: var(--amrat-blue);
}

.card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--gray-800);
}

.card p {
  color: var(--gray-600);
  font-size: 0.9375rem;
}

/* Info Cards - Alignées horizontalement */
.info-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.info-card {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
}

.info-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--amrat-blue);
}

.info-card p {
  color: var(--gray-600);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}

/* Program Section */
.program-container {
  max-width: 900px;
  margin: 0 auto;
}

.program-section {
  margin-bottom: 2.5rem;
}

.program-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  padding: 0.625rem 1.25rem;
  border-radius: 0.375rem;
  display: inline-block;
  margin-bottom: 1rem;
}

.program-title.cyan {
  background-color: var(--amrat-cyan);
}

.program-title.blue {
  background-color: var(--amrat-blue);
}

.program-box {
  background-color: white;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  padding: 1.25rem;
}

.program-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border-left: 3px solid var(--amrat-cyan);
  transition: all 0.2s;
}

.program-item:hover {
  background-color: var(--gray-50);
  padding-left: 1rem;
}

.program-item.highlight {
  border-left-color: var(--amrat-blue);
  background-color: #eff6ff;
}

.program-time {
  font-weight: 600;
  color: var(--amrat-blue);
  font-size: 0.9375rem;
}

.program-desc {
  color: var(--gray-700);
  font-size: 0.9375rem;
}

.program-desc.bold {
  font-weight: 600;
}

@media (min-width: 768px) {
  .program-item {
    flex-direction: row;
    gap: 1rem;
  }
  .program-time {
    min-width: 120px;
  }
}

/* Form */
.form-container {
  max-width: 1000px;
  margin: 0 auto;
  background-color: white;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

label {
  display: block;
  color: var(--gray-700);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

input, textarea, select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.9375rem;
  transition: all 0.2s;
  font-family: inherit;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--amrat-blue);
  box-shadow: 0 0 0 3px rgba(43, 127, 255, 0.1);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.message {
  padding: 1rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.message.success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.message.error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.hidden {
  display: none;
}

/* Event Info Box */
.event-info-box {
  max-width: 1000px;
  margin: 0 auto 2rem;
  background: var(--amrat-cyan);
  border-radius: 0.5rem;
  padding: 1.5rem;
  color: white;
}

.event-info-grid {
  display: grid;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .event-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.event-info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.event-info-item svg {
  width: 1.5rem;
  height: 1.5rem;
  margin-bottom: 0.5rem;
}

.event-info-item div {
  font-size: 1.0625rem;
  font-weight: 600;
}

/* Footer */
footer {
  background-color: var(--gray-800);
  color: white;
  padding: 2rem 1.5rem;
  text-align: center;
}

footer img {
  height: 2.5rem;
  width: auto;
  margin: 0 auto 1rem;
}

footer p {
  color: #9ca3af;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

footer p:last-child {
  color: #6b7280;
  font-size: 0.875rem;
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.w-full { width: 100%; }

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Loading State */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
