header{
    max-width: 100vw;
}
:root{
    --pinoups-red :  rgb(143 27 36) ;
    --pinoups-green:  rgb(163 172 121);
    --pinoups-darkgreen:  rgb(114 125 87);
}
.bg-pinoups-green{
    background-color: var(--pinoups-green)
}
.pinoups-red{
    color:  var(--pinoups-red);
}
@font-face {
    font-family: 'Milestone';
    src: url('fonts/MilestoneFreeVersion-Script.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Définition de la police Gabriola */
@font-face {
    font-family: 'Gabriola';
    src: url('fonts/Gabriola.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Définition de la police Budmo */
@font-face {
    font-family: 'Budmo';
    src: url('fonts/budmo jiggler.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

body {
    background-color: #f8f4f2; /* Couleur de fond de la maquette */
    max-width: 100vw;
    overflow-x: hidden;
}

h1, h5, .nav-link, .milestone {
    font-family: 'Milestone', cursive; /* Style de police Pin-up */
    color :  var(--pinoups-red);
}
.tel{
    text-align:  right;
}
.gabriola{
    font-family: 'Gabriola';
    color :  var(--pinoups-red);
}
.budmo{
    font-family: 'Budmo';
    color :  var(--pinoups-red);
}
.logo-container {
    max-width: 250px;
    margin: 0 auto;
}

.article-card {
    overflow: hidden;
    border-bottom:  2px solid var(--pinoups-green);
}
.article-card .card-text{
    height:  57px;
}
.badge-promo{
    border:  2px solid var(--pinoups-red);
    background-color: white;
    transform: rotate(-15deg);
    display: block;
    float: left;
    padding:  0 15px;
    text-align:  center;
    font-size:  2rem;
    position: absolute;
    top:  25px;
    left:  25px;
}
.article-card .price{
    position:  relative;
    top: -30px;
}
.article-card .price>img{
    position: absolute;
    filter: drop-shadow(0px 10px 4px #00000055);
    top: 0;
    right: 0;
    bottom: 0;
    display: block;
    left: 0;
    z-index: 1;
    width: 100%;
}
.article-card .price .unit-price{
    position: relative;
    display: block;
    z-index: 2;
    text-align: center;
    font-size: 2rem;
}
.article-card .price .reduc.unit-price{
    position: absolute;
    display: block;
    z-index: 2;
    text-align: center;
    font-size: 1.5rem;
    left:  40px;
}
.article-card .price .percent-reduc.unit-price{
    position: absolute;
    z-index: 3;
    text-align: center;
    font-size: 1.5rem;
    left:  55px;
    top:  15px;
    border-radius: 50%;
    background-color: var(--pinoups-darkgreen);
}

.article-card .price .promo-price.unit-price{
    z-index: 3;
    font-size: 1.65rem;
    text-align: center;
    display: block;
    float: right;
    margin-right:  30px;
    margin-top:  1px;
    border-radius: 50%;
    border-color: var(--pinoups-red);
    border-style: solid;
    padding:  0 10px;
}
.contact{
    padding-top:  250px;
    font-size:  3.5rem;
    text-shadow: 1px 0 #fff, -1px 0 #fff, 0 1px #fff, 0 -1px #fff,
             1px 1px #fff, -1px -1px #fff, 1px -1px #fff, -1px 1px #fff;
    padding-left:  50px;
    background: url('../assets/images/bgfooter.png') no-repeat;
    background-position:  20% 0;
    height: 500px;
    text-align: center;
    background-size:  110% 100%;
}
.leftline{
    text-align: center;
    font-size:  2.5rem;
}
.tel{
    font-size:  4.5rem;
    padding-left:  20px;
    text-shadow: none;
}
.unavailable{
    color: var(--pinoups-green);
    position: relative;
}
.unavailable::after{
    content: "\f05e";
    font-family: "Font Awesome 7 Free";
    display: block;
    font-weight: 600 ;
    color: var(--pinoups-red);
    position: absolute;
    top: 0;
    left:  -5px;

}

.card-img-top {
    height: 350px; /* Taille fixe pour les images */
    object-fit: contain;
}

.rotate-n-15 {
    transform: rotate(-15deg);
    left: -15px; /* Décaler un peu l'étiquette */
    top: 15px;
}
svg a{
    display: block;
}
.admin-button{
    position:  absolute;
    width: 100%;
}
.admin-button-edit{
    position: absolute;
    top: 10px;
    right: 0;
    cursor: pointer;
}
.admin-button-delete{
    position: absolute;
    top: 10px;
    right: 30px;
    cursor: pointer;
}
.admin-button-edit:hover,
.admin-button-delete:hover{
    transform: scale(1.2);
    color:  var(--pinoups-darkgreen);
}
.admin-button-edit:active,
.admin-button-delete:active{
    transform: scale(.95);
    color: var(--pinoups-red);
}


.not-found{
    font-size:  4rem;
}







/* Décalages polaroïds pour un effet “pile” */
.polaroid-container .images-pile img:nth-child(1){ transform: rotate(-5deg) translate(5px,5px); }
.polaroid-container .images-pile img:nth-child(2){ transform: rotate(3deg) translate(10px,15px); }
.polaroid-container .images-pile img:nth-child(3){ transform: rotate(-7deg) translate(-10px,20px); }
.polaroid-container .images-pile img:nth-child(4){ transform: rotate(6deg) translate(15px,-10px); }
.polaroid-container .images-pile img:nth-child(5){ transform: rotate(-4deg) translate(-5px,-15px); }
.polaroid-container .images-pile img:nth-child(6){ transform: rotate(8deg) translate(20px,10px); }

.polaroid-container .images-pile{
    position: relative;
    min-height:  420px;
}
.polaroid-container .images-pile img{
    position: absolute;
    top: 65px;
    right: 0;
    left: 0;
    margin: 0 auto;
}

.polaroid-container .images-pile:hover img{
    transition: all .5s ease;
    cursor: pointer;
    transform:  scale(1.1);
}


.edito-wrapper{
    margin-top:  25px;
    border-top:  3px solid var(--pinoups-red);
    border-bottom:  3px solid var(--pinoups-red);
    margin-bottom:  25px;
    padding-top:  5px;
}

#edito-view {
    padding: 15px;
    margin-bottom: 10px;
}
#editor-form {
    display: none; /* on cache le formulaire au début */
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.edito-button {
    margin-top: 10px;
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    background-color: #007BFF;
    color: white;
}
.edito-button:hover {
    background-color: #0056b3;
}
#status {
    margin-top: 10px;
    font-size: 14px;
}
#status.ok { color: #0f5132; }
#status.err { color: #842029; }

.delete-gallery-picture-btn{
    font-size:  10px;
    position:  absolute;
    right:  12px;
}

.disk-bar-container {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.85);
    color: #f5f5f5;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 9999;
}

.disk-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    overflow: hidden;
}

.disk-bar-used {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #4caf50, #ff9800, #f44336);
    /* la largeur est gérée en inline style par PHP */
}

.disk-bar-text {
    text-align: right;
    opacity: 0.8;
}
