
@font-face {
    font-family: 'Great Vibes';
    src: url('/static/fonts/GreatVibes-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

h1, .logo-text {
    font-family: 'Great Vibes', cursive;
}


body {
    background-color: #f7f7f7;
    color: #333;
    line-height: 1.6;
}

.logo {
    width: 60px;
    margin-bottom: 1rem;
}


.slogan {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* MAIN */
main {
    max-width: 1100px;
    margin: auto;
    padding: 2rem 1rem;
}

section {
    margin-bottom: 3rem;
}

h2 {
    margin-bottom: 1rem;
    color: #4b134f;
}

/* INTRO */
.intro p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

/* VALUES */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    text-align: center;
}

.card h3 {
    margin-bottom: 0.5rem;
}

/* CTA */
.cta {
    background: #fff;
    padding: 2rem;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.btn {
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s ease;
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.6rem;
    background: #c94b4b;
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    opacity: 0.9;
}


.btn-style {
    background: linear-gradient(135deg, #d06b6b, #6e4a7e);
    display: inline-block;       /* <a> se comporte comme un bouton */
    font-family: inherit;        /* même police que le texte parent */
    font-size: 16px;             /* taille identique */
    font-weight: 600;            /* facultatif mais cohérent */
    line-height: 1.5;            /* cohérence texte vertical */
    text-decoration: none;       /* enlève le soulignement des liens */
    padding: 10px 20px;          /* espace intérieur identique */
    border: none;                /* supprime la bordure par défaut du bouton */
    border-radius: 30px;          /* arrondi identique */
    color: white;
    cursor: pointer;             /* pointeur souris identique */
    text-align: center;
    box-sizing: border-box;      /* padding inclus dans la taille */
}


/* PROTECTION */
.protection {
    margin-top: 2rem;
    font-size: 1.1rem;
    color: #555;
    text-align: center;
}

.msg-auth {
    list-style: none;
    margin-bottom: 1rem;
    background: #ffffff;
    padding: 0.7rem;
    border-radius: 8px;
    text-align: center;
}


/* HEADER MODERNE */
.header {
position: sticky;
padding:12px 0px;
top: 0;
z-index: 1000;
background: linear-gradient(135deg,#d06b6b,#6e4a7e);
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner{
max-width:1000px;
margin:auto;
display:flex;
align-items:center;
justify-content:center;
gap:18px;
}

/* brand */

.brand{
display:flex;
align-items:center;
gap:10px;
text-decoration:none;
}

.brand-name{
font-family:'Great Vibes';
font-size:1.6rem;
color:white;
}

/* search */
/* barre */
.search-bar{
    display:flex;
    align-items:center;
    background:white;
    border-radius:18px;
    padding:4px 8px;
    margin:0 12px;
    box-shadow:0 2px 6px rgba(0,0,0,0.05);
}

/* form */
.search-bar form{
    display:flex;
    align-items:center;
    margin:0;
}

/* input */
.search-bar input{
    height: 28px;
    border:none;
    outline:none;
    padding:4px 8px;
    width:180px;
    font-size:16px;
    color:#444;
}

/* bouton */
.search-btn{
    background:none;
    border:none;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
}

/* icone */
.search-btn img{
    width:18px;
    height:18px;
}

/* nav */


.nav-main{
display:flex;
align-items:center;
gap:20px;
}

.nav-main a{
display:flex;
align-items:center;
justify-content:center;
}

.nav-link{
color:white;
text-decoration:none;
font-size:0.95rem;
}

.nav-main a:hover .nav-icon{
transform:scale(1.1);
opacity:0.85;
}

/* badge */

.global-badge{
background:#ff4d4d;
padding:3px 7px;
border-radius:12px;
font-size:0.7rem;
}

/* bouton publier */

.btn-post{
background:white;
color:#6e4a7e;
padding:6px 12px;
border-radius:18px;
text-decoration:none;
font-weight:510;
}

/* avatar */

.avatar-menu{
position:relative;
cursor:pointer;
display:flex;
align-items:center;
padding-bottom:6px;
}


.avatar-menu img{
width:36px;
height:36px;
border-radius:50%;
}

/* dropdown */

.dropdown{
display:none;
position:absolute;

top:80%;     /* colle le menu sous l'avatar */
right:0;

margin-top:6px;

background:white;
border-radius:8px;

box-shadow:0 5px 20px rgba(0,0,0,0.15);
}

.dropdown a{
display:block;
padding:10px 16px;
color:#333;
text-decoration:none;
}

.dropdown a:hover{
border-radius:8px;
background:#f5f5f5;
}

.dropdown.show{
display:block;
}

.nav-icon[src$=".svg"]{
width:28px;
height:28px;
display:block;

filter: brightness(0) invert(1);
}



/* FOOTER */
.footer {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.85rem;
    background: #eee;
    color: #555;
}

.footer-social {
    margin-top: 10px;
}


.footer-social a {
    font-size: 1.6rem;
    margin: 0 8px;
    text-decoration: none;
}

.footer-social img {
    width: 28px;
    margin: 0 8px;
    cursor: pointer;
}

.footer-social img:hover {
    transform:scale(1.1);
    opacity:0.85;
}



/* FORMULAIRE */
.form-section {
    background: white;
    padding: 2rem;
    border-radius: 14px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}


.form-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.form-intro {
    margin-bottom: 1.5rem;
}

form label {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 0.7rem;
    margin-top: 0.4rem;
    border-radius: 8px;
    border: 1px solid #ccc;
}

form textarea {
    min-height: 100px;
    resize: vertical;
}

form .btn {
    width: 100%;
    margin-top: 1.5rem;
}

.form-actions {
    margin-top: 2.5rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    text-align: center;
}

.flatpickr-day.disabled {
    background: #ffdddd;
    color: #999;
}


/* --- Responsive --- */
@media (max-width: 768px) {

    .header-inner{
        flex-wrap:wrap;
        justify-content:center;
        gap:10px;
        padding:4px 8px;
    }

    .header {
        padding:6px 8px;
    }

    body{
        overflow-x:hidden;
    }

    .logo{
    max-width:60px;
    height:auto;
    width:40px;
    margin-bottom:0;
    }


    main {
        padding: 1rem;
    }

    .nav-main{
    gap:18px;
    flex-wrap:wrap;
    justify-content:center;
    width:100%;
    margin-top:6px;
    }

    /* bouton publier compact */
    .btn-post{
    padding:4px 10px;
    font-size:0.85rem;
    }

    /* ligne logo */
    .brand{
        width:100%;
        justify-content:center;
    }


    .brand-name {
        font-size:1.2rem;
    }

    .search-bar{
    display:none;
    width:100%;
    order:3;
    margin-top:8px;
    }

    .search-bar form{
    display:flex;
    width:100%;
    }

    .search-bar input{
    flex:1;
    width:auto;
    padding:6px;
    font-size:16px;   /* évite le zoom iphone */
    }


    .nav-icon{
    width:24px;
    height:24px;
    }
}


