/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */
 @import url('https://fonts.googleapis.com/css2?family=Fjalla+One&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
 body{
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    background-color: #F2F2F2;
    color: black;
 }
 h1, h2, h3, h4, h5, h6{
    font-family: "Fjalla One", sans-serif;
    font-weight: 400;
    font-style: normal;
 }
 p, span, label, input, button, a, li, div{
    font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
 }
 a{
  color:#DE7F06;
  text-decoration: none;
 }
 .bg-orange{
    background-color: #DE7F06;
 }
 .bg-noir{
  background-color: #000000;
}
 .text-orange {
  color: #DE7F06;
}
.btn{
  border-radius: 0%;
  padding: 3%;
}
.btn-afk{
  background-color: #DE7F06;
  color: white;
  border: 2px solid white;
}

.btn-noir{
  background-color: #000000;
  color: white;
}

.btn-noir:hover{
  background-color: #000000;
  color: #DE7F06;
}

.btn-afk:hover{
  background-color: white;
  color: #DE7F06;
}
.btn-menu-afk{
  background-color: #DE7F06;
  color: white;
  border: 0px solid white;
}

.btn-menu-afk:hover{
  background-color: white;
  color: #DE7F06;
}
 .menu-principal{
    background-color: #000000;
 }
.menu-principal .nav-link{
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    transition: all ease 0.2s;
}
.menu-principal .nav-link:hover{
  color: #DE7F06;
}
.menu-utilisateur .nav-link{
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  transition: all ease 0.2s;
}
.menu-utilisateur .nav-link:hover{
color: #DE7F06;
}
/* Appliquer le fond noir au menu déroulant */
.nav-pills .dropdown-menu {
  background-color: black !important;
  border: none; /* Supprime la bordure par défaut */
}

/* Couleur du texte blanc dans le dropdown */
.nav-pills .dropdown-menu .dropdown-item {
  color: white !important;
  text-transform: uppercase;
  transition: all ease 0.2s;
}

/* Changer la couleur au survol */
.nav-pills .dropdown-menu .dropdown-item:hover {
  background-color: #DE7F06 !important;
  color: black !important; /* Pour un bon contraste */
}

/* Couleur du texte blanc dans le dropdown */
.menucart .dropdown-menu {
  background-color: black !important;
  border: none; /* Supprime la bordure par défaut */
}

/* Couleur du texte blanc dans le dropdown */
.menucart .dropdown-menu .dropdown-item {
  color: white !important;
  text-transform: uppercase;
  transition: all ease 0.2s;
  text-decoration: none;
}

/* Changer la couleur au survol */
.menucart .dropdown-menu .dropdown-item:hover {
  background-color: #DE7F06 !important;
  color: black !important; /* Pour un bon contraste */
}

.logo{
    width: 70%;
    margin: auto;
}
.img-kare{
  width: 150px;
}
/* acceuil */
/* Le col-8 a une hauteur définie */
.col-container {
  position: relative;
  height: 75vh; /* Détermine la hauteur globale */
  padding: 0 !important;
  margin: 0 !important;
}

/* Le carousel prend 100% du parent (col-8) */
.carousel {
  width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

/* Le carousel-inner suit la hauteur du carousel */
.carousel-inner {
  width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

/* Les items du carousel occupent toute la place */
.carousel-item {
  width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

/* Les images remplissent totalement le carousel sans se déformer */
.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; /* Supprime l'espace en bas de l'image */
  margin: 0 !important;
  padding: 0 !important;
}

/* Contenu (slogan + recherche) centré */
.overlay-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 10px;
  width: 60%;
  z-index: 10; /* S'assure que l'overlay est au-dessus du carousel */
}

/* Formulaire de recherche */
.search-form {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  width: 100%;
  position: relative; /* IMPORTANT: pour positionner l'autocomplétion */
}

/* Champ de recherche */
.search-input {
  flex: 1;
  padding: 10px 15px;
  border: none;
  border-radius: 5px 0 0 5px;
  font-size: 16px;
}

/* Bouton de recherche */
.search-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 0 5px 5px 0;
  background-color: #DE7F06;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s;
}

.search-btn:hover {
  background-color: #ff6600;
  color: white;
}

/* Conteneur des suggestions d'autocomplétion */
.autocomplete-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: white;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 5px 5px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1050; /* Au-dessus de tout */
  display: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-top: 2px;
}

