*,
::before,
::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
}
:root {
    --bkgd: #0a0a09;
    --bkgd-alt: #131311;
    --active: #bdb7ad;
    --links-hov-bkgd: #1d1c1a;
    --accent: #917c55;
    --accent-02: #8c744a;
    --cards: #6f5c3b;
    --cards-02: #1c1b19;
    --header: #161616;
    --muted: #999388;
    --white: #ffffff;
      /* ===== TITRES ===== */
    --fs-h1: clamp(2.2rem, 8vw, 3.6rem);
    --fs-h2: clamp(1.8rem, 6vw, 2.8rem);
    --fs-h3: clamp(1.8rem, 4vw, 2.2rem);
    --fs-h4: clamp(1.4rem, 3vw, 1.7rem);
    --fs-h5: clamp(1.1rem, 2vw, 1.3rem);
    /* ===== TEXTE ===== */
    --fs-body: clamp(1rem, 2.5vw, 1.1rem);
    --fs-small: clamp(0.75rem, 1vw, 0.85rem);
}

html {
    font-size: 100%; /* = 16px par défaut */
    -webkit-text-size-adjust: 100%; 
    scroll-behavior: smooth;
}

body {
    background-color: var(--bkgd);
    color: var(--muted);
    -webkit-font-smoothing: antialiased;
    font-family: 'Inter', sans-serif;
}

/* --- text --- */

h1, h2, h3 {
    color: var(--accent-02);
    font-weight: 700;
    margin-bottom: 0.6em;
}
h4, h5, hr, .hr-02 {
    color: var(--accent);
    margin-bottom: 0.8em;
}

h1 { 
    font-size: var(--fs-h1);
    line-height: 1.1;
}
h2 { 
    font-size: var(--fs-h2);
    line-height: 1.15;
}
h3 { 
    font-size: var(--fs-h3);
    line-height: 1.2;
}
h4 { 
    font-size: var(--fs-h4);
    line-height: 1.25;
}
h5 { 
    font-size: var(--fs-h5);
    line-height: 1.30;
}
small {
    font-size: var(--fs-small);
}
p, li {
     font-size: var(--fs-body);
    line-height: 1.6;
    font-weight: 300;
}
p {
    margin-bottom: 1em;
}

hr {
	color: #917c55;
	width: 50%;
	margin: 5px 0 25px 0;
}
.hr-02 {
	color: #917c55;
	width: 80%;
	margin-top: 25px;
	margin-bottom: 25px;
}

/* --- Links --- */
a {
    text-decoration: none;
    color: var(--accent);
    font-weight: 700;
}
.link-underline, .text-underline {
    position: relative;
    text-decoration: none;
}
.text-underline {
    display: inline-block; /* clé */
    text-decoration: none;
    margin-bottom: 45px;
}
.link-underline::after, .text-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px; /* espace sous le texte */
  width: 100%;
  background: currentColor;
}
.link-underline::after {
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s ease;
}
.link-underline:hover::after {
  transform: scaleX(1);
}
.text-underline::after {
    height: 3px;
    border-radius: 2px;
    opacity: .85;
    bottom: -15px; /* espace sous le texte */
}
section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0 25px;
    width: 100%;
    scroll-margin-top: 180px; /* Dépend de la hauteur du header */
}
@media (max-width: 850px){
    section {
        scroll-margin-top: 40px;
    }
}
@media screen and (width <= 600px) {
    section {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }
}
/* === TopBar + Header === */
.header {
    display: flex;
    flex-direction: column;
    position: sticky;
    width: 100%;
    top: 0;
    z-index: 1000;
}


.top-bar {
    display: flex;
    justify-content: space-evenly;
    padding: 5px 0;
    background-color: var(--accent);
    /*height: fit-content;*/
}
@media screen and (max-width: 450px) {
    .top-bar {
        flex-direction: column;
    }
}
.contact-bar, .social-bar {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    font-weight: 800;
    color: var(--bkgd);
}

@media screen and (max-width: 450px) {
    .contact-bar, .social-bar {
        padding: 0 25px;
    }
}
.fa-solid, .fa-brands {
    color: var(--bkgd);
}
.fa-solid:hover, .fa-brands:hover {
    color: var(--active);
    transition: color 0.5s ease;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    background-color: var(--header);
    width: 100vw;
    padding: 15px;
}
header .fa-solid {
    color: var(--accent);
}
@media screen and (max-width: 690px) {
    header {
        flex-direction: column;
        align-items: center;
    }
}
.logo-img {
    margin: 0 25px;
    max-width:150px;
}

nav {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 25px;
    padding-right: 25px;
}
@media screen and (max-width: 450px) {
    nav {
        flex-direction: column;
        align-items: center;
        padding-right: 0;
    }
}
nav a {
    display: inline-block;
    border: medium none;
    outline: none;
    color: var(--accent);
    background: none;
    font-variation-settings: "wght" 450;
    font-size: inherit;
    cursor: pointer;
    border-radius: 5px;
    }
