* { box-sizing: border-box; } body { font-family: sans-serif; margin: 0; } a:link, a:visited { color: blue; text-decoration: underline; } a:link:active, a:visited:active { color: darkblue; } header .bandeau { display: block; background-color: #333; color: white; padding: 10px; } header .bandeau form { display: inline; } header .bandeau button { border: none; background-color: gold; color: black; padding: 5px 10px; margin: 0 5px; border-radius: 3px; } header .bandeau button:hover { background-color: goldenrod; } header .bandeau button:active { background-color: darkgoldenrod; } .navbar { background-color: #eee; display: flex; flex-direction: column; } .navbar .block { display: flex; flex-direction: column; text-align: center; } @media screen and (min-width: 400px) { .navbar { padding: 0 10px; flex-direction: row; justify-content: space-between; } .navbar .block { flex-direction: row; gap: 0 10px; } } .navbar a:link, .navbar a:visited { color: black; text-decoration: none; } .navbar .link { background: none; border: none; font: inherit; padding: 10px; cursor: pointer; } .navbar .link:hover { background-color: #ddd; } main { margin: 0 auto; width: clamp(350px, 60%, 1200px); background-color: white; padding: 10px; } h1 { text-align: center; } form.login table { margin: auto; } form.login input[type=text], form.login input[type=password] { padding: 5px; border: none; background-color: #eee; } form.login button { border: none; padding: 10px; background-color: dodgerblue; border-radius: 5px; color: white; display: block; margin: 15px auto; } form.login button:hover { background-color: #0483ff; } form.login button:active { background-color: #0077ea; } nav.semaine { width: 100%; display: flex; background-color: #ddd; justify-content: center; } nav.semaine .select, nav.semaine .label { padding: 5px; text-align: center; } nav.semaine .select { background-color: dodgerblue; color: white; width: 1em; } nav.semaine .select:hover { background-color: #0077ea; } nav.semaine .label:hover { background-color: #ccc; } p.programme { border-left: 5px solid gold; padding: 10px; background-color: #ffffdd; } footer { text-align: center; margin: 20px 0; } .week { background-color: dodgerblue; color: white; padding: 5px 10px; border-radius: 5px; transition: background-color 200ms; } .week a, .week a:hover, .week a:active { color: white; text-decoration: none; } .week:hover { background-color: #0077ea; } .week.empty { background-color: gray; } .colle-wrapper { display: grid; gap: 15px; } @media screen and (min-width: 400px) { .colle-wrapper { grid-template-columns: repeat(3, minmax(100px, 1fr)); } } .colle { padding: 15px; border-radius: 8px; box-shadow: 0 3px 6px rgba(0,0,0,0.04),0 3px 6px rgba(0,0,0,0.0575); transition: transform 200ms, background-color 200ms; } .colle:hover { background-color: #fafafa; transform: rotate(1deg); } .colle span { text-align: center; } .colle ul { padding: 0; margin: 0; } .colle li { list-style-type: none; } .colle form { display: inline; } .colle button { padding: 5px; border: none; background-color: #c0392b; color: white; border-radius: 5px; } .colle button:hover { background-color: #a93226; } .colle button:active { background-color: #922b21; }