/* ==========================================================================
   DPDJ - feuille de style commune à TOUT le site (accueil, ludothèque, bureau).
   Remplace l'ancien app.css : les règles d'origine sont conservées en fin de fichier.

   Les couleurs reprennent le thème Angular Material déclaré dans app*.js :
     primaryPalette('green', {default: 400, hue-1: 100, hue-2: 300, hue-3: A100})
     accentPalette('blue', {default: 200})   warnPalette('orange')
   Pour changer l'allure du site, il suffit de modifier les variables ci-dessous.
   ========================================================================== */

:root {
    /* Palette du thème */
    --dpdj-primary: #66BB6A;        /* vert 400 : boutons principaux (md-primary) */
    --dpdj-primary-hue1: #C8E6C9;   /* vert 100 */
    --dpdj-primary-hue2: #81C784;   /* vert 300 : barre d'outils (md-toolbar.md-hue-2) */
    --dpdj-primary-hue3: #B9F6CA;   /* vert A100 */
    --dpdj-accent: #90CAF9;         /* bleu 200 : boutons secondaires (md-accent) */
    --dpdj-warn: #FF9800;           /* orange */

    /* Couleurs de texte déjà utilisées dans les pages */
    --dpdj-title: lightskyblue;     /* titres de pages et de listes */
    --dpdj-subtitle: lightgreen;    /* intitulés de formulaires */
    --dpdj-error: lightsalmon;      /* messages d'erreur */
    --dpdj-heading: #3F51B5;        /* h4 */

    /* Neutres */
    --dpdj-bg: #fff;
    --dpdj-surface: #fafafa;
    --dpdj-ink: rgba(0, 0, 0, .87);
    --dpdj-ink-2: rgba(0, 0, 0, .62);
    --dpdj-line: rgba(0, 0, 0, .12);
    --dpdj-link: #2f7fb5;           /* lien lisible dans la famille du bleu ciel */

    --dpdj-shadow-1: 0 1px 3px rgba(0, 0, 0, .2), 0 1px 1px rgba(0, 0, 0, .14), 0 2px 1px -1px rgba(0, 0, 0, .12);
    --dpdj-shadow-3: 0 3px 5px -1px rgba(0, 0, 0, .2), 0 6px 10px rgba(0, 0, 0, .14), 0 1px 18px rgba(0, 0, 0, .12);
    --dpdj-font: Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    margin: 0px;
    font-family: var(--dpdj-font);
    color: var(--dpdj-ink);
    background: var(--dpdj-bg);
}

/* ==========================================================================
   Page d'accueil (<body class="home">)
   ========================================================================== */

.home { font-size: 16px; line-height: 1.5; }
.home a { color: var(--dpdj-link); }
.home img { max-width: 100%; }
.home *, .home *::before, .home *::after { box-sizing: border-box; }
.home :focus-visible { outline: 3px solid var(--dpdj-accent); outline-offset: 2px; }

.home .wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.home .skip {
    position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 12px;
    background: #fff; border-radius: 4px; box-shadow: var(--dpdj-shadow-1);
}
.home .skip:focus { left: 8px; }

/* En-tête : même composition que les autres pages (titre à gauche, logo à droite) */
.home .brand {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding-top: 16px; padding-bottom: 16px;
}
.home .brand h1 {
    margin: 0; font-size: clamp(1.75rem, 4.6vw, 2.125rem); font-weight: 400; line-height: 1.2;
    color: var(--dpdj-title);
}
.home .brand p { margin: 6px 0 0; color: var(--dpdj-ink-2); }
.home .brand img { height: 84px; width: auto; flex: none; }

