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

body {
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    background: #f4f4f9;
    color: #333;
    line-height: 1.6;
}

/* HEADER HERO */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    text-align: center;
    padding: 0 20px;
    margin-top: 60px; /* évite que la navbar cache le hero */
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    color: #fff;
    max-width: 600px;
    margin: auto;
}

.hero-content .image img {
    margin-top: 2rem;
    max-width: 50%;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* SECTIONS */
section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: auto;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #222;
}

/* IMAGES DE SECTION */
section .image img {
    width: 100%;
    max-width: 600px;
    display: block;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* CARDS */
.cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 40px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.cards::-webkit-scrollbar {
    height: 8px;
}

.cards::-webkit-scrollbar-thumb {
    background: #ff6f61;
    border-radius: 4px;
}

.cards::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.card {
    background: #f1e1e1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, max-height 0.5s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(82, 7, 7, 0.336);
}

.card .image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10%;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #ff6f61;
}

.card p.cliche {
    font-size: 0.95rem;
    color: #555;
}

.card p.realidad {
    color: #222;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease;
}

.card.active p.realidad {
    max-height: 500px;
    opacity: 1;
}

/* SECTION REALIDAD */
.realidad {
    background: #fefefe;
    padding: 60px 20px;
    border-radius: 20px;
    max-width: 1000px;
    margin: 50px auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
}

.realidad h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #222;
}

.realidad .image {
    max-width: 500px;
    margin: 0 auto 30px;
}

.realidad .image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.realidad .image img:hover {
    transform: scale(1.05);
}

.realidad ul {
    list-style: none;
    padding: 0;
    max-width: 700px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.realidad ul li {
    background: #f1e1e1;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    position: relative;
    font-size: 1rem;
    color: #444;
    display: flex;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.realidad ul li::before {
    content: "✔";
    margin-right: 10px;
    color: #8eff61;
    font-weight: bold;
}

.realidad ul li:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* MENSAJE */
.mensaje {
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    color: #fff;
    text-align: center;
    padding: 60px 20px;
    border-radius: 20px;
}

.mensaje .frase {
    font-weight: bold;
    font-size: 1.5rem;
    margin-top: 20px;
}

/* FOOTER */
.site-footer {
    background: #222;
    color: #fff;
    padding: 60px 20px 20px;
    font-size: 0.95rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    gap: 40px;
}

.footer-container h3 {
    margin-bottom: 15px;
    color: #ff6f61;
}

.footer-about, .footer-links, .footer-social {
    flex: 1 1 250px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #fff;
    text-decoration: none;
}

.footer-social .social-icons {
    display: flex;
    gap: 15px;
}

.footer-social .social-icons a img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    font-size: 0.85rem;
    color: #aaa;
}

/* NAVBAR */

.navbar{
background:#111;
width:100%;
padding:10px 30px;
position:fixed;
top:0;
left:0;
z-index:1000;
}

.nav-container{
display:flex;
align-items:center;
}

.nav-logo{
width:40px;
height:40px;
object-fit:contain;
margin-right:10px;
}

.site-name{
color:white;
font-size:20px;
font-weight:bold;
letter-spacing:1px;
}

/* RESPONSIVE */

@media (max-width: 900px){

.cards{
grid-template-columns:repeat(2,1fr);
}

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

}

@media (max-width: 768px){

.hero{
height:auto;
padding:120px 20px 60px 20px;
}

.hero-content h1{
font-size:2rem;
}

.hero-content p{
font-size:1rem;
}

.card .image img{
width:80px;
height:80px;
}

.realidad ul{
grid-template-columns:1fr;
}

.footer-container{
flex-direction:column;
gap:30px;
}

}

@media (max-width:500px){

.cards{
grid-template-columns:1fr;
}

.navbar{
padding:10px 15px;
}

.nav-logo{
width:30px;
height:30px;
}

.site-name{
font-size:16px;
}

.hero-content .image img{
max-width:95%;
}

}