/* ============================================
   🇮🇹 Élodie Jactel - Cours d'italien
   Style principal du site
   ============================================ */

:root {
  --vert: #009246;
  --blanc: #ffffff;
  --rouge: #ce2b37;
  --gris: #222;
  --radius: 20px;
  --shadow: 0 8px 20px rgba(0, 0, 0, .15);
}

/* ============================================
   Reset & Base
   ============================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: auto;
  min-height: 100%;
  font-family: Montserrat, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--gris);
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-width: none; /* Firefox */
}

body::-webkit-scrollbar {
  display: none;
}

/* ============================================
   Fond animé aux couleurs italiennes
   ============================================ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(90deg, var(--vert), var(--blanc), var(--rouge));
  background-size: 400% 400%;
  animation: parallaxMove 20s linear infinite;
  z-index: -1;
}

@keyframes parallaxMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ============================================
   Header
   ============================================ */
header {
  background: linear-gradient(90deg, var(--vert), var(--blanc), var(--rouge));
  text-align: center;
  padding: 16px 24px;
  color: #000;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .2);
  border-radius: 0 0 var(--radius) var(--radius);
  position: relative;
  z-index: 10;
}

.title b {
  font-size: 24px;
  font-weight: 700;
  display: block;
}

.title span {
  font-size: 14px;
  margin-top: 4px;
  display: block;
}

.contact-top {
  font-weight: 700;
  margin-top: 8px;
  display: inline-block;
  color: #111;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--vert), var(--blanc), var(--rouge));
  border: 1px solid #bbb;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
  animation: pulse 2.5s infinite;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.contact-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, .35);
  filter: brightness(1.1);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 146, 70, .4); }
  70% { box-shadow: 0 0 0 12px rgba(0, 146, 70, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 146, 70, 0); }
}

/* ============================================
   Navigation
   ============================================ */
.nav-links {
  text-align: center;
  margin: 14px 0;
  font-weight: 600;
}

.nav-links a {
  color: #111;
  text-decoration: none;
  margin: 0 12px;
  transition: color 0.3s ease;
}

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

/* ============================================
   Container principal
   ============================================ */
.container, main {
  max-width: 960px;
  margin: 20px auto;
  padding: 24px;
  background: #ffffff; /* 100% opaque pour meilleur contraste */
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: fadeInUp 1s ease both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Typographie
   ============================================ */
h1 {
  text-align: center;
  font-size: 30px;
  margin: 20px 0 6px;
  color: var(--vert);
}

h2 {
  color: var(--vert);
  margin: 40px 0 16px;
  text-align: center;
}

h2.subtitle {
  text-align: center;
  font-size: 20px;
  margin-bottom: 16px;
  color: var(--rouge);
}

h3 {
  color: var(--vert);
  margin: 16px 0 8px;
  text-align: center;
}

p {
  text-align: center;
  margin: 8px 0;
}

/* ============================================
   Listes
   ============================================ */
ul {
  list-style: none;
}

ul li {
  margin: 12px 0;
  padding: 14px 18px;
  border-left: 5px solid var(--rouge);
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ============================================
   Boutons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(90deg, var(--vert), var(--blanc), var(--rouge));
  color: #111;
  font-weight: 700;
  border-radius: var(--radius);
  border: 1px solid #bbb;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, .35);
  filter: brightness(1.1);
}

/* Bouton SMS avec effet pulse */
.btn-sms {
  animation: pulse 2.5s infinite;
  font-size: 16px;
  padding: 12px 20px;
}

/* ============================================
   Iframe (Google Maps)
   ============================================ */
iframe {
  border: 0;
  border-radius: var(--radius);
  width: 300px;
  height: 200px;
  display: block;
  margin: 0 auto;
}

/* ============================================
   Footer
   ============================================ */
footer {
  text-align: center;
  margin-top: 60px;
  padding: 20px;
  background: linear-gradient(90deg, var(--vert), var(--blanc), var(--rouge));
  font-weight: 600;
  color: #000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, .2);
  border-radius: var(--radius) var(--radius) 0 0;
}

footer small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
}

footer .copyright {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

/* ============================================
   Sections
   ============================================ */
section {
  margin-bottom: 40px;
}

/* ============================================
   Animations de scroll
   ============================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Bouton d'appel mobile
   ============================================ */
.call-btn {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--vert), var(--blanc), var(--rouge));
  color: #111;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 13px;
  text-align: center;
  line-height: 1.2;
  flex-direction: column;
  width: 160px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  animation: pulse 2.5s infinite;
  text-decoration: none;
}

/* Masquer le bouton sur desktop */
@media (min-width: 769px) {
  .call-btn {
    display: none;
  }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 18px;
  }

  .container, main {
    padding: 16px;
    margin: 10px;
  }

  .btn {
    font-size: 13px;
    padding: 8px 12px;
  }
}