body {
  margin: 0;
  font-family: 'Akrobat', sans-serif;
  background-color: #f7f7f7;
  color: #3c3c3b;
}

a {
	 text-decoration: none;
	 color :inherit;
}	 
/* Variables par thème */
.theme-amb {
  --color-main: #EC6608;
}
.theme-pvc {
  --color-main: #FF9A00;
}

.theme-alu {
  --color-main: #87D300;
}

.theme-coulissant {
  --color-main: #001489;
}

.theme-porte {
  --color-main: #C30C3E;
}

.theme-portail {
  --color-main: #702F8A;
}

.theme-volet {
  --color-main: #F8B414;
}

.topbar {
   background-color: var(--color-main);
/*   background-color: #87D300; */
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  height: 40px;
  max-width: 100%;
}

.topbar h1 {
  font-size: 1.5rem;
  margin: 0;
}

/* Gamme bar */
.gamme-bar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-main);
  padding: 0.6rem 1rem;
  text-align: center;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.gamme {
  font-weight: 600;
  color: #3c3c3b;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gamme:hover {
  background-color: #f1f1f1;
}

.gamme.active {
  background-color: var(--color-main);
  color: white;
}

/**************************************
SECTION TITLE / SEPARATEUR DE TUILES
**************************************/

.section-title {
  grid-column: 1 / -1;

  margin: 0.8rem 0.4rem 0.4rem;
  padding-bottom: 0.3rem;

  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.3px;

  color:  var(--color-main);

  border-bottom:  0.5px solid var(--color-main);
}

/* Ligne décorative après le titre */
.section-title::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(
    to right,
    rgba(236, 102, 8, 0.4),
    transparent
  );
}

/* Version mobile */
@media (max-width: 768px) {
  .section-title {
    /* font-size: 1.2rem;
    margin-top: 1.5rem; */
  }
}


/* BARRE BOUTON **********/

.button-group {
  display: flex;
  gap: 0.8rem;
  flex-shrink: 0;
}

.nav-btn,
.nav-btn:link,
.nav-btn:visited {
  background-color: transparent;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border: 1px solid white;
  border-radius: 6px;
  transition: background 0.2s ease;
  font-family: 'Akrobat', sans-serif;
  cursor: pointer;
}

.nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}



.logout-btn {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border: 1px solid white;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.logout-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/******** BARRE BOUTON **********/

.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1000px;
  margin: auto;
}

.tiles-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
  /* grid-auto-rows: 1fr; */
  align-items: start;


}

