/*
Theme Name: PChApps
Author: Pauline Chailloux
Author URI: https://pchartdesign.com/
Description: Thème responsive pour l'entreprise PCh Apps qui est une entreprise de création et de formation pour le code VBA et VB.Net
Version: 1.0
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/


@import url('https://fonts.googleapis.com/css2?family=Antonio:wght@400;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Antonio', sans-serif;
  background-color: #dfdcdd;
  color: #1e1e1e;
}

.wrapper {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  max-height:10vw;
  width: 100%;
  z-index: 10;
	background-color: #dfdcdd;
  box-sizing: border-box;
  flex-wrap: wrap;
}

.header-container {
  display: flex;
  width: 100vw;
  height: 10vw; /* même hauteur que .header-right */
}

.header-left img {
  width: 45%;
  position: relative;
  object-fit: contain;
  padding: 0vh 3vw;
  left: 2vw;
}

.header-right {
  display: flex;
  justify-content: flex-end;
  position: relative;
  align-items:flex-end ;
  padding:0;
  top: 0;
  right: 0;
  width:40%;
  height: 10vw;
  z-index: 0;
  pointer-events: none;
}

/* Fond bleu à droite */
.header-right .fond-bleu {
  position: absolute;
  right: 0;
  top: 0;
  width:45vw;
  height: 10vw;
  background-color: #345995;
  clip-path: polygon(30% 0, 100% 0%, 100% 100%, 0% 100%);
  z-index: 0;
}

/* Triangle jaune à droite */
.header-right .triangle-jaune {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 8vw;
  height: 8vw;
  background-color: #bb9611;
  clip-path: polygon(100% 0, 0% 100%, 100% 100%);
  z-index: 1;
}

/* Trapeze rose à droite */
.header-right .trapeze-rose {
  position: absolute;
  right: 3vw;
  bottom: 0;
  width: 10vw;
  height: 5vw;
  background-color: #e40066;
  clip-path: polygon(25% 50%, 100% 50%, 75% 100%, 0% 100%);
  z-index: 2;
}

/* Trapeze rose à gauche */
.header-right .trap-rose {
  position: absolute;
  right:32vw;
  top: 2vw;
  width: 9vw;
  height: 4vw;
  background-color: #e40066;
  clip-path: polygon(55% 0, 100% 0%, 45% 100%, 0% 100%);
  z-index: 5;
}

.header-right .slogan {
  position: absolute;
  top: 50%;
  right: 4vw;
	width: 35vw;
  transform: translateY(-50%);
  font-size: clamp(0.8rem, 2vw, 2rem);
  color: white;
  text-align: right;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
  z-index: 5;
  pointer-events: auto;
}



/* NAV FIXE À GAUCHE */
nav {
  position: fixed;
  top: 30vh;
  left: 0;
  height: 70%;
  min-width:150px;
  width: 14vw;
  color: white;
  z-index: 9;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.entete{
	position:fixed;
	top:0;
	left:0;
	height:15vw;
}




/* FOND BLEU GÉNÉRAL EN ARRIÈRE-PLAN */
nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #345995;
  clip-path: polygon(0 0, 100% 35%, 100% 100%, 0% 100%);
  z-index: 0;
  pointer-events: none;
}

/* CONTENU DU MENU AVEC SCROLL SI NÉCESSAIRE */
.menu-content {
  flex-grow: 1;
  top: 2%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 2vh 0;
  position: relative;
  z-index: 3;
}

/* MENU UL PRINCIPAL */
.main-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  height:65vh;
  overflow-y: auto;
  flex-direction: column;
  gap: 1vh;
  z-index: 3;
}

/* STYLES GÉNÉRAUX POUR TOUS LES LIENS */
.main-menu li a {
  display: block;
  padding: 2vh 1vw;
  color: white;
  font-size: clamp(1.2rem, 1.6vw, 2rem);
  text-decoration: none;
  transition: background-color 0.2s ease;
  z-index: 3;
}

/* LIEN 1 → style bandeau rose */
.main-menu li:nth-child(1) a {
  background-color: #e40066;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.main-menu li:nth-child(1) a:hover {
  background-color: rgba(228, 0, 102, 0.5);
}

/* LIEN 2 → style bandeau jaune */
.main-menu li:nth-child(2) a {
  background-color: #bb9611;
  clip-path: polygon(0 0, 75% 0, 100% 100%, 0% 100%);
}

.main-menu li:nth-child(2) a:hover {
  background-color: rgba(187, 150, 17, 0.5);
}

/* AUTRES LIENS */
.main-menu li:not(:nth-child(1)):not(:nth-child(2)):not(.woo-links) a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* ==== LIENS WOOCO COMPTES + PANIER EN LIGNE ==== */

/* Le conteneur regroupant les deux liens */
.main-menu li.woo-links {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1vw;
  padding: 1vh 0;
}

/* Liens dans woo-links */
.main-menu li.woo-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

/* Panier */
.main-menu li.woo-links a.woo-panier {
  background-color: #ffffff;
  color: #e40066;
}

/* Mon compte */
.main-menu li.woo-links a.woo-compte {
  background-color: #ffffff;
  color: #bb9611;
}

