/*
Theme Name: Regnon alexis
Author: Alexis
Description: Un thème personnalisé pour le site de Regnon alexis.
Version: 1.0
License: GPL2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: regnon_alexis
Tags: custom, theme
*/

/* font-family */
* {
  font-family: 'Lato', sans-serif;
  list-style: none;
  text-decoration: none;
}
body {
  margin: 0;
}

h1, h2, h3 {
  font-family: 'Poetsen One', sans-serif;
}

h2 {
  font-size: 40px;
  text-decoration: underline;
}

p {
  font-family: 'Lato', sans-serif;
  font-size: 25px;
  line-height: 30px;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
    
}

/* En-tete */

header {
  text-transform: uppercase;
  box-shadow: 0 1px 20px 1px rgba(0, 0, 0, 0.05);
}

.header-wrapper {
  display:flex;
  justify-content: space-around;
  align-items: center;
}

.logo {
  width:20%;
}

.header-content {
  display:flex;
}

.menu {
  display: flex;
  margin-right: 45px;
}

.menu-item {
  margin-left: 45px;
}

.menu-item a {
  font-family: 'Poetsen One', sans-serif;
  font-size:30px;    
  color: #BA2015;
  font-weight: 600;
  text-transform: uppercase;  
}

header .menu-item a {
    white-space: nowrap;
}

/* modal de contact */

.open-contact-modal {
    cursor: pointer; 
}
.modal {
  display: none; 
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000; 
  height: 500%;
}

.modal-content {
  margin: 10% auto;
  padding: 0;
  width: 100%;
  max-width: 700px;
  background: #fff;
  border:5px solid #BA2015;
  overflow: hidden;
}

.form-label {
  font-weight: 500;
  font-size:12px;
  color: #BA2015;
}

.looping-title {
  position: relative;
  text-align: center;
  width: 100%; 
  font-size: 60px;
  font-weight: 600;
  color: #BA2015;
  text-transform: uppercase;
  line-height:68px;
  padding: 20px 0 20px 0;
  cursor: default;
  text-shadow: 4px 3px 2px rgba(0,0,0,0.1);
}

  .looping-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #BA2015;
  margin: 20px auto 0;
  border-radius: 2px;
}

.line {
  font-family: 'Poetsen One', sans-serif;
}

.formulaire {
  border:1px solid #B8BBC2;
  padding:10px;
  width: 90%;
  border-radius: 8px;
  outline: #B8BBC2;
  margin-top:5px;
}

.form-container {
  display: flex;
  flex-direction: column;  
  align-items: center;
}

#your-message {
  margin-right: 18px;
  padding: 25px 10px;
}

.form-submit {
  width: 44%;
  padding-right: 10px;
}

.submit-button {
  border: 0px;
  width: 100%;
  background-color: #BA2015;
  padding:15px 8px ;
  cursor: pointer;
  color: white;
}

/* head */

.hero {
  display: flex;
  align-items: center;
  margin-top: 60px;
}

.presentation {
  display: flex;
  flex-direction: column;
  width: 60%;
}

.presentation-texte {
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  font-size: 29px;
  margin-top: 10px;
}

.presentation-formation{
  font-weight: 300;
  font-size: 25px;
}

.presentation-droite {
  width: 40%;
}

.presentation-image {
  width: 100%;
  object-fit: cover;
}

.nom {
  font-family: 'Lato', sans-serif;
  font-size:70px;
  color: #BA2015;
  font-weight: 600;
  margin-top: 10px;
}

.competences-logos {
  margin-top: 10px;
  font-family: 'Poetsen One', sans-serif;
}

.presentation-competence {
  text-decoration: underline;
}

.logo-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
}

.logo-wrapper img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo-wrapper img:hover {
  transform: scale(1.1);
}

.icon-marge {
  margin-right: 15px;
}

.presentation-moi {
  margin: 20px 0 0 0;
}

.icon-presentation {
  margin-top: 10px;
}

/* blog */

.titre-page {
  font-family: 'Poetsen One', sans-serif;
  color: #BA2015;
  font-weight: 600;
  text-align: center;
  font-size: 60px;
  margin: 40px 0 40px;
  text-shadow: 4px 3px 2px rgba(0,0,0,0.1);
  }

.titre-page::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #BA2015;
  margin: 20px auto 0;
  border-radius: 2px;
}
 
.grille-projets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 0 20px 40px;
}
  
.projet-item {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  background: #fff;
}
  
.projet-item:hover {
  transform: translateY(-5px);
}
  
.projet-lien {
  display: block;
  color: inherit;
  text-decoration: none;
}
  
.projet-item img {
  width: 100%;
  height: auto;
  display: block;
}
  
.projet-contenu {
  padding: 15px;
  text-align: center;
}
  
.projet-contenu h2 {
  font-size: 20px;
  margin: 10px 0;
  font-family: 'Poetsen One', sans-serif;
  color: #BA2015;
  font-weight: 600;
}
  
.btn-projet {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 16px;
  background: #BA2015;
  color: black;
  border-radius: 20px;
  font-size: 15px;
  transition: background 0.2s;
}
  
.btn-projet:hover {
  background: white;
  color:#BA2015;
  border:1px solid #BA2015;
}
.projet-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
  will-change: opacity, transform;
}
  
.projet-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.projet-item:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* single page */ 

.projet-titre {
  font-weight: 600;
  font-size: 60px;
  color: #BA2015;
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 4px 3px 2px rgba(0,0,0,0.1);
}

.projet-titre::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #BA2015;
  margin: 20px auto 0;
  border-radius: 2px;
}

.projet-bloc{
  display: flex;
  margin-bottom: 60px;
}

