/* //////////
/ Reset CSS / 
///////////*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

html {
  font-size: 24px; /* 1 rem = 16px */
}

/* //////
/ Texts /
///////*/

/* Headings */
h1, h2, h3, h4, h5, h6 {
  margin: 1.5rem 0 1rem;
  font-weight: bold;
  line-height: 1.2;
  font-family: 'Franklin Gothic Condensed', sans-serif;
  text-align: center;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  font-family: 'Pier Sans Light', sans-serif;
  text-align: justify;
  text-justify: inter-word;
  margin: 1rem 1rem;
  line-height: 1.6;
}

/* Links */
a {
  color: #0645ad;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Lists */
ul, ol {
  margin: 1rem 0 1rem 2rem;
}

li {
  margin-bottom: 0.5rem;
}

.mail {
  padding: 2px !important;
}

/* //////
/ Fonts /
///////*/

@font-face {
  font-family: 'Franklin Gothic Condensed';
  src: url('/view/fonts/FranklinGothicCondensed.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Pier Sans Light';
  src: url('/view/fonts/PierSans-Light.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

/* /////
/ Base / 
//////*/

html {
  min-height: 100vh;
  max-height: none;
}

body {
  min-height: 100vh;
  max-height: none;
  margin-top: 170px;
  background-color: #F4EEDE;
  position: relative;
}

#contenu {
  width: 90%;
  margin-left: 5%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding-bottom: 200px;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #F4EEDE;
  color: #222;
  font-family: 'Franklin Gothic Condensed', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1000;
  height: auto;
}

#connected-nav {
  width: 100%;
  background-color: #F4EEDE;
  display: flex;
  justify-content: flex-end;
  padding: 10px;
}

#connexion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-right: 15px;
}

#connexion a {
	color: #222;
	font-weight: bold;
	background-color: #ffffff;
	padding: 8px 12px;
	margin: 5px;
	text-decoration: none;
	transition: background-color 0.3s;
	display: inline-block;
}

#connexion a:hover {
  color: #ffffff;
	background-color: #cc0033;
}

#main-nav {
  position: relative;
  background-color: #d5d0c0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  box-sizing: border-box;
  display: flex;
}

#main-nav img {
  height: 80px;
  width: auto;
  object-fit: contain;
  display: block;
}

nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 10px;
}

nav a {
  color: white;
  background-color: #222;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  padding: 10px 15px;
  transition: all 0.1s ease-in-out;
}

nav a:hover {
  background-color: #cc0033;
  transform: scale(1.2) rotateZ(3deg);
}

.menu-toggle {
  position: absolute;
  right: 20px;
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle div {
  width: 60px;
  height: 7px;
  background-color: #222;
  margin: 7px 0;
}

@media screen and (max-width: 1024px) {
  #main-nav {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
  }

  nav {
    flex-direction: column;
    width: 100%;
    display: none;
    padding: 10px 0;
  }

  nav a {
    width: 100%;
    text-align: center;
    padding: 15px;
  }

  .menu-toggle {
    display: flex;
  }

  nav.active {
    display: flex;
  }

  #connected-nav {
    justify-content: center;
    text-align: center;
  }

  #connexion {
    flex-direction: column;
    align-items: center;
  }

  body {
    margin-top: 250px;
    background-color: #F4EEDE;
  }

  #contenu {
    width: 100%;
    margin-left: 0;
  }

  .card {
    width: 90%;
  }
}

/* ////////
/ Accueil / 
/////////*/

.tilted-box-left,
.tilted-box-right {
  box-sizing: border-box;
}

.tilted-boxes-container {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch; 
  justify-content: space-between;
}

.tilted-box-left {
  background: #c62828;
  color: white;
  padding: 1rem;
  padding-right: 5%;
  clip-path: polygon(0 0, 100% 0, calc(100% - 25px) 100%, 0% 100%);
}

.tilted-box-right {
  overflow: hidden;
  position: relative;
}

.tilted-box-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  clip-path: polygon(25px 0, 100% 0, 100% 100%, 0 100%);
}
      
.tilted-box-left button {
  background-color: #222;
  color: white;
  border: none;
  font-family: 'Franklin Gothic Condensed', sans-serif;
  transition: all 0.2s ease-in-out;
  border-radius: 0%;
  width: 200px;
  float: right;
}

.tilted-box-left button:hover {
  background-color: #ffffff;
  color: #c62828;
  transform: scale(1.05);
}

