/* 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: #e5e7eb;
  background-color: #0f0f0f;
  overflow-x: hidden;
}

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

@media (min-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

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

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: #e5e7eb;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s;
  position: relative;
}

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

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: #e5e7eb;
  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: #000;
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}

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

.hero p {
  font-size: 1.15rem;
  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.35rem;
  }
}

/* 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: 2rem 1rem;
}

section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: #f3f4f6;
}

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

.section-white {
  background-color: #1a1a1a;
}

.section-gray {
  background-color: #0f0f0f;
}

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

.content-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #d1d5db;
  margin-bottom: 1rem;
  text-align: justify;
}

/* 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: #262626;
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid #404040;
  text-align: center;
  transition: all 0.2s;
}

.card:hover {
  border-color: var(--amrat-cyan);
  background-color: #2a2a2a;
  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: #f3f4f6;
}

.card p {
  color: #d1d5db;
  font-size: 0.9375rem;
}

/* Info Cards - Alignees 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: #262626;
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid #404040;
  display: flex;
  flex-direction: column;
}

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

.info-card p {
  color: #d1d5db;
  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: #262626;
  border-radius: 0.5rem;
  border: 1px solid #404040;
  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: #2a2a2a;
  padding-left: 1rem;
}

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

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

.program-desc {
  color: #d1d5db;
  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: #262626;
  border-radius: 0.5rem;
  border: 1px solid #404040;
  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: #e5e7eb;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

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

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--amrat-cyan);
  box-shadow: 0 0 0 3px rgba(0, 217, 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: 5rem;
  width: auto;
  margin: 0 auto 1rem;
  display: block;
}

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

footer p:last-child {
  color: #e5e7eb;
  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;
}

/* Phone Input Group */
.phone-input-group {
  display: flex;
  gap: 0.5rem;
}

.phone-prefix {
  padding: 0.75rem 0.625rem;
  background: var(--gray-50);
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-weight: 600;
  color: var(--gray-700);
  min-width: 90px;
  max-width: 90px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
}

.phone-prefix .flag {
  font-size: 1.125rem;
}

.phone-input {
  flex: 1;
}

/* Banner Section */
.banner-section {
  display: block;
  width: 100%;
  padding-bottom: 56.25%; /* ratio 1920x1080 */
  background: url('../../BANNIERE.png') center center / 100% 100% no-repeat;
  margin: 0;
}

/* Logo link reset */
a.logo-section {
  text-decoration: none;
  color: inherit;
}

/* President Section */
.president-card {
  background: #111;
  border: 1px solid #2a2a2a;
  border-left: 4px solid var(--amrat-cyan);
  border-radius: 0.75rem;
  padding: 2rem;
  margin: 0 auto;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .president-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 2.5rem;
  }
}

.president-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 100%;
}

@media (min-width: 768px) {
  .president-left {
    width: 200px;
  }
}

.president-avatar {
  width: 160px;
  height: 160px;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 2px solid var(--amrat-cyan);
  flex-shrink: 0;
}

.president-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.president-quote p {
  color: #d1d5db;
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.75;
  text-align: justify;
}

.president-quote p:last-child {
  margin-bottom: 0;
}

.president-signature {
  text-align: center;
  margin-top: 1rem;
  width: 100%;
}

.signature-line {
  width: 60px;
  height: 2px;
  background: var(--amrat-cyan);
  margin: 0 auto 0.75rem;
}

.president-name {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.15rem;
}

.president-title {
  color: var(--amrat-cyan);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.president-certifs {
  margin-top: 0.75rem;
  text-align: left;
}

.president-certifs p {
  color: #9ca3af;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.president-certifs ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.president-certifs ul li {
  color: #9ca3af;
  font-size: 0.78rem;
  line-height: 1.5;
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.3rem;
}

.president-certifs ul li::before {
  content: '-';
  position: absolute;
  left: 0;
  color: var(--amrat-cyan);
}

/* Organisateurs Section */
.organisateurs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 1rem auto 0;
  max-width: 720px;
}

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

.organisateur-item {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 0.75rem;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  width: 100%;
}

.organisateur-logo {
  height: 120px;
  width: 100%;
  max-width: 260px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .organisateur-logo {
    max-width: 300px;
  }
}

.finconnect-logo {
  background: transparent;
}

.organisateur-name {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}

.organisateur-desc {
  font-size: 0.85rem;
  color: #9ca3af;
  line-height: 1.5;
}
