/* 
DEBUG Padding's
* { outline: 2px dotted red }
* * { outline: 2px dotted green }
* * * { outline: 2px dotted orange }
* * * * { outline: 2px dotted blue }
* * * * * { outline: 1px solid red }
* * * * * * { outline: 1px solid green }
* * * * * * * { outline: 1px solid orange }
* * * * * * * * { outline: 1px solid blue }

a::before {content: "♥"; }

*/

html {
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}


.seo-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}


#help-sect,
#universe-sect {
  display: none;
}

:target {
  display: block !important;
    scroll-margin-top: 200px; /* moderne */
}

/* Décalage visuel */
[id]:target::before {
  content: "";
  display: block;
  height: 200px;
  margin-top: -200px;
}

/* Background Image */

.background-container
{
    position: fixed;
    z-index: -2;
    top: 0;
    right: 0;

    width: 100%;
    height: 100%;
}

.background-container .background-img
{
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;

    width: 100%;
    height: 100%;

    background-color: #333; /* couleur neutre pendant chargement */
    background: url(../img/background-gauche-court.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    
    background-position: 20% center; 
    overflow: hidden;
}


body {
    font-size: 18px; /* taille par défaut augmentée */
    line-height: 1.5; /* meilleure lisibilité */
    font-family: 'Raleway', sans-serif;
      font-weight: 400;
    background: #f9f9f9;
    color: black;
    padding: 1rem;
}


/* Titres principaux */
.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}


/* A enlever si trop "artistique" */
.zigzag {
  font-family: "Hurricane", cursive;
  font-weight: 400;
  font-style: normal;
}

img {
    max-width: 100%;
}

/* Icons (liens web, mail, téléphone) */
.icon {
    width: 18px;
    height: 18px;
    margin-right: 0.3rem;
    vertical-align: middle;
}

a {
    color: #336699;
    text-decoration: none;
}

a:hover {
    color: #254d73;
    text-decoration: underline;
}

main, footer {
    background: rgba(255, 255, 255, 0.10); /* blanc semi-transparent anciennement "white" */

    
    max-width: 960px;
    margin: 40px auto;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

section {
    display: grid;
    grid-template-columns: 1fr 4fr;
    grid-gap: 20px;
    padding: 24px;
    padding-bottom: 124px; 
    border-bottom: 1px solid #dcdcdc;

    
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(249, 249, 249, 0.05) );
}



section:last-child {
    border-bottom: none;
}

.section-title {
    font-weight: bold;
    font-size: 24px;
    color: #2a4b6a;
}

.section-title i {
    margin-right: 8px;
}

/*************************
* Main Info
**************************/

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #336699; /* le même bleu foncé que les titres */
    transition: transform 0.3s ease-in-out;
}

/* Effet sur l'avatar (léger zoom au survol) */
.avatar:hover {
    transform: scale(1.05);
    border-color: #254d73; /* un ton un peu plus profond au hover */
}

.my-name {
    font-size: 3rem;
    margin-bottom: 0.5rem;
  font-family: 'Unica One', sans-serif;
  font-weight: normal;
}

}

.my-title {
    font-size: 1.2rem;
    color: #444;
}

.my-subtitle {
    color: #666;
        font-style: italic;
}

p {
    text-align: justify;
    text-justify: inter-word;
    margin: 16px 0; // Ajout Isaac après https://www.markdownonline.net/fr/
}

strong {font-weight: bold;} // Ajout Isaac 
em {font-style: italic;} // Ajout Isaac 
u {text-decoration: underline;} // Ajout Isaac 

#presentation {
    text-align: center;
    font-style: italic;
    padding: 1rem;
    
}


#presentation {
        margin-right: 30%;
        margin-top: 50px;
        text-align: center;
    }

#presentation .quote-icon {
    color: #aaa;
    font-size: 1.2em;
    margin: 0 0.5rem;
    vertical-align: middle;
}

.links {
    display: flex;
    margin: 10px 0 20px 0;
    justify-content: space-between;
}

.link-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

i {
    margin: 0 4px;
    font-size: 1em;
    color: #444;
}

/************************
 * Effet de zigzag
 **********************/

@keyframes Wiggle {
  0%   { transform: rotate(0deg) translateY(0); }
  25%  { transform: rotate(-4deg) translateY(-2px); }
  50%  { transform: rotate(2deg) translateY(0.10px); }
  75%  { transform: rotate(4deg) translateY(-1px); }
  100% { transform: rotate(0deg) translateY(0); }
}

.zigzag span {
  display: inline-block;
  font-weight: 600;
  animation: Wiggle 2.5s ease-in-out infinite;
}



.zigzag span:nth-child(1) { animation-delay: 0s; }
.zigzag span:nth-child(2) { animation-delay: 0.15s; }
.zigzag span:nth-child(3) { animation-delay: 0.3s; }
.zigzag span:nth-child(4) { animation-delay: 0.45s; }
.zigzag span:nth-child(5) { animation-delay: 0s; }         /* Espace */
.zigzag span:nth-child(6) { animation-delay: 0.6s; }
.zigzag span:nth-child(7) { animation-delay: 0.75s; }
.zigzag span:nth-child(8) { animation-delay: 0.9s; }
.zigzag span:nth-child(9) { animation-delay: 1.05s; }

