@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

*, ::before, ::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Lato, Helvetica, sans-serif;
  background-color: #111;
} 

h1 {
    font-size: 50px;
    text-align: center;
    color: #f1f1f1;
    font-weight: 100;
    margin-bottom: 250px;
}
h1 span {
    font-weight: 600;
}

.contact-title{
  text-align: center;
  font-size: 3rem;
  color: #dadada;
  font-family: 'Share Tech Mono', monospace;
  position: relative;
  margin: 2rem auto;
  max-width: 90%;
  padding-bottom: 0.5rem;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.1);
  text-shadow: 
    1px 1px 0 #000,
    2px 2px 8px rgba(255, 0, 0, 0.2);
}

.nav-toggler {
    position: fixed;
    z-index: 20;
    top: 30px;
    right: 30px;
    height: 50px;
    width: 50px;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}
.line {
    position: absolute;
    display: block;
    width: 100%;
    height: 2px;
    background: #f1f1f1;
    transition: transform 0.3s ease-out,
    opacity 0.1s ease-out;
}

.l1 {
  transform: translateY(-10px);
}
.l2 {
  transform: translateY(0px);
}
.l3 {
  transform: translateY(10px);
}

.nav-toggler.active .l1 {
  transform: translateY(0) rotate(135deg);
}
.nav-toggler.active .l2 {
  opacity: 0;
}
.nav-toggler.active .l3 {
  transform: translateY(0) rotate(-135deg);
}

nav {
  position: fixed;
  width: 100vw;
  min-height: 100vh;
  right: 0;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: url('https://www.transparenttextures.com/patterns/brushed-alum.png'), #111;
  border-left: 3px solid rgb(10, 10, 10);
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.73, 0.11, 0.67, 0.84);
  z-index: 15;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.7);
}

nav.active {
  transform: translateX(0);
}

nav a {
  font-family: 'Share Tech Mono', monospace;
  color: #f1f1f1;
  font-size: 22px;
  text-shadow: 0 0 3px rgb(26, 24, 24);
  display: block;
  margin: 15px 0;
  text-decoration: none;
  transition: color 0.3s;
}

nav a:hover {
  color: #ff4444;
}

#radiation {
  filter: invert(90);
  height: 100px;
}


/* nav principale  */
.navigation {
  background: url('https://www.transparenttextures.com/patterns/asfalt-dark.png');
  padding: 0.5rem 0;
  border-bottom: 2px solid #333;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.navigation ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  justify-content: center;
  margin: 0;
}

.navigation li {
  color: #eee;
  background: #2c2c2c;
  display: block;
  padding: 1rem 1.5rem;
  margin: 0 0.3rem;
  position: relative;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid #444;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.navigation li a {
  color: #fafafa;
  text-decoration: none;
}


.navigation li:hover,
.navigation li:focus-within {
  background: #5c0000;
  transform: scale(1.05);
  box-shadow: 0 0 8px #ff0000aa;
  cursor: pointer;
}

.navigation li:focus-within a {
    outline: none;
}

.navigation ul li ul {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  transition: all 0.4s ease;
  left: 0;
  background-color: #1c1c1c;
  border: 1px solid #333;
  padding: 0.5rem 0;
  z-index: 10000;
}

.navigation ul li:hover > ul,
.navigation ul li:focus-within > ul,
.navigation ul li ul:hover,
.navigation ul li ul:focus {
    visibility: visible;
    opacity: 1;
    display: block
}

.navigation ul li ul li {
  clear: both;
  width: 100%;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #333;
}

.navigation ul li ul li:hover {
  background: #900;
}

.logoubrex {
  width: 180px;
  display: block;
  margin: 0 auto 1rem auto;
  filter: grayscale(80%) contrast(120%);
}

div {
text-align: center;
}

.navigation-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5em;
  margin: 0;
  padding: 0;
}

.navigation-list li a {
  color: #ccc;
  text-decoration: none;
  font-weight: bold;
}

.has-submenu {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  background-color: #222;
  padding: 0.5em;
  list-style: none;
  top: 100%;
  left: 0;
  z-index: 1000;
}

.has-submenu:hover .submenu {
  display: block;
}

.profil-popup {
  background: #111;
  color: #eee;
  border: 1px solid #444;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
}

.profil-popup .btn-favoris {
  display: inline-block;
  margin: 8px 0;
  padding: 6px 12px;
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 4px;
  text-decoration: none;
}
.profil-popup .btn-favoris:hover {
  background-color: #d32f2f;
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 0.5em;
}

