/* ============================================
   SECTION MOT DU MINISTRE
   ============================================ */

.minister-section {
    position: relative;
    padding: 3rem 0;
    background: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 50%, #F8F9FA 100%);
    overflow: hidden;
}

/* Pattern de fond léger existant */
.minister-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFD700' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

/* Nouveau SVG - Pellicule de film en fond */
.minister-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='filmStrip' x='0' y='0' width='120' height='120' patternUnits='userSpaceOnUse'%3E%3Crect width='120' height='120' fill='none'/%3E%3Crect x='5' y='0' width='15' height='120' fill='%23FFD700' fill-opacity='0.05'/%3E%3Crect x='95' y='0' width='15' height='120' fill='%23FFD700' fill-opacity='0.05'/%3E%3Crect x='30' y='0' width='3' height='120' fill='%23FF0000' fill-opacity='0.04'/%3E%3Crect x='45' y='0' width='3' height='120' fill='%23FF0000' fill-opacity='0.04'/%3E%3Crect x='70' y='0' width='3' height='120' fill='%230a7734' fill-opacity='0.04'/%3E%3Crect x='85' y='0' width='3' height='120' fill='%230a7734' fill-opacity='0.04'/%3E%3Ccircle cx='12' cy='20' r='3' fill='%23FFFFFF' fill-opacity='0.06'/%3E%3Ccircle cx='12' cy='60' r='3' fill='%23FFFFFF' fill-opacity='0.06'/%3E%3Ccircle cx='12' cy='100' r='3' fill='%23FFFFFF' fill-opacity='0.06'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23filmStrip)'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 120px 120px;
    opacity: 0.4;
    pointer-events: none;
}

.minister-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* ============================================
   PORTRAIT AVEC SCAN EFFECT
   ============================================ */

/* Colonne gauche - Portrait avec fond SVG */
.minister-portrait {
    background: linear-gradient(135deg, #0a2e1a 0%, #0a7734 100%);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* SVG Fond - Caméras */
.minister-portrait::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='140' height='140' viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='cameraBg' x='0' y='0' width='140' height='140' patternUnits='userSpaceOnUse'%3E%3Cg fill='none'%3E%3Crect x='25' y='45' width='50' height='30' rx='4' stroke='%23FFFFFF' stroke-width='1.2' fill='none' opacity='0.08'/%3E%3Crect x='70' y='50' width='15' height='20' rx='2' stroke='%23FFFFFF' stroke-width='1' fill='none' opacity='0.06'/%3E%3Crect x='10' y='52' width='18' height='16' rx='2' stroke='%23FFFFFF' stroke-width='1' fill='none' opacity='0.08'/%3E%3Ccircle cx='18' cy='60' r='5' stroke='%23FFFFFF' stroke-width='0.8' fill='none' opacity='0.06'/%3E%3Ccircle cx='15' cy='60' r='2' fill='%23FFD700' opacity='0.1'/%3E%3Cpath d='M35,45 L35,38 L55,38 L55,45' stroke='%23FFFFFF' stroke-width='1' fill='none' opacity='0.08'/%3E%3C/g%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23cameraBg)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    opacity: 0.3;
    pointer-events: none;
}

/* SVG Fond - Projecteurs */
.minister-portrait::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='100' viewBox='0 0 200 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cpolygon points='20,100 60,40 100,100' fill='%23FFD700' opacity='0.06'/%3E%3Cpolygon points='80,100 120,40 160,100' fill='%23FFD700' opacity='0.06'/%3E%3Cpolygon points='140,100 180,40 220,100' fill='%23FFD700' opacity='0.06'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 200px 100px;
    opacity: 0.4;
    pointer-events: none;
}

/* Portait Frame avec animations */
.portrait-frame {
    position: relative;
    width: 240px;
    height: 240px;
    margin-bottom: 2rem;
    z-index: 10;
}

/* ============================================
   SCAN EFFECT AUTOUR DE LA PHOTO
   ============================================ */

/* Effet de balayage radar */
.minister-scan-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    z-index: 25;
    pointer-events: none;
    overflow: hidden;
}

.minister-scan-effect::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(255, 215, 0, 0.15) 30deg,
        rgba(255, 215, 0, 0.15) 45deg,
        rgba(255, 215, 0, 0.15) 60deg,
        transparent 90deg,
        transparent 360deg
    );
    animation: ministerRadarScan 3s linear infinite;
    border-radius: 50%;
}

@keyframes ministerRadarScan {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Ligne de balayage supplémentaire */
.minister-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 10px,
        rgba(255, 215, 0, 0.08) 10px,
        rgba(255, 215, 0, 0.08) 12px
    );
    animation: ministerScanMove 2s linear infinite;
    z-index: 26;
}

@keyframes ministerScanMove {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Effet de brillance statique */
.minister-scan-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2), transparent 70%);
    animation: pulseGlowStatic 2s ease-in-out infinite;
    z-index: 20;
    pointer-events: none;
}

@keyframes pulseGlowStatic {
    0%, 100% {
        opacity: 0.3;
        width: 110%;
        height: 110%;
    }
    50% {
        opacity: 0.6;
        width: 120%;
        height: 120%;
    }
}