/*************************
* Elements de sections : competences, expériences, engagements, education, references.
**************************/

.element {
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid #dcdcdc;
}

.element:last-child {
    border-bottom: none;
}

.element-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 18px;
}

h2 {
    font-weight: bold;
    line-height: 1.2;
    font-size: 21px;
    color: #111;
}

h3 {
    color: #666;
        font-style: italic;
}

    .element-description {
        margin-right: 10%;
    }

/*************************
* TEST
**************************/

ul {
    margin-left: 20px;
    list-style-type: disc;
}

/* Dans l'original c'était .link-item svg */
.link-inline img {
    margin-right: 6px;
}


/*************************
* References
**************************/

.references {
    font-size: 18px;
}

.references-details {
    margin-bottom: 20px;
}


/*************************
* Contact Formulaire
**************************/

label {
    display: block;
    margin: 1rem 0 0.5rem;
}
input,
textarea,
button {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #ccc;
}


/* Hover sur le bouton */
button:hover {
    background-color: #336699;
    color: white;
    border: 1px solid #2a4b6a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

/* Style du texte placeholder */
input::placeholder,
textarea::placeholder {
    color: #666;
    font-style: italic;
    font-family: "Source Sans Pro", sans-serif;
    font-size: 0.95rem;
}

#form-message {
    margin-top: 1rem;
    font-weight: bold;
    padding: 0.75rem;
    border-radius: 6px;
}
.hidden-field {
    display: none;
}
button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}
.success {
    background-color: #e6f3ea;
    color: #2e654b;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
}
.error {
    background-color: #fbeaea;
    color: #993333;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
}



/*************************
* Responsive Tablets
**************************/

@media only screen and (max-width: 800px) {
    .links,
    .sect-container {
        flex-direction: column;
    }
    .tools-container {
        grid-row-gap: 3rem;
        grid-template-columns: 1fr 1fr;
    }
    .progress-bar {
        width: 6rem;
    }
}

/*************************
* Responsive Phones
**************************/

@media only screen and (max-width: 660px) {
    body {
        padding: 0;
    }
    
    .background-container .background-img {
    background-position: 10% center; 
    transform: scaleX(-1); /* Renversement horizontal */
    }
    
    #presentation {
        margin-right: 50%;
        margin-top: 150px;
        text-align: center;
    }
    
    .element-description {
        margin-right: 20%;
    }

    main, footer {
        margin: 0;
        padding: 0;
        border-radius: 0;
    }
    section {
        grid-template-columns: 1fr;
        border-bottom: none;
    }

    .section-title {
        border-bottom: 1px solid lightgray;
        padding: 18px 0;
        text-align: right;
        text-transform: uppercase;
    }

    .links,
    .sect-container {
        flex-direction: column;
    }

}

/* permet de définir un défilement fluide (smooth scrolling)
 * lorsqu’un lien d’ancrage (comme href="#contact-form") est cliqué. */

/* Fonctionne pas toujours
html {
  scroll-behavior: smooth;
}

*/



/*-------------
    Footer
-------------*/




footer {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-shrink: 1;
  padding: 1rem;
  background-color: #414a4f; 
  color: #fff;
}

footer > * {
  display: flex;
  align-items: center;
}

footer nav,
footer .social,
footer div:last-child {
    flex: 0 0 auto;
    margin: 0;
}



footer .social ul{
	display: flex;
	margin-bottom: 10px;
	font-size: 1.5rem;
    list-style: none;
}

footer .social ul li{
	margin: 0 8px;	
}

footer .social ul li:first-child{
	margin-left: 0;	
}

footer .social ul li:last-child{
	margin-right: 0;	
}

footer .social i {
  font-size: 1.8rem; /* Taille des Font FA  */
}


footer p{
	text-transform: uppercase;
	font-size: 12px;
	color: rgba(255,255,255,0.6);
	margin-bottom: 10px;
}

footer a {
  color: white;
  text-decoration: none;
}
footer a:hover {
  color: #accdf4;
  text-decoration: none;
}

footer p a{
	color: #fff;
}

footer i {
    color: white;
    font-size: 2rem;
    transition: color 0.3s;
}

footer i:hover {
    color: #accdf4; 
}



/*-------------
    Nav Bar du footer
-------------*/

/* Masquer le marqueur par défaut sur certains navigateurs */
footer nav summary::-webkit-details-marker {
  display: none;
}

/* ??? */
footer nav details {
  margin-bottom: 1rem;
}

/* Résumé stylisé comme bouton burger/cliqueable */
footer nav summary {
  cursor: pointer;
  background: #333;
  color: #fff;
    font-size: 0.9rem;
    padding: 0.3rem 0.5rem;
    white-space: nowrap;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
  list-style: none;
}
/* Au départ le menu vertical est caché */
footer nav details ul {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
  background: #444;
}

/* Lorsque ouvert, afficher verticalement */
footer nav details[open] ul {
  display: block;
}

/* Styles des liens */
footer nav details ul li a {
  display: block;
  padding: 0.5rem 0;
  color: #fff;
  text-decoration: none;
}
footer nav details ul li a:hover {
  background: #555;
  text-decoration: none;
}