@font-face {
    font-family: 'HelveticaNowDisplay';
    src: url('fonts/HelveticaNowDisplay-Medium.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'HelveticaNowDisplay';
    src: url('fonts/HelveticaNowDisplay-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #DBFEBE;
    --secondary-color: #ff4013;
    --background-color: #1e2430;
    --text-color: #ffffff;
    --input-background: rgba(255, 255, 255, 0.1);
    --ribbon-color: #ff4013;
    --section-background: #FF4013;
    --section-title-color: #ffe2d6;
}

.audit-container{
max-width:720px;
margin:auto;
background-color: rgba(255,255,255,0.05);
border-radius:10px;
padding:20px;
margin-top:30px;
}

.audit-section li:hover {
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

.suggestion-item {
  cursor: pointer;
}

.suggestion-item:hover {
  cursor: pointer;
}

.suggestions li {
  cursor: pointer;
}

.audit-section li {
    background: none !important;
}

.suggestions li {
  cursor: pointer;
  padding: 8px 12px;
}

.suggestions li:hover {
  background-color: rgba(255,255,255,0.08);
}

.audit-section h3 {
    color: #ff5a2f;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
}

.strengths {
    margin-bottom: 20px;
}

.audit-section li:hover {
    background: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
    outline: none !important;
}

.audit-section a:hover {
    background: none;
    outline: none;
    box-shadow: none;
}

*:focus {
    outline: none;
}

.audit-section li:hover {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}

.strengths h4 {
    color: #8be78b;
    margin-bottom: 10px;
    font-size: 16px;
}

.suggestions h4 {
    color: #ffd166;
    margin-bottom: 10px;
    font-size: 16px;
}

.audit-section ul,
.audit-section ol {
    padding-left: 20px;
    line-height: 1.6;
}

.audit-section li {
    margin-bottom: 10px;
}

.audit-cover{
text-align:center;
padding:80px 20px;
page-break-after:always;
}

.audit-cover h1{
font-size:36px;
margin-bottom:30px;
}

.audit-company{
font-size:22px;
font-weight:600;
margin-bottom:10px;
}

.audit-address{
font-size:16px;
opacity:0.7;
}

.audit-container{
max-width:760px;
margin:auto;
}

.audit-section{
page-break-inside:avoid;
break-inside:avoid;
}

#result{
margin-top:40px;
}

.score-box {
    margin-top: 25px;
    background: #1f2a38;
    padding: 20px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.audit-section {
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.score-dashboard {
    display: flex;
    gap: 20px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.score-item {
    background: #1f2a38;
    padding: 14px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'HelveticaNowDisplay', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.score-box {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    background: #FF4013;
    color: #1e2430;
}

.container {
    max-width: 800px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 40px auto;
    flex: 1;
}

.logo-link {
    display: block;
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    max-width: 100px;
    height: auto;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

p {
    font-size: 1rem;
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.5;
}

input[type="text"],
input[type="email"],
button {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

input[type="text"],
input[type="email"] {
    background-color: var(--input-background);
    color: var(--text-color);
}

input[type="text"]:focus,
input[type="email"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color);
}

button {
    background-color: var(--primary-color);
    color: #1e2430;
    cursor: pointer;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

button:hover {
    background-color: var(--secondary-color);
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

button:hover::after {
    left: 100%;
}

#loading {
    display: none;
    margin-top: 1rem;
    text-align: center;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid var(--primary-color);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#contactForm {
    background-color: rgba(66, 133, 244, 0.2);
    border: 2px solid var(--primary-color);
}

#contactForm h3 {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-top: 0;
}

#contactForm p {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.4;
}

.ribbon {
    width: 150px;
    height: 150px;
    overflow: hidden;
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 1;
}

.ribbon::before,
.ribbon::after {
    position: absolute;
    z-index: -1;
    content: '';
    display: block;
    border: 5px solid var(--ribbon-color);
    border-top-color: transparent;
    border-right-color: transparent;
}

.ribbon::before {
    top: 0;
    left: 0;
}

.ribbon::after {
    bottom: 0;
    right: 0;
}

.ribbon span {
    position: absolute;
    display: block;
    width: 225px;
    padding: 15px 0;
    background-color: var(--ribbon-color);
    box-shadow: 0 5px 10px rgba(0, 0, 0, .1);
    color: #fff;
    font: 700 18px/1 'Roboto', sans-serif;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .2);
    text-transform: uppercase;
    text-align: center;
    left: -25px;
    top: 30px;
    transform: rotate(45deg);
}

/* Styles pour le template d'audit */


#bookingSection h3 {
    text-align: center;
}

.audit-container h2 {
    color: var(--text-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.audit-section {
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 10px;
    background: #1e2430;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.audit-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.audit-section h3 {
    background: #FF4013;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    display: inline-block;
    font-weight: bold;
    text-transform: none;
    letter-spacing: 1px;
}

.audit-section h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.strengths ul,
.suggestions ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.strengths li,
.suggestions li {
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.strengths li:hover,
.suggestions li:hover {
    transform: translateX(5px);
}

.pdf-export .no-pdf {
    display: none;
}

.pdf-mode{
color:#111 !important;
}

.pdf-mode p,
.pdf-mode li,
.pdf-mode span{
color:#111 !important;
}

.pdf-mode h3{
-webkit-text-fill-color: #111 !important;
}

/* MODE PDF */

.pdf-mode body{
background:#fff !important;
color:#111 !important;
}

.pdf-mode #result{
display:block !important;
background:#fff;
color:#111;
}

.pdf-mode .audit-container{
background:#fff;
}

.pdf-mode .audit-section{
background:#f9f9f9;
border:1px solid #ddd;
box-shadow:none;
break-inside:avoid;
page-break-inside:avoid;
}

.pdf-mode h2,
.pdf-mode h3,
.pdf-mode h4{
color:#111 !important;
-webkit-text-fill-color:#111 !important;
background:none !important;
}

.pdf-mode .score-item{
background:#ffffff;
border:2px solid #e5e5e5;
color:#111;
font-weight:600;
}

.pdf-mode .score-box{
background:#FF4013;
color:#fff;
}

.pdf-mode button{
display:none;
}

.rating-overview {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.rating {
    font-size: 2rem;
    font-weight: bold;
    margin-right: 1rem;
    color: var(--secondary-color);
}

.rating-bar {
    height: 10px;
    background: #FF4013;
    border-radius: 5px;
    flex-grow: 1;
}

.review-count {
    margin-left: 1rem;
    font-size: 0.9rem;
    color: var(--text-color);
}

footer {
    text-align: center;
    padding: 20px;
    margin-top: auto;
    width: 100%;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-color);
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color);
}

@media (max-width: 600px) {
    .container {
        padding: 1rem;
        margin-top: 20px;
    }

    h1 {
        font-size: 2rem;
    }

    .ribbon {
        width: 100px;
        height: 100px;
    }

    .ribbon span {
        width: 150px;
        padding: 10px 0;
        font-size: 14px;
        left: -35px;
        top: 20px;
    }

    .audit-container h2 {
        font-size: 1.5rem;
    }

    .audit-section h3 {
        font-size: 1.2rem;
    }

    .audit-section h4 {
        font-size: 1rem;
    }
}

.pdf-mode body{
background:#ffffff !important;
color:#111 !important;
}

.pdf-mode #result{
max-width:760px;
margin:auto;
padding:20px;
}

.pdf-mode .audit-container{
background:#ffffff;
padding:0;
}

.pdf-mode .audit-section{
background:#f9f9f9;
border:1px solid #ddd;
box-shadow:none;
margin-bottom:20px;
padding:20px;
border-radius:8px;
}

.pdf-mode h2,
.pdf-mode h3,
.pdf-mode h4{
color:#111 !important;
-webkit-text-fill-color:#111 !important;
background:none !important;
}

.pdf-mode .score-dashboard{
justify-content:center;
}

.pdf-mode .score-item{
background:#f2f2f2;
border:1px solid #ddd;
color:#111;
}

.pdf-mode .score-box{
background:#FF4013;
color:#fff;
font-size:26px;
}

.pdf-mode button{
display:none;
}

/* empêche les sections d'être coupées */

.audit-section{
break-inside:avoid;
page-break-inside:avoid;
}

.pdf-mode *{
text-shadow:none !important;
box-shadow:none !important;
transform:none !important;
-webkit-text-fill-color:inherit !important;
}

.pdf-mode h2,
.pdf-mode h3{
-webkit-background-clip:initial !important;
-webkit-text-fill-color:#111 !important;
background:none !important;
display:block;
}

.pdf-mode h2{
font-weight:600;
line-height:1.3;
}

.pdf-mode h3{
font-weight:600;
line-height:1.4;
}

.pdf-mode h2{
max-width:600px;
margin:auto;
text-align:center;
word-break:break-word;
}

.pdf-mode body{
font-family:Arial, Helvetica, sans-serif !important;
}