.projet-image {
  width: 100%;
}

.projet-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.liste-check {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
  font-size: 20px;
  line-height: 1.6;
}
  
.liste-check li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 30px;
}
  
.liste-check.objectifs .arrow-icon {
  font-size: 18px;
  color: #BA2015;
  flex-shrink: 0;
}
  
.icon-wrapper {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
  
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #BA2015;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  flex-shrink: 0;
}
  
.svg-icon {
  width: 14px;
  height: 14px;
  color: #BA2015;
}

.svg-icon-check{
  width: 24px;
  height: 24px;
  color: #BA2015;
}

.projet-capture{
  width: 40%;
}

.projet-capture img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.infos-projet {
  width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.titre-capture {
  text-align: center;
}

.bloc-contexte{
  text-align: center;
  margin-bottom: 60px;
}

.texte-contexte {
  font-size: 30px;
  line-height: 40px;
}

.description-capture {
  display: flex;
}

.champs-description{
  width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bulle-github {
  text-align: center;
  margin: 30px 0 30px 0;
}

.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #24292e;
  color: #ffffff;
  padding: 10px 20px;
  font-size: 16px;
  font-family: 'Poetsen One', sans-serif;
  border-radius: 25px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-github:hover {
  background-color: #BA2015;
  transform: translateY(-2px);
}

.icon-github {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.projets-navigation-img {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 60px 0 30px;
  padding: 20px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.nav-projet {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #BA2015;
  max-width: 300px;
  text-align: center;
  transition: transform 0.3s ease;
}

.nav-projet:hover {
  transform: translateY(-5px);
}

.nav-thumbnail {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.nav-title {
  margin-top: 10px;
  font-family: 'Poetsen One', sans-serif;
  font-size: 25px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #BA2015;
}

.fleche {
  width: 20px;
  height: 20px;
}

.fleche-gauche {
  transform: rotate(0deg);
}

.fleche-droite {
  transform: rotate(0deg);
}

 /*footer */ 

 .footer-bar {
  background-color: #000; 
  height: 1px; 
  width: 100%; 
  margin: 0; 
  padding: 0; 
}

.footer-menu-list {
  display:flex;
  justify-content: space-evenly;
  padding: 0;
}

#menu-item-71, #menu-item-72, #menu-item-73 {
  margin: 0;
}
#menu-item-91, #menu-item-93 {
  margin-left: 0;
}

/* Responsive Design */

@media (max-width: 1024px) {

.container {
  width: 92%;
  }
.nom {
  font-size: 60px;
}
.grille-projets {
  grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 768px) {
  .header-wrapper {
    flex-direction: column;
  }
  .menu {
    flex-direction: column;
  }
  .logo {
    width: 35%;
  }
  .container-logo {
    display: flex;
    justify-content: center;
  }
  .menu-item {
    margin-left: 0px;
  }
  .menu-header {
    text-align: center;
  }
  #menu-item-94 {
  margin-top: 15px;
  }
  .modal-content {
    width: 60%;
  }
  .hero{
    flex-direction: column;
  }
  .presentation {
    align-items: center;
    width: 100%;
  }
  .nom {
    font-size: 50px;
  }
  .presentation-competence {
    text-align: center;
  }
  .presentation-moi {
  text-align: center;
  }
  .presentation-image {
  margin-top: 25px;
  width: 80%;
  }
  .titre-page {
    font-size: 50px;
  }

/* single-projet */

  .projet-titre {
    font-size: 50px;
    color: black;
}
.projet-bloc {
    flex-direction: column;
    align-items: center;
}
.infos-projet {
    width: 100%;
}
h2 {
    text-align: center;
    color: #BA2015;
}
.projet-capture {
    width: 50%;
}
.projet-capture-media img {
    display: none;
}
.description-capture {
  flex-direction: column;
}
.champs-description {
  width: 100%;
}
}

@media (max-width: 600px) {
  .logo {
    width: 50%;
  }
  .looping-title {
    font-size: 45px;
  }
  .formulaire {
    width: 85%;
  }
    .form-container {
      margin-left: 10px;
  }
  .grille-projets {
    grid-template-columns: 1fr;
  }
  .nom {
    font-size: 45px;
  }
  .presentation-texte {
    text-align: center;
  }
  .presentation-moi {
    font-size: 20px;
  }
  .logo-wrapper {
    justify-content: center;
    gap: 32px;
}
  .titre-page {
    font-size: 45px;
  }
  #menu-item-91, #menu-item-93 {
  margin-top: 10px;
  }
  .footer-menu-list {
    flex-direction: column;
    align-items: center;
  }
/* single-projet */
  .projet-titre {
        font-size: 40px;
  }
  h2 {
  font-size: 35px;
}
.projet-capture {
  width: 71%;
}
.texte-contexte {
  font-size: 25px;
}
.nav-thumbnail {
 display: none;
}
.nav-title {
  font-size: 20px;
}
}

@media (max-width: 375px) {
  .presentation-texte {
    font-size: 25px;
  }
  .nom {
    font-size: 40px;
  }
  .menu-item a {
    font-size: 25px;
}
/* single-projet */
.projet-titre {
  font-size: 30px;
}
h2 {
  font-size: 30px;
}
.texte-contexte {
  font-size: 20px;
}
.liste-check {
  font-size: 18px;
}

}
@media (max-width: 320px) {
  .nom {
    font-size: 35px;
  }
  .looping-title {
    font-size: 35px;
  }
  .formulaire {
    width: 80%;
  }
  /* single-projet */
  .projet-capture {
    width: 80%;
  }
  .nav-title {
    font-size: 17px;
  }
}