/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&family=Lora:wght@400;700&display=swap');

/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

/* Header */
header {
    background: #ff6363;
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 24px;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

header h1 {
    flex: 1;
    margin: 0;
    padding: 0 40px;
    text-shadow: -1px -1px 0 orange, 1px -1px 0 orange, -1px 1px 0 orange, 1px 1px 0 orange; /* Stroke orange */
}

/* Style du bouton */
header button {
    position: absolute;
    left: 20px;
    background: white;
    color: #ff6363;
    border: 2px solid #ff6363;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

/* Effet hover */
header button:hover {
    background: #ff6363;
    color: white;
    border-color: white;
}


/* Navigation */
nav {
    text-align: center;
    margin: 20px 0;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav a {
    text-decoration: none;
    color: #ff6363;
    font-weight: 600;
    transition: 0.3s;
}

nav a:hover {
    color: #333;
}

/* Sections */
section {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #ff6363;
    margin-bottom: 10px;
    font-family: 'Lora', serif;
}

/* Code */
code {
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-family: monospace;
}

/* Blockquote */
blockquote {
    font-style: italic;
    border-left: 5px solid #ff6363;
    padding-left: 15px;
    color: #555;
}

/* Footer */
footer {
    text-align: center;
    padding: 15px;
    background: #333;
    color: white;
    margin-top: 20px;
    border-radius: 8px;
}

/* Carrousel */
.carousel-container {
    width: 80%;
    max-width: 800px;
    height: 400px;
    margin: 30px auto;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel img {
    min-width: 100%; /* Change width to min-width */
    flex: 0 0 100%; /* Add flex property */
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
/* Navigation boutons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    cursor: pointer;
    font-size: 24px;
    padding: 10px;
    border-radius: 50%;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.carousel-btn:hover {
    background: rgba(255, 99, 99, 0.8);
}
#randomArticle {
    display: block;
    margin: 20px auto;
    background: #ff6363;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

#randomArticle:hover {
    background: white;
    color: #ff6363;
    border: 2px solid #ff6363;
}
/* Conteneur des cartes */
.menu-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

/* Style de chaque carte */
.card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 200px;
    color: black;
}

.card a {
    display: block;
    text-decoration: none;
    color: inherit; /* Garde la couleur du texte parent */
    width: 100%;
    height: 100%;
    padding: 15px;
    border-radius: 10px;
    transition: background 0.3s ease-in-out;
}

.card a:visited {
    color: inherit; /* Garde la couleur d'origine après la visite */
}

.card img {
    width: 100%;
    height: auto;
}

.card h3 {
    margin: 15px 0;
    font-size: 1.2em;
    color: #333;
}

.card h3 a:visited {
    color: black; /* Force la couleur noire pour les liens visités dans les titres */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
a:visited {
    color:  #ff6363;
}
/* Largeur maximale augmentée et centrée */
article {
    max-width: 1200px; /* Augmente la largeur */
    width: 90%; /* S'assure qu'il prend presque toute la largeur */
    margin: 0 auto;
    text-align: left; /* Alignement naturel du texte */
    padding: 40px; /* Ajoute de l'espace autour du contenu */
}

/* Ajustement des sections pour qu'elles soient plus larges */
article section {
    padding: 30px;
    border-radius: 10px;
}

/* Les images doivent s'adapter à la nouvelle largeur */
/* Ajustement des images dans l'article */
.article-image {
    display: block;
    margin: 20px auto;
    width: 100%; /* Responsive */
    max-width: 556px; /* Taille maximale fixe */
    height: auto; /* Garde le ratio original */
    border-radius: 10px; /* Coins arrondis pour un look plus fluide */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Légère ombre pour un meilleur effet visuel */
}

.site-footer
{
  background-color:#26272b;
  padding:45px 0 20px;
  font-size:15px;
  line-height:24px;
  color:#737373;
}
.site-footer hr
{
  border-top-color:#bbb;
  opacity:0.5
}
.site-footer hr.small
{
  margin:20px 0
}
.site-footer h6
{
  color:#fff;
  font-size:16px;
  text-transform:uppercase;
  margin-top:5px;
  letter-spacing:2px
}
.site-footer a
{
  color:#737373;
}
.site-footer a:hover
{
  color:#3366cc;
  text-decoration:none;
}
.footer-links {
    display: flex;
    flex-wrap: wrap; /* Permet le retour à la ligne si nécessaire */
    justify-content: center; /* Centre les éléments horizontalement */
    gap: 15px; /* Espacement entre les éléments */
    padding: 0;
    list-style: none;
}

.footer-links li {
    display: inline; /* Permet un affichage en ligne */
}

.footer-links a {
    text-decoration: none;
    color: #737373;
    font-weight: bold;
}

.footer-links a:hover {
    color: #3366cc;
}
/* Correction des boutons existants */
button, .submit-button {
    background-color: #ff6363;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    width: auto;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
}

button:hover, .submit-button:hover {
    background-color: white;
    color: #ff6363;
    border: 2px solid #ff6363;
}

/* Style du bouton retour */
.back-button {
    position: absolute;
    left: 20px;
    top: 15px;
    padding: 8px 15px;
    font-size: 16px;
    background: white;
    color: #ff6363;
    border: 2px solid #ff6363;
    cursor: pointer;
    border-radius: 5px;
}

.back-button:hover {
    background: #ff6363;
    color: white;
}

/* Contact Page - Ajustements */
.contact-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    padding: 40px 20px;
    max-width: 1100px;
    margin: auto;
}

/* Formulaire */
.contact-container {
    background: white;
    width: 90%;
    max-width: 500px;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact-container h2 {
    color: #ff6363;
    font-size: 22px;
    margin-bottom: 10px;
}

.contact-container p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

/* Champs du formulaire */
.form-group {
    margin-bottom: 15px;
    text-align: left;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

input, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    background: #f9f9f9;
    transition: 0.3s;
}

input:focus, textarea:focus {
    border-color: #ff6363;
    background: #fff;
    outline: none;
}

/* Infos de contact */
.contact-info {
    background: white;
    width: 90%;
    max-width: 400px;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact-info h2 {
    color: #ff6363;
    font-size: 22px;
    margin-bottom: 10px;
}

.contact-info p {
    font-size: 16px;
    color: #333;
    margin: 5px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-page {
        flex-direction: column;
        align-items: center;
    }

    .contact-container, .contact-info {
        width: 95%;
    }

    .back-button {
        position: static;
        display: block;
        margin: 10px auto;
        text-align: center;
    }
}
/* Hero Banner - Alignement amélioré */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ff6363;
    color: white;
    padding: 40px 20px;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 90%;
    flex-wrap: wrap;
}

/* Texte à gauche */
.hero-text {
    flex: 1;
    max-width: 55%;
    padding-right: 20px;
}

/* Image à droite */
.hero-image {
    flex: 1;
    max-width: 40%;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Correction du bouton */
.cta-button {
    display: inline-block;
    background: white;
    color: #ff6363;
    padding: 12px 20px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3s;
    margin-top: 10px;
}

.cta-button:hover {
    background: white;
    color: #ff6363;
    border: 2px solid #ff6363;
}

/* Responsive Fix */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
        padding-right: 0;
    }

    .hero-image {
        max-width: 100%;
        margin-top: 20px;
    }

    .hero-image img {
        width: 80%;
    }
}



.cta-button {
    display: inline-block;
    background: white;
    color: #ff6363;
    padding: 12px 25px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3s;
}

.cta-button:hover {
    background: #fff;
    color: #ff6363;
    border: 2px solid #ff6363;
}

/* Section Articles */
.menu-cards h2 {
    width: 100%;
    color: #ff6363;
    text-align: center;
    margin-bottom: 20px;
}
