/* ============================
   RESET
============================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #e5e7eb;
  background: #0b1120;
}

a {
  color: #00A8FF;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ============================
   TITRES HARMONISÉS
============================ */

h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #f9fafb;
  margin: 0 0 14px 0;
  letter-spacing: 0.5px;
}

h2 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #f9fafb;
  margin: 0 0 10px 0;
  letter-spacing: 0.3px;
}

/* ============================
   HEADER (MOBILE FIRST)
============================ */

header,
.header-premium {
  background: #020617;
  border-bottom: 1px solid #1f2937;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* LOGO + TEXTE + LIGNE */

.header-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.header-logo img {
  height: 80px;
  width: auto;
  display: block;
  transition: transform 0.25s ease;
}

.header-logo:hover img {
  transform: scale(1.04);
}

.logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  /* Correction optique du centrage sous le logo */
  transform: translateX(16px);
}

.logo-text-below {
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.7px;
  white-space: nowrap;
  margin: 0;
  text-align: center;
  animation: textGlowSync 2.4s ease-in-out infinite;
}

/* LIGNE ANIMÉE PREMIUM */

.logo-line-gradient {
  width: 160px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #0090ff, #00a8ff, #4fd3ff);
  box-shadow: 0 0 12px rgba(0,168,255,0.8);
  animation: pulseSync 2.4s ease-in-out infinite;
}

/* ANIMATIONS SYNCHRONISÉES */

@keyframes pulseSync {
  0% { box-shadow: 0 0 6px rgba(0,168,255,0.4); transform: scaleX(1); }
  50% { box-shadow: 0 0 22px rgba(0,168,255,1); transform: scaleX(1.12); }
  100% { box-shadow: 0 0 6px rgba(0,168,255,0.4); transform: scaleX(1); }
}

@keyframes textGlowSync {
  0% { text-shadow: 0 0 4px rgba(0,168,255,0.3); }
  50% { text-shadow: 0 0 14px rgba(0,168,255,0.9); }
  100% { text-shadow: 0 0 4px rgba(0,168,255,0.3); }
}

/* MENU */

.header-nav {
  display: none; /* mobile : masqué, ouvert via burger */
  flex-direction: column;
  gap: 16px;
  background: #0f172a;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #1f2937;
}

.header-nav.open {
  display: flex;
}

.header-nav a {
  color: #e5e7eb;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 4px;
  position: relative;
  transition: color 0.25s ease;
}

.header-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #00A8FF;
  border-radius: 2px;
  transition: width 0.25s ease;
}

.header-nav a:hover {
  color: #ffffff;
}

.header-nav a:hover::after {
  width: 100%;
}

/* Burger (mobile) */

.burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger span {
  width: 26px;
  height: 3px;
  background: #00A8FF;
  border-radius: 3px;
  transition: 0.3s ease;
}

/* Animation burger ouvert */
.burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============================
   HERO
============================ */

.hero {
  background: radial-gradient(circle at top left, #1e293b 0, #020617 50%, #000 100%);
  color: #f9fafb;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 16px;
  text-align: center;
}

.hero h1 {
  font-size: 2rem;
  margin: 0 0 10px 0;
}

.hero-subtitle {
  font-size: 1.85rem;
  font-weight: 500;
  color: #e5e7eb;
  letter-spacing: 0.3px;
  display: block;
  margin-top: 4px;
}

.hero p {
  margin: 0 0 18px 0;
  max-width: 520px;
  color: #e5e7eb;
  margin-left: auto;
  margin-right: auto;
}

/* BOUTONS HERO */

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.hero-actions a:first-child {
  background: #00A8FF;
  color: #0b1120;
}

.hero-actions a:first-child:hover {
  background: #38bdf8;
  transform: translateY(-2px);
}

.hero-actions a:last-child {
  background: transparent;
  color: #e5e7eb;
  border: 1px solid #4b5563;
}

.hero-actions a:last-child:hover {
  background: #111827;
}

/* CTA générique */

.cta-btn {
  display: inline-block;
  background: #00A8FF;
  color: #0b1120;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.25s ease, transform 0.25s ease;
  text-decoration: none;
}

.cta-btn:hover {
  background: #38bdf8;
  transform: translateY(-2px);
}

/* ============================
   SECTIONS
============================ */

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 14px 28px;
}

.section-title h2 {
  margin: 0 0 6px 0;
  color: #f9fafb;
}

