/* Frenchy Academy - Site vitrine moderne - Thème sombre V1 */

:root {
  --primary: #1e3a5f;
  --primary-light: #2a4a75;
  --accent: #e8a84a;
  --accent-hover: #f0b95c;
  --bg: #0d1117;
  --bg-card: #161b22;
  --bg-card-hover: #1c2128;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --border: #30363d;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.5);
}

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

body {
  margin: 0;
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; font-weight: 600; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: 6px;
  padding: 4px;
}

.logo-img {
  height: 36px;
  width: auto;
  display: block;
  mix-blend-mode: lighten;
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover { color: var(--accent); }

.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
}

.burger:hover span { background: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--bg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 17, 23, 0.9) 0%, rgba(30, 58, 95, 0.85) 50%, rgba(13, 17, 23, 0.88) 100%);
  z-index: 1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e8a84a' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.8;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: white;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem 0;
  max-width: 620px;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin: 0 0 2rem 0;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-cta .btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.hero-cta .btn-outline {
  border-color: rgba(255, 255, 255, 0.7);
  color: white;
}

.hero-cta .btn-outline:hover {
  background: white;
  color: var(--bg);
  border-color: white;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.hero-stats .stat {
  font-size: 0.95rem;
  opacity: 0.9;
}

.hero-stats strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

/* Formations */
.formations {
  padding: 5rem 0;
}

.formations h2 {
  font-size: 2rem;
  margin: 0 0 0.5rem 0;
  color: var(--text);
}

.section-subtitle {
  color: var(--text-muted);
  margin: 0 0 2.5rem 0;
}

.formation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.formation-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.formation-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  background: var(--bg-card-hover);
}

.formation-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.formation-card h3,
.formation-card p {
  padding: 0 1.75rem;
}

.formation-card h3 {
  padding-top: 1.25rem;
}

.formation-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem 0;
  color: var(--text);
}

.formation-card p {
  margin: 0 0 1.75rem 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.formations-footer {
  text-align: center;
}

/* Avantages */
.avantages {
  padding: 4rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.avantages h2 {
  font-size: 2rem;
  margin: 0 0 2rem 0;
  color: var(--text);
  text-align: center;
}

.avantages-visual {
  margin-bottom: 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.avantages-visual img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.avantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.avantage {
  text-align: center;
  padding: 1.5rem;
}

.avantage-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(232, 168, 74, 0.2);
  color: var(--accent);
  font-weight: 700;
  font-size: 1.25rem;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.avantage h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  color: var(--text);
}

.avantage p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Contact */
.contact {
  padding: 5rem 0;
}

.contact h2 {
  font-size: 2rem;
  margin: 0 0 2rem 0;
  color: var(--text);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.contact-img {
  width: 100%;
  max-width: 320px;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.contact-phone {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.5rem 0;
}

.contact-info p {
  margin: 0 0 0.5rem 0;
  color: var(--text-muted);
}

.contact-info a {
  color: var(--accent);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.9rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 168, 74, 0.25);
}

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

.form-status {
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
}

.form-status-success {
  color: #3fb950;
}

.form-status-error {
  color: #f85149;
}

.contact-form button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Pages légales */
.legal-page {
  padding: 6rem 0 4rem;
  min-height: 80vh;
}

.legal-page h1 {
  font-size: 2rem;
  color: var(--text);
  margin: 0 0 0.5rem 0;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 2rem 0;
}

.legal-page section {
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.15rem;
  color: var(--text);
  margin: 0 0 0.75rem 0;
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
  margin: 0 0 0.5rem 0;
  line-height: 1.6;
}

.legal-page ul {
  margin: 0 0 1rem 0;
  padding-left: 1.5rem;
}

.legal-page a {
  color: var(--accent);
  text-decoration: none;
}

.legal-page a:hover {
  text-decoration: underline;
}

.legal-back {
  margin-top: 2.5rem !important;
}

.legal-back a {
  font-weight: 500;
}

/* Footer */
.footer {
  padding: 2.5rem 0;
  background: #0a0d12;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

.footer-domains h4 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  color: var(--text);
}

.domain-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  list-style: none;
  margin: 0 0 2rem 0;
  padding: 0;
}

.domain-list a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.domain-list a:hover { text-decoration: underline; }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

.footer-bottom a {
  color: var(--accent);
  text-decoration: none;
}

.footer-bottom a:hover { text-decoration: underline; }

/* Mobile */
/* Mobile menu */
@media (max-width: 768px) {
  .nav .btn { display: none; }

  .burger { display: flex; }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1.5rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li { text-align: center; }

  .hero-stats { gap: 2rem; }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    text-align: center;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn { width: 100%; }
}
