/* ===========================
   STRUCTURE GENERALE
=========================== */

.speedthese-wrapper{
    display:grid;
    grid-template-columns:minmax(420px, 2fr) minmax(320px, 1fr);
    gap:30px;
    margin-top:30px;
    width:100%;
    box-sizing:border-box;
}

.speedthese-left,

.speedthese-right{

    background:#fff;

    border:1px solid #ddd;

    border-radius:12px;

    padding:25px;

    box-sizing:border-box;

    min-width:0;

}

.speedthese-right{
    position:sticky;
    top:20px;
    height:fit-content;
}

/* ===========================
   TITRES
=========================== */

.speedthese-title{
    font-size:28px;
    font-weight:700;
    margin-bottom:25px;
}

.speedthese-section{
    margin-bottom:25px;
}

.speedthese-section label{
    display:block;
    font-weight:600;
    margin-bottom:8px;
}

/* ===========================
   CHAMPS
=========================== */

.speedthese-section input[type=text],
.speedthese-section input[type=number],
.speedthese-section select{
    width:100%;
    padding:10px;
    border:1px solid #ccc;
    border-radius:6px;
    box-sizing:border-box;
    font-size:15px;
}

/* ===========================
   DROP ZONE
=========================== */

.speedthese-dropzone{

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    width:100%;
    min-height:180px;

    border:2px dashed #b8b8b8;
    border-radius:12px;

    background:#fafafa;

    cursor:pointer;

    transition:all .25s ease;

    box-sizing:border-box;

    text-align:center;
}

.speedthese-dropzone:hover{

    border-color:#00853f;
    background:#f2fff6;
    transform:scale(1.01);

}

.speedthese-dropzone.is-dragover{

    border-color:#00853f;
    background:#eafdf2;

}

.speedthese-drop-title{

    font-size:24px;
    font-weight:bold;
    margin-bottom:10px;

}

.speedthese-drop-subtitle{

    font-size:16px;
    color:#666;

}

.speedthese-link{

    color:#00853f;
    font-weight:bold;
    text-decoration:underline;

}

.speedthese-dropzone:hover .speedthese-link{

    color:#00652e;

}

.speedthese-filename{

    margin-top:18px;

    width:100%;

    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;

    font-size:15px;
    font-weight:bold;
    color:#00853f;

}

.speedthese-file-hidden{

    display:none !important;

}

/* ===========================
   BOUTON
=========================== */

.speedthese-button{

    width:100%;
    padding:16px;

    border:none;
    border-radius:8px;

    background:#00853f;
    color:white;

    font-size:18px;
    cursor:pointer;

}

.speedthese-button:hover{

    background:#00652e;

}

/* ===========================
   PRIX
=========================== */

.speedthese-total{

    font-size:36px;
    color:#00853f;
    font-weight:bold;

}

.speedthese-info{

    margin-top:20px;
    color:#666;
    font-size:14px;
    line-height:1.6;

}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width:900px){
    .speedthese-wrapper{
        grid-template-columns:1fr;
    }

    .speedthese-right{
        position:relative;
        top:auto;
    }
}
.speedthese-drop-icon-svg{
    margin-bottom:15px;
}

.speedthese-drop-icon-svg svg{
    fill:none;
    stroke:#00853f;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.speedthese-dropzone.is-dragover{
    transform:scale(1.02);
    border-color:#00853f;
    background:#eafff2;
}

.speedthese-dropzone.is-uploaded{
    border-color:#00853f;
    background:#f1fff7;
}

.speedthese-dropzone.is-uploaded .speedthese-drop-title::before{
    content:"✓ ";
    color:#00853f;
}
.speedthese-erreur{
    border:2px solid #d32f2f !important;
    background:#fff5f5;
}
.speedthese-preview-wrap{
    margin-top:20px;
}

.speedthese-preview{
    width:100%;
    height:420px;
    border:1px solid #ddd;
    border-radius:10px;
    margin-top:10px;
    background:#f7f7f7;
}
body.speedthese-these-page .product-prices,
body.speedthese-these-page .product-add-to-cart,
body.speedthese-these-page .product-quantity,
body.speedthese-these-page .product-actions .add-to-cart,
body.speedthese-these-page .wishlist-button-add{
    display:none !important;
}
.speedthese-toggle-button{
    width:100%;
    border:2px solid #00853f;
    background:#fff;
    color:#00853f;
    border-radius:10px;
    padding:14px 18px;
    font-size:16px;
    font-weight:700;
    cursor:pointer;
}

.speedthese-toggle-button{
    display:block;
    margin:20px 0;
    width:100%;
    max-width:100%;

    background:#16833a;
    color:#fff;

    border:none;
    border-radius:8px;

    padding:15px 20px;

    font-size:18px;
    font-weight:600;

    cursor:pointer;

    transition:.2s;
}

