/* style.css - Styles unifiés pour le frontend public */

* {
    margin:0;
    padding:0;
    box-sizing:border-box;
}
.outfit {font-family:"Outfit", sans-serif;}
.bgwhite {background-color:white;}
.bgwhite2 {background-color:fafafa;}
.bg1 {background-color:#f9003f;}
.bg2 {background-color:#330000;}
.bg3 {background-color:#efefef;}
.bg4 {background-color:#d9d1c9;}
.colorwhite {color:white;}
.color1 {color:#f9003f;}
.color2 {color:#330000;}
.color3 {color:#d9d1c9;}
.borderwhite {border-color:white;}
.border1 {border-color:#f9003f;}
.border2 {border-color:#330000;}
.border3 {border-color:#d9d1c9;}
.borderwhite, .border1, .border2, .border3 {border-width:1px; border-style:solid;}

a {text-decoration:none; color:inherit;}

.aligncenter {align-items:center;}
.alignstart {align-items:start;}
.block {display:block;}
.center {text-align:center;}
.clear {clear: both;}
.flex {display:flex;}
.flexstart {align-items:flex-start;}
.flexend {align-items:flex-end;}
.flexcolumn {flex-direction:column;}
.floatright {float:right;}
.floatleft {float:left;}
.gap10 {gap:10px;}
.gap20 {gap:20px;}
.gap30 {gap:30px;}
.gap40 {gap:40px;}
.gradient {background: linear-gradient(#383b51, #330000);}
.grid {display:grid;}
.img {width:100%; height:auto; display:block;}
.justify {text-align:justify;}
.justifyspacebtw {justify-content:space-between;}
.justifycenter {justify-content:center;}
.justifyend {justify-content: end;}
.lineheight {line-height:1.6;}
.luminosity {mix-blend-mode:luminosity;}
.margintopbottom {margin:40px 0;}
.martop0 {margin-top:0;}
.martom20 {margin-bottom:20px;}
.martom30 {margin-bottom:30px;}
.martom40 {margin-bottom:40px;}
.marginauto {margin:auto;}
.margin0 {margin:0;}
.marginright20 {margin-right:20px;}
.maxsize {width:100%; max-width:1330px;}
.minsize {width:100%; max-width:1158px;}
.nospace {white-space:nowrap;}
.overden {overflow:hidden;}
.padding0 {padding:0;}
.paddingtop0 {padding-top:0;}
.padding10 {padding:10px;}
.padding20 {padding:20px;}
.padding30 {padding:30px;}
.paddingright20 {padding-right:20px;}
.radius8 {border-radius:8px;}
.radius12 {border-radius:12px;}
.radius16 {border-radius:16px;}
.relative {position:relative;}
.shadow {box-shadow:0 8px 30px rgba(0, 0, 0, 0.12);}
.text {font-size:clamp(1em, 3vw, 1.2em);}
.textindent10 {text-indent:10px;}
.textindent15 {text-indent:15px;}
.textindent20 {text-indent:20px;}
.underline {text-decoration:underline;}
.uppercase {text-transform:uppercase;}
.width100 {width:100%;}
.width75 {width:75%;}
.width50 {width:50%;}
.width33 {width:33%;}
.width25 {width:25%;}
.wrap {flex-wrap:wrap;}

.mob {display: none;}

.zoom {z-index:10; -webkit-transition:all .5s ease-out; -moz-transition:all .5s ease-out; -o-transition:all .5s ease-out; transition:all .5s ease-out; -webkit-backface-visibility:hidden; -webkit-perspective:1000;}
.zoom:hover {-moz-transform:scale(1.1); -webkit-transform:scale(1.1); -o-transform:scale(1.1); transform:scale(1.1); -ms-transform:scale(1.1); filter:progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11=2, M12=-0, M21=0, M22=2);}


.blink {animation: blink-animation 1s steps(1) infinite;}
@keyframes blink-animation {
    0%, 50% { visibility: visible; }
    50.1%, 100% { visibility: hidden; }
}

.pubtel-V {}
.pubtel-V h2 {font-size:1.5em; padding:10px 0 0; color:#333; font-weight:700;}
.pubtel-V p {color:#555; line-height:1.3; font-size:0.9em; padding:0 0 10px; text-align:justify;}
.pubtel-V p span {float: left; padding: 5px 8px; border-radius: 4px; color: white; background-color: #330000; margin-right: 10px; font-weight: 600; font-size: 1.2em;}
.numero {font-size:2em; font-weight:600; background-color:#f9003f; color:white; text-align: center; border-radius:8px;}


  /******************/
 /* === CUSTOM === */
/******************/

.image-description span {background-color: #383b51; padding: 6px 8px; color: #fff; float: left; margin: 0 10px 2px 0; border-radius: 8px; font-weight: 500;}
.image-description p {background-color: #d9d2ca; padding: 7px 10px; border-radius: 8px; text-align: center; margin: 10px 0 0; display: table; color: #383b51;}
.call {padding: 10px; margin: 0 auto 20px; font-size: clamp(30px, 3vw, 35px); display: flex; flex-direction: column; color: white; background-color: #330000; border-radius: 8px; align-items: center; line-height: 1.2;}
.call strong {font-size: clamp(35px, 3vw, 45px);}




  /*******************************/
 /* === CONTENUS PRINCIPAUX === */
/*******************************/
body {font-family:"Outfit", sans-serif; font-size:14px;}

#wrapper .wrapper {}

.toggle-checkbox {display:none;}
.menu-button {position:absolute; top:12px; left:20px; transform:translateX(250px); z-index:10; width:36px; height:36px; display:flex; align-items:center; justify-content:center; cursor:pointer; transition:all 0.6s ease; background:#fff; padding:8px; border-radius:50%;}

/* Icone du burger */
.menu-icon {position:relative; width:100%; height:3px; background:transparent;}
.menu-icon::before, .menu-icon::after {content:''; position:absolute; width:100%; height:3px; background:#1c355f; transition:all 0.6s ease;}
.menu-icon::before {top:-8px;}
.menu-icon {transition:opacity 0.6s ease;}
.menu-icon::after {bottom:-8px;}

/* Animation du burger pour l'état fermé */
.toggle-checkbox:not(:checked) ~ .menu-button .menu-icon::before {transform:rotate(0deg); top:-8px;}
.toggle-checkbox:not(:checked) ~ .menu-button .menu-icon::after {transform:rotate(0deg); bottom:-8px;}
.toggle-checkbox:not(:checked) ~ .menu-button .menu-icon {background:#1c355f;}

/* Animation du burger pour l'état ouvert */
.toggle-checkbox:checked ~ .menu-button .menu-icon::before {transform:rotate(45deg); top:0; background:#222430;}
.toggle-checkbox:checked ~ .menu-button .menu-icon::after {transform:rotate(-45deg); bottom:0; background:#222430;}
.toggle-checkbox:checked ~ .menu-button .menu-icon {background:transparent;}

/* État :menu ouvert */
.toggle-checkbox:checked ~ .menu-sidebar {width:250px; min-width:250px;}
.toggle-checkbox:checked ~ .menu-sidebar .menu-content {transform:translateX(0);}
.toggle-checkbox:checked ~ .content {margin:0;}
.toggle-checkbox:checked ~ .menu-button {left:102px; transform:translateX(10px);}

/* État :menu fermé */
.toggle-checkbox:not(:checked) ~ .menu-sidebar {width:0; min-width:0; box-shadow:none;}
.toggle-checkbox:not(:checked) ~ .menu-sidebar .menu-content {transform:translateX(-500px);}
.toggle-checkbox:not(:checked) ~ .content {margin-left:0;}
.toggle-checkbox:not(:checked) ~ .menu-button {left:10px; transform:translateX(10px);}

/* Colonne menu */
.menu-sidebar {height:100vh; overflow:hidden; box-shadow:2px 0 5px rgba(0, 0, 0, 0.5); position:relative; overflow-y:auto; scrollbar-width:none; transition:all 0.6s ease; background-color: #dd6096;}
.menu-content {position:relative; transform:translateX(-250px); transition:transform 0.6s ease; padding:60px 20px 20px; margin:auto;}

nav {/*flex-grow:1; flex-basis:300px;*/}
nav a {text-decoration:none; transform:translatex(0); transition:transform 0.4s ease-in-out; font-size:1.2em; color:#c3d0d8;}
nav a::before {content:""; height:2px; background:#f5f5f5; width:100%; position:absolute; bottom:-2px; left:0; transform:translatex(-50%); opacity:0; transition:transform 0.4s ease-in-out, opacity 0.4s linear;}
nav a:hover::before {transform:translatex(0);  opacity:1;}
nav ul {list-style:none; padding:0; display:flex; flex-direction:column; gap:0.5rem;}
nav li {display:flex; align-items:center; gap:1rem; cursor:pointer;}

.icon {width:27px; height:27px; min-width:27px; border-radius:50%; background-color:white; position:relative; cursor:pointer; transition:transform 0.3s ease;}
.icon::before, .icon::after {content:""; position:absolute;  background-color:#222430; width:18px; height:4px; top:50%; left:50%; transform:translate(-50%, -50%) rotate(135deg); transition:transform 0.3s ease;}
.icon::after {transform:translate(-50%, -50%) rotate(45deg);}
.menu li:hover .icon::before, .menu li:active .icon::before {transform:translate(-50%, -50%) rotate(0deg);}
.menu li:hover .icon::after, .menu li:active .icon::after {transform:translate(-50%, -50%) rotate(-90deg);}
.menu a {text-decoration:none; color:#fff; font-size:1rem; padding:0.5rem 0;}
.menu a.active {font-weight: bold; color:red;}

.container {margin:0 auto; padding:0 10px;}
.content {flex:1; transition:margin-left 0.6s ease; width:100%; min-width:320px; height:100vh; overflow-y:auto; scrollbar-width:none;}

main {}


  /*************************/
 /* === HEADER COMMUN === */
/*************************/
.header {padding:0; box-shadow:0 2px 10px rgba(0,0,0,0.4); background:#fff; /*position:sticky; top:0; z-index:100;*/}
.header-content {margin:0 auto; padding:0; min-height:50px; position: relative; background: url(img/back.webp) no-repeat top right / contain;}
.logo {font-size:1.8rem; background:linear-gradient(45deg, #2196F3, #4CAF50); -webkit-background-clip:text; -webkit-text-fill-color:transparent; font-weight:700; width: 100%; max-width:400px; padding:50px 0;}
.logo a {text-decoration:none; color:inherit;}
.site-logo {width:100%; height:auto; display:block;}

.stats {font-size:0.9rem; color:#666;}

.nav-header a {color:#495057; text-decoration:none; font-weight:600; padding:3px 10px; border-radius:6px; transition:all 0.3s;}
.nav-header a:hover {background: linear-gradient(#383b51, #330000); color:#fff;}

.page-header {margin:0 auto 20px; padding:0 10px; border-bottom:2px solid #eee;}
.page-header-bloc {}
h1 {font-size:clamp(1.4em, 2vw, 1.5em); text-indent: clamp(1px, 1vw, 15px); font-weight:600;}

/* #### TOGGLE CSS ### */
.toggle {}
.toggle input[type="checkbox"] {display:none;}
.toggleable_content {max-height:3000px; overflow:hidden; transition:max-height .6s cubic-bezier(1,0,1,0);}
.toggleable_content .block {padding:20px; margin:auto;}
.toggleable_control:checked ~ .toggleable_content {transition-timing-function:ease-in-out; max-height:0px;}
.toggleable_label {width:100%; transition:width .6s; display:flex; justify-content:center; align-items:center; cursor:pointer; position:relative; z-index:1; margin:0 auto; padding:0;}
.toggleable_label::after {content:"▲"; font-size:0.8rem;}
.toggleable_control:checked ~ .toggleable_label::after {content:"▼";}

.site-description {padding:0 1.2vw;}

/* Styles pour les boutons de filtrage par type de contenu*/
.content-filter-btn-index.active {background: linear-gradient(#383b51, #330000); color:white;}
.content-filter-btn-index .count {font-size:0.8em;}

  /**********************/
 /* === BREADCRUMB === */
/**********************/
.breadcrumb {gap:5px; font-weight:500;}
.breadcrumb a {color:#495057; text-decoration:none; transition:all 0.3s;}
.breadcrumb a:hover {color:#fff; background: linear-gradient(#383b51, #330000);border-radius: 6px; padding: 2px 6px; }
.breadcrumb-separator {color:#495057; margin:0 8px;}
.breadcrumb-current {font-weight:600;}


  /***************************/
 /* === Dropdowns perso === */
/***************************/
.filters-controls {}
.dropdown {position:relative;}
.dropdown-toggle {font-family:"Outfit", sans-serif; display:inline-block; padding:10px; font-weight:600; text-align:left; white-space:nowrap; cursor:pointer; border:none; border-radius:8px; user-select:none; min-width:180px; transition:all 0.15s ease-in-out;}
span.selected-text.widgetcatimg {font-weight:700; font-size:1.4em; color:#333;}
.dropdown-toggle:hover, .dropdown-toggle:focus {background-color:#eee; text-decoration:none; outline:0;}
.dropdown-toggle.active, .dropdown.open .dropdown-toggle {background-color:#f5f5f5; outline:0;}
.dropdown-menu {position:absolute; /*top:100%; left:0; float:left;  */ list-style:none; z-index:1000; display:none;  min-width:100%; margin:5px 0 0; background-color:#fff; border-radius:8px; box-shadow:0 6px 12px rgba(0, 0, 0, 0.175); background-clip:padding-box;}
.dropdown.open .dropdown-menu {display:block;}
.dropdown-menu li button {font-family:"Outfit", sans-serif; display:block; width:100%; padding:8px 0 8px 10px; clear:both; white-space:nowrap; cursor:pointer; border:none; background:none; text-align:left; border-radius:4px; margin:5px 0px 5px 10px; transition:all 0.2s ease;}
.dropdown-menu li button a {text-decoration:none; color:inherit;}
.dropdown-menu li button:hover, .dropdown-menu li button:focus {color:#fff; background-color:#ddd; outline:none;}
.caret {/*display:inline-block; width:0; height:0; margin-left:2px; vertical-align:middle;*/ border-top:4px dashed; border-right:4px solid transparent; border-left:4px solid transparent; float:right; margin-top:6px; transition:transform 0.3s ease;}
.dropdown.open .caret {transform:rotate(180deg);}


  /***************************/
 /* === GALERIE MASONRY === */
/***************************/
#gallery {width:100%; margin:0 auto 40px; transition:height 180ms ease; position:relative;  /* requis pour le positionnement absolu des items */}
.gallery {}
.image-card, .ad-card {background:white; border:1px solid #eee; border-radius:12px 12px 4px 4px; overflow:hidden; /*break-inside:avoid; transition:all 0.3s ease;*/ cursor:pointer;}
.ad-card {/*position:relative;*/ }
.ad-content {width:100%; /*display:flex;*/ align-items:center; flex-direction:column; justify-content:flex-start; min-height:80px;}
.ad-content img {width:100%; height:auto;}
.image-card:hover {}
.ad-card:hover {}
.gallery-item {position:absolute; transition:transform 280ms cubic-bezier(.22,.61,.36,1), opacity 220ms ease; will-change:transform, opacity;}
.image-wrapper {width:100%; display:block; overflow:hidden;}
.image-wrapper img { display:block; width:100%; height:auto; transform:translateZ(0); transition: transform 0.3s ease;}
.image-wrapper img:hover {transform: scale(1.1);}
.image-info {padding:10px 12px;}
.image-title {color:#383b51; font-size:16px; font-weight:600; margin: 0 0 8px; line-height:1.4;}
.image-description {line-height: 1.4; color: #330000; display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis;}
.image-date {font-size:12px; color:#888; display:none;}
/*.ad-card::before {content:"Publicité"; position:absolute; top:5px; right:8px; background:rgba(0, 0, 0, 0.1); color:#eee; font-size:10px; padding:2px 6px; border-radius:3px; text-transform:uppercase; letter-spacing:0.5px; z-index:10;}*/

/* === Respect des préférences d’animations réduites === */
@media (prefers-reduced-motion:reduce) {
  #gallery.gallery { transition:none; }
  .gallery-item { transition:none !important; }
  .loading .spinner { animation:none; }
}

/* === États (loading / vide / erreur) === */
.empty-state, .error-message {width:100%; text-align:center; color:#ccc; padding:24px 12px;}
.empty-state .empty-icon { font-size:40px; margin-bottom:8px; }
.error-message { color:#ff6b6b; }
.error-message strong { color:#ff8a8a; }

/* === Spinner === */
.loading .spinner {--size:28px; --border:3px; display:inline-block; width:var(--size); height:var(--size); border:var(--border) solid rgba(255,255,255,0.15); border-top-color:rgba(255,255,255,0.9); border-radius:50%; animation:spin 0.9s linear infinite; margin-bottom:10px;}
@keyframes spin { to { transform:rotate(360deg); } }

/* === États === */
#loading { display:none; }
#emptyState { display:none; color:#aaa; text-align:center; padding:40px 0; }
#errorState { display:none; color:#f66; text-align:center; padding:20px 0; }

/* === Erreurs === */
.error-message {background:#fee; color:#c33; padding:15px; border-radius:8px; margin:20px; text-align:center; border-left:4px solid #c33;}
.error-state {text-align:center; padding:80px 20px; color:#666;}
.error-icon {font-size:4rem; margin-bottom:20px; opacity:0.3;}

/* === OVERLAY INFINITE SCROLL === */
.load-more-overlay {position:fixed; bottom:20px; right:20px; background:rgba(33, 150, 243, 0.9); color:white; padding:10px 20px; border-radius:25px; font-size:0.9rem; font-weight:600; display:none; align-items:center; gap:10px; z-index:200;}
.load-more-overlay .mini-spinner {border:2px solid rgba(255,255,255,0.3); border-top:2px solid white; border-radius:50%; width:16px; height:16px; animation:spin 1s linear infinite;}

.gallery-pagination {display:flex; justify-content:center; align-items:center; gap:10px; margin:0 0 20px; padding:0 10px 20px; flex-wrap:wrap;}
.pagination-btn {min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid #ddd; background: white; border-radius:8px; cursor: pointer; transition: all 0.2s;}
.pagination-btn:hover {background: #dd6196; border-color: #d53a7c; color:white;}
.pagination-btn.active {background: linear-gradient(#383b51, #330000); color:white; border-color:#d53a7c; cursor:default;}
.pagination-btn:disabled {opacity: 0.5; cursor: not-allowed;}
.pagination-dots {padding: 0 8px; color: #999; font-weight: bold;}


  /*********************/
 /* === image.php === */
/*********************/
.container-image {margin:0 auto 20px; padding:0 10px;}
.image-detail {grid-template-columns:1fr auto;}
.image-section {padding: clamp(10px, 2vw, 30px);}
.image-description-detail {font-size: clamp(1em, 2vw, 1.3em); flex-grow:1; -webkit-line-clamp:unset;}
.image-description-detail h2 {color: #330000;}
.vignette-video, .vignette-blog {width:100%; max-width:330px; margin:0 30px 10px 0;}
.image-title-detail {font-size:clamp(1.3em, 2vw, 1.6em); text-indent:clamp(1px, 1vw, 15px); font-weight:600;}
.main-image {height:auto; box-shadow:0 4px 15px rgba(0,0,0,0.1); transition:transform 0.3s ease;}
.main-image:hover {transform:scale(1.02);}
video {width:100%; border-radius:8px;}
.info-section {width:300px; align-items:center;}

/* Tags dans image.php */
.tags-container {}
.tag-link {display:inline-block; padding:4px 10px 6px; background: linear-gradient(#383b51, #330000); color:white; text-decoration:none; border-radius:8px; font-size:12px; transition:all 0.2s;}
.tag-link:hover {transform: translateY(-2px);}

/* === Pubs générales image === */
.pub1 img, .pub2 img, .pub3 img, .pub4 img {height:auto; width:100%; display: block;}

/* === Pub dans le player === */
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
.close-ad-button:hover {transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.3); background: #f0f0f0;}
.video-player-container video, .video-player-container iframe {width:100%; height:auto; min-height:400px; display:block; object-fit:cover;}


.profile-name-display h2 {font-size: 28px; margin-bottom: 15px; color: #2c3e50;}

/* === Styles Galerie Strip === */
.gallery-title { margin-bottom: 12px; }

.gallery-strip {
  --gap: 12px;                 /* espace entre vignettes */
  --cells: 3;                  /* 3 colonnes visibles */
  position: relative;
  overflow: hidden;            /* masque le dépassement + bords dégradés */
  border-radius: 10px;
}

/* Dégradés indicateurs (ajout/ retrait via .has-left/.has-right en JS) */
.gallery-strip::before,
.gallery-strip::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 40px;
  pointer-events: none;
  opacity: 0;                  /* par défaut caché */
  transition: opacity .2s ease;
}
.gallery-strip.has-left::before {
  left: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.12), rgba(0,0,0,0));
  opacity: 1;
}
.gallery-strip.has-right::after {
  right: 0;
  background: linear-gradient(270deg, rgba(0,0,0,.12), rgba(0,0,0,0));
  opacity: 1;
}

/* Piste scrollable */
.strip-track {
  display: flex;
  gap: var(--gap);
  padding: 6px;                /* un peu d’air autour */
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;       /* Firefox */
  cursor: grab;
  touch-action: pan-y; /* on garde le scroll vertical, on gère l’horizontal nous-mêmes */
}
.strip-track::-webkit-scrollbar { display: none; }

/* Cellules : 3 visibles – largeur fixe, hauteur libre */
.strip-cell {
  flex: 0 0 calc( (100% - (var(--gap) * (var(--cells) - 1))) / var(--cells) );
  display: block;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 8px;                /* utilise surtout la hauteur, léger en largeur */
  transition: transform .15s ease;
}
.strip-cell:hover { transform: scale(1.01); }

/* Désactive le drag natif & la sélection pendant le slide */
.strip-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none; /* important : l’image ne capte plus le pointeur */
}

.strip-track.is-dragging,
.strip-track.is-dragging * {
  cursor: grabbing !important;
  user-select: none;
}

/* Zones cliquables pour “clic-maintenu” (auto-défilement) */
.strip-zone {
  position: absolute;
  top: 0; bottom: 0;
  width: 48px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: ew-resize;
  z-index: 2;
}
.zone-left  { left: 0; }
.zone-right { right: 0; }

/* Bonus accessibilité au clavier (si jamais focus) */
.strip-zone:focus-visible {
  outline: 2px solid #888;
  outline-offset: -2px;
}

/* Responsive : sur petits écrans on peut garder 3 (ou passer à 2 si tu veux) */
@media (max-width: 640px) {
  .gallery-strip { --cells: 2; }
}


/* GALERIE MASONRY 2 COLONNES 
.profile-gallery-section {width: 100%; padding: 20px; background: #f8f9fa; border-radius: 12px;}
.gallery-title {font-size: 24px; margin-bottom: 20px;}
.profile-gallery-masonry {column-count: 2; column-gap: 15px; max-height: 600px; overflow-y: auto; padding: 10px;}
.gallery-item {break-inside: avoid; margin-bottom: 15px; background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: all 0.3s ease;}
.gallery-item:hover {transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15);}
.gallery-image {width: 100%; height: auto; display: block; cursor: pointer;}

.profile-gallery-masonry::-webkit-scrollbar {width: 8px;}
.profile-gallery-masonry::-webkit-scrollbar-track {background: #e0e0e0; border-radius: 10px;}
.profile-gallery-masonry::-webkit-scrollbar-thumb {background: #888; border-radius: 10px;}
.profile-gallery-masonry::-webkit-scrollbar-thumb:hover {background: #555;}
*/


/* RESPONSIVE */
@media (max-width: 768px) {
    .profile-photo {float: none; max-width: 100%; margin: 0 0 20px 0;}
    .profile-gallery-masonry {column-count: 1; max-height: 500px;}
}


/* === Insert HTML/JS spécifique image === */
.custom-html {}
.custom-js {}

/* === Widget === */
.widget-image {}
.widget-title {margin-bottom:10px; box-shadow:0 4px 15px rgba(0,0,0,0.1); padding:10px 20px;}
.widget-content {padding: 0 clamp(5px, 1.2vw, 20px); font-size:0.8em;}
.widget-content li {padding: 0 0 10px;}
.widget-content-image {column-count:2; column-gap:20px; padding-top:10px;}
.widget-content img {width:100%; height:auto; display:block; margin-bottom:20px; transition: transform 0.3s ease;}
.widget-content img:hover {transform: scale(1.1);}
.nav a {text-decoration:none; transform:translatex(0); transition:transform 0.4s ease-in-out; font-weight:500; color:inherit;}
.nav a::before {content:""; height:2px; background:#d53a7c; width:100%; position:absolute; bottom:-2px; left:0; transform:translatex(-50%); opacity:0; transition:transform 0.4s ease-in-out, opacity 0.4s linear;}
.nav a:hover::before {transform:translatex(0);  opacity:1;}
.nav ul {list-style:none; padding:0; display:flex; flex-direction:column; margin-bottom:5px;}
.nav li {display:flex; align-items:center; cursor:pointer;}

.video-container {margin:20px 0;}
.video-embed-container {position:relative; padding-bottom:56.25%; /* Ratio 16:9 */ height:0; overflow:hidden; border-radius:8px;}
.video-embed-container iframe {position:absolute; top:0; left:0; width:100%; height:100%; border-radius:8px;}
.main-video {background:#000; object-fit:contain;}
.video-error {background:#f8f9fa; border:2px dashed #dee2e6; border-radius:8px; padding:40px; text-align:center; color:#6c757d;}
.custom-html-content {line-height:1.6;}
.custom-html-content img {max-width:100%; height:auto; border-radius:8px;}

/* Contenu relatif */
.related-content {padding: clamp(10px, 2vw, 30px);}
.related-title {}
.related-grid {}
.related-item {text-decoration:none; display:block; transition:transform 0.3s ease;}
.related-item:hover {transform:translateY(-5px);}
.related-item:hover img {transform:scale(1.1);}
.related-image-wrapper {height:150px; box-shadow:0 2px 4px rgba(0,0,0,0.1); }
.related-image-wrapper img {width:100%; height:100%; object-fit:cover; transition:transform 0.3s ease;}
.related-item-title {font-weight:500; color:#333; font-size:14px; line-height:20px; padding-top:5px;}
.related-item:hover .related-item-title {color:#d53a7c;}


  /********************/
 /* === page.php === */
/********************/
.page-main {}
.page-article {}
.page-content {}
.page-content-custom {}


  /******************/
 /* === footer === */
/******************/
.site-footer {margin:0; box-shadow:0 -2px 10px rgba(0, 0, 0, 0.1); padding:20px 0 0;}
.footer-content {margin:auto; padding:10px;}

.footer-blocks {display:grid; gap:3%; align-items:center;}
/* Grilles responsives selon le nombre de blocs */
.footer-blocks-1 {grid-template-columns:1fr; text-align:center;}
.footer-blocks-2 {grid-template-columns:repeat(2, 1fr);}
.footer-blocks-3 {grid-template-columns:repeat(3, 1fr);}
.footer-blocks-4 {grid-template-columns:repeat(4, 1fr);}

.footer-block h3,.footer-block h4,.footer-block h5 {color:#495057; margin-bottom:10px; font-weight:600;}
.footer-block img {width:100%; height:auto; border-radius:8px; display:block;}
.footer-block a {text-decoration:none;}
.footer-block a:hover {}

.footer-bottom {padding:20px 0;}
.footer-copyright {color:#6c757d; font-size:0.9em;}

.price-block {margin: auto; width: 280px; position: relative;}
.price-num {display: flex; border-style: solid; border-width: 1px 0 1px 1px; color: #a50f78; font-family: Arial; font-size: 19px; font-weight: bold; height: 37px; padding: 0 10px; align-items: center;}
.price-img {max-width: 140px;}




  /*************************/
 /* === Scroll to Top === */
/*************************/
.scroll-to-top {position:fixed; bottom:20px; right:20px; width:50px; height:40px; background-color:rgba(253, 122, 122, 0.8); border:none; cursor:pointer; font-size:11px; font-weight:600; text-decoration:none; z-index:1000; opacity:0; transform:translateY(100px); transition:all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); pointer-events:none;}
.scroll-to-top.visible {opacity:1; transform:translateY(0); pointer-events:auto;}
.scroll-to-top:hover {background-color:rgba(253, 122, 122, 0.8); color:#eee; transform:translateY(-3px); box-shadow:0 6px 20px rgba(0, 0, 0, 0.2);}
.scroll-to-top .arrow {font-size:16px; margin-top:-2px;}
.scroll-to-top .text {font-size:9px; line-height:1;}
.scroll-to-top:active {transform:translateY(-1px) scale(0.95);}


  /**********************/
 /* === DISCLAIMER === */
/**********************/
body.disclaimer-active > *:not(.disclaimer-overlay):not(.disclaimer-modal) {filter: blur(10px);}
body.disclaimer-active {pointer-events: none;}
.disclaimer-overlay {position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.35); z-index: 9998; opacity: 0; transition: opacity 0.3s ease; backdrop-filter: blur(5px);}
.disclaimer-overlay.show {opacity: 1;}
/* Modal centré */
.disclaimer-modal {position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.9); z-index: 9999; max-width: 500px; width: 90%; opacity: 0; transition: all 0.3s ease; pointer-events: auto; filter: none;}
.disclaimer-modal.show {opacity: 1; transform: translate(-50%, -50%) scale(1);}
/* Contenu du modal */
.disclaimer-content {background:white; border-radius:16px; padding: clamp(20px, 2vw, 40px) clamp(20px, 2vw, 40px); text-align:center; box-shadow:0 20px 60px rgba(0, 0, 0, 0.5);}
.disclaimer-site-name {font-size:clamp(25px, 2vw, 33px); font-weight:700; color:#2c3e50; margin:0 0 23px 0;}
.disclaimer-title {font-size: clamp(20px, 2vw, 26px); font-weight:600; color:#e74c3c; margin:0 0 30px 0;}
/* Boutons */
.disclaimer-buttons {display: flex; gap: 15px; justify-content: center; margin-bottom: 20px;}
.disclaimer-btn {padding: 15px 50px; font-size: 18px; font-weight: 600; border: none; border-radius: 8px; cursor: pointer; transition: all 0.2s ease; min-width: 120px;}
.disclaimer-btn-yes {background: linear-gradient(135deg, #27ae60, #229954); color: white;}
.disclaimer-btn-yes:hover {transform: translateY(-2px); box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);}
.disclaimer-btn-no {background: linear-gradient(135deg, #e74c3c, #c0392b); color: white;}
.disclaimer-btn-no:hover {transform: translateY(-2px); box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);}
/* Texte explicatif */
.disclaimer-text {font-size:clamp(14px, 2vw, 20px); padding:0 20px;}


  /**************************/
 /* === CATEGORIES.PHP === */
/**************************/
.categories-grid {grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));}
.category-card {transition:transform 0.3s ease, box-shadow 0.3s ease; cursor:pointer;}
.category-card:hover {transform:translateY(-5px); box-shadow:0 8px 25px rgba(0,0,0,0.15);}
.category-header {height:60px; padding:0 20px;}

.category-name {font-weight:600; font-size:1.5em;}
.category-image {height:200px; overflow:hidden;}
.category-image img {width:100%; height:100%; object-fit:cover; transition:transform 0.3s ease;}
.category-image img:hover {transform:scale(1.1);}
.category-content {}
.category-meta {border-top:1px solid #eee; padding-top:15px; margin-top:15px;}
.image-count-text {font-size:0.9rem; font-weight:500;}
.nav-link {color:#333; text-decoration:none; transition:color 0.3s ease;}
.nav-link:hover {color:#bbb;}
.view-link {color:#bbb; text-decoration:none; font-weight:500; font-size:0.9rem; transition:color 0.3s ease;}
.view-link:hover {color:#333;}
.categories-header .page-title {margin:0 0 5px 0; font-size:1.5em; color:#333;}
.categories-header .page-subtitle {margin:0 0 15px 0; color:#666; font-size:1.1em;}
.stats-bar {font-size:0.9rem;}
.stat-number {font-weight:700; font-size:1.2em;}
.stat-label {margin-left:5px; color:#bbb;}
.stat-divider {color:#bbb;}
.categories-controls {}
.sort-controls select {padding:8px 12px; border:1px solid #ddd; border-radius:6px; font-size:0.9rem;}
.category-color-dot {width:20px; height:20px; border-radius:50%;}

  /**********************/
 /* === RESPONSIVE === */
/**********************/
@media (max-width:1024px) {
    .desk {display:none;}
    .tab {display:block;}
    .footer-blocks-4 {grid-template-columns: repeat(2, 1fr);}
}

@media (max-width:768px) {
    .tab {display:none;}
    .mob {display:block;}
    .disclaimer-buttons {flex-direction: column;}
    .header-content {justify-content: center; background:none;}
    .logo {width: 100%; text-align: center;}
    .page-header h1 {margin:0 auto 10px;}
    .nav-header {justify-content: center;}
    .breadcrumb-wrapper {justify-content: center;}
    .filters-controls {width:100%; justify-content:center; /*flex-wrap:wrap;*/ gap: 10px;}

    .categories-grid {grid-template-columns:repeat(auto-fill, minmax(280px, 1fr)); gap:15px;}
    .categories-navigation {flex-direction:column; gap:15px;}
    .stats-bar {justify-content:center;}
    .categories-header {flex-direction:column; align-items:stretch; gap:20px;}
    .categories-controls {flex-direction:row; justify-content:space-between; align-items:center;}

    .toggleable_content {max-height:0; overflow:hidden; transition:max-height .8s cubic-bezier(0,1,0,1)}
    .toggleable_content .block {margin-top:0; padding:20px 10px 20px;}
    .toggleable_control:checked ~ .toggleable_content {transition-timing-function:ease-in-out; max-height:3000px;}
    .toggleable_content {margin:0; /*padding-top:20px;*/}
    .toggleable_label::after {content:"▼"; font-size:0.8rem;}
    .toggleable_control:checked ~ .toggleable_label::after {content:"▲";}

    .related-grid {grid-template-columns:repeat(2, 1fr) !important;}
    .footer-blocks-4 {grid-template-columns: 1fr;}
    .footer-blocks-3 {grid-template-columns: 1fr;}

    .image-detail {grid-template-columns:1fr; width:100%;}
    .vignette-blog {max-width: 100%; margin: 0 auto 20px;}
    .info-section {width:100%; align-items:center;}
    .scroll-to-top {bottom:20px; right:20px; width:50px; height:50px;}
    .scroll-to-top .arrow {font-size:14px;}
    .scroll-to-top .text {font-size:8px;}
}

@media (max-width:480px) {
    .page-header-bloc {background: none; padding: 0 10px;}
    .dropdown-toggle {min-width:150px;}
    .image-section {background-color: inherit; box-shadow: none; padding: 0;}
    .related-grid {grid-template-columns:1fr !important;}
    .footer-blocks-2 {grid-template-columns: 1fr;}
}
