:root{
    --bg:rgb(255, 255, 255);
    --txt:rgb(2, 2, 2);
    --bgn:linear-gradient( 200deg, #f1b900 , #e91212 );
    --sp:#f9d87a;

}


*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body{
  background-color: var(--bg);
  color: var(--txt);
  font-family:'poppins', sans-serif;
  line-height: 1.6;

}

header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8px;
    color: var(--bg);
    position: sticky; /*permet au header de rester visible à l'écran quand on défile*/
    z-index: 1000;/*header reste au dessus de tout le reste du body , donc toujours visible*/
    background:var(--bgn);
   margin-top: 0;
}

.logo{
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--txt);
     font-family: 'Playfair Display', serif;
  letter-spacing: 0.5px;
}

.logo span{
    color: var(--txt);
}

nav ul{
list-style: none;
display: flex;
gap: 30px; /*espace entre les elements de la liste */
}

nav a{
    text-decoration: none;
    color: black;
    font-weight: 500;
    transition: color 0.3s ease;
}
 nav a:hover{
    color:var(--bg);
 }

 .hero {
  background: url('babi.jpg') center/cover no-repeat;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  color: var(--bg);
}

.hero::before {

  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
     font-family: 'Playfair Display', serif;
  letter-spacing: 0.5px;
}

.hero .slogan {
  font-size: 1.4rem;
  color: var(--sp);
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: antiquewhite;
}

.btn {
  display: inline-block;
  background:var(--bgn);
  color:var(--bg);
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn:hover {
  background-color: #a9871c;
}
.about {
  text-align: center;
  padding: 80px 10%;
  background-color:var(--bg);
}

.about h2 {
  font-size: 2rem;
  color:var(--txt);
  margin-bottom: 15px;
     font-family: 'Playfair Display', serif;
  letter-spacing: 0.5px;
}

.about p {
  color: #555;
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto;
}

.categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  padding: 80px 8%;
  background-color: #f9f9f9;
}
.card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  width: 350px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card h3 {
  margin-top: 15px;
  font-size: 1.2rem;
  color: #222;
}

.card p {
  margin: 10px 20px;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.4;
}


.card .btn {
  display: block;             /* permet le centrage avec margin:auto */
  margin: 15px auto 25px;     /* espace haut et bas + centrage horizontal */
  width: fit-content;         /* garde la taille du bouton */
  background: var(--bgn);
  color: var(--bg);
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

.card .btn:hover {
  background: #a9871c;
  transform: scale(1.05);
}



.restaurants {
  padding: 80px 8%;
  background-color: var(--bg);
  text-align: center;
  background-color: #f9f9f9;
}

.restaurants h2 {
  font-size: 2rem;
  color: var(--txt);
  margin-bottom: 15px;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.5px;
}

.restaurants .intro {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.restaurant-list {
  display:flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}


.restaurants .card img {
  height: 200px;

}

.restaurants .card p {
  color: #444;
  font-size: 0.95rem;
  padding: 0 15px 15px;
}

.lieux {
  padding: 80px 8%;
  background-color: var(--bg);
  text-align: center;
  background-color: #f9f9f9;
}

.lieux h2 {
  font-size: 2rem;
  color: var(--txt);
  margin-bottom: 15px;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.5px;
}

.lieux .intro {
  font-size: 1.1rem;
  color: #686767;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.tendance-list {
  display:flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}


.tendance .card img {
  height: 200px;

}

.tendance .card p {
  color: #444;
  font-size: 0.95rem;
  padding: 0 15px 15px;
}

.contact {
  padding: 80px 10%;
  text-align: center;
  background-color: #f9f9f9;
  background: url(baie.jpg);background-position: center; background-repeat: no-repeat; background-size: cover;
}

.contact h2 {
  font-size: 2rem;
  color: var(--bg);
  margin-bottom: 15px;
  font-family: 'Playfair Display', serif;
}

.contact .intro {
  font-size: 1.1rem;
  color: var(--bg);
  margin-bottom: 50px;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
}


.contact-form {
  background-color:transparent;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 600px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form .btn{
   border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

.contact-form .btn:hover{
  background: #a9871c;
  transform: scale(1.05);
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #f1b900;
  outline: none;
}

.coordonnées{
  text-align: center;
background-color: #e0dddd;
  color: #0c0c0c;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: #f1b900;
}

.coordonnées i{
   color: #f1b900;
}


footer .follow,p {
  margin-bottom: 15px;
  font-size: 1rem;
  color:var(--txt);
  font-weight: 500;
  text-align: center;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-icons a {
  color: #c9a227;
  font-size: 1.3rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  color: var(--bg);
  transform: scale(1.2);
}
/* Tablettes (768px) */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 15px;
    }
    .hero h1 { font-size: 2.2rem; }
    .hero .slogan { font-size: 1.2rem; }
    .btn { padding: 10px 20px; font-size: 0.9rem; }
    .about, .categories, .restaurants, .lieux, .tendance, .contact {
        padding: 60px 5%;
    }
    .categories, .restaurant-list, .tendance-list {
        flex-direction: column;
        align-items: center;
    }
    .card { width: 90%; }
    .contact-form { width: 100%; padding: 20px; }
}

/* Smartphones (480px) */
@media (max-width: 480px) {
    header { flex-direction: column; gap: 15px; padding: 15px 5px; }
    .hero h1 { font-size: 1.8rem; }
    .hero .slogan { font-size: 1rem; }
    nav a { font-size: 0.9rem; }
    .card h3 { font-size: 1rem; }
    .card p { font-size: 0.85rem; }
    .btn { padding: 8px 15px; font-size: 0.85rem; }
    .contact-form { padding: 15px; }
}

.card img,
.hero img,
.restaurant-list img,
.tendance-list img {
    width: 100%;
    height: auto;
}