.btn-logout, .btn-close {
  display: inline-block;
  margin-top: 0.5em;
  padding: 0.4em 0.8em;
  background-color: #c00;
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-logout:hover, .btn-close:hover {
  background-color: #b00;
}

/* 
---------------------------------------------
Contact Style
--------------------------------------------- 
*/

.contact.section {
  background-color: #111;
  padding: 80px 20px;
  font-family: 'Oswald', sans-serif;
  color: #ccc;
}

.form-wrapper {
  width: 100%;
  max-width: 500px;
  padding: 20px;
}

.section-heading h2 {
  font-size: 36px;
  color: #e1e1e1;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
  letter-spacing: 3px;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  border: 1px solid #333;
  padding: 40px;
  background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
  box-shadow: 0 0 20px rgba(0,0,0,0.8);
  border-radius: 12px;
}

/* ==== Formulaire (gauche) ==== */
.form-horizontal {
  flex: 1;
  min-width: 300px;
  max-width: 480px;
}

.form-label {
  color: #f1f1f1;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.form-control,
textarea {
  width: 100%;
  padding: 14px 16px;
  margin-top: 8px;
  margin-bottom: 20px;
  background-color: #222;
  color: #f1f1f1;
  border: 1px solid #444;
  border-radius: 6px;
  font-size: 16px;
  font-family: 'Lato', sans-serif;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.5);
  transition: all 0.3s ease;
}

.form-control:focus,
textarea:focus {
  border-color: #cc2525;
  outline: none;
  background-color: #1a1a1a;
}

/* ==== Bouton Envoyer ==== */
.send-button {
  width: 100%;
  padding: 12px;
  background-color: transparent;
  border: 2px solid #cc2525;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.alt-send-button {
  background-color: #cc2525;
  padding: 10px;
  color: #fff;
  border-radius: 4px;
  font-family: 'Lato', sans-serif;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
}

.alt-send-button:hover {
  background-color: #e63939;
}

/* ==== Contact direct (droite) ==== */
.direct-contact-container {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  color: #aaa;
  font-family: 'Lato', sans-serif;
}

.contact-list {
  list-style-type: none;
  padding: 0;
}

.list-item {
  margin: 20px 0;
  font-size: 18px;
  color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center; /* ajoute ce centrage horizontal */
  text-align: left;
}

.list-item i {
  margin-right: 15px;
  color: #cc2525;
  min-width: 30px;
}

.contact-text {
  color: #ddd;
  letter-spacing: 1px;
}

.contact-text a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-text a:hover {
  color: #cc2525;
}

/* ==== Réseaux sociaux ==== */
.social-media-list {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  gap: 15px;
}

.social-media-list a {
  background-color: #222;
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50%;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px rgba(255,255,255,0.05);
  color: #fff;
  font-size: 20px;
}

.social-media-list a:hover {
  background-color: #cc2525;
  transform: scale(1.1);
  color: #fff;
}

.instagram-link-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}

.instagram-link-wrapper i {
  font-size: 24px;
  color: #cc2525;
}

.instagram-link-wrapper a {
  color: #cc2525;
  text-decoration: none;
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  transition: color 0.3s ease;
}

.instagram-link-wrapper a:hover {
  color: #fff;
}

hr {
  border: none;
  border-top: 1px solid #444;
  margin: 30px 0;
}

/* Begin Media Queries*/
@media screen and (max-width: 850px) {
  .contact-wrapper {
    display: flex;
    flex-direction: column;
  }
  .direct-contact-container, .form-horizontal {
    margin: 0 auto;
  }  
  
  .direct-contact-container {
    margin-top: 60px;
    max-width: 300px;
  }    
  .social-media-list li {
    height: 60px;
    width: 60px;
    line-height: 60px;
  }
  .social-media-list li:after {
    width: 60px;
    height: 60px;
    line-height: 60px;
  }
}

@media screen and (max-width: 569px) {

  .direct-contact-container, .form-wrapper {
    float: none;
    margin: 0 auto;
  }  
  .form-control, textarea {
    
    margin: 0 auto;
  }
 
  input, textarea {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
}

  .name, .email, textarea {
    width: 280px;
  } 
  
  .direct-contact-container {
    margin-top: 60px;
    max-width: 280px;
  }  
  .social-media-list {
    left: 0;
  }
  .social-media-list li {
    height: 55px;
    width: 55px;
    line-height: 55px;
    font-size: 2rem;
  }
  .social-media-list li:after {
    width: 55px;
    height: 55px;
    line-height: 55px;
  }
  
}