.speedthese-toggle-button:hover{
    background:#126f31;
}

.speedthese-toggle-button.is-active{
    background:#0f6f32;
}
.speedthese-binding-grid{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:18px;
    margin-top:15px;
}

.speedthese-binding-card{
    border:2px solid #ddd;
    border-radius:12px;
    background:#fff;
    cursor:pointer;
    overflow:hidden;
    text-align:center;
    transition:.2s;
}

.speedthese-binding-card:hover{
    transform:translateY(-2px);
    border-color:#16833a;
}

.speedthese-binding-card.active{
    border-color:#16833a;
    box-shadow:0 0 0 3px rgba(22,131,58,.15);
}

.speedthese-binding-card img{
    width:100%;
    height:140px;
    object-fit:cover;
    display:block;
    background:#f4f4f4;
}

.speedthese-binding-card span{
    display:block;
    padding:14px 10px;
    font-weight:700;
}
.speedthese-options{

    margin-top:45px;

    padding:24px;

    border:1px solid #e5e5e5;

    border-radius:12px;

    background:#fafafa;

}
/* ===========================
   MODE D'IMPRESSION
=========================== */

.speedthese-print-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:18px;

    margin-top:15px;

}

.speedthese-print-card{

    border:2px solid #ddd;

    border-radius:12px;

    padding:18px;

    text-align:center;

    font-weight:700;

    background:#fff;

    cursor:pointer;

    transition:.2s;

}

.speedthese-print-card:hover{

    transform:translateY(-2px);

    border-color:#16833a;

}

.speedthese-print-card.active{

    border-color:#16833a;

    box-shadow:0 0 0 3px rgba(22,131,58,.15);

}
.speedthese-note{

    margin-top:10px;

    font-size:13px;

    color:#666;

    line-height:1.5;

}
.speedthese-progress-wrap{
    width:100%;
    margin-top:18px;
}

.speedthese-progress-track{
    width:100%;
    height:9px;
    background:#e5e5e5;
    border-radius:20px;
    overflow:hidden;
}

.speedthese-progress-bar{
    width:0%;
    height:100%;
    background:#16833a;
    border-radius:20px;
    transition:width .45s ease;
}

.speedthese-progress-text{
    margin-top:8px;
    font-size:14px;
    color:#666;
}
.speedthese-waiting-box{
    margin-top:25px;
    padding:24px;
    border:1px solid #e5e5e5;
    border-radius:12px;
    background:#fafafa;
}

.speedthese-waiting-box h3{
    margin-top:0;
    margin-bottom:15px;
}

.speedthese-waiting-box ul{
    margin:15px 0;
    padding-left:20px;
}

.speedthese-waiting-box li{
    margin-bottom:8px;
}

.speedthese-waiting-small{
    margin-top:15px;
    color:#666;
    font-size:14px;
}
#speedthese_qty{

    width: 90px;

    padding: 8px;

    font-size: 16px;

}
.speedthese-qty-box{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:8px;
}

.speedthese-qty-btn{
    width:34px;
    height:34px;
    border:1px solid #ccc;
    border-radius:6px;
    background:#f7f7f7;
    font-size:22px;
    cursor:pointer;
}
.speedthese-dropzone{
    min-height:220px;
    padding:30px;
}

.speedthese-drop-title,
.speedthese-drop-subtitle{
    width:100%;
    text-align:center;
}

#speedthese_qty{
    width:60px;
    text-align:center;
}
.speedthese-flipbook{
    margin-top:15px;
}

.speedthese-flip-pages{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:15px;

    background:#1f1f1f;

    padding:25px;

    border-radius:12px;

    box-shadow:0 4px 15px rgba(0,0,0,.15);
}

.speedthese-flip-pages canvas{
    width:100%;

    background:white;

    border:none;

    border-radius:4px;

    box-shadow:0 6px 18px rgba(0,0,0,.35);
}
#speedthese_flip_left{
    border-radius:4px 0 0 4px;
}

#speedthese_flip_right{
    border-radius:0 4px 4px 0;
}
.speedthese-flip-controls{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:12px;
    gap:10px;
}

.speedthese-flip-controls button{
    padding:10px 14px;
    border:none;
    border-radius:6px;
    background:#16833a;
    color:white;
    cursor:pointer;
}

.speedthese-flip-controls span{
    font-size:14px;
    color:#ddd;
}
.speedthese-preview-wrap{
    margin-top:25px;
}
.speedthese-flip-pages {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    min-height: 500px;
}

.speedthese-flip-pages canvas {
    max-width: 48%;
    height: auto;
}

.speedthese-flip-pages canvas:only-child,
#speedthese_flip_right[style*="display: block"] {
    margin-left: auto;
    margin-right: auto;
}
/* =========================================================
   PANIER — THÈSE PRODUIT 22
========================================================= */