@media (max-width: 1024px) {
  .tilted-boxes-container {
    flex-direction: column;
  }

  .tilted-box-left,
  .tilted-box-right {
    width: 100% !important;
    clip-path: none;
  }

  .tilted-box-right img {
    clip-path: none;
    height: auto;
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    
  }
}

/* ////////
/ Concept / 
/////////*/

.concept-info
{
  width: 90%;
  height: auto;
  background: #c62828;
  clip-path: polygon(2% 1%, 99% 0, 100% 100%, 1% 98%);
  padding: 50px;
  margin: 50px;
  color: white;
}

@media (max-width: 1024px) {
  .concept-info
  {
    width: 100%;
    clip-path: polygon(0% 0%, 100% 0, 100% 100%, 0% 100%);
  }
}

/*///////
/ Infos / 
///////*/

.iframe-container {
  background: #c62828;
  width: 50%;
  height: auto;
  clip-path: polygon(25px 0, 100% 0, 100% 100%, 0 100%);
  margin: 0 auto; /* Center the element */
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px;
  flex-direction: column;
}

.iframe-container iframe {
  width: 90%;
  clip-path: polygon(25px 0, 100% 0, 100% 100%, 0 100%);
  padding-top: 20px;
}

.additional-info-container {
  width: 50%;
  display: flex;
  justify-content: space-around;
  margin-top: 25px;
}

.info-container {
  width: 30%;
  height: auto;
  background: #c62828;

  display: flex;
  flex-direction: column;
  color: white;

  clip-path: polygon(2% 1%, 95% 0, 100% 100%, 1% 96%);
}

.info-container img {
  margin: 20px;
  height: 100px;
  width: auto;
}

.iframe-container p {
  width: 90%;
}

@media (max-width: 1024px) {
  .iframe-container, .iframe-container iframe
  {
    padding: 0px 0 20px;
    width: 100%;
    clip-path: polygon(0% 0%, 100% 0, 100% 100%, 0% 100%);
  }

  .additional-info-container {
    width: 100%;
    flex-wrap: wrap;
  }  

  .info-container {
    width: 300px; 
  }
}

/*//////////
/ MENTIONS /
//////////*/

