/* ==========================================================================
   1. LAYOUT GLOBAL & CONTENEURS
   ========================================================================== */

.mainLayout {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    transition: grid-template-columns 0.3s ease;
}

.contentWrapper {
    transition: transform 0.35s ease;
}

/* Conteneur principal des sections (Flex vertical centré) */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 15px 60px 15px;
    box-sizing: border-box;
}

.emptyMsg {
    text-align: center;
    color: #757575;
    padding: 50px 20px;
    font-size: 15px;
}

.btnEmptyAddCard {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.btnEmptyAddCard svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ==========================================================================
   2. TOP BAR & SOUS-MENUS
   ========================================================================== */

.top {
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 25px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.btnSel {
    opacity: 1;
    color: #000;
}

.subMenu {
    margin: 0 auto;
    width: fit-content;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-12px);
    transition: max-height 0.35s ease, opacity 0.3s ease, transform 0.3s ease, margin-bottom 0.35s ease;
}

.subMenu.subMenuOpen {
    position: sticky;
    top: 50px;
    z-index: 900;
    max-height: 80px;
    opacity: 1;
    transform: translateY(0);
    margin-bottom: 25px;
}

.subMenuInner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 0 16px;
    border-radius: 30px;
}

.menuSep {
    display: inline-block;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    user-select: none;
    padding: 0 4px;
}

.menuSep.isHid,
.btnSubMenu.isHid {
    display: none;
}

.btnSubMenu {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 20px;
    opacity: 0.75;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.btnSubMenu svg {
    flex-shrink: 0;
}

.btnSubMenu:hover {
    opacity: 1;
}

/* ==========================================================================
   3. SECTIONS & GRILLE 5 COLONNES
   ========================================================================== */

.cardSection {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
    transition: background-color 0.2s ease;
}

.cardSection:has(.btnDeleteSection:hover),
.cardSection.sectionDeleteHover {
    background-color: rgba(0, 0, 0, 0.05);
}

.sectionHdr {
    display: none;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 8px;
    padding: 0 4px;
    width: 100%;
    box-sizing: border-box;
}

body.editMode .sectionHdr {
    display: flex;
}

.btnDeleteSection {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: rgba(0, 0, 0, 0.5);
    font-size: 11px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 4px;
    opacity: 0.7;
}

.btnDeleteSection:hover {
    opacity: 1;
}

.sectionRow {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 35px;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    box-sizing: border-box;
    align-items: start;
    padding-bottom: 80px;
}

.cardCol {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    transition: outline 0.15s ease, background-color 0.15s ease;
}

.cardCol.colEmpty {
    min-height: 40px;
}

.cardCol.dropCardColActive {
    outline: 2px dashed #1976d2 !important;
    outline-offset: 4px;
    border-radius: 8px;
    background-color: rgba(25, 118, 210, 0.03);
}

.cardDropPlaceholder {
    width: 100%;
    min-height: 50px;
    border: 1px dashed rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    pointer-events: none;
    margin: 0;
    display: block;
}

/* ==========================================================================
   4. CARDS & CONTENUS
   ========================================================================== */

.card {
    background: #ffffff;
    border-radius: 4px;
    display: flex;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.15s ease;
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
    box-sizing: border-box;
    position: relative;
}

.card.cardDragging {
    opacity: 0.3 !important;
}

.cardContent {
    flex: 1;
    min-width: 0;
    padding: 10px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.cardHdr {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    transition: opacity 0.2s ease;
}

.cardTitle {
    font-size: 11px;
    font-weight: 600;
    color: #424242;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.cardDesc {
    font-size: 12px;
    color: #666;
    margin: 4px 0 8px 0;
    line-height: 1.35;
}

.cardIcon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: #999;
    margin-left: 12px;
}

.cardIcon svg {
    width: 100%;
    height: 100%;
}

/* Bandes latérales colorées */
.cardStrp {
    width: 3px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: width 0.2s ease;
}

.cardStrpTop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 0;
    height: 64px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.2s ease;
}

.cardStrpTop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.cardStrpBtm {
    width: 6px;
    flex: 1;
    transition: width 0.2s ease;
}