/* Masquer le champ quantité et les flèches */
.speedthese-cart-item .bootstrap-touchspin,
.speedthese-cart-item input.js-cart-line-product-quantity {
  display: none !important;
}

/* Quantité verrouillée */
.speedthese-cart-item .speedthese-cart-qty-locked {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #d5d5d5;
  border-radius: 4px;
  background: #f7f7f7;
  font-weight: 600;
  white-space: nowrap;
}

/* Masquer le lien Personnalisation */
.speedthese-cart-item .product-line-info-secondary,
.speedthese-cart-item a[data-toggle="modal"] {
  display: none !important;
}

@media (max-width: 900px) {
  .speedthese-binding-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .speedthese-binding-grid {
    grid-template-columns: 1fr;
  }
}
.speedthese-cart-edit {
    display: inline-block;
    margin-left: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    background: #14adc9;
    color: #fff !important;
    font-weight: 600;
    text-decoration: none !important;
}

.speedthese-cart-edit:hover {
    opacity: .9;
}
.speedthese-seo-content {
    max-width: 1100px;
    margin: 50px auto 20px;
    padding: 35px;
    background: #fff;
    border-radius: 12px;
    line-height: 1.7;
    color: #333;
}

.speedthese-seo-content h2 {
    margin-top: 35px;
    margin-bottom: 15px;
    font-size: 28px;
    line-height: 1.3;
}

.speedthese-seo-content h2:first-child {
    margin-top: 0;
}

.speedthese-seo-content h3 {
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 21px;
}

.speedthese-seo-content p {
    margin-bottom: 16px;
}

.speedthese-seo-content ul,
.speedthese-seo-content ol {
    margin: 0 0 20px 25px;
}

.speedthese-seo-content li {
    margin-bottom: 8px;
}

@media (max-width: 767px) {
    .speedthese-seo-content {
        margin-top: 30px;
        padding: 22px 18px;
    }

    .speedthese-seo-content h2 {
        font-size: 23px;
    }

    .speedthese-seo-content h3 {
        font-size: 19px;
    }
}
#speedthese_reassurance {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #e1e1e1;
}

#speedthese_reassurance h3 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.3;
}

#speedthese_reassurance p {
    margin-bottom: 14px;
    line-height: 1.5;
}

#speedthese_reassurance ul {
    margin: 0 0 16px;
    padding-left: 20px;
}

#speedthese_reassurance li {
    margin-bottom: 9px;
    line-height: 1.4;
}

.speedthese-reassurance-small {
    margin-bottom: 0;
    font-size: 13px;
    color: #777;
}
.speedthese-security-title{
    display:inline-block;
    padding:8px 14px;
    background:#e8f7ec;
    border:1px solid #b7e2c2;
    border-radius:5px;
    font-size:13px;
    font-weight:700;
    color:#0b7d36;
    margin-bottom:15px;
    text-align:center;
}
.speedthese-top-banner{
    width:100%;
    margin:0 0 30px 0;
    text-align:center;
}

.speedthese-top-banner img{
    width:100%;
    max-width:1400px;
    height:auto;
    border-radius:12px;
    display:block;
    margin:0 auto;
}
/* Masquer l’image produit dans le panier pour les thèses */
.cart-item.speedthese-cart-item .product-line-grid-left {
    display: none !important;
}

/* Donner l’espace libéré au contenu */
.cart-item.speedthese-cart-item .product-line-grid-body {
    width: 66.66667% !important;
    max-width: 66.66667% !important;
    flex: 0 0 66.66667% !important;
}

/* Garder la zone prix / quantité à droite */
.cart-item.speedthese-cart-item .product-line-grid-right {
    width: 33.33333% !important;
    max-width: 33.33333% !important;
    flex: 0 0 33.33333% !important;
}
.speedthese-color-box{
    background:#f7f7f7;
    border:1px solid #e2e2e2;
    border-radius:12px;
    padding:20px;
    margin-top:10px;
    text-align:left;
}

.speedthese-color-box label{
    display:block;
    font-weight:600;
    margin-bottom:10px;
}

.speedthese-color-box select{
    width:100%;
}

@media (max-width: 767px) {
    .cart-item.speedthese-cart-item .product-line-grid-body,
    .cart-item.speedthese-cart-item .product-line-grid-right {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
}

@media(max-width:900px){
    .speedthese-binding-grid{
        grid-template-columns:repeat(2, 1fr);
    }
}

@media(max-width:520px){
    .speedthese-binding-grid{
        grid-template-columns:1fr;
    }
}
/* Speedcopie 3.0 — Aperçu PDF recto verso */
#speedthese_flipbook {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    overflow: hidden;
}

#speedthese_flip_left,
#speedthese_flip_right {
    display: block;
    width: 48%;
    max-width: 48%;
    height: auto;
    object-fit: contain;
    box-sizing: border-box;
}