/* Item de suggestion */
.autocomplete-item {
  padding: 12px 15px;
  cursor: pointer;
  color: #333;
  text-align: left;
  transition: background-color 0.2s;
  border-bottom: 1px solid #f0f0f0;
  font-size: 16px;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.autocomplete-active {
  background-color: #DE7F06;
  color: white;
}

.autocomplete-item i {
  margin-right: 8px;
  opacity: 0.7;
}

.autocomplete-item i {
  margin-right: 8px;
  opacity: 0.7;
}

.cta-box {
  background: linear-gradient(to right, #fd7e14, #ff922b);
}

.right-section {
  background-color: white;
}

.card {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-2px);
}

.right-section .badge {
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: normal;
}

.right-section .badge a{
  background-color:#DE7F06;
  color: white;
  text-decoration: none;
  transition: all ease 0.3s;
  padding: 8px 16px;
  border-radius: 20px;
}

.badge a:hover{
  color:#DE7F06;
  background-color: white;
  text-decoration: none;
  border: 1px solid #DE7F06;
}



.btn-light:hover {
  background-color: #f8f9fa;
  color: #fd7e14;
}


.home-headline{
  font-size: 40px;
  font-weight: bold;
  text-transform: uppercase;
}
.home-intro{
  font-size: 16px;
}
.abonnement-bg{
  background: url('https://res.cloudinary.com/aseed/image/upload/v1740207725/afrikimages/assets/abo-bg_vuh6dx.jpg')no-repeat;
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
}
.abonnement-bg-filtre{
  background: url('')no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  height: 400px;
}
.abonnement-bg-headline{
  font-size: 50px;
  font-weight: bold;
  text-transform: uppercase;
}
.abonnement-bg-intro{
  font-size: 24px;
}
.galerie-section{
  background-color: white;
}
.galerie-section-headline{
  color: #DE7F06;
  font-size: 30px;
  font-weight: bold;
  text-transform: uppercase;
}
.galerie-section-btn{
  background-color: #000000;
  color: white;
  transition: all ease 0.2s;
}
.galerie-section-btn:hover{
  background-color: #DE7F06;
  color: #000000;
  transition: all ease 0.3s;
}
.galerie-section-square{
  width: 200px;
  height: 200px;
  background-color: transparent;
  padding-left: 10%;
  padding-right: 10%;
}
.galerie-section img{
  width: 200px;
  height: 200px;
}
.fill {
  object-fit: fill;
}
.contain {
  object-fit: contain;
}

.cover {
  object-fit: cover;
}
/* acceuil fin */

.lacategorie-container{
    background-size:cover;
    background-position: center center;
}

.lacategorie-container p{
    font-size: 16px;
}

.lacategorie-filtre{
    background: rgba(0,0,0,.5);
    color:white; 
    height:50vh;
}

.souscategorie-photos-container {
  padding: 2rem !important;
  background-color: transparent;
}

.souscategorie-photos-container p{
    font-size: 16px;
}

.photos-headline{
  font-size: 26px;
  font-weight: bold;
  text-transform: uppercase;
}
.photo-titre::first-letter{
  text-transform: uppercase;
}

.dropdown-menu {
  min-width: 200px;
}

.dropdown-item {
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
}

.dropdown-item:hover {
  background-color: #DE7F06 !important;
  color: white;
}

.dropdown-item i {
  font-size: 1.1rem;
}

.copy-link {
  cursor: pointer;
}

.souscategorie-container {
  padding: 2rem !important;
  background-color: transparent;
}

.souscategorie-container .row {
  gap: 2rem; /* Espacement uniforme entre les cartes */
}

.souscategorie-card {
  position: relative;
  overflow: hidden;
  height: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px; /* coins légèrement arrondis */
}

.bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease-in-out;
}

.souscategorie-card:hover .bg-image {
  transform: scale(1.1);
}

.filtre {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* Légèrement plus foncé pour meilleur contraste */
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
  padding: 1.5rem;
  transition: background-color 0.3s ease;
}

