/* ============================================
   CTA BUTTONS - Intact en Surface
   Border-radius: 40px
   Hover: Inverse colors
   ============================================ */

/* Bouton CTA Principal (Pêche) */
.btn-primary,
.btn-cta,
.cta-button,
a.bg-orange {
    background-color: #ED715A !important;
    color: white !important;
    border: 2px solid #ED715A !important;
    border-radius: 40px !important;
    transition: all 0.3s ease !important;
}

.btn-primary:hover,
.btn-cta:hover,
.cta-button:hover,
a.bg-orange:hover {
    background-color: rgba(237, 113, 90, 0.1) !important; /* Pêche transparent */
    color: #ED715A !important;
    border-color: #ED715A !important;
}

/* Bouton Outline */
.btn-outline {
    background-color: transparent !important;
    color: #ED715A !important; /* Pêche */
    border: 2px solid #ED715A !important;
    border-radius: 40px !important;
    transition: all 0.3s ease !important;
}

.btn-outline:hover {
    background-color: #ED715A !important;
    color: white !important;
    border-color: #ED715A !important;
}

/* Bouton CTA Secondaire (Turquoise) */
.btn-secondary,
.btn-turquoise,
a.bg-turquoise {
    background-color: #9BD1C7 !important;
    color: #2A367E !important; /* Bleu Roi */
    border: 2px solid #9BD1C7 !important;
    border-radius: 40px !important;
    transition: all 0.3s ease !important;
}

.btn-secondary:hover,
.btn-turquoise:hover,
a.bg-turquoise:hover {
    background-color: white !important;
    color: #9BD1C7 !important;
    border-color: #9BD1C7 !important;
}

/* Supprimer les anciens styles hover */
a.hover\:bg-peche:hover {
    background-color: white !important;
    color: #ED715A !important;
}

a.hover\:bg-bleu-roi:hover {
    background-color: white !important;
    color: #9BD1C7 !important;
}

/* Classes Tailwind à surcharger */
.bg-orange.hover\:bg-peche,
.bg-turquoise.hover\:bg-bleu-roi {
    border: 2px solid currentColor !important;
    border-radius: 40px !important;
}

.bg-orange.hover\:bg-peche:hover {
    background-color: white !important;
    color: #ED715A !important;
    border-color: #ED715A !important;
}

.bg-turquoise.hover\:bg-bleu-roi:hover {
    background-color: white !important;
    color: #9BD1C7 !important;
    border-color: #9BD1C7 !important;
}

/* Boutons avec rounded-lg -> rounded-[40px] */
.rounded-lg.bg-orange,
.rounded-lg.hover\:bg-peche,
.rounded-lg.bg-turquoise,
.rounded-lg.hover\:bg-bleu-roi {
    border-radius: 40px !important;
}

/* ============================================
   LIENS HYPERTEXTE
   ============================================ */

/* Liens dans le contenu (articles, pages) */
.entry-content a,
.article-content a,
.post-content a {
    color: #9BD1C7; /* Turquoise */
    text-decoration: underline;
    text-decoration-color: rgba(155, 209, 199, 0.3);
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}

.entry-content a:hover,
.article-content a:hover,
.post-content a:hover {
    color: #2A367E; /* Bleu Roi */
    text-decoration-color: #2A367E;
}

/* Liens dans le menu de navigation */
.primary-navigation a,
.nav-menu a {
    color: #2A367E; /* Bleu Roi */
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
}

.primary-navigation a:hover,
.nav-menu a:hover {
    color: #F5A123; /* Orange */
}

.primary-navigation a::after,
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #F5A123; /* Orange */
    transition: width 0.3s ease;
}

.primary-navigation a:hover::after,
.nav-menu a:hover::after,
.primary-navigation .current-menu-item a::after,
.primary-navigation .current_page_item a::after {
    width: 100%;
}

/* État actif du menu */
.primary-navigation .current-menu-item a,
.primary-navigation .current_page_item a {
    color: #F5A123; /* Orange */
    font-weight: 600;
}

/* Liens dans le footer */
.site-footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #9BD1C7; /* Turquoise */
}

/* Liens externes - icône */
.entry-content a[href^="http"]:not([href*="intactensurface"])::after,
.article-content a[href^="http"]:not([href*="intactensurface"])::after {
    content: ' ↗';
    font-size: 0.85em;
    opacity: 0.6;
}

/* ============================================
   BONNES PRATIQUES - ARTICLES DE BLOG
   ============================================ */

/* Citations dans les articles */
.entry-content blockquote,
.article-content blockquote {
    border-left: 4px solid #F5A123; /* Orange */
    background-color: rgba(242, 235, 225, 0.5); /* Crème transparent */
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #374151;
    border-radius: 0 8px 8px 0;
}

.entry-content blockquote p:last-child,
.article-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Listes à puces stylisées */
.entry-content ul:not(.wp-block-gallery),
.article-content ul:not(.wp-block-gallery) {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.entry-content ul:not(.wp-block-gallery) li,
.article-content ul:not(.wp-block-gallery) li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
}

.entry-content ul:not(.wp-block-gallery) li::before,
.article-content ul:not(.wp-block-gallery) li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #9BD1C7; /* Turquoise */
    font-weight: bold;
    font-size: 1.2em;
}

/* Listes numérotées */
.entry-content ol,
.article-content ol {
    counter-reset: custom-counter;
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.entry-content ol li,
.article-content ol li {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1rem;
    counter-increment: custom-counter;
}

.entry-content ol li::before,
.article-content ol li::before {
    content: counter(custom-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background-color: #9BD1C7; /* Turquoise */
    color: #2A367E; /* Bleu Roi */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Code inline */
.entry-content code,
.article-content code {
    background-color: #F2EBE1; /* Crème */
    color: #2A367E; /* Bleu Roi */
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
}

/* Blocs de code */
.entry-content pre,
.article-content pre {
    background-color: #2A367E; /* Bleu Roi */
    color: #9BD1C7; /* Turquoise */
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

.entry-content pre code,
.article-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* Encadrés d'information */
.info-box {
    background-color: rgba(155, 209, 199, 0.1); /* Turquoise transparent */
    border-left: 4px solid #9BD1C7;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.warning-box {
    background-color: rgba(245, 161, 35, 0.1); /* Orange transparent */
    border-left: 4px solid #F5A123;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.alert-box {
    background-color: rgba(237, 113, 90, 0.1); /* Pêche transparent */
    border-left: 4px solid #ED715A;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

/* Images dans les articles */
.entry-content img,
.article-content img {
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.entry-content figure,
.article-content figure {
    margin: 2rem 0;
}

.entry-content figcaption,
.article-content figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Tables dans les articles */
.entry-content table,
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.entry-content th,
.article-content th {
    background-color: #2A367E; /* Bleu Roi */
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.entry-content td,
.article-content td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.entry-content tr:nth-child(even),
.article-content tr:nth-child(even) {
    background-color: #F2EBE1; /* Crème */
}

/* Séparateurs */
.entry-content hr,
.article-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, #9BD1C7, transparent);
    margin: 3rem 0;
}