nav a:hover {
    background: var(--links-hov-bkgd);
    color: var(--active);
    border-radius: 15px;
    transition: color 0.5s ease-in-out, background 0.5s ease-in; 
    }
.top-bar, header {
    left: 0;
    width: 100%;
}
main {
    display: flex;
    position: relative;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100vh;
    width: 100vw;
}

    /* === Sections specifiques === */


#hero {
    height: 70dvh;
    background: url('../images/Animals/unnamed.png') center /cover no-repeat;
}

#portrait, #prez, #prestas {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}
#portrait, #portfolio {
    margin: 40px 0;
}
@media screen and (max-width: 650px) {
    #portrait {
        display: flex;
        flex-direction: column;
    }
}

.img-shape {
    float: left;
    width: 250px;              /* ajustable */
    height: 250px;
    margin: 0 25px 15px 0;
    border-radius: 50%;       /* courbes + harmonieuses */
    shape-outside:  circle(50%);
    /* inset(10px round 100px); arrondi du flux du texte */
    object-fit: cover;
    border: 2px solid var(--cyan);
    box-shadow:
    0 0 6px var(--cyan-glow),
    0 0 16px var(--cyan-glow);
    filter: brightness(0.5);
    transition : filter 0.5s ease;
    will-change: filter;
}
    .img-shape:hover {
        filter: brightness(0.75);
        cursor: pointer;
    }
@media (max-width: 650px) {
  .img-shape {
    float: none;
    display: block;
    margin: 0 auto 20px;
    shape-outside: none;
    clip-path: none;
  }
}
.bio, .content {
    max-width: 1200px;
    padding: 0 25px;
}
@media screen and (max-width: 650px) {
    .bio {
        text-align: center;
    }
}

.container-media {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "txt media";
    max-width: 1000px;
    gap: 25px;
    margin: 25px 0;
}

.txt-content {
    display: flex;
    flex-direction: column;
    justify-content: Center;
    align-items: flex-start;
    grid-area: txt;
    padding-left: 25px;
}
.content strong, .txt-content strong {
    font-weight: 700;
    color: var(--accent);
}
.media-content {
    display: flex;
    justify-content: center;
    align-items: center;
    grid-area: media;
}

.media-content img {
    width: auto;
    height: 250px;
    padding: 5px;
    border: 3px solid var(--accent-02);
}

@media screen and (max-width: 850px){
    .hr-desktop {
        display: none;
    }
    .container-media {
        grid-template-columns: 1fr;
        grid-template-areas: 
        "media"
        "txt";
    }
    .media-content img {
        width: 100%;
        height: auto;
        max-width: 100%;
    }
    #prez {
        text-align: center;
    }
    .txt-content {
       align-items: center;
       text-align: center;
    }
    .header, main, footer, .sub-footer {
    position: static;
    }
}

#inter-01 {
    min-height: 70vh;
    background: url('../images/Animals/fox-g6651b9a6b_1920.jpg') center /cover no-repeat;
}


/* === SECTION PRESTAS === */
#prestas {
    margin-bottom: 25px;
    background: var(--bkgd-alt);
    padding: 35px 0;
    margin-bottom: 25px;
}
.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 25px;
}
.cards {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-top: auto;
    padding: 10px 20px;
    width: 300px;
    height: 100%;
    background:var(--cards);
    border-radius: 10px;
    overflow: hidden;
    color:var(--white);
    gap: 10px;
    transition: 0.5s ease;
}

.cards:hover {
    transform: translateY(-10px);
    background: var(--cards-02);
    box-shadow: 0 0 15px var(--accent-02);
    cursor: default;
}

.card-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cards img {
    width: 100%;
    max-height: 165px;
    border-radius: 6px;
    filter: brightness(0.9);
    transition: filter 0.4s ease;
}
.cards:hover img {
    filter: brightness(1.05);
}

.cards h3 {
    font-size: clamp(0.6rem, 3vw, 1.1rem);
    text-align: center;
    color: var(--white);
    text-transform: uppercase;
}
.cards p {
    font-size: 0.9rem;
    line-height: 1.5;
}
.card-footer {
    text-align: right;
    padding: 10px 0;
}
.cta-card {
    align-self: center;
    cursor: pointer;
    background: var(--bkgd-alt);
    color: var(--accent);
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px;
    margin-top: auto;  /* Pousse le bouton vers le bas */
    /*margin-bottom: 10px;*/
    border: 1px solid var(--accent-02);
    border-radius: 10px;
    transition: background 0.4s ease, transform 0.2s ease;
}

.cta-card:hover {
    background: var(--accent-02);
    color: var(--bkgd-alt);
    transform: scale(1.05);
}