.souscategorie-card:hover .filtre {
  background-color: rgba(0, 0, 0, 0.5); /* Plus foncé au survol */
}

.filtre .souscategorie-nom {
  font-size: 24px;
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.filtre .btn {
  border-radius: 0;
  padding: 0.5rem 1.5rem;
  transition: all 0.3s ease;
}

.filtre .btn-afk-light {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: 2px solid white;
}

.filtre .btn-afk-light:hover {
  background-color: #DE7F06;
  color: white;
  transform: translateY(-2px);
}

/* Photo show page */
.photo-viewer-container {
  position: relative;
  min-height: auto;
  background-color: #f8f9fa;
  overflow: hidden;
}

/* Arrière-plan flouté */
.photo-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
}

.background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(20px) brightness(0.7);
  transform: scale(1.1); /* Pour éviter les bords blancs dus au flou */
}

/* Conteneur des éléments principaux */
.container {
  position: relative;
  z-index: 1;
}

/* Style du conteneur de la photo principale */
.photo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.photo-wrapper {
  position: relative;
  max-height: 70vh;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

/* Style de l'image principale */
.main-image {
  max-height: 70vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Actions sur l'image (boutons en haut) */
.photo-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
}

.photo-actions .btn {
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.9);
}

/* Bouton pour supprimer l'arrière-plan */
.remove-background-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
}

/* Style pour le panneau de détails */
.image-details {
  background-color: white;
  border-radius: 8px;
}

.souscategories-container {
  margin-top: 15px;
}

.souscategory-link {
  display: inline-flex;
  align-items: center;
  background: #000000;
  color: white;
  padding: 6px 12px;
  margin: 5px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.3s ease;
}

.souscategory-link i {
  margin-right: 5px;
}

.souscategory-link:hover {
  background: white;
  color: #DE7F06;
  border: 1px solid #000000;
}




.tags-container {
  margin-top: 15px;
}

.tag-link {
  display: inline-flex;
  align-items: center;
  background: #DE7F06;
  color: white;
  padding: 6px 12px;
  margin: 5px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.3s ease;
}

.tag-link i {
  margin-right: 5px;
}

.tag-link:hover {
  background: white;
  color: #DE7F06;
  border: 1px solid #DE7F06;
}
/* photos show page */
.masonry-grid {
  column-count: 4;
  column-gap: 10px;
}

.masonry-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 10px;
  break-inside: avoid; /* Évite de couper les images entre les colonnes */
}

.masonry-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 5px;
}

.masonry-item img {
  width: 100%;
  border-radius: 5px;
  display: block;
  transition: transform 0.3s ease;
}

/* Effet zoom sur l'image au survol */
.masonry-link:hover img {
  transform: scale(1.05);
}

/* Overlay avec dégradé */
.masonry-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
  padding: 20px 15px 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.masonry-link:hover .masonry-overlay {
  opacity: 1;
}