/* Barre d'outils : md-toolbar md-hue-2 */
.home .toolbar { position: sticky; top: 0; z-index: 50; background: var(--dpdj-primary-hue2); box-shadow: var(--dpdj-shadow-1); }
.home .toolbar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.home .toolbar ul::-webkit-scrollbar { display: none; }
.home .toolbar a {
    display: flex; align-items: center; min-height: 64px; padding: 0 16px; white-space: nowrap;
    color: #fff; text-decoration: none; font-weight: 500; font-size: .9375rem;
    text-transform: uppercase; letter-spacing: .03em; text-shadow: 0 1px 1px rgba(0, 0, 0, .25);
}
.home .toolbar a:hover { background: rgba(255, 255, 255, .22); }
.home .toolbar a[aria-current="true"] { box-shadow: inset 0 -3px 0 #fff; }

/* Boutons (md-button) */
.home .btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px;
    border: 0; border-radius: 2px; font: inherit; font-weight: 500; font-size: .875rem;
    text-transform: uppercase; letter-spacing: .03em; text-decoration: none; cursor: pointer;
    box-shadow: var(--dpdj-shadow-1); transition: box-shadow .2s;
}
.home .btn:hover { box-shadow: var(--dpdj-shadow-3); }
.home .btn.primary { background: var(--dpdj-primary); color: var(--dpdj-ink); }
.home .btn.accent { background: var(--dpdj-accent); color: var(--dpdj-ink); }
.home .btn.flat { background: transparent; box-shadow: none; color: var(--dpdj-link); }
.home .btn.flat:hover { background: rgba(0, 0, 0, .06); }

.home svg.i { width: 24px; height: 24px; fill: currentColor; flex: none; }

/* Sections */
.home section { padding: 40px 0 8px; scroll-margin-top: 72px; }
.home .sec-title { margin: 0 0 4px; font-size: 1.5rem; font-weight: 500; color: var(--dpdj-title); }
.home .sec-title::after { content: ""; display: block; width: 48px; height: 3px; margin-top: 6px; background: var(--dpdj-subtitle); border-radius: 2px; }
.home .sec-sub { margin: 10px 0 20px; color: var(--dpdj-ink-2); }
.home .sub-title { margin: 28px 0 12px; font-size: 1.0625rem; font-weight: 500; color: var(--dpdj-ink); }