/* ============================================
   ANIMATIONS EXISTANTES (conservées)
   ============================================ */

/* Ondulations autour de la photo */
.portrait-frame .ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    pointer-events: none;
}

.ripple-1, .ripple-2, .ripple-3, .ripple-4 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 0, 0.6);
    opacity: 0;
}

.ripple-1 {
    animation: rippleExpand 3s ease-out infinite;
}

.ripple-2 {
    animation: rippleExpand 3s ease-out infinite 0.75s;
}

.ripple-3 {
    animation: rippleExpand 3s ease-out infinite 1.5s;
}

.ripple-4 {
    animation: rippleExpand 3s ease-out infinite 2.25s;
}

@keyframes rippleExpand {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.6;
        border-width: 2px;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        width: 180%;
        height: 180%;
        opacity: 0;
        border-width: 0.5px;
    }
}

/* Glow au survol */
.portrait-glow {
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.4), transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.portrait-frame:hover .portrait-glow {
    opacity: 1;
    animation: pulseGlow 1.5s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Photo du ministre */
.portrait-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #FFD700;
    position: relative;
    z-index: 30;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.portrait-frame:hover .portrait-image {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

/* Bordure animée */
.portrait-border {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 215, 0, 0.5);
    animation: spin 20s linear infinite;
    z-index: 5;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Effet de lumière tournante */
.portrait-frame .light-sweep {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 215, 0, 0.1) 50%, 
        transparent 70%);
    border-radius: 50%;
    animation: sweep 8s linear infinite;
    pointer-events: none;
    z-index: 15;
}

@keyframes sweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   INFORMATIONS DU MINISTRE
   ============================================ */

.minister-info {
    color: #FFFFFF;
    position: relative;
    z-index: 20;
}

.minister-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #FFFFFF;
    position: relative;
    display: inline-block;
}

.minister-name::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FF0000, #FFD700, #0a7734, transparent);
}

.minister-title-official {
    font-size: 0.85rem;
    opacity: 0.9;
    margin: 1rem 0 0.5rem;
    line-height: 1.4;
}

.minister-subtitle {
    font-size: 0.75rem;
    color: #FFD700;
    font-weight: 600;
    font-style: italic;
    margin-top: 0.5rem;
}

/* ============================================
   RESTE DU CSS (Message, Responsive, etc.)
   ============================================ */

.minister-header {
    text-align: center;
    margin-bottom: 3rem;
}

.minister-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #1F2937;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.minister-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.divider-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0a7734, #085c28, transparent);
}

.minister-divider i {
    font-size: 1.2rem;
    color: #FF0000;
}

.minister-content {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3rem;
    background: #FFFFFF;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.minister-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.1);
}

.minister-message {
    padding: 2rem;
    background: #FFFFFF;
}

.message-quote {
    margin-bottom: 1rem;
}

.message-quote i {
    font-size: 2.5rem;
    color: rgba(255, 215, 0, 0.3);
}

.message-content {
    color: #4B5563;
    line-height: 1.7;
}

.message-greeting {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0a7734;
    margin-bottom: 1.5rem;
}

.message-content p {
    margin-bottom: 1.2rem;
}

.message-content strong {
    color: #FF0000;
    font-weight: 700;
}

.message-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E5E7EB;
}

.message-closing {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-style: italic;
}

.message-closing i {
    font-size: 1.2rem;
    color: #FFD700;
}

.message-closing p {
    margin: 0;
    font-size: 1rem;
    color: #1F2937;
}

.minister-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.deco-line {
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #FFD700, #FF0000, #0a7734, transparent);
}

.deco-camera {
    width: 40px;
    height: 40px;
    background: rgba(255, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deco-camera i {
    font-size: 1.2rem;
    color: #FF0000;
}

/* ============================================
   MESSAGE COLLAPSABLE
   ============================================ */

.message-content-wrapper {
    position: relative;
}

.message-content {
    color: #4B5563;
    line-height: 1.7;
    max-height: 280px;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.message-content.expanded {
    max-height: 2000px;
}

.message-content-wrapper.collapsed .message-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, #FFFFFF);
    pointer-events: none;
}

.message-toggle {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.8rem;
    background: transparent;
    border: 2px solid rgba(255, 0, 0, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #FF0000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    border-color: #FF0000;
    background: rgba(255, 0, 0, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.2);
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.message-content-wrapper.expanded .toggle-icon {
    transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 1024px) {
    .minister-content {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .minister-portrait {
        padding: 3rem;
    }
}

@media (max-width: 768px) {
    .minister-section {
        padding: 3rem 0;
    }
    
    .minister-container {
        padding: 0 1rem;
    }
    
    .portrait-frame {
        width: 180px;
        height: 180px;
    }
    
    .minister-name {
        font-size: 1.1rem;
    }
    
    .message-content {
        max-height: 250px;
    }
}

@media (max-width: 480px) {
    .minister-portrait {
        padding: 2rem;
    }
    
    .portrait-frame {
        width: 150px;
        height: 150px;
    }
    
    .message-content {
        max-height: 200px;
    }
    
    .toggle-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
    }
}