.masonry-description {
  color: white;
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.masonry-description::first-letter {
  text-transform: uppercase;
}



/* utilsateur & admin design */
/* Sidebar styles */
.sidebar {
  background-color: #000;
  color: #fff;
  height: 100vh;
  position: fixed;
  width: 260px;
  left: 0;
  top: 0;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.logo-container {
  padding: 20px;
  border-bottom: 1px solid #333;
}

.logo {
  max-width: 180px;
}

.nav-menu {
  padding: 15px 0;
}

.nav-menu a {
  color: #fff;
  text-decoration: none;
  display: block;
  padding: 12px 20px;
  transition: all 0.3s;
  border-left: 4px solid transparent;
}

.nav-menu a:hover, .nav-menu a.active {
  background-color: #222;
  border-left: 4px solid #FFC107;
}

.nav-menu i {
  margin-right: 10px;
}

.disconnect-btn {
  position: absolute;
  bottom: 20px;
  width: 90%;
  margin: 0 5%;
}

/* Main content area */
.main-content {
  margin-left: 260px;
  padding: 20px 30px;
  min-height: 100vh;
  transition: all 0.3s;
}

/* Cards styling */
.content-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 25px;
  margin-bottom: 20px;
}

.card-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

/* Form elements styling */
.form-label {
  font-weight: 500;
  color: #555;
  margin-bottom: 8px;
}

.form-control, .form-select {
  border-radius: 6px;
  padding: 10px 15px;
  border: 1px solid #ddd;
  transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
  border-color: #FFC107;
  box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

textarea.form-control {
  min-height: 120px;
}

/* Table styling */
.table-container {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.table {
  margin-bottom: 0;
}

.table-dark {
  background-color: #212529;
}

.table th {
  font-weight: 600;
  padding: 15px;
  vertical-align: middle;
}

.table td {
  padding: 15px;
  vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0,0,0,0.02);
}

/* Buttons styling */
.btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-warning {
  background-color: #FFC107;
  border-color: #FFC107;
  color: #212529;
}

.btn-warning:hover {
  background-color: #e0a800;
  border-color: #e0a800;
}

.btn-success {
  background-color: #28a745;
  border-color: #28a745;
}

.btn-success:hover {
  background-color: #218838;
  border-color: #218838;
}

.btn-danger {
  background-color: #dc3545;
  border-color: #dc3545;
}

.btn-danger:hover {
  background-color: #c82333;
  border-color: #c82333;
}

/* Image preview */
.img-preview {
  max-width: 200px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.img-kare {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

/* Dropdown styling */
.dropdown-menu {
  padding: 8px 0;
  border: none;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border-radius: 6px;
}

.dropdown-item {
  padding: 8px 20px;
  transition: all 0.2s;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
}

.dropdown-divider {
  margin: 8px 0;
  border-top: 1px solid #eee;
}

/* Page header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

/* utilsateur & admin design */

@media (min-width: 320px) and (max-width: 440px){

  /* acceuil */
  .menu-principal .nav-link{
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    transition: all ease 0.2s;
    font-size: 14px;
}
/* Le col-8 a une hauteur définie */
.col-container {
  position: relative;
  height: 50vh; /* Détermine la hauteur globale */
  padding: 0;
}

/* Le carousel prend 100% du parent (col-8) */
.carousel {
  width: 100%;
  height: 100%;
}

/* Le carousel-inner suit la hauteur du carousel */
.carousel-inner {
  width: 100%;
  height: 100%;
}

/* Les items du carousel occupent toute la place */
.carousel-item {
  width: 100%;
  height: 100%;
}

/* Les images remplissent totalement le carousel sans se déformer */
.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contenu (slogan + recherche) centré */
.overlay-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 10px;
  width: 80%;
}

/* Formulaire de recherche */
.search-form {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.search-input {
  padding: 10px;
  border: none;
  border-radius: 5px 0 0 5px;
  width: 250px;
}

.search-btn {
  background: #ff6600;
  border: none;
  color: white;
  padding: 10px 15px;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
}

.home-headline{
  font-size: 28px;
  font-weight: bold;
  text-transform: uppercase;
}
.home-intro{
  font-size: 14px;
}

.masonry-grid {
  column-count: 2; /* Nombre de colonnes */
  column-gap: 10px; /* Espacement entre les colonnes */
}

.masonry-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 10px; /* Espacement vertical */
}

.masonry-item img {
  width: 100%;
  border-radius: 5px; /* Coins arrondis */
  display: block;
}

.autocomplete-item {
  padding: 12px 15px;
  cursor: pointer;
  color: #333;
  text-align: left;
  transition: background-color 0.2s;
  border-bottom: 1px solid #f0f0f0;
  font-size: 12px;
}

.masonry-description {
  color: white;
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.abonnement-bg-headline{
  font-size: 24px;
  font-weight: bold;
  text-transform: uppercase;
}
.abonnement-bg-intro{
  font-size: 16px;
}

.lacategorie-container p{
    font-size: 14px;
}

.souscategorie-photos-container p{
    font-size: 14px;
}

.galerie-section-headline{
  color: #DE7F06;
  font-size: 24px;
  font-weight: bold;
  text-transform: uppercase;
}

/* acceuil */



}
/* ===== Refonte 2026 : grilles, bandeaux, verre, fiche photo, application ===== */
:root {
  --afk-orange: #DE7F06;
  --afk-noir: #0b0b0b;
  --afk-entete: 84px;
  --afk-verre-sombre: rgba(12, 12, 12, .52);
  --afk-verre-clair: rgba(255, 255, 255, .72);
  --afk-verre-bord: rgba(255, 255, 255, .22);
}

.menu-principal.sticky-top {
  background: rgba(0, 0, 0, .82);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.offcanvas.menu-principal { background: rgba(0, 0, 0, .94); }

.afk-verre-clair {
  background: var(--afk-verre-clair);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 18px;
}

/* Accueil : le carousel occupe toute la hauteur de sa colonne */
.afk-hero-col { display: flex; }
.afk-hero-col .col-container { flex: 1; height: auto; min-height: 75vh; overflow: hidden; }
.afk-hero-col .carousel { position: absolute; inset: 0; height: 100%; }
.afk-hero-col .carousel-img { height: 100%; object-fit: cover; }
.afk-hero-col .col-container::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.35) 100%);
}
.overlay-content {
  background: var(--afk-verre-sombre);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--afk-verre-bord);
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
  padding: 28px;
}
.overlay-content h2 { text-shadow: 0 2px 12px rgba(0,0,0,.4); box-shadow: none !important; }
@media (max-width: 991.98px) {
  .afk-hero-col .col-container { min-height: 62svh; }
  .overlay-content { width: 88%; padding: 20px; }
}

/* Grilles de cartes */
.souscategorie-container { padding: 2rem 1.25rem !important; }
.afk-grille-cartes { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 576px) { .afk-grille-cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) {
  .afk-grille-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .afk-grille-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) { .afk-grille-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 768px) { .souscategorie-container { padding: 2.5rem 3rem !important; } }

.afk-grille-cartes .souscategorie-card {
  height: auto; aspect-ratio: 4 / 3; border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .14);
}
.afk-grille-cartes .filtre {
  justify-content: flex-end; padding: 18px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.65) 100%);
}
.afk-grille-cartes .souscategorie-card:hover .filtre {
  background: linear-gradient(180deg, rgba(0,0,0,.05) 25%, rgba(0,0,0,.72) 100%);
}
.afk-grille-cartes .filtre .btn-afk-light {
  background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
  padding: .55rem 1.3rem;
  font-weight: 600; letter-spacing: .04em;
}
.afk-grille-cartes .souscategorie-card:hover .btn-afk-light { background: var(--afk-orange); border-color: var(--afk-orange); }

