/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/* ===========================
   RESET / NORMALISATION
   =========================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    background-color: #fcead6;
    overflow-x: hidden;
}
/* ===========================
   TYPOGRAPHIE & LISIBILITÉ
   =========================== */

/* Focus visuel commun : halo arrondi */
a:focus,
button:focus,
.wp-block-button__link:focus,
details.wp-block-details > summary:focus {
    outline: none;
    box-shadow: 0 0 0 2px #a88a4e;
    border-radius: 4px;
}

/* Boutons : comportement seulement */
button,
.wp-block-button__link {
    cursor: pointer;
}


/* ===========================
   IMAGES & MÉDIAS RESPONSIVES
   =========================== */
img,
video {
    max-width: 100%;
    height: auto;
}

iframe {
    max-width: 100%;
}

/* ===========================
   CONTENEURS / GRILLE
   =========================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===========================
   ACCESSIBILITÉ
   =========================== */
.screen-reader-text,
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
    word-wrap: normal !important;
}

/* ===========================
   SLIDERS
   =========================== */
.slider-desktop { display: block; }
.slider-mobile { display: none; }

/* Mobile (≤689px) */
@media screen and (max-width: 689px) {
    .slider-desktop { display: none; }
    .slider-mobile { display: block; }

    #offcanvas.ct-panel.ct-header {
        width: 70% !important;
        right: 0 !important;
        left: auto !important;
    }
}

/* Tablette (690px–999px) */
@media screen and (min-width: 690px) and (max-width: 999px) {
    .slider-desktop { display: block; }
    .slider-mobile { display: none; }

    #offcanvas.ct-panel.ct-header {
        width: 70% !important;
        right: 0 !important;
        left: auto !important;
    }
}

/* Desktop (≥1000px) */
@media screen and (min-width: 1000px) {
    .slider-desktop { display: block; }
    .slider-mobile { display: none; }
}

/* ===========================
   MENU OFFCANVAS
   =========================== */
@media screen and (max-width: 999px) {
    #offcanvas.ct-panel.ct-header,
    #offcanvas.ct-panel.ct-header .ct-panel-inner,
    #offcanvas.ct-panel.ct-header .ct-panel-actions,
    #offcanvas.ct-panel.ct-header .ct-panel-content,
    #offcanvas.ct-panel.ct-header .ct-panel-content-inner {
        background-color: rgba(168, 138, 78, 0.6) !important;
    }
}

/* ===========================
   TOOLTIP
   =========================== */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
    color: #a88a4e;
    font-weight: bold;
}

.tooltip-text {
    visibility: hidden;
    opacity: 0;
    width: max-content;
    max-width: 260px;
    background: #eed4b8;
    color: #000000;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #c8c8c8;
    position: absolute;
    z-index: 10;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85em;
    line-height: 1.3;
    font-weight: normal;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: opacity 0.2s;
}

.tooltip:hover .tooltip-text,
.tooltip:focus-within .tooltip-text {
    visibility: visible;
    opacity: 1;
}

@media screen and (max-width: 689px) {
    .tooltip-text {
        max-width: 80vw;
        text-align: center;
    }
}

/* ===========================
   UTILITAIRES
   =========================== */
/* Masquage responsive */
@media (max-width: 689px) {
    .hide-mobile { display: none !important; }
}

@media (min-width: 690px) {
    .hide-desktop { display: none !important; }
}

/* Espacements modulaires */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* ===========================
   RESPONSIVE GLOBAL
   =========================== */
@media screen and (max-width: 689px) {
    body { font-size: 0.95rem; }
}

@media screen and (min-width: 690px) and (max-width: 999px) {
    body { font-size: 1rem; }
}

@media screen and (min-width: 1000px) {
    body { font-size: 1.05rem; }
}