.section-title p {
  margin: 0;
  color: #9ca3af;
}

/* Animation douce des sections */

.section-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================
   CARDS (MOBILE FIRST)
============================ */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 20px;
}

.card {
  background: #020617;
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.6);
  border: 1px solid #1f2937;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: #00A8FF;
  box-shadow: 0 14px 35px rgba(0,168,255,0.35);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.1rem;
  color: #f9fafb;
}

.card p {
  margin: 0;
  color: #9ca3af;
}

/* Format portrait avec image entière */

.card-image {
  width: 100%;
  height: 360px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #1f2937;
  background: #0f172a;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* image entière */
  object-position: center;
  background: #0f172a;
  transition: transform .35s ease;
}

.card:hover .card-image img {
  transform: scale(1.03);
}

/* ============================
   CONTACT — VERSION PREMIUM
============================ */

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 32px;
  align-items: start;
}

.contact-form {
  background: #0f172a;
  padding: 28px;
  border-radius: 14px;
  border: 1px solid #1e293b;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

.contact-form h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.6rem;
  color: #f9fafb;
}

.contact-form p {
  margin-top: 0;
  margin-bottom: 20px;
  color: #9ca3af;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #0b1120;
  color: #e5e7eb;
  font-size: 1rem;
  margin-bottom: 10px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.contact-form input:hover,
.contact-form textarea:hover,
.contact-form select:hover {
  border-color: #00A8FF;
  box-shadow: 0 0 6px rgba(0,168,255,0.3);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: #00A8FF;
  box-shadow: 0 0 8px rgba(0,168,255,0.4);
  outline: none;
}

.contact-form button {
  margin-top: 14px;
  width: 100%;
  padding: 12px 18px;
  border-radius: 999px;
  background: #00A8FF;
  color: #0b1120;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.contact-form button:hover {
  background: #38bdf8;
  transform: translateY(-2px);
}

.contact-info {
  background: #0f172a;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid #1e293b;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
  animation: fadeUp 1s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}
/* Élargissement du bloc coordonnées */
.contact-info {
    width: 100%;
    max-width: 560px; /* Ajustable : 520 / 540 / 560 selon ton goût */
}

/* Empêche l’adresse de revenir à la ligne */
.contact-info a {
    white-space: nowrap;
}

.contact-info h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.4rem;
  color: #f9fafb;
}

.contact-info p {
  margin: 6px 0;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info p svg {
  width: 20px;
  height: 20px;
  fill: #00A8FF;
  flex-shrink: 0;
}

/* Animations */

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

.input-error {
  border-color: #ff4d4d !important;
  animation: shake 0.3s ease;
}

.required-note {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #9ca3af;
  text-align: right;
  opacity: 0.8;
}

/* ============================
   OVERLAY PREMIUM
============================ */

#overlay-success {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#overlay-success.visible {
  opacity: 1;
  pointer-events: auto;
}

.overlay-box {
  background: #0f172a;
  padding: 28px;
  border-radius: 14px;
  border: 1px solid #1e293b;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  text-align: center;
  animation: overlayPop 0.4s ease;
}

.overlay-box h3 {
  margin-top: 0;
  color: #bbf7d0;
}

.overlay-box p {
  margin: 8px 0 0;
  color: #e5e7eb;
}

.overlay-box button {
  margin-top: 16px;
  padding: 10px 20px;
  border-radius: 999px;
  background: #00A8FF;
  color: #0b1120;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background 0.25s ease, transform 0.25s ease;
}

.overlay-box button:hover {
  background: #38bdf8;
  transform: translateY(-2px);
}

@keyframes overlayPop {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ============================
   FOOTER
============================ */

footer {
  border-top: 1px solid #1f2937;
  background: #020617;
  margin-top: 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 16px 18px;
  font-size: 0.85rem;
  color: #6b7280;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ============================
   FICHIERS (UPLOAD)
============================ */

#fileList {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.file-item {
  background: #0f172a;
  border: 1px solid #1e293b;
  padding: 8px 12px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #e5e7eb;
  font-size: 0.9rem;
}

.file-item button {
  background: #ff4d4d;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.25s ease;
}

.file-item button:hover {
  background: #ff6b6b;
}

/* ============================
   À PROPOS
============================ */

.about-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 24px;
}

.about-text p {
  color: #cbd5e1;
  margin-bottom: 14px;
}

.about-image img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #1f2937;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

