/* =========================
   STYLE HORCHATA DE CHUFA
   Couleurs chaudes + design coloré
   ========================= */

/* --- Animation fade + montée --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Style général --- */
body {
  font-family: "Georgia", serif;
  background: linear-gradient(180deg,#f6f1eb,#f2e6db);
  color: #4a2f1b;
  margin: 0;
  padding: 40px;
  line-height: 1.7;
  animation: fadeUp 0.8s ease-out;
}

/* --- Bandeau titre --- */
header{
  background: linear-gradient(90deg,#d88c4a,#c26a2e);
  padding:40px;
  border-radius:14px;
  color:white;
  text-align:center;
  margin-bottom:40px;
  box-shadow:0 6px 18px rgba(74,47,27,0.25);
}

/* --- Titres --- */
h1 {
  font-size: 2.8em;
  margin:0;
}

h2 {
  color: #8b4a1f;
  border-left: 6px solid #d88c4a;
  padding-left: 12px;
  margin-top: 40px;
  animation: fadeUp 1.2s ease-out;
}

/* --- Sections type "cartes" --- */
section{
  background:white;
  padding:30px;
  margin:40px auto;
  max-width:1000px;
  border-radius:14px;
  box-shadow:0 6px 18px rgba(74,47,27,0.15);
  animation: fadeUp 1.2s ease-out;
  transition:transform 0.3s ease;
}

section:hover{
  transform:translateY(-5px);
}

/* --- Paragraphes --- */
p {
  font-size: 1.1em;
}

/* --- Listes --- */
ul,ol{
  margin-top:15px;
}

/* --- Image --- */
img {
  display: block;
  margin: 30px auto;
  max-width: 70%;
  border-radius: 14px;
  box-shadow: 0 6px 15px rgba(74, 47, 27, 0.25);
  animation: fadeUp 1.6s ease-out;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

img:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 28px rgba(74, 47, 27, 0.35);
}

/* --- Liens --- */
a {
  color: #d1742f;
  text-decoration: none;
  font-weight: bold;
  position: relative;
}

a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #d1742f;
  transition: width 0.3s ease;
}

a:hover {
  color: #8b4a1f;
}

a:hover::after {
  width: 100%;
}

/* --- Navigation --- */
nav {
  margin-top: 60px;
  padding: 18px;
  background: linear-gradient(90deg,#e7d6c6,#f0e2d4);
  text-align: center;
  border-radius: 12px;
  box-shadow:0 4px 10px rgba(74,47,27,0.15);
position: sticky;
  top: 0;
  z-index: 1000;
}

nav a {
  margin: 0 15px;
  color: #4a2f1b;
  font-size: 1.1em;
}

nav a:hover {
  color: #c26a2e;
}

/* --- Responsive --- */
@media (max-width:800px){
  body{
    padding:20px;
  }

  section{
    padding:20px;
  }

  img{
    max-width:90%;
  }
}

/* --- Sécurité mise en page --- */
* {
  box-sizing: border-box;
}