@media screen and (max-width: 410px) {
  .send-button {
    width: 99%;
  }
}
    
  /* 
  ---------------------------------------------
  Footer Style
  --------------------------------------------- 
  */
  
  
  footer {
    margin-top: 150px;
    background-color: #111111;
    min-height: 100px;
  }
  
  footer p {
    text-align: center;
    line-height: 100px;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
  }
  
  footer p a {
    color: #fff;
    transition: all .3s;
    position: relative;
    z-index: 3;
  }
  
  footer p a:hover {
    opacity: 0.75;
  }

/* 
---------------------------------------------
Global Styles
--------------------------------------------- 
*/

.section-heading {
  margin-bottom: 20px;
}

.section-heading h2 {
  font-size: 40px;
  font-weight: 700;
  text-transform: capitalize;
  margin-top: 20px;
}

.section-heading h6 {
  color: #ee626b;
  font-size: 15px;
  text-transform: uppercase;
  font-weight: 700;
}

/* === Responsive Mobile Styles === */
@media screen and (max-width: 768px) {
  body {
    padding: 10px;
    font-size: 16px;
  }

    h1 {
    font-size: 36px;
    margin-bottom: 150px;
  }

  .contact-wrapper {
    flex-direction: column;
    padding: 30px 20px;
  }

  header, nav, footer {
    flex-direction: column;
    align-items: center;
  }
  
  .form-horizontal,
  .direct-contact-container {
    max-width: 100%;
  }

  .btn, button {
    width: 100%;
    font-size: 1rem;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  section, .content, .container {
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .section-heading h2 {
  font-size: 28px;
}

    nav.active ~ .navigation {
    display: none;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 28px;
    margin-bottom: 100px;
  }

  .contact-title {
    font-size: 2rem;
  }

  .section-heading h2 {
    font-size: 28px;
  }

  .form-control,
  textarea {
    padding: 12px 14px;
    font-size: 14px;
  }

  .send-button {
    padding: 10px;
  }

  .alt-send-button {
    font-size: 14px;
    letter-spacing: 1px;
  }

  .list-item {
    font-size: 16px;
  }

  .social-media-list a {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 18px;
  }

  .instagram-link-wrapper a {
    font-size: 16px;
  }

  .avatar {
    width: 50px;
    height: 50px;
  }

  .nav-toggler {
    height: 40px;
    width: 40px;
    top: 20px;
    right: 20px;
  }
}

@media screen and (max-width: 420px) {

  /* Global */
  body {
    overflow-x: hidden;
    font-size: 15px;
    padding: 0 10px;
  }

  img, video {
    max-width: 100%;
    height: auto;
    display: block;
  }

  .btn, button, .send-button {
    width: 100%;
    font-size: 1rem;
    padding: 12px;
    box-sizing: border-box;
  }

  /* Section contact */
  .contact.section {
    padding: 40px 10px;
  }

  .contact-wrapper,
  .form-wrapper,
  .direct-contact-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0;
    width: 100%;
    gap: 20px;
  }

  .form-horizontal {
    width: 100%;
  }

  .form-control,
  textarea,
  .name,
  .email {
    width: 95%;
    margin: 10px auto;
    font-size: 14px;
    padding: 10px 12px;
    box-sizing: border-box;
  }

  /* Titres */
  .section-heading h2 {
    font-size: 20px;
    margin-bottom: 20px;
    letter-spacing: 1px;
  }

  .section-heading h6 {
    font-size: 13px;
    text-align: center;
    margin-bottom: 10px;
  }

  /* Navigation */
  .navigation ul {
    flex-direction: column;
    padding: 0;
  }

  .navigation li {
    margin: 0;
    width: 100%;
    text-align: center;
  }

  /* Réseaux sociaux */
  .social-media-list li,
  .social-media-list li:after {
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 1.8rem;
  }

  /* Footer */
  footer p {
    font-size: 14px;
    line-height: 1.5;
    padding: 10px;
    text-align: center;
  }

}

@media screen and (max-width: 360px) {
  .section-heading h2 {
    font-size: 24px;
  }

  .name, .email, textarea {
    width: 95%;
  }

  .send-button {
    font-size: 0.9rem;
  }
}