/* Couleurs des bandes */
.strpGreen .cardStrpTop  { background: linear-gradient(to bottom, #7cb342 0%, #6ba339 100%); }
.strpGreen .cardStrpBtm  { background: linear-gradient(to bottom, #6ba339 0%, #558b2f 100%); }
.strpOrange .cardStrpTop { background: linear-gradient(to bottom, #ff7043 0%, #f5603a 100%); }
.strpOrange .cardStrpBtm { background: linear-gradient(to bottom, #f5603a 0%, #e64a19 100%); }
.strpBrown .cardStrpTop  { background: linear-gradient(to bottom, #a1887f 0%, #8d7468 100%); }
.strpBrown .cardStrpBtm  { background: linear-gradient(to bottom, #8d7468 0%, #795548 100%); }
.strpPurple .cardStrpTop { background: linear-gradient(to bottom, #ab47bc 0%, #9331a4 100%); }
.strpPurple .cardStrpBtm { background: linear-gradient(to bottom, #9331a4 0%, #7b1fa2 100%); }
.strpCyan .cardStrpTop   { background: linear-gradient(to bottom, #26c6da 0%, #13b3c7 100%); }
.strpCyan .cardStrpBtm   { background: linear-gradient(to bottom, #13b3c7 0%, #00acc1 100%); }
.strpBlue .cardStrpTop   { background: linear-gradient(to bottom, #42a5f5 0%, #2a96ef 100%); }
.strpBlue .cardStrpBtm   { background: linear-gradient(to bottom, #2a96ef 0%, #1e88e5 100%); }
.strpGray .cardStrpTop   { background: linear-gradient(to bottom, #78909c 0%, #607d8b 100%); }
.strpGray .cardStrpBtm   { background: linear-gradient(to bottom, #607d8b 0%, #546e7a 100%); }
.strpViolet .cardStrpTop { background: linear-gradient(to bottom, #7e57c2 0%, #6c46af 100%); }
.strpViolet .cardStrpBtm { background: linear-gradient(to bottom, #6c46af 0%, #5e35b1 100%); }
.strpPink .cardStrpTop   { background: linear-gradient(to bottom, #ec407a 0%, #e52d6a 100%); }
.strpPink .cardStrpBtm   { background: linear-gradient(to bottom, #e52d6a 0%, #d81b60 100%); }

.bgGreen  { background: #7cb342; }
.bgOrange { background: #ff7043; }
.bgBrown  { background: #a1887f; }
.bgPurple { background: #ab47bc; }
.bgCyan   { background: #26c6da; }
.bgBlue   { background: #42a5f5; }
.bgGray   { background: #78909c; }
.bgViolet { background: #7e57c2; }
.bgPink   { background: #ec407a; }

/* Liens des cartes */
.cardLinks {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.cardLink {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    border-radius: 4px;
}

.cardLink a {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 0;
    color: #616161;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
}

.siteBullet {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bdbdbd;
}

.siteFavicon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: grayscale(1);
}

.siteText {
    display: inline-block;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
    vertical-align: middle;
    font-weight: 600;
    color: #777;
}

.siteText::after {
    content: attr(data-text);
    height: 0;
    overflow: hidden;
    visibility: hidden;
    font-weight: 700;
    user-select: none;
}

.cardLink a:hover .siteText { color: #000; }
.cardLink a:hover .siteFavicon { filter: none; }

/* ==========================================================================
   5. MODE ÉDITION & DÉPLACEMENT
   ========================================================================== */

/* Masquage de l'ancienne numérotation */
.cardStrpBtm .btnCardOrder,
.cardStrpBtm .cardNumber,
.cardOrder,
.cardOrderNum {
    display: none;
}

body.editMode .cardStrpTop {
    display: none !important;
}

body.editMode .cardStrp,
body.editMode .cardStrpBtm {
    width: 32px;
}

body.editMode .cardStrpBtm {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
}

body.editMode .cardStrpBtm .btnCardOrder {
    display: flex;
}

body.editMode .cardStrpBtm .cardNumber {
    display: block;
}

.cardNumber {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    user-select: none;
    line-height: 1;
}

.btnCardOrder {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    opacity: 0.5;
}

.btnCardOrder:hover:not(:disabled) {
    color: #ffffff;
    opacity: 1;
}

.btnCardOrder:disabled {
    opacity: 0;
    cursor: default;
}

body.editMode .cardHdr {
    cursor: pointer;
    opacity: 0.8;
}

body.editMode .cardHdr:hover {
    opacity: 1;
}

body.editMode .cardLink {
    cursor: grab;
    padding: 2px 4px;
}

body.editMode .cardLink:hover {
    background: #f5f5f5;
}

body.editMode .cardLinks {
    min-height: 30px;
}

body.editMode .cardLink img,
body.editMode .cardLink svg:not(.btnTrashSite svg):not(.btnEditSite svg),
body.editMode .cardLink i,
body.editMode .cardLink [class*="favicon"],
body.editMode .cardLink [class*="Favicon"] {
    cursor: pointer;
}

/* Boutons d'édition & ajout */
.btnEditSite,
.btnAddSite,
.btnTrashSite {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.btnEditSite {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #9e9e9e;
    align-items: center;
    justify-content: center;
}

.btnEditSite svg {
    width: 16px;
    height: 16px;
}

.btnAddSite {
    width: 100%;
    margin-top: 10px;
    padding: 6px;
    border: 1px dashed #cfcfcf;
    border-radius: 6px;
    color: #9e9e9e;
    align-items: center;
    justify-content: center;
}

.btnAddSite svg {
    width: 22px;
    height: 22px;
}

.btnTrashSite {
    padding: 0 4px;
    margin-left: 2px;
    color: #9e9e9e;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.btnTrashSite svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.btnEditSite:hover,
.btnAddSite:hover,
.btnTrashSite:hover {
    color: #000;
}

body.editMode .btnEditSite,
body.editMode .btnAddSite,
body.editMode .btnTrashSite {
    display: inline-flex;
}

body.editMode .btnAddSite {
    display: flex;
}

.btnAddCardCol {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 7px 10px;
    border: 1px dashed rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    background-color: transparent;
    color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    font-size: 10px;
    font-family: inherit;
    font-weight: 500;
    box-sizing: border-box;
    opacity: 0.7;
}

.btnAddCardCol svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    flex-shrink: 0;
}

.btnAddCardCol:hover {
    opacity: 1;
}

body.editMode .btnAddCardCol {
    display: flex;
}

.btnCardMove {
    display: none;
    position: absolute;
    top: 7px;
    left: 5px;
    z-index: 10;
    cursor: grab;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    background-color: transparent;
    border: 0;
    color: #fff;
    user-select: none;
    box-sizing: border-box;
}

.btnCardMove:active {
    cursor: grabbing;
}

.btnCardMove svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    display: block;
}

body.editMode .btnCardMove {
    display: inline-flex;
}

/* Drag & Drop Feedback */
.cardLink.dragging { opacity: 0.4; }
.cardLink.dropBefore { box-shadow: 0 -2px 0 #1976d2; }
.cardLink.dropAfter { box-shadow: 0 2px 0 #1976d2; }
.cardLinks.dropEmpty {
    outline: 2px dashed #1976d2;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ==========================================================================
   6. NAVIGATION LATÉRALE (SIDEBAR) & PAGES
   ========================================================================== */

.folder {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 0;
    color: #616161;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.6;
    font-weight: 600;
    opacity: 0.8;
    cursor: pointer;
}

.folder:hover {
    opacity: 1;
}

.folder.pageActive {
    opacity: 1;
    color: #222;
}

.folder.pageActive svg path {
    fill: #222;
}

.pname {
    display: inline-block;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pageTrashIcon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #9e9e9e;
}

.pageTrashIcon:hover {
    color: #000;
}

.pageTrashIcon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

body.editMode .pageItem.pageActive .pname {
    cursor: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.3125 19.875V26.625L12.0625 26.9375L28.375 10.5L21.625 3.9375L5.3125 19.875Z" fill="white" stroke="none"/><path d="M28.4137 9.17125L22.8288 3.585C22.643 3.39923 22.4225 3.25187 22.1798 3.15134C21.9372 3.0508 21.6771 2.99905 21.4144 2.99905C21.1517 2.99905 20.8916 3.0508 20.6489 3.15134C20.4062 3.25187 20.1857 3.39923 20 3.585L4.58625 19C4.39972 19.185 4.25184 19.4053 4.1512 19.648C4.05056 19.8907 3.99916 20.151 4 20.4137V26C4 26.5304 4.21071 27.0391 4.58579 27.4142C4.96086 27.7893 5.46957 28 6 28H11.5863C11.849 28.0008 12.1093 27.9494 12.352 27.8488C12.5947 27.7482 12.815 27.6003 13 27.4137L28.4137 12C28.5995 11.8143 28.7469 11.5938 28.8474 11.3511C28.948 11.1084 28.9997 10.8483 28.9997 10.5856C28.9997 10.3229 28.948 10.0628 28.8474 9.82015C28.7469 9.57747 28.5995 9.35697 28.4137 9.17125ZM11.5863 26H6V20.4137L17 9.41375L22.5862 15L11.5863 26ZM24 13.585L18.4138 8L21.4137 5L27 10.585L24 13.585Z" fill="black"/></svg>') 4 26, text;
}

body.editMode #pageHeader {
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
}

body.editMode #pageHeader:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   7. MODE PARTAGE (SHARE)
   ========================================================================== */

.cardShareBtm {
    display: none;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px dashed #e0e0e0;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
    user-select: none;
}

.cardShareBtm input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.shareMode .cardShareBtm {
    display: flex;
}

/* ==========================================================================
   8. BOUTONS & FENÊTRES MODALES
   ========================================================================== */

.btn {
    padding: 10px 20px;
    background-color: #2e2f30;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
}

.btn:hover { background-color: #0056b3; }

.btnSecondary {
    background-color: #e0e0e0;
    color: #333;
}

.btnSecondary:hover { background-color: #cfcfcf; }

.btnDelete {
    background-color: #c62828;
    margin-right: auto;
}

.btnDelete:hover { background-color: #8e0000; }

.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    padding: 15px;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal.modalOpen { display: flex; }

.mdlContent {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
}

.mdlTitle {
    font-size: 18px;
    color: #424242;
    margin-bottom: 15px;
}

.mdlContent label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.mdlContent input[type="text"] {
    display: block;
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
}

.mdlContent input.fieldError {
    border-color: #c62828;
    background: #fff5f5;
}

.mdlContent .checkRow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
    margin-bottom: 10px;
}

.faviconPreview {
    width: 16px;
    height: 16px;
    display: none;
}

.mdlFooter {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.swatchList,
.iconList {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
}

.swatch.selected {
    border-color: #ffffff;
    box-shadow: 0 0 0 2px #424242;
}

.iconChoice {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #757575;
    cursor: pointer;
}

.iconChoice svg {
    width: 24px;
    height: 24px;
}

.iconChoice:hover { background: #f0f0f0; }

.iconChoice.selected {
    border-color: #1976d2;
    color: #1976d2;
    background: #e3f2fd;
}

.modal textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 12px;
}

/* Modale Assistant IA */
.mdlRelative { position: relative; }

.mdlCloseIcon {
    position: absolute;
    top: 14px;
    right: 18px;
    background: transparent;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #777;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.mdlCloseIcon:hover {
    color: #000;
    background-color: rgba(0, 0, 0, 0.06);
}

.aiTextarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    resize: vertical;
    margin-top: 6px;
    margin-bottom: 10px;
    transition: border-color 0.2s ease;
}

.aiTextarea:focus {
    outline: none;
    border-color: #333;
}

.aiSectionBtn { margin-bottom: 18px; }

/* ==========================================================================
   9. RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* Écrans larges & Desktop (>= 768px) */
@media (min-width: 768px) {
    .card {
        border-radius: 8px;
    }

    .cardTitle {
        font-size: 14px;
    }

    .cardContent {
        padding: 20px;
    }

    .cardStrp,
    .cardStrpTop,
    .cardStrpBtm {
        width: 32px;
    }

    #sideBar {
        display: block !important;
        max-height: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Adaptations de la grille selon la largeur */
@media (max-width: 1400px) {
    .sectionRow {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .sectionRow {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


.mobileNavWrap {
	display:none;
}

/* Mobile & Tablettes étroites (< 768px) */
@media (max-width: 767px) {
    .container {
        padding: 0 10px 60px 10px;
    }

    /* Grille en 2 colonnes */
    .sectionRow {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px;
    }

    /* Menu Top & Navigation */
    .top > div:last-child {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .top > div:last-child .btnMenu {
        padding: 6px 8px;
    }

    .siteBrand span,
    .top > div:last-child .btnMenu span,
    #btnEdit span,
    #btnShare span,
    #btnSignIn span,
    #btnPseudo span,
    #btnMore,
    #moreDropdown {
        display: none !important;
    }

    .mobileNavWrap {
        display: inline-flex;
        /*align-items: center;
        padding-left: 15px;
        margin-top: -15px;
        padding-bottom: 10px; */
    }

    .btnHamburger {
        border: 0;
        padding: 5px;
        background: transparent;
        cursor: pointer;
    }

    .btnHamburger svg {
        width: 20px;
        height: 20px;
    }

    .mainLayout {
        display: flex;
        flex-direction: column;
    }

    #sideBar {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        padding-left: 15px !important;
        padding-right: 15px !important;
        margin-bottom: 0;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        visibility: hidden;
        transition: max-height 0.35s ease, opacity 0.3s ease, margin-bottom 0.35s ease, visibility 0.35s ease;
    }

    #sideBar.sidebarOpen {
        max-height: 450px;
        opacity: 1;
        visibility: visible;
        margin-bottom: 20px;
    }

    #ctSideBar {
        background: #ffffff;
        padding: 14px 18px;
        border-radius: 8px;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    }
}