/* ============================
   BREAKPOINTS (DESKTOP)
============================ */

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 780px) {
  .header-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .header-nav {
    display: flex;
    flex-direction: row;
    gap: 28px;
    background: none;
    padding: 0;
    border: none;
    margin-left: auto;
  }

  .burger {
    display: none;
  }

  .about-wrapper {
    grid-template-columns: 1fr 1fr;
  }

  .contact-wrapper {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  }
}

@media (min-width: 1024px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-inner {
    padding: 40px 16px;
    text-align: left;
  }

  .hero p {
    margin-left: 0;
  }

  .hero-actions {
    justify-content: flex-start;
  }
}
.card-icon {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}

.card-icon svg {
  width: 32px;
  height: 32px;
  fill: #00A8FF;
  filter: drop-shadow(0 0 6px rgba(0,168,255,0.4));
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.card-header h3 {
    margin: 0;
    font-size: 1.15rem;
    color: #f9fafb;
}

.card-header svg {
    width: 28px;
    height: 28px;
    fill: #00A8FF;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(0,168,255,0.4));
    transition: transform .25s ease;
}

.card:hover .card-header svg {
    transform: scale(1.15);
}
.hero-tight {
    margin-top: -36px; /* réduit l’espace entre ligne 2 et 3 */
}
.seo-intro {
    font-size: 1.05rem;
    color: #cbd5e1;
    max-width: 620px;
    margin: 18px auto 0;
    line-height: 1.55;
}
.zones-text {
    font-size: 1.05rem;
    color: #cbd5e1;
    line-height: 1.55;
    max-width: 720px;
}
.why-me {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: grid;
    gap: 10px;
}

.why-me li {
    background: #0f172a;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #1e293b;
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.45;
    box-shadow: 0 6px 14px rgba(0,0,0,.25);
    transition: .25s ease;
}

.why-me li:hover {
    border-color: #00A8FF;
    box-shadow: 0 8px 20px rgba(0,168,255,.25);
}
.service-desc {
    margin-top: 10px;
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.45;
}
.footer-seo {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 10px;
  line-height: 1.45;
}
/* On annule le margin sur le h1 si besoin */
.apropos-title {
  margin-bottom: 0;
}

/* On crée l’espace sous la phrase d’accroche */
.section-title p {
  margin-top: 8px;      /* petit espace entre h1 et la phrase */
  margin-bottom: 25px;  /* gros espace avant "Qui suis-je ?" */
}
/* --- MENU MOBILE PREMIUM --- */

/* Fond semi-transparent derrière le menu */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  z-index: 900;
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Conteneur du menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -260px;
  width: 260px;
  height: 100vh;
  background: #0f172a;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: right 0.35s ease;
  z-index: 1000;
}

.mobile-menu.active {
  right: 0;
}

/* Liens */
.mobile-menu a {
  color: white;
  font-size: 1.1rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Bouton fermer */
.mobile-close {
  align-self: flex-end;
  font-size: 1.6rem;
  cursor: pointer;
  margin-bottom: 10px;
  color: #38bdf8;
}

/* Empêcher le scroll quand le menu est ouvert */
body.menu-open {
  overflow: hidden;
}
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #0f172a;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 16px;
  background: none;
  border: none;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  font-weight: 600;
}

.faq-question.active {
  color: #38bdf8;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 16px;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  margin: 12px 0 16px;
  color: #94a3b8;
}
/* Bloc social */
.contact-info .social-links {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Lien complet : icône + texte */
.contact-info .social-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0;
}

.contact-info .social-icon svg {
    width: 22px;
    height: 22px;
    fill: #00A8FF;
}

.contact-info .social-icon a {
    color: #00A8FF;
    font-weight: 500;
    font-size: 1rem;
}
/* Réseaux sociaux sur une seule ligne */
.contact-info .social-line {
    display: flex;
    align-items: center;
    gap: 22px; /* espace entre Facebook et Instagram */
    margin-top: 12px;
}

.contact-info .social-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #00A8FF;
    font-weight: 500;
}

.contact-info .social-item svg {
    width: 22px;
    height: 22px;
    fill: #00A8FF;
    flex-shrink: 0;
}

.contact-info .social-item:hover span {
    color: #38bdf8;
}

.contact-info .social-item:hover svg {
    fill: #38bdf8;
    transform: scale(1.12);
    transition: 0.2s ease;
}