.mention {
  background-color: #c62828;
  padding: 50px;
  margin-top: 100px;
  color: white;

  width: 80%;
  font-family: 'Pier Sans Light', sans-serif;

  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.mention ul {
  width: 80%;
}

.mention ul a {
  color: white !important;
  text-decoration: underline;
}

strong {
  font-weight: bold;
  font-weight: 900;
}

@media (max-width: 1024px) {
  .mention {
    width: 100%;
  }
}

/*//////
/ Aide / 
//////*/

table {
  width: 100%;
  clip-path: polygon(1% 2%, 99% 1%, 100% 98%, 0% 97%);
  color: white;
}

th {
  font-family: 'Franklin Gothic Condensed', sans-serif;
  background-color: #951c1c;
}

td {
  font-family: 'Pier Sans Light', sans-serif;
}

table a {
	color: #222;
	text-decoration: none;
	font-weight: bold;
	text-transform: uppercase;
	padding: 10px 15px;
  background-color: #222;
  color: white;
	transition: all 0.1s ease-in-out;	
}

table a:hover {
	background-color: #ffffff;
  color: #222; 
  transform: scale(1.2) rotateZ(3deg);
}

.red {
  background-color: #c62828;
}

.lighter-red {
  background-color: #f24646;
}

th, td {
  padding: 1.5rem;
  text-align: center;
}

@media (max-width: 1024px) {
  table {
    overflow-x: auto;
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* Helps columns respect width and adapt */
    clip-path: polygon(0% 0%, 100% 0, 100% 100%, 0% 100%);
  }

  th, td {
    font-size: 1rem;
    padding: 1rem;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}

/*///////////
/ Connexion / 
///////////*/

.connection-form, .create-post-form {
  background-color: #c62828;
  padding: 2rem;
  color: white !important;
  font-family: 'Franklin Gothic Condensed', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}

input[type="password"] {
  background-color: #222 !important;
  color: white !important;
  border: 1px solid #555;
  caret-color: white;
}

.connection-form {
  clip-path: polygon(2% 1%, 95% 0, 100% 100%, 1% 96%);
}

.connection-form input[type="text"], 
.create-post-form input[type="text"],
.connection-form input[type="submit"], 
.create-post-form input[type="submit"] {
  width: 100%;
}

.mention a
{
  padding: 0.5rem;
}

.connection-form input,
.connection-form textarea,
.connection-form button,
.connection-form input[type="password"],
.create-post-form input,
.create-post-form textarea,
.create-post-form button,
.create-post-form input[type="password"],
.mention a
{
  background-color: #222;
  color: white !important;
  transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

.connection-form input:hover, 
.connection-form button:hover, 
.connection-form input[type="password"]:hover,
.create-post-form input:hover,
.create-post-form button:hover,
.create-post-form input[type="password"]:hover,
.mention a:hover  {
  color: #c62828;
  transform: scale(1.05);
}

input, textarea, select, button {
  font: inherit;
  padding: 0.8rem;
  width: 100%;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  border: none;
  outline: none;
  font-family: 'Pier Sans Light', sans-serif;
}

@media (max-width: 1024px) {
  .connection-form {
    width: 100%;
    clip-path: polygon(0% 0%, 100% 0, 100% 100%, 0% 100%);
  }

  .connection-form  tr {
    display: flex;
    flex-direction: column;
    width: 90%;
    margin-left: 5%;
  }

  .connection-form  tr * {
    padding: 10px 0px !important;
  }

  .connection-form, .create-post-form {
    padding: 2rem;
  }
}

/*//////////////
/ Commentaires / 
//////////////*/

.comment-panels {
  width: 100%;
  color: white;
  display: flex;
  justify-content: space-around;
  gap: 50px;
  flex-direction: column;
}

.comment-panel {
  width: 100%;
  text-align: center;
}

.comment-panel p {
  text-align: center;
  width: 90%;
  margin-left: 5%;
}

.comment-panel-red {
  background-color: #c62828;

  clip-path: polygon(2% 1%, 95% 0, 100% 100%, 1% 96%);
}

.comment-panel-gray {
  background-color: #222;
  clip-path: polygon(2% 1%, 100% 0, 98% 96%, 3% 98%);
}

.panel-actions {
  display: flex;
  width: 60%;
  margin-left: 20%;
  justify-content: space-around;
  gap: 20px;
}

.btn-accept {
  background-color: lime;
}

.btn-delete {
  background-color: #cc0055;
}

.disable {
  background-color: #bbbbbb !important;
}

.border {
  border: 10px solid #222;
  transition: all 0.3s ease, transform 0.3s ease;
}

.border:hover {
  border: 10px solid white;
  transform: scale(1.05);
}

.add-button {
  background-color: #222;
  color: white;
  border: none;
  font-family: 'Franklin Gothic Condensed', sans-serif;
  transition: all 0.2s ease-in-out;
  border-radius: 0%;
  width: 200px;
  float: right;
}

.add-button:hover {
  background-color: #ffffff;
  color: #c62828;
  transform: scale(1.05);
}

@media (max-width: 1024px) {
  .panel-actions {
    flex-direction: column;
  }
}

/*///////
/ Autre / 
///////*/

hr {
  margin: 2rem 0;
  border: none;
  border-top: 1px solid #ccc;
}

.info-message {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  color: #222;
  text-align: center;
  padding: 1rem;
  z-index: 1000;
}

.card-container {
  display: flex;
  flex-wrap: wrap; /* Allow cards to wrap to the next line */
  justify-content: space-around;
  margin-top: 20px;
  width: 100%;
}

.card {
  background: #c62828;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 550px;
  text-align: center;
  margin-bottom: 20px; /* Add some space between rows */
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.new-message-button {
  font-family: 'Franklin Gothic Condensed', sans-serif;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 100px;
  height: 100px;
  background-color: rgb(126, 126, 255);
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 25px 25px 0 25px;
  border-bottom-right-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transform-origin: bottom right;
  animation: pulse 3s infinite ease-in-out;
  transition: transform 0.3s ease-in-out;
  z-index: 2000;
}

.profil-text {
  font-family: 'Franklin Gothic Condensed', sans-serif;
}

.new-message-button:hover {
  transform: scale(1.2);
  animation: none;
}

.title-card {
  background-color: #222;
  color: white;
  padding: 1rem 2rem;
  margin: 100px;
}

.center-element {
  width: 80%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

/*////////
/ FOOTER /
////////*/

footer {
  position: absolute;
  width: 100%;
  background-color: #c62828;
  bottom: -600px;
  height: 600px;
  padding-bottom: 20px;
} 

footer * {
  color: white !important;
}

footer h4 {

  text-align: left !important;
}

.footer-info-container {
  width: 100%;
  display: flex;
  justify-content: space-around;
}

.footer-info {
  width: 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.app-icon-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-icon {
  width: 150px;
  height: 150px;
  margin: 10px;
  background-color: black;
  border-radius: 50%;

  display: flex;
  justify-content: center;
  align-items: center;
}

.app-icon img {
  width: 70%;
  height: auto;
  object-fit: cover;
}