/* ----- Couleurs principales (identiques à ton thème Flutter) ----- */
:root {
  --bg-dark: #0F3D57;
  --bg-card: #174A64;
  --accent: #26B2D5;
  --accent-secondary: #23A5C0;
  --text-light: #D1ECF3;
  --text-muted: #9DC5D0;
  --white: #FFFFFF;
}

/* ----- Animation d'apparition globale ----- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

body {
  font-family: 'Roboto', 'Open Sans', Arial, sans-serif;
  margin: 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
  text-align: center;
  line-height: 1.6;
  opacity: 0;
  animation: fadeIn 1.2s ease-out forwards;
}

/* ----- Transitions globales ----- */
* {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ----- Header ----- */
header {
  background-color: var(--bg-card);
  padding: 2rem 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  animation: fadeIn 1.5s ease-out forwards;
}

header h1 {
  font-size: 2rem;
  margin: 0.5rem 0;
  color: var(--accent);
}

header p {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

nav a {
  color: var(--accent);
  text-decoration: none;
  margin: 0 0.5rem;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

/* ----- Liens et boutons ----- */
.links a {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.8rem 1.6rem;
  background: var(--accent);
  color: var(--white);
  border-radius: 12px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.links a:hover {
  background: var(--accent-secondary);
  transform: scale(1.05);
}

/* ----- Images ----- */
.logo {
  width: 90px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  animation: fadeIn 1.8s ease-out forwards;
}

.photo {
  max-width: 90%;
  border-radius: 16px;
  margin-top: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  opacity: 0;
  animation: fadeIn 2s ease-out 0.5s forwards;
}

/* ----- Contenu principal ----- */
main {
  padding: 2rem 1rem;
}

h2 {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* ----- Footer ----- */
footer {
  background-color: var(--bg-card);
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  opacity: 0;
  animation: fadeIn 2.3s ease-out 0.4s forwards;
}

footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
}

footer a:hover {
  text-decoration: underline;
}

/* ----- Petits écrans ----- */
@media (max-width: 600px) {
  header h1 {
    font-size: 1.6rem;
  }
  .links a {
    display: block;
    margin: 0.6rem auto;
    width: 80%;
  }
}

/* ----- Liens améliorés ----- */
.links-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  margin-top: 2rem;
}

.link-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.link-button {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  background: var(--accent);
  color: white;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: all 0.25s ease;
}

.link-button:hover {
  background: var(--accent-secondary);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.link-button.social {
  background: #14516B;
}

.link-button.social:hover {
  background: #1C6788;
}