/* Cartes (md-card) */
.home .card { background: #fff; border-radius: 2px; box-shadow: var(--dpdj-shadow-1); padding: 20px; }
.home .card h3 { margin: 0 0 8px; font-size: 1.125rem; font-weight: 500; }
.home .card p { margin: 0; color: var(--dpdj-ink-2); }

/* Accueil */
.home .hero { padding-top: 24px; }
.home .hero .card { display: grid; gap: 20px; padding: 28px; border-left: 6px solid var(--dpdj-primary); }
.home .hero h2 { margin: 0; font-size: 1.5rem; font-weight: 400; }
.home .hero p { max-width: 62ch; font-size: 1.0625rem; }
.home .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Accès rapide : pastille ronde = md-fab */
.home .tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.home .tile {
    display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: #fff; border-radius: 2px;
    box-shadow: var(--dpdj-shadow-1); color: var(--dpdj-ink); text-decoration: none; transition: box-shadow .2s, transform .2s;
}
.home .tile:hover { box-shadow: var(--dpdj-shadow-3); transform: translateY(-2px); }
.home .fab {
    display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%;
    background: var(--dpdj-primary); color: #fff; box-shadow: var(--dpdj-shadow-1);
}
.home .tile:nth-child(even) .fab { background: var(--dpdj-accent); }
.home .tile h3 { margin: 0 0 2px; font-size: 1.0625rem; font-weight: 500; }
.home .tile p { margin: 0; color: var(--dpdj-ink-2); font-size: .9375rem; }
.home .tile small { display: block; margin-top: 6px; color: var(--dpdj-link); font-weight: 500; }

/* Fils d'actualités */
.home .feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.home .item { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 16px; background: #fff; border-radius: 2px; box-shadow: var(--dpdj-shadow-1); }
.home .date {
    display: flex; flex-direction: column; align-items: center; justify-content: center; align-self: start;
    min-height: 64px; padding: 8px 4px; text-align: center; line-height: 1.1;
    background: var(--dpdj-primary-hue1); border-radius: 2px;
}
.home .item:nth-child(even) .date { background: #BBDEFB; }
.home .date b { font-size: 1.75rem; font-weight: 500; }
.home .date span { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--dpdj-ink-2); }
.home .item h3 { margin: 0 0 2px; font-size: 1.0625rem; font-weight: 500; }
.home .meta { margin: 0 0 6px; color: var(--dpdj-link); font-size: .9375rem; font-weight: 500; }
.home .item p { margin: 0; color: var(--dpdj-ink-2); overflow-wrap: anywhere; }
.home .item .more { display: inline-block; margin-top: 6px; font-size: .9375rem; }
.home .item .banner { display: block; width: 100%; max-height: 150px; margin-bottom: 10px; object-fit: cover; border-radius: 2px; }
.home .status { padding: 16px; background: #fff; border-radius: 2px; box-shadow: var(--dpdj-shadow-1); color: var(--dpdj-ink-2); }
.home .status.warn { border-left: 4px solid var(--dpdj-warn); }
.home .feed-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.home .cal-embed { width: 100%; height: 480px; border: 0; background: #fff; border-radius: 2px; box-shadow: var(--dpdj-shadow-1); }

.home details { margin-top: 16px; }
.home summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--dpdj-link); font-weight: 500; }

.home .grid3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.home .chip { display: inline-block; margin-bottom: 12px; padding: 2px 12px; border-radius: 16px; font-size: .8125rem; font-weight: 500; background: var(--dpdj-primary-hue1); color: var(--dpdj-ink); }
.home .chip.blue { background: #BBDEFB; }

/* Équipe : pastille = md-avatar */
.home .team { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.home .member { text-align: center; }
.home .avatar { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 50%; background: var(--dpdj-primary-hue2); color: #fff; font-size: 1.75rem; font-weight: 500; }
.home .member:nth-child(even) .avatar { background: var(--dpdj-accent); }
.home .member h3 { margin-bottom: 0; }
.home .member p { font-size: .9375rem; }
.home .member .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 2px; margin-top: 8px; }
.home .member .links .btn { padding: 0 10px; }

/* Contact */
.home .contact { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.home .row { display: flex; gap: 16px; align-items: flex-start; }
.home .row address { font-style: normal; }
.home .row .fab { width: 40px; height: 40px; }
.home .row .fab svg { width: 20px; height: 20px; }
.home .row h3 { margin-bottom: 2px; font-size: 1rem; }

/* Pied de page */
.home footer { margin-top: 48px; padding: 24px 0 32px; background: var(--dpdj-surface); border-top: 4px solid var(--dpdj-primary); }
.home footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.home footer p { margin: 0; color: var(--dpdj-ink-2); font-size: .9375rem; }
.home .bureau { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; font-size: .9375rem; }
.home .bureau span { display: inline-flex; align-items: center; gap: 6px; color: var(--dpdj-ink-2); }
.home .bureau svg { width: 18px; height: 18px; }

@media (max-width: 600px) {
    .home .brand img { height: 56px; }
    .home .toolbar a { min-height: 56px; }
    .home .item { grid-template-columns: 56px 1fr; gap: 12px; }
    .home .date b { font-size: 1.4rem; }
    .home .hero .card { padding: 20px; }
    .home .cal-embed { height: 420px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .home .tile, .home .btn { transition: none; }
    .home .tile:hover { transform: none; }
}

/* ==========================================================================
   Règles d'origine de app.css (ludothèque et pages du bureau) - inchangées
   ========================================================================== */

@media(min-width: 992px) {
    .tab-content > .tab-pane {
      display: block;
    }
  }
h3{
    margin-top: 5px;
}
h4 {
    color:#3F51B5;
}
h5 {
	color:white;
}

.my-icon-button {
  padding: 7px !important;
  min-width: 0;
  min-height: 0;
  line-height: normal;
}

.table-striped>div:nth-child(odd){
    background-color:#eee;
 }
 .nav li {
  display:table-cell !important;
}

.missing img{
	opacity: .4;
}
/* Flashing */
.flashing:hover img {
  cursor: pointer;
	opacity: 1;
	-webkit-animation: flash 1.5s;
	animation: flash 1.5s;
}
@-webkit-keyframes flash {
	0% {
		opacity: .6;
	}
	100% {
		opacity: 1;
	}
}
@keyframes flash {
	0% {
		opacity: .6;
	}
	100% {
		opacity: 1;
	}
}