.tile-icon {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
  text-align: center;
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tile-icon:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.tile-icon a {
  display: block;
  color: inherit;       /* Pour que le texte ait la même couleur que le reste */
  text-decoration: none; /* Pour enlever le soulignement */
}
.tile-icon a:hover {
  text-decoration: none; /* Pour éviter le soulignement au hover */
}


.tile-img {
  width: 150px;
  height: 210px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

img[src$=".webp"]{
    border:1px solid #ddd;
    border-radius:8px;
    padding:2px;
    background:#fff;
    box-sizing:border-box;
}

.tile-caption {
  font-weight: 600;
  color: #3c3c3b;
}


.tile {
  background-color: white;
  border-radius: 12px;
  padding: 1.5rem 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  /* Ajouts pour homogénéiser la hauteur */
 /*  height: 60%;
  display: flex;
  flex-direction: column;
  justify-content: space-between; */
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}



.tile a {
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease;
}


.tile-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.tile-link h3 {
  text-decoration: none;
}


.tile-toggle {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color:  var(--color-main);
  cursor: pointer;
  font-weight: 600;
}

.tile-links {
  margin-top: 0.5rem;
  border-top: 1px solid #ddd;
  padding-top: 0.5rem;
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  text-align: left;
}

.tile-links a {
  color: #3c3c3b;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.tile-links a:hover {
  background-color: #f1f1f1;
}

.tile-links.show {
  display: flex;
}



.icon-circle {
  background-color: #eeeeee;
  border-radius: 50%;
  width: 72px;
  height: 72px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle img {
  width: 40px;
  height: 40px;
}

.tile-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1rem;
}

.porte-entree { color: #C30C3E; }
.fenetre-pvc { color: #FF9A00; }
.fenetre-alu { color: #87D300; }
.elec { color: #001489; }
.coulissant { color: #001489; }
.portail { color: #702F8A; }

@media (max-width: 480px) {
  .topbar {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .dashboard {
    padding: 1rem;
    gap: 1.5rem;
  }

  .tile {
    padding: 1rem;
  }

  .tile-title {
    font-size: 1rem;
  }

  .icon-circle {
    width: 60px;
    height: 60px;
  }

  .icon-circle img {
    width: 32px;
    height: 32px;
  }

  .logo {
    height: 32px;
  }

  .topbar h1 {
    font-size: 1.2rem;
  }
}



/*****icone color **********/
/***** Couleurs des catégories produits (charte graphique AMB) *****
Fenêtre PVC      : #FF9A00  (Pantone 1375 C - orange clair)
Fenêtre ALU      : #87D300  (Pantone 375 C - vert clair)
Coulissant       : #001489  (Pantone Reflex Blue C - bleu foncé)
Porte d'entrée   : #C30C3E  (Pantone 193 C - Mars Red)
Portail          : #702F8A  (Pantone 526 C - Pourpre)
*************************************************************/




.fenetre-pvc .icon-svg {
  color: #FF9A00; /* Pantone 1375 C - orange clair */
}

.fenetre-alu .icon-svg {
  color: #87D300; /* Pantone 375 C - vert clair */
}

.coulissant .icon-svg {
  color: #001489; /* Pantone Reflex Blue C - bleu foncé */
}

.porte-entree .icon-svg {
  color:  #C30C3E; /* Pantone 193 C - Mars Red */
}

.portail .icon-svg {
  color: #702F8A; /* Pantone 526 C - Pourpre */
}

/*****	Banniere DOwnload  ********/
.app-download-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
	margin-top:	10px;
}

.app-download-banner img {
    height: 35px;
    width: auto;
    display: block;
    transition: transform 0.2s ease;
}

.app-download-banner img:hover {
    transform: scale(1.05);
}

/* TUILES TABLEAU DES PLANS*/
/* grille comme accueil */
.tiles-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  max-width: 1400px;
  margin: auto;
}

/* tuile homogène */
.tile-accordion {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.07);
  cursor: pointer;
  overflow: hidden;
  transition: 0.2s;
  display: flex;
  flex-direction: column;
}

.tile-accordion:hover {
  transform: translateY(-4px);
}

/* HEADER = zone cliquable */
.tile-header {
  padding: 1.5rem 1rem;
  text-align: center;
}

/* CONTENU caché */
.tile-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1rem;
}

/* état ouvert */
.tile-accordion.active .tile-content {
  	  display: block;
  max-height: none;
  padding-bottom: 1rem;
}

/* pose */
.pose-block {
  margin-top: 1rem;
  text-align: center;
}

.pose-title {
  font-weight: 600;
  color: #003366;
  margin-bottom: 0.4rem;
  text-align: center;
}

.pose-title a{
  font-weight: 600;
  color: #003366;
  margin-bottom: 0.4rem;
  text-align: center;
}

.pose-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.pose-links a {
  background: #f1f1f1;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.85rem;
}

.pose-links a:hover {
  background: #ec6608;
  color: white;
}

/*======================================================
=            LISTES DOCUMENTAIRES ESPACE PRO           =
======================================================*/

.doc-list{
    grid-column: 1 / -1;
    width:100%;
    margin:0 0 35px;
    padding:0;
    list-style:none;
}

.doc-list li{
    position:relative;
    padding-left:34px;
    margin:10px 0;
    line-height:1.6;
}
.doc-list li::before{
    content:"";
    position:absolute;
    left:0;
    top:2px;
    width:22px;
    height:22px;
    background:url("../images/icons/file-text.svg") no-repeat center;
    background-size:contain;
}

/* .doc-list li::before{
    content:"PDF";
    position:absolute;
    left:0;
    top:1px;
    width:28px;
    height:28px;
    border-radius:8px;
    background:#d32f2f;
    color:#fff;
    font-size:10px;
    font-weight:bold;
    display:flex;
    align-items:center;
    justify-content:center;
    letter-spacing:.5px;
} */
/* .doc-list li::before{
    content:"📄";
    position:absolute;
    left:0;
    top:0px;
    font-size:20px;
} */

.doc-list a{
    color:#555;
    text-decoration:none;
    transition:color .2s;
}

.doc-list a:hover{
    color:var(--theme-color);
}

.doc-list strong{
    color:var(--theme-color);
}



/*======================================================
=            LISTES DOC PREVIEW           =
======================================================*/


.doc-preview-box{
  position:fixed;
  display:none;
  z-index:9999;
  background:#fff;
  padding:8px;
  border-radius:10px;
  box-shadow:0 8px 24px rgba(0,0,0,.25);
  pointer-events:none;
}

.doc-preview-box img{
  width:150px;
  height:210px;
  object-fit:cover;
  display:block;
  border-radius:6px;
}

/*======================================================
=    LISTES DOCUMENTAIRES DANS LES TUILES             =
======================================================*/

.tile-content .doc-list{
    width:100%;
    margin:8px 0 18px;
    padding-left:0;
    text-align:left;
}

.tile-content .doc-list li{
    text-align:left;
}

.tile-content .doc-list a{
    display:flex;
    justify-content:space-between;
    align-items:center;
    width:100%;
    text-align:left;
}

.tile-content .pose-title{
    text-align:left;
    margin-top:12px;
}


.pose-title.porte-entree { color: #C30C3E; }
.pose-title.fenetre-pvc { color: #FF9A00; }
.pose-title.fenetre-alu { color: #87D300; }
.pose-title.elec { color: #001489; }
.pose-title.coulissant { color: #001489; }
.pose-title.portail { color: #702F8A; }



.pdf-version.fenetre-pvc  { color: #FF9A00; }
.pdf-version.fenetre-alu { color: #87D300;}
.pdf-version.coulissant { color: #001489; }
.pdf-version.portail { color: #702F8A;}
.pdf-version.porte-entree { color: #C30C3E;}


/* --- VERSION PDF  --- */


.pdf-version {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
/*   border-radius: 999px; */
  background: #f2f2f2;
  color: #ec6608;
  font-size: 0.78rem;
  font-weight: 600;
}

.pdf-preview {
  position: fixed;
  z-index: 9999;
  display: none;
  width: 180px;
  padding: 8px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,.22);
  pointer-events: none;
}

.pdf-preview img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.pdf-preview-title {
  margin-top: 6px;
  font-size: .85rem;
  font-weight: 600;
  color: #3c3c3b;
  text-align: center;
}

.pose-links a {
  display: inline-block;
  padding: 4px 6px;
  border-radius: 6px;
}

.pose-links a:hover {
  background: #f7f7f7;
  color: #ec6608;
}

@media (max-width: 768px) {
  .pdf-preview {
    display: none !important;
  }
}