/* === SECTION CONTACT === */
#contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 45px 20px;
}
@media screen and (max-width: 650px) {
    #contact {
        scroll-margin-top: 30px; 
    }
}
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "contact-info formulaire";
    padding: 15px 20px;
    align-items: center;
    justify-items: center;
    gap:10px;
    max-width: 1000px;
    margin-top: 25px;
}
@media screen and (max-width: 850px) {
    .contact-container {
        grid-template-columns: 1fr;
        grid-template-areas:
        "contact-info"
        "formulaire";
        max-width: 800px;
    }
}
@media screen and (max-width: 450px) {
     .contact-container {
        max-width:  400px;
     }
}

.contact-info {
    grid-area: contact-info;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
}

.txt-container {
    display: flex;
    flex-direction: column;
}

.coordonnees {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.coordonnees a {
    text-decoration: none;
    font-style: normal;
    color: var(--active);
}
.coordonnees a:hover {
    color: var(--accent);
    transition: color 0.5s ease;
}

.formulaire {
    grid-area: formulaire;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    margin-left: 25px;
}
@media screen and (max-width: 850px) {
        .formulaire {
        padding-top: 45px;
        align-items: center;
    }
}
@media screen and (max-width: 450px) {
     .formulaire {
        margin: 0;
     }
}
.contact-form {
    display: flex;
    flex-direction: column;
    min-width: 350px;
    background: rgba(75, 63, 35, 0.03);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(189, 162, 28, 0.2);
    gap: 15px;
}
.contact-form label {
    text-align: left;
    padding: 0 15px;
    font-weight: 700;
    color: var(--active);
}
.contact-form input, .contact-form select, .contact-form textarea {
    background: var(--bkgd-alt);
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 5px;
    padding: 15px 15px;
    /*margin-bottom: 15px;*/
    transition: border 0.3s ease, box-shadow 0.3s ease;
}
input, select {
    color: var(--accent);
}

textarea {background: var(--bkgd-alt);
    color: var(--active);}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
    border: 1px solid var(--accent);
    box-shadow: 0 0 10px var(--accent-02);
    outline: none;
}

.contact-form button {
    position: relative;
    overflow: hidden;
    background: var(--accent-02);
    border-radius: 5px;
    border: none;
    padding: 10px;
    color: var(--active);
    font-weight: 700;
    cursor: pointer;
}
.contact-form button::after {
    content:"";
    position:absolute;
    width:0;
    height:0;
    background: rgba(189, 162, 28, 0.2);
    border-radius:50%;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    transition:0.4s;
}
.contact-form button:active::after {
    width:200px;
    height:200px;
}

.note {
    margin-top: 5px;
    text-align: right;
    font-size: var(--fs-small);
}

/* === FOOTER & SUB-FOOTER === */
footer {
    display: grid;
    align-items: center;
    justify-items: center;
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas: "left-foot mid-foot rght-foot";
    background-color: var(--header);
    padding: 10px 25px;
}
@media screen and (max-width: 650px){
    footer {
        grid-template-columns: 1fr;
        grid-template-areas:
        "left-foot"
        "mid-foot"
        "rght-foot";
        gap: 25px;
    }
    .left-foot {
        text-align: center;
    }
}
.left-foot, .mid-foot, .rght-foot {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mid-foot .fa-brands, footer a {
    color: var(--active);
}

.mid-foot .fa-brands:hover, footer a:hover {
    color: var(--accent);
}

footer .mid-foot .logo-foot {
    max-width: 100px;
}

.mid-foot h6 {
    margin: 10px 0;
}

footer ul li {
    font-size: var(--fs-small);
}
@media screen and (max-width: 650px) {
    footer ul {text-align: center;}
}

.sub-footer {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-02);
    color: var(--white);
    width: 100vw;
    height: 30px;
    padding: 10px;
    font-size: var(--fs-small);
}
.sub-footer a {
    text-decoration: none;
    color: var(--active);
    transition: color 0.3s ease;
}
.sub-footer a:hover {
    color: var(--bkgd-alt);
}


/* === BACK TO TOP ==== */
#backToTop {
  position: fixed;
  bottom: 40px;
  right: 30px;
  padding: 12px 16px;
  font-size: 18px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  background: var(--accent-02);
  pointer-events: none;
  transition: opacity 0.3s ease, color 0.3s ease, box-shadow 0.3s ease; 
}

#backToTop:hover {
    color: var(--bkgd-alt);
    box-shadow: 0 0 15px var(--accent-02);
}
#backToTop.visible {
  opacity: 1;
  pointer-events: auto;
}
@media screen and (max-width: 650px) {
    #backToTop {
        bottom: 50px;
        right: 20px;
        padding: 5px 8px;
        font-size: 1rem;
    }
}