/* https://fontsfree.pro */
@font-face {
    font-family: 'KG Second Chances Sketch';
    src: 
    url("../fonts/KGSecondChances/KGSecondChancesSketch-Nstj3CF.woff") format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'KG Second Chances Solid';
    src:
    url("../fonts/KGSecondChances/KGSecondchancesSolid-v56lc18.woff") format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Jenna Sue';
    src: url("../fonts/jennaSue/JennaSue-xtFGggW.woff") format('woff');
    font-weight: normal;
    font-style: normal;
}
:root {
    --green: #99cd47;
    --rose-pale: #fff9eb;
    --green-rgb:rgba(153, 205, 71, 0.44); 
    --dark-green : #729D2D;
    --turquoise: rgb(48, 175, 133);
    --turquoise-light:rgba(48, 175, 133, 0.29);
    --green-light: #CDEEC5;
    --yellow: #FFDD13;
    --orange : #FB812F;
    --purple : #CD5497;
    --gray-border : #5B5353;
    --background-color : white;
    --second-bg-color : #FBF9EA;
    --primary-font : "Josefin Sans", serif;
    --secondary-font : 'KG Second Chances Solid';
    --tertiary-font : 'Jenna Sue'; 
    --font-size-h1 : 1.75em;
    --font-size-h2 : 1.5em;
    --font-size-p : 1.3em;
    --font-size-btn : 1em;
    --box-shadow-card : 4px 6px 4px 0 rgba(0, 0, 0, 0.25);
}
body {
    margin: 0;
}
.home-container{
    margin-left: 150px;
    margin-right: auto;
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    width: 100%;
}

a{
    text-decoration: none;
}

a, p, .content{
    font-family: var(--primary-font);
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
}
/* FONTS */
.jennaSue{
    font-family: var(--tertiary-font);
}
.kgSecondChancesSolid{
    font-family: var(--secondary-font);
}
h1{
    font-size: var(--font-size-h1);
}
h2{
    font-size: var(--font-size-h2);
}
.josefinSans{
    font-family: var(--primary-font);
}   
p{
    font-size: var(--font-size-p);
}
.content_main {
    margin: auto 10vw;
    min-height: 26em;
}

/* BUTTONS style*/
button.main-button{
    color: black;
    font-size: 16px;
    font-weight: 200;
    letter-spacing: 1px;
    padding: 4px 10px 8px;
    outline: 0;
    border: 1px solid var(--gray-border);
    cursor: pointer;
    position: relative;
    background-color: rgba(0, 0, 0, 0);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    font-size: var(--font-size-btn);
    font-weight: 600;
}
  
button.main-button:after {
    content: "";
    background-color: var(--turquoise);
    width: 100%;
    z-index: -1;
    position: absolute;
    height: 100%;
    top: 5px;
    left: 5px;
    transition: 0.2s;
    transform: rotate(-1deg);
}

button.main-button:hover:after {
    top: 0px;
    left: 0px;    
    transform: rotate(0deg);
}
.previous-page{
    padding: 20px 0px;
    font-weight: 600;
}
.alert-dismissible .btn-close{
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.5rem;
}
.alert-dismissible .btn-close:hover{
    color: var(--rose-pale);
}
/* 
**
** HOME PAGE
**
*/

/* btn home */
.button.btn-secondary-green{
    background-color: var(--green);
    color: black;
    font-weight: 600;
    border-radius: 5px;
    border: 0px;
    padding: 10px;
    box-shadow: var(--box-shadow-card);
}
.button.btn-secondary-outline{
    background-color: white;
    color: black;
    font-weight: 600;
    border-radius: 5px;
    padding: 10px;
    border: 1px solid var(--green) ;
}
.home_picture{
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    margin: auto 10vw;
    height: 500px;  
    border-radius: 10px;
}
.buttons-header{
    align-content: center;
}
.post-container > .empty-post{
    margin: 4em auto;
}

.previous-icon{
    margin-right: 10px;
}
.post-container{
    padding-top: 10px;
}
.main-container-style{
    margin-top: 10rem;
}
/* 
**
** SEARCH PAGE
**
*/

/* button search */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;

    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;

    border: none;
    border-radius: 50%;
    background: #7ab648;      /* ton vert de charte */
    color: #fff;
    cursor: pointer;
    box-shadow: 0 2px 10px rgb(0 0 0 / 0.25);

    opacity: 0;
    transform: translateY(0.75rem);
    transition: opacity .25s ease, transform .25s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover  { background: #6aa33c; }
.back-to-top:focus-visible {
    outline: 3px solid #d81b8c;   /* ton rose, pour le contraste */
    outline-offset: 2px;
}

.button.btn-secondary-turquoise{
    background-color: var(--turquoise);
    color: white;
    border-radius: 5px;
    border: 0px;
    padding: 10px;
    box-shadow: var(--box-shadow-card);
}

.fa-spinner{
    font-size: 4em;
    animation: spin 2s linear infinite;
}
.form-select:selected{
    background-color: var(--turquoise);
    color: white;
}

.btn-outline-primary {
  --bs-btn-color: var(--green);
  --bs-btn-border-color: gray;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--green-rgb);
  --bs-btn-hover-border-color: var(--green);
}
.btn-danger {
  --bs-btn-color: black;
}
.page-item.active .page-link, .page-item.active .page-link:hover {
  background: var(--green-rgb);
  border-color: var(--green);
}

/* 
*** BREADCRUMB
*/
.breadcrumb-nav {
    margin: 1rem 0;
    font-size: 0.9rem;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-list li:not(:last-child)::after {
    content: "›";
    margin-left: 0.5rem;
    color: #999;
}

.breadcrumb-list a {
    color: var(--green, #99cd47);
    text-decoration: none;
}

.breadcrumb-list a:hover {
    text-decoration: underline;
}

.breadcrumb-list li[aria-current="page"] {
    color: #666;
    font-weight: 500;
    font-style: italic;
}

/* 
**
** MEDIA QUERIES
**
*/
@keyframes spin {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
    100% { transform: rotate(360deg); }
}
@media (max-width: 768px) {
    :root {
        --font-size-h1 : 1.5em;
        --font-size-h2 : 1.2em;
        --font-size-p : 1rem;
    }
    .home-container{
        margin-left: 0px;
    }
    .content_main {
        margin: auto;
        min-height: 26em;
    }
    .content {
        margin: auto 1vw;
    }
    button.main-button{
        font-size: 0.8em;
    }
    
    header{
        padding: 0;
    }
    .home_picture{
        margin: auto 2vw;
        height: 180px;
    }
    .link-text{
        font-size: 0.8em;
    }  
    .fa-search{
        display: none;
    }  
    h1{
        font-size: 1.2em;
    }
    h2{
        font-size: 1em;
    }
}
@media (max-width: 991.98px) {
    body.ea .datagrid tbody td {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 0.15rem;
        padding: 0.75rem 1rem;
        min-height: 0;
        text-align: left;
    }

    body.ea .datagrid tbody td::before {
        content: attr(data-label);
        position: static;   /* ← la clé : plus de superposition possible */
        width: auto;
        color: var(--green-light);
        font-size: 0.8rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }
    .back-to-top {
        bottom: calc(4.5rem + env(safe-area-inset-bottom));
    }
    body.ea .main-content { 
        padding-bottom: 6rem; 
    }
    .main-content {
        padding-bottom: 5rem;
    }
}
@media (max-width: 640px) {
    .back-to-top { bottom: 1rem; right: 1rem; }
}