/* Hover */
.main-menu li.woo-links a:hover {
  opacity: 0.8;
}

/* Conteneur des formes du bas */
nav .bas {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 15vh;
  z-index: 2;
  pointer-events: none;
}

/* Triangle rose à gauche */
nav .triangle-rose {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60%;
  height: 15vh;
  background-color: #e40066;
  clip-path: polygon(0 0, 0 100%, 100% 100%);
  z-index: 1;
}

/* Trapèze jaune à droite */
nav .trapeze-jaune {
  position: absolute;
  bottom: 0vh;
  left: 30%;
  transform: translateX(-50%);
  transform: translateY(50%);
  width: 70%;
  height: 10%;
  background-color: #bb9611;
  clip-path: polygon(0 0, 60% 0, 100% 100%, 40% 100%);
  z-index: 2;
}


.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding:5px;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background: #345995;
}

/* Bouton de fermeture pour le menu mobile */
.nav-close {
  display: none;
  position: absolute;
  bottom: 5px;
  right: -30px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  z-index: 2000;
  cursor: pointer;
}

main {
  margin-top: 15vw; /* espace dynamique sous l’en-tête */
  margin-left: 15vw; /* laisse la place au menu latéral */
  margin-bottom:5vh;
  padding: 2vh 4vw;
  background-color: #dfdcdd;
  overflow-y:auto;
  grow:1;
  box-sizing: border-box;
}

footer {
  background-color: #e40066;
  position:fixed;
  bottom: 0;
  left: 0;
  width:100%;
  color: white;
  padding: 5px 5px;
  font-size: clamp(0.6rem, 1.2vw, 0.95em);
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap-reverse;
  gap: 5px;
  margin-left:14vw;
  margin-right:50px;
  padding: 0vh 4vw;
}

.footer-left,
.footer-right {
  display: flex;
  align-items: center;
  gap: 3px;
}

footer a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

footer a:hover {
  text-decoration: underline;
  color: #345995;
}

.btn-conditions {
  background-color: white;
  color: #e91e63;
  padding: 8px 14px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.btn-conditions:hover {
  background-color: #ffffff;
}

/* ========== RESET SIMPLE & TYPOGRAPHIE ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Antonio', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #222;
  background-color: #dfdcdd;
  word-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========== TITRES ========== */
h1, h2, h3, h4, h5, h6 {
  /*margin: 2em 0 1em;*/
  font-weight: bold;
  /*line-height: 1.3;*/
  color: #111;
}

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

/* ========== PARAGRAPHES ET TEXTES ========== */
p {
  margin: 1em 0;
}

a {
  color: #0073aa;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #005177;
  text-decoration: underline;
}

strong {
  font-weight: bold;
}
em {
  font-style: italic;
}

/* ========== LISTES ========== */
ul, ol {
  margin: 1em 0 1em 2em;
}
li {
  margin-bottom: 0.5em;
}

/* ========== BOUTONS ========== */
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-block;
  padding: 0.75em 1.5em;
  background-color: #0073aa;
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
  /*background-color: #005177;*/
}

/* ========== BLOCS DIVERS ========== */
blockquote {
  margin: 1.5em;
  padding-left: 1em;
  border-left: 4px solid #ccc;
  font-style: italic;
  color: #666;
}

pre {
  background-color: #f4f4f4;
  padding: 1em;
  overflow-x: auto;
  border-radius: 4px;
}

code {
  background-color: #eee;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-family: Consolas, monospace;
}

/* ========== TABLES ========== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}
th, td {
  padding: 0.75em;
  border: 1px solid #ddd;
}
th {
  background-color: #f9f9f9;
  font-weight: bold;
  text-align: left;
}

/* ========== FORMULAIRES ========== */
input[type="text"],
input[type="email"],
input[type="url"],
textarea {
  width: 100%;
  padding: 0.75em;
  margin-bottom: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}
textarea {
  resize: vertical;
  min-height: 100px;
}

/* ========== IMAGES ALIGNÉES ========== */
.alignleft {
  float: left;
  margin: 0 1em 1em 0;
}
.alignright {
  float: right;
  margin: 0 0 1em 1em;
}
.aligncenter {
  display: block;
  margin: 1em auto;
}


/* =======================
   RESPONSIVE POUR MOBILE
   ======================= */
@media screen and (max-width: 768px) {
	
	.header-container {
    flex-direction: column;
    height: auto;
	background-color: #dfdcdd;
}

.header-left img {
    width: 80%;
	height:auto;
    padding: 0;
	right:0;
    /*justify-content: flex-end;*/
    object-fit: contain;
}
	
  .header-right {
    display: none;
  }
	
.hamburger {
  display: flex;
  justify-content: flex-end;
  right:5%;
	top:95%;
  margin: 2;
  position: absolute;
  pointer-events:auto;
  z-index: 6; /* Très important */
}
	
	nav {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
		z-index:10;
}

nav.active {
    transform: translateX(0);
}

.nav-close {
    display: block;
	background-color: none;
}
	
	main{
		padding:5vh;
		margin-top: 12vh;
		margin-left: 0vw;
	}
	
	.footer-bar{
		padding:0;
		margin-left:0vw;
		margin-right:0px;
	}
	
}