.afk-section-titre { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.afk-section-titre h2 { margin: 0; font-size: 1.6rem; text-transform: uppercase; }
.afk-section-titre a { font-weight: 600; white-space: nowrap; }

/* Bandeau des catégories, sous-catégories et branches */
.afk-bandeau {
  position: relative; min-height: 46vh; display: flex;
  background-color: #1a1a1a; background-size: cover; background-position: center; background-repeat: no-repeat;
}
.afk-bandeau-voile {
  flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 16px;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.55) 100%);
}
.afk-bandeau-carte {
  max-width: 760px; text-align: center; color: #fff; padding: 26px 30px;
  background: var(--afk-verre-sombre);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--afk-verre-bord); border-radius: 22px;
}
.afk-bandeau-carte h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin: 0; letter-spacing: .02em; }
.afk-bandeau-carte p { margin: 12px 0 0; font-size: 1rem; line-height: 1.55; opacity: .92; }
@media (max-width: 575.98px) {
  .afk-bandeau { min-height: 34svh; }
  .afk-bandeau-carte { padding: 18px; }
  .afk-bandeau-carte p { font-size: .9rem; }
}

/* Fiche photo : tout tient dans le premier écran */
.photo-viewer-container { min-height: calc(100svh - var(--afk-entete)); display: flex; align-items: center; background: #111; }
.photo-background { height: 100%; }
.afk-photo-scene { position: relative; z-index: 1; width: 100%; padding: 24px 16px; }
.afk-photo-grille { max-width: 1500px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.afk-photo-scene .photo-container { padding: 0; }
.afk-photo-scene .photo-wrapper { position: relative; display: inline-flex; max-height: none; margin: 0; }
.afk-photo-scene .main-image {
  display: block; width: auto; height: auto; max-width: 100%;
  max-height: calc(100svh - var(--afk-entete) - 48px);
  object-fit: contain; border-radius: 10px;
}
.afk-photo-scene .image-details {
  background: var(--afk-verre-clair);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 20px; padding: 22px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
}
@media (min-width: 992px) {
  .afk-photo-grille { display: grid; grid-template-columns: minmax(0, 1fr) 380px; align-items: center; gap: 28px; }
  .afk-photo-scene .image-details { max-height: calc(100svh - var(--afk-entete) - 48px); overflow-y: auto; }
}
@media (max-width: 991.98px) {
  .photo-viewer-container { min-height: 0; display: block; }
  .afk-photo-scene .main-image { max-height: 64svh; }
}

/* Masonry : la place de chaque image est réservée, plus de saut au chargement */
.masonry-item img[width][height] { height: auto; background: #e7e3dd; }
.masonry-grid { column-gap: 12px; }
.masonry-item { margin-bottom: 12px; }
.masonry-link { border-radius: 10px; }
.masonry-item img { border-radius: 10px; }
@media (max-width: 991.98px) { .masonry-grid { column-count: 3; } }
@media (max-width: 767.98px) { .masonry-grid { column-count: 2; } }

/* Barre de filtres sur une ligne */
.afk-entete-photos { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 8px 0 18px; }
.afk-entete-recherche { flex: 1 1 360px; max-width: 560px; }
.afk-entete-recherche .search-form { margin-top: 0; }
.afk-filtres {
  display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
  padding: 8px; margin-bottom: 18px;
  background: var(--afk-verre-clair);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(0, 0, 0, .06); border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
  position: sticky; top: calc(var(--afk-entete) + 8px); z-index: 5;
}
.afk-filtres::-webkit-scrollbar { display: none; }
.afk-filtres-ic { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--afk-noir); color: #fff; }
.afk-filtre {
  flex: 0 0 auto; appearance: none; -webkit-appearance: none;
  border: 1px solid rgba(0, 0, 0, .1); border-radius: 999px; background-color: #fff;
  padding: 8px 34px 8px 14px; font-size: .9rem; font-weight: 500; color: #111; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%23DE7F06' d='M8 11 3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.afk-filtre:focus { outline: none; border-color: var(--afk-orange); box-shadow: 0 0 0 3px rgba(222, 127, 6, .2); }
.afk-filtre-reset {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .1);
  background: #fff; color: #111; display: grid; place-items: center; cursor: pointer;
}
.afk-filtre-reset:hover { background: var(--afk-orange); color: #fff; border-color: var(--afk-orange); }
.afk-filtres-compte { flex: 0 0 auto; margin-left: auto; padding: 0 10px; font-size: .85rem; color: #555; white-space: nowrap; }

/* Application Android */
.afk-natif-entete {
  position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: rgba(0, 0, 0, .86);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
}
.afk-natif-logo img { height: 30px; width: auto; display: block; }
.afk-natif-panier { position: relative; color: #fff; font-size: 1.35rem; line-height: 1; padding: 6px; }
.afk-natif-pastille {
  position: absolute; top: -2px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--afk-orange); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center;
}
body.is-native { -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
body.is-native .afk-hero-col .col-container { min-height: 56svh; }

html, body { overflow-x: hidden; overflow-x: clip; }
.afk-photo-scene .photo-container { display: flex; justify-content: center; min-width: 0; }
.afk-photo-scene .photo-wrapper { max-width: 100%; }
.afk-photo-scene .main-image { min-width: 0; }
@media (max-width: 991.98px) {
  .menu-principal > .row { flex-wrap: nowrap; }
  .menu-principal > .row > [class*="col-"] { width: auto; flex: 0 0 auto; }
  .menu-principal > .row > .col-5 { flex: 1 1 auto; min-width: 0; }
  .menu-principal .logo { width: auto; max-width: 100%; max-height: 40px; margin: 0; }
  .menucart { display: flex; align-items: center; gap: 8px; }
  .menucart > .nav-link { white-space: nowrap; font-size: .85rem; }
  .menucart .dropdown .btn { padding: 6px 10px; font-size: .8rem; border-radius: 999px; }
  .btn-menu-afk { padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
}
@media (max-width: 420px) {
  .menucart > .nav-link { font-size: 0; }
  .menucart > .nav-link .bi-cart { font-size: 1.2rem; }
  .menucart > .nav-link #cart-count { font-size: .8